]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/foreign.at: New file.
authorAkim Demaille <akim@epita.fr>
Tue, 19 Dec 2000 08:14:19 +0000 (08:14 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 19 Dec 2000 08:14:19 +0000 (08:14 +0000)
ChangeLog
tests/foreign.at [new file with mode: 0644]

index 8a78f880127a4c2574cea5599e6431634108e620..46d0eb3c4844aefadfd355f36d0f915d18eee50e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-12-19  Akim Demaille  <akim@epita.fr>
+
+       * tests/foreign.at: New file.
+
 2000-12-19  Akim Demaille  <akim@epita.fr>
 
        * tests/atgeneral.m4 (AT_BANNER, AT_CLEANUP): Formatting changes.
diff --git a/tests/foreign.at b/tests/foreign.at
new file mode 100644 (file)
index 0000000..6ddd0f5
--- /dev/null
@@ -0,0 +1,69 @@
+#                                                      -*- autoconf -*-
+
+AT_BANNER([Compatibility with other tools.])
+
+## -------------------- ##
+## Autoconf & Libtool.  ##
+## -------------------- ##
+
+AT_SETUP([[Autoconf & Libtool]])
+
+# Skip this test if there is no libtoolize.
+AT_CHECK([libtoolize --version || exit 77], 0, ignore, ignore)
+
+# Using a configure.in, have libtoolize confess where libtool.m4 is.
+AT_DATA([configure.in],
+[[AC_INIT
+AC_CONFIG_AUX_DIR(.)
+AC_PROG_LIBTOOL
+]])
+AT_CHECK([libtoolize | sed -n ["s,^.*\`\(/[^']*\)'.*,\1,p"] >at-path],
+         0, [], ignore)
+
+# Build the concatenation of libtool.m4 and configure.in.
+cp `cat at-path` configure.in
+cat >>configure.in <<_EOF
+AC_INIT
+AC_CONFIG_AUX_DIR(.)
+AC_PROG_LIBTOOL
+_EOF
+
+AT_CHECK_AUTOCONF
+
+touch install-sh
+AT_CHECK_CONFIGURE
+
+AT_CLEANUP(install-sh ltconfig libtool at-path ltmain.sh config.guess config.sub)
+#                                                      -*- autoconf -*-
+
+AT_BANNER([Compatility with other tools.])
+
+## -------------------- ##
+## Autoconf & Libtool.  ##
+## -------------------- ##
+
+AT_SETUP([[Autoconf & Libtool]])
+
+# Skip this test if there is no libtoolize.
+AT_CHECK([libtoolize --version || exit 77], 0, ignore, ignore)
+
+# Using a configure.in, have libtoolize confess where libtool.m4 is.
+AT_DATA([configure.in],
+[[AC_INIT
+AC_CONFIG_AUX_DIR(.)
+AC_PROG_LIBTOOL
+]])
+AT_CHECK([libtoolize >libtoolize.log 2>&1], 0)
+
+# Build the concatenation of libtool.m4 and configure.in.
+cp `sed -n [s,^.*\`\(/[^\']*\)\'.*/\1/p] libtoolize.log` configure.in
+cat >>configure.in <<_EOF
+AC_INIT
+AC_CONFIG_AUX_DIR(.)
+AC_PROG_LIBTOOL
+_EOF
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE
+
+AT_CLEANUP(libtoolize.log)