📄 configure
字号:
smart_try_dir=$rlm_krb5_include_dir ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`echo $ac_n "checking for krb5.h""... $ac_c" 1>&6echo "configure:892: checking for krb5.h" >&5smart_include=smart_include_dir= old_CFLAGS="$CFLAGS" cat > conftest.$ac_ext <<EOF#line 899 "configure"#include "confdefs.h" #include <krb5.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include=" "else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=krb5.h for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_include_dir=\"\$smart_include_dir $DIRS\"" for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 951 "configure"#include "confdefs.h" #include <krb5.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include="-I$try"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" != "x"; then break; fi done CFLAGS="$old_CFLAGS" fi if test "x$smart_include" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_header_$ac_safe=yes" CFLAGS="$old_CFLAGS $smart_include" SMART_CFLAGS="$SMART_CFLAGS $smart_include" else echo "$ac_t""no" 1>&6 fi smart_try_dir=$rlm_krb5_lib_dir sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6echo "configure:994: checking for krb5_encrypt_data in -lk5crypto" >&5smart_lib=smart_lib_dir= old_LIBS="$LIBS" LIBS="$LIBS -lk5crypto" cat > conftest.$ac_ext <<EOF#line 1002 "configure"#include "confdefs.h"extern char krb5_encrypt_data();int main() { krb5_encrypt_data(); return 0; }EOFif { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-lk5crypto"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=libk5crypto${libltdl_cv_shlibext} for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" if test "x$LOCATE" != "x"; then DIRS= file=libk5crypto.a for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do LIBS="$old_LIBS -L$try -lk5crypto" cat > conftest.$ac_ext <<EOF#line 1078 "configure"#include "confdefs.h"extern char krb5_encrypt_data();int main() { krb5_encrypt_data(); return 0; }EOFif { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-L$try -lk5crypto"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" != "x"; then break; fi done LIBS="$old_LIBS" fi if test "x$smart_lib" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" LIBS="$old_LIBS $smart_lib" SMART_LIBS="$SMART_LIBS $smart_lib" else echo "$ac_t""no" 1>&6 fi if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = "xyes"; then krb5libcrypto="-lk5crypto" fi sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6echo "configure:1118: checking for DH_new in -lcrypto" >&5smart_lib=smart_lib_dir= old_LIBS="$LIBS" LIBS="$LIBS -lcrypto" cat > conftest.$ac_ext <<EOF#line 1126 "configure"#include "confdefs.h"extern char DH_new();int main() { DH_new(); return 0; }EOFif { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-lcrypto"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=libcrypto${libltdl_cv_shlibext} for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" if test "x$LOCATE" != "x"; then DIRS= file=libcrypto.a for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do LIBS="$old_LIBS -L$try -lcrypto" cat > conftest.$ac_ext <<EOF#line 1202 "configure"#include "confdefs.h"extern char DH_new();int main() { DH_new(); return 0; }EOFif { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-L$try -lcrypto"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" != "x"; then break; fi done LIBS="$old_LIBS" fi if test "x$smart_lib" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" LIBS="$old_LIBS $smart_lib" SMART_LIBS="$SMART_LIBS $smart_lib" else echo "$ac_t""no" 1>&6 fi if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then krb5libcrypto="-lcrypto" fi if test x$krb5libcrypto = x; then echo "configure: warning: neither krb5 'k5crypto' nor 'crypto' libraries are found!" 1>&2 fi sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`echo $ac_n "checking for set_com_err_hook in -lcom_err""... $ac_c" 1>&6echo "configure:1246: checking for set_com_err_hook in -lcom_err" >&5smart_lib=smart_lib_dir= old_LIBS="$LIBS" LIBS="$LIBS -lcom_err" cat > conftest.$ac_ext <<EOF#line 1254 "configure"#include "confdefs.h"extern char set_com_err_hook();int main() { set_com_err_hook(); return 0; }EOFif { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-lcom_err"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=libcom_err${libltdl_cv_shlibext} for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" if test "x$LOCATE" != "x"; then DIRS= file=libcom_err.a for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_lib_dir=\"\$smart_lib_dir $DIRS\"" for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do LIBS="$old_LIBS -L$try -lcom_err"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -