~ubuntu-branches/ubuntu/trusty/stunnel4/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Luis Rodrigo Gallardo Cruz
  • Date: 2012-02-12 12:06:37 UTC
  • mfrom: (10.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120212120637-r7s1fkzh6toyg7z2
Tags: 3:4.52-1
* New upstream version 4.52.
* Do not enable chroot in sample config file. It is misleading to users, it
  suggests it can be used with no further changes. Closes: #652812
* Remove log files on purge. Closes: #657135

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.67 for stunnel 4.42.
 
3
# Generated by GNU Autoconf 2.67 for stunnel 4.52.
4
4
#
5
5
#
6
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
698
698
# Identity of this package.
699
699
PACKAGE_NAME='stunnel'
700
700
PACKAGE_TARNAME='stunnel'
701
 
PACKAGE_VERSION='4.42'
702
 
PACKAGE_STRING='stunnel 4.42'
 
701
PACKAGE_VERSION='4.52'
 
702
PACKAGE_STRING='stunnel 4.52'
703
703
PACKAGE_BUGREPORT=''
704
704
PACKAGE_URL=''
705
705
 
744
744
am__EXEEXT_TRUE
745
745
LTLIBOBJS
746
746
LIBOBJS
747
 
ssldir
 
747
SSLDIR
748
748
DEFAULT_GROUP
749
749
RANDOM_FILE
750
750
LIBTOOL_DEPS
768
768
GREP
769
769
SED
770
770
LIBTOOL
 
771
stunnel_LDLAGS
 
772
stunnel_CFLAGS
 
773
stunnel_LDFLAGS
771
774
am__fastdepCC_FALSE
772
775
am__fastdepCC_TRUE
773
776
CCDEPMODE
1422
1425
  # Omit some internal or obsolete options to make the list less imposing.
1423
1426
  # This message is too long to be a string in the A/UX 3.1 sh.
1424
1427
  cat <<_ACEOF
1425
 
\`configure' configures stunnel 4.42 to adapt to many kinds of systems.
 
1428
\`configure' configures stunnel 4.52 to adapt to many kinds of systems.
1426
1429
 
1427
1430
Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1431
 
1492
1495
 
1493
1496
if test -n "$ac_init_help"; then
1494
1497
  case $ac_init_help in
1495
 
     short | recursive ) echo "Configuration of stunnel 4.42:";;
 
1498
     short | recursive ) echo "Configuration of stunnel 4.52:";;
1496
1499
   esac
1497
1500
  cat <<\_ACEOF
1498
1501
 
1517
1520
  --with-pic              try to use only PIC/non-PIC objects [default=use
1518
1521
                          both]
1519
1522
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1520
 
  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1521
 
  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
 
1523
  --with-egd-socket=FILE  Entropy Gathering Daemon socket path
 
1524
  --with-random=FILE      read randomness from file (default=/dev/urandom)
1522
1525
  --with-threads=model    select threading model (ucontext/pthread/fork)
1523
1526
  --with-ssl=DIR          location of installed SSL libraries/include files
1524
1527
 
1598
1601
test -n "$ac_init_help" && exit $ac_status
1599
1602
if $ac_init_version; then
1600
1603
  cat <<\_ACEOF
1601
 
stunnel configure 4.42
 
1604
stunnel configure 4.52
1602
1605
generated by GNU Autoconf 2.67
1603
1606
 
1604
1607
Copyright (C) 2010 Free Software Foundation, Inc.
2051
2054
 
2052
2055
} # ac_fn_c_compute_int
2053
2056
 
 
2057
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2058
# -------------------------------------------
 
2059
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2060
# variable VAR accordingly.
 
2061
ac_fn_c_check_type ()
 
2062
{
 
2063
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2064
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2065
$as_echo_n "checking for $2... " >&6; }
 
2066
if eval "test \"\${$3+set}\"" = set; then :
 
2067
  $as_echo_n "(cached) " >&6
 
2068
else
 
2069
  eval "$3=no"
 
2070
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2071
/* end confdefs.h.  */
 
2072
$4
 
2073
int
 
2074
main ()
 
2075
{
 
2076
if (sizeof ($2))
 
2077
         return 0;
 
2078
  ;
 
2079
  return 0;
 
2080
}
 
2081
_ACEOF
 
2082
if ac_fn_c_try_compile "$LINENO"; then :
 
2083
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2084
/* end confdefs.h.  */
 
2085
$4
 
2086
int
 
2087
main ()
 
2088
{
 
2089
if (sizeof (($2)))
 
2090
            return 0;
 
2091
  ;
 
2092
  return 0;
 
2093
}
 
2094
_ACEOF
 
2095
if ac_fn_c_try_compile "$LINENO"; then :
 
2096
 
 
2097
else
 
2098
  eval "$3=yes"
 
2099
fi
 
2100
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2101
fi
 
2102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2103
fi
 
2104
eval ac_res=\$$3
 
2105
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2106
$as_echo "$ac_res" >&6; }
 
2107
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2108
 
 
2109
} # ac_fn_c_check_type
 
2110
 
2054
2111
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2055
2112
# -------------------------------------------------------
2056
2113
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2198
2255
This file contains any messages produced by compilers while
2199
2256
running configure, to aid debugging if configure makes a mistake.
2200
2257
 
2201
 
It was created by stunnel $as_me 4.42, which was
 
2258
It was created by stunnel $as_me 4.52, which was
2202
2259
generated by GNU Autoconf 2.67.  Invocation command line was
2203
2260
 
2204
2261
  $ $0 $@
3016
3073
 
3017
3074
# Define the identity of the package.
3018
3075
 PACKAGE=stunnel
3019
 
 VERSION=4.42
 
3076
 VERSION=4.52
3020
3077
 
3021
3078
 
3022
3079
cat >>confdefs.h <<_ACEOF
3056
3113
 
3057
3114
 
3058
3115
 
 
3116
ac_config_headers="$ac_config_headers src/config.h"
 
3117
 
 
3118
 
3059
3119
 
3060
3120
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3061
3121
 
3132
3192
 
3133
3193
 
3134
3194
 
 
3195
 
3135
3196
cat >>confdefs.h <<_ACEOF
3136
3197
#define HOST "$host"
3137
3198
_ACEOF
4129
4190
fi
4130
4191
 
4131
4192
 
 
4193
if test "x$CC" != xcc; then
 
4194
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
4195
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
4196
else
 
4197
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
4198
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
4199
fi
 
4200
set dummy $CC; ac_cc=`$as_echo "$2" |
 
4201
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4202
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
 
4203
  $as_echo_n "(cached) " >&6
 
4204
else
 
4205
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4206
/* end confdefs.h.  */
 
4207
 
 
4208
int
 
4209
main ()
 
4210
{
 
4211
 
 
4212
  ;
 
4213
  return 0;
 
4214
}
 
4215
_ACEOF
 
4216
# Make sure it works both with $CC and with simple cc.
 
4217
# We do the test twice because some compilers refuse to overwrite an
 
4218
# existing .o file with -o, though they will create one.
 
4219
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4220
rm -f conftest2.*
 
4221
if { { case "(($ac_try" in
 
4222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4223
  *) ac_try_echo=$ac_try;;
 
4224
esac
 
4225
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4226
$as_echo "$ac_try_echo"; } >&5
 
4227
  (eval "$ac_try") 2>&5
 
4228
  ac_status=$?
 
4229
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4230
  test $ac_status = 0; } &&
 
4231
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4233
  *) ac_try_echo=$ac_try;;
 
4234
esac
 
4235
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4236
$as_echo "$ac_try_echo"; } >&5
 
4237
  (eval "$ac_try") 2>&5
 
4238
  ac_status=$?
 
4239
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4240
  test $ac_status = 0; };
 
4241
then
 
4242
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4243
  if test "x$CC" != xcc; then
 
4244
    # Test first that cc exists at all.
 
4245
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4246
  { { case "(($ac_try" in
 
4247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4248
  *) ac_try_echo=$ac_try;;
 
4249
esac
 
4250
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4251
$as_echo "$ac_try_echo"; } >&5
 
4252
  (eval "$ac_try") 2>&5
 
4253
  ac_status=$?
 
4254
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4255
  test $ac_status = 0; }; }; then
 
