[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] uncooperating autoconf/libtool exeext tests
From: |
Lars J. Aas |
Subject: |
[PATCH] uncooperating autoconf/libtool exeext tests |
Date: |
Thu, 11 Jan 2001 18:27:19 +0100 |
User-agent: |
Mutt/1.2.5i |
Libtool 1.3.5 comes with it's own poor exe extension test (ltconfig).
The Autoconf macro detects the correct exe-ext, but later when libtool
is being configured, libtool doesn't inherit what configure already
has detected, except if you use a cache file. You're OK with the default
behaviour if you use Autoconf 2.13, but not with the latest CVS Autoconf
in other words.
To make Autoconf's tests override the ltconfig tests, we only need to
export the variable $ac_cv_exeext. I therefore propose the following
patch for CVS Autoconf:
2001-01-11 Lars J. Aas <address@hidden>
* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,_AC_COMPILER_EXEEXT_O):
Export ac_cv_exeext to environment to override incorrect exeext
test in ltconfig from libtool-1.3.5.
Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.106
diff -u -r1.106 aclang.m4
--- aclang.m4 2001/01/11 15:17:13 1.106
+++ aclang.m4 2001/01/11 17:23:49
@@ -659,6 +659,7 @@
case $ac_file in
*.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
*) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
+ export ac_cv_exeext
break;;
esac
done],
@@ -684,6 +685,7 @@
case $ac_file in
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
*) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
+ export ac_cv_exeext
break;;
esac
done],
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] uncooperating autoconf/libtool exeext tests,
Lars J. Aas <=