summaryrefslogtreecommitdiff
path: root/source3/lib/replace/strptime.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-15 20:12:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:21 -0500
commit2f1aafa2a7e36298cc1e0e593b30fac1ab278596 (patch)
tree80803c500daca5d859afeea4917f859a71d577a5 /source3/lib/replace/strptime.m4
parent3e819bd22c199f9cdf68c0f6258b4be17674a129 (diff)
downloadsamba-2f1aafa2a7e36298cc1e0e593b30fac1ab278596.tar.gz
samba-2f1aafa2a7e36298cc1e0e593b30fac1ab278596.tar.bz2
samba-2f1aafa2a7e36298cc1e0e593b30fac1ab278596.zip
r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements metze (This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
Diffstat (limited to 'source3/lib/replace/strptime.m4')
-rw-r--r--source3/lib/replace/strptime.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/lib/replace/strptime.m4 b/source3/lib/replace/strptime.m4
new file mode 100644
index 0000000000..da22fc5a97
--- /dev/null
+++ b/source3/lib/replace/strptime.m4
@@ -0,0 +1,13 @@
+AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[
+ AC_TRY_RUN([
+ #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
+ #include "$libreplacedir/test/strptime.c"
+ ],
+ [libreplace_cv_STRPTIME_OK=yes],
+ [libreplace_cv_STRPTIME_OK=no],
+ [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} strptime.o"
+fi