Ignore:
Timestamp:
Mar 22, 2010, 11:29:41 PM (12 years ago)
Author:
Peter
Message:

fixes #613. Restructure tests to have a configure.ac with no included acinclude but include needed code in configure.ac instead. This makes it easier for autotools to give a useful diagnosis when autoconf is too old. The cache in the test were also removed (was never a good idea) so now tests are run from scratch every time, in fact, old testdir is removed before creating input files (such as configure.ac). This makes the tests a bit more time consuming, but they are also more accurate (reported failures have often been problem with the cache).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/yat_m4_test.sh

    r2206 r2225  
    2929. ./common_defs.sh || exit 1
    3030
    31 echo "Creating acinclude.m4"
    32 cat > acinclude.m4.tmp <<EOF
     31cat >> configure.ac <<EOF
    3332YAT_FIND_YAT
    3433CXX=\`\$yat_config --cxx\`
     
    3837YAT_LDADD=\`\$yat_config --link-libtool\`
    3938AC_SUBST(YAT_LDADD)
     39AC_CONFIG_FILES([Makefile])
     40AC_OUTPUT
    4041EOF
    41 $move_if_change -v acinclude.m4.tmp acinclude.m4
    4242
    4343bootstrap
Note: See TracChangeset for help on using the changeset viewer.