32
32
PKG_CHECK_MODULES(TALLOC, talloc >= 1.3.0,
33
33
[ enable_external_libtalloc=yes ],
34
[ if x$enable_external_libtalloc = xyes; then
34
[ if test "x$enable_external_libtalloc" = xyes; then
35
35
AC_MSG_ERROR([Unable to find libtalloc])
37
37
enable_external_libtalloc=no
1059
1059
# setbuffer, shmget, shm_open are needed for smbtorture
1060
1060
AC_CHECK_FUNCS(shmget shm_open)
1061
1061
AC_CHECK_FUNCS(gettext dgettext)
1062
AC_CHECK_FUNCS(strupr)
1063
1064
# Find a method of generating a stack trace
1064
1065
AC_CHECK_HEADERS(execinfo.h libexc.h libunwind.h)
1070
1071
# check for sysctlbyname for BSD systems
1071
1072
AC_CHECK_FUNCS(sysctlbyname)
1073
printf "%s" "checking for GPFS GPL libs... "
1075
LIBS="$LIBS -lgpfs_gpl"
1076
AC_TRY_LINK([#include <gpfs_gpl.h>],
1077
[gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)],
1078
samba_cv_HAVE_GPFS=yes,
1079
samba_cv_HAVE_GPFS=no)
1080
echo $samba_cv_HAVE_GPFS
1081
if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
1082
AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL libs are available])
1083
default_shared_modules="$default_shared_modules vfs_gpfs"
1087
printf "%s" "checking for GPFS libs (with 3.2.1 PTF8 available as GPL)... "
1090
AC_TRY_LINK([#include <gpfs.h>],
1091
[gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)],
1092
samba_cv_HAVE_GPFS=yes,
1093
samba_cv_HAVE_GPFS=no)
1094
echo $samba_cv_HAVE_GPFS
1095
if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
1096
AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL libs are available])
1097
default_shared_modules="$default_shared_modules vfs_gpfs"
1074
#############################
1075
# check if building with gpfs
1076
AC_CHECK_HEADERS(gpfs_gpl.h)
1077
if test x"$ac_cv_header_gpfs_gpl_h" = x"yes"; then
1078
AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL headers are available])
1079
default_shared_modules="$default_shared_modules vfs_gpfs"
1101
1082
#############################################
1102
1083
# check if building on Isilon OneFS
1546
1527
# and these are for particular systems
1547
1528
case "$host_os" in
1548
*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
1549
case "$host_os" in *linux*)
1550
AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
1529
*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu | *qnx*)
1531
*linux*) AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
1532
*qnx*) AC_DEFINE(QNX,1,[Whether the host os is qnx]) ;;
1552
1534
BLDSHARED="true"
1553
1535
if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
1661
1643
AC_DEFINE(STAT_ST_BLOCKSIZE,8192,[The size of a block])
1662
1644
AC_DEFINE(POSIX_ACL_NEEDS_MASK,1,[Does a POSIX ACL need a mask element])
1664
*qnx*) AC_DEFINE(QNX,1,[Whether the host os is qnx])
1665
AC_DEFINE(STAT_ST_BLOCKSIZE,512)
1667
1646
*osf*) AC_DEFINE(OSF1,1,[Whether the host os is osf1])
1668
1647
BLDSHARED="true"
1669
1648
LDSHFLAGS="-shared"
3318
3297
CPPFLAGS=$ac_save_CPPFLAGS
3319
3298
LDFLAGS=$ac_save_LDFLAGS
3321
AC_CHECK_HEADERS(krb5/locate_plugin.h)
3300
AC_CHECK_HEADERS([krb5/locate_plugin.h], [], [],
3301
[[#ifdef HAVE_KRB5_H
3322
3306
if test x"$ac_cv_header_krb5_locate_plugin_h" = x"yes"; then
3323
3307
WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT"
3324
3308
EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR"
3311
# check for new heimdal KRB5_DEPRECATED handling
3313
AC_CACHE_CHECK([for KRB5_DEPRECATED define taking an identifier],
3314
samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER,[
3316
[#define KRB5_DEPRECATED 1
3319
samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=yes,
3320
samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=no)])
3322
if test x"$samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER" = x"yes"; then
3323
AC_DEFINE(HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER, 1,
3324
[Whether to use deprecated krb5 interfaces])
3328
3328
# Now we have determined whether we really want ADS support
3405
3405
AC_CHECK_FUNC_EXT(krb5_fwd_tgt_creds, $KRB5_LIBS)
3406
3406
AC_CHECK_FUNC_EXT(krb5_auth_con_set_req_cksumtype, $KRB5_LIBS)
3408
# MIT krb5 1.7beta3 (in Ubuntu Karmic) does not have this declaration
3409
# but does have the symbol
3410
AC_CHECK_DECLS(krb5_auth_con_set_req_cksumtype, [], [], [#include <krb5.h>])
3408
3412
LIBS="$KRB5_LIBS $LIBS"
3410
3414
AC_CACHE_CHECK(whether krb5_ticket contains kvno and enctype,