summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e89d4f17f..3712d55db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1969,6 +1969,19 @@ AC_SEARCH_LIBS([nanosleep], [rt posix4], [AC_DEFINE([HAVE_NANOSLEEP], [1],
1969AC_SEARCH_LIBS([clock_gettime], [rt], 1969AC_SEARCH_LIBS([clock_gettime], [rt],
1970 [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Have clock_gettime])]) 1970 [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Have clock_gettime])])
1971 1971
1972dnl check if we need -D_REENTRANT for localtime_r declaration.
1973AC_CHECK_DECL([localtime_r], [],
1974 [ saved_CPPFLAGS="$CFLAGS"
1975 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
1976 unset ac_cv_have_decl_localtime_r
1977 AC_CHECK_DECL([localtime_r], [],
1978 [ CPPFLAGS="$saved_CPPFLAGS" ],
1979 [ #include <time.h> ]
1980 )
1981 ],
1982 [ #include <time.h> ]
1983)
1984
1972dnl Make sure prototypes are defined for these before using them. 1985dnl Make sure prototypes are defined for these before using them.
1973AC_CHECK_DECL([strsep], 1986AC_CHECK_DECL([strsep],
1974 [AC_CHECK_FUNCS([strsep])], 1987 [AC_CHECK_FUNCS([strsep])],