summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-05-13 04:38:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:00 -0500
commit232b2d8349c27a2096d47ea2096273fe02834d51 (patch)
tree9aff09a2bbf14f02df19b4a20f6c0981368600c8
parent2a5d612f34cc6d604916a05e3f26a6cfaf47d7a9 (diff)
downloadsamba-232b2d8349c27a2096d47ea2096273fe02834d51.tar.gz
samba-232b2d8349c27a2096d47ea2096273fe02834d51.tar.bz2
samba-232b2d8349c27a2096d47ea2096273fe02834d51.zip
r22821: Replace unnecessary AC_TRY_RUN with AC_TRY_LINK. Fixes bug #2287.
(This used to be commit 0268eafc26f6d6da25eca582241b136b5a3245ad)
-rw-r--r--source3/configure.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 863496a096..d4fe277fb4 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2214,11 +2214,12 @@ if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
fi
AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[
-AC_TRY_RUN([
+AC_TRY_LINK([
#include <sys/time.h>
-#include <unistd.h>
+#include <unistd.h>], [
int main() { struct timeval tv; return gettimeofday(&tv, NULL);}],
- samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)])
+ samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,
+ samba_cv_HAVE_GETTIMEOFDAY_TZ=no)])
if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
fi