libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autotools versions and WORKING_LIBOBJ_SUPPORT


From: Ralf Wildenhues
Subject: autotools versions and WORKING_LIBOBJ_SUPPORT
Date: Tue, 21 Mar 2006 21:07:48 +0100
User-agent: Mutt/1.5.9i

We know Autoconf-2.60+ and Automake-1.10+ will have LIBOBJDIR support,
so it's ok to at least add a conservative check to save future uses
from having to type as much.  :)

OK?

Cheers,
Ralf

        * bootstrap: Enable `WORKING_LIBOBJ_SUPPORT' if we detect
        Autoconf-2.60+ and Automake-1.10+.

Index: bootstrap
===================================================================
RCS file: /cvsroot/libtool/libtool/bootstrap,v
retrieving revision 1.76
diff -u -r1.76 bootstrap
--- bootstrap   23 Jan 2006 18:33:57 -0000      1.76
+++ bootstrap   19 Mar 2006 20:00:34 -0000
@@ -27,6 +27,8 @@
 SHELL=${CONFIG_SHELL-/bin/sh}
 export SHELL
 : ${AUTORECONF=autoreconf}
+: ${AUTOCONF=autoconf}
+: ${AUTOMAKE=automake}
 : ${AUTOM4TE=autom4te}
 : ${MAKE=make}
 : ${GREP=grep}
@@ -89,6 +91,13 @@
 # Workaround for missing LIBOBJDIR support in Autoconf 2.59, Automake 1.9.6:
 # Have symlinks of the libobj files in top source dir.
 # Set WORKING_LIBOBJ_SUPPORT=: when calling bootstrap if you have fixed tools.
+case `($AUTOCONF --version) 2>/dev/null` in
+  *\ 2.[5-9][0-9]* | *\ [3-9].[0-9]*)
+  case `($AUTOMAKE --version) 2>/dev/null` in
+    *\ 1.1[0-9]* | *\ [2-9].[0-9]*)
+      WORKING_LIBOBJ_SUPPORT=: ;;
+  esac ;;
+esac
 for file in argz.c lt__dirent.c lt__strl.c; do
   rm -f $file
   $WORKING_LIBOBJ_SUPPORT || $LN_S libltdl/$file $file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]