From: Simon Josefsson Date: Fri, 21 Oct 2005 13:14:34 +0000 (+0000) Subject: * gnulib-tool: Define automake conditional GL_COND_LIBTOOL if X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4cf5e268c6104ac68a680e3d7d9ab3f3ef3f6e;p=pspp * gnulib-tool: Define automake conditional GL_COND_LIBTOOL if libtool is used (to be used by modules Makefile.am snippet), suggested by Bruno Haible . * modules/gc (Makefile.am): Use it. --- diff --git a/ChangeLog b/ChangeLog index 6f21457d12..bcce75edd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-10-21 Simon Josefsson + + * gnulib-tool: Define automake conditional GL_COND_LIBTOOL if + libtool is used (to be used by modules Makefile.am snippet), + suggested by Bruno Haible . + + * modules/gc (Makefile.am): Use it. + 2005-10-21 Simon Josefsson * modules/des, modules/des-tests: New files. diff --git a/gnulib-tool b/gnulib-tool index 971843f7d6..563db84fa3 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -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 diff --git a/modules/gc b/modules/gc index cb771c367d..be59785e70 100644 --- a/modules/gc +++ b/modules/gc @@ -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"