]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: put AM_PROG_CC_C_O before AC_OUTPUT to help losing compilers
authorPeter Rosin <peda@lysator.liu.se>
Wed, 1 Feb 2012 14:47:45 +0000 (15:47 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 1 Feb 2012 14:47:45 +0000 (15:47 +0100)
When AM_PROG_CC_C_O is after AC_OUTPUT, the compile script
is not used even if needed, causing testsuite fails if
libtool is not used.

* tests/depcomp8a.test: Uncomment the AM_PROG_CC_C_O macro
in its correct location, as indicated...
(configure.in): ...with this comment.
* tests/depcomp8b.test: Sync with tests/depcomp8a.test.

tests/depcomp8a.test
tests/depcomp8b.test

index ea14c3fcfa06a656bed99128d0f665f5bb5a0baa..b94cf1ddb97d24c1cb8beb5da18232fca833d450 100755 (executable)
@@ -25,6 +25,7 @@ set -e
 
 cat >> configure.in << 'END'
 AC_PROG_CC
+#x AM_PROG_CC_C_O
 AC_OUTPUT
 END
 
@@ -61,7 +62,8 @@ DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck
 
 # Try again with subdir-objects option.
 
-echo AM_PROG_CC_C_O >> configure.in
+sed 's/#x //' configure.in >configure.int
+mv -f configure.int configure.in
 echo AUTOMAKE_OPTIONS = subdir-objects >> Makefile.am
 
 $ACLOCAL
index d36e75462cd298d289b624ff0c82ec6514afcfbb..715d951c61a0bb703f4504f1efb17e38c71bee17 100755 (executable)
@@ -26,6 +26,7 @@ set -e
 
 cat >> configure.in << 'END'
 AC_PROG_CC
+#x AM_PROG_CC_C_O
 AC_PROG_LIBTOOL
 AC_OUTPUT
 END
@@ -56,7 +57,8 @@ DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck
 
 # Try again with subdir-objects option.
 
-echo AM_PROG_CC_C_O >> configure.in
+sed 's/#x //' configure.in >configure.int
+mv -f configure.int configure.in
 echo AUTOMAKE_OPTIONS = subdir-objects >> Makefile.am
 
 $ACLOCAL