|
|
@@ -625,7 +625,6 @@ ac_includes_default="\
|
|
|
|
|
|
ac_subst_vars='PERL
|
|
|
sslbin
|
|
|
-PKG_CONFIG
|
|
|
SSL_LIB_DIR
|
|
|
SSL_INC_DIR
|
|
|
HAVE_SSL
|
|
|
@@ -7394,112 +7393,17 @@ $as_echo "found Kerberos include files in $kerbdir" >&6; }
|
|
|
fi
|
|
|
|
|
|
# First, try using pkg_config
|
|
|
- if test -n "$ac_tool_prefix"; then
|
|
|
- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
|
|
-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
-$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
-if ${ac_cv_prog_PKG_CONFIG+:} false; then :
|
|
|
- $as_echo_n "(cached) " >&6
|
|
|
-else
|
|
|
- if test -n "$PKG_CONFIG"; then
|
|
|
- ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
|
|
|
-else
|
|
|
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
-for as_dir in $PATH
|
|
|
-do
|
|
|
- IFS=$as_save_IFS
|
|
|
- test -z "$as_dir" && as_dir=.
|
|
|
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
- ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
- break 2
|
|
|
- fi
|
|
|
-done
|
|
|
- done
|
|
|
-IFS=$as_save_IFS
|
|
|
-
|
|
|
-fi
|
|
|
-fi
|
|
|
-PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
|
|
|
-if test -n "$PKG_CONFIG"; then
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
|
|
-$as_echo "$PKG_CONFIG" >&6; }
|
|
|
-else
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-$as_echo "no" >&6; }
|
|
|
-fi
|
|
|
-
|
|
|
-
|
|
|
-fi
|
|
|
-if test -z "$ac_cv_prog_PKG_CONFIG"; then
|
|
|
- ac_ct_PKG_CONFIG=$PKG_CONFIG
|
|
|
- # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
|
-set dummy pkg-config; ac_word=$2
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
-$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
-if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
|
|
|
- $as_echo_n "(cached) " >&6
|
|
|
-else
|
|
|
- if test -n "$ac_ct_PKG_CONFIG"; then
|
|
|
- ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
|
|
|
-else
|
|
|
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
-for as_dir in $PATH
|
|
|
-do
|
|
|
- IFS=$as_save_IFS
|
|
|
- test -z "$as_dir" && as_dir=.
|
|
|
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
- ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
- break 2
|
|
|
- fi
|
|
|
-done
|
|
|
- done
|
|
|
-IFS=$as_save_IFS
|
|
|
-
|
|
|
-fi
|
|
|
-fi
|
|
|
-ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
|
|
|
-if test -n "$ac_ct_PKG_CONFIG"; then
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
|
|
|
-$as_echo "$ac_ct_PKG_CONFIG" >&6; }
|
|
|
-else
|
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
-$as_echo "no" >&6; }
|
|
|
-fi
|
|
|
-
|
|
|
- if test "x$ac_ct_PKG_CONFIG" = x; then
|
|
|
- PKG_CONFIG=""
|
|
|
- else
|
|
|
- case $cross_compiling:$ac_tool_warned in
|
|
|
-yes:)
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
|
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
|
-ac_tool_warned=yes ;;
|
|
|
-esac
|
|
|
- PKG_CONFIG=$ac_ct_PKG_CONFIG
|
|
|
- fi
|
|
|
-else
|
|
|
- PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
|
|
|
-fi
|
|
|
-
|
|
|
- if test x"$PKG_CONFIG" != x ; then
|
|
|
- cflags=`$PKG_CONFIG $SSL_TYPE --cflags-only-I 2>/dev/null`
|
|
|
- if test $? = 0; then
|
|
|
- CFLAGS="$CFLAGS $cflags"
|
|
|
- LDFLAGS="$LDFLAGS `$PKG_CONFIG $SSL_TYPE --libs-only-L 2>/dev/null`"
|
|
|
- LIBS="$LIBS `$PKG_CONFIG $SSL_TYPE --libs-only-l 2>/dev/null`"
|
|
|
- found_ssl=yes
|
|
|
-
|
|
|
-cat >>confdefs.h <<_ACEOF
|
|
|
-#define HAVE_SSL 1
|
|
|
-_ACEOF
|
|
|
-
|
|
|
- fi
|
|
|
- fi
|
|
|
+# AC_CHECK_TOOL([PKG_CONFIG], [pkg-config])
|
|
|
+# if test x"$PKG_CONFIG" != x ; then
|
|
|
+# cflags=`$PKG_CONFIG $SSL_TYPE --cflags-only-I 2>/dev/null`
|
|
|
+# if test $? = 0; then
|
|
|
+# CFLAGS="$CFLAGS $cflags"
|
|
|
+# LDFLAGS="$LDFLAGS `$PKG_CONFIG $SSL_TYPE --libs-only-L 2>/dev/null`"
|
|
|
+# LIBS="$LIBS `$PKG_CONFIG $SSL_TYPE --libs-only-l 2>/dev/null`"
|
|
|
+# found_ssl=yes
|
|
|
+# AC_DEFINE_UNQUOTED(HAVE_SSL,[1],[Have SSL support])
|
|
|
+# fi
|
|
|
+# fi
|
|
|
|
|
|
if test x_$found_ssl != x_yes; then
|
|
|
|