mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 23:00:22 +02:00
* configure.in (ac_cv_struct_timespec): Added test for struct
timespec.
This commit is contained in:
parent
bc5329cc8b
commit
7534dfdc2e
1 changed files with 14 additions and 1 deletions
15
configure.in
15
configure.in
|
@ -1,7 +1,7 @@
|
||||||
dnl configuration script for Guile
|
dnl configuration script for Guile
|
||||||
dnl Process this file with autoconf to produce configure.
|
dnl Process this file with autoconf to produce configure.
|
||||||
dnl
|
dnl
|
||||||
dnl Copyright (C) 1998, 1999 Free Software Foundation, Inc.
|
dnl Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||||
dnl
|
dnl
|
||||||
dnl This file is part of GUILE
|
dnl This file is part of GUILE
|
||||||
dnl
|
dnl
|
||||||
|
@ -394,6 +394,19 @@ if test $scm_cv_struct_linger = yes; then
|
||||||
AC_DEFINE(HAVE_STRUCT_LINGER)
|
AC_DEFINE(HAVE_STRUCT_LINGER)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for struct timespec)
|
||||||
|
AC_CACHE_VAL(scm_cv_struct_timespec,
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#include <time.h>],
|
||||||
|
[struct timespec t; t.tv_nsec = 100],
|
||||||
|
scm_cv_struct_timespec="yes",
|
||||||
|
scm_cv_struct_timespec="no"))
|
||||||
|
AC_MSG_RESULT($scm_cv_struct_timespec)
|
||||||
|
if test $scm_cv_struct_timespec = yes; then
|
||||||
|
AC_DEFINE(HAVE_STRUCT_TIMESPEC)
|
||||||
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Flags for thread support
|
# Flags for thread support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue