]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* BUGS: New file.
authorAkim Demaille <akim@epita.fr>
Tue, 14 Nov 2000 13:25:35 +0000 (13:25 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 14 Nov 2000 13:25:35 +0000 (13:25 +0000)
Be sure to read this file if you're using a non released Autoconf.
* tests/tools.at (Syntax of the scripts): The non built tools are
in `$top_srcdir', not `..'.
(autoconf --trace): When using `-i' we need the src tree, not the
build tree.

BUGS [new file with mode: 0644]
ChangeLog
Makefile.am
Makefile.in
README
README-alpha
TODO
configure
tests/Makefile.in
tests/tools.at

diff --git a/BUGS b/BUGS
new file mode 100644 (file)
index 0000000..b1d7a9a
--- /dev/null
+++ b/BUGS
@@ -0,0 +1,32 @@
+-*- outline -*-
+
+This file lists the bugs you must be aware ofBe sure to check this
+file before using Autoconf, and especially CVS versions of Autoconf.
+
+Many other bugs are registered on the GNATS server:
+
+     http://sources.redhat.com/cgi-bin/gnatsweb.pl?database=autoconf
+
+Please, don't register bugs listed below: we already know we have to
+address them.
+
+* Status
+
+       /*----------------------------------------.
+       | DO NOT USE THIS VERSION IN PRODUCTION.  |
+       `----------------------------------------*/
+
+* Serious bugs
+
+Autoconf must not be used in production if there are `grave' bugs.
+
+** Portability of expr
+AS_DIRNAME is not portable on QNX.
+
+** : ${foo=$val}
+There are problems on Ultrix and I don't recall which architecture.
+
+** : foo=${foo='${MAGIC}'}
+Solaris behaves very improperly here and adds braces.  This affects
+the cache mechanism.  Fortunately it is uncommon to have such cache
+entries, but Libtool is affected.
index 2035b7ac091047581180a33cf2363debd975c4c3..bb53cf420ab83600360d0fd9f346df6948bb305c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-11-14  Akim Demaille  <akim@epita.fr>
+
+       * BUGS: New file.
+       Be sure to read this file if you're using a non released Autoconf.
+       * tests/tools.at (Syntax of the scripts): The non built tools are
+       in `$top_srcdir', not `..'.
+       (autoconf --trace): When using `-i' we need the src tree, not the
+       build tree.
+
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        A single m4_require is enough.
        (m4_require): this.
        * acgeneral.m4 (_AC_REQUIRE): Remove, use m4_require if you want
        to get into the gory details.
-       
+
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_INIT_DEFAULTS_ENVIRONMENT): Rename as...
        * m4sh.m4 (AS_SHELL_SANITIZE): this.
-       
+
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't neutralize
        autoconf's warnings.
-       
+
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        Set AC_LANG_PREPROC_REQUIRE which replaces AC_REQUIRE_CPP.
@@ -61,7 +70,7 @@
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        * tests/m4sh.at (AS_DIRNAME & AS_DIRNAME_SED): Simplify.
-       
+
 2000-11-14  Akim Demaille  <akim@epita.fr>
 
        * acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
index f4b4db435ff311fc76b08bfdcf6778ccf4a56dab..1cd9a65308881eb4c6c04661be5139c5daadd118 100644 (file)
@@ -41,17 +41,18 @@ m4sources =  m4sugar.m4 m4sh.m4  \
              acfunctions.m4 acheaders.m4
 
 distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms \
-                 $(m4sources)
+                  $(m4sources)
 
 nodistpkgdataDATA = autoconf.m4f
 
 pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA)
 
-OLDCHANGELOGS = ChangeLog.0 ChangeLog.1
-EXTRA_DIST = $(OLDCHANGELOGS) \
-acversion.m4.in autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh \
-ifnames.sh autoscan.pl INSTALL.txt \
-$(distpkgdataDATA)
+EXTRA_DIST = ChangeLog.0 ChangeLog.1 \
+             BUGS INSTALL.txt \
+             acversion.m4.in \
+             autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh ifnames.sh \
+             autoscan.pl \
+             $(distpkgdataDATA)
 
 # Files that should be removed, but which Automake does not know:
 # the frozen files and the scripts.
@@ -72,9 +73,8 @@ CLEANFILES = autoconf.m4f \
 #   propagated to the Makefile.  (Libtool uses the same guarantee.)
 
 acversion.m4: $(srcdir)/acversion.m4.in $(srcdir)/configure.in
-       sed -e 's,@''VERSION@,$(VERSION),' $(srcdir)/acversion.m4.in > acversion.tm4
-       cp acversion.tm4 $(srcdir)/acversion.m4
-       rm -f acversion.tm4
+       sed 's,@VERSION\@,$(VERSION),g' $(srcdir)/acversion.m4.in >acversion.tm4
+       mv acversion.tm4 $(srcdir)/acversion.m4
 
 ## INSTALL.  ##
 
index 453eb714f6e766acf0ab20f27401dfbed4f6867a..3ff1eba66cdca0e8710c90f7632ee3d0d3e14ec6 100644 (file)
@@ -83,15 +83,14 @@ EXTRA_SCRIPTS = autoscan
 m4sources = m4sugar.m4 m4sh.m4               autoconf.m4              acgeneral.m4 acoldnames.m4 acspecific.m4 aclang.m4 acversion.m4              acfunctions.m4 acheaders.m4
 
 
-distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms                  $(m4sources)
+distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms                   $(m4sources)
 
 
 nodistpkgdataDATA = autoconf.m4f
 
 pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA)
 
-OLDCHANGELOGS = ChangeLog.0 ChangeLog.1
-EXTRA_DIST = $(OLDCHANGELOGS) acversion.m4.in autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh ifnames.sh autoscan.pl INSTALL.txt $(distpkgdataDATA)
+EXTRA_DIST = ChangeLog.0 ChangeLog.1              BUGS INSTALL.txt              acversion.m4.in              autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh ifnames.sh              autoscan.pl              $(distpkgdataDATA)
 
 
 # Files that should be removed, but which Automake does not know:
@@ -419,9 +418,8 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean
 #   propagated to the Makefile.  (Libtool uses the same guarantee.)
 
 acversion.m4: $(srcdir)/acversion.m4.in $(srcdir)/configure.in
-       sed -e 's,@''VERSION@,$(VERSION),' $(srcdir)/acversion.m4.in > acversion.tm4
-       cp acversion.tm4 $(srcdir)/acversion.m4
-       rm -f acversion.tm4
+       sed 's,@VERSION\@,$(VERSION),g' $(srcdir)/acversion.m4.in >acversion.tm4
+       mv acversion.tm4 $(srcdir)/acversion.m4
 
 # INSTALL is a special case.  Automake seems to have a single name space
 # for both targets and variables.  If we just use INSTALL, then the var
diff --git a/README b/README
index 2b903b4b92783a76fcff405d4c5393786fc51934..7f62f34703b3d5b3d9434adf05911be51df1ec49 100644 (file)
--- a/README
+++ b/README
@@ -1,26 +1,24 @@
+-*- text -*-
+
 Autoconf
 
-Autoconf is an extensible package of m4 macros that produce shell
+Autoconf is an extensible package of M4 macros that produce shell
 scripts to automatically configure software source code packages.
 These scripts can adapt the packages to many kinds of UNIX-like
 systems without manual user intervention.  Autoconf creates a
 configuration script for a package from a template file that lists the
-operating system features that the package can use, in the form of m4
+operating system features that the package can use, in the form of M4
 macro calls.
 
-Producing configuration scripts using Autoconf requires GNU m4.  You
-must install GNU m4 (version 1.4 or later) before configuring
+Producing configuration scripts using Autoconf requires GNU M4.  You
+must install GNU M4 (version 1.4 or later) before configuring
 Autoconf, so that Autoconf's configure script can find it.  The
 configuration scripts produced by Autoconf are self-contained, so
-their users do not need to have Autoconf (or GNU m4).
-
-Also, some optional utilities that come with Autoconf use Perl.
-However, it is not required in order to use the main Autoconf program.
-If it is not present, the affected Autoconf utilities will not be
-installed.
+their users do not need to have Autoconf (or GNU M4).
 
-You can use the program `autoheader' to automatically create a
-configuration header from a `configure.in'.
+Some optional utilities that come with Autoconf use Perl.  However, it
+is not required in order to use the main Autoconf programs.  If it is
+not present, the affected Autoconf utilities will not be installed.
 
 The file INSTALL should be distributed with packages that use
 Autoconf-generated configure scripts and Makefiles that conform to the
@@ -29,9 +27,9 @@ of the package, where to report bugs, and a pointer to INSTALL for
 instructions on compilation and installation.  This removes the need
 to maintain many similar sets of installation instructions.
 
+Be sure to read BUGS (especially if this Autoconf is not an official
+release) and INSTALL.
+
 Mail suggestions and bug reports for Autoconf to autoconf@gnu.org.
 Please include the Autoconf version number, which you can get by
 running `autoconf --version'.
-
-PS/ Oops, by the way, please read the file `INSTALL' to install
-Autoconf ;)
index 9f77ea7abf14bec18c5500241e6d206b69407cc7..bd65018d1ecec324a70bda21c036fedae8cb9a48 100644 (file)
@@ -1,3 +1,5 @@
+-*- text -*-
+
 This is a test release of this package.  Using it more or less
 implicitly signs you up to help us find whatever problems you report.
 
diff --git a/TODO b/TODO
index 416015c05e53650cd834e5ba4d427282e47587b6..2ef384c77e790b26c6eaba10260a7fd799ded0eb 100644 (file)
--- a/TODO
+++ b/TODO
@@ -36,6 +36,10 @@ convenient.
 ** AC_CHECK_TOOL...
 Write a test that checks that it honors the values set by the user.
 
+** Forbidden patterns
+Chose a means to declare patterns to catch, means to escape the
+control, and document it.
+
 * Autoconf 2.51 or so
 
 ** AC_FUNC_GETLOADAVG
index 7f44531eb285a9d6bb8e38e0ddc1816f19ea5e41..1a3c373eb803e4e1a56858dbee10631717b79514 100755 (executable)
--- a/configure
+++ b/configure
@@ -43,26 +43,11 @@ IFS="       $ac_nl"
 # CDPATH.
 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
-# File descriptor usage:
-# 0 standard input
-# 1 file creation
-# 2 errors and warnings
-# 3 some systems may open it to /dev/tty
-# 4 used on the Kubota Titan
-# 6 checking for... messages and results
-# 5 compiler messages saved in config.log
-if test "$silent" = yes; then
-  exec 6>/dev/null
-else
-  exec 6>&1
-fi
-exec 5>./config.log
-
-echo "\
+cat >config.log << EOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by configure (Autoconf 2.49b) 2.49b, executed with
+It was created by $as_me (Autoconf 2.49b) 2.49b, executed with
  > $0 $@
 
 on `(hostname || uname -n) 2>/dev/null | sed 1q`:
@@ -81,7 +66,22 @@ hostinfo               = `(hostinfo) 2>/dev/null`
 /bin/arch              = `(/bin/arch) 2>/dev/null`
 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
-" >&5
+EOF
+
+# File descriptor usage:
+# 0 standard input
+# 1 file creation
+# 2 errors and warnings
+# 3 some systems may open it to /dev/tty
+# 4 used on the Kubota Titan
+# 6 checking for... messages and results
+# 5 compiler messages saved in config.log
+if test "$silent" = yes; then
+  exec 6>/dev/null
+else
+  exec 6>&1
+fi
+exec 5>>config.log
 
 #
 # Initializations.
@@ -102,6 +102,9 @@ SHELL=${CONFIG_SHELL-/bin/sh}
 # so uname gets run too.
 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
+# Name of the executable.
+as_me=`echo "$0" | sed 's,.*/,,'`
+
 # Avoid depending upon Character Ranges.
 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
@@ -226,8 +229,7 @@ do
     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     # Reject names that are not valid shell variable names.
     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
-      { echo "configure:229: error: invalid feature name: $ac_feature" >&5
-  echo "configure: error: invalid feature name: $ac_feature" >&2
+      {  echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { false; exit; }; }
     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     eval "enable_$ac_feature=no" ;;
@@ -236,8 +238,7 @@ do
     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     # Reject names that are not valid shell variable names.
     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
-      { echo "configure:239: error: invalid feature name: $ac_feature" >&5
-  echo "configure: error: invalid feature name: $ac_feature" >&2
+      {  echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { false; exit; }; }
     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     case $ac_option in
@@ -419,8 +420,7 @@ do
     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     # Reject names that are not valid shell variable names.
     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
-      { echo "configure:422: error: invalid package name: $ac_package" >&5
-  echo "configure: error: invalid package name: $ac_package" >&2
+      {  echo "$as_me: error: invalid package name: $ac_package" >&2
   { false; exit; }; }
     ac_package=`echo $ac_package| sed 's/-/_/g'`
     case $ac_option in
@@ -433,8 +433,7 @@ do
     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     # Reject names that are not valid shell variable names.
     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
-      { echo "configure:436: error: invalid package name: $ac_package" >&5
-  echo "configure: error: invalid package name: $ac_package" >&2
+      {  echo "$as_me: error: invalid package name: $ac_package" >&2
   { false; exit; }; }
     ac_package=`echo $ac_package | sed 's/-/_/g'`
     eval "with_$ac_package=no" ;;
@@ -457,10 +456,8 @@ do
   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
     x_libraries=$ac_optarg ;;
 
-  -*) { echo "configure:460: error: unrecognized option: $ac_option
-Try \`configure --help' for more information." >&5
-  echo "configure: error: unrecognized option: $ac_option
-Try \`configure --help' for more information." >&2
+  -*) {  echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
   { false; exit; }; }
     ;;
 
@@ -468,8 +465,7 @@ Try \`configure --help' for more information." >&2
     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     # Reject names that are not valid shell variable names.
     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
-      { echo "configure:471: error: invalid variable name: $ac_envvar" >&5
-  echo "configure: error: invalid variable name: $ac_envvar" >&2
+      {  echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { false; exit; }; }
     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     eval "$ac_envvar='$ac_optarg'"
@@ -477,11 +473,11 @@ Try \`configure --help' for more information." >&2
 
   *)
     # FIXME: should be removed in autoconf 3.0.
-    { echo "configure:480: WARNING: you should use --build, --host, --target" >&5
-echo "configure: WARNING: you should use --build, --host, --target" >&2; }
+    { echo "$as_me:476: WARNING: you should use --build, --host, --target" >&5
+echo "$as_me: warning: you should use --build, --host, --target" >&2; }
     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
-      { echo "configure:483: WARNING: invalid host type: $ac_option" >&5
-echo "configure: WARNING: invalid host type: $ac_option" >&2; }
+      { echo "$as_me:479: WARNING: invalid host type: $ac_option" >&5
+echo "$as_me: warning: invalid host type: $ac_option" >&2; }
     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     ;;
 
@@ -490,8 +486,7 @@ done
 
 if test -n "$ac_prev"; then
   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
-  { echo "configure:493: error: missing argument to $ac_option" >&5
-  echo "configure: error: missing argument to $ac_option" >&2
+  {  echo "$as_me: error: missing argument to $ac_option" >&2
   { false; exit; }; }
 fi
 
@@ -504,8 +499,7 @@ do
   case $ac_val in
     [\\/$]* | ?:[\\/]* ) ;;
     NONE ) ;;
-    *)  { echo "configure:507: error: expected an absolute path for --$ac_var: $ac_val" >&5
-  echo "configure: error: expected an absolute path for --$ac_var: $ac_val" >&2
+    *)  {  echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
   { false; exit; }; };;
   esac
 done
@@ -520,9 +514,9 @@ target=$target_alias
 if test "x$host_alias" != x; then
   if test "x$build_alias" = x; then
     cross_compiling=maybe
-    { echo "configure:523: WARNING: If you wanted to set the --build type, don't use --host.
+    { echo "$as_me:517: WARNING: If you wanted to set the --build type, don't use --host.
     If a cross compiler is detected then cross compile mode will be used." >&5
-echo "configure: WARNING: If you wanted to set the --build type, don't use --host.
+echo "$as_me: warning: If you wanted to set the --build type, don't use --host.
     If a cross compiler is detected then cross compile mode will be used." >&2; }
   elif test "x$build_alias" != "x$host_alias"; then
     cross_compiling=yes
@@ -548,12 +542,10 @@ else
 fi
 if test ! -r $srcdir/$ac_unique_file; then
   if test "$ac_srcdir_defaulted" = yes; then
-    { echo "configure:551: error: cannot find sources in $ac_confdir or .." >&5
-  echo "configure: error: cannot find sources in $ac_confdir or .." >&2
+    {  echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
   { false; exit; }; }
   else
-    { echo "configure:555: error: cannot find sources in $srcdir" >&5
-  echo "configure: error: cannot find sources in $srcdir" >&2
+    {  echo "$as_me: error: cannot find sources in $srcdir" >&2
   { false; exit; }; }
   fi
 fi
@@ -677,8 +669,8 @@ if test "$ac_init_help" = "recursive"; then
       echo
       $ac_configure --help
     else
-      { echo "configure:680: WARNING: no configuration information is in $ac_subdir" >&5
-echo "configure: WARNING: no configuration information is in $ac_subdir" >&2; }
+      { echo "$as_me:672: WARNING: no configuration information is in $ac_subdir" >&5
+echo "$as_me: warning: no configuration information is in $ac_subdir" >&2; }
     fi
     cd $ac_popdir
   done
@@ -723,8 +715,8 @@ done
 # config.log.
 trap 'exit_status=$?
   test "$ac_signal" != 0 &&
-    echo "configure: caught signal $ac_signal" >&5
-  echo "configure: exit $exit_status" >&5
+    echo "$as_me: caught signal $ac_signal" >&5
+  echo "$as_me: exit $exit_status" >&5
   rm -rf conftest* confdefs* core core.* *.core $ac_clean_files &&
     exit $exit_status
      ' 0
@@ -758,14 +750,16 @@ if test -r "$cache_file"; then
   # Some versions of bash will fail to source /dev/null (special
   # files actually), so we avoid doing that.
   if test -f "$cache_file"; then
-    echo "loading cache $cache_file"
+    { echo "$as_me:753: loading cache $cache_file" >&5
+echo "loading cache $cache_file" >&6;}
     case $cache_file in
       [\\/]* | ?:[\\/]* ) . $cache_file;;
       *)                      . ./$cache_file;;
     esac
   fi
 else
-  echo "creating cache $cache_file"
+  { echo "$as_me:761: creating cache $cache_file" >&5
+echo "creating cache $cache_file" >&6;}
   >$cache_file
 fi
 
@@ -780,31 +774,31 @@ for ac_var in `(set) 2>&1 |
   eval ac_new_val="\$ac_env_${ac_var}_value"
   case $ac_old_set,$ac_new_set in
     set,)
