]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (ac_cv_sys_global_symbol_pipe): accept TAB in
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 4 Feb 1999 15:09:14 +0000 (15:09 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 4 Feb 1999 15:09:14 +0000 (15:09 +0000)
addition to space as separator, and allow more than one space
between the symbol code and the symbol name; HP/UX's nm, for
example, uses two spaces
* ltconfig.in (global_symbol_pipe): ditto
(bsdi4, deplibs_check_method): variable name was misspelled
* libltdl/configure.in (libltdl_cv_preloaded_symbols): rewrite
test, so as not to depend on the way global_symbol_pipe is
initialized; the current test would get false positives, as
global_symbol_pipe was initialized `x=""', not `x='

ChangeLog
libltdl/configure.in
libtool.m4
ltconfig.in

index 743778627a457e072da23191249700b5afddec13..172e1278a220a1284da6e9bc8d17f5597f4997a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 1999-02-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libtool.m4 (ac_cv_sys_global_symbol_pipe): accept TAB in
+       addition to space as separator, and allow more than one space
+       between the symbol code and the symbol name; HP/UX's nm, for
+       example, uses two spaces
+       * ltconfig.in (global_symbol_pipe): ditto
+       (bsdi4, deplibs_check_method): variable name was misspelled
+       * libltdl/configure.in (libltdl_cv_preloaded_symbols): rewrite
+       test, so as not to depend on the way global_symbol_pipe is
+       initialized; the current test would get false positives, as
+       global_symbol_pipe was initialized `x=""', not `x='
+
        * libltdl/ltdl.c (find_module): initialize filename if dir is NULL 
        Reported by Godmar Back <gback@cs.utah.edu>
 
index 7cd1f78083caff1f44512ea44cb08bcfcded7bde..7b8fe65d49dbb5494310e0dfb68a4bb75d14c31b 100644 (file)
@@ -84,11 +84,19 @@ AC_CHECK_FUNCS(strdup strchr strrchr index rindex)
 
 AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
        libltdl_cv_preloaded_symbols, [dnl
-  if grep '^global_symbol_pipe=..*$' ./libtool >/dev/null; then
-    libltdl_cv_preloaded_symbols=yes
-  else
-    libltdl_cv_preloaded_symbols=no
-  fi
+  (
+    rm -f conftest
+    ./libtool --config > conftest
+    . ./conftest
+    rm -f conftest
+    if test -n "$global_symbol_pipe"; then
+      echo yes > conftest
+    else
+      echo no > conftest
+    fi
+  )
+  libltdl_cv_preloaded_symbols=`cat conftest`
+  rm -f conftest
 ])
 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
   AC_DEFINE(HAVE_PRELOADED_SYMBOLS)
index b270342379ef4a7d0247843dc574f2e9630b9616..dccffd2d2f56e64441d09d509b809a3ebd3190ae 100644 (file)
@@ -21,7 +21,7 @@
 ## configuration script generated by Autoconf, you may include it under
 ## the same distribution terms that you use for the rest of that program.
 
-# serial 30 AC_PROG_LIBTOOL
+# serial 31 AC_PROG_LIBTOOL
 AC_DEFUN(AC_PROG_LIBTOOL,
 [AC_PREREQ(2.12.2)dnl
 AC_REQUIRE([AC_ENABLE_SHARED])dnl
@@ -381,7 +381,7 @@ for ac_symprfx in "" "_"; do
   # Write the raw and C identifiers.
   # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here,
   # otherwise AC_SYS_SYMBOL_UNDERSCORE will always be false
-  ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'"
+  ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]$ac_symcode[   ][      ]*$ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'"
 
   # Check to see that the pipe works correctly.
   ac_pipe_works=no
index 5f2fa8739f13630c34af2aa439bff91203c85b21..d5e2d066af8fd6c82a08d5cadf6648b8ed2fb098 100755 (executable)
@@ -1403,7 +1403,7 @@ fi
 for ac_symprfx in "" "_"; do
 
   # Write the raw and C identifiers.
-  global_symbol_pipe="sed -n -e 's/^.* $symcode $ac_symprfx$sympat$/$symxfrm/p'"
+  global_symbol_pipe="sed -n -e 's/^.*[        ]$symcode[      ][      ]*$ac_symprfx$sympat$/$symxfrm/p'"
 
   # Check to see that the pipe works correctly.
   pipe_works=no
@@ -1605,7 +1605,7 @@ bsdi4*)
   soname_spec='${libname}.so'
   finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
   shlibpath_var=LD_LIBRARY_PATH
-  check_shared_deplibs_method='file_magic ELF 32-bit LSB shared object'
+  deplibs_check_method='file_magic ELF 32-bit LSB shared object'
   sys_lib_search_path="/shlib /usr/lib /usr/local/lib"
   ;;