aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-15 22:34:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-15 22:34:58 +0000
commit3ec605de6716de41408aead150aff81ff7b96992 (patch)
tree20c67d4d6a7feb12e4addec613a13689256bb15b
parenta7e04cac78ac0ff3475aa7983183d33e8abb681f (diff)
Andrés García added a check for lwinmm for Mingw/sys
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3518006a2..866372f72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -327,6 +327,25 @@ AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
)
dnl **********************************************************************
+dnl Check for the presence of the winmm library.
+dnl **********************************************************************
+
+AC_MSG_CHECKING([for timeGetTime in winmm])
+my_ac_save_LIBS=$LIBS
+LIBS="-lwinmm $LIBS"
+AC_TRY_LINK([#include <windef.h>
+ #include <mmsystem.h>
+ ],
+ [timeGetTime();],
+ [ dnl worked!
+ AC_MSG_RESULT([yes])
+ ],
+ [ dnl failed, restore LIBS
+ LIBS=$my_ac_save_LIBS
+ AC_MSG_RESULT(no)]
+ )
+
+dnl **********************************************************************
dnl Checks for IPv6
dnl **********************************************************************