-      { echo "configure:783: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-echo "configure: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2; }
+      { echo "$as_me:777: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+echo "$as_me: warning: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2; }
       ac_suggest_removing_cache=: ;;
     ,set)
-      { echo "configure:787: WARNING: \`$ac_var' was not set in the previous run" >&5
-echo "configure: WARNING: \`$ac_var' was not set in the previous run" >&2; }
+      { echo "$as_me:781: WARNING: \`$ac_var' was not set in the previous run" >&5
+echo "$as_me: warning: \`$ac_var' was not set in the previous run" >&2; }
       ac_suggest_removing_cache=: ;;
     ,);;
     *)
       if test "x$ac_old_val" != "x$ac_new_val"; then
-        { echo "configure:793: WARNING: \`$ac_var' has changed since the previous run:" >&5
-echo "configure: WARNING: \`$ac_var' has changed since the previous run:" >&2; }
-        { echo "configure:795: WARNING:   former value:  $ac_old_val" >&5
-echo "configure: WARNING:   former value:  $ac_old_val" >&2; }
-        { echo "configure:797: WARNING:   current value: $ac_new_val" >&5
-echo "configure: WARNING:   current value: $ac_new_val" >&2; }
+        { echo "$as_me:787: WARNING: \`$ac_var' has changed since the previous run:" >&5
+echo "$as_me: warning: \`$ac_var' has changed since the previous run:" >&2; }
+        { echo "$as_me:789: WARNING:   former value:  $ac_old_val" >&5
+echo "$as_me: warning:   former value:  $ac_old_val" >&2; }
+        { echo "$as_me:791: WARNING:   current value: $ac_new_val" >&5
+echo "$as_me: warning:   current value: $ac_new_val" >&2; }
         ac_suggest_removing_cache=:
       fi;;
   esac
 done
 if $ac_suggest_removing_cache; then
