Use autoconf to detect gettimeofday instead of broken #ifdef.
authorSven Panne <sven.panne@aedion.de>
Thu, 6 Nov 2008 19:16:33 +0000 (19:16 +0000)
committerSven Panne <sven.panne@aedion.de>
Thu, 6 Nov 2008 19:16:33 +0000 (19:16 +0000)
Note: freeglut compiles under Cygwin now, even when "--without-x" is used for
configuration.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@758 7f0cb862-5218-0410-a997-914c9d46530a

configure.ac

index efa1653..d0b1f17 100644 (file)
@@ -57,6 +57,7 @@ AC_PROG_GCC_TRADITIONAL
 AC_FUNC_VPRINTF
 AC_CHECK_LIBM
 AC_SUBST([LIBM])
+AC_CHECK_FUNCS([gettimeofday])
 
 # Build time configuration.
 AC_ARG_ENABLE([replace-glut],