]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
*** empty log message ***
authorGordon Matzigkeit <gord@gnu.ai.mit.edu>
Mon, 30 Jun 1997 12:20:49 +0000 (12:20 +0000)
committerGordon Matzigkeit <gord@gnu.org>
Mon, 30 Jun 1997 12:20:49 +0000 (12:20 +0000)
ChangeLog
PACKAGES
TODO
doc/libtool.texi
libtool.m4
ltconfig.in
ltmain.sh.in

index 19dd2e9cf731d4c25cd060dd547935bd60d338e9..2f6ec8e5d39b2ebe012dfcab3ee2b8e061dd975c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,29 @@
+Sun Jun 29 19:51:50 1997  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
+
+       * ltmain.sh.in: Change all the `eval "$run ..."' sequences to
+       `$run "eval ..."'.
+
+       Change all `$ln_s ...' sequences to use `(cd /dir && $LN_S ...)'.
+       This is the sequence recommended by the Autoconf manual, and
+       should avoid any problems on older machines.  Eliminate all uses
+       of `cp -p'.  Reported by Akim Demaille.
+
+       (install): Use `test $# -gt 0' instead of `test -n "$1"'.
+
+       * ltconfig.in (LN_S): Add test to see if `ln -s' works.
+
+       * libtool.m4: Increment serial number, and require AC_PROG_LN_S.
+
+Thu Jun 26 17:55:26 1997  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
+
+       * ltmain.sh.in (link): Add missing `test' statement.  Reported by
+       Akim Demaille.
+
+Tue Jun 24 14:58:41 1997  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
+
+       * libtool.m4 (LD): Consistently use ac_cv_path_ld instead of
+       am_cv_path_ld.  From Tim Pierce.
+
 Fri Jun 20 08:21:34 1997  Gordon Matzigkeit  <gord@gnu.ai.mit.edu>
 
        * ltmain.sh.in: Redo two robustness fixes.  Alexandre had the
index 369b3e291024e20e7e638ef6a56cb676aa49c3ca..71cf52549ff2a47f73c26337556e6c83939b7e99 100644 (file)
--- a/PACKAGES
+++ b/PACKAGES
@@ -8,6 +8,7 @@ The GNU Guile project.
 GTK+ and GIMP (Generic Image Manipulation Program).
    http://www.xcf.berkeley.edu/~gimp/gimp.html
 SANE (Scanner Access Now Easy):  http://www.azstarnet.com/~davidm/
+PalmOS/Pilot pilot-link: ftp://ryeham.ee.ryerson.ca/pub/PalmOS/
 
 Nonfree:
 ========
diff --git a/TODO b/TODO
index dc77026e6d2ca40396d80c14fd0dd46ea7b86c94..8da2531eb75f73608e41ff73ee2da9a557305752 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,17 +1,16 @@
+* Another form of convenience library, suggested by Alexandre Oliva,
+is to have undocumented utility libraries, where only the shared
+version is installed.
+
 * A better check to detect broken collect2 on AIX, once the bug is
 fixed in GCC.
 
 * We could use libtool object convenience libraries that resolve
 symbols to be included in a libtool archive.
 
-* Another form of convenience library, suggested by Alexandre Oliva,
-is to have undocumented utility libraries, where only the shared
-version is installed.
-
-* Finish up the dlname mode, and get it integrated with DLD.  We need
-a way for different major versions of the same .la to coexist.  This
-also involves writing a better uninstall mode, so that nothing
-breaks.
+* Delete dlname mode, and integrate DLD support.  We need a way for
+different major versions of the same .la to coexist.  This also
+involves writing a better uninstall mode, so that nothing breaks.
 
 * Implement full multi-language support.  Currently, this is only for
 C++, but there are beginnings of this in the manual (Other Languages).
index fea5b5b366a51abfbe77d276a7c4e92aacb7d518..8f35f270c0a5af62e98f92cfca18a476087e4325 100644 (file)
@@ -1465,7 +1465,6 @@ Function Checks, The Autoconf Manual, autoconf, The Autoconf
 Manual}), and a few other functions.
 @end defvar
 
-
 Unfortunately, the most recent version of Autoconf (2.12, at the time of
 this writing) does not have any way for libtool to provide support for
 these variables.  So, if you depend on them, use the following code