4256
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4257
      rm -f conftest2.*
 
4258
      if { { case "(($ac_try" in
 
4259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4260
  *) ac_try_echo=$ac_try;;
 
4261
esac
 
4262
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4263
$as_echo "$ac_try_echo"; } >&5
 
4264
  (eval "$ac_try") 2>&5
 
4265
  ac_status=$?
 
4266
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4267
  test $ac_status = 0; } &&
 
4268
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4270
  *) ac_try_echo=$ac_try;;
 
4271
esac
 
4272
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4273
$as_echo "$ac_try_echo"; } >&5
 
4274
  (eval "$ac_try") 2>&5
 
4275
  ac_status=$?
 
4276
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4277
  test $ac_status = 0; };
 
4278
      then
 
4279
        # cc works too.
 
4280
        :
 
4281
      else
 
4282
        # cc exists but doesn't like -o.
 
4283
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4284
      fi
 
4285
    fi
 
4286
  fi
 
4287
else
 
4288
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4289
fi
 
4290
rm -f core conftest*
 
4291
 
 
4292
fi
 
4293
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4295
$as_echo "yes" >&6; }
 
4296
else
 
4297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4298
$as_echo "no" >&6; }
 
4299
 
 
4300
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
4301
 
 
4302
fi
 
4303
 
 
4304
# FIXME: we rely on the cache variable name because
 
4305
# there is no other way.
 
4306
set dummy $CC
 
4307
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4308
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4309
if test "$am_t" != yes; then
 
4310
   # Losing compiler, so override with the script.
 
4311
   # FIXME: It is wrong to rewrite CC.
 
4312
   # But if we don't then we get into trouble of one sort or another.
 
4313
   # A longer-term fix would be to have automake use am__CC in this case,
 
4314
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4315
   CC="$am_aux_dir/compile $CC"
 
4316
fi
 
4317
 
 
4318
 
4132
4319
 
4133
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4134
4321
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4168
4355
# AC_TYPE_PID_T
4169
4356
# AC_HEADER_TIME
4170
4357
 
4171
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** C compiler flags" >&5
4172
 
$as_echo "$as_me: **************************************** C compiler flags" >&6;}
 
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** compiler/linker flags" >&5
 
4359
$as_echo "$as_me: **************************************** compiler/linker flags" >&6;}
 
4360
 
 
4361
 
4173
4362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
4174
4363
$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
4175
4364
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -pthread"
4176
 
 
4177
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178
 
/* end confdefs.h.  */
4179
 
int main() {return 0;}
4180
 
_ACEOF
4181
 
if ac_fn_c_try_link "$LINENO"; then :
4182
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183
 
$as_echo "yes" >&6; }
4184
 
else
4185
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186
 
$as_echo "no" >&6; }; CFLAGS="$valid_CFLAGS"
4187
 
fi
4188
 
rm -f core conftest.err conftest.$ac_objext \
4189
 
    conftest$ac_exeext conftest.$ac_ext
 
4365
valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -pthread"
 
4366
 
 
4367
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4368
/* end confdefs.h.  */
 
4369
int main() {return 0;}
 
4370
_ACEOF
 
4371
if ac_fn_c_try_link "$LINENO"; then :
 
4372
 
 
4373
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4374
$as_echo "yes" >&6; }
 
4375
        stunnel_CFLAGS="$stunnel_CFLAGS -pthread"
 
4376
 
 
4377
        stunnel_LDLAGS="$stunnel_LDLAGS -pthread"
 
4378
 
 
4379
 
 
4380
else
 
4381
 
 
4382
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4383
$as_echo "no" >&6; }
 
4384
 
 
4385
fi
 
4386
rm -f core conftest.err conftest.$ac_objext \
 
4387
    conftest$ac_exeext conftest.$ac_ext
 
4388
CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
 
4389
 
 
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fstack-protector" >&5
 
4391
$as_echo_n "checking whether $CC accepts -fstack-protector... " >&6; }
 
4392
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -fstack-protector"
 
4393
valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -fstack-protector"
 
4394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4395
/* end confdefs.h.  */
 
4396
int main() {return 0;}
 
4397
_ACEOF
 
4398
if ac_fn_c_try_link "$LINENO"; then :
 
4399
 
 
4400
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4401
$as_echo "yes" >&6; }
 
4402
        stunnel_CFLAGS="$stunnel_CFLAGS -fstack-protector"
 
4403
 
 
4404
        stunnel_LDLAGS="$stunnel_LDLAGS -fstack-protector"
 
4405
 
 
4406
 
 
4407
else
 
4408
 
 
4409
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4410
$as_echo "no" >&6; }
 
4411
 
 
4412
fi
 
4413
rm -f core conftest.err conftest.$ac_objext \
 
4414
    conftest$ac_exeext conftest.$ac_ext
 
4415
CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
4190
4416
 
4191
4417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
4192
4418
$as_echo_n "checking whether $CC accepts -Wall... " >&6; }
4222
4448
rm -f core conftest.err conftest.$ac_objext \
4223
4449
    conftest$ac_exeext conftest.$ac_ext
4224
4450
 
 
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-long-long" >&5
 
4452
$as_echo_n "checking whether $CC accepts -Wno-long-long... " >&6; }
 
4453
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Wno-long-long"
 
4454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4455
/* end confdefs.h.  */
 
4456
int main() {return 0;}
 
4457
_ACEOF
 
4458
if ac_fn_c_try_link "$LINENO"; then :
 
4459
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4460
$as_echo "yes" >&6; }
 
4461
else
 
4462
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4463
$as_echo "no" >&6; }; CFLAGS="$valid_CFLAGS"
 
4464
fi
 
4465
rm -f core conftest.err conftest.$ac_objext \
 
4466
    conftest$ac_exeext conftest.$ac_ext
 
4467
 
4225
4468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pedantic" >&5
4226
4469
$as_echo_n "checking whether $CC accepts -pedantic... " >&6; }
4227
4470
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -pedantic"
4239
4482
rm -f core conftest.err conftest.$ac_objext \
4240
4483
    conftest$ac_exeext conftest.$ac_ext
4241
4484
 
4242
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-long-long" >&5
4243
 
$as_echo_n "checking whether $CC accepts -Wno-long-long... " >&6; }
4244
 
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Wno-long-long"
4245
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246
 
/* end confdefs.h.  */
4247
 
int main() {return 0;}
4248
 
_ACEOF
4249
 
if ac_fn_c_try_link "$LINENO"; then :
4250
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4251
 
$as_echo "yes" >&6; }
4252
 
else
4253
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254
 
$as_echo "no" >&6; }; CFLAGS="$valid_CFLAGS"
4255
 
fi
4256
 
rm -f core conftest.err conftest.$ac_objext \
4257
 
    conftest$ac_exeext conftest.$ac_ext
4258
 
 
4259
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** libtool" >&5
4260
4486
$as_echo "$as_me: **************************************** libtool" >&6;}
4261
4487
case `pwd` in
4867
5093
else
4868
5094
  lt_cv_nm_interface="BSD nm"
4869
5095
  echo "int some_variable = 0;" > conftest.$ac_ext
4870
 
  (eval echo "\"\$as_me:4870: $ac_compile\"" >&5)
 
5096
  (eval echo "\"\$as_me:5096: $ac_compile\"" >&5)
4871
5097
  (eval "$ac_compile" 2>conftest.err)
4872
5098
  cat conftest.err >&5
