set a variable LIBTOOL in Make.inc.in, so that the later
authoraland <aland>
Mon, 21 Feb 2000 23:45:42 +0000 (23:45 +0000)
committeraland <aland>
Mon, 21 Feb 2000 23:45:42 +0000 (23:45 +0000)
make files will NOT have to set an explicit path via '../../....',
and can just use $(LIBTOOL), which looks nicer.

No make files use libtool yet, but the patches look small.

Make.inc.in
configure.in

index 43aa97a..a70a723 100644 (file)
@@ -24,6 +24,10 @@ INCLUDE              =
 CFLAGS         = $(INCLUDE) @CFLAGS@
 LIBPREFIX      = @LIBPREFIX@
 
+LIBTOOL                = @LIBTOOL@
+LT_COMPILE     = $(LIBTOOL) -mode=compile
+LT_LINK                = $(LIBTOOL) -mode=link
+
 PTHREADLIB     = @PTHREADLIB@
 LCRYPT         = @CRYPTLIB@
 LDBM           = @DBMLIB@
index 9dad4ec..0b66759 100644 (file)
@@ -25,6 +25,9 @@ if test "$GCC" = "yes"; then
     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
 fi
 
+dnl Figure out how to build shared libraries
+AC_PROG_LIBTOOL
+
 dnl extra argument: --with-logdir
 logdir='${localstatedir}/log'
 AC_MSG_CHECKING(logdir)
@@ -476,6 +479,13 @@ AC_SUBST(MODULE_CFLAGS)
 AC_SUBST(MODULE_LDFLAGS)
 AC_SUBST(MODULE_HAVE_DLERROR)
 
+dnl #
+dnl # Figure out where libtool is located,
+dnl # and set the LT_COMPILE and LT_LINK flags.
+dnl #
+LIBTOOL="/bin/sh `pwd`/libtool"
+AC_SUBST(LIBTOOL)
+
 AC_OUTPUT(\
        
        ./Make.inc \