summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-08-30 14:35:49 +0200
committerBjörn Jacke <bj@sernet.de>2010-08-31 09:07:08 +0200
commite8662248c8bf7dfc830ce34f301f30f59e600cd8 (patch)
treee78e8c148fe67ec2823b9dfba2732ea60c53f449 /lib
parentc2e2be51a64dab19b001bddb39341a035ba6a2a1 (diff)
downloadsamba-e8662248c8bf7dfc830ce34f301f30f59e600cd8.tar.gz
samba-e8662248c8bf7dfc830ce34f301f30f59e600cd8.tar.bz2
samba-e8662248c8bf7dfc830ce34f301f30f59e600cd8.zip
libreplace: move gettimeofday TZ arg check here
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/system/config.m410
-rw-r--r--lib/util/time.m49
2 files changed, 10 insertions, 9 deletions
diff --git a/lib/replace/system/config.m4 b/lib/replace/system/config.m4
index b8568a5165..04364bc3a1 100644
--- a/lib/replace/system/config.m4
+++ b/lib/replace/system/config.m4
@@ -11,6 +11,16 @@ AC_CHECK_HEADERS(sys/time.h utime.h)
AC_HEADER_TIME
AC_CHECK_FUNCS(utime utimes)
+AC_CACHE_CHECK([if gettimeofday takes TZ argument],libreplace_cv_HAVE_GETTIMEOFDAY_TZ,[
+AC_TRY_RUN([
+#include <sys/time.h>
+#include <unistd.h>
+main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
+ libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=no,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
+if test x"$libreplace_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
+ AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
+fi
+
# wait
AC_HEADER_SYS_WAIT
diff --git a/lib/util/time.m4 b/lib/util/time.m4
deleted file mode 100644
index 675e20129f..0000000000
--- a/lib/util/time.m4
+++ /dev/null
@@ -1,9 +0,0 @@
-AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[
-AC_TRY_RUN([
-#include <sys/time.h>
-#include <unistd.h>
-main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
- samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
-if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
- AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
-fi