Fix for PR automake/14:
[automake.git] / tests / error.test
bloba5a91178b7bd84dc96a6ef33d4ae6dacb4e5da8c
1 #! /bin/sh
3 # Test to make sure error handling in add_file works.
5 . $srcdir/defs || exit 1
7 cat > configure.in << 'END'
8 AM_C_PROTOTYPES
9 END
11 # Set up a strange environment, where AM_C_PROTOTYPES exists but its
12 # dependency does not.
13 cat > AM_C_PROTOTYPES.m4 << 'END'
14 AC_DEFUN(AM_C_PROTOTYPES,
15 AC_REQUIRE([AM_PROG_CC_STDC]))
16 END
18 # Our --acdir overrides the one in $ACLOCAL.
19 $ACLOCAL --acdir=. && exit 1
20 exit 0