From: Guido Draheim Date: Tue, 31 Jul 2001 20:35:10 +0000 (+0000) Subject: * libtool.m4 (mingw*) sys_lib_search_path_spec: X-Git-Tag: release-1-4d~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5b195869195687da643b734deb2879905f49dcf;p=thirdparty%2Flibtool.git * libtool.m4 (mingw*) sys_lib_search_path_spec: Sets the proper path separator for cross-compiling. --- diff --git a/ChangeLog b/ChangeLog index 45d4b6414..f5a9ed8d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-07-31 Guido Draheim + + * libtool.m4 (mingw*) sys_lib_search_path_spec: + Sets the proper path separator for cross-compiling. + 2001-07-30 Steve Ellcey * libtool.m4 (ia64-*-hpux*) Add support for ia64*-*-hpux* platform. diff --git a/libtool.m4 b/libtool.m4 index 8a08247b0..e1d1f7312 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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'