diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 88 |
1 files changed, 65 insertions, 23 deletions
@@ -545,7 +545,7 @@ fi # The nfs-utils version -VERSION="1.0.7-pre2" +VERSION="1.0.7" # Check whether --with-release or --without-release was given. @@ -1771,8 +1771,50 @@ fi if test "$enable_gss" = yes; then + for ac_hdr in nfsidmap.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1779: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1784 "configure" +#include "confdefs.h" +#include <$ac_hdr> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $ac_tr_hdr 1 +EOF + +else + echo "$ac_t""no" 1>&6 +{ echo "configure: error: libnfsidmap needed for gss support" 1>&2; exit 1; } +fi +done + + echo $ac_n "checking for Kerberos v5""... $ac_c" 1>&6 -echo "configure:1776: checking for Kerberos v5" >&5 +echo "configure:1818: checking for Kerberos v5" >&5 # Check whether --with-krb5 or --without-krb5 was given. if test "${with_krb5+set}" = set; then withval="$with_krb5" @@ -1818,7 +1860,7 @@ EOF fi echo $ac_n "checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5""... $ac_c" 1>&6 -echo "configure:1822: checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5" >&5 +echo "configure:1864: checking for gss_krb5_export_lucid_sec_context in -lgssapi_krb5" >&5 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_export_lucid_sec_context | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1826,7 +1868,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi_krb5 $KRBLIB $LIBS" cat > conftest.$ac_ext <<EOF -#line 1830 "configure" +#line 1872 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1837,7 +1879,7 @@ int main() { gss_krb5_export_lucid_sec_context() ; return 0; } EOF -if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1861,7 +1903,7 @@ else fi echo $ac_n "checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5""... $ac_c" 1>&6 -echo "configure:1865: checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5" >&5 +echo "configure:1907: checking for gss_krb5_set_allowable_enctypes in -lgssapi_krb5" >&5 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_set_allowable_enctypes | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1869,7 +1911,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi_krb5 $KRBLIB $LIBS" cat > conftest.$ac_ext <<EOF -#line 1873 "configure" +#line 1915 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1880,7 +1922,7 @@ int main() { gss_krb5_set_allowable_enctypes() ; return 0; } EOF -if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1904,7 +1946,7 @@ else fi echo $ac_n "checking for gss_krb5_ccache_name in -lgssapi_krb5""... $ac_c" 1>&6 -echo "configure:1908: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5 +echo "configure:1950: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5 ac_lib_var=`echo gssapi_krb5'_'gss_krb5_ccache_name | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1912,7 +1954,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi_krb5 $KRBLIB $LIBS" cat > conftest.$ac_ext <<EOF -#line 1916 "configure" +#line 1958 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1923,7 +1965,7 @@ int main() { gss_krb5_ccache_name() ; return 0; } EOF -if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1962,7 +2004,7 @@ EOF KRBLIB=`$K5CONFIG --libs gssapi` echo $ac_n "checking for gss_krb5_export_lucid_sec_context in -lgssapi""... $ac_c" 1>&6 -echo "configure:1966: checking for gss_krb5_export_lucid_sec_context in -lgssapi" >&5 +echo "configure:2008: checking for gss_krb5_export_lucid_sec_context in -lgssapi" >&5 ac_lib_var=`echo gssapi'_'gss_krb5_export_lucid_sec_context | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1970,7 +2012,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi $KRBLIB $LIBS" cat > conftest.$ac_ext <<EOF -#line 1974 "configure" +#line 2016 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1981,7 +2023,7 @@ int main() { gss_krb5_export_lucid_sec_context() ; return 0; } EOF -if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2005,7 +2047,7 @@ else fi echo $ac_n "checking for gss_krb5_set_allowable_enctypes in -lgssapi""... $ac_c" 1>&6 -echo "configure:2009: checking for gss_krb5_set_allowable_enctypes in -lgssapi" >&5 +echo "configure:2051: checking for gss_krb5_set_allowable_enctypes in -lgssapi" >&5 ac_lib_var=`echo gssapi'_'gss_krb5_set_allowable_enctypes | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2013,7 +2055,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi $KRBLIB $LIBS" cat > conftest.$ac_ext <<EOF -#line 2017 "configure" +#line 2059 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2024,7 +2066,7 @@ int main() { gss_krb5_set_allowable_enctypes() ; return 0; } EOF -if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2048,7 +2090,7 @@ else fi echo $ac_n "checking for gss_krb5_ccache_name in -lgssapi""... $ac_c" 1>&6 -echo "configure:2052: checking for gss_krb5_ccache_name in -lgssapi" >&5 +echo "configure:2094: checking for gss_krb5_ccache_name in -lgssapi" >&5 ac_lib_var=`echo gssapi'_'gss_krb5_ccache_name | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2056,7 +2098,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgssapi $KRBLIB $LIBS" cat > conftest.$ac_ext <<EOF -#line 2060 "configure" +#line 2102 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2067,7 +2109,7 @@ int main() { gss_krb5_ccache_name() ; return 0; } EOF -if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2117,12 +2159,12 @@ fi for ac_func in innetgr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2121: checking for $ac_func" >&5 +echo "configure:2163: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2126 "configure" +#line 2168 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2145,7 +2187,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else |