[Mono-dev] [PATCH] fix libtool usage in configure.in
Olaf Hering
olh at suse.de
Thu Aug 7 14:59:09 EDT 2008
Don't use libtool before it is created. Fixes error like this:
./configure: line 2874: ./libtool: No such file or directory
---
configure.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/configure.in
+++ b/configure.in
@@ -49,8 +49,6 @@ libmono_cflags=""
libmono_ldflags=""
AC_SUBST(libmono_cflags)
AC_SUBST(libmono_ldflags)
-export_ldflags=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
-AC_SUBST(export_ldflags)
# Variable to have relocatable .pc files (lib, or lib64)
reloc_libdir=`basename ${libdir}`
@@ -303,6 +301,10 @@ AM_PROG_LIBTOOL
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
DOLT
+m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
+export_ldflags=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
+AC_SUBST(export_ldflags)
+
# Test whenever ld supports -version-script
AC_PROG_LD
AC_PROG_LD_GNU
More information about the Mono-devel-list
mailing list