1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r22821: Replace unnecessary AC_TRY_RUN with AC_TRY_LINK. Fixes bug #2287.

This commit is contained in:
James Peach 2007-05-13 04:38:44 +00:00 committed by Gerald (Jerry) Carter
parent 9d9950a6d1
commit 0268eafc26

View File

@ -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