erase this directory.
2002-01-07 Alexandre Duret-Lutz <duret_g@epita.fr>
+ * configure.in: Run the Autoconf test in a subdirectory, then
+ erase this directory.
+
+2002-01-07 Alexandre Duret-Lutz <duret_g@epita.fr>
+
* configure.in (AUTOMAKE): Create m4/amversion.m4.
* m4/amversion.in: New file.
* m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
{ (exit 1); exit 1; }; }
}
-echo 'AC''_PREREQ(2.52)' > conftest.ac
-{ echo "$as_me:$LINENO: eval $AUTOCONF -o /dev/null conftest.ac" >&5
- (eval $AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
+# Test for Autoconf. We run Autoconf in a subdirectory to ease
+# deletion of any files created (such as those added to
+# autom4te.cache).
+mkdir conftest
+echo 'AC''_PREREQ(2.52)' > conftest/conftest.ac
+{ echo "$as_me:$LINENO: cd conftest && eval $AUTOCONF -o /dev/null conftest.ac" >&5
+ (cd conftest && eval $AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } || {
echo "$as_me: error: Autoconf 2.52 or better is required" >&2;}
{ (exit 1); exit 1; }; }
}
-rm conftest.ac
+rm -rf conftest
ac_config_files="$ac_config_files automake"
AC_MSG_ERROR([perl 5.005 or better is required])
}
-echo 'AC''_PREREQ(2.52)' > conftest.ac
-AM_RUN_LOG([eval $AUTOCONF -o /dev/null conftest.ac]) || {
+# Test for Autoconf. We run Autoconf in a subdirectory to ease
+# deletion of any files created (such as those added to
+# autom4te.cache).
+mkdir conftest
+echo 'AC''_PREREQ(2.52)' > conftest/conftest.ac
+AM_RUN_LOG([cd conftest && eval $AUTOCONF -o /dev/null conftest.ac]) || {
AC_MSG_ERROR([Autoconf 2.52 or better is required])
}
-rm conftest.ac
+rm -rf conftest
AC_CONFIG_FILES([automake], [chmod +x automake])
AC_CONFIG_FILES([aclocal], [chmod +x aclocal])