1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #! /bin/sh
- . test-init.sh
- AUTOMAKE="$am_original_AUTOMAKE -Werror"
- cat > Makefile.am <<'END'
- FOO := bar
- AUTOMAKE_OPTIONS =
- END
- set_warnings ()
- {
- set +x
- sed <$2 >$2-t -e "s|^\\(AUTOMAKE_OPTIONS\\) *=.*|\\1 = $1|" \
- -e "s|^\\(AM_INIT_AUTOMAKE\\).*|\\1([$1])|"
- mv -f $2-t $2
- set -x
- cat $2
- }
- ok ()
- {
- $AUTOMAKE $*
- }
- ko ()
- {
- AUTOMAKE_fails $*
- grep '^Makefile\.am:1:.*:=.*not portable' stderr
- }
- touch README INSTALL NEWS AUTHORS ChangeLog COPYING
- $ACLOCAL
- ok -Wportability -Wno-portability
- ko -Wno-portability -Wportability
- set_warnings '' Makefile.am
- set_warnings '-Wportability -Wno-portability' configure.ac
- rm -rf autom4te*.cache
- $ACLOCAL
- ok
- set_warnings '-Wno-portability -Wportability' configure.ac
- rm -rf autom4te*.cache
- $ACLOCAL
- ko
- set_warnings '' configure.ac
- rm -rf autom4te*.cache
- $ACLOCAL
- set_warnings '-Wportability -Wno-portability' Makefile.am
- ok
- set_warnings '-Wno-portability -Wportability' Makefile.am
- ko
- :
|