6919
smart_try_dir="$OPENSSL_INCLUDE"
6920
CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
6923
ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
6924
echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
6925
echo "configure:6926: checking for openssl/ssl.h" >&5
6930
old_CFLAGS="$CFLAGS"
6931
cat > conftest.$ac_ext <<EOF
6932
#line 6933 "configure"
6933
#include "confdefs.h"
6935
#include <openssl/ssl.h>
6940
if { (eval echo configure:6941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6944
echo "configure: failed program was:" >&5
6945
cat conftest.$ac_ext >&5
6951
if test "x$smart_include" = "x"; then
6954
if test "x$LOCATE" != "x"; then
6958
for x in `${LOCATE} $file 2>/dev/null`; do
6959
base=`echo $x | sed "s%/${file}%%"`
6960
if test "x$x" = "x$base"; then
6964
dir=`${DIRNAME} $x 2>/dev/null`
6965
exclude=`echo ${dir} | ${GREP} /home`
6966
if test "x$exclude" != "x"; then
6970
already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
6971
if test "x$already" = "x"; then
6977
eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
6980
for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
6981
CFLAGS="$old_CFLAGS -I$try"
6983
cat > conftest.$ac_ext <<EOF
6984
#line 6985 "configure"
6985
#include "confdefs.h"
6987
#include <openssl/ssl.h>
6992
if { (eval echo configure:6993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6994
smart_include="-I$try"
6996
echo "configure: failed program was:" >&5
6997
cat conftest.$ac_ext >&5
7003
if test "x$smart_include" != "x"; then
7007
CFLAGS="$old_CFLAGS"
7010
if test "x$smart_include" != "x"; then
7011
echo "$ac_t""yes" 1>&6
7012
eval "ac_cv_header_$ac_safe=yes"
7013
CFLAGS="$old_CFLAGS $smart_include"
7014
SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7016
echo "$ac_t""no" 1>&6
7019
if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
7020
cat >> confdefs.h <<\EOF
7021
#define HAVE_OPENSSL_SSL_H 1
7024
old_CPPFLAGS="$CPPFLAGS"
7025
if test "x$OPENSSL_INCLUDE" != "x"; then
7026
CPPFLAGS="-I$OPENSSL_INCLUDE $CPPFLAGS"
7035
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7036
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7037
echo "configure:7038: checking for $ac_hdr" >&5
7038
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7039
echo $ac_n "(cached) $ac_c" 1>&6
7041
cat > conftest.$ac_ext <<EOF
7042
#line 7043 "configure"
7043
#include "confdefs.h"
7046
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7047
{ (eval echo configure:7048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7048
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7049
if test -z "$ac_err"; then
7051
eval "ac_cv_header_$ac_safe=yes"
7054
echo "configure: failed program was:" >&5
7055
cat conftest.$ac_ext >&5
7057
eval "ac_cv_header_$ac_safe=no"
7061
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7062
echo "$ac_t""yes" 1>&6
7063
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7064
cat >> confdefs.h <<EOF
7065
#define $ac_tr_hdr 1
7069
echo "$ac_t""no" 1>&6
7073
CPPFLAGS="$old_CPPFLAGS"
7075
echo $ac_n "checking for OpenSSL version >= 0.9.7""... $ac_c" 1>&6
7076
echo "configure:7077: checking for OpenSSL version >= 0.9.7" >&5
7077
old_CPPFLAGS=$CPPFLAGS
7078
if test "x$OPENSSL_INCLUDE" != "x"; then
7079
CPPFLAGS="-I$OPENSSL_INCLUDE"
7081
cat > conftest.$ac_ext <<EOF
7082
#line 7083 "configure"
7083
#include "confdefs.h"
7084
#include <openssl/crypto.h>
7085
#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7090
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091
egrep "yes" >/dev/null 2>&1; then
7097
if test "x$goodssl" != "xyes"; then
7098
echo "$ac_t""no" 1>&6
7102
echo "$ac_t""yes" 1>&6
7104
# Look for the OpenSSL libraries.
7105
smart_try_dir=$OPENSSL_LIBS
7108
sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7109
sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7110
echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
7111
echo "configure:7112: checking for DH_new in -lcrypto" >&5
7117
LIBS="$LIBS -lcrypto"
7118
cat > conftest.$ac_ext <<EOF
7119
#line 7120 "configure"
7120
#include "confdefs.h"
7121
extern char DH_new();
7126
if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7128
smart_lib="-lcrypto"
7130
echo "configure: failed program was:" >&5
7131
cat conftest.$ac_ext >&5
7135
if test "x$smart_lib" = "x"; then
7138
if test "x$LOCATE" != "x"; then
7140
file=libcrypto${libltdl_cv_shlibext}
7142
for x in `${LOCATE} $file 2>/dev/null`; do
7143
base=`echo $x | sed "s%/${file}%%"`
7144
if test "x$x" = "x$base"; then
7148
dir=`${DIRNAME} $x 2>/dev/null`
7149
exclude=`echo ${dir} | ${GREP} /home`
7150
if test "x$exclude" != "x"; then
7154
already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7155
if test "x$already" = "x"; then
7161
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7165
if test "x$LOCATE" != "x"; then
7169
for x in `${LOCATE} $file 2>/dev/null`; do
7170
base=`echo $x | sed "s%/${file}%%"`
7171
if test "x$x" = "x$base"; then
7175
dir=`${DIRNAME} $x 2>/dev/null`
7176
exclude=`echo ${dir} | ${GREP} /home`
7177
if test "x$exclude" != "x"; then
7181
already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7182
if test "x$already" = "x"; then
7188
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7191
for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
7192
LIBS="$old_LIBS -L$try -lcrypto"
7194
cat > conftest.$ac_ext <<EOF
7195
#line 7196 "configure"
7196
#include "confdefs.h"
7197
extern char DH_new();
7202
if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204
smart_lib="-L$try -lcrypto"
7206
echo "configure: failed program was:" >&5
7207
cat conftest.$ac_ext >&5
7210
if test "x$smart_lib" != "x"; then
7217
if test "x$smart_lib" != "x"; then
7218
echo "$ac_t""yes" 1>&6
7219
eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7220
LIBS="$old_LIBS $smart_lib"
7221
SMART_LIBS="$SMART_LIBS $smart_lib"
7223
echo "$ac_t""no" 1>&6
7226
if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
7229
sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
7230
sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
7231
echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
7232
echo "configure:7233: checking for SSL_new in -lssl" >&5
7239
cat > conftest.$ac_ext <<EOF
7240
#line 7241 "configure"
7241
#include "confdefs.h"
7242
extern char SSL_new();
7247
if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251
echo "configure: failed program was:" >&5
7252
cat conftest.$ac_ext >&5
7256
if test "x$smart_lib" = "x"; then
7259
if test "x$LOCATE" != "x"; then
7261
file=libssl${libltdl_cv_shlibext}
7263
for x in `${LOCATE} $file 2>/dev/null`; do
7264
base=`echo $x | sed "s%/${file}%%"`
7265
if test "x$x" = "x$base"; then
7269
dir=`${DIRNAME} $x 2>/dev/null`
7270
exclude=`echo ${dir} | ${GREP} /home`
7271
if test "x$exclude" != "x"; then
7275
already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7276
if test "x$already" = "x"; then
7282
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7286
if test "x$LOCATE" != "x"; then
7290
for x in `${LOCATE} $file 2>/dev/null`; do
7291
base=`echo $x | sed "s%/${file}%%"`
7292
if test "x$x" = "x$base"; then
7296
dir=`${DIRNAME} $x 2>/dev/null`
7297
exclude=`echo ${dir} | ${GREP} /home`
7298
if test "x$exclude" != "x"; then
7302
already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7303
if test "x$already" = "x"; then
7309
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7312
for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
7313
LIBS="$old_LIBS -L$try -lssl"
7315
cat > conftest.$ac_ext <<EOF
7316
#line 7317 "configure"
7317
#include "confdefs.h"
7318
extern char SSL_new();
7323
if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7325
smart_lib="-L$try -lssl"
7327
echo "configure: failed program was:" >&5
7328
cat conftest.$ac_ext >&5
7331
if test "x$smart_lib" != "x"; then
7338
if test "x$smart_lib" != "x"; then
7339
echo "$ac_t""yes" 1>&6
7340
eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7341
LIBS="$old_LIBS $smart_lib"
7342
SMART_LIBS="$SMART_LIBS $smart_lib"
7344
echo "$ac_t""no" 1>&6
7347
if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
7351
export OPENSSL_INCLUDE OPENSSL_LIBS
7354
CPPFLAGS=$old_CPPFLAGS
6859
7358
echo $ac_n "checking for off_t""... $ac_c" 1>&6
6860
echo "configure:6861: checking for off_t" >&5
7359
echo "configure:7360: checking for off_t" >&5
6861
7360
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6862
7361
echo $ac_n "(cached) $ac_c" 1>&6
6864
7363
cat > conftest.$ac_ext <<EOF
6865
#line 6866 "configure"
7364
#line 7365 "configure"
6866
7365
#include "confdefs.h"
6867
7366
#include <sys/types.h>
6868
7367
#if STDC_HEADERS