File dia-0.97.1-configure.patch of Package mingw64-dia

--- dia-0.97.1/configure.in	2010-01-24 19:43:15.000000000 +0100
+++ dia-0.97.1/configure.in	2010-08-30 13:54:37.000000000 +0200
@@ -10,6 +10,22 @@
 dnl Specify a header configuration file
 AM_CONFIG_HEADER(config.h)
 
+AC_CANONICAL_HOST
+
+case "$host" in
+  *-*-mingw*)
+    os_win32=yes
+    NO_UNDEFINED=-no-undefined
+    ;;
+  *)
+    os_win32=no
+    NO_UNDEFINED=
+    ;;
+esac
+AC_MSG_RESULT([$os_win32])
+AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
+AC_SUBST(NO_UNDEFINED)
+
 dnl do this check now, to keep autogen quiet.
 AC_PROG_CC
 dnl also c++
@@ -368,6 +383,8 @@
 dnl Platform-specific fixes.
 dnl 
 
+if test "$os_win32" = "no"; then
+
 dnl Sun Forte C provides isinf() in the unbundled -lsunmath. Solaris
 dnl declares finite() in ieeefp.h. It's preferrable not to link 
 dnl to -lsunmath as it's not present on all machines.
@@ -390,6 +407,8 @@
               [Define if the isinf() function is available])
 fi
 
+fi
+
 dnl Alpha needs -mieee or we get a segfault
 dnl This shouldn't be needed but is here until a real solution is found
 case "$host" in
openSUSE Build Service is sponsored by