Fixed bug 518
authorWerner Koch <wk@gnupg.org>
Mon, 2 Oct 2006 16:05:35 +0000 (16:05 +0000)
committerWerner Koch <wk@gnupg.org>
Mon, 2 Oct 2006 16:05:35 +0000 (16:05 +0000)
ChangeLog
acinclude.m4

index e14b8be..7555f79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-10-02  Werner Koch  <wk@g10code.com>
 
+       * acinclude.m4 (GNUPG_SYS_SYMBOL_UNDERSCORE): Add case for mingw32
+       and allow setting the variable on the command line.  Fixes bug 518.
+       Also use HOST instead of TARGET.
+       
        * README: Add information about the forthcoming GnuPG 2.0.
 
        * configure.ac (AB_INIT): New.
index b38712f..fb7edde 100644 (file)
@@ -668,13 +668,18 @@ AC_CHECK_TOOL(AS, as, false)
 #                              with an underscore?
 AC_DEFUN([GNUPG_SYS_SYMBOL_UNDERSCORE],
 [tmp_do_check="no"
-case "${target}" in
+case "${host}" in
+    *-mingw32msvc*)
+        ac_cv_sys_symbol_underscore=yes
+        ;;
     i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
         ac_cv_sys_symbol_underscore=yes
         ;;
     *)
       if test "$cross_compiling" = yes; then
-         ac_cv_sys_symbol_underscore=yes
+         if test "x$ac_cv_sys_symbol_underscore" = x; then
+            ac_cv_sys_symbol_underscore=yes
+         fi
       else
          tmp_do_check="yes"
       fi