[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Test Libtool
From: |
Akim Demaille |
Subject: |
FYI: Test Libtool |
Date: |
16 Dec 2000 08:44:25 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
This is a sketch, I guess people will have plenty of good ideas on how
to strengthen this.
Index: ChangeLog
from Akim Demaille <address@hidden>
* foreign.at: New file.
Index: tests/Makefile.am
--- tests/Makefile.am Fri, 15 Dec 2000 20:12:17 +0100 akim (ace/b/17_Makefile.a
1.36 644)
+++ tests/Makefile.am Fri, 15 Dec 2000 19:32:22 +0100 akim (ace/b/17_Makefile.a
1.36 644)
@@ -23,7 +23,7 @@
SUITE = suite.at \
m4sugar.at m4sh.at \
base.at tools.at torture.at compile.at semantics.at syntax.at \
- update.at
+ update.at foreign.at
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.
Index: tests/suite.at
--- tests/suite.at Fri, 15 Dec 2000 20:12:17 +0100 akim (ace/b/20_suite.m4 1.20
644)
+++ tests/suite.at Fri, 15 Dec 2000 19:32:22 +0100 akim (ace/b/20_suite.m4 1.20
644)
@@ -46,3 +46,6 @@
# Checking that updating an obsolete macro produces a valid configure.in
m4_include([update.at])
+
+# Compatibility with foreign tools.
+m4_include([foreign.at])
Index: tests/foreign.at
--- tests/foreign.at Fri, 15 Dec 2000 20:15:06 +0100 akim ()
+++ tests/foreign.at Fri, 15 Dec 2000 20:14:08 +0100 akim (ace/c/1_foreign.at
644)
@@ -0,0 +1,36 @@
+# -*- 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)
- FYI: Test Libtool,
Akim Demaille <=