]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: test command used == which should be =.
authorTor Lillqvist <tml@iki.fi>
Mon, 18 Oct 1999 20:03:57 +0000 (20:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 18 Oct 1999 20:03:57 +0000 (20:03 +0000)
Support -mno-cygwin flag for building mingw32 dlls.
* ltconfig.in (file_magic_cmd): add missing quotes.
(deplibs_check_method): and here.

ChangeLog
libtool.m4
ltconfig.in

index bbd1fa3c8309498cd3e5cf6de383f674f2bc61f1..f44d871bc7c2e757c833d768b042064db131e7be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+1999-10-18  Tor Lillqvist  <tml@iki.fi>
+
+       * libtool.m4: test command used == which should be =.
+       Support -mno-cygwin flag for building mingw32 dlls.
+       * ltconfig.in (file_magic_cmd): add missing quotes.
+       (deplibs_check_method): and here.
+        
 1999-10-16  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * libltdl/ltdl.c (lt_dlopen): Do not search paths when the
index 3e002db8f92ba9b8ce7a4a7035901fae4b7e467e..cff70c695267fe28ea2b194e53cf23121b16cbc5 100644 (file)
@@ -73,7 +73,7 @@ dnl
 # Only perform the check for file, if the check method requires it
 case "$deplibs_check_method" in
 file_magic*)
-  if test "$file_magic_cmd" == '$FILE'; then
+  if test "$file_magic_cmd" = '$FILE'; then
     AC_PATH_FILE
   fi
   ;;
@@ -147,16 +147,14 @@ ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
   # recent cygwin and mingw systems supply a stub DllMain which the user
   # can override, but on older systems we have to supply one
   AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
-    [AC_TRY_LINK([DllMain (0, 0, 0);],
-      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);],
+    [AC_TRY_LINK([],
+      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
+      DllMain (0, 0, 0);],
       [lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])])
 
   case $host in
-  *-*-cygwin*)
-    # 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" ;;
-  *-*-mingw*)
+  case "$host/$CC" in
+  *-*-cygwin*/gcc*-mno-cygwin|*-*-mingw*)
     # old mingw systems require "-dll" to link a DLL, while more recent ones
     # require "-mdll"
     SAVE_CFLAGS="$CFLAGS"
@@ -164,6 +162,10 @@ 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 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" ;;
   esac
   ;;
   ])
index 8575e58e254bd4b076b2dfe7e0c82df532c05149..22c453fbd6b1299c4f5cf81f31c0cccc77e2c069 100755 (executable)
@@ -1437,8 +1437,8 @@ fi
 reload_flag=@reload_flag@
 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
-file_magic_cmd=@file_magic_cmd@
-deplibs_check_method=@deplibs_check_method@
+file_magic_cmd="@file_magic_cmd@"
+deplibs_check_method="@deplibs_check_method@"
 
 # PORTME Fill in your ld.so characteristics
 library_names_spec=