docs.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@548
7f0cb862-5218-0410-a997-
914c9d46530a
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glx.h])
+AC_CHECK_HEADERS([sys/time.h GL/gl.h GL/glu.h GL/glx.h])
+AC_HEADER_TIME
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $X_CFLAGS"
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <time.h>
#include <GL/freeglut.h>
#ifdef WIN32
/* DUMP MEMORY LEAKS */
#include <stdarg.h>
#if TARGET_HOST_UNIX_X11
#include <unistd.h>
-#include <sys/time.h>
+# if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+# else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+# endif
#endif
/* The system-dependant include files should go here: */
#include <limits.h>
#if TARGET_HOST_UNIX_X11
#include <sys/types.h>
-#include <sys/time.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>