4873
 
  (eval echo "\"\$as_me:4873: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5099
  (eval echo "\"\$as_me:5099: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4874
5100
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4875
5101
  cat conftest.err >&5
4876
 
  (eval echo "\"\$as_me:4876: output\"" >&5)
 
5102
  (eval echo "\"\$as_me:5102: output\"" >&5)
4877
5103
  cat conftest.out >&5
4878
5104
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4879
5105
    lt_cv_nm_interface="MS dumpbin"
6078
6304
  ;;
6079
6305
*-*-irix6*)
6080
6306
  # Find out which ABI we are using.
6081
 
  echo '#line 6081 "configure"' > conftest.$ac_ext
 
6307
  echo '#line 6307 "configure"' > conftest.$ac_ext
6082
6308
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6083
6309
  (eval $ac_compile) 2>&5
6084
6310
  ac_status=$?
7606
7832
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7607
7833
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7608
7834
   -e 's:$: $lt_compiler_flag:'`
7609
 
   (eval echo "\"\$as_me:7609: $lt_compile\"" >&5)
 
7835
   (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7610
7836
   (eval "$lt_compile" 2>conftest.err)
7611
7837
   ac_status=$?
7612
7838
   cat conftest.err >&5
7613
 
   echo "$as_me:7613: \$? = $ac_status" >&5
 
7839
   echo "$as_me:7839: \$? = $ac_status" >&5
7614
7840
   if (exit $ac_status) && test -s "$ac_outfile"; then
7615
7841
     # The compiler can only warn and ignore the option if not recognized
7616
7842
     # So say no if there are warnings other than the usual output.
7945
8171
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7946
8172
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7947
8173
   -e 's:$: $lt_compiler_flag:'`
7948
 
   (eval echo "\"\$as_me:7948: $lt_compile\"" >&5)
 
8174
   (eval echo "\"\$as_me:8174: $lt_compile\"" >&5)
7949
8175
   (eval "$lt_compile" 2>conftest.err)
7950
8176
   ac_status=$?
7951
8177
   cat conftest.err >&5
7952
 
   echo "$as_me:7952: \$? = $ac_status" >&5
 
8178
   echo "$as_me:8178: \$? = $ac_status" >&5
7953
8179
   if (exit $ac_status) && test -s "$ac_outfile"; then
7954
8180
     # The compiler can only warn and ignore the option if not recognized
7955
8181
     # So say no if there are warnings other than the usual output.
8050
8276
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051
8277
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052
8278
   -e 's:$: $lt_compiler_flag:'`
8053
 
   (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
 
8279
   (eval echo "\"\$as_me:8279: $lt_compile\"" >&5)
8054
8280
   (eval "$lt_compile" 2>out/conftest.err)
8055
8281
   ac_status=$?
8056
8282
   cat out/conftest.err >&5
8057
 
   echo "$as_me:8057: \$? = $ac_status" >&5
 
8283
   echo "$as_me:8283: \$? = $ac_status" >&5
8058
8284
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8059
8285
   then
8060
8286
     # The compiler can only warn and ignore the option if not recognized
8105
8331
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106
8332
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107
8333
   -e 's:$: $lt_compiler_flag:'`
8108
 
   (eval echo "\"\$as_me:8108: $lt_compile\"" >&5)
 
8334
   (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8109
8335
   (eval "$lt_compile" 2>out/conftest.err)
8110
8336
   ac_status=$?
8111
8337
   cat out/conftest.err >&5
8112
 
   echo "$as_me:8112: \$? = $ac_status" >&5
 
8338
   echo "$as_me:8338: \$? = $ac_status" >&5
8113
8339
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8114
8340
   then
8115
8341
     # The compiler can only warn and ignore the option if not recognized
10489
10715
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490
10716
  lt_status=$lt_dlunknown
10491
10717
  cat > conftest.$ac_ext <<_LT_EOF
10492
 
#line 10492 "configure"
 
10718
#line 10718 "configure"
10493
10719
#include "confdefs.h"
10494
10720
 
10495
10721
#if HAVE_DLFCN_H
10585
10811
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10586
10812
  lt_status=$lt_dlunknown
10587
10813
  cat > conftest.$ac_ext <<_LT_EOF
10588
 
#line 10588 "configure"
 
10814
#line 10814 "configure"
10589
10815
#include "confdefs.h"
10590
10816
 
10591
10817
#if HAVE_DLFCN_H
10963
11189
else
10964
11190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (defined as int)" >&5
10965
11191
$as_echo "no (defined as int)" >&6; }
10966
 
    $as_echo "#define socklen_t int" >>confdefs.h
 
11192
 
 
11193
$as_echo "#define socklen_t int" >>confdefs.h
10967
11194
 
10968
11195
fi
10969
11196
rm -f conftest*
10970
11197
 
10971
11198
 
 
11199
ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/un.h>
 
11200
"
 
11201
if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then :
 
11202
 
 
11203
cat >>confdefs.h <<_ACEOF
 
11204
#define HAVE_STRUCT_SOCKADDR_UN 1
 
11205
_ACEOF
 
11206
 
 
11207
 
 
11208
fi
 
11209
 
 
11210
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h>
 
11211
"
 
11212
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
 
11213
 
 
11214
cat >>confdefs.h <<_ACEOF
 
11215
#define HAVE_STRUCT_ADDRINFO 1
 
11216
_ACEOF
 
11217
 
 
11218
 
 
11219
fi
 
11220
 
 
11221
 
10972
11222
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** PTY device files" >&5
10973
11223
$as_echo "$as_me: **************************************** PTY device files" >&6;}
10974
11224
if test "$cross_compiling" = "no"; then
10990
11240
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10991
11241
$as_echo "$ac_res" >&6; }
10992
11242
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10993
 
  $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
 
11243
 
 
11244
$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
10994
11245
 
10995
11246
fi
10996
11247
 
11012
11263
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11013
11264
$as_echo "$ac_res" >&6; }
11014
11265
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11015
 
  $as_echo "#define HAVE_DEV_PTS_AND_PTC 1" >>confdefs.h
 
11266
 
 
11267
$as_echo "#define HAVE_DEV_PTS_AND_PTC 1" >>confdefs.h
11016
11268
 
11017
11269
fi
11018
11270
 
11033
11285
fi
11034
11286
 
11035
11287
    if test -n "$EGD_SOCKET"; then
11036
 
        cat >>confdefs.h <<_ACEOF
 
11288
 
 
11289
cat >>confdefs.h <<_ACEOF
11037
11290
#define EGD_SOCKET "$EGD_SOCKET"
11038
11291
_ACEOF
11039
11292
 
11074
11327
 
11075
11328
    if test -n "$RANDOM_FILE"; then
11076
11329
 
11077
 
        cat >>confdefs.h <<_ACEOF
 
11330
 
 
11331
cat >>confdefs.h <<_ACEOF
11078
11332
#define RANDOM_FILE "$RANDOM_FILE"
11079
11333
_ACEOF
11080
11334
 
11104
11358
# AC_HEADER_DIRENT
11105
11359
# AC_HEADER_STDC
11106
11360
# AC_HEADER_SYS_WAIT
11107
 
for ac_header in ucontext.h pthread.h
11108
 
do :
11109
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11110
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11111
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11112
 
  cat >>confdefs.h <<_ACEOF
11113
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11114
 
_ACEOF
11115
 
 
11116
 
fi
11117
 
 
11118
 
done
11119
 
 
11120
 
for ac_header in sys/select.h poll.h sys/poll.h tcpd.h
11121
 
do :
11122
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11124
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11125
 
  cat >>confdefs.h <<_ACEOF
11126
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11127
 
_ACEOF
11128
 
 
11129
 
fi
11130
 
 
11131
 
done
11132
 
 
11133
 
for ac_header in sys/ioctl.h sys/filio.h stropts.h
11134
 
do :
11135
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11137
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11138
 
  cat >>confdefs.h <<_ACEOF
11139
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140
 
_ACEOF
11141
 
 
11142
 
fi
11143
 
 
11144
 
done
11145
 
 
11146
 
for ac_header in grp.h unistd.h util.h libutil.h sys/resource.h pty.h
11147
 
do :
11148
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11150
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11151
 
  cat >>confdefs.h <<_ACEOF
11152
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11153
 
_ACEOF
11154
 
 
11155
 
fi
11156
 
 
11157
 
done
11158
 
 
11159
 
for ac_header in sys/socket.h
11160
 
do :
11161
 
  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11162
 
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
11163
 
  cat >>confdefs.h <<_ACEOF
11164
 
#define HAVE_SYS_SOCKET_H 1
 
11361
for ac_header in ucontext.h pthread.h poll.h tcpd.h stropts.h grp.h unistd.h util.h libutil.h pty.h
 
11362
do :
 
11363
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11364
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
11365
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
11366
  cat >>confdefs.h <<_ACEOF
 
11367
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11368
_ACEOF
 
11369
 
 
11370
fi
 
11371
 
 
11372
done
 
