* gnulib-tool: Define automake conditional GL_COND_LIBTOOL if
authorSimon Josefsson <simon@josefsson.org>
Fri, 21 Oct 2005 13:14:34 +0000 (13:14 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 21 Oct 2005 13:14:34 +0000 (13:14 +0000)
libtool is used (to be used by modules Makefile.am snippet),
suggested by Bruno Haible <bruno@clisp.org>.
* modules/gc (Makefile.am): Use it.

ChangeLog
gnulib-tool
modules/gc

index 6f21457..bcce75e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2005-10-21  Simon Josefsson  <jas@extundo.com>
 
+       * gnulib-tool: Define automake conditional GL_COND_LIBTOOL if
+       libtool is used (to be used by modules Makefile.am snippet),
+       suggested by Bruno Haible <bruno@clisp.org>.
+
+       * modules/gc (Makefile.am): Use it.
+
+2005-10-21  Simon Josefsson  <jas@extundo.com>
+
        * modules/des, modules/des-tests: New files.
 
        * modules/gc-des, modules/gc-des-tests: New files.
index 971843f..563db84 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2005-10-17 15:44:51 $'
+cvsdatestamp='$Date: 2005-10-21 13:14:35 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -1226,6 +1226,11 @@ func_import ()
     echo "# \"Check for header files, types and library functions\"."
     echo "AC_DEFUN([${macro_prefix}_INIT],"
     echo "["
+    if test -z "$libtool"; then
+      echo "AM_CONDITIONAL(GL_COND_LIBTOOL, false)"
+    else
+      echo "AM_CONDITIONAL(GL_COND_LIBTOOL, true)"
+    fi
     for module in $modules; do
       func_verify_module
       if test -n "$module"; then
@@ -1426,6 +1431,11 @@ func_create_testdir ()
        echo "gl_USE_SYSTEM_EXTENSIONS"
        echo
      fi
+     if test -z "$libtool"; then
+       echo "AM_CONDITIONAL(GL_COND_LIBTOOL, false)"
+     else
+       echo "AM_CONDITIONAL(GL_COND_LIBTOOL, true)"
+     fi
      # We don't have explicit ordering constraints between the various
      # autoconf snippets. It's cleanest to put those of the library before
      # those of the tests.
@@ -1485,6 +1495,11 @@ func_create_testdir ()
      echo "gl_USE_SYSTEM_EXTENSIONS"
      echo
    fi
+   if test -z "$libtool"; then
+     echo "AM_CONDITIONAL(GL_COND_LIBTOOL, false)"
+   else
+     echo "AM_CONDITIONAL(GL_COND_LIBTOOL, true)"
+   fi
    for module in $modules; do
      func_verify_nontests_module
      if test -n "$module"; then
index cb771c3..be59785 100644 (file)
@@ -15,7 +15,11 @@ configure.ac:
 gl_GC
 
 Makefile.am:
+if GL_COND_LIBTOOL
+lib_LIBADD += $(LTLIBGCRYPT)
+else
 lib_LIBADD += $(LIBGCRYPT)
+endif
 
 Include:
 "gc.h"