2536 |
31 Jul 11 |
peter |
#! /bin/sh |
2536 |
31 Jul 11 |
peter |
# $Id$ |
2536 |
31 Jul 11 |
peter |
3 |
# |
4359 |
23 Aug 23 |
peter |
# Copyright (C) 2011, 2012, 2013, 2023 Peter Johansson |
2536 |
31 Jul 11 |
peter |
5 |
# |
2536 |
31 Jul 11 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
2536 |
31 Jul 11 |
peter |
7 |
# |
2536 |
31 Jul 11 |
peter |
# The yat library is free software; you can redistribute it |
2536 |
31 Jul 11 |
peter |
# and/or modify it under the terms of the GNU General Public License as |
2536 |
31 Jul 11 |
peter |
# published by the Free Software Foundation; either version 3 of the |
2536 |
31 Jul 11 |
peter |
# License, or (at your option) any later version. |
2536 |
31 Jul 11 |
peter |
12 |
# |
2536 |
31 Jul 11 |
peter |
# The yat library is distributed in the hope that it will be useful, |
2536 |
31 Jul 11 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
2536 |
31 Jul 11 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2536 |
31 Jul 11 |
peter |
# General Public License for more details. |
2536 |
31 Jul 11 |
peter |
17 |
# |
2536 |
31 Jul 11 |
peter |
# You should have received a copy of the GNU General Public License |
2536 |
31 Jul 11 |
peter |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
2536 |
31 Jul 11 |
peter |
20 |
|
2536 |
31 Jul 11 |
peter |
21 |
|
2728 |
19 Apr 12 |
peter |
# test macro YAT_PROG_MOVE_IF_CHANGE |
2536 |
31 Jul 11 |
peter |
23 |
|
2536 |
31 Jul 11 |
peter |
24 |
required="autoconf automake" |
2536 |
31 Jul 11 |
peter |
25 |
|
2536 |
31 Jul 11 |
peter |
26 |
set -e |
2536 |
31 Jul 11 |
peter |
27 |
|
3036 |
03 Jun 13 |
peter |
28 |
. test/init.sh || exit 99 |
2536 |
31 Jul 11 |
peter |
29 |
|
2536 |
31 Jul 11 |
peter |
30 |
cat >> configure.ac <<EOF |
2536 |
31 Jul 11 |
peter |
31 |
YAT_PROG_MOVE_IF_CHANGE |
2536 |
31 Jul 11 |
peter |
32 |
AC_CONFIG_FILES([Makefile]) |
2536 |
31 Jul 11 |
peter |
33 |
AC_OUTPUT |
2536 |
31 Jul 11 |
peter |
34 |
EOF |
2536 |
31 Jul 11 |
peter |
35 |
|
2536 |
31 Jul 11 |
peter |
36 |
cat > Makefile.am <<EOF |
2543 |
04 Aug 11 |
peter |
37 |
ACLOCAL_AMFLAGS = -I m4 |
2536 |
31 Jul 11 |
peter |
38 |
EOF |
2536 |
31 Jul 11 |
peter |
39 |
rm -f move-if-change |
2536 |
31 Jul 11 |
peter |
40 |
bootstrap |
2536 |
31 Jul 11 |
peter |
41 |
test -r move-if-change || exit_fail "move-if-change not generated by autoconf" |
4326 |
12 Mar 23 |
peter |
42 |
cat move-if-change |
2536 |
31 Jul 11 |
peter |
43 |
grep MOVE_IF_CHANGE Makefile.in || exit_fail |
3112 |
10 Nov 13 |
peter |
44 |
./configure $configure_opts |
2536 |
31 Jul 11 |
peter |
45 |
grep "MOVE_IF_CHANGE.*move-if-change" Makefile || exit_fail |
2536 |
31 Jul 11 |
peter |
46 |
exit_success; |