From: Gary V. Vaughan Date: Fri, 15 Sep 2000 02:40:07 +0000 (+0000) Subject: From Paul Sokolovsky X-Git-Tag: multi-language-merge-point~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c52630c4cbe75c223692b368e1553c8e5a9ad94;p=thirdparty%2Flibtool.git From Paul Sokolovsky * libtool.m4 (pw32): Initial support for pw32, assuming that libtool's behaviour in this environment is identical to under cygwin. * ltconfig.in (pw32): ditto. * ltmain.in (pw32): ditto. * NEWS: Updated. --- diff --git a/ChangeLog b/ChangeLog index 3b2f33c5b..d57159e40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-09-14 Gary V. Vaughan + + From Paul Sokolovsky + * libtool.m4 (pw32): Initial support for pw32, assuming that + libtool's behaviour in this environment is identical to under + cygwin. + * ltconfig.in (pw32): ditto. + * ltmain.in (pw32): ditto. + * NEWS: Updated. + 2000-09-12 Michael Matz * ltmain.in: Be careful about filenames with multiple `.'s in diff --git a/NEWS b/NEWS index 69506f6df..5327baddf 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,7 @@ New in 1.3d: 2000-??-??; CVS version 1.3c, Libtool team: * Improved support for mingw32, Compaq Tru64 V5.0 and Digital Unix V4.*. * Initial support for ia64 linux. * Initial support for a.out freebsd shared libs. +* Initial support for Paul Sokolovsky's pw32 POSIX over win32 layer. * Many bugfixes (especially in libltdl) New in 1.3.5: 2000-05-27, CVS version 1.3.4a, Libtool team: diff --git a/libtool.m4 b/libtool.m4 index f9206639e..02b09ea71 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -173,7 +173,7 @@ case "$host" in ;; ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw*) +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) @@ -195,7 +195,7 @@ ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) CFLAGS="$SAVE_CFLAGS" ;; - *-*-cygwin*) + *-*-cygwin* | *-*-pw32*) # cygwin systems need to pass --dll to the linker, and not link # crt.o which will require a WinMain@16 definition. lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; @@ -528,7 +528,7 @@ bsdi4*) lt_cv_file_magic_test_file=/shlib/libc.so ;; -cygwin* | mingw*) +cygwin* | mingw* |pw32*) lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='${OBJDUMP} -f' ;; @@ -687,7 +687,7 @@ AC_DEFUN(AC_CHECK_LIBM, [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case "$host" in -*-*-beos* | *-*-cygwin*) +*-*-beos* | *-*-cygwin* | *-*-pw32*) # These system don't have libm ;; *-ncr-sysv4.3*) diff --git a/ltconfig.in b/ltconfig.in index efb6016e9..f2af886c6 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -983,7 +983,7 @@ bsdi4*) # libtool to hard-code these into programs ;; -cygwin* | mingw*) +cygwin* | mingw* | pw32*) version_type=windows need_version=no need_lib_prefix=no @@ -1256,7 +1256,7 @@ case "$host_os" in aix*) symcode='[BCDT]' ;; -cygwin* | mingw*) +cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols @@ -1408,7 +1408,7 @@ echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6 # Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in # configure.in, otherwise build static only libraries. case "$host_os" in -cygwin* | mingw* | os2*) +cygwin* | mingw* | pw32* | os2*) if test x$can_build_shared = xyes; then test x$enable_win32_dll = xno && can_build_shared=no echo "checking if package supports dlls... $can_build_shared" 1>&6 @@ -2391,7 +2391,7 @@ EOF ;; esac case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) cat <<'EOF' >> "$ofile" # This is a source program that is used to create dlls on Windows # Don't remove nor modify the starting and closing comments diff --git a/ltmain.in b/ltmain.in index af5efec60..8ad54b049 100644 --- a/ltmain.in +++ b/ltmain.in @@ -545,7 +545,7 @@ if test -z "$show_help"; then # On Cygwin there's no "real" PIC flag so we must build both object types case "$host_os" in - cygwin* | mingw* | os2*) + cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac @@ -778,7 +778,7 @@ EOF link | relink) modename="$modename: link" case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra @@ -1080,7 +1080,7 @@ EOF ;; esac case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case ":$dllsearchpath:" in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; @@ -1093,14 +1093,14 @@ EOF -l*) if test "$arg" = "-lc"; then case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # These systems don't actually have c library (as such) continue ;; esac elif test "$arg" = "-lm"; then case "$host" in - *-*-cygwin* | *-*-beos*) + *-*-cygwin* | *-*-pw32* | *-*-beos*) # These systems don't actually have math library (as such) continue ;; @@ -1122,7 +1122,7 @@ EOF -no-install) case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 @@ -2599,7 +2599,7 @@ EOF if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *) @@ -3251,7 +3251,7 @@ EOF esac fi case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case ":$dllsearchpath:" in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; @@ -3785,7 +3785,7 @@ else case $host in # win32 systems need to use the prog path for dll # lookup to work - *-*-cygwin*) + *-*-cygwin* | *-*-pw32*) $echo >> $output "\ exec \$progdir/\$program \${1+\"\$@\"} "