From d91f2b4e9041538400e2703a2a6fbeecdb8ee27d Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Mon, 14 Apr 2008 13:31:22 -0700 Subject: Fix fallback to libtool. --- dolt.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dolt.m4 b/dolt.m4 index 2f5d9db..1195da3 100644 --- a/dolt.m4 +++ b/dolt.m4 @@ -28,6 +28,8 @@ amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;; esac if test x$dolt_supported = xno ; then AC_MSG_RESULT([no, falling back to libtool]) + LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)' + LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)' else AC_MSG_RESULT([yes, replacing libtool]) @@ -127,9 +129,9 @@ __DOLTCOMPILE__EOF__ dnl Done writing out doltcompile; substitute it for libtool compilation. chmod +x doltcompile LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' - AC_SUBST(LTCOMPILE) LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' - AC_SUBST(LTCXXCOMPILE) fi +AC_SUBST(LTCOMPILE) +AC_SUBST(LTCXXCOMPILE) # end dolt ]) -- cgit v1.2.3