11373
 
 
11374
for ac_header in sys/select.h sys/poll.h sys/socket.h sys/un.h sys/ioctl.h sys/filio.h sys/resource.h
 
11375
do :
 
11376
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11377
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
11378
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
11379
  cat >>confdefs.h <<_ACEOF
 
11380
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165
11381
_ACEOF
11166
11382
 
11167
11383
fi
11176
11392
#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
11177
11393
_ACEOF
11178
11394
 
 
11395
 
11179
11396
$as_echo "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h
11180
11397
 
11181
11398
fi
11314
11531
 
11315
11532
fi
11316
11533
 
11317
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11318
 
$as_echo_n "checking for socket in -lsocket... " >&6; }
11319
 
if test "${ac_cv_lib_socket_socket+set}" = set; then :
 
11534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
 
11535
$as_echo_n "checking for library containing socket... " >&6; }
 
11536
if test "${ac_cv_search_socket+set}" = set; then :
11320
11537
  $as_echo_n "(cached) " >&6
11321
11538
else
11322
 
  ac_check_lib_save_LIBS=$LIBS
11323
 
LIBS="-lsocket  $LIBS"
 
11539
  ac_func_search_save_LIBS=$LIBS
11324
11540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325
11541
/* end confdefs.h.  */
11326
11542
 
11339
11555
  return 0;
11340
11556
}
11341
11557
_ACEOF
11342
 
if ac_fn_c_try_link "$LINENO"; then :
11343
 
  ac_cv_lib_socket_socket=yes
11344
 
else
11345
 
  ac_cv_lib_socket_socket=no
 
11558
for ac_lib in '' socket; do
 
11559
  if test -z "$ac_lib"; then
 
11560
    ac_res="none required"
 
11561
  else
 
11562
    ac_res=-l$ac_lib
 
11563
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11564
  fi
 
11565
  if ac_fn_c_try_link "$LINENO"; then :
 
11566
  ac_cv_search_socket=$ac_res
11346
11567
fi
11347
11568
rm -f core conftest.err conftest.$ac_objext \
11348
 
    conftest$ac_exeext conftest.$ac_ext
11349
 
LIBS=$ac_check_lib_save_LIBS
11350
 
fi
11351
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11352
 
$as_echo "$ac_cv_lib_socket_socket" >&6; }
11353
 
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11354
 
  cat >>confdefs.h <<_ACEOF
11355
 
#define HAVE_LIBSOCKET 1
11356
 
_ACEOF
11357
 
 
11358
 
  LIBS="-lsocket $LIBS"
11359
 
 
11360
 
fi
11361
 
 
11362
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11363
 
$as_echo_n "checking for openpty in -lutil... " >&6; }
11364
 
if test "${ac_cv_lib_util_openpty+set}" = set; then :
 
11569
    conftest$ac_exeext
 
11570
  if test "${ac_cv_search_socket+set}" = set; then :
 
11571
  break
 
11572
fi
 
11573
done
 
11574
if test "${ac_cv_search_socket+set}" = set; then :
 
11575
 
 
11576
else
 
11577
  ac_cv_search_socket=no
 
11578
fi
 
11579
rm conftest.$ac_ext
 
11580
LIBS=$ac_func_search_save_LIBS
 
11581
fi
 
11582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
 
11583
$as_echo "$ac_cv_search_socket" >&6; }
 
11584
ac_res=$ac_cv_search_socket
 
11585
if test "$ac_res" != no; then :
 
11586
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11587
 
 
11588
fi
 
11589
 
 
11590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
 
11591
$as_echo_n "checking for library containing openpty... " >&6; }
 
11592
if test "${ac_cv_search_openpty+set}" = set; then :
11365
11593
  $as_echo_n "(cached) " >&6
11366
11594
else
11367
 
  ac_check_lib_save_LIBS=$LIBS
11368
 
LIBS="-lutil  $LIBS"
 
11595
  ac_func_search_save_LIBS=$LIBS
11369
11596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370
11597
/* end confdefs.h.  */
11371
11598
 
11384
11611
  return 0;
11385
11612
}
11386
11613
_ACEOF
11387
 
if ac_fn_c_try_link "$LINENO"; then :
11388
 
  ac_cv_lib_util_openpty=yes
 
11614
for ac_lib in '' util; do
 
11615
  if test -z "$ac_lib"; then
 
11616
    ac_res="none required"
 
11617
  else
 
11618
    ac_res=-l$ac_lib
 
11619
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11620
  fi
 
11621
  if ac_fn_c_try_link "$LINENO"; then :
 
11622
  ac_cv_search_openpty=$ac_res
 
11623
fi
 
11624
rm -f core conftest.err conftest.$ac_objext \
 
11625
    conftest$ac_exeext
 
11626
  if test "${ac_cv_search_openpty+set}" = set; then :
 
11627
  break
 
11628
fi
 
11629
done
 
11630
if test "${ac_cv_search_openpty+set}" = set; then :
 
11631
 
11389
11632
else
11390
 
  ac_cv_lib_util_openpty=no
11391
 
fi
11392
 
rm -f core conftest.err conftest.$ac_objext \
11393
 
    conftest$ac_exeext conftest.$ac_ext
11394
 
LIBS=$ac_check_lib_save_LIBS
11395
 
fi
11396
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11397
 
$as_echo "$ac_cv_lib_util_openpty" >&6; }
11398
 
if test "x$ac_cv_lib_util_openpty" = x""yes; then :
11399
 
  cat >>confdefs.h <<_ACEOF
11400
 
#define HAVE_LIBUTIL 1
11401
 
_ACEOF
11402
 
 
11403
 
  LIBS="-lutil $LIBS"
 
11633
  ac_cv_search_openpty=no
 
11634
fi
 
11635
rm conftest.$ac_ext
 
11636
LIBS=$ac_func_search_save_LIBS
 
11637
fi
 
11638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
 
11639
$as_echo "$ac_cv_search_openpty" >&6; }
 
11640
ac_res=$ac_cv_search_openpty
 
11641
if test "$ac_res" != no; then :
 
11642
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11404
11643
 
11405
11644
fi
11406
11645
 
11407
11646
# Checks for dynamic loader and zlib needed by OpenSSL
11408
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11409
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11410
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
11647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
 
11648
$as_echo_n "checking for library containing dlopen... " >&6; }
 
11649
if test "${ac_cv_search_dlopen+set}" = set; then :
11411
11650
  $as_echo_n "(cached) " >&6
11412
11651
else
11413
 
  ac_check_lib_save_LIBS=$LIBS
11414
 
LIBS="-ldl  $LIBS"
 
11652
  ac_func_search_save_LIBS=$LIBS
11415
11653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416
11654
/* end confdefs.h.  */
11417
11655
 
11430
11668
  return 0;
11431
11669
}
11432
11670
_ACEOF
11433
 
if ac_fn_c_try_link "$LINENO"; then :
11434
 
  ac_cv_lib_dl_dlopen=yes
11435
 
else
11436
 
  ac_cv_lib_dl_dlopen=no
 
11671
for ac_lib in '' dl; do
 
11672
  if test -z "$ac_lib"; then
 
11673
    ac_res="none required"
 
11674
  else
 
11675
    ac_res=-l$ac_lib
 
11676
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11677
  fi
 
11678
  if ac_fn_c_try_link "$LINENO"; then :
 
11679
  ac_cv_search_dlopen=$ac_res
11437
11680
fi
11438
11681
rm -f core conftest.err conftest.$ac_objext \
11439
 
    conftest$ac_exeext conftest.$ac_ext
11440
 
LIBS=$ac_check_lib_save_LIBS
11441
 
fi
11442
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11443
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11444
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11445
 
  cat >>confdefs.h <<_ACEOF
11446
 
#define HAVE_LIBDL 1
11447
 
_ACEOF
11448
 
 
11449
 
  LIBS="-ldl $LIBS"
11450
 
 
11451
 
fi
11452
 
 
11453
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11454
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11455
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
11682
    conftest$ac_exeext
 
11683
  if test "${ac_cv_search_dlopen+set}" = set; then :
 
11684
  break
 
11685
fi
 
11686
done
 
11687
if test "${ac_cv_search_dlopen+set}" = set; then :
 
11688
 
 
11689
else
 
