From deca298d7b5651276ab7cd8bcb3090a2a4946d79 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 11 Jun 2012 09:11:17 +0200 Subject: lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIME That makes the logic in 'wscript' simpler. metze --- lib/replace/strptime.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/replace/strptime.m4') diff --git a/lib/replace/strptime.m4 b/lib/replace/strptime.m4 index b1a56b4aab..8ac22f6342 100644 --- a/lib/replace/strptime.m4 +++ b/lib/replace/strptime.m4 @@ -1,3 +1,5 @@ +AC_CHECK_FUNCS(strptime) +AC_CHECK_DECLS(strptime, [], [], [#include ]) AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[ AC_TRY_RUN([ #define LIBREPLACE_CONFIGURE_TEST_STRPTIME @@ -8,6 +10,7 @@ AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_ [libreplace_cv_STRPTIME_OK="assuming not"]) ]) if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then - AC_DEFINE(REPLACE_STRPTIME,1,[Whether strptime should be replaced]) LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o" +else + AC_DEFINE(HAVE_WORKING_STRPTIME,1,[Whether strptime is working correct]) fi -- cgit