123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #! /bin/sh
- required=cc
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_PROG_CC
- AM_PROG_CC_C_O
- AC_OUTPUT
- END
- cat > Makefile.am <<'END'
- AUTOMAKE_OPTIONS = subdir-objects
- noinst_PROGRAMS = test
- test_SOURCES = $(srcdir)/test.c
- test-objs:
- test ! -f $(srcdir)/test.$(OBJEXT)
- test -f test.$(OBJEXT)
- END
- $ACLOCAL && $AUTOCONF && $AUTOMAKE -a || fatal_ "autotools failed"
- $EGREP 'test\.|DEPDIR|dirstamp|srcdir' Makefile.in || :
- $EGREP '\$.srcdir./test\.[o$]' Makefile.in && exit 1
- $EGREP '$(srcdir)/$(am__dirstamp)' Makefile.in && exit 1
- $EGREP '$(srcdir)/$(DEPDIR)' && exit 1
- cat > test.c << 'END'
- int main (void)
- {
- return 0;
- }
- END
- mkdir build && cd build || fatal "preparation of build directory failed"
- ../configure || fatal_ "./configure failed"
- $MAKE
- $MAKE test-objs
- :
|