11690
  ac_cv_search_dlopen=no
 
11691
fi
 
11692
rm conftest.$ac_ext
 
11693
LIBS=$ac_func_search_save_LIBS
 
11694
fi
 
11695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
 
11696
$as_echo "$ac_cv_search_dlopen" >&6; }
 
11697
ac_res=$ac_cv_search_dlopen
 
11698
if test "$ac_res" != no; then :
 
11699
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11700
 
 
11701
fi
 
11702
 
 
11703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
 
11704
$as_echo_n "checking for library containing shl_load... " >&6; }
 
11705
if test "${ac_cv_search_shl_load+set}" = set; then :
11456
11706
  $as_echo_n "(cached) " >&6
11457
11707
else
11458
 
  ac_check_lib_save_LIBS=$LIBS
11459
 
LIBS="-ldld  $LIBS"
 
11708
  ac_func_search_save_LIBS=$LIBS
11460
11709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461
11710
/* end confdefs.h.  */
11462
11711
 
11475
11724
  return 0;
11476
11725
}
11477
11726
_ACEOF
11478
 
if ac_fn_c_try_link "$LINENO"; then :
11479
 
  ac_cv_lib_dld_shl_load=yes
11480
 
else
11481
 
  ac_cv_lib_dld_shl_load=no
 
11727
for ac_lib in '' dld; do
 
11728
  if test -z "$ac_lib"; then
 
11729
    ac_res="none required"
 
11730
  else
 
11731
    ac_res=-l$ac_lib
 
11732
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11733
  fi
 
11734
  if ac_fn_c_try_link "$LINENO"; then :
 
11735
  ac_cv_search_shl_load=$ac_res
11482
11736
fi
11483
11737
rm -f core conftest.err conftest.$ac_objext \
11484
 
    conftest$ac_exeext conftest.$ac_ext
11485
 
LIBS=$ac_check_lib_save_LIBS
11486
 
fi
11487
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11488
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11489
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11490
 
  cat >>confdefs.h <<_ACEOF
11491
 
#define HAVE_LIBDLD 1
11492
 
_ACEOF
11493
 
 
11494
 
  LIBS="-ldld $LIBS"
11495
 
 
11496
 
fi
11497
 
 
11498
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
11499
 
$as_echo_n "checking for inflateEnd in -lz... " >&6; }
11500
 
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
 
11738
    conftest$ac_exeext
 
11739
  if test "${ac_cv_search_shl_load+set}" = set; then :
 
11740
  break
 
11741
fi
 
11742
done
 
11743
if test "${ac_cv_search_shl_load+set}" = set; then :
 
11744
 
 
11745
else
 
11746
  ac_cv_search_shl_load=no
 
11747
fi
 
11748
rm conftest.$ac_ext
 
11749
LIBS=$ac_func_search_save_LIBS
 
11750
fi
 
11751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
 
11752
$as_echo "$ac_cv_search_shl_load" >&6; }
 
11753
ac_res=$ac_cv_search_shl_load
 
11754
if test "$ac_res" != no; then :
 
11755
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
11756
 
 
11757
fi
 
11758
 
 
11759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
 
11760
$as_echo_n "checking for library containing inflateEnd... " >&6; }
 
11761
if test "${ac_cv_search_inflateEnd+set}" = set; then :
11501
11762
  $as_echo_n "(cached) " >&6
11502
11763
else
11503
 
  ac_check_lib_save_LIBS=$LIBS
11504
 
LIBS="-lz  $LIBS"
 
11764
  ac_func_search_save_LIBS=$LIBS
11505
11765
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506
11766
/* end confdefs.h.  */
11507
11767
 
11520
11780
  return 0;
11521
11781
}
11522
11782
_ACEOF
11523
 
if ac_fn_c_try_link "$LINENO"; then :
11524
 
  ac_cv_lib_z_inflateEnd=yes
 
11783
for ac_lib in '' z; do
 
11784
  if test -z "$ac_lib"; then
 
11785
    ac_res="none required"
 
11786
  else
 
11787
    ac_res=-l$ac_lib
 
11788
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11789
  fi
 
11790
  if ac_fn_c_try_link "$LINENO"; then :
 
11791
  ac_cv_search_inflateEnd=$ac_res
 
11792
fi
 
11793
rm -f core conftest.err conftest.$ac_objext \
 
11794
    conftest$ac_exeext
 
11795
  if test "${ac_cv_search_inflateEnd+set}" = set; then :
 
11796
  break
 
11797
fi
 
11798
done
 
11799
if test "${ac_cv_search_inflateEnd+set}" = set; then :
 
11800
 
11525
11801
else
11526
 
  ac_cv_lib_z_inflateEnd=no
11527
 
fi
11528
 
rm -f core conftest.err conftest.$ac_objext \
11529
 
    conftest$ac_exeext conftest.$ac_ext
11530
 
LIBS=$ac_check_lib_save_LIBS
11531
 
fi
11532
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
11533
 
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
11534
 
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
11535
 
  cat >>confdefs.h <<_ACEOF
11536
 
#define HAVE_LIBZ 1
11537
 
_ACEOF
11538
 
 
11539
 
#  LIBS="-lz $LIBS"
 
11802
  ac_cv_search_inflateEnd=no
 
11803
fi
 
11804
rm conftest.$ac_ext
 
11805
LIBS=$ac_func_search_save_LIBS
 
11806
fi
 
11807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
 
11808
$as_echo "$ac_cv_search_inflateEnd" >&6; }
 
11809
ac_res=$ac_cv_search_inflateEnd
 
11810
if test "$ac_res" != no; then :
 
11811
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11540
11812
 
11541
11813
fi
11542
11814
 
11550
11822
$as_echo "$as_me: **************************************** thread model" >&6;}
11551
11823
 
11552
11824
checkpthreadlib() { :
11553
 
    # BSD hack -> use alternative libc implementation
 
11825
    # 1. BSD hack: attempt to use alternative libc implementation if available
11554
11826
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
11555
11827
$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
11556
11828
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
11591
11863
 
11592
11864
            LIBS="$LIBS -pthread"
11593
11865
            HAVE_LIBPTHREAD="yes"
11594
 
            $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
11595
 
 
11596
 
 
11597
 
 
11598
 
fi
11599
 
 
11600
 
 
11601
 
    # OSF hack instead of simple AC_CHECK_LIB here
 
11866
 
 
11867
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
 
11868
 
 
11869
 
 
11870
 
 
11871
fi
 
11872
 
 
11873
 
 
11874
    # 2. try to use from standard libc (required by Android and possibly other platforms)
 
11875
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
 
11876
$as_echo_n "checking for pthread_create in -lc... " >&6; }
 
11877
if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
 
11878
  $as_echo_n "(cached) " >&6
 
11879
else
 
11880
  ac_check_lib_save_LIBS=$LIBS
 
11881
LIBS="-lc  $LIBS"
 
11882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11883
/* end confdefs.h.  */
 
11884
 
 
11885
/* Override any GCC internal prototype to avoid an error.
 
11886
   Use char because int might match the return type of a GCC
 
11887
   builtin and then its argument prototype would still apply.  */
 
11888
#ifdef __cplusplus
 
11889
extern "C"
 
11890
#endif
 
11891
char pthread_create ();
 
11892
int
 
11893
main ()
 
11894
{
 
11895
return pthread_create ();
 
11896
  ;
 
11897
  return 0;
 
11898
}
 
11899
_ACEOF
 
11900
if ac_fn_c_try_link "$LINENO"; then :
 
11901
  ac_cv_lib_c_pthread_create=yes
 
11902
else
 
11903
  ac_cv_lib_c_pthread_create=no
 
11904
fi
 
11905
rm -f core conftest.err conftest.$ac_objext \
 
11906
    conftest$ac_exeext conftest.$ac_ext
 
11907
LIBS=$ac_check_lib_save_LIBS
 
11908
fi
 
11909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
 
11910
$as_echo "$ac_cv_lib_c_pthread_create" >&6; }
 
11911
if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
 
11912
 
 
11913
            HAVE_LIBPTHREAD="yes"
 
11914
 
 
11915
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
 
11916
 
 
11917
 
 
11918
 
 
11919
fi
 
