Provide defaults where needed.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Sep 2005 17:28:31 +0000 (17:28 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Sep 2005 17:28:31 +0000 (17:28 +0000)
ChangeLog
gnulib-tool

index f093a9ea96382239476ca42ace87510e81719dbb..5f3db55932bc2eee2437b780338e0814995235fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-02  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (import): In the other first-use case, provide defaults
+       as well.
+
 2005-09-02  Simon Josefsson  <jas@extundo.com>
 
        * modules/havelib: New module.
index 0bc390891c384ecc5585f43d473c254f729c84ef..e6270b6ed404d50fe4c5a6b788fa904ed17b073b 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2005-09-02 11:18:48 $'
+cvsdatestamp='$Date: 2005-09-02 17:28:31 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -1485,6 +1485,12 @@ case $mode in
     if test -n "$m4base"; then
       # Apply func_import to a particular gnulib directory.
       # Any number of additional modules can be given.
+      if test ! -f "$destdir/$m4base"/gnulib-cache.m4; then
+        # First use of gnulib in the given m4base.
+        test -n "$supplied_libname" || supplied_libname=true
+        test -n "$sourcebase" || sourcebase="lib"
+        test -n "$macro_prefix" || macro_prefix="gl"
+      fi
       func_import "$*"
     else
       # Apply func_import to all gnulib directories.