5388
use_stack_protector=1
5390
# Check whether --with-stackprotect was given.
5391
if test "${with_stackprotect+set}" = set; then
5392
withval=$with_stackprotect;
5393
if test "x$withval" = "xno"; then
5394
use_stack_protector=0
5389
5399
if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5390
5400
CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5391
5401
GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5392
5402
case $GCC_VER in
5394
2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5396
3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5397
4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5403
1.*) no_attrib_nonnull=1 ;;
5405
CFLAGS="$CFLAGS -Wsign-compare"
5408
2.*) no_attrib_nonnull=1 ;;
5409
3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5410
4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5414
{ echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5415
echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5416
saved_CFLAGS="$CFLAGS"
5417
CFLAGS="$CFLAGS -fno-builtin-memset"
5418
cat >conftest.$ac_ext <<_ACEOF
5421
cat confdefs.h >>conftest.$ac_ext
5422
cat >>conftest.$ac_ext <<_ACEOF
5423
/* end confdefs.h. */
5426
int main(void){char b[10]; memset(b, 0, sizeof(b));}
5429
rm -f conftest.$ac_objext conftest$ac_exeext
5430
if { (ac_try="$ac_link"
5432
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433
*) ac_try_echo=$ac_try;;
5435
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436
(eval "$ac_link") 2>conftest.er1
5438
grep -v '^ *+' conftest.er1 >conftest.err
5440
cat conftest.err >&5
5441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
(exit $ac_status); } && {
5443
test -z "$ac_c_werror_flag" ||
5444
test ! -s conftest.err
5445
} && test -s conftest$ac_exeext &&
5446
$as_test_x conftest$ac_exeext; then
5447
{ echo "$as_me:$LINENO: result: yes" >&5
5448
echo "${ECHO_T}yes" >&6; }
5450
echo "$as_me: failed program was:" >&5
5451
sed 's/^/| /' conftest.$ac_ext >&5
5453
{ echo "$as_me:$LINENO: result: no" >&5
5454
echo "${ECHO_T}no" >&6; }
5455
CFLAGS="$saved_CFLAGS"
5459
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460
conftest$ac_exeext conftest.$ac_ext
5462
# -fstack-protector-all doesn't always work for some GCC versions
5463
# and/or platforms, so we test if we can. If it's not supported
5464
# on a give platform gcc will emit a warning so we use -Werror.
5465
if test "x$use_stack_protector" = "x1"; then
5466
for t in -fstack-protector-all -fstack-protector; do
5467
{ echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5468
echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5469
saved_CFLAGS="$CFLAGS"
5470
saved_LDFLAGS="$LDFLAGS"
5471
CFLAGS="$CFLAGS $t -Werror"
5472
LDFLAGS="$LDFLAGS $t -Werror"
5473
cat >conftest.$ac_ext <<_ACEOF
5476
cat confdefs.h >>conftest.$ac_ext
5477
cat >>conftest.$ac_ext <<_ACEOF
5478
/* end confdefs.h. */
5481
int main(void){return 0;}
5484
rm -f conftest.$ac_objext conftest$ac_exeext
5485
if { (ac_try="$ac_link"
5487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488
*) ac_try_echo=$ac_try;;
5490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491
(eval "$ac_link") 2>conftest.er1
5493
grep -v '^ *+' conftest.er1 >conftest.err
5495
cat conftest.err >&5
5496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497
(exit $ac_status); } && {
5498
test -z "$ac_c_werror_flag" ||
5499
test ! -s conftest.err
5500
} && test -s conftest$ac_exeext &&
5501
$as_test_x conftest$ac_exeext; then
5502
{ echo "$as_me:$LINENO: result: yes" >&5
5503
echo "${ECHO_T}yes" >&6; }
5504
CFLAGS="$saved_CFLAGS $t"
5505
LDFLAGS="$saved_LDFLAGS $t"
5506
{ echo "$as_me:$LINENO: checking if $t works" >&5
5507
echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5508
if test "$cross_compiling" = yes; then
5509
{ echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5510
echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5514
cat >conftest.$ac_ext <<_ACEOF
5517
cat confdefs.h >>conftest.$ac_ext
5518
cat >>conftest.$ac_ext <<_ACEOF
5519
/* end confdefs.h. */
5522
int main(void){exit(0);}
5525
rm -f conftest$ac_exeext
5526
if { (ac_try="$ac_link"
5528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529
*) ac_try_echo=$ac_try;;
5531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532
(eval "$ac_link") 2>&5
5534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5536
{ (case "(($ac_try" in
5537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538
*) ac_try_echo=$ac_try;;
5540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541
(eval "$ac_try") 2>&5
5543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544
(exit $ac_status); }; }; then
5545
{ echo "$as_me:$LINENO: result: yes" >&5
5546
echo "${ECHO_T}yes" >&6; }
5549
echo "$as_me: program exited with status $ac_status" >&5
5550
echo "$as_me: failed program was:" >&5
5551
sed 's/^/| /' conftest.$ac_ext >&5
5554
{ echo "$as_me:$LINENO: result: no" >&5
5555
echo "${ECHO_T}no" >&6; }
5557
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5563
echo "$as_me: failed program was:" >&5
5564
sed 's/^/| /' conftest.$ac_ext >&5
5566
{ echo "$as_me:$LINENO: result: no" >&5
5567
echo "${ECHO_T}no" >&6; }
5571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5572
conftest$ac_exeext conftest.$ac_ext
5573
CFLAGS="$saved_CFLAGS"
5574
LDFLAGS="$saved_LDFLAGS"
5401
5578
if test -z "$have_llong_max"; then
5402
5579
# retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5403
5580
unset ac_cv_have_decl_LLONG_MAX
7101
7302
#define SSH_TUN_PREPEND_AF 1
7306
{ echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7307
echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7308
if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7309
echo $ECHO_N "(cached) $ECHO_C" >&6
7311
cat >conftest.$ac_ext <<_ACEOF
7314
cat confdefs.h >>conftest.$ac_ext
7315
cat >>conftest.$ac_ext <<_ACEOF
7316
/* end confdefs.h. */
7317
$ac_includes_default
7329
rm -f conftest.$ac_objext
7330
if { (ac_try="$ac_compile"
7332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333
*) ac_try_echo=$ac_try;;
7335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336
(eval "$ac_compile") 2>conftest.er1
7338
grep -v '^ *+' conftest.er1 >conftest.err
7340
cat conftest.err >&5
7341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342
(exit $ac_status); } && {
7343
test -z "$ac_c_werror_flag" ||
7344
test ! -s conftest.err
7345
} && test -s conftest.$ac_objext; then
7346
ac_cv_have_decl_AU_IPv4=yes
7348
echo "$as_me: failed program was:" >&5
7349
sed 's/^/| /' conftest.$ac_ext >&5
7351
ac_cv_have_decl_AU_IPv4=no
7354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7357
echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7358
if test $ac_cv_have_decl_AU_IPv4 = yes; then
7362
cat >>confdefs.h <<\_ACEOF
7366
#include <bsm/audit.h>
7104
7370
{ echo "$as_me:$LINENO: checking if we have the Security Authorization Session API" >&5
7105
7371
echo $ECHO_N "checking if we have the Security Authorization Session API... $ECHO_C" >&6; }
7106
7372
cat >conftest.$ac_ext <<_ACEOF
13983
{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
13984
echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
13985
if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
13986
echo $ECHO_N "(cached) $ECHO_C" >&6
13988
cat >conftest.$ac_ext <<_ACEOF
13991
cat confdefs.h >>conftest.$ac_ext
13992
cat >>conftest.$ac_ext <<_ACEOF
13993
/* end confdefs.h. */
13995
#include <sys/param.h>
14001
#ifndef MAXSYMLINKS
14002
(void) MAXSYMLINKS;
14009
rm -f conftest.$ac_objext
14010
if { (ac_try="$ac_compile"
14011
case "(($ac_try" in
14012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013
*) ac_try_echo=$ac_try;;
14015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016
(eval "$ac_compile") 2>conftest.er1
14018
grep -v '^ *+' conftest.er1 >conftest.err
14020
cat conftest.err >&5
14021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022
(exit $ac_status); } && {
14023
test -z "$ac_c_werror_flag" ||
14024
test ! -s conftest.err
14025
} && test -s conftest.$ac_objext; then
14026
ac_cv_have_decl_MAXSYMLINKS=yes
14028
echo "$as_me: failed program was:" >&5
14029
sed 's/^/| /' conftest.$ac_ext >&5
14031
ac_cv_have_decl_MAXSYMLINKS=no
14034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
14037
echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
14038
if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
14040
cat >>confdefs.h <<_ACEOF
14041
#define HAVE_DECL_MAXSYMLINKS 1
14046
cat >>confdefs.h <<_ACEOF
14047
#define HAVE_DECL_MAXSYMLINKS 0
14055
{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
14056
echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
14057
if test "${ac_cv_have_decl_offsetof+set}" = set; then
14058
echo $ECHO_N "(cached) $ECHO_C" >&6
14060
cat >conftest.$ac_ext <<_ACEOF
14063
cat confdefs.h >>conftest.$ac_ext
14064
cat >>conftest.$ac_ext <<_ACEOF
14065
/* end confdefs.h. */
14067
#include <stddef.h>
14081
rm -f conftest.$ac_objext
14082
if { (ac_try="$ac_compile"
14083
case "(($ac_try" in
14084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085
*) ac_try_echo=$ac_try;;
14087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088
(eval "$ac_compile") 2>conftest.er1
14090
grep -v '^ *+' conftest.er1 >conftest.err
14092
cat conftest.err >&5
14093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094
(exit $ac_status); } && {
14095
test -z "$ac_c_werror_flag" ||
14096
test ! -s conftest.err
14097
} && test -s conftest.$ac_objext; then
14098
ac_cv_have_decl_offsetof=yes
14100
echo "$as_me: failed program was:" >&5
14101
sed 's/^/| /' conftest.$ac_ext >&5
14103
ac_cv_have_decl_offsetof=no
14106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
14109
echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
14110
if test $ac_cv_have_decl_offsetof = yes; then
14112
cat >>confdefs.h <<_ACEOF
14113
#define HAVE_DECL_OFFSETOF 1
14118
cat >>confdefs.h <<_ACEOF
14119
#define HAVE_DECL_OFFSETOF 0
13678
14128
for ac_func in setresuid
16493
16943
{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
16494
16944
echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
16495
16945
if test $ac_cv_lib_iaf_ia_openinfo = yes; then
16949
for ac_func in set_id
16951
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16953
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955
echo $ECHO_N "(cached) $ECHO_C" >&6
16957
cat >conftest.$ac_ext <<_ACEOF
16960
cat confdefs.h >>conftest.$ac_ext
16961
cat >>conftest.$ac_ext <<_ACEOF
16962
/* end confdefs.h. */
16963
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16965
#define $ac_func innocuous_$ac_func
16967
/* System header to define __stub macros and hopefully few prototypes,
16968
which can conflict with char $ac_func (); below.
16969
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970
<limits.h> exists even on freestanding compilers. */
16973
# include <limits.h>
16975
# include <assert.h>
16980
/* Override any GCC internal prototype to avoid an error.
16981
Use char because int might match the return type of a GCC
16982
builtin and then its argument prototype would still apply. */
16987
/* The GNU C library defines this for functions which it implements
16988
to always fail with ENOSYS. Some functions are actually named
16989
something starting with __ and the normal name is an alias. */
16990
#if defined __stub_$ac_func || defined __stub___$ac_func
16997
return $ac_func ();
17002
rm -f conftest.$ac_objext conftest$ac_exeext
17003
if { (ac_try="$ac_link"
17004
case "(($ac_try" in
17005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006
*) ac_try_echo=$ac_try;;
17008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009
(eval "$ac_link") 2>conftest.er1
17011
grep -v '^ *+' conftest.er1 >conftest.err
17013
cat conftest.err >&5
17014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015
(exit $ac_status); } && {
17016
test -z "$ac_c_werror_flag" ||
17017
test ! -s conftest.err
17018
} && test -s conftest$ac_exeext &&
17019
$as_test_x conftest$ac_exeext; then
17020
eval "$as_ac_var=yes"
17022
echo "$as_me: failed program was:" >&5
17023
sed 's/^/| /' conftest.$ac_ext >&5
17025
eval "$as_ac_var=no"
17028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17029
conftest$ac_exeext conftest.$ac_ext
17031
ac_res=`eval echo '${'$as_ac_var'}'`
17032
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17033
echo "${ECHO_T}$ac_res" >&6; }
17034
if test `eval echo '${'$as_ac_var'}'` = yes; then
16496
17035
cat >>confdefs.h <<_ACEOF
17036
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17038
SSHDLIBS="$SSHDLIBS -liaf"
17040
cat >>confdefs.h <<\_ACEOF
16497
17041
#define HAVE_LIBIAF 1
16505
17053
### Configure cryptographic random number support
21826
{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
21827
echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
21828
if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
21829
echo $ECHO_N "(cached) $ECHO_C" >&6
21831
cat >conftest.$ac_ext <<_ACEOF
21834
cat confdefs.h >>conftest.$ac_ext
21835
cat >>conftest.$ac_ext <<_ACEOF
21836
/* end confdefs.h. */
21838
#include <sys/types.h>
21839
#ifdef HAVE_SYS_BITYPES_H
21840
#include <sys/bitypes.h>
21842
#ifdef HAVE_SYS_STATFS_H
21843
#include <sys/statfs.h>
21845
#ifdef HAVE_SYS_STATVFS_H
21846
#include <sys/statvfs.h>
21850
typedef fsblkcnt_t ac__type_new_;
21854
if ((ac__type_new_ *) 0)
21856
if (sizeof (ac__type_new_))
21862
rm -f conftest.$ac_objext
21863
if { (ac_try="$ac_compile"
21864
case "(($ac_try" in
21865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866
*) ac_try_echo=$ac_try;;
21868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869
(eval "$ac_compile") 2>conftest.er1
21871
grep -v '^ *+' conftest.er1 >conftest.err
21873
cat conftest.err >&5
21874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875
(exit $ac_status); } && {
21876
test -z "$ac_c_werror_flag" ||
21877
test ! -s conftest.err
21878
} && test -s conftest.$ac_objext; then
21879
ac_cv_type_fsblkcnt_t=yes
21881
echo "$as_me: failed program was:" >&5
21882
sed 's/^/| /' conftest.$ac_ext >&5
21884
ac_cv_type_fsblkcnt_t=no
21887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889
{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
21890
echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
21891
if test $ac_cv_type_fsblkcnt_t = yes; then
21893
cat >>confdefs.h <<_ACEOF
21894
#define HAVE_FSBLKCNT_T 1
21899
{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
21900
echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
21901
if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
21902
echo $ECHO_N "(cached) $ECHO_C" >&6
21904
cat >conftest.$ac_ext <<_ACEOF
21907
cat confdefs.h >>conftest.$ac_ext
21908
cat >>conftest.$ac_ext <<_ACEOF
21909
/* end confdefs.h. */
21911
#include <sys/types.h>
21912
#ifdef HAVE_SYS_BITYPES_H
21913
#include <sys/bitypes.h>
21915
#ifdef HAVE_SYS_STATFS_H
21916
#include <sys/statfs.h>
21918
#ifdef HAVE_SYS_STATVFS_H
21919
#include <sys/statvfs.h>
21923
typedef fsfilcnt_t ac__type_new_;
21927
if ((ac__type_new_ *) 0)
21929
if (sizeof (ac__type_new_))
21935
rm -f conftest.$ac_objext
21936
if { (ac_try="$ac_compile"
21937
case "(($ac_try" in
21938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939
*) ac_try_echo=$ac_try;;
21941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942
(eval "$ac_compile") 2>conftest.er1
21944
grep -v '^ *+' conftest.er1 >conftest.err
21946
cat conftest.err >&5
21947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948
(exit $ac_status); } && {
21949
test -z "$ac_c_werror_flag" ||
21950
test ! -s conftest.err
21951
} && test -s conftest.$ac_objext; then
21952
ac_cv_type_fsfilcnt_t=yes
21954
echo "$as_me: failed program was:" >&5
21955
sed 's/^/| /' conftest.$ac_ext >&5
21957
ac_cv_type_fsfilcnt_t=no
21960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962
{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
21963
echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
21964
if test $ac_cv_type_fsfilcnt_t = yes; then
21966
cat >>confdefs.h <<_ACEOF
21967
#define HAVE_FSFILCNT_T 1
21280
21974
{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
21281
21975
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
24280
{ echo "$as_me:$LINENO: checking if f_fsid has val members" >&5
24281
echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; }
24282
cat >conftest.$ac_ext <<_ACEOF
24285
cat confdefs.h >>conftest.$ac_ext
24286
cat >>conftest.$ac_ext <<_ACEOF
24287
/* end confdefs.h. */
24289
#include <sys/types.h>
24290
#include <sys/statvfs.h>
24294
struct fsid_t t; t.val[0] = 0;
24299
rm -f conftest.$ac_objext
24300
if { (ac_try="$ac_compile"
24301
case "(($ac_try" in
24302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303
*) ac_try_echo=$ac_try;;
24305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306
(eval "$ac_compile") 2>conftest.er1
24308
grep -v '^ *+' conftest.er1 >conftest.err
24310
cat conftest.err >&5
24311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312
(exit $ac_status); } && {
24313
test -z "$ac_c_werror_flag" ||
24314
test ! -s conftest.err
24315
} && test -s conftest.$ac_objext; then
24316
{ echo "$as_me:$LINENO: result: yes" >&5
24317
echo "${ECHO_T}yes" >&6; }
24319
cat >>confdefs.h <<\_ACEOF
24320
#define FSID_HAS_VAL 1
24324
echo "$as_me: failed program was:" >&5
24325
sed 's/^/| /' conftest.$ac_ext >&5
24327
{ echo "$as_me:$LINENO: result: no" >&5
24328
echo "${ECHO_T}no" >&6; }
24332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23586
24334
{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
23587
24335
echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
23588
24336
if test "${ac_cv_have_control_in_msghdr+set}" = set; then
25930
{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
25931
echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
25932
cat >conftest.$ac_ext <<_ACEOF
25935
#if HAVE_SYS_TYPES_H
25936
# include <sys/types.h>
25938
#include <netinet/in.h>
25939
#include <arpa/nameser.h>
25940
#include <resolv.h>
25941
extern struct __res_state _res;
25942
int main() { return 0; }
25945
rm -f conftest.$ac_objext conftest$ac_exeext
25946
if { (ac_try="$ac_link"
25947
case "(($ac_try" in
25948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949
*) ac_try_echo=$ac_try;;
25951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952
(eval "$ac_link") 2>conftest.er1
25954
grep -v '^ *+' conftest.er1 >conftest.err
25956
cat conftest.err >&5
25957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958
(exit $ac_status); } && {
25959
test -z "$ac_c_werror_flag" ||
25960
test ! -s conftest.err
25961
} && test -s conftest$ac_exeext &&
25962
$as_test_x conftest$ac_exeext; then
25963
{ echo "$as_me:$LINENO: result: yes" >&5
25964
echo "${ECHO_T}yes" >&6; }
25966
cat >>confdefs.h <<\_ACEOF
25967
#define HAVE__RES_EXTERN 1
25972
echo "$as_me: failed program was:" >&5
25973
sed 's/^/| /' conftest.$ac_ext >&5
25975
{ echo "$as_me:$LINENO: result: no" >&5
25976
echo "${ECHO_T}no" >&6; }
25980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25981
conftest$ac_exeext conftest.$ac_ext
25182
25983
# Check whether user wants SELinux support
25183
25984
SELINUX_MSG="no"
25184
25985
LIBSELINUX=""
25812
{ echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
26614
{ echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
26615
echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
26616
if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
26617
echo $ECHO_N "(cached) $ECHO_C" >&6
26619
ac_check_lib_save_LIBS=$LIBS
26620
LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
26621
cat >conftest.$ac_ext <<_ACEOF
26624
cat confdefs.h >>conftest.$ac_ext
26625
cat >>conftest.$ac_ext <<_ACEOF
26626
/* end confdefs.h. */
26628
/* Override any GCC internal prototype to avoid an error.
26629
Use char because int might match the return type of a GCC
26630
builtin and then its argument prototype would still apply. */
26634
char gss_init_sec_context ();
26638
return gss_init_sec_context ();
26643
rm -f conftest.$ac_objext conftest$ac_exeext
26644
if { (ac_try="$ac_link"
26645
case "(($ac_try" in
26646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26647
*) ac_try_echo=$ac_try;;
26649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26650
(eval "$ac_link") 2>conftest.er1
26652
grep -v '^ *+' conftest.er1 >conftest.err
26654
cat conftest.err >&5
26655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656
(exit $ac_status); } && {
26657
test -z "$ac_c_werror_flag" ||
26658
test ! -s conftest.err
26659
} && test -s conftest$ac_exeext &&
26660
$as_test_x conftest$ac_exeext; then
26661
ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
26663
echo "$as_me: failed program was:" >&5
26664
sed 's/^/| /' conftest.$ac_ext >&5
26666
ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
26669
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26670
conftest$ac_exeext conftest.$ac_ext
26671
LIBS=$ac_check_lib_save_LIBS
26673
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
26674
echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
26675
if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
26676
cat >>confdefs.h <<\_ACEOF
26680
K5LIBS="-lgssapi_krb5 $K5LIBS"
26682
{ echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
25813
26683
echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
25814
26684
if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
25815
26685
echo $ECHO_N "(cached) $ECHO_C" >&6
25875
26745
#define GSSAPI 1
25878
K5LIBS="-lgssapi $K5LIBS"
25880
{ echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
25881
echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
25882
if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
25883
echo $ECHO_N "(cached) $ECHO_C" >&6
25885
ac_check_lib_save_LIBS=$LIBS
25886
LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
25887
cat >conftest.$ac_ext <<_ACEOF
25890
cat confdefs.h >>conftest.$ac_ext
25891
cat >>conftest.$ac_ext <<_ACEOF
25892
/* end confdefs.h. */
25894
/* Override any GCC internal prototype to avoid an error.
25895
Use char because int might match the return type of a GCC
25896
builtin and then its argument prototype would still apply. */
25900
char gss_init_sec_context ();
25904
return gss_init_sec_context ();
25909
rm -f conftest.$ac_objext conftest$ac_exeext
25910
if { (ac_try="$ac_link"
25911
case "(($ac_try" in
25912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25913
*) ac_try_echo=$ac_try;;
25915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25916
(eval "$ac_link") 2>conftest.er1
25918
grep -v '^ *+' conftest.er1 >conftest.err
25920
cat conftest.err >&5
25921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922
(exit $ac_status); } && {
25923
test -z "$ac_c_werror_flag" ||
25924
test ! -s conftest.err
25925
} && test -s conftest$ac_exeext &&
25926
$as_test_x conftest$ac_exeext; then
25927
ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
25929
echo "$as_me: failed program was:" >&5
25930
sed 's/^/| /' conftest.$ac_ext >&5
25932
ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
25935
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25936
conftest$ac_exeext conftest.$ac_ext
25937
LIBS=$ac_check_lib_save_LIBS
25939
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
25940
echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
25941
if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
25942
cat >>confdefs.h <<\_ACEOF
25946
K5LIBS="-lgssapi_krb5 $K5LIBS"
26748
K5LIBS="-lgssapi $K5LIBS"
25948
26750
{ echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
25949
26751
echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}