11920
 
 
11921
 
 
11922
    # 3. try libpthread: OSF hack instead of simple AC_CHECK_LIB here
11602
11923
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11603
11924
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11604
 
    saved_LIBS="$LIBS"
11605
 
    LIBS="$saved_LIBS -lpthread"
 
11925
    valid_LIBS="$LIBS"
 
11926
    LIBS="$valid_LIBS -lpthread"
11606
11927
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607
11928
/* end confdefs.h.  */
11608
11929
#include <pthread.h>
11620
11941
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621
11942
$as_echo "yes" >&6; }
11622
11943
            HAVE_LIBPTHREAD="yes"
11623
 
            $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
 
11944
 
 
11945
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
11624
11946
 
11625
11947
 
11626
11948
else
11627
11949
 
11628
11950
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629
11951
$as_echo "no" >&6; }
11630
 
            LIBS="$saved_LIBS"
 
11952
            LIBS="$valid_LIBS"
11631
11953
 
11632
11954
 
11633
11955
fi
11643
11965
        ucontext)
11644
11966
            { $as_echo "$as_me:${as_lineno-$LINENO}: UCONTEXT mode selected" >&5
11645
11967
$as_echo "$as_me: UCONTEXT mode selected" >&6;}
11646
 
            $as_echo "#define USE_UCONTEXT 1" >>confdefs.h
 
11968
 
 
11969
$as_echo "#define USE_UCONTEXT 1" >>confdefs.h
11647
11970
 
11648
11971
            ;;
11649
11972
        pthread)
11650
11973
            checkpthreadlib
11651
11974
            { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD mode selected" >&5
11652
11975
$as_echo "$as_me: PTHREAD mode selected" >&6;}
11653
 
            $as_echo "#define USE_PTHREAD 1" >>confdefs.h
 
11976
 
 
11977
$as_echo "#define USE_PTHREAD 1" >>confdefs.h
11654
11978
 
11655
11979
            ;;
11656
11980
        fork)
11657
11981
            { $as_echo "$as_me:${as_lineno-$LINENO}: FORK mode selected" >&5
11658
11982
$as_echo "$as_me: FORK mode selected" >&6;}
11659
 
            $as_echo "#define USE_FORK 1" >>confdefs.h
 
11983
 
 
11984
$as_echo "#define USE_FORK 1" >>confdefs.h
11660
11985
 
11661
11986
            ;;
11662
11987
        *)
11670
11995
    if test "$HAVE_LIBPTHREAD" = "yes" -a "$ac_cv_header_pthread_h" = "yes"; then
11671
11996
        { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD thread model detected" >&5
11672
11997
$as_echo "$as_me: PTHREAD thread model detected" >&6;}
11673
 
        $as_echo "#define USE_PTHREAD 1" >>confdefs.h
 
11998
 
 
11999
$as_echo "#define USE_PTHREAD 1" >>confdefs.h
11674
12000
 
11675
12001
    elif test "$ac_cv_func_getcontext" = "yes" -a "$ac_cv_header_ucontext_h" = "yes"; then
11676
12002
        { $as_echo "$as_me:${as_lineno-$LINENO}: UCONTEXT thread model detected" >&5
11677
12003
$as_echo "$as_me: UCONTEXT thread model detected" >&6;}
11678
 
        $as_echo "#define USE_UCONTEXT 1" >>confdefs.h
 
12004
 
 
12005
$as_echo "#define USE_UCONTEXT 1" >>confdefs.h
11679
12006
 
11680
12007
    else
11681
12008
        { $as_echo "$as_me:${as_lineno-$LINENO}: FORK thread model detected" >&5
11682
12009
$as_echo "$as_me: FORK thread model detected" >&6;}
11683
 
        $as_echo "#define USE_FORK 1" >>confdefs.h
 
12010
 
 
12011
$as_echo "#define USE_FORK 1" >>confdefs.h
11684
12012
 
11685
12013
    fi
11686
12014
 
11768
12096
done
11769
12097
 
11770
12098
# sockets
11771
 
for ac_func in poll endhostent getnameinfo
 
12099
for ac_func in poll gethostbyname2 endhostent getnameinfo
11772
12100
do :
11773
12101
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11774
12102
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11780
12108
fi
11781
12109
done
11782
12110
 
11783
 
# Tru64 UNIX has getaddrinfo() but has it renamed in libc as
11784
 
# something else so we must include <netdb.h> to get the
11785
 
# redefinition.
11786
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11787
12112
$as_echo_n "checking for getaddrinfo... " >&6; }
11788
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12113
case "$host_os" in
 
12114
*androideabi*)
 
12115
    # http://stackoverflow.com/questions/7818246/segmentation-fault-in-getaddrinfo
 
12116
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (buggy Android implementation)" >&5
 
12117
$as_echo "no (buggy Android implementation)" >&6; }
 
12118
    ;;
 
12119
*)
 
12120
    # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
 
12121
    # something else so we must include <netdb.h> to get the
 
12122
    # redefinition.
 
12123
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789
12124
/* end confdefs.h.  */
11790
12125
#include <stdio.h>
11791
12126
#include <sys/types.h>
11801
12136
_ACEOF
11802
12137
if ac_fn_c_try_link "$LINENO"; then :
11803
12138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11804
 
$as_echo "yes" >&6; }; $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
 
12139
$as_echo "yes" >&6; };
 
12140
$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11805
12141
 
11806
12142
else
11807
12143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809
12145
fi
11810
12146
rm -f core conftest.err conftest.$ac_objext \
11811
12147
    conftest$ac_exeext conftest.$ac_ext
 
12148
    ;;
 
12149
esac
11812
12150
# poll() is not recommended on Mac OS X <=10.3 and broken on Mac OS X >=10.4
11813
12151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll() implementation" >&5
11814
12152
$as_echo_n "checking for broken poll() implementation... " >&6; }
11816
12154
darwin*)
11817
12155
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (poll() disabled)" >&5
11818
12156
$as_echo "yes (poll() disabled)" >&6; }
11819
 
    $as_echo "#define BROKEN_POLL 1" >>confdefs.h
 
12157
 
 
12158
$as_echo "#define BROKEN_POLL 1" >>confdefs.h
11820
12159
 
11821
12160
    ;;
11822
12161
*)
11849
12188
        case "$enableval" in
11850
12189
            yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851
12190
$as_echo "yes" >&6; }
11852
 
                 $as_echo "#define USE_IPv6 1" >>confdefs.h
 
12191
 
 
12192
$as_echo "#define USE_IPv6 1" >>confdefs.h
11853
12193
 
11854
12194
                 ;;
11855
12195
            no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863
12203
 
11864
12204
else
11865
12205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866
 
$as_echo "yes" >&6; }; $as_echo "#define USE_IPv6 1" >>confdefs.h
 
12206
$as_echo "yes" >&6; };
 
12207
$as_echo "#define USE_IPv6 1" >>confdefs.h
11867
12208
 
11868
12209
fi
11869
12210
 
11878
12219
        case "$enableval" in
11879
12220
            yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880
12221
$as_echo "no" >&6; }
11881
 
                 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
 
12222
 
 
12223
$as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
11882
12224
 
11883
12225
                 LIBS="$LIBS -lwrap"
11884
12226
                 ;;
11897
12239
$as_echo "autodetecting" >&6; }
11898
12240
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
11899
12241
$as_echo_n "checking for hosts_access in -lwrap... " >&6; }
11900
 
        saved_LIBS="$LIBS"
11901
 
        LIBS="$saved_LIBS -lwrap"
 
12242
        valid_LIBS="$LIBS"
 
12243
        LIBS="$valid_LIBS -lwrap"
11902
12244
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903
12245
/* end confdefs.h.  */
11904
12246
int hosts_access(); int allow_severity, deny_severity;
11913
12255
_ACEOF
11914
12256
if ac_fn_c_try_link "$LINENO"; then :
11915
12257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916
 
$as_echo "yes" >&6; }; $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
 
12258
$as_echo "yes" >&6; };
 
12259
$as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
11917
12260
 
11918
12261
else
11919
12262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920
 
$as_echo "no" >&6; }; LIBS="$saved_LIBS"
 
12263
$as_echo "no" >&6; }; LIBS="$valid_LIBS"
11921
12264
 
