20557
############################################
20558
# we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
20559
#AC_SEARCH_LIBS(dlopen, [dl])
20560
# dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
20563
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
20564
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20565
if test "${ac_cv_func_gethostbyname+set}" = set; then
20566
echo $ECHO_N "(cached) $ECHO_C" >&6
20568
cat >conftest.$ac_ext <<_ACEOF
20571
cat confdefs.h >>conftest.$ac_ext
20572
cat >>conftest.$ac_ext <<_ACEOF
20573
/* end confdefs.h. */
20574
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20575
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20576
#define gethostbyname innocuous_gethostbyname
20578
/* System header to define __stub macros and hopefully few prototypes,
20579
which can conflict with char gethostbyname (); below.
20580
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581
<limits.h> exists even on freestanding compilers. */
20584
# include <limits.h>
20586
# include <assert.h>
20589
#undef gethostbyname
20591
/* Override any GCC internal prototype to avoid an error.
20592
Use char because int might match the return type of a GCC
20593
builtin and then its argument prototype would still apply. */
20597
char gethostbyname ();
20598
/* The GNU C library defines this for functions which it implements
20599
to always fail with ENOSYS. Some functions are actually named
20600
something starting with __ and the normal name is an alias. */
20601
#if defined __stub_gethostbyname || defined __stub___gethostbyname
20608
return gethostbyname ();
20613
rm -f conftest.$ac_objext conftest$ac_exeext
20614
if { (ac_try="$ac_link"
20615
case "(($ac_try" in
20616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617
*) ac_try_echo=$ac_try;;
20619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620
(eval "$ac_link") 2>conftest.er1
20622
grep -v '^ *+' conftest.er1 >conftest.err
20624
cat conftest.err >&5
20625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626
(exit $ac_status); } && {
20627
test -z "$ac_c_werror_flag" ||
20628
test ! -s conftest.err
20629
} && test -s conftest$ac_exeext &&
20630
$as_test_x conftest$ac_exeext; then
20631
ac_cv_func_gethostbyname=yes
20633
echo "$as_me: failed program was:" >&5
20634
sed 's/^/| /' conftest.$ac_ext >&5
20636
ac_cv_func_gethostbyname=no
20639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20640
conftest$ac_exeext conftest.$ac_ext
20642
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20643
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20644
if test $ac_cv_func_gethostbyname = yes; then
20648
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20649
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20650
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20651
echo $ECHO_N "(cached) $ECHO_C" >&6
20653
ac_check_lib_save_LIBS=$LIBS
20655
cat >conftest.$ac_ext <<_ACEOF
20658
cat confdefs.h >>conftest.$ac_ext
20659
cat >>conftest.$ac_ext <<_ACEOF
20660
/* end confdefs.h. */
20662
/* Override any GCC internal prototype to avoid an error.
20663
Use char because int might match the return type of a GCC
20664
builtin and then its argument prototype would still apply. */
20668
char gethostbyname ();
20672
return gethostbyname ();
20677
rm -f conftest.$ac_objext conftest$ac_exeext
20678
if { (ac_try="$ac_link"
20679
case "(($ac_try" in
20680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681
*) ac_try_echo=$ac_try;;
20683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684
(eval "$ac_link") 2>conftest.er1
20686
grep -v '^ *+' conftest.er1 >conftest.err
20688
cat conftest.err >&5
20689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690
(exit $ac_status); } && {
20691
test -z "$ac_c_werror_flag" ||
20692
test ! -s conftest.err
20693
} && test -s conftest$ac_exeext &&
20694
$as_test_x conftest$ac_exeext; then
20695
ac_cv_lib_nsl_gethostbyname=yes
20697
echo "$as_me: failed program was:" >&5
20698
sed 's/^/| /' conftest.$ac_ext >&5
20700
ac_cv_lib_nsl_gethostbyname=no
20703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20704
conftest$ac_exeext conftest.$ac_ext
20705
LIBS=$ac_check_lib_save_LIBS
20707
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20708
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20709
if test $ac_cv_lib_nsl_gethostbyname = yes; then
20710
cat >>confdefs.h <<_ACEOF
20711
#define HAVE_LIBNSL 1
20720
{ echo "$as_me:$LINENO: checking for connect" >&5
20721
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20722
if test "${ac_cv_func_connect+set}" = set; then
20723
echo $ECHO_N "(cached) $ECHO_C" >&6
20725
cat >conftest.$ac_ext <<_ACEOF
20728
cat confdefs.h >>conftest.$ac_ext
20729
cat >>conftest.$ac_ext <<_ACEOF
20730
/* end confdefs.h. */
20731
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20732
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20733
#define connect innocuous_connect
20735
/* System header to define __stub macros and hopefully few prototypes,
20736
which can conflict with char connect (); below.
20737
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20738
<limits.h> exists even on freestanding compilers. */
20741
# include <limits.h>
20743
# include <assert.h>
20748
/* Override any GCC internal prototype to avoid an error.
20749
Use char because int might match the return type of a GCC
20750
builtin and then its argument prototype would still apply. */
20755
/* The GNU C library defines this for functions which it implements
20756
to always fail with ENOSYS. Some functions are actually named
20757
something starting with __ and the normal name is an alias. */
20758
#if defined __stub_connect || defined __stub___connect
20770
rm -f conftest.$ac_objext conftest$ac_exeext
20771
if { (ac_try="$ac_link"
20772
case "(($ac_try" in
20773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774
*) ac_try_echo=$ac_try;;
20776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777
(eval "$ac_link") 2>conftest.er1
20779
grep -v '^ *+' conftest.er1 >conftest.err
20781
cat conftest.err >&5
20782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783
(exit $ac_status); } && {
20784
test -z "$ac_c_werror_flag" ||
20785
test ! -s conftest.err
20786
} && test -s conftest$ac_exeext &&
20787
$as_test_x conftest$ac_exeext; then
20788
ac_cv_func_connect=yes
20790
echo "$as_me: failed program was:" >&5
20791
sed 's/^/| /' conftest.$ac_ext >&5
20793
ac_cv_func_connect=no
20796
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797
conftest$ac_exeext conftest.$ac_ext
20799
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20800
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20801
if test $ac_cv_func_connect = yes; then
20805
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20806
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20807
if test "${ac_cv_lib_socket_connect+set}" = set; then
20808
echo $ECHO_N "(cached) $ECHO_C" >&6
20810
ac_check_lib_save_LIBS=$LIBS
20811
LIBS="-lsocket $LIBS"
20812
cat >conftest.$ac_ext <<_ACEOF
20815
cat confdefs.h >>conftest.$ac_ext
20816
cat >>conftest.$ac_ext <<_ACEOF
20817
/* end confdefs.h. */
20819
/* Override any GCC internal prototype to avoid an error.
20820
Use char because int might match the return type of a GCC
20821
builtin and then its argument prototype would still apply. */
20834
rm -f conftest.$ac_objext conftest$ac_exeext
20835
if { (ac_try="$ac_link"
20836
case "(($ac_try" in
20837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838
*) ac_try_echo=$ac_try;;
20840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841
(eval "$ac_link") 2>conftest.er1
20843
grep -v '^ *+' conftest.er1 >conftest.err
20845
cat conftest.err >&5
20846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847
(exit $ac_status); } && {
20848
test -z "$ac_c_werror_flag" ||
20849
test ! -s conftest.err
20850
} && test -s conftest$ac_exeext &&
20851
$as_test_x conftest$ac_exeext; then
20852
ac_cv_lib_socket_connect=yes
20854
echo "$as_me: failed program was:" >&5
20855
sed 's/^/| /' conftest.$ac_ext >&5
20857
ac_cv_lib_socket_connect=no
20860
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20861
conftest$ac_exeext conftest.$ac_ext
20862
LIBS=$ac_check_lib_save_LIBS
20864
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20865
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20866
if test $ac_cv_lib_socket_connect = yes; then
20867
cat >>confdefs.h <<_ACEOF
20868
#define HAVE_LIBSOCKET 1
20871
LIBS="-lsocket $LIBS"
20881
# Check presence of some functions
20883
# Check for XPG4 access() function
20884
# Be sure to test before adding AFS libs in LIBS path as AFS lib
20885
# has such a function that works only on AFS filesystems.
20887
for ac_func in access
20889
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20890
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20891
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20892
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20893
echo $ECHO_N "(cached) $ECHO_C" >&6
20895
cat >conftest.$ac_ext <<_ACEOF
20898
cat confdefs.h >>conftest.$ac_ext
20899
cat >>conftest.$ac_ext <<_ACEOF
20900
/* end confdefs.h. */
20901
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20902
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20903
#define $ac_func innocuous_$ac_func
20905
/* System header to define __stub macros and hopefully few prototypes,
20906
which can conflict with char $ac_func (); below.
20907
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20908
<limits.h> exists even on freestanding compilers. */
20911
# include <limits.h>
20913
# include <assert.h>
20918
/* Override any GCC internal prototype to avoid an error.
20919
Use char because int might match the return type of a GCC
20920
builtin and then its argument prototype would still apply. */
20925
/* The GNU C library defines this for functions which it implements
20926
to always fail with ENOSYS. Some functions are actually named
20927
something starting with __ and the normal name is an alias. */
20928
#if defined __stub_$ac_func || defined __stub___$ac_func
20935
return $ac_func ();
20940
rm -f conftest.$ac_objext conftest$ac_exeext
20941
if { (ac_try="$ac_link"
20942
case "(($ac_try" in
20943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944
*) ac_try_echo=$ac_try;;
20946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947
(eval "$ac_link") 2>conftest.er1
20949
grep -v '^ *+' conftest.er1 >conftest.err
20951
cat conftest.err >&5
20952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953
(exit $ac_status); } && {
20954
test -z "$ac_c_werror_flag" ||
20955
test ! -s conftest.err
20956
} && test -s conftest$ac_exeext &&
20957
$as_test_x conftest$ac_exeext; then
20958
eval "$as_ac_var=yes"
20960
echo "$as_me: failed program was:" >&5
20961
sed 's/^/| /' conftest.$ac_ext >&5
20963
eval "$as_ac_var=no"
20966
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20967
conftest$ac_exeext conftest.$ac_ext
20969
ac_res=`eval echo '${'$as_ac_var'}'`
20970
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20971
echo "${ECHO_T}$ac_res" >&6; }
20972
if test `eval echo '${'$as_ac_var'}'` = yes; then
20973
cat >>confdefs.h <<_ACEOF
20974
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20983
for ac_func in pread pwrite
20985
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20986
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20987
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20988
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20989
echo $ECHO_N "(cached) $ECHO_C" >&6
20991
cat >conftest.$ac_ext <<_ACEOF
20994
cat confdefs.h >>conftest.$ac_ext
20995
cat >>conftest.$ac_ext <<_ACEOF
20996
/* end confdefs.h. */
20997
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20998
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20999
#define $ac_func innocuous_$ac_func
21001
/* System header to define __stub macros and hopefully few prototypes,
21002
which can conflict with char $ac_func (); below.
21003
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21004
<limits.h> exists even on freestanding compilers. */
21007
# include <limits.h>
21009
# include <assert.h>
21014
/* Override any GCC internal prototype to avoid an error.
21015
Use char because int might match the return type of a GCC
21016
builtin and then its argument prototype would still apply. */
21021
/* The GNU C library defines this for functions which it implements
21022
to always fail with ENOSYS. Some functions are actually named
21023
something starting with __ and the normal name is an alias. */
21024
#if defined __stub_$ac_func || defined __stub___$ac_func
21031
return $ac_func ();
21036
rm -f conftest.$ac_objext conftest$ac_exeext
21037
if { (ac_try="$ac_link"
21038
case "(($ac_try" in
21039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040
*) ac_try_echo=$ac_try;;
21042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043
(eval "$ac_link") 2>conftest.er1
21045
grep -v '^ *+' conftest.er1 >conftest.err
21047
cat conftest.err >&5
21048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049
(exit $ac_status); } && {
21050
test -z "$ac_c_werror_flag" ||
21051
test ! -s conftest.err
21052
} && test -s conftest$ac_exeext &&
21053
$as_test_x conftest$ac_exeext; then
21054
eval "$as_ac_var=yes"
21056
echo "$as_me: failed program was:" >&5
21057
sed 's/^/| /' conftest.$ac_ext >&5
21059
eval "$as_ac_var=no"
21062
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21063
conftest$ac_exeext conftest.$ac_ext
21065
ac_res=`eval echo '${'$as_ac_var'}'`
21066
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21067
echo "${ECHO_T}$ac_res" >&6; }
21068
if test `eval echo '${'$as_ac_var'}'` = yes; then
21069
cat >>confdefs.h <<_ACEOF
21070
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21927
for ac_header in langinfo.h locale.h sys/filio.h
21929
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21930
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21931
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21932
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21933
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21934
echo $ECHO_N "(cached) $ECHO_C" >&6
21936
ac_res=`eval echo '${'$as_ac_Header'}'`
21937
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21938
echo "${ECHO_T}$ac_res" >&6; }
21940
# Is the header compilable?
21941
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21942
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21943
cat >conftest.$ac_ext <<_ACEOF
21946
cat confdefs.h >>conftest.$ac_ext
21947
cat >>conftest.$ac_ext <<_ACEOF
21948
/* end confdefs.h. */
21949
$ac_includes_default
21950
#include <$ac_header>
21952
rm -f conftest.$ac_objext
21953
if { (ac_try="$ac_compile"
21954
case "(($ac_try" in
21955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956
*) ac_try_echo=$ac_try;;
21958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959
(eval "$ac_compile") 2>conftest.er1
21961
grep -v '^ *+' conftest.er1 >conftest.err
21963
cat conftest.err >&5
21964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965
(exit $ac_status); } && {
21966
test -z "$ac_c_werror_flag" ||
21967
test ! -s conftest.err
21968
} && test -s conftest.$ac_objext; then
21969
ac_header_compiler=yes
21971
echo "$as_me: failed program was:" >&5
21972
sed 's/^/| /' conftest.$ac_ext >&5
21974
ac_header_compiler=no
21977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21978
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21979
echo "${ECHO_T}$ac_header_compiler" >&6; }
21981
# Is the header present?
21982
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21983
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21984
cat >conftest.$ac_ext <<_ACEOF
21987
cat confdefs.h >>conftest.$ac_ext
21988
cat >>conftest.$ac_ext <<_ACEOF
21989
/* end confdefs.h. */
21990
#include <$ac_header>
21992
if { (ac_try="$ac_cpp conftest.$ac_ext"
21993
case "(($ac_try" in
21994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995
*) ac_try_echo=$ac_try;;
21997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22000
grep -v '^ *+' conftest.er1 >conftest.err
22002
cat conftest.err >&5
22003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004
(exit $ac_status); } >/dev/null && {
22005
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22006
test ! -s conftest.err
22008
ac_header_preproc=yes
22010
echo "$as_me: failed program was:" >&5
22011
sed 's/^/| /' conftest.$ac_ext >&5
22013
ac_header_preproc=no
22016
rm -f conftest.err conftest.$ac_ext
22017
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22018
echo "${ECHO_T}$ac_header_preproc" >&6; }
22020
# So? What about this header?
22021
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22023
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22024
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22025
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22026
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22027
ac_header_preproc=yes
22030
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22031
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22032
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22033
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22034
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22035
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22036
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22037
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22038
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22039
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22040
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22041
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22045
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22046
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22047
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22048
echo $ECHO_N "(cached) $ECHO_C" >&6
22050
eval "$as_ac_Header=\$ac_header_preproc"
22052
ac_res=`eval echo '${'$as_ac_Header'}'`
22053
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22054
echo "${ECHO_T}$ac_res" >&6; }
22057
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22058
cat >>confdefs.h <<_ACEOF
22059
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22067
21434
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22068
21435
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22069
21436
if test "${ac_cv_c_const+set}" = set; then
24934
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
24935
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
24936
if test "${ac_cv_func_gethostbyname+set}" = set; then
24937
echo $ECHO_N "(cached) $ECHO_C" >&6
24939
cat >conftest.$ac_ext <<_ACEOF
24942
cat confdefs.h >>conftest.$ac_ext
24943
cat >>conftest.$ac_ext <<_ACEOF
24944
/* end confdefs.h. */
24945
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24946
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24947
#define gethostbyname innocuous_gethostbyname
24949
/* System header to define __stub macros and hopefully few prototypes,
24950
which can conflict with char gethostbyname (); below.
24951
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24952
<limits.h> exists even on freestanding compilers. */
24955
# include <limits.h>
24957
# include <assert.h>
24960
#undef gethostbyname
24962
/* Override any GCC internal prototype to avoid an error.
24963
Use char because int might match the return type of a GCC
24964
builtin and then its argument prototype would still apply. */
24968
char gethostbyname ();
24969
/* The GNU C library defines this for functions which it implements
24970
to always fail with ENOSYS. Some functions are actually named
24971
something starting with __ and the normal name is an alias. */
24972
#if defined __stub_gethostbyname || defined __stub___gethostbyname
24979
return gethostbyname ();
24984
rm -f conftest.$ac_objext conftest$ac_exeext
24985
if { (ac_try="$ac_link"
24986
case "(($ac_try" in
24987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988
*) ac_try_echo=$ac_try;;
24990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991
(eval "$ac_link") 2>conftest.er1
24993
grep -v '^ *+' conftest.er1 >conftest.err
24995
cat conftest.err >&5
24996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997
(exit $ac_status); } && {
24998
test -z "$ac_c_werror_flag" ||
24999
test ! -s conftest.err
25000
} && test -s conftest$ac_exeext &&
25001
$as_test_x conftest$ac_exeext; then
25002
ac_cv_func_gethostbyname=yes
25004
echo "$as_me: failed program was:" >&5
25005
sed 's/^/| /' conftest.$ac_ext >&5
25007
ac_cv_func_gethostbyname=no
25010
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011
conftest$ac_exeext conftest.$ac_ext
25013
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25014
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
25015
if test $ac_cv_func_gethostbyname = yes; then
25019
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25020
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25021
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25022
echo $ECHO_N "(cached) $ECHO_C" >&6
25024
ac_check_lib_save_LIBS=$LIBS
25026
cat >conftest.$ac_ext <<_ACEOF
25029
cat confdefs.h >>conftest.$ac_ext
25030
cat >>conftest.$ac_ext <<_ACEOF
25031
/* end confdefs.h. */
25033
/* Override any GCC internal prototype to avoid an error.
25034
Use char because int might match the return type of a GCC
25035
builtin and then its argument prototype would still apply. */
25039
char gethostbyname ();
25043
return gethostbyname ();
25048
rm -f conftest.$ac_objext conftest$ac_exeext
25049
if { (ac_try="$ac_link"
25050
case "(($ac_try" in
25051
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052
*) ac_try_echo=$ac_try;;
25054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25055
(eval "$ac_link") 2>conftest.er1
25057
grep -v '^ *+' conftest.er1 >conftest.err
25059
cat conftest.err >&5
25060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061
(exit $ac_status); } && {
25062
test -z "$ac_c_werror_flag" ||
25063
test ! -s conftest.err
25064
} && test -s conftest$ac_exeext &&
25065
$as_test_x conftest$ac_exeext; then
25066
ac_cv_lib_nsl_gethostbyname=yes
25068
echo "$as_me: failed program was:" >&5
25069
sed 's/^/| /' conftest.$ac_ext >&5
25071
ac_cv_lib_nsl_gethostbyname=no
25074
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25075
conftest$ac_exeext conftest.$ac_ext
25076
LIBS=$ac_check_lib_save_LIBS
25078
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25079
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25080
if test $ac_cv_lib_nsl_gethostbyname = yes; then
25081
cat >>confdefs.h <<_ACEOF
25082
#define HAVE_LIBNSL 1
25091
{ echo "$as_me:$LINENO: checking for connect" >&5
25092
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
25093
if test "${ac_cv_func_connect+set}" = set; then
25094
echo $ECHO_N "(cached) $ECHO_C" >&6
25096
cat >conftest.$ac_ext <<_ACEOF
25099
cat confdefs.h >>conftest.$ac_ext
25100
cat >>conftest.$ac_ext <<_ACEOF
25101
/* end confdefs.h. */
25102
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25103
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25104
#define connect innocuous_connect
25106
/* System header to define __stub macros and hopefully few prototypes,
25107
which can conflict with char connect (); below.
25108
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25109
<limits.h> exists even on freestanding compilers. */
25112
# include <limits.h>
25114
# include <assert.h>
25119
/* Override any GCC internal prototype to avoid an error.
25120
Use char because int might match the return type of a GCC
25121
builtin and then its argument prototype would still apply. */
25126
/* The GNU C library defines this for functions which it implements
25127
to always fail with ENOSYS. Some functions are actually named
25128
something starting with __ and the normal name is an alias. */
25129
#if defined __stub_connect || defined __stub___connect
25141
rm -f conftest.$ac_objext conftest$ac_exeext
25142
if { (ac_try="$ac_link"
25143
case "(($ac_try" in
25144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145
*) ac_try_echo=$ac_try;;
25147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148
(eval "$ac_link") 2>conftest.er1
25150
grep -v '^ *+' conftest.er1 >conftest.err
25152
cat conftest.err >&5
25153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154
(exit $ac_status); } && {
25155
test -z "$ac_c_werror_flag" ||
25156
test ! -s conftest.err
25157
} && test -s conftest$ac_exeext &&
25158
$as_test_x conftest$ac_exeext; then
25159
ac_cv_func_connect=yes
25161
echo "$as_me: failed program was:" >&5
25162
sed 's/^/| /' conftest.$ac_ext >&5
25164
ac_cv_func_connect=no
25167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25168
conftest$ac_exeext conftest.$ac_ext
25170
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25171
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
25172
if test $ac_cv_func_connect = yes; then
25176
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25177
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25178
if test "${ac_cv_lib_socket_connect+set}" = set; then
25179
echo $ECHO_N "(cached) $ECHO_C" >&6
25181
ac_check_lib_save_LIBS=$LIBS
25182
LIBS="-lsocket $LIBS"
25183
cat >conftest.$ac_ext <<_ACEOF
25186
cat confdefs.h >>conftest.$ac_ext
25187
cat >>conftest.$ac_ext <<_ACEOF
25188
/* end confdefs.h. */
25190
/* Override any GCC internal prototype to avoid an error.
25191
Use char because int might match the return type of a GCC
25192
builtin and then its argument prototype would still apply. */
25205
rm -f conftest.$ac_objext conftest$ac_exeext
25206
if { (ac_try="$ac_link"
25207
case "(($ac_try" in
25208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209
*) ac_try_echo=$ac_try;;
25211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25212
(eval "$ac_link") 2>conftest.er1
25214
grep -v '^ *+' conftest.er1 >conftest.err
25216
cat conftest.err >&5
25217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218
(exit $ac_status); } && {
25219
test -z "$ac_c_werror_flag" ||
25220
test ! -s conftest.err
25221
} && test -s conftest$ac_exeext &&
25222
$as_test_x conftest$ac_exeext; then
25223
ac_cv_lib_socket_connect=yes
25225
echo "$as_me: failed program was:" >&5
25226
sed 's/^/| /' conftest.$ac_ext >&5
25228
ac_cv_lib_socket_connect=no
25231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25232
conftest$ac_exeext conftest.$ac_ext
25233
LIBS=$ac_check_lib_save_LIBS
25235
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25236
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25237
if test $ac_cv_lib_socket_connect = yes; then
25238
cat >>confdefs.h <<_ACEOF
25239
#define HAVE_LIBSOCKET 1
25242
LIBS="-lsocket $LIBS"
25248
{ echo "$as_me:$LINENO: checking for library containing pthread_sigmask" >&5
25249
echo $ECHO_N "checking for library containing pthread_sigmask... $ECHO_C" >&6; }
25250
if test "${ac_cv_search_pthread_sigmask+set}" = set; then
25251
echo $ECHO_N "(cached) $ECHO_C" >&6
25253
ac_func_search_save_LIBS=$LIBS
25254
cat >conftest.$ac_ext <<_ACEOF
25257
cat confdefs.h >>conftest.$ac_ext
25258
cat >>conftest.$ac_ext <<_ACEOF
25259
/* end confdefs.h. */
25261
/* Override any GCC internal prototype to avoid an error.
25262
Use char because int might match the return type of a GCC
25263
builtin and then its argument prototype would still apply. */
25267
char pthread_sigmask ();
25271
return pthread_sigmask ();
25276
for ac_lib in '' pthread; do
25277
if test -z "$ac_lib"; then
25278
ac_res="none required"
25281
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25283
rm -f conftest.$ac_objext conftest$ac_exeext
25284
if { (ac_try="$ac_link"
25285
case "(($ac_try" in
25286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287
*) ac_try_echo=$ac_try;;
25289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290
(eval "$ac_link") 2>conftest.er1
25292
grep -v '^ *+' conftest.er1 >conftest.err
25294
cat conftest.err >&5
25295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296
(exit $ac_status); } && {
25297
test -z "$ac_c_werror_flag" ||
25298
test ! -s conftest.err
25299
} && test -s conftest$ac_exeext &&
25300
$as_test_x conftest$ac_exeext; then
25301
ac_cv_search_pthread_sigmask=$ac_res
25303
echo "$as_me: failed program was:" >&5
25304
sed 's/^/| /' conftest.$ac_ext >&5
25309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25311
if test "${ac_cv_search_pthread_sigmask+set}" = set; then
25315
if test "${ac_cv_search_pthread_sigmask+set}" = set; then
25318
ac_cv_search_pthread_sigmask=no
25320
rm conftest.$ac_ext
25321
LIBS=$ac_func_search_save_LIBS
25323
{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_sigmask" >&5
25324
echo "${ECHO_T}$ac_cv_search_pthread_sigmask" >&6; }
25325
ac_res=$ac_cv_search_pthread_sigmask
25326
if test "$ac_res" != no; then
25327
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25330
{ { echo "$as_me:$LINENO: error: cannot find pthread_sigmask in libc or libpthread" >&5
25331
echo "$as_me: error: cannot find pthread_sigmask in libc or libpthread" >&2;}
25332
{ (exit 1); exit 1; }; }
25335
if test x"$ac_cv_search_pthread_sigmask" != x"none required" ; then
25336
PTHREAD_LIBS=$ac_cv_search_pthread_sigmask
25540
25339
cat >confcache <<\_ACEOF
25541
25340
# This file is a shell script that caches the results of configure
25542
25341
# tests run on this system so they can be shared between configure
28101
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28102
if test -n "$ac_tool_prefix"; then
28103
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28104
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28105
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28106
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28107
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28108
echo $ECHO_N "(cached) $ECHO_C" >&6
28110
case $PKG_CONFIG in
28112
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28116
for as_dir in $PATH
28119
test -z "$as_dir" && as_dir=.
28120
for ac_exec_ext in '' $ac_executable_extensions; do
28121
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28122
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28123
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28133
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28134
if test -n "$PKG_CONFIG"; then
28135
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28136
echo "${ECHO_T}$PKG_CONFIG" >&6; }
28138
{ echo "$as_me:$LINENO: result: no" >&5
28139
echo "${ECHO_T}no" >&6; }
28144
if test -z "$ac_cv_path_PKG_CONFIG"; then
28145
ac_pt_PKG_CONFIG=$PKG_CONFIG
28146
# Extract the first word of "pkg-config", so it can be a program name with args.
28147
set dummy pkg-config; ac_word=$2
28148
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28150
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28151
echo $ECHO_N "(cached) $ECHO_C" >&6
28153
case $ac_pt_PKG_CONFIG in
28155
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28159
for as_dir in $PATH
28162
test -z "$as_dir" && as_dir=.
28163
for ac_exec_ext in '' $ac_executable_extensions; do
28164
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28165
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28166
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28176
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28177
if test -n "$ac_pt_PKG_CONFIG"; then
28178
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
28179
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
28181
{ echo "$as_me:$LINENO: result: no" >&5
28182
echo "${ECHO_T}no" >&6; }
28185
if test "x$ac_pt_PKG_CONFIG" = x; then
28188
case $cross_compiling:$ac_tool_warned in
28190
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28191
whose name does not start with the host triplet. If you think this
28192
configuration is useful to you, please write to autoconf@gnu.org." >&5
28193
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28194
whose name does not start with the host triplet. If you think this
28195
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28196
ac_tool_warned=yes ;;
28198
PKG_CONFIG=$ac_pt_PKG_CONFIG
28201
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
28205
if test -n "$PKG_CONFIG"; then
28206
_pkg_min_version=0.9.0
28207
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
28208
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
28209
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
28210
{ echo "$as_me:$LINENO: result: yes" >&5
28211
echo "${ECHO_T}yes" >&6; }
28213
{ echo "$as_me:$LINENO: result: no" >&5
28214
echo "${ECHO_T}no" >&6; }
28225
# Check whether --enable-zeroconf was given.
28226
if test "${enable_zeroconf+set}" = set; then
28227
enableval=$enable_zeroconf; zeroconf=$enableval
28234
[ -n "$atalk_libname" ] || { { echo "$as_me:$LINENO: error: internal error, atalk_libname undefined" >&5
28235
echo "$as_me: error: internal error, atalk_libname undefined" >&2;}
28236
{ (exit 1); exit 1; }; }
28238
if test "x$zeroconf" != "xno"; then
28239
savedcppflags="$CPPFLAGS"
28240
savedldflags="$LDFLAGS"
28242
if test "x$zeroconf" = "xyes" -o "x$zeroconf" = "xtry"; then
28243
zeroconf_dir="/usr"
28245
zeroconf_dir="$zeroconf"
28248
# mDNS support using Avahi
28249
if test "${ac_cv_header_avahi_client_client_h+set}" = set; then
28250
{ echo "$as_me:$LINENO: checking for avahi-client/client.h" >&5
28251
echo $ECHO_N "checking for avahi-client/client.h... $ECHO_C" >&6; }
28252
if test "${ac_cv_header_avahi_client_client_h+set}" = set; then
28253
echo $ECHO_N "(cached) $ECHO_C" >&6
28255
{ echo "$as_me:$LINENO: result: $ac_cv_header_avahi_client_client_h" >&5
28256
echo "${ECHO_T}$ac_cv_header_avahi_client_client_h" >&6; }
28258
# Is the header compilable?
28259
{ echo "$as_me:$LINENO: checking avahi-client/client.h usability" >&5
28260
echo $ECHO_N "checking avahi-client/client.h usability... $ECHO_C" >&6; }
28261
cat >conftest.$ac_ext <<_ACEOF
28264
cat confdefs.h >>conftest.$ac_ext
28265
cat >>conftest.$ac_ext <<_ACEOF
28266
/* end confdefs.h. */
28267
$ac_includes_default
28268
#include <avahi-client/client.h>
28270
rm -f conftest.$ac_objext
28271
if { (ac_try="$ac_compile"
28272
case "(($ac_try" in
28273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274
*) ac_try_echo=$ac_try;;
28276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277
(eval "$ac_compile") 2>conftest.er1
28279
grep -v '^ *+' conftest.er1 >conftest.err
28281
cat conftest.err >&5
28282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283
(exit $ac_status); } && {
28284
test -z "$ac_c_werror_flag" ||
28285
test ! -s conftest.err
28286
} && test -s conftest.$ac_objext; then
28287
ac_header_compiler=yes
28289
echo "$as_me: failed program was:" >&5
28290
sed 's/^/| /' conftest.$ac_ext >&5
28292
ac_header_compiler=no
28295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28296
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28297
echo "${ECHO_T}$ac_header_compiler" >&6; }
28299
# Is the header present?
28300
{ echo "$as_me:$LINENO: checking avahi-client/client.h presence" >&5
28301
echo $ECHO_N "checking avahi-client/client.h presence... $ECHO_C" >&6; }
28302
cat >conftest.$ac_ext <<_ACEOF
28305
cat confdefs.h >>conftest.$ac_ext
28306
cat >>conftest.$ac_ext <<_ACEOF
28307
/* end confdefs.h. */
28308
#include <avahi-client/client.h>
28310
if { (ac_try="$ac_cpp conftest.$ac_ext"
28311
case "(($ac_try" in
28312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28313
*) ac_try_echo=$ac_try;;
28315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28316
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28318
grep -v '^ *+' conftest.er1 >conftest.err
28320
cat conftest.err >&5
28321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322
(exit $ac_status); } >/dev/null && {
28323
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28324
test ! -s conftest.err
28326
ac_header_preproc=yes
28328
echo "$as_me: failed program was:" >&5
28329
sed 's/^/| /' conftest.$ac_ext >&5
28331
ac_header_preproc=no
28334
rm -f conftest.err conftest.$ac_ext
28335
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28336
echo "${ECHO_T}$ac_header_preproc" >&6; }
28338
# So? What about this header?
28339
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28341
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: accepted by the compiler, rejected by the preprocessor!" >&5
28342
echo "$as_me: WARNING: avahi-client/client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28343
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: proceeding with the compiler's result" >&5
28344
echo "$as_me: WARNING: avahi-client/client.h: proceeding with the compiler's result" >&2;}
28345
ac_header_preproc=yes
28348
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: present but cannot be compiled" >&5
28349
echo "$as_me: WARNING: avahi-client/client.h: present but cannot be compiled" >&2;}
28350
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: check for missing prerequisite headers?" >&5
28351
echo "$as_me: WARNING: avahi-client/client.h: check for missing prerequisite headers?" >&2;}
28352
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: see the Autoconf documentation" >&5
28353
echo "$as_me: WARNING: avahi-client/client.h: see the Autoconf documentation" >&2;}
28354
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: section \"Present But Cannot Be Compiled\"" >&5
28355
echo "$as_me: WARNING: avahi-client/client.h: section \"Present But Cannot Be Compiled\"" >&2;}
28356
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: proceeding with the preprocessor's result" >&5
28357
echo "$as_me: WARNING: avahi-client/client.h: proceeding with the preprocessor's result" >&2;}
28358
{ echo "$as_me:$LINENO: WARNING: avahi-client/client.h: in the future, the compiler will take precedence" >&5
28359
echo "$as_me: WARNING: avahi-client/client.h: in the future, the compiler will take precedence" >&2;}
28363
{ echo "$as_me:$LINENO: checking for avahi-client/client.h" >&5
28364
echo $ECHO_N "checking for avahi-client/client.h... $ECHO_C" >&6; }
28365
if test "${ac_cv_header_avahi_client_client_h+set}" = set; then
28366
echo $ECHO_N "(cached) $ECHO_C" >&6
28368
ac_cv_header_avahi_client_client_h=$ac_header_preproc
28370
{ echo "$as_me:$LINENO: result: $ac_cv_header_avahi_client_client_h" >&5
28371
echo "${ECHO_T}$ac_cv_header_avahi_client_client_h" >&6; }
28374
if test $ac_cv_header_avahi_client_client_h = yes; then
28375
{ echo "$as_me:$LINENO: checking for avahi_client_new in -lavahi-client" >&5
28376
echo $ECHO_N "checking for avahi_client_new in -lavahi-client... $ECHO_C" >&6; }
28377
if test "${ac_cv_lib_avahi_client_avahi_client_new+set}" = set; then
28378
echo $ECHO_N "(cached) $ECHO_C" >&6
28380
ac_check_lib_save_LIBS=$LIBS
28381
LIBS="-lavahi-client $LIBS"
28382
cat >conftest.$ac_ext <<_ACEOF
28385
cat confdefs.h >>conftest.$ac_ext
28386
cat >>conftest.$ac_ext <<_ACEOF
28387
/* end confdefs.h. */
28389
/* Override any GCC internal prototype to avoid an error.
28390
Use char because int might match the return type of a GCC
28391
builtin and then its argument prototype would still apply. */
28395
char avahi_client_new ();
28399
return avahi_client_new ();
28404
rm -f conftest.$ac_objext conftest$ac_exeext
28405
if { (ac_try="$ac_link"
28406
case "(($ac_try" in
28407
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408
*) ac_try_echo=$ac_try;;
28410
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411
(eval "$ac_link") 2>conftest.er1
28413
grep -v '^ *+' conftest.er1 >conftest.err
28415
cat conftest.err >&5
28416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417
(exit $ac_status); } && {
28418
test -z "$ac_c_werror_flag" ||
28419
test ! -s conftest.err
28420
} && test -s conftest$ac_exeext &&
28421
$as_test_x conftest$ac_exeext; then
28422
ac_cv_lib_avahi_client_avahi_client_new=yes
28424
echo "$as_me: failed program was:" >&5
28425
sed 's/^/| /' conftest.$ac_ext >&5
28427
ac_cv_lib_avahi_client_avahi_client_new=no
28430
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28431
conftest$ac_exeext conftest.$ac_ext
28432
LIBS=$ac_check_lib_save_LIBS
28434
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
28435
echo "${ECHO_T}$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
28436
if test $ac_cv_lib_avahi_client_avahi_client_new = yes; then
28438
cat >>confdefs.h <<\_ACEOF
28439
#define USE_ZEROCONF 1
28449
case "$ac_cv_lib_avahi_client_avahi_client_new" in
28453
{ echo "$as_me:$LINENO: checking for AVAHI" >&5
28454
echo $ECHO_N "checking for AVAHI... $ECHO_C" >&6; }
28456
if test -n "$PKG_CONFIG"; then
28457
if test -n "$AVAHI_CFLAGS"; then
28458
pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
28460
if test -n "$PKG_CONFIG" && \
28461
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \"") >&5
28462
($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
28464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465
(exit $ac_status); }; then
28466
pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6 " 2>/dev/null`
28474
if test -n "$PKG_CONFIG"; then
28475
if test -n "$AVAHI_LIBS"; then
28476
pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
28478
if test -n "$PKG_CONFIG" && \
28479
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \"") >&5
28480
($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
28482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483
(exit $ac_status); }; then
28484
pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6 " 2>/dev/null`
28495
if test $pkg_failed = yes; then
28497
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28498
_pkg_short_errors_supported=yes
28500
_pkg_short_errors_supported=no
28502
if test $_pkg_short_errors_supported = yes; then
28503
AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " avahi-client >= 0.6 "`
28505
AVAHI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " avahi-client >= 0.6 "`
28507
# Put the nasty error message in config.log where it belongs
28508
echo "$AVAHI_PKG_ERRORS" >&5
28510
{ { echo "$as_me:$LINENO: error: Package requirements ( avahi-client >= 0.6 ) were not met:
28514
Consider adjusting the PKG_CONFIG_PATH environment variable if you
28515
installed software in a non-standard prefix.
28517
Alternatively, you may set the environment variables AVAHI_CFLAGS
28518
and AVAHI_LIBS to avoid the need to call pkg-config.
28519
See the pkg-config man page for more details.
28521
echo "$as_me: error: Package requirements ( avahi-client >= 0.6 ) were not met:
28525
Consider adjusting the PKG_CONFIG_PATH environment variable if you
28526
installed software in a non-standard prefix.
28528
Alternatively, you may set the environment variables AVAHI_CFLAGS
28529
and AVAHI_LIBS to avoid the need to call pkg-config.
28530
See the pkg-config man page for more details.
28532
{ (exit 1); exit 1; }; }
28533
elif test $pkg_failed = untried; then
28534
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
28535
is in your PATH or set the PKG_CONFIG environment variable to the full
28536
path to pkg-config.
28538
Alternatively, you may set the environment variables AVAHI_CFLAGS
28539
and AVAHI_LIBS to avoid the need to call pkg-config.
28540
See the pkg-config man page for more details.
28542
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28543
See \`config.log' for more details." >&5
28544
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
28545
is in your PATH or set the PKG_CONFIG environment variable to the full
28546
path to pkg-config.
28548
Alternatively, you may set the environment variables AVAHI_CFLAGS
28549
and AVAHI_LIBS to avoid the need to call pkg-config.
28550
See the pkg-config man page for more details.
28552
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28553
See \`config.log' for more details." >&2;}
28554
{ (exit 1); exit 1; }; }
28556
AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
28557
AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
28558
{ echo "$as_me:$LINENO: result: yes" >&5
28559
echo "${ECHO_T}yes" >&6; }
28564
{ echo "$as_me:$LINENO: checking for AVAHI_TPOLL" >&5
28565
echo $ECHO_N "checking for AVAHI_TPOLL... $ECHO_C" >&6; }
28567
if test -n "$PKG_CONFIG"; then
28568
if test -n "$AVAHI_TPOLL_CFLAGS"; then
28569
pkg_cv_AVAHI_TPOLL_CFLAGS="$AVAHI_TPOLL_CFLAGS"
28571
if test -n "$PKG_CONFIG" && \
28572
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \"") >&5
28573
($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
28575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576
(exit $ac_status); }; then
28577
pkg_cv_AVAHI_TPOLL_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6.4 " 2>/dev/null`
28585
if test -n "$PKG_CONFIG"; then
28586
if test -n "$AVAHI_TPOLL_LIBS"; then
28587
pkg_cv_AVAHI_TPOLL_LIBS="$AVAHI_TPOLL_LIBS"
28589
if test -n "$PKG_CONFIG" && \
28590
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \"") >&5
28591
($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
28593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594
(exit $ac_status); }; then
28595
pkg_cv_AVAHI_TPOLL_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6.4 " 2>/dev/null`
28606
if test $pkg_failed = yes; then
28608
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28609
_pkg_short_errors_supported=yes
28611
_pkg_short_errors_supported=no
28613
if test $_pkg_short_errors_supported = yes; then
28614
AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " avahi-client >= 0.6.4 "`
28616
AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " avahi-client >= 0.6.4 "`
28618
# Put the nasty error message in config.log where it belongs
28619
echo "$AVAHI_TPOLL_PKG_ERRORS" >&5
28621
{ echo "$as_me:$LINENO: result: no" >&5
28622
echo "${ECHO_T}no" >&6; }
28623
{ echo "$as_me:$LINENO: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&5
28624
echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
28625
elif test $pkg_failed = untried; then
28626
{ echo "$as_me:$LINENO: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&5
28627
echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
28629
AVAHI_TPOLL_CFLAGS=$pkg_cv_AVAHI_TPOLL_CFLAGS
28630
AVAHI_TPOLL_LIBS=$pkg_cv_AVAHI_TPOLL_LIBS
28631
{ echo "$as_me:$LINENO: result: yes" >&5
28632
echo "${ECHO_T}yes" >&6; }
28634
cat >>confdefs.h <<\_ACEOF
28635
#define HAVE_AVAHI_THREADED_POLL 1
28639
ZEROCONF_LIBS="$AVAHI_LIBS"
28640
ZEROCONF_CFLAGS="$AVAHI_CFLAGS"
28642
cat >>confdefs.h <<\_ACEOF
28643
#define HAVE_AVAHI 1
28650
CPPFLAGS="$savedcppflags"
28651
LDFLAGS="$savedldflags"
28654
netatalk_cv_zeroconf=no
28655
{ echo "$as_me:$LINENO: checking whether to enable Zerconf support" >&5
28656
echo $ECHO_N "checking whether to enable Zerconf support... $ECHO_C" >&6; }
28657
if test "x$found_zeroconf" = "xyes"; then
28658
{ echo "$as_me:$LINENO: result: yes" >&5
28659
echo "${ECHO_T}yes" >&6; }
28661
cat >>confdefs.h <<\_ACEOF
28662
#define USE_ZEROCONF 1
28665
netatalk_cv_zeroconf=yes
28667
{ echo "$as_me:$LINENO: result: no" >&5
28668
echo "${ECHO_T}no" >&6; }
28669
if test "x$zeroconf" != "xno" -a "x$zeroconf" != "xtry"; then
28670
{ { echo "$as_me:$LINENO: error: Zeroconf installation not found" >&5
28671
echo "$as_me: error: Zeroconf installation not found" >&2;}
28672
{ (exit 1); exit 1; }; }
28678
for i in $ZEROCONF_LIBS; do
28680
-L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
28681
*) ac_new_flags="$ac_new_flags $i" ;;
28684
ZEROCONF_LIBS=$ac_new_flags
28688
for i in $ZEROCONF_CFLAGS; do
28690
-I/usr/include|-I/usr/include/) ;;
28691
*) ac_new_flags="$ac_new_flags $i" ;;
28694
ZEROCONF_CFLAGS=$ac_new_flags
28328
28700
netatalk_cv_use_pam=no
32607
32967
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
32608
32968
echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
32609
32969
if test $ac_cv_lib_ldap_ldap_init = yes; then
32610
neta_cv_nfsv4acl=yes
32612
neta_cv_nfsv4acl=no
32616
if test x$neta_cv_nfsv4acl = xyes; then
32617
if test "${ac_cv_header_sys_acl_h+set}" = set; then
32618
{ echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32619
echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32620
if test "${ac_cv_header_sys_acl_h+set}" = set; then
32621
echo $ECHO_N "(cached) $ECHO_C" >&6
32623
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32624
echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32626
# Is the header compilable?
32627
{ echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32628
echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32629
cat >conftest.$ac_ext <<_ACEOF
32632
cat confdefs.h >>conftest.$ac_ext
32633
cat >>conftest.$ac_ext <<_ACEOF
32634
/* end confdefs.h. */
32635
$ac_includes_default
32636
#include <sys/acl.h>
32638
rm -f conftest.$ac_objext
32639
if { (ac_try="$ac_compile"
32640
case "(($ac_try" in
32641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32642
*) ac_try_echo=$ac_try;;
32644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32645
(eval "$ac_compile") 2>conftest.er1
32647
grep -v '^ *+' conftest.er1 >conftest.err
32649
cat conftest.err >&5
32650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651
(exit $ac_status); } && {
32652
test -z "$ac_c_werror_flag" ||
32653
test ! -s conftest.err
32654
} && test -s conftest.$ac_objext; then
32655
ac_header_compiler=yes
32657
echo "$as_me: failed program was:" >&5
32658
sed 's/^/| /' conftest.$ac_ext >&5
32660
ac_header_compiler=no
32663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32664
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32665
echo "${ECHO_T}$ac_header_compiler" >&6; }
32667
# Is the header present?
32668
{ echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32669
echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32670
cat >conftest.$ac_ext <<_ACEOF
32673
cat confdefs.h >>conftest.$ac_ext
32674
cat >>conftest.$ac_ext <<_ACEOF
32675
/* end confdefs.h. */
32676
#include <sys/acl.h>
32678
if { (ac_try="$ac_cpp conftest.$ac_ext"
32679
case "(($ac_try" in
32680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681
*) ac_try_echo=$ac_try;;
32683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32686
grep -v '^ *+' conftest.er1 >conftest.err
32688
cat conftest.err >&5
32689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690
(exit $ac_status); } >/dev/null && {
32691
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32692
test ! -s conftest.err
32694
ac_header_preproc=yes
32696
echo "$as_me: failed program was:" >&5
32697
sed 's/^/| /' conftest.$ac_ext >&5
32699
ac_header_preproc=no
32702
rm -f conftest.err conftest.$ac_ext
32703
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32704
echo "${ECHO_T}$ac_header_preproc" >&6; }
32706
# So? What about this header?
32707
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32709
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32710
echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32711
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32712
echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32713
ac_header_preproc=yes
32716
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32717
echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32718
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
32719
echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
32720
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32721
echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32722
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
32723
echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
32724
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32725
echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32726
{ echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32727
echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32731
{ echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32732
echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32733
if test "${ac_cv_header_sys_acl_h+set}" = set; then
32734
echo $ECHO_N "(cached) $ECHO_C" >&6
32736
ac_cv_header_sys_acl_h=$ac_header_preproc
32738
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32739
echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32742
if test $ac_cv_header_sys_acl_h = yes; then
32745
cat >>confdefs.h <<\_ACEOF
32746
#define HAVE_NFSv4_ACLS 1
32749
{ echo "$as_me:$LINENO: Enabling ACL support" >&5
32750
echo "$as_me: Enabling ACL support" >&6;}
32753
neta_cv_nfsv4acl=no
32759
if test x$neta_cv_nfsv4acl = xyes; then
32760
LIBATALK_ACLS="acl/libacl.la"
32972
if test x"$with_ldap" = x"yes" ; then
32973
{ { echo "$as_me:$LINENO: error: Missing LDAP library" >&5
32974
echo "$as_me: error: Missing LDAP library" >&2;}
32975
{ (exit 1); exit 1; }; }
32983
if test x"$with_ldap" = x"yes"; then
32985
cat >>confdefs.h <<\_ACEOF
32986
#define HAVE_LDAP 1
32991
{ echo "$as_me:$LINENO: checking whether to support ACLs" >&5
32992
echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6; }
32994
# Check whether --with-acls was given.
32995
if test "${with_acls+set}" = set; then
32996
withval=$with_acls; case "$withval" in
32998
with_acl_support="$withval"
33001
with_acl_support=auto
33005
with_acl_support=auto
33008
{ echo "$as_me:$LINENO: result: $with_acl_support" >&5
33009
echo "${ECHO_T}$with_acl_support" >&6; }
33011
if test x"$with_acl_support" = x"no"; then
33012
{ echo "$as_me:$LINENO: result: Disabling ACL support" >&5
33013
echo "${ECHO_T}Disabling ACL support" >&6; }
33015
cat >>confdefs.h <<\_ACEOF
33016
#define HAVE_NO_ACLS 1
33020
with_acl_support=yes
33023
if test x"$with_acl_support" = x"yes" ; then
33024
{ echo "$as_me:$LINENO: checking whether ACL support is available:" >&5
33025
echo "$as_me: checking whether ACL support is available:" >&6;}
33028
{ echo "$as_me:$LINENO: Using UnixWare ACLs" >&5
33029
echo "$as_me: Using UnixWare ACLs" >&6;}
33031
cat >>confdefs.h <<\_ACEOF
33032
#define HAVE_UNIXWARE_ACLS 1
33037
{ echo "$as_me:$LINENO: Using solaris ACLs" >&5
33038
echo "$as_me: Using solaris ACLs" >&6;}
33040
cat >>confdefs.h <<\_ACEOF
33041
#define HAVE_SOLARIS_ACLS 1
33044
ACL_LIBS="$ACL_LIBS -lsec"
33047
{ echo "$as_me:$LINENO: Using HPUX ACLs" >&5
33048
echo "$as_me: Using HPUX ACLs" >&6;}
33050
cat >>confdefs.h <<\_ACEOF
33051
#define HAVE_HPUX_ACLS 1
33056
{ echo "$as_me:$LINENO: Using IRIX ACLs" >&5
33057
echo "$as_me: Using IRIX ACLs" >&6;}
33059
cat >>confdefs.h <<\_ACEOF
33060
#define HAVE_IRIX_ACLS 1
33065
{ echo "$as_me:$LINENO: Using AIX ACLs" >&5
33066
echo "$as_me: Using AIX ACLs" >&6;}
33068
cat >>confdefs.h <<\_ACEOF
33069
#define HAVE_AIX_ACLS 1
33074
{ echo "$as_me:$LINENO: Using Tru64 ACLs" >&5
33075
echo "$as_me: Using Tru64 ACLs" >&6;}
33077
cat >>confdefs.h <<\_ACEOF
33078
#define HAVE_TRU64_ACLS 1
33081
ACL_LIBS="$ACL_LIBS -lpacl"
33084
{ echo "$as_me:$LINENO: ACLs on Darwin currently not supported" >&5
33085
echo "$as_me: ACLs on Darwin currently not supported" >&6;}
33087
cat >>confdefs.h <<\_ACEOF
33088
#define HAVE_NO_ACLS 1
33093
{ echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33094
echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33095
if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33096
echo $ECHO_N "(cached) $ECHO_C" >&6
33098
ac_check_lib_save_LIBS=$LIBS
33100
cat >conftest.$ac_ext <<_ACEOF
33103
cat confdefs.h >>conftest.$ac_ext
33104
cat >>conftest.$ac_ext <<_ACEOF
33105
/* end confdefs.h. */
33107
/* Override any GCC internal prototype to avoid an error.
33108
Use char because int might match the return type of a GCC
33109
builtin and then its argument prototype would still apply. */
33113
char acl_get_file ();
33117
return acl_get_file ();
33122
rm -f conftest.$ac_objext conftest$ac_exeext
33123
if { (ac_try="$ac_link"
33124
case "(($ac_try" in
33125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126
*) ac_try_echo=$ac_try;;
33128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129
(eval "$ac_link") 2>conftest.er1
33131
grep -v '^ *+' conftest.er1 >conftest.err
33133
cat conftest.err >&5
33134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135
(exit $ac_status); } && {
33136
test -z "$ac_c_werror_flag" ||
33137
test ! -s conftest.err
33138
} && test -s conftest$ac_exeext &&
33139
$as_test_x conftest$ac_exeext; then
33140
ac_cv_lib_acl_acl_get_file=yes
33142
echo "$as_me: failed program was:" >&5
33143
sed 's/^/| /' conftest.$ac_ext >&5
33145
ac_cv_lib_acl_acl_get_file=no
33148
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33149
conftest$ac_exeext conftest.$ac_ext
33150
LIBS=$ac_check_lib_save_LIBS
33152
{ echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33153
echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33154
if test $ac_cv_lib_acl_acl_get_file = yes; then
33155
ACL_LIBS="$ACL_LIBS -lacl"
33160
{ echo "$as_me:$LINENO: checking for getxattr in -lattr" >&5
33161
echo $ECHO_N "checking for getxattr in -lattr... $ECHO_C" >&6; }
33162
if test "${ac_cv_lib_attr_getxattr+set}" = set; then
33163
echo $ECHO_N "(cached) $ECHO_C" >&6
33165
ac_check_lib_save_LIBS=$LIBS
33166
LIBS="-lattr $LIBS"
33167
cat >conftest.$ac_ext <<_ACEOF
33170
cat confdefs.h >>conftest.$ac_ext
33171
cat >>conftest.$ac_ext <<_ACEOF
33172
/* end confdefs.h. */
33174
/* Override any GCC internal prototype to avoid an error.
33175
Use char because int might match the return type of a GCC
33176
builtin and then its argument prototype would still apply. */
33184
return getxattr ();
33189
rm -f conftest.$ac_objext conftest$ac_exeext
33190
if { (ac_try="$ac_link"
33191
case "(($ac_try" in
33192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193
*) ac_try_echo=$ac_try;;
33195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196
(eval "$ac_link") 2>conftest.er1
33198
grep -v '^ *+' conftest.er1 >conftest.err
33200
cat conftest.err >&5
33201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202
(exit $ac_status); } && {
33203
test -z "$ac_c_werror_flag" ||
33204
test ! -s conftest.err
33205
} && test -s conftest$ac_exeext &&
33206
$as_test_x conftest$ac_exeext; then
33207
ac_cv_lib_attr_getxattr=yes
33209
echo "$as_me: failed program was:" >&5
33210
sed 's/^/| /' conftest.$ac_ext >&5
33212
ac_cv_lib_attr_getxattr=no
33215
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33216
conftest$ac_exeext conftest.$ac_ext
33217
LIBS=$ac_check_lib_save_LIBS
33219
{ echo "$as_me:$LINENO: result: $ac_cv_lib_attr_getxattr" >&5
33220
echo "${ECHO_T}$ac_cv_lib_attr_getxattr" >&6; }
33221
if test $ac_cv_lib_attr_getxattr = yes; then
33222
ACL_LIBS="$ACL_LIBS -lattr"
33227
{ echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
33228
echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
33229
if test "${netatalk_cv_HAVE_POSIX_ACLS+set}" = set; then
33230
echo $ECHO_N "(cached) $ECHO_C" >&6
33234
LIBS="$LIBS $ACL_LIBS"
33235
cat >conftest.$ac_ext <<_ACEOF
33238
cat confdefs.h >>conftest.$ac_ext
33239
cat >>conftest.$ac_ext <<_ACEOF
33240
/* end confdefs.h. */
33242
#include <sys/types.h>
33243
#include <sys/acl.h>
33251
acl_entry_t *entry_p;
33252
return acl_get_entry(acl, entry_id, entry_p);
33258
rm -f conftest.$ac_objext conftest$ac_exeext
33259
if { (ac_try="$ac_link"
33260
case "(($ac_try" in
33261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262
*) ac_try_echo=$ac_try;;
33264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265
(eval "$ac_link") 2>conftest.er1
33267
grep -v '^ *+' conftest.er1 >conftest.err
33269
cat conftest.err >&5
33270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271
(exit $ac_status); } && {
33272
test -z "$ac_c_werror_flag" ||
33273
test ! -s conftest.err
33274
} && test -s conftest$ac_exeext &&
33275
$as_test_x conftest$ac_exeext; then
33276
netatalk_cv_HAVE_POSIX_ACLS=yes
33278
echo "$as_me: failed program was:" >&5
33279
sed 's/^/| /' conftest.$ac_ext >&5
33281
netatalk_cv_HAVE_POSIX_ACLS=no
33282
with_acl_support=no
33285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33286
conftest$ac_exeext conftest.$ac_ext
33290
{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_POSIX_ACLS" >&5
33291
echo "${ECHO_T}$netatalk_cv_HAVE_POSIX_ACLS" >&6; }
33292
if test x"$netatalk_cv_HAVE_POSIX_ACLS" = x"yes"; then
33293
{ echo "$as_me:$LINENO: Using POSIX ACLs" >&5
33294
echo "$as_me: Using POSIX ACLs" >&6;}
33296
cat >>confdefs.h <<\_ACEOF
33297
#define HAVE_POSIX_ACLS 1
33300
{ echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
33301
echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6; }
33302
if test "${netatalk_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
33303
echo $ECHO_N "(cached) $ECHO_C" >&6
33307
LIBS="$LIBS $ACL_LIBS"
33308
cat >conftest.$ac_ext <<_ACEOF
33311
cat confdefs.h >>conftest.$ac_ext
33312
cat >>conftest.$ac_ext <<_ACEOF
33313
/* end confdefs.h. */
33315
#include <sys/types.h>
33316
#include <sys/acl.h>
33322
acl_permset_t permset_d;
33324
return acl_get_perm_np(permset_d, perm);
33330
rm -f conftest.$ac_objext conftest$ac_exeext
33331
if { (ac_try="$ac_link"
33332
case "(($ac_try" in
33333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334
*) ac_try_echo=$ac_try;;
33336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337
(eval "$ac_link") 2>conftest.er1
33339
grep -v '^ *+' conftest.er1 >conftest.err
33341
cat conftest.err >&5
33342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343
(exit $ac_status); } && {
33344
test -z "$ac_c_werror_flag" ||
33345
test ! -s conftest.err
33346
} && test -s conftest$ac_exeext &&
33347
$as_test_x conftest$ac_exeext; then
33348
samba_cv_HAVE_ACL_GET_PERM_NP=yes
33350
echo "$as_me: failed program was:" >&5
33351
sed 's/^/| /' conftest.$ac_ext >&5
33353
samba_cv_HAVE_ACL_GET_PERM_NP=no
33356
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33357
conftest$ac_exeext conftest.$ac_ext
33361
{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_ACL_GET_PERM_NP" >&5
33362
echo "${ECHO_T}$netatalk_cv_HAVE_ACL_GET_PERM_NP" >&6; }
33363
if test x"netatalk_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
33365
cat >>confdefs.h <<\_ACEOF
33366
#define HAVE_ACL_GET_PERM_NP 1
33371
{ echo "$as_me:$LINENO: ACL support is not avaliable" >&5
33372
echo "$as_me: ACL support is not avaliable" >&6;}
33374
cat >>confdefs.h <<\_ACEOF
33375
#define HAVE_NO_ACLS 1
33383
if test x"$with_acl_support" = x"yes" ; then
33385
cat >>confdefs.h <<\_ACEOF
33386
#define HAVE_ACLS 1
32766
33392
neta_cv_eas="ad"
32767
33393
neta_cv_eas_sys_found=no