--- configure.in.orig 2004-10-31 08:44:25.000000000 +0900 +++ configure.in 2004-11-01 06:49:06.000000000 +0900 @@ -982,13 +982,18 @@ AC_CHECK_FUNCS(pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64) AC_CHECK_FUNCS(open64 _open64 __open64 creat64) +# Added some hacks below by jcm as a quick and dirty hack for cross compiling +# We need to make Samba know we can do IFCONF. +# jcm at resonance.com - 19/10/2004. +AC_DEFINE(HAVE_IFACE_IFCONF,1,[Whether iface ifconf is available]) + # # # case "$host_os" in *linux*) # glibc <= 2.3.2 has a broken getgrouplist - AC_TRY_RUN([ + AC_TRY_COMPILE([ #include #include main() { @@ -1454,10 +1459,9 @@ fi AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[ -AC_TRY_RUN([ -#include -#include -main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}], +AC_TRY_COMPILE([ +#include ], +[ struct timeval tv; exit(gettimeofday(&tv, NULL));], samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)]) if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])