@@ -1473,9 +1472,9 @@ immediately before the call to @code{AC_OUTPUT} in your
 @file{configure.in}:
 
 @example
-LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
+LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
 AC_SUBST(LTLIBOBJS)
-LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/\.lo/g'`
+LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'`
 AC_SUBST(LTALLOCA)
 AC_OUTPUT(@dots{})
 @end example
index 1f79ea7e7903ea398cc3ffb00a73f5c11ac30b08..3a8fa807e2ee666c465fd50f7f84be5ceb1e466e 100644 (file)
 ## configuration script generated by Autoconf, you may include it under
 ## the same distribution terms that you use for the rest of that program.
 
-# serial 7 AM_PROG_LIBTOOL
+# serial 8 AM_PROG_LIBTOOL
 AC_DEFUN(AM_PROG_LIBTOOL,
 [AC_REQUIRE([AC_CANONICAL_HOST])
 AC_REQUIRE([AC_PROG_CC])
 AC_REQUIRE([AC_PROG_RANLIB])
 AC_REQUIRE([AM_PATH_PROG_LD])
+AC_REQUIRE([AC_PROG_LN_S])
 
 # Always use our own libtool.
 LIBTOOL='$(top_builddir)/libtool'
@@ -66,7 +67,8 @@ test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
 esac]
 
 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
-CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LD="$LD" RANLIB="$RANLIB" \
+CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
+LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
 || AC_MSG_ERROR([libtool configure failed])
@@ -76,7 +78,7 @@ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
 AC_DEFUN(AM_PATH_PROG_LD,
 [AC_REQUIRE([AC_PROG_CC])
 AC_MSG_CHECKING([for ld used by the C compiler ($CC $CFLAGS $LDFLAGS)])
-AC_CACHE_VAL(am_cv_path_LD,
+AC_CACHE_VAL(ac_cv_path_LD,
 [case "$LD" in
   /*)
   ac_cv_path_LD="$LD" # Let the user override the test with a path.
@@ -90,11 +92,11 @@ AC_CACHE_VAL(am_cv_path_LD,
       # but apparently some GNU ld's only accept -v.
       if "$ac_dir/ld" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
         # If it was GNU ld, only accept it if we're using GCC.
-        am_cv_path_LD="$ac_dir/ld"
+        ac_cv_path_LD="$ac_dir/ld"
        test "$ac_cv_prog_gcc" = yes && break
       else
         # If it was not GNU ld, and we are not using GCC, then accept it.
-        am_cv_path_LD="$ac_dir/ld"
+        ac_cv_path_LD="$ac_dir/ld"
         break
       fi
     fi
@@ -102,7 +104,7 @@ AC_CACHE_VAL(am_cv_path_LD,
   IFS="$ac_save_ifs"
   ;;
 esac])
-LD="$am_cv_path_LD"
+LD="$ac_cv_path_LD"
 if test -n "$LD"; then
   AC_MSG_RESULT($LD)
 else
index fb6fec90eadffb19906d285b485f3c00183f3dd7..98bfd4b5ed7ec592bbc4f3247425411029bd1124 100755 (executable)
@@ -59,6 +59,7 @@ old_CC="$CC"
 old_CFLAGS="$CFLAGS"
 old_CPPFLAGS="$CPPFLAGS"
 old_LD="$LD"
+old_LN_S="$LN_S"
 old_RANLIB="$RANLIB"
 
 test -z "$AR" && AR=ar
@@ -532,6 +533,23 @@ if test -z "$LD"; then
   fi
 fi
 
+if test -z "$LN_S"; then
+  # Check to see if we can use ln -s, or we need hard links.
+  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
+  rm -f conftestdata
+  if ln -s X conftestdata 2>/dev/null; then
+    rm -f conftestdata
+    LN_S="ln -s"
+  else
+    LN_S=ln
+  fi
+  if test "$LN_S" = "ln -s"; then
+    echo "$ac_t"yes 1>&6
+  else
+    echo "$ac_t"no 1>&6
+  fi
+fi
+
 # See if we're really using GNU ld.
 with_gnu_ld=no
 # Allow LD to be a program name with arguments.
@@ -908,7 +926,8 @@ cat <<EOF > $ofile
 # This program was configured as follows,
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 #
-# CC="$old_CC" CFLAGS="$old_CFLAGS" LD="$old_LD" RANLIB="$old_RANLIB" \\
+# CC="$old_CC" CFLAGS="$old_CFLAGS" CPPFLAGS="$old_CPPFLAGS" \\
+# LD="$old_LD" RANLIB="$old_RANLIB" LN_S="$old_LN_S" \\
 #   $0$ltconfig_args
 #
 # Compiler and other test output produced by $progname, useful for
@@ -933,6 +952,9 @@ AR='$AR'
 # The linker used to build libraries.
 LD='$LD'
 
+# Whether we need hard or soft links.
+LN_S='$LN_S'
+
 # How to create reloadable object files.
 reload_flag='$reload_flag'
 reload_cmds='$reload_cmds'
index fa3349420b5389b81496ff10301ed5e112e200e3..c83c1fdca29968e4629e1b16232a2200c0eb7c11 100644 (file)
@@ -32,8 +32,6 @@ VERSION=@VERSION@
 
 default_mode=NONE
 help="Try \`$progname --help' for more information."
-ln_s="ln -s"
-cp_p="cp -p"
 magic="%%%MAGIC variable%%%"
 mkdir="mkdir"
 mv="mv -f"
@@ -247,7 +245,7 @@ if test -z "$show_help"; then
     if test "$build_libtool_libs" = yes; then
       # All platforms use -DPIC, to notify preprocessed assembler code.
       $show "$base_compile$pic_flag -DPIC $srcfile"
-      if eval "$run $base_compile$pic_flag -DPIC $srcfile"; then :
+      if $run eval "$base_compile$pic_flag -DPIC $srcfile"; then :
       else
        test -n "$obj" && $run $rm $obj
        exit 1
@@ -255,8 +253,8 @@ if test -z "$show_help"; then
 
       # If we have no pic_flag, then copy the object into place and finish.
       if test -z "$pic_flag"; then
-       $show "$ln_s $obj $libobj"
-       $run $ln_s $obj $libobj || $run $cp_p $obj $libobj
+       $show "$LN_S $obj $libobj"
+       $run $LN_S $obj $libobj
        exit $?
       fi
 
@@ -268,7 +266,7 @@ if test -z "$show_help"; then
     # Only build a position-dependent object if we build old libraries.
     if test "$build_old_libs" = yes; then
       $show "$base_compile $srcfile"
-      if eval "$run $base_compile $srcfile"; then :
+      if $run eval "$base_compile $srcfile"; then :
       else
         $run $rm $obj $libobj
         exit 1
@@ -279,7 +277,7 @@ if test -z "$show_help"; then
     # link it into a program.
     if test "$build_libtool_libs" != yes; then
       $show "echo timestamp > $libobj"
-      eval "$run echo timestamp > $libobj" || exit $?
+      $run eval "echo timestamp > $libobj" || exit $?
     fi
 
     exit 0
@@ -730,7 +728,7 @@ if test -z "$show_help"; then
 
       # Check to see if the archive will have undefined symbols.
       if test "$allow_undefined" = yes; then
-       if "$allow_undefined_flag" = unsupported; then
+       if test "$allow_undefined_flag" = unsupported; then
          echo "$progname: warning: undefined symbols not allowed in $host shared libraries" 1>&2
          build_libtool_libs=no
        fi
@@ -756,7 +754,7 @@ if test -z "$show_help"; then
        linknames=
        for link
        do
-         linknames="$linknames $objdir/$link"
+         linknames="$linknames $link"
        done
 
        # Use standard objects if they are PIC.
@@ -768,14 +766,14 @@ if test -z "$show_help"; then
        for cmd in $cmds; do
          IFS="$save_ifs"
          $show "$cmd"
-         eval "$run $cmd" || exit $?
+         $run eval "$cmd" || exit $?
        done
        IFS="$save_ifs"
 
        # Create links to the real library.
        for link in $linknames; do
-         $show "$ln_s $realname $link"
-         $run $ln_s $realname $link || exit $?
+         $show "(cd $objdir && $LN_S $realname $link)"
+         $run eval "(cd $objdir && $LN_S $realname $link)" || exit $?
        done
 
        # If -export-dynamic was specified, set the dlname.
@@ -831,7 +829,7 @@ if test -z "$show_help"; then
       for cmd in $cmds; do
         IFS="$save_ifs"
         $show "$cmd"
-       eval "$run $cmd" || exit $?
+       $run eval "$cmd" || exit $?
       done
       IFS="$save_ifs"
 
@@ -842,7 +840,7 @@ if test -z "$show_help"; then
         # Create an invalid libtool object if no PIC, so that we don't
         # accidentally link it into a program.
        $show "echo timestamp > $libobj"
-       eval "$run echo timestamp > $libobj" || exit $?
+       $run eval "echo timestamp > $libobj" || exit $?
        exit 0
       fi
 
@@ -855,13 +853,13 @@ if test -z "$show_help"; then
         for cmd in $cmds; do
           IFS="$save_ifs"
           $show "$cmd"
-          eval "$run $cmd" || exit $?
+          $run eval "$cmd" || exit $?
         done
         IFS="$save_ifs"
       else
         # Just create a symlink.
-        $show "$ln_s $obj $libobj"
-        $run $ln_s $obj $libobj || $run $cp_p $obj $libobj || exit 1
+        $show "$LN_S $obj $libobj"
+        $run $LN_S $obj $libobj || exit 1
       fi
 
       exit 0
@@ -961,7 +959,7 @@ if test -z "$show_help"; then
       esac
 
       $show "$compile_command"
-      eval "$run $compile_command" || exit $?
+      $run eval "$compile_command" || exit $?
 
       # Now create the wrapper script.
       echo "creating $output"
@@ -1068,7 +1066,7 @@ EOF
       for cmd in $cmds; do
         IFS="$save_ifs"
         $show "$cmd"
-       eval "$run $cmd" || exit $?
+       $run eval "$cmd" || exit $?
       done
       IFS="$save_ifs"
     fi
@@ -1108,8 +1106,8 @@ EOF
 
       # Do a symbolic link so that the libtool archive can be found in
       # LD_LIBRARY_PATH before the program is installed.
-      $show "$ln_s ../$output $objdir/$output"
-      $run $ln_s ../$output $objdir/$output || $run $cp_p ../$output $objdir/$output || exit 1
+      $show "(cd $objdir && $LN_S ../$output $output)"
+      $run eval "(cd $objdir && $LN_S ../$output $output)" || exit 1
       ;;
     esac
     exit 0
@@ -1278,7 +1276,7 @@ EOF
 
          # Install the shared library and build the symlinks.
          $show "$install_prog $dir/$realname $destdir/$realname"
-         eval "$run $install_prog $dir/$realname $destdir/$realname" || exit $?
+         $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
          test "X$dlname" = "X$realname" && dlname=
 
          # Support stripping libraries.
@@ -1291,7 +1289,7 @@ EOF
            fi
          fi
 
-         if test -n "$1"; then
+         if test $# -gt 0; then
            # Delete the old symlinks.
             rmcmd="$rm"
             for linkname
@@ -1305,15 +1303,15 @@ EOF
            for linkname
            do
              test "X$dlname" = "X$linkname" && dlname=
-             $show "$ln_s $realname $destdir/$linkname"
-             $run $ln_s $realname $destdir/$linkname
+             $show "(cd $destdir && $LN_S $realname $linkname)"
+             $run eval "(cd $destdir && $LN_S $realname $linkname)"
            done
          fi
 
          if test -n "$dlname"; then
            # Install the dynamically-loadable library.
            $show "$install_prog $dir/$dlname $destdir/$dlname"
-           eval "$run $install_prog $dir/$dlname $destdir/$dlname" || exit $?
+           $run eval "$install_prog $dir/$dlname $destdir/$dlname" || exit $?
          fi
 
          # Do each command in the postinstall commands.
@@ -1323,7 +1321,7 @@ EOF
          for cmd in $cmds; do
            IFS="$save_ifs"
            $show "$cmd"
-           eval "$run $cmd" || exit $?
+           $run eval "$cmd" || exit $?
          done
          IFS="$save_ifs"
        fi
@@ -1478,7 +1476,7 @@ EOF
       for cmd in $cmds; do
         IFS="$save_ifs"
         $show "$cmd"
-        eval "$run $cmd" || exit $?
+        $run eval "$cmd" || exit $?
       done
       IFS="$save_ifs"
     done
@@ -1567,7 +1565,7 @@ EOF
        for cmd in $cmds; do
          IFS="$save_ifs"
          $show "$cmd"
-         eval "$run $cmd"
+         $run eval "$cmd"
        done
        IFS="$save_ifs"
       done