11922
12265
fi
11923
12266
rm -f core conftest.err conftest.$ac_objext \
11938
12281
$as_echo "yes" >&6; }
11939
12282
                 sub_dirs="/ssl/fips /ssl/fips-1.0 /"
11940
12283
                 fips="yes"
11941
 
                 $as_echo "#define USE_FIPS 1" >>confdefs.h
 
12284
 
 
12285
$as_echo "#define USE_FIPS 1" >>confdefs.h
11942
12286
 
11943
12287
                 ;;
11944
12288
            no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966
12310
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** SSL" >&5
11967
12311
$as_echo "$as_me: **************************************** SSL" >&6;}
11968
12312
check_ssl_dir() { :
11969
 
    ssldir="$1"
 
12313
    SSLDIR="$1"
11970
12314
    if test -f "$1/include/openssl/ssl.h"; then
11971
 
        $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11972
 
 
11973
 
        return 0
11974
 
    fi
11975
 
    if test -f "$1/include/ssl.h"; then
11976
12315
        return 0
11977
12316
    fi
11978
12317
    return 1
11998
12337
 
11999
12338
fi
12000
12339
 
12001
 
if test ! -d "$ssldir"; then
 
12340
if test ! -d "$SSLDIR"; then
12002
12341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12003
12342
$as_echo "not found" >&6; }
12004
12343
as_fn_error $? "
12006
12345
Use --with-ssl option to fix this problem
12007
12346
" "$LINENO" 5
12008
12347
fi
12009
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
12010
 
$as_echo "$ssldir" >&6; }
 
12348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLDIR" >&5
 
12349
$as_echo "$SSLDIR" >&6; }
 
12350
 
12011
12351
 
12012
12352
cat >>confdefs.h <<_ACEOF
12013
 
#define ssldir "$ssldir"
12014
 
_ACEOF
12015
 
 
12016
 
 
12017
 
CFLAGS="$CFLAGS -I$ssldir/include"
12018
 
LIBS="$LIBS -L$ssldir/lib64 -L$ssldir/lib -lssl -lcrypto"
12019
 
 
12020
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete RSAref library" >&5
12021
 
$as_echo_n "checking for obsolete RSAref library... " >&6; }
12022
 
saved_LIBS="$LIBS"
12023
 
LIBS="$saved_LIBS -lRSAglue -L$libdir -lrsaref"
12024
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025
 
/* end confdefs.h.  */
12026
 
 
12027
 
int
12028
 
main ()
12029
 
{
12030
 
 
12031
 
  ;
12032
 
  return 0;
12033
 
}
12034
 
_ACEOF
12035
 
if ac_fn_c_try_link "$LINENO"; then :
12036
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037
 
$as_echo "yes" >&6; }
12038
 
else
12039
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040
 
$as_echo "no" >&6; }; LIBS="$saved_LIBS"
12041
 
 
12042
 
fi
12043
 
rm -f core conftest.err conftest.$ac_objext \
12044
 
    conftest$ac_exeext conftest.$ac_ext
12045
 
 
12046
 
as_ac_Header=`$as_echo "ac_cv_header_$ssldir/include/openssl/engine.h" | $as_tr_sh`
12047
 
ac_fn_c_check_header_mongrel "$LINENO" "$ssldir/include/openssl/engine.h" "$as_ac_Header" "$ac_includes_default"
 
12353
#define SSLDIR "$SSLDIR"
 
12354
_ACEOF
 
12355
 
 
12356
 
 
12357
valid_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -I$SSLDIR/include"
 
12358
valid_LIBS="$LIBS"; LIBS="$LIBS -L$SSLDIR/lib64 -L$SSLDIR/lib -lssl -lcrypto"
 
12359
 
 
12360
as_ac_Header=`$as_echo "ac_cv_header_$SSLDIR/include/openssl/engine.h" | $as_tr_sh`
 
12361
ac_fn_c_check_header_mongrel "$LINENO" "$SSLDIR/include/openssl/engine.h" "$as_ac_Header" "$ac_includes_default"
12048
12362
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12049
 
  $as_echo "#define HAVE_OSSL_ENGINE_H 1" >>confdefs.h
 
12363
 
 
12364
$as_echo "#define HAVE_OSSL_ENGINE_H 1" >>confdefs.h
12050
12365
 
12051
12366
else
12052
12367
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL engine header not found" >&5
12055
12370
 
12056
12371
 
12057
12372
 
 
12373
as_ac_Header=`$as_echo "ac_cv_header_$SSLDIR/include/openssl/ocsp.h" | $as_tr_sh`
 
12374
ac_fn_c_check_header_mongrel "$LINENO" "$SSLDIR/include/openssl/ocsp.h" "$as_ac_Header" "$ac_includes_default"
 
12375
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
12376
 
 
12377
$as_echo "#define HAVE_OSSL_OCSP_H 1" >>confdefs.h
 
12378
 
 
12379
else
 
12380
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL ocsp header not found" >&5
 
12381
$as_echo "$as_me: WARNING: OpenSSL ocsp header not found" >&2;}
 
12382
fi
 
12383
 
 
12384
 
 
12385
 
12058
12386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIPS_mode_set" >&5
12059
12387
$as_echo_n "checking for FIPS_mode_set... " >&6; }
12060
12388
if test "$fips" = "auto"; then
12072
12400
if ac_fn_c_try_link "$LINENO"; then :
12073
12401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12074
12402
$as_echo "yes" >&6; }
12075
 
            $as_echo "#define USE_FIPS 1" >>confdefs.h
 
12403
 
 
12404
$as_echo "#define USE_FIPS 1" >>confdefs.h
12076
12405
 
12077
12406
 
12078
12407
else
12089
12418
$as_echo "test skipped" >&6; }
12090
12419
fi
12091
12420
 
 
12421
CPPFLAGS="$valid_CPPFLAGS"
 
12422
LIBS="$valid_LIBS"
 
12423
 
12092
12424
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** write the results" >&5
12093
12425
$as_echo "$as_me: **************************************** write the results" >&6;}
12094
12426
ac_config_files="$ac_config_files Makefile src/Makefile src/stunnel3 doc/Makefile tools/Makefile tools/stunnel.conf-sample tools/stunnel.init tools/stunnel.service"
12172
12504
# Let make expand exec_prefix.
12173
12505
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12174
12506
 
12175
 
# Transform confdefs.h into DEFS.
12176
 
# Protect against shell expansion while executing Makefile rules.
12177
 
# Protect against Makefile macro expansion.
12178
 
#
12179
 
# If the first sed substitution is executed (which looks for macros that
12180
 
# take arguments), then branch to the quote section.  Otherwise,
12181
 
# look for a macro that doesn't take arguments.
12182
 
ac_script='
12183
 
:mline
12184
 
/\\$/{
12185
 
 N
12186
 
 s,\\\n,,
12187
 
 b mline
12188
 
}
12189
 
t clear
12190
 
:clear
12191
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12192
 
t quote
12193
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12194
 
t quote
12195
 
b any
12196
 
:quote
12197
 
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12198
 
s/\[/\\&/g
12199
 
s/\]/\\&/g
12200
 
s/\$/$$/g
12201
 
H
12202
 
:any
12203
 
${
12204
 
        g
12205
 
        s/^\n//
12206
 
        s/\n/ /g
12207
 
        p
12208
 
}
12209
 
'
12210
 
DEFS=`sed -n "$ac_script" confdefs.h`
12211
 
 
 
12507
DEFS=-DHAVE_CONFIG_H
12212
12508
 
12213
12509
ac_libobjs=
12214
12510
ac_ltlibobjs=
12651
12947
# report actual input values of CONFIG_FILES etc. instead of their
12652
12948
# values after options handling.
12653
12949
ac_log="
12654
 
This file was extended by stunnel $as_me 4.42, which was
 
12950
This file was extended by stunnel $as_me 4.52, which was
12655
12951
generated by GNU Autoconf 2.67.  Invocation command line was
12656
12952
 
12657
12953
  CONFIG_FILES    = $CONFIG_FILES
12669
12965
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12670
12966
esac
12671
12967
 
 
12968
case $ac_config_headers in *"
 
12969
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
12970
esac
12672
12971
 
