]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (mingw*) sys_lib_search_path_spec:
authorGuido Draheim <guidod-2001q3@gmx.de>
Tue, 31 Jul 2001 20:35:10 +0000 (20:35 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 31 Jul 2001 20:35:10 +0000 (20:35 +0000)
Sets the proper path separator for cross-compiling.

ChangeLog
libtool.m4

index 45d4b64145a72610f2660829f84847e8d55ecd42..f5a9ed8d08184b8d5e644c56e8becb7d46a23f39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-31  Guido Draheim  <guidod-2001q3@gmx.de>
+
+       * libtool.m4 (mingw*) sys_lib_search_path_spec:
+       Sets the proper path separator for cross-compiling.
+
 2001-07-30  Steve Ellcey  <sje@cup.hp.com>
 
        * libtool.m4 (ia64-*-hpux*) Add support for ia64*-*-hpux* platform.
index 8a08247b0b1db4ee4cf2316a1c37e97f2fda0533..e1d1f73124db2890e96e26ecec238bf735e7a5b8 100644 (file)
@@ -1091,6 +1091,17 @@ cygwin* | mingw* | pw32*)
   yes,mingw*)
     library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
+    if test "_$PATH_SEPARATOR" = "_:" ; then
+      sys_lib_search_path_spec=`echo $sys_lib_search_path_spec | sed -e 's/:/ /g'`
+    elif test "_$PATH_SEPARATOR" = "_;" ; then
+      sys_lib_search_path_spec=`echo $sys_lib_search_path_spec | sed -e 's/;/ /g'`
+    else
+      if test "x$sys_lib_search_path_spec" != `echo x$sys_lib_search_path_spec | sed -e 's/;/ /'` ; then
+       AC_MSG_ERROR(PATH_SEPARATOR not set, but $CC -print-search-dirs contains semicolons)
+      elif test "x$sys_lib_search_path_spec" != `echo x$sys_lib_search_path_spec | sed -e 's/:/ /'` ; then
+       AC_MSG_ERROR(PATH_SEPARATOR not set, but $CC -print-search-dirs contains colons)
+      fi
+    fi
     ;;
   yes,pw32*)
     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'