diff options
-rw-r--r-- | configure.ac | 13 |
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], | |||
1969 | AC_SEARCH_LIBS([clock_gettime], [rt], | 1969 | AC_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 | ||
1972 | dnl check if we need -D_REENTRANT for localtime_r declaration. | ||
1973 | AC_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 | |||
1972 | dnl Make sure prototypes are defined for these before using them. | 1985 | dnl Make sure prototypes are defined for these before using them. |
1973 | AC_CHECK_DECL([strsep], | 1986 | AC_CHECK_DECL([strsep], |
1974 | [AC_CHECK_FUNCS([strsep])], | 1987 | [AC_CHECK_FUNCS([strsep])], |