- add checks for localtime(), timezone and daylight
This commit is contained in:
parent
84c1e3ed15
commit
6a4e0e11ce
@ -210,6 +210,9 @@
|
||||
#define BX_HAVE_MKSTEMP 0
|
||||
#define BX_HAVE_SYS_MMAN_H 0
|
||||
#define BX_HAVE_XPM_H 0
|
||||
#define BX_HAVE_LOCALTIME 0
|
||||
#define BX_HAVE_TIMEZONE 0
|
||||
#define BX_HAVE_DAYLIGHT 0
|
||||
|
||||
// This turns on Roland Mainz's idle hack. Presently it is specific to the X11
|
||||
// gui. If people try to enable it elsewhere, give a compile error after the
|
||||
|
@ -2,7 +2,7 @@ dnl // Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(bochs.h)
|
||||
AC_REVISION([[$Id: configure.in,v 1.225 2003-08-28 00:10:10 cbothamy Exp $]])
|
||||
AC_REVISION([[$Id: configure.in,v 1.226 2003-09-05 23:03:38 cbothamy Exp $]])
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
AC_CONFIG_HEADER(ltdlconf.h)
|
||||
|
||||
@ -151,6 +151,9 @@ AC_CHECK_MEMBER(struct sockaddr_in.sin_len, AC_DEFINE(BX_HAVE_SOCKADDR_IN_SIN_LE
|
||||
#include <netinet/in.h> ])
|
||||
AC_CHECK_FUNCS(mkstemp, AC_DEFINE(BX_HAVE_MKSTEMP))
|
||||
AC_CHECK_HEADER(sys/mman.h, AC_DEFINE(BX_HAVE_SYS_MMAN_H))
|
||||
AC_CHECK_FUNCS(localtime, AC_DEFINE(BX_HAVE_LOCALTIME))
|
||||
AC_CHECK_DECL(timezone, AC_DEFINE(BX_HAVE_TIMEZONE), , [#include <time.h>])
|
||||
AC_CHECK_DECL(daylight, AC_DEFINE(BX_HAVE_DAYLIGHT), , [#include <time.h>])
|
||||
|
||||
dnl As of autoconf 2.53, the standard largefile test fails for Linux/gcc.
|
||||
dnl It does not put the largefiles arguments into CFLAGS, even though Linux/gcc
|
||||
|
Loading…
x
Reference in New Issue
Block a user