From: Gary V. Vaughan Date: Fri, 15 Sep 2000 02:10:27 +0000 (+0000) Subject: From Paul Sokolovsky X-Git-Tag: release-1-3d~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a051edc63dd7894a4cd553229f9b5833852f99ea;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. * ltmain.in (pw32): ditto. * NEWS: Updated. --- diff --git a/ChangeLog b/ChangeLog index 5efbc4b67..d9b50cd02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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. + * ltmain.in (pw32): ditto. + * NEWS: Updated. + * libtool.m4 (changequote): An audit of changequote and m4 quote usage -- all changequotes (except a few with non-nesting square brackets) have been removed. diff --git a/NEWS b/NEWS index dd7f65cff..c4f2bbd0e 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,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 4afd8d207..d73fa697c 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -112,7 +112,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) @@ -134,7 +134,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" ;; @@ -455,7 +455,7 @@ AC_CACHE_VAL(ac_cv_prog_cc_pic, # we not sure about C++ programs. ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC" ;; - cygwin* | mingw* | os2*) + cygwin* | mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). ac_cv_prog_cc_pic='-DDLL_EXPORT' @@ -496,7 +496,7 @@ AC_CACHE_VAL(ac_cv_prog_cc_pic, # PIC (with -KPIC) is the default. ;; - cygwin* | mingw* | os2*) + cygwin* | mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). ac_cv_prog_cc_pic='-DDLL_EXPORT' @@ -790,7 +790,7 @@ exclude_expsyms="_GLOBAL_OFFSET_TABLE_" extract_expsyms_cmds= case "$host_os" in -cygwin* | mingw*) +cygwin* | mingw* | pw32* ) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. @@ -847,7 +847,7 @@ EOF fi ;; - cygwin* | mingw*) + cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' @@ -971,7 +971,7 @@ EOF hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' case $host_os in - cygwin* | mingw*) + cygwin* | mingw* | pw32*) # dlltool doesn't understand --whole-archive et. al. whole_archive_flag_spec= ;; @@ -1044,7 +1044,7 @@ else ld_shlibs=no ;; - cygwin* | mingw*) + cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is @@ -1400,7 +1400,7 @@ bsdi4*) # libtool to hard-code these into programs ;; -cygwin* | mingw*) +cygwin* | mingw* | pw32*) version_type=windows need_version=no need_lib_prefix=no @@ -1690,7 +1690,7 @@ case "$host_os" in aix*) [symcode='[BCDT]'] ;; -cygwin* | mingw*) +cygwin* | mingw* | pw32*) [symcode='[ABCDGISTW]'] ;; hpux*) # Its linker distinguishes data from code symbols @@ -2398,7 +2398,7 @@ EOF esac case "$host_os" 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 @@ -2928,7 +2928,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' ;; @@ -3077,7 +3077,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/ltmain.in b/ltmain.in index 19ac7f928..27d13c287 100644 --- a/ltmain.in +++ b/ltmain.in @@ -454,7 +454,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 @@ -710,7 +710,7 @@ compiler." 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 @@ -1009,7 +1009,7 @@ compiler." ;; esac case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case ":$dllsearchpath:" in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; @@ -1022,14 +1022,14 @@ compiler." -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 ;; @@ -1051,7 +1051,7 @@ compiler." -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 @@ -2392,7 +2392,7 @@ compiler." 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)! ;; *) @@ -3044,7 +3044,7 @@ EOF esac fi case "$host" in - *-*-cygwin* | *-*-mingw* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case ":$dllsearchpath:" in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; @@ -3584,7 +3584,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+\"\$@\"} "