]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Be robust to missing
authorAkim Demaille <akim@epita.fr>
Fri, 20 Apr 2001 13:07:09 +0000 (13:07 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 20 Apr 2001 13:07:09 +0000 (13:07 +0000)
or broken autoupdate.
* tests/tools.at: Likewise.
* tests/Makefile.am (CLEANFILES): Also clean Libtool files.

ChangeLog
configure
tests/Makefile.am
tests/Makefile.in
tests/atspecific.m4
tests/tools.at

index 2744f72cc10b1227b36be110e71b27d277727897..bb64f7af7f806c6d1fe63580c85ce64b63899957 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-20  Nicolas Joly  <njoly@pasteur.fr>
+
+       * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Be robust to missing
+       or broken autoupdate.
+       * tests/tools.at: Likewise.
+       * tests/Makefile.am (CLEANFILES): Also clean Libtool files.
+
 2001-04-18  Tim Van Holder  <tim.van.holder@pandora.be>
 
        * acgeneral.m4 (_AC_INIT_SRCDIR): Handle
index 49e5f7b64a313d35cada030ca80d1534722f5411..d53fcc5445005fd60006db09345d1812326e0086 100755 (executable)
--- a/configure
+++ b/configure
@@ -496,7 +496,7 @@ if test -z "$srcdir"; then
   ac_srcdir_defaulted=yes
   # Try the directory containing this script, then its parent.
   ac_prog=$0
-  ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
+  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
   srcdir=$ac_confdir
   if test ! -r $srcdir/$ac_unique_file; then
@@ -514,7 +514,7 @@ if test ! -r $srcdir/$ac_unique_file; then
    { (exit 1); exit 1; }; }
   fi
 fi
-srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 ac_env_build_alias_set=${build_alias+set}
 ac_env_build_alias_value=$build_alias
 ac_cv_env_build_alias_set=${build_alias+set}
index b102499ca51257395b23bada8d062ca461c11d12..e48a3c46fe38cf6805b67e89388eaf7a2e66ffc9 100644 (file)
@@ -76,7 +76,8 @@ actypes.at: mktests.sh $(MACRO_FILES)
 
 CLEANFILES = debug-*.sh macro configure configure.in configure.ac \
              config.status config.cache config.log config.h.in config.h \
-             stderr stdout empty
+             stderr stdout empty \
+            config.guess config.sub expr libtool ltconfig ltmain.sh install-sh
 DISTCLEANFILES = atconfig testsuite
 
 
index e60d8b52006e85d51d7992f3724dc227b0b7233d..e98cab8f6111a0caa65e25ddef9230b13c91ca67 100644 (file)
@@ -84,12 +84,12 @@ EXTRA_DIST = README              atgeneral.m4 atspecific.m4 aclocal.m4
 MACRO_FILES = ../acgeneral.m4               ../acspecific.m4               ../acfunctions.m4               ../aclang.m4               ../acheaders.m4               ../actypes.m4
 
 
-CLEANFILES = debug-*.sh macro configure configure.in configure.ac              config.status config.cache config.log config.h.in config.h              stderr stdout empty
+CLEANFILES = debug-*.sh macro configure configure.in configure.ac              config.status config.cache config.log config.h.in config.h              stderr stdout empty          config.guess config.sub expr libtool ltconfig ltmain.sh install-sh
 
 DISTCLEANFILES = atconfig testsuite
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_CLEAN_FILES =  atconfig
-DIST_COMMON =  README Makefile.am Makefile.in atconfig.in configure
+DIST_COMMON =  README Makefile.am Makefile.in atconfig.in
 
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
index 63935b05c0e4478abed3a4da257415650dee919a..8edddbeaed531deed6419e7835127f67d9994edc 100644 (file)
@@ -104,7 +104,8 @@ m4_define([AT_CHECK_DEFINES],
 # AT_CHECK_AUTOUPDATE
 # -------------------
 m4_define([AT_CHECK_AUTOUPDATE],
-[AT_CHECK([autoupdate --autoconf-dir $at_top_srcdir], 0,
+[AT_CHECK([autoupdate --version || exit 77], ignore, ignore, ignore)
+ AT_CHECK([autoupdate --autoconf-dir $at_top_srcdir], 0,
           [], [autoupdate: `configure.ac' is updated
 ])])
 
index bef9dbbc28001ccf05b8acf52066c1f1a525a769..cc170795b6c0e1697ce7bdb538216b12fe1bf0e8 100644 (file)
@@ -431,9 +431,7 @@ AC_OUTPUT
 ]])
 
 # Checking `autoupdate'.
-AT_CHECK([autoupdate --autoconf-dir $top_srcdir], 0, [],
-         [autoupdate: `configure.ac' is updated
-])
+AT_CHECK_AUTOUPDATE
 AT_CHECK([cat configure.ac], 0, [expout])
 # Checking that `autoupdate' is idempotent
 AT_CHECK([autoupdate --autoconf-dir $top_srcdir], 0, [],
@@ -460,9 +458,7 @@ AT_DATA(dst2, dst2
 )
 
 # Checking `autoupdate'.
-AT_CHECK([autoupdate --autoconf-dir $top_srcdir], 0, [],
-         [autoupdate: `configure.ac' is updated
-])
+AT_CHECK_AUTOUPDATE
 AT_CHECK_AUTOCONF
 AT_CHECK_CONFIGURE
 AT_CHECK([cat src1], 0, [dst1
@@ -481,6 +477,7 @@ cat >expout <<EOF
 AC_PREREQ($at_version)
 EOF
 
+AT_CHECK([autoupdate --version || exit 77], ignore, ignore, ignore)
 AT_CHECK([echo "AC_PREREQ(1.0)" |
             autoupdate --autoconf-dir $top_srcdir -],
          0, [expout], [])