12673
12972
 
12674
12973
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12675
12974
# Files that config.status was made for.
12676
12975
config_files="$ac_config_files"
 
12976
config_headers="$ac_config_headers"
12677
12977
config_commands="$ac_config_commands"
12678
12978
 
12679
12979
_ACEOF
12695
12995
      --recheck    update $as_me by reconfiguring in the same conditions
12696
12996
      --file=FILE[:TEMPLATE]
12697
12997
                   instantiate the configuration file FILE
 
12998
      --header=FILE[:TEMPLATE]
 
12999
                   instantiate the configuration header FILE
12698
13000
 
12699
13001
Configuration files:
12700
13002
$config_files
12701
13003
 
 
13004
Configuration headers:
 
13005
$config_headers
 
13006
 
12702
13007
Configuration commands:
12703
13008
$config_commands
12704
13009
 
12708
13013
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12709
13014
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12710
13015
ac_cs_version="\\
12711
 
stunnel config.status 4.42
 
13016
stunnel config.status 4.52
12712
13017
configured by $0, generated by GNU Autoconf 2.67,
12713
13018
  with options \\"\$ac_cs_config\\"
12714
13019
 
12765
13070
    esac
12766
13071
    as_fn_append CONFIG_FILES " '$ac_optarg'"
12767
13072
    ac_need_defaults=false;;
12768
 
  --he | --h |  --help | --hel | -h )
 
13073
  --header | --heade | --head | --hea )
 
13074
    $ac_shift
 
13075
    case $ac_optarg in
 
13076
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13077
    esac
 
13078
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
13079
    ac_need_defaults=false;;
 
13080
  --he | --h)
 
13081
    # Conflict between --help and --header
 
13082
    as_fn_error $? "ambiguous option: \`$1'
 
13083
Try \`$0 --help' for more information.";;
 
13084
  --help | --hel | -h )
12769
13085
    $as_echo "$ac_cs_usage"; exit ;;
12770
13086
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12771
13087
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13081
13397
for ac_config_target in $ac_config_targets
13082
13398
do
13083
13399
  case $ac_config_target in
 
13400
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13084
13401
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13085
13402
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13086
13403
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13103
13420
# bizarre bug on SunOS 4.1.3.
13104
13421
if $ac_need_defaults; then
13105
13422
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13423
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13106
13424
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13107
13425
fi
13108
13426
 
13289
13607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13290
13608
fi # test -n "$CONFIG_FILES"
13291
13609
 
13292
 
 
13293
 
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
 
13610
# Set up the scripts for CONFIG_HEADERS section.
 
13611
# No need to generate them if there are no CONFIG_HEADERS.
 
13612
# This happens for instance with `./config.status Makefile'.
 
13613
if test -n "$CONFIG_HEADERS"; then
 
13614
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
13615
BEGIN {
 
13616
_ACEOF
 
13617
 
 
13618
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
13619
# here-document in config.status, that substitutes the proper values into
 
13620
# config.h.in to produce config.h.
 
13621
 
 
13622
# Create a delimiter string that does not exist in confdefs.h, to ease
 
13623
# handling of long lines.
 
13624
ac_delim='%!_!# '
 
13625
for ac_last_try in false false :; do
 
13626
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
13627
  if test -z "$ac_t"; then
 
13628
    break
 
13629
  elif $ac_last_try; then
 
13630
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
13631
  else
 
13632
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
13633
  fi
 
13634
done
 
13635
 
 
13636
# For the awk script, D is an array of macro values keyed by name,
 
13637
# likewise P contains macro parameters if any.  Preserve backslash
 
13638
# newline sequences.
 
13639
 
 
13640
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
13641
sed -n '
 
13642
s/.\{148\}/&'"$ac_delim"'/g
 
13643
t rset
 
13644
:rset
 
13645
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
13646
t def
 
13647
d
 
13648
:def
 
13649
s/\\$//
 
13650
t bsnl
 
13651
s/["\\]/\\&/g
 
13652
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
13653
D["\1"]=" \3"/p
 
13654
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
13655
d
 
13656
:bsnl
 
13657
s/["\\]/\\&/g
 
13658
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
13659
D["\1"]=" \3\\\\\\n"\\/p
 
13660
t cont
 
13661
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
13662
t cont
 
13663
d
 
13664
:cont
 
13665
n
 
13666
s/.\{148\}/&'"$ac_delim"'/g
 
13667
t clear
 
13668
:clear
 
13669
s/\\$//
 
13670
t bsnlc
 
13671
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
13672
d
 
13673
:bsnlc
 
13674
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
13675
b cont
 
13676
' <confdefs.h | sed '
 
13677
s/'"$ac_delim"'/"\\\
 
13678
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
13679
 
 
13680
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13681
  for (key in D) D_is_set[key] = 1
 
13682
  FS = ""
 
13683
}
 
13684
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
13685
  line = \$ 0
 
13686
  split(line, arg, " ")
 
13687
  if (arg[1] == "#") {
 
13688
    defundef = arg[2]
 
13689
    mac1 = arg[3]
 
13690
  } else {
 
13691
    defundef = substr(arg[1], 2)
 
13692
    mac1 = arg[2]
 
13693
  }
 
13694
  split(mac1, mac2, "(") #)
 
13695
  macro = mac2[1]
 
13696
  prefix = substr(line, 1, index(line, defundef) - 1)
 
13697
  if (D_is_set[macro]) {
 
13698
    # Preserve the white space surrounding the "#".
 
13699
    print prefix "define", macro P[macro] D[macro]
 
13700
    next
 
13701
  } else {
 
13702
    # Replace #undef with comments.  This is necessary, for example,
 
13703
    # in the case of _POSIX_SOURCE, which is predefined and required
 
13704
    # on some systems where configure will not decide to define it.
 
13705
    if (defundef == "undef") {
 
13706
      print "/*", prefix defundef, macro, "*/"
 
13707
      next
 
13708
    }
 
13709
  }
 
13710
}
 
13711
{ print }
 
13712
_ACAWK
 
13713
_ACEOF
 
13714
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13715
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
13716
fi # test -n "$CONFIG_HEADERS"
 
13717
 
 
13718
 
 
13719
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13294
13720
shift
13295
13721
for ac_tag
13296
13722
do
13508
13934
  esac \
13509
13935
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13510
13936
 ;;
13511
 
 
 
13937
  :H)
 
13938
  #
 
13939
  # CONFIG_HEADER
 
13940
  #
 
13941
  if test x"$ac_file" != x-; then
 
13942
    {
 
13943
      $as_echo "/* $configure_input  */" \
 
13944
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
13945
    } >"$tmp/config.h" \
 
13946
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
13947
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
13948
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
13949
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
13950
    else
 
13951
      rm -f "$ac_file"
 
13952
      mv "$tmp/config.h" "$ac_file" \
 
13953
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
13954
    fi
 
13955
  else
 
13956
    $as_echo "/* $configure_input  */" \
 
13957
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
13958
      || as_fn_error $? "could not create -" "$LINENO" 5
 
13959
  fi
 
13960
# Compute "$ac_file"'s index in $config_headers.
 
13961
_am_arg="$ac_file"
 
13962
_am_stamp_count=1
 
13963
for _am_header in $config_headers :; do
 
13964
  case $_am_header in
 
13965
    $_am_arg | $_am_arg:* )
 
13966
      break ;;
 
13967
    * )
 
13968
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
13969
  esac
 
13970
done
 
13971
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
13972
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13973
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
13974
         X"$_am_arg" : 'X\(//\)$' \| \
 
13975
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
13976
$as_echo X"$_am_arg" |
 
13977
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13978
            s//\1/
 
13979
            q
 
13980
          }
 
13981
          /^X\(\/\/\)[^/].*/{
 
13982
            s//\1/
 
13983
            q
 
13984
          }
 
13985
          /^X\(\/\/\)$/{
 
13986
            s//\1/
 
13987
            q
 
13988
          }
 
13989
          /^X\(\/\).*/{
 
13990
            s//\1/
 
13991
            q
 
13992
          }
 
13993
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
13994
 ;;
13512
13995
 
13513
13996
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13514
13997
$as_echo "$as_me: executing $ac_file commands" >&6;}