-  { echo "configure:804: WARNING: changes in the environment can compromise the build" >&5
-echo "configure: WARNING: changes in the environment can compromise the build" >&2; }
-  { echo "configure:806: WARNING: consider removing $cache_file and starting over" >&5
-echo "configure: WARNING: consider removing $cache_file and starting over" >&2; }
+  { echo "$as_me:798: WARNING: changes in the environment can compromise the build" >&5
+echo "$as_me: warning: changes in the environment can compromise the build" >&2; }
+  { echo "$as_me:800: WARNING: consider removing $cache_file and starting over" >&5
+echo "$as_me: warning: consider removing $cache_file and starting over" >&2; }
 fi
 
 ac_ext=c
@@ -837,8 +831,7 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   fi
 done
 if test -z "$ac_aux_dir"; then
-  { echo "configure:840: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
-  echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2
+  {  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2
   { false; exit; }; }
 fi
 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
@@ -857,7 +850,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
-echo "configure:860: checking for a BSD compatible install" >&5
+echo "$as_me:853: checking for a BSD compatible install" >&5
 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 if test -z "$INSTALL"; then
 if test "${ac_cv_path_install+set}" = set; then
@@ -906,7 +899,7 @@ fi
     INSTALL=$ac_install_sh
   fi
 fi
-echo "configure:909: result: $INSTALL" >&5
+echo "$as_me:902: result: $INSTALL" >&5
 echo "${ECHO_T}$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -917,7 +910,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
-echo "configure:920: checking whether build environment is sane" >&5
+echo "$as_me:913: checking whether build environment is sane" >&5
 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 # Just in case
 sleep 1
@@ -940,9 +933,7 @@ if (
       # if, for instance, CONFIG_SHELL is bash and it inherits a
       # broken ls alias from the environment.  This has actually
       # happened.  Such a system could not be considered "sane".
-      { echo "configure:943: error: ls -t appears to fail.  Make sure there is not a broken
-alias in your environment" >&5
-  echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
+      {  echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 alias in your environment" >&2
   { false; exit; }; }
    fi
@@ -953,14 +944,12 @@ then
    # Ok.
    :
 else
-   { echo "configure:956: error: newly created file is older than distributed files!
-Check your system clock" >&5
-  echo "configure: error: newly created file is older than distributed files!
+   {  echo "$as_me: error: newly created file is older than distributed files!
 Check your system clock" >&2
   { false; exit; }; }
 fi
 rm -f conftest*
-echo "configure:963: result: yes" >&5
+echo "$as_me:952: result: yes" >&5
 echo "${ECHO_T}yes" >&6
 if test "$program_transform_name" = s,x,x,; then
   program_transform_name=
@@ -981,7 +970,7 @@ test "$program_suffix" != NONE &&
 # sed with no file args requires a program.
 test -z "$program_transform_name" && program_transform_name="s,x,x,"
 
-echo "configure:984: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "$as_me:973: checking whether ${MAKE-make} sets \${MAKE}" >&5
 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
@@ -1001,11 +990,11 @@ fi
 rm -f conftestmake
 fi
 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
-  echo "configure:1004: result: yes" >&5
+  echo "$as_me:993: result: yes" >&5
 echo "${ECHO_T}yes" >&6
   SET_MAKE=
 else
-  echo "configure:1008: result: no" >&5
+  echo "$as_me:997: result: no" >&5
 echo "${ECHO_T}no" >&6
   SET_MAKE="MAKE=${MAKE-make}"
 fi
@@ -1015,8 +1004,7 @@ PACKAGE=autoconf
 VERSION=2.49b
 
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
-  { echo "configure:1018: error: source directory already configured; run \"make distclean\" there first" >&5
-  echo "configure: error: source directory already configured; run \"make distclean\" there first" >&2
+  {  echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2
   { false; exit; }; }
 fi
 
@@ -1029,78 +1017,78 @@ cat >>confdefs.h <<EOF
 EOF
 
 missing_dir=`cd $ac_aux_dir && pwd`
-echo "configure:1032: checking for working aclocal" >&5
+echo "$as_me:1020: checking for working aclocal" >&5
 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
    ACLOCAL=aclocal
-   echo "configure:1039: result: found" >&5
+   echo "$as_me:1027: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    ACLOCAL="$SHELL $missing_dir/missing aclocal"
-   echo "configure:1043: result: missing" >&5
+   echo "$as_me:1031: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:1047: checking for working autoconf" >&5
+echo "$as_me:1035: checking for working autoconf" >&5
 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
    AUTOCONF=autoconf
-   echo "configure:1054: result: found" >&5
+   echo "$as_me:1042: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    AUTOCONF="$SHELL $missing_dir/missing autoconf"
-   echo "configure:1058: result: missing" >&5
+   echo "$as_me:1046: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:1062: checking for working automake" >&5
+echo "$as_me:1050: checking for working automake" >&5
 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (automake --version) < /dev/null > /dev/null 2>&1; then
    AUTOMAKE=automake
-   echo "configure:1069: result: found" >&5
+   echo "$as_me:1057: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    AUTOMAKE="$SHELL $missing_dir/missing automake"
-   echo "configure:1073: result: missing" >&5
+   echo "$as_me:1061: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:1077: checking for working autoheader" >&5
+echo "$as_me:1065: checking for working autoheader" >&5
 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
    AUTOHEADER=autoheader
-   echo "configure:1084: result: found" >&5
+   echo "$as_me:1072: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    AUTOHEADER="$SHELL $missing_dir/missing autoheader"
-   echo "configure:1088: result: missing" >&5
+   echo "$as_me:1076: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:1092: checking for working makeinfo" >&5
+echo "$as_me:1080: checking for working makeinfo" >&5
 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
    MAKEINFO=makeinfo
-   echo "configure:1099: result: found" >&5
+   echo "$as_me:1087: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    MAKEINFO="$SHELL $missing_dir/missing makeinfo"
-   echo "configure:1103: result: missing" >&5
+   echo "$as_me:1091: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
@@ -1115,7 +1103,7 @@ for ac_prog in gm4 gnum4 m4
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
-echo "configure:1118: checking for $ac_word" >&5
+echo "$as_me:1106: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 if test "${ac_cv_path_M4+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1142,10 +1130,10 @@ fi
 M4=$ac_cv_path_M4
 
 if test -n "$M4"; then
-  echo "configure:1145: result: $M4" >&5
+  echo "$as_me:1133: result: $M4" >&5
 echo "${ECHO_T}$M4" >&6
 else
-  echo "configure:1148: result: no" >&5
+  echo "$as_me:1136: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
@@ -1153,7 +1141,7 @@ fi
 done
 test -n "$M4" || M4="m4"
 
-echo "configure:1156: checking whether m4 supports frozen files" >&5
+echo "$as_me:1144: checking whether m4 supports frozen files" >&5
 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
 if test "${ac_cv_prog_gnu_m4+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1165,11 +1153,10 @@ if test x"$M4" != x; then
   esac
 fi
 fi
-echo "configure:1168: result: $ac_cv_prog_gnu_m4" >&5
+echo "$as_me:1156: result: $ac_cv_prog_gnu_m4" >&5
 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
 if test x"$ac_cv_prog_gnu_m4" != xyes; then
-  { echo "configure:1171: error: GNU m4 1.4 is required" >&5
-  echo "configure: error: GNU m4 1.4 is required" >&2
+  {  echo "$as_me: error: GNU m4 1.4 is required" >&2
   { false; exit; }; }
 fi
 # This is needed because Automake does not seem to realize there is
@@ -1180,7 +1167,7 @@ for ac_prog in mawk gawk nawk awk
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
-echo "configure:1183: checking for $ac_word" >&5
+echo "$as_me:1170: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 if test "${ac_cv_prog_AWK+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1202,10 +1189,10 @@ fi
 fi
 AWK=$ac_cv_prog_AWK
 if test -n "$AWK"; then
-  echo "configure:1205: result: $AWK" >&5
+  echo "$as_me:1192: result: $AWK" >&5
 echo "${ECHO_T}$AWK" >&6
 else
-  echo "configure:1208: result: no" >&5
+  echo "$as_me:1195: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
@@ -1213,25 +1200,25 @@ fi
 done
 
 # Generating man pages.
-echo "configure:1216: checking for working help2man" >&5
+echo "$as_me:1203: checking for working help2man" >&5
 echo $ECHO_N "checking for working help2man... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (help2man --version) < /dev/null > /dev/null 2>&1; then
    HELP2MAN=help2man
-   echo "configure:1223: result: found" >&5
+   echo "$as_me:1210: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    HELP2MAN="$SHELL $missing_dir/missing help2man"
-   echo "configure:1227: result: missing" >&5
+   echo "$as_me:1214: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
 # We use a path for perl so the #! line in autoscan will work.
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
-echo "configure:1234: checking for $ac_word" >&5
+echo "$as_me:1221: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 if test "${ac_cv_path_PERL+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1259,18 +1246,18 @@ fi
 PERL=$ac_cv_path_PERL
 
 if test -n "$PERL"; then
-  echo "configure:1262: result: $PERL" >&5
+  echo "$as_me:1249: result: $PERL" >&5
 echo "${ECHO_T}$PERL" >&6
 else
-  echo "configure:1265: result: no" >&5
+  echo "$as_me:1252: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
 if test "$PERL" != no; then
   PERLSCRIPTS=autoscan
 else
-  { echo "configure:1272: WARNING: autoscan will not be built since perl is not found" >&5
-echo "configure: WARNING: autoscan will not be built since perl is not found" >&2; }
+  { echo "$as_me:1259: WARNING: autoscan will not be built since perl is not found" >&5
+echo "$as_me: warning: autoscan will not be built since perl is not found" >&2; }
 fi
 
 # Find a good install program.  We prefer a C program (faster),
@@ -1285,7 +1272,7 @@ fi
 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
-echo "configure:1288: checking for a BSD compatible install" >&5
+echo "$as_me:1275: checking for a BSD compatible install" >&5
 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 if test -z "$INSTALL"; then
 if test "${ac_cv_path_install+set}" = set; then
@@ -1334,7 +1321,7 @@ fi
     INSTALL=$ac_install_sh
   fi
 fi
-echo "configure:1337: result: $INSTALL" >&5
+echo "$as_me:1324: result: $INSTALL" >&5
 echo "${ECHO_T}$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -1467,17 +1454,23 @@ echo "Cache variables:" >&5
 } | sed 's/^/| /' >&5
 echo >&5
 echo "confdefs.h:" >&5
-cat confdefs.h | sed 's/^/| /' >&5
+sed '/^$/d;s/^/| /' confdefs.h >&5
 
 : ${CONFIG_STATUS=./config.status}
-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
-echo creating $CONFIG_STATUS
-cat >$CONFIG_STATUS <<\EOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ echo "$as_me:1462: creating $CONFIG_STATUS" >&5
+echo "creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<\_ACEOF
 #! /bin/sh
 # Generated automatically by configure.
 # Run this file to recreate the current configuration.
 # Compiler output produced by configure, useful for debugging
-# configure, is in ./config.log if it exists.
+# configure, is in config.log if it exists.
+
+debug=false
+as_me=`echo "$0" | sed 's,.*/,,'`
+SHELL=${CONFIG_SHELL-/bin/sh}
 
 # Be Bourne compatible
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
@@ -1513,12 +1506,33 @@ IFS="   $ac_nl"
 # CDPATH.
 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
-debug=false
-me=`echo "$0" | sed 's,.*/,,'`
-SHELL=${CONFIG_SHELL-/bin/sh}
+# File descriptor usage:
+# 0 standard input
+# 1 file creation
+# 2 errors and warnings
+# 3 some systems may open it to /dev/tty
+# 4 used on the Kubota Titan
+# 6 checking for... messages and results
+# 5 compiler messages saved in config.log
+if test "$silent" = yes; then
+  exec 6>/dev/null
+else
+  exec 6>&1
+fi
+exec 5>>config.log
+
+cat >&5 << EOF
+
+----------------------------------------------------------------------
+
+This file was extended by $as_me (Autoconf 2.49b) 2.49b, executed with
+ > $0 $@
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
 EOF
 
+_ACEOF
+
 # Files that config.status was made for.
 if test -n "$ac_config_files"; then
   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
@@ -1539,7 +1553,7 @@ fi
 cat >>$CONFIG_STATUS <<\EOF
 
 ac_cs_usage="\
-\`$me' instantiates files from templates according to the
+\`$as_me' instantiates files from templates according to the
 current configuration.
 
 Usage: $0 [OPTIONS] [FILE]...
@@ -1547,7 +1561,7 @@ Usage: $0 [OPTIONS] [FILE]...
   -h, --help       print this help, then exit
   -V, --version    print version number, then exit
   -d, --debug      don't remove temporary files
-      --recheck    update $me by reconfiguring in the same conditions
+      --recheck    update $as_me by reconfiguring in the same conditions
   --file=FILE[:TEMPLATE]
                    instantiate the configuration file FILE
 
@@ -1559,7 +1573,7 @@ EOF
 
 cat >>$CONFIG_STATUS <<EOF
 ac_cs_version="\\
-$CONFIG_STATUS generated by autoconf version 2.49b.
+$CONFIG_STATUS generated by $as_me (Autoconf 2.49b).
 Configured on host $ac_hostname by
   `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
 
@@ -1600,8 +1614,9 @@ cat >>$CONFIG_STATUS <<\EOF
     echo "$ac_cs_version"; exit 0 ;;
   --he | --h)
     # Conflict between --help and --header
-    echo "$me: ambiguous option: $ac_option
-Try \`$me --help' for more information."; exit 1 ;;
+    {  echo "$as_me: error: ambiguous option: $ac_option
+Try \`$0 --help' for more information." >&2
+  { false; exit; }; };;
   --help | --hel | -h )
     echo "$ac_cs_usage"; exit 0 ;;
   --debug | --d* | -d )
@@ -1624,9 +1639,11 @@ Try \`$me --help' for more information."; exit 1 ;;
   'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
 
   # This is an error.
-  -*) echo "$me: unrecognized option: $1
-Try \`$me --help' for more information."; exit 1 ;;
-  *) echo "$me: invalid argument: $1"; exit 1 ;;
+  -*) {  echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2
+  { false; exit; }; } ;;
+  *) {  echo "$as_me: error: invalid argument: $1" >&2
+  { false; exit; }; };;
   esac
   shift
 done
@@ -1825,9 +1842,13 @@ done; }
   esac
 
   if test x"$ac_file" != x-; then
-    echo creating $ac_file
+    { echo "$as_me:1845: creating $ac_file" >&5
+echo "creating $ac_file" >&6;}
     rm -f "$ac_file"
   fi
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated automatically by config.status.  */
   configure_input="Generated automatically from `echo $ac_file_in |
                                                  sed 's,.*/,,'` by configure."
 
@@ -1842,8 +1863,7 @@ done; }
       -) echo $tmp/stdin ;;
       [\\/$]* | ?:[\\/]*)
          # Absolute
-         test -f "$f" || { echo "configure:1845: error: cannot find input file \\\`$f'" >&5
-  echo "configure: error: cannot find input file \\\`$f'" >&2
+         test -f "$f" || {  echo "$as_me: error: cannot find input file \\\`$f'" >&2
   { false; exit; }; }
          echo $f;;
       *) # Relative
@@ -1855,12 +1875,11 @@ done; }
            echo $ac_given_srcdir/$f
          else
            # /dev/null tree
-           { echo "configure:1858: error: cannot find input file \\\`$f'" >&5
-  echo "configure: error: cannot find input file \\\`$f'" >&2
+           {  echo "$as_me: error: cannot find input file \\\`$f'" >&2
   { false; exit; }; }
          fi;;
       esac
-    done` || { (exit 1); exit; }
+    done` || { false; exit; }
 EOF
 cat >>$CONFIG_STATUS <<EOF
   sed "$ac_vpsub
@@ -1890,8 +1909,7 @@ cat >>$CONFIG_STATUS <<\EOF
 exit 0
 EOF
 chmod +x $CONFIG_STATUS
-rm -fr confdefs* $ac_clean_files
-trap 'exit 1' 1 2 15
+ac_clean_files=$ac_clean_files_save
 
-test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
+test "$no_create" = yes || $SHELL $CONFIG_STATUS || { false; exit; }
 
index 3aba5db0ca5e288db57b8103547969358b96426f..2fcdb5ab39ea662f0d2de93ee7f0f02c50393261 100644 (file)
@@ -83,8 +83,7 @@ CLEANFILES = debug-*.sh macro configure configure.in config.status
 DISTCLEANFILES = atconfig testsuite
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_CLEAN_FILES =  atconfig
-DIST_COMMON =  README Makefile.am Makefile.in atconfig.in configure \
-configure.in
+DIST_COMMON =  README Makefile.am Makefile.in atconfig.in
 
 
 PACKAGE = @PACKAGE@
index dc28a66bc33f70ca6e6611ac5aa8d4f605444cc1..50dd7ba20d2c180868963908df1d150fe69e65a3 100644 (file)
@@ -2,7 +2,7 @@
 
 cat <<EOF
 
-Autoheader, autoupdate...
+Executables (autoheader, autoupdate...)
 
 EOF
 
@@ -31,7 +31,7 @@ EOF
 # So before using `/bin/sh -n' to check our scripts, we first check
 # that `/bin/sh -n' is not broken to death.
 
-AT_SETUP(Syntax of the scripts)
+AT_SETUP([Syntax of the scripts])
 
 # A script that never returns.  We don't care that it never returns,
 # broken /bin/sh loop equally with `false', but it makes it easier to
@@ -61,9 +61,11 @@ if /bin/sh ./syntax.sh; then
   AT_CHECK([/bin/sh -n ../autoreconf], 0)
   AT_CHECK([/bin/sh -n ../autoupdate], 0)
   AT_CHECK([/bin/sh -n ../ifnames],    0)
-  AT_CHECK([/bin/sh -n ../install-sh], 0)
-  AT_CHECK([/bin/sh -n ../mkinstalldirs], 0)
-  AT_CHECK([/bin/sh -n ../missing], 0)
+
+  # These are not built, they are in the src tree.
+  AT_CHECK([/bin/sh -n $top_srcdir/install-sh], 0)
+  AT_CHECK([/bin/sh -n $top_srcdir/mkinstalldirs], 0)
+  AT_CHECK([/bin/sh -n $top_srcdir/missing], 0)
 fi
 
 AT_CLEANUP
@@ -79,7 +81,7 @@ AT_CLEANUP
 # autoheader is intensively used in its modern form throught this
 # test suite.  But we also have to check that acconfig.h still works.
 
-AT_SETUP(autoheader)
+AT_SETUP([autoheader])
 
 AT_DATA(acconfig.h,
 [[/* Define this to whatever you want. */
@@ -165,7 +167,7 @@ AT_CLEANUP
 ## ------------ ##
 
 # Check that AC_CANONICAL_SYSTEM and AC_OUTPUT are properly updated.
-AT_SETUP(autoupdate)
+AT_SETUP([autoupdate])
 
 AT_DATA(configure.in,
 [[AC_INIT
@@ -250,7 +252,7 @@ AT_CLEANUP
 
 # Tracing user defined macros
 # ---------------------------
-AT_SETUP(autoconf --trace)
+AT_SETUP([autoconf --trace])
 
 AT_DATA(configure.in,
 [[define([active], [ACTIVE])
@@ -305,7 +307,7 @@ AT_CLEANUP
 
 # Tracing builtins
 # ----------------
-AT_SETUP(Tracing M4 builtins)
+AT_SETUP([Tracing M4 builtins])
 
 AT_DATA(configure.in,
 [[define([active], [ACTIVE])
@@ -319,7 +321,9 @@ AT_CHECK([[autoconf --autoconf-dir .. -l $at_srcdir -t define |
 
 # FIXME: Without `$1' the following test dies.  Groumphf, once again to
 # dive into obscure feature interaction...
-AT_CHECK([[autoconf --autoconf-dir .. -l $at_srcdir -t define:'$1' -i |
+# Note that using `-i' means we need the *.m4 files, not the *.m4f files,
+# hence we need srcdir, not builddir.
+AT_CHECK([[autoconf --autoconf-dir $top_srcdir -l $at_srcdir -t define:'$1' -i|
             sed -n '$p']],
          0,
 [[active
@@ -334,7 +338,7 @@ AT_CLEANUP
 ## autoconf's ability to catch unexpanded macros.  ##
 ## ----------------------------------------------- ##
 
-AT_SETUP(unexpanded macros)
+AT_SETUP([unexpanded macros])
 
 AT_DATA([configure.in],
 [[AC_PLAIN_SCRIPT()dnl
@@ -364,7 +368,7 @@ AT_CLEANUP(configure)
 ## autoconf's AWK portability.  ##
 ## ---------------------------- ##
 
-AT_SETUP(AWK portability)
+AT_SETUP([AWK portability])
 
 AT_DATA([configure.in],
 [[AC_INIT
@@ -392,7 +396,7 @@ AT_CLEANUP(configure)
 ## ifnames.  ##
 ## --------- ##
 
-AT_SETUP(ifnames)
+AT_SETUP([ifnames])
 
 AT_DATA([iftest1.c],
 [[#ifdef DEF1