📄 configure
字号:
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_include_dir /usr/local/include /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 981 "configure"#include "confdefs.h" #include <krb5.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:989: \"$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 CFLAGS="$old_CFLAGS" donefiif 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>&6fi 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:1023: checking for krb5_encrypt_data in -lk5crypto" >&5old_LIBS="$LIBS"smart_lib=smart_lib_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do LIBS="-L$try -lk5crypto $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1033 "configure"#include "confdefs.h"extern char krb5_encrypt_data();int main() { krb5_encrypt_data(); return 0; }EOFif { (eval echo configure:1040: \"$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 LIBS="$old_LIBS" donefiif test "x$smart_lib" = "x"; then LIBS="-lk5crypto $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1058 "configure"#include "confdefs.h"extern char krb5_encrypt_data();int main() { krb5_encrypt_data(); return 0; }EOFif { (eval echo configure:1065: \"$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* LIBS="$old_LIBS"fiif 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_lib_dir /usr/local/lib /opt/lib; do LIBS="-L$try -lk5crypto $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1135 "configure"#include "confdefs.h"extern char krb5_encrypt_data();int main() { krb5_encrypt_data(); return 0; }EOFif { (eval echo configure:1142: \"$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 LIBS="$old_LIBS" donefiif test "x$smart_lib" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" LIBS="$smart_lib $old_LIBS" SMART_LIBS="$smart_lib $SMART_LIBS"else echo "$ac_t""no" 1>&6fi 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:1175: checking for DH_new in -lcrypto" >&5old_LIBS="$LIBS"smart_lib=smart_lib_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do LIBS="-L$try -lcrypto $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1185 "configure"#include "confdefs.h"extern char DH_new();int main() { DH_new(); return 0; }EOFif { (eval echo configure:1192: \"$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 LIBS="$old_LIBS" donefiif test "x$smart_lib" = "x"; then LIBS="-lcrypto $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1210 "configure"#include "confdefs.h"extern char DH_new();int main() { DH_new(); return 0; }EOFif { (eval echo configure:1217: \"$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* LIBS="$old_LIBS"fiif 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_lib_dir /usr/local/lib /opt/lib; do LIBS="-L$try -lcrypto $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1287 "configure"#include "confdefs.h"extern char DH_new();int main() { DH_new(); return 0; }EOFif { (eval echo configure:1294: \"$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 LIBS="$old_LIBS" donefiif test "x$smart_lib" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes" LIBS="$smart_lib $old_LIBS" SMART_LIBS="$smart_lib $SMART_LIBS"else echo "$ac_t""no" 1>&6fi 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:1331: checking for set_com_err_hook in -lcom_err" >&5old_LIBS="$LIBS"smart_lib=smart_lib_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do LIBS="-L$try -lcom_err $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1341 "configure"#include "confdefs.h"extern char set_com_err_hook();int main() { set_com_err_hook(); return 0; }EOFif { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* smart_lib="-L$try -lcom_err"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* if test "x$smart_lib" != "x"; then break; fi LIBS="$old_LIBS" donefiif test "x$smart_lib" = "x"; then LIBS="-lcom_err $old_LIBS" cat > conftest.$ac_ext <<EOF#line 1366 "configure"#include "confdefs.h"extern char set_com_err_hook();int main() { set_com_err_hook(); return 0; }EOFif { (eval echo configure:1373: \"$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* LIBS="$old_LIBS"fiif 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"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -