Changeset 204 for branches/samba-3.2.x/source/configure.in
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/configure.in
r149 r204 258 258 ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes 259 259 fi 260 if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_l =d_vernr_major"=2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then260 if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major"=2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then 261 261 ac_cv_gnu_ld_version_script=yes 262 262 fi … … 859 859 fi 860 860 861 AC_CACHE_CHECK([for struct sigevent type],samba_cv_struct_sigevent, [ 862 AC_TRY_COMPILE([ 863 #include <sys/types.h> 864 #if STDC_HEADERS 865 #include <stdlib.h> 866 #include <stddef.h> 867 #endif 868 #include <signal.h>],[struct sigevent s;], 869 samba_cv_struct_sigevent=yes,samba_cv_struct_sigevent=no)]) 870 if test x"$samba_cv_struct_sigevent" = x"yes"; then 871 AC_DEFINE(HAVE_STRUCT_SIGEVENT,1,[Whether we have the struct sigevent]) 872 AC_CHECK_MEMBERS([struct sigevent.sigev_value.sival_ptr,struct sigevent.sigev_value.sigval_ptr], , , 873 [#include <signal.h>]) 874 fi 875 861 876 AC_CACHE_CHECK([for struct timespec type],samba_cv_struct_timespec, [ 862 877 AC_TRY_COMPILE([ … … 1333 1348 AC_DEFINE(HAVE_STAT_HIRES_TIMESTAMPS, 1, 1334 1349 [whether struct stat has sub-second timestamps without struct timespec]) 1350 fi 1351 1352 AC_CACHE_CHECK([whether struct stat has st_birthtimespec], samba_cv_stat_st_birthtimespec, 1353 [ 1354 AC_TRY_COMPILE( 1355 [ 1356 #if TIME_WITH_SYS_TIME 1357 # include <sys/time.h> 1358 # include <time.h> 1359 #else 1360 # if HAVE_SYS_TIME_H 1361 # include <sys/time.h> 1362 # else 1363 # include <time.h> 1364 # endif 1365 #endif 1366 #ifdef HAVE_SYS_STAT_H 1367 #include <sys/stat.h> 1368 #endif 1369 ], 1370 [ 1371 struct timespec t; 1372 struct stat s = {0}; 1373 t = s.st_birthtimespec; 1374 ], 1375 samba_cv_stat_st_birthtimespec=yes, samba_cv_stat_birthtimespec=no) 1376 ]) 1377 1378 if test x"$samba_cv_stat_st_birthtimespec" = x"yes" ; then 1379 AC_DEFINE(HAVE_STAT_ST_BIRTHTIMESPEC, 1, [whether struct stat contains st_birthtimespec]) 1380 fi 1381 1382 AC_CACHE_CHECK([whether struct stat has st_birthtimensec], samba_cv_stat_st_birthtimensec, 1383 [ 1384 AC_TRY_COMPILE( 1385 [ 1386 #if TIME_WITH_SYS_TIME 1387 # include <sys/time.h> 1388 # include <time.h> 1389 #else 1390 # if HAVE_SYS_TIME_H 1391 # include <sys/time.h> 1392 # else 1393 # include <time.h> 1394 # endif 1395 #endif 1396 #ifdef HAVE_SYS_STAT_H 1397 #include <sys/stat.h> 1398 #endif 1399 ], 1400 [ 1401 struct timespec t; 1402 struct stat s = {0}; 1403 t.tv_nsec = s.st_birthtimensec; 1404 ], 1405 samba_cv_stat_st_birthtimensec=yes, samba_cv_stat_birthtimensec=no) 1406 ]) 1407 1408 if test x"$samba_cv_stat_st_birthtimensec" = x"yes" ; then 1409 AC_DEFINE(HAVE_STAT_ST_BIRTHTIMENSEC, 1, [whether struct stat contains st_birthtimensec]) 1410 fi 1411 1412 AC_CACHE_CHECK([whether struct stat has st_birthtime], samba_cv_stat_st_birthtime, 1413 [ 1414 AC_TRY_COMPILE( 1415 [ 1416 #if TIME_WITH_SYS_TIME 1417 # include <sys/time.h> 1418 # include <time.h> 1419 #else 1420 # if HAVE_SYS_TIME_H 1421 # include <sys/time.h> 1422 # else 1423 # include <time.h> 1424 # endif 1425 #endif 1426 #ifdef HAVE_SYS_STAT_H 1427 #include <sys/stat.h> 1428 #endif 1429 ], 1430 [ 1431 struct time_t t; 1432 struct stat s = {0}; 1433 t = s.st_birthtime; 1434 ], 1435 samba_cv_stat_st_birthtime=yes, samba_cv_stat_birthtime=no) 1436 ]) 1437 1438 if test x"$samba_cv_stat_st_birthtime" = x"yes" ; then 1439 AC_DEFINE(HAVE_STAT_ST_BIRTHTIME, 1, [whether struct stat contains st_birthtime]) 1335 1440 fi 1336 1441 … … 2604 2709 # look for a method of setting the effective uid 2605 2710 seteuid=no; 2711 2712 if test $seteuid = no; then 2713 AC_CACHE_CHECK([for setreuid],samba_cv_USE_SETREUID,[ 2714 AC_TRY_RUN([ 2715 #define AUTOCONF_TEST 1 2716 #define USE_SETREUID 1 2717 #include "confdefs.h" 2718 #include "${srcdir-.}/lib/util_sec.c"], 2719 samba_cv_USE_SETREUID=yes,samba_cv_USE_SETREUID=no,samba_cv_USE_SETREUID=cross)]) 2720 if test x"$samba_cv_USE_SETREUID" = x"yes"; then 2721 seteuid=yes;AC_DEFINE(USE_SETREUID,1,[Whether setreuid() is available]) 2722 fi 2723 fi 2724 2725 # we check for setresuid second as it conflicts with AIO on Linux. 2726 # see http://samba.org/~tridge/junkcode/aio_uid.c 2606 2727 if test $seteuid = no; then 2607 2728 AC_CACHE_CHECK([for setresuid],samba_cv_USE_SETRESUID,[ … … 2614 2735 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then 2615 2736 seteuid=yes;AC_DEFINE(USE_SETRESUID,1,[Whether setresuid() is available]) 2616 fi2617 fi2618 2619 2620 if test $seteuid = no; then2621 AC_CACHE_CHECK([for setreuid],samba_cv_USE_SETREUID,[2622 AC_TRY_RUN([2623 #define AUTOCONF_TEST 12624 #define USE_SETREUID 12625 #include "confdefs.h"2626 #include "${srcdir-.}/lib/util_sec.c"],2627 samba_cv_USE_SETREUID=yes,samba_cv_USE_SETREUID=no,samba_cv_USE_SETREUID=cross)])2628 if test x"$samba_cv_USE_SETREUID" = x"yes"; then2629 seteuid=yes;AC_DEFINE(USE_SETREUID,1,[Whether setreuid() is available])2630 2737 fi 2631 2738 fi … … 4022 4129 AC_MSG_CHECKING(whether to build cifs.upcall) 4023 4130 AC_ARG_WITH(cifsupcall, 4024 [AS_HELP_STRING([--with-cifsupcall], [Include cifs.upcall (Linux only) support (default= no)])],4131 [AS_HELP_STRING([--with-cifsupcall], [Include cifs.upcall (Linux only) support (default=yes)])], 4025 4132 [ case "$withval" in 4026 4133 no) … … 4048 4155 ;; 4049 4156 esac ], 4050 [ 4051 AC_MSG_RESULT(no) 4052 ] 4157 [ case "$host_os" in 4158 *linux*) 4159 if test x"$use_ads" != x"yes"; then 4160 AC_MSG_WARN(ADS support should be enabled for building cifs.upcall) 4161 elif test x"$HAVE_KEYUTILS_H" != "x1"; then 4162 AC_MSG_WARN(keyutils package is required for cifs.upcall) 4163 else 4164 AC_MSG_RESULT(yes) 4165 AC_DEFINE(WITH_CIFSUPCALL,1,[whether to build cifs.upcall]) 4166 CIFSUPCALL_PROGS="bin/cifs.upcall" 4167 INSTALL_CIFSUPCALL="installcifsupcall" 4168 UNINSTALL_CIFSUPCALL="uninstallcifsupcall" 4169 fi 4170 ;; 4171 *) 4172 AC_MSG_RESULT(no) 4173 ;; 4174 esac ] 4053 4175 ) 4054 4176
Note:
See TracChangeset
for help on using the changeset viewer.