svn commit: samba r22821 - in branches/SAMBA_3_0/source: .
jpeach at samba.org
jpeach at samba.org
Sun May 13 04:38:44 GMT 2007
Author: jpeach
Date: 2007-05-13 04:38:44 +0000 (Sun, 13 May 2007)
New Revision: 22821
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22821
Log:
Replace unnecessary AC_TRY_RUN with AC_TRY_LINK. Fixes bug #2287.
Modified:
branches/SAMBA_3_0/source/configure.in
Changeset:
Modified: branches/SAMBA_3_0/source/configure.in
===================================================================
--- branches/SAMBA_3_0/source/configure.in 2007-05-13 04:08:26 UTC (rev 22820)
+++ branches/SAMBA_3_0/source/configure.in 2007-05-13 04:38:44 UTC (rev 22821)
@@ -2214,11 +2214,12 @@
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
More information about the samba-cvs
mailing list