1 AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[
3 #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
4 #include "$libreplacedir/test/strptime.c"
6 [libreplace_cv_STRPTIME_OK=yes],
7 [libreplace_cv_STRPTIME_OK=no],
8 [libreplace_cv_STRPTIME_OK="assuming not"])
10 if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
11 AC_DEFINE(REPLACE_STRPTIME,1,[Whether strptime should be replaced])
12 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o"