summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-09-14 12:45:47 +0000
committerColin Watson <cjwatson@debian.org>2005-09-14 12:45:47 +0000
commit9b71add4cecf753c45f5fbd6ff0913bc95b3e95d (patch)
treed4ea8fdb30c7949c6433f5277c39548ea579d4dc /configure
parented07bcbea56007ab5b218ddf3aa6a7d4e21966e0 (diff)
parent16704d57999d987fb8d9ba53379841a79f016d67 (diff)
Merge 4.2p1 to the trunk.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1286
1 files changed, 846 insertions, 440 deletions
diff --git a/configure b/configure
index 76819694c..bc27b88c2 100755
--- a/configure
+++ b/configure
@@ -2,6 +2,8 @@
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OpenSSH Portable. 3# Generated by GNU Autoconf 2.59 for OpenSSH Portable.
4# 4#
5# Report bugs to <openssh-unix-dev@mindrot.org>.
6#
5# Copyright (C) 2003 Free Software Foundation, Inc. 7# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation 8# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it. 9# gives unlimited permission to copy, distribute and modify it.
@@ -269,7 +271,7 @@ PACKAGE_NAME='OpenSSH'
269PACKAGE_TARNAME='openssh' 271PACKAGE_TARNAME='openssh'
270PACKAGE_VERSION='Portable' 272PACKAGE_VERSION='Portable'
271PACKAGE_STRING='OpenSSH Portable' 273PACKAGE_STRING='OpenSSH Portable'
272PACKAGE_BUGREPORT='' 274PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
273 275
274ac_unique_file="ssh.c" 276ac_unique_file="ssh.c"
275# Factoring default headers for most tests. 277# Factoring default headers for most tests.
@@ -867,6 +869,7 @@ Optional Packages:
867 --with-cppflags Specify additional flags to pass to preprocessor 869 --with-cppflags Specify additional flags to pass to preprocessor
868 --with-ldflags Specify additional flags to pass to linker 870 --with-ldflags Specify additional flags to pass to linker
869 --with-libs Specify additional libraries to link with 871 --with-libs Specify additional libraries to link with
872 --with-Werror Build main code with -Werror
870 --with-zlib=PATH Use zlib in PATH 873 --with-zlib=PATH Use zlib in PATH
871 --without-zlib-version-check Disable zlib version check 874 --without-zlib-version-check Disable zlib version check
872 --with-skey[=PATH] Enable S/Key support (optionally in PATH) 875 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
@@ -909,6 +912,7 @@ Some influential environment variables:
909Use these variables to override the choices made by `configure' or to help 912Use these variables to override the choices made by `configure' or to help
910it to find libraries and programs with nonstandard names/locations. 913it to find libraries and programs with nonstandard names/locations.
911 914
915Report bugs to <openssh-unix-dev@mindrot.org>.
912_ACEOF 916_ACEOF
913fi 917fi
914 918
@@ -4083,8 +4087,251 @@ _ACEOF
4083 ;; 4087 ;;
4084esac 4088esac
4085 4089
4090
4091echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4092echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4093if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102#include <limits.h>
4103
4104int
4105main ()
4106{
4107#ifndef LLONG_MAX
4108 char *p = (char *) LLONG_MAX;
4109#endif
4110
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_cv_have_decl_LLONG_MAX=yes
4137else
4138 echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141ac_cv_have_decl_LLONG_MAX=no
4142fi
4143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4144fi
4145echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4146echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4147if test $ac_cv_have_decl_LLONG_MAX = yes; then
4148 have_llong_max=1
4149fi
4150
4151
4086if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 4152if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
4087 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" 4153 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
4154 GCC_VER=`$CC --version`
4155 case $GCC_VER in
4156 1.*) ;;
4157 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
4158 2.*) ;;
4159 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
4160 esac
4161
4162 if test -z "$have_llong_max"; then
4163 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
4164 unset ac_cv_have_decl_LLONG_MAX
4165 saved_CFLAGS="$CFLAGS"
4166 CFLAGS="$CFLAGS -std=gnu99"
4167 echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4168echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4169if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178#include <limits.h>
4179
4180
4181int
4182main ()
4183{
4184#ifndef LLONG_MAX
4185 char *p = (char *) LLONG_MAX;
4186#endif
4187
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192rm -f conftest.$ac_objext
4193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_have_decl_LLONG_MAX=yes
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218ac_cv_have_decl_LLONG_MAX=no
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221fi
4222echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4223echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4224if test $ac_cv_have_decl_LLONG_MAX = yes; then
4225 have_llong_max=1
4226else
4227 CFLAGS="$saved_CFLAGS"
4228fi
4229
4230 fi
4231fi
4232
4233if test -z "$have_llong_max"; then
4234 echo "$as_me:$LINENO: checking for max value of long long" >&5
4235echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6
4236 if test "$cross_compiling" = yes; then
4237
4238 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
4239echo "$as_me: WARNING: cross compiling: not checking" >&2;}
4240
4241
4242else
4243 cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
4249
4250#include <stdio.h>
4251/* Why is this so damn hard? */
4252#ifdef __GNUC__
4253# undef __GNUC__
4254#endif
4255#define __USE_ISOC99
4256#include <limits.h>
4257#define DATA "conftest.llminmax"
4258int main(void) {
4259 FILE *f;
4260 long long i, llmin, llmax = 0;
4261
4262 if((f = fopen(DATA,"w")) == NULL)
4263 exit(1);
4264
4265#if defined(LLONG_MIN) && defined(LLONG_MAX)
4266 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
4267 llmin = LLONG_MIN;
4268 llmax = LLONG_MAX;
4269#else
4270 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
4271 /* This will work on one's complement and two's complement */
4272 for (i = 1; i > llmax; i <<= 1, i++)
4273 llmax = i;
4274 llmin = llmax + 1LL; /* wrap */
4275#endif
4276
4277 /* Sanity check */
4278 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
4279 || llmax - 1 > llmax) {
4280 fprintf(f, "unknown unknown\n");
4281 exit(2);
4282 }
4283
4284 if (fprintf(f ,"%lld %lld", llmin, llmax) < 0)
4285 exit(3);
4286
4287 exit(0);
4288}
4289
4290_ACEOF
4291rm -f conftest$ac_exeext
4292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293 (eval $ac_link) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302
4303 llong_min=`$AWK '{print $1}' conftest.llminmax`
4304 llong_max=`$AWK '{print $2}' conftest.llminmax`
4305 echo "$as_me:$LINENO: result: $llong_max" >&5
4306echo "${ECHO_T}$llong_max" >&6
4307
4308cat >>confdefs.h <<_ACEOF
4309#define LLONG_MAX ${llong_max}LL
4310_ACEOF
4311
4312 echo "$as_me:$LINENO: checking for min value of long long" >&5
4313echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6
4314 echo "$as_me:$LINENO: result: $llong_min" >&5
4315echo "${ECHO_T}$llong_min" >&6
4316
4317cat >>confdefs.h <<_ACEOF
4318#define LLONG_MIN ${llong_min}LL
4319_ACEOF
4320
4321
4322else
4323 echo "$as_me: program exited with status $ac_status" >&5
4324echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
4327( exit $ac_status )
4328
4329 echo "$as_me:$LINENO: result: not found" >&5
4330echo "${ECHO_T}not found" >&6
4331
4332fi
4333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4334fi
4088fi 4335fi
4089 4336
4090 4337
@@ -5064,120 +5311,8 @@ _ACEOF
5064_ACEOF 5311_ACEOF
5065 5312
5066 ;; 5313 ;;
5067*-*-hpux10.26) 5314*-*-hpux*)
5068 if test -z "$GCC"; then 5315 # first we define all of the options common to all HP-UX releases
5069 CFLAGS="$CFLAGS -Ae"
5070 fi
5071 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5072 IPADDR_IN_DISPLAY=yes
5073 cat >>confdefs.h <<\_ACEOF
5074#define HAVE_SECUREWARE 1
5075_ACEOF
5076
5077 cat >>confdefs.h <<\_ACEOF
5078#define USE_PIPES 1
5079_ACEOF
5080
5081 cat >>confdefs.h <<\_ACEOF
5082#define LOGIN_NO_ENDOPT 1
5083_ACEOF
5084
5085 cat >>confdefs.h <<\_ACEOF
5086#define LOGIN_NEEDS_UTMPX 1
5087_ACEOF
5088
5089 cat >>confdefs.h <<\_ACEOF
5090#define LOCKED_PASSWD_STRING "*"
5091_ACEOF
5092
5093 cat >>confdefs.h <<\_ACEOF
5094#define SPT_TYPE SPT_PSTAT
5095_ACEOF
5096
5097 LIBS="$LIBS -lsec -lsecpw"
5098
5099echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5100echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5101if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 ac_check_lib_save_LIBS=$LIBS
5105LIBS="-lxnet $LIBS"
5106cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
5112
5113/* Override any gcc2 internal prototype to avoid an error. */
5114#ifdef __cplusplus
5115extern "C"
5116#endif
5117/* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5119char t_error ();
5120int
5121main ()
5122{
5123t_error ();
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext conftest$ac_exeext
5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130 (eval $ac_link) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest$ac_exeext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_lib_xnet_t_error=yes
5150else
5151 echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154ac_cv_lib_xnet_t_error=no
5155fi
5156rm -f conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5158LIBS=$ac_check_lib_save_LIBS
5159fi
5160echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5161echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5162if test $ac_cv_lib_xnet_t_error = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164#define HAVE_LIBXNET 1
5165_ACEOF
5166
5167 LIBS="-lxnet $LIBS"
5168
5169else
5170 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5171echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5172 { (exit 1); exit 1; }; }
5173fi
5174
5175 disable_ptmx_check=yes
5176 ;;
5177*-*-hpux10*)
5178 if test -z "$GCC"; then
5179 CFLAGS="$CFLAGS -Ae"
5180 fi
5181 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 5316 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5182 IPADDR_IN_DISPLAY=yes 5317 IPADDR_IN_DISPLAY=yes
5183 cat >>confdefs.h <<\_ACEOF 5318 cat >>confdefs.h <<\_ACEOF
@@ -5278,123 +5413,44 @@ echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5278 { (exit 1); exit 1; }; } 5413 { (exit 1); exit 1; }; }
5279fi 5414fi
5280 5415
5281 ;;
5282*-*-hpux11*)
5283 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5284 IPADDR_IN_DISPLAY=yes
5285 cat >>confdefs.h <<\_ACEOF
5286#define PAM_SUN_CODEBASE 1
5287_ACEOF
5288
5289 cat >>confdefs.h <<\_ACEOF
5290#define USE_PIPES 1
5291_ACEOF
5292
5293 cat >>confdefs.h <<\_ACEOF
5294#define LOGIN_NO_ENDOPT 1
5295_ACEOF
5296 5416
5297 cat >>confdefs.h <<\_ACEOF 5417 # next, we define all of the options specific to major releases
5298#define LOGIN_NEEDS_UTMPX 1 5418 case "$host" in
5419 *-*-hpux10*)
5420 if test -z "$GCC"; then
5421 CFLAGS="$CFLAGS -Ae"
5422 fi
5423 ;;
5424 *-*-hpux11*)
5425 cat >>confdefs.h <<\_ACEOF
5426#define PAM_SUN_CODEBASE 1
5299_ACEOF 5427_ACEOF
5300 5428
5301 cat >>confdefs.h <<\_ACEOF 5429 cat >>confdefs.h <<\_ACEOF
5302#define DISABLE_UTMP 1 5430#define DISABLE_UTMP 1
5303_ACEOF 5431_ACEOF
5304 5432
5305 cat >>confdefs.h <<\_ACEOF
5306#define LOCKED_PASSWD_STRING "*"
5307_ACEOF
5308
5309 cat >>confdefs.h <<\_ACEOF
5310#define SPT_TYPE SPT_PSTAT
5311_ACEOF
5312
5313 5433
5314cat >>confdefs.h <<\_ACEOF 5434cat >>confdefs.h <<\_ACEOF
5315#define USE_BTMP 1 5435#define USE_BTMP 1
5316_ACEOF 5436_ACEOF
5317 5437
5318 check_for_hpux_broken_getaddrinfo=1 5438 check_for_hpux_broken_getaddrinfo=1
5319 check_for_conflicting_getspnam=1 5439 check_for_conflicting_getspnam=1
5320 LIBS="$LIBS -lsec" 5440 ;;
5321 5441 esac
5322echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5323echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5324if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327 ac_check_lib_save_LIBS=$LIBS
5328LIBS="-lxnet $LIBS"
5329cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
5335
5336/* Override any gcc2 internal prototype to avoid an error. */
5337#ifdef __cplusplus
5338extern "C"
5339#endif
5340/* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5342char t_error ();
5343int
5344main ()
5345{
5346t_error ();
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351rm -f conftest.$ac_objext conftest$ac_exeext
5352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5353 (eval $ac_link) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest$ac_exeext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_cv_lib_xnet_t_error=yes
5373else
5374 echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376 5442
5377ac_cv_lib_xnet_t_error=no 5443 # lastly, we define options specific to minor releases
5378fi 5444 case "$host" in
5379rm -f conftest.err conftest.$ac_objext \ 5445 *-*-hpux10.26)
5380 conftest$ac_exeext conftest.$ac_ext 5446 cat >>confdefs.h <<\_ACEOF
5381LIBS=$ac_check_lib_save_LIBS 5447#define HAVE_SECUREWARE 1
5382fi
5383echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5384echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5385if test $ac_cv_lib_xnet_t_error = yes; then
5386 cat >>confdefs.h <<_ACEOF
5387#define HAVE_LIBXNET 1
5388_ACEOF 5448_ACEOF
5389 5449
5390 LIBS="-lxnet $LIBS" 5450 disable_ptmx_check=yes
5391 5451 LIBS="$LIBS -lsecpw"
5392else 5452 ;;
5393 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 5453 esac
5394echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5395 { (exit 1); exit 1; }; }
5396fi
5397
5398 ;; 5454 ;;
5399*-*-irix5*) 5455*-*-irix5*)
5400 PATH="$PATH:/usr/etc" 5456 PATH="$PATH:/usr/etc"
@@ -5632,8 +5688,9 @@ _ACEOF
5632 esac 5688 esac
5633 ;; 5689 ;;
5634mips-sony-bsd|mips-sony-newsos4) 5690mips-sony-bsd|mips-sony-newsos4)
5635 cat >>confdefs.h <<\_ACEOF 5691
5636#define HAVE_NEWS4 1 5692cat >>confdefs.h <<\_ACEOF
5693#define NEED_SETPRGP
5637_ACEOF 5694_ACEOF
5638 5695
5639 SONY=1 5696 SONY=1
@@ -5683,6 +5740,13 @@ _ACEOF
5683_ACEOF 5740_ACEOF
5684 5741
5685 ;; 5742 ;;
5743*-*-openbsd*)
5744
5745cat >>confdefs.h <<\_ACEOF
5746#define HAVE_ATTRIBUTE__SENTINEL__ 1
5747_ACEOF
5748
5749 ;;
5686*-*-solaris*) 5750*-*-solaris*)
5687 if test "x$withval" != "xno" ; then 5751 if test "x$withval" != "xno" ; then
5688 need_dash_r=1 5752 need_dash_r=1
@@ -6075,6 +6139,12 @@ _ACEOF
6075 ;; 6139 ;;
6076# UnixWare 7.x, OpenUNIX 8 6140# UnixWare 7.x, OpenUNIX 8
6077*-*-sysv5*) 6141*-*-sysv5*)
6142 check_for_libcrypt_later=1
6143
6144cat >>confdefs.h <<\_ACEOF
6145#define UNIXWARE_LONG_PASSWORDS 1
6146_ACEOF
6147
6078 cat >>confdefs.h <<\_ACEOF 6148 cat >>confdefs.h <<\_ACEOF
6079#define USE_PIPES 1 6149#define USE_PIPES 1
6080_ACEOF 6150_ACEOF
@@ -6096,6 +6166,16 @@ cat >>confdefs.h <<\_ACEOF
6096#define PASSWD_NEEDS_USERNAME 1 6166#define PASSWD_NEEDS_USERNAME 1
6097_ACEOF 6167_ACEOF
6098 6168
6169 case "$host" in
6170 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
6171 TEST_SHELL=/u95/bin/sh
6172
6173cat >>confdefs.h <<\_ACEOF
6174#define BROKEN_LIBIAF 1
6175_ACEOF
6176
6177 ;;
6178 esac
6099 ;; 6179 ;;
6100*-*-sysv*) 6180*-*-sysv*)
6101 ;; 6181 ;;
@@ -6427,6 +6507,42 @@ _ACEOF
6427_ACEOF 6507_ACEOF
6428 6508
6429 ;; 6509 ;;
6510
6511*-*-ultrix*)
6512
6513cat >>confdefs.h <<\_ACEOF
6514#define BROKEN_GETGROUPS
6515_ACEOF
6516
6517
6518cat >>confdefs.h <<\_ACEOF
6519#define BROKEN_MMAP
6520_ACEOF
6521
6522
6523cat >>confdefs.h <<\_ACEOF
6524#define NEED_SETPRGP
6525_ACEOF
6526
6527
6528cat >>confdefs.h <<\_ACEOF
6529#define HAVE_SYS_SYSLOG_H 1
6530_ACEOF
6531
6532 ;;
6533
6534*-*-lynxos)
6535 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
6536 cat >>confdefs.h <<\_ACEOF
6537#define MISSING_HOWMANY 1
6538_ACEOF
6539
6540
6541cat >>confdefs.h <<\_ACEOF
6542#define BROKEN_SETVBUF 1
6543_ACEOF
6544
6545 ;;
6430esac 6546esac
6431 6547
6432# Allow user to specify flags 6548# Allow user to specify flags
@@ -6479,6 +6595,20 @@ if test "${with_libs+set}" = set; then
6479 6595
6480fi; 6596fi;
6481 6597
6598# Check whether --with-Werror or --without-Werror was given.
6599if test "${with_Werror+set}" = set; then
6600 withval="$with_Werror"
6601
6602 if test -n "$withval" && test "x$withval" != "xno"; then
6603 werror_flags="-Werror"
6604 if "x${withval}" != "xyes"; then
6605 werror_flags="$withval"
6606 fi
6607 fi
6608
6609
6610fi;
6611
6482echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 6612echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
6483echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 6613echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
6484if test "$cross_compiling" = yes; then 6614if test "$cross_compiling" = yes; then
@@ -6527,7 +6657,6 @@ fi
6527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6528fi 6658fi
6529 6659
6530# Checks for header files.
6531 6660
6532echo "$as_me:$LINENO: checking for egrep" >&5 6661echo "$as_me:$LINENO: checking for egrep" >&5
6533echo $ECHO_N "checking for egrep... $ECHO_C" >&6 6662echo $ECHO_N "checking for egrep... $ECHO_C" >&6
@@ -6835,16 +6964,69 @@ done
6835 6964
6836 6965
6837 6966
6838for ac_header in bstring.h crypt.h dirent.h endian.h features.h \ 6967
6839 floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \ 6968
6840 login_cap.h maillock.h ndir.h netdb.h netgroup.h \ 6969
6841 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ 6970for ac_header in \
6842 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ 6971 bstring.h \
6843 strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \ 6972 crypt.h \
6844 sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \ 6973 dirent.h \
6845 sys/pstat.h sys/select.h sys/stat.h sys/stream.h \ 6974 endian.h \
6846 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \ 6975 features.h \
6847 time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h 6976 floatingpoint.h \
6977 getopt.h \
6978 glob.h \
6979 ia.h \
6980 iaf.h \
6981 lastlog.h \
6982 limits.h \
6983 login.h \
6984 login_cap.h \
6985 maillock.h \
6986 ndir.h \
6987 netdb.h \
6988 netgroup.h \
6989 netinet/in_systm.h \
6990 pam/pam_appl.h \
6991 paths.h \
6992 pty.h \
6993 readpassphrase.h \
6994 rpc/types.h \
6995 security/pam_appl.h \
6996 shadow.h \
6997 stddef.h \
6998 stdint.h \
6999 string.h \
7000 strings.h \
7001 sys/audit.h \
7002 sys/bitypes.h \
7003 sys/bsdtty.h \
7004 sys/cdefs.h \
7005 sys/dir.h \
7006 sys/mman.h \
7007 sys/ndir.h \
7008 sys/prctl.h \
7009 sys/pstat.h \
7010 sys/select.h \
7011 sys/stat.h \
7012 sys/stream.h \
7013 sys/stropts.h \
7014 sys/strtio.h \
7015 sys/sysmacros.h \
7016 sys/time.h \
7017 sys/timers.h \
7018 sys/un.h \
7019 time.h \
7020 tmpdir.h \
7021 ttyent.h \
7022 unistd.h \
7023 usersec.h \
7024 util.h \
7025 utime.h \
7026 utmp.h \
7027 utmpx.h \
7028 vis.h \
7029
6848do 7030do
6849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6850if eval "test \"\${$as_ac_Header+set}\" = set"; then 7032if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -6964,9 +7146,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
6964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6965 ( 7147 (
6966 cat <<\_ASBOX 7148 cat <<\_ASBOX
6967## ---------------------------------- ## 7149## ------------------------------------------- ##
6968## Report this to the OpenSSH lists. ## 7150## Report this to openssh-unix-dev@mindrot.org ##
6969## ---------------------------------- ## 7151## ------------------------------------------- ##
6970_ASBOX 7152_ASBOX
6971 ) | 7153 ) |
6972 sed "s/^/$as_me: WARNING: /" >&2 7154 sed "s/^/$as_me: WARNING: /" >&2
@@ -7613,9 +7795,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
7613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7614 ( 7796 (
7615 cat <<\_ASBOX 7797 cat <<\_ASBOX
7616## ---------------------------------- ## 7798## ------------------------------------------- ##
7617## Report this to the OpenSSH lists. ## 7799## Report this to openssh-unix-dev@mindrot.org ##
7618## ---------------------------------- ## 7800## ------------------------------------------- ##
7619_ASBOX 7801_ASBOX
7620 ) | 7802 ) |
7621 sed "s/^/$as_me: WARNING: /" >&2 7803 sed "s/^/$as_me: WARNING: /" >&2
@@ -7901,9 +8083,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
7901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8083echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7902 ( 8084 (
7903 cat <<\_ASBOX 8085 cat <<\_ASBOX
7904## ---------------------------------- ## 8086## ------------------------------------------- ##
7905## Report this to the OpenSSH lists. ## 8087## Report this to openssh-unix-dev@mindrot.org ##
7906## ---------------------------------- ## 8088## ------------------------------------------- ##
7907_ASBOX 8089_ASBOX
7908 ) | 8090 ) |
7909 sed "s/^/$as_me: WARNING: /" >&2 8091 sed "s/^/$as_me: WARNING: /" >&2
@@ -8522,9 +8704,9 @@ echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8522echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 8704echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8523 ( 8705 (
8524 cat <<\_ASBOX 8706 cat <<\_ASBOX
8525## ---------------------------------- ## 8707## ------------------------------------------- ##
8526## Report this to the OpenSSH lists. ## 8708## Report this to openssh-unix-dev@mindrot.org ##
8527## ---------------------------------- ## 8709## ------------------------------------------- ##
8528_ASBOX 8710_ASBOX
8529 ) | 8711 ) |
8530 sed "s/^/$as_me: WARNING: /" >&2 8712 sed "s/^/$as_me: WARNING: /" >&2
@@ -8591,8 +8773,8 @@ int main()
8591 if (a == 1 && b == 1 && c >= 4) 8773 if (a == 1 && b == 1 && c >= 4)
8592 exit(0); 8774 exit(0);
8593 8775
8594 /* 1.2.1.2 and up are OK */ 8776 /* 1.2.3 and up are OK */
8595 if (v >= 1020102) 8777 if (v >= 1020300)
8596 exit(0); 8778 exit(0);
8597 8779
8598 exit(2); 8780 exit(2);
@@ -8626,14 +8808,14 @@ Your reported zlib version has known security problems. It's possible your
8626vendor has fixed these problems without changing the version number. If you 8808vendor has fixed these problems without changing the version number. If you
8627are sure this is the case, you can disable the check by running 8809are sure this is the case, you can disable the check by running
8628\"./configure --without-zlib-version-check\". 8810\"./configure --without-zlib-version-check\".
8629If you are in doubt, upgrade zlib to version 1.2.1.2 or greater. 8811If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8630See http://www.gzip.org/zlib/ for details." >&5 8812See http://www.gzip.org/zlib/ for details." >&5
8631echo "$as_me: error: *** zlib too old - check config.log *** 8813echo "$as_me: error: *** zlib too old - check config.log ***
8632Your reported zlib version has known security problems. It's possible your 8814Your reported zlib version has known security problems. It's possible your
8633vendor has fixed these problems without changing the version number. If you 8815vendor has fixed these problems without changing the version number. If you
8634are sure this is the case, you can disable the check by running 8816are sure this is the case, you can disable the check by running
8635\"./configure --without-zlib-version-check\". 8817\"./configure --without-zlib-version-check\".
8636If you are in doubt, upgrade zlib to version 1.2.1.2 or greater. 8818If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8637See http://www.gzip.org/zlib/ for details." >&2;} 8819See http://www.gzip.org/zlib/ for details." >&2;}
8638 { (exit 1); exit 1; }; } 8820 { (exit 1); exit 1; }; }
8639 else 8821 else
@@ -9095,9 +9277,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
9095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9096 ( 9278 (
9097 cat <<\_ASBOX 9279 cat <<\_ASBOX
9098## ---------------------------------- ## 9280## ------------------------------------------- ##
9099## Report this to the OpenSSH lists. ## 9281## Report this to openssh-unix-dev@mindrot.org ##
9100## ---------------------------------- ## 9282## ------------------------------------------- ##
9101_ASBOX 9283_ASBOX
9102 ) | 9284 ) |
9103 sed "s/^/$as_me: WARNING: /" >&2 9285 sed "s/^/$as_me: WARNING: /" >&2
@@ -9997,6 +10179,59 @@ echo "$as_me: error: libedit not found" >&2;}
9997 { (exit 1); exit 1; }; } 10179 { (exit 1); exit 1; }; }
9998fi 10180fi
9999 10181
10182 echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
10183echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
10190
10191#include <histedit.h>
10192int main(void)
10193{
10194 int i = H_SETSIZE;
10195 el_init("", NULL, NULL, NULL);
10196 exit(0);
10197}
10198
10199_ACEOF
10200rm -f conftest.$ac_objext
10201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 echo "$as_me:$LINENO: result: yes" >&5
10222echo "${ECHO_T}yes" >&6
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 echo "$as_me:$LINENO: result: no" >&5
10228echo "${ECHO_T}no" >&6
10229 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
10230echo "$as_me: error: libedit version is not compatible" >&2;}
10231 { (exit 1); exit 1; }; }
10232
10233fi
10234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 fi 10235 fi
10001 10236
10002fi; 10237fi;
@@ -10135,9 +10370,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
10135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 ( 10371 (
10137 cat <<\_ASBOX 10372 cat <<\_ASBOX
10138## ---------------------------------- ## 10373## ------------------------------------------- ##
10139## Report this to the OpenSSH lists. ## 10374## Report this to openssh-unix-dev@mindrot.org ##
10140## ---------------------------------- ## 10375## ------------------------------------------- ##
10141_ASBOX 10376_ASBOX
10142 ) | 10377 ) |
10143 sed "s/^/$as_me: WARNING: /" >&2 10378 sed "s/^/$as_me: WARNING: /" >&2
@@ -10467,6 +10702,10 @@ cat >>confdefs.h <<\_ACEOF
10467_ACEOF 10702_ACEOF
10468 10703
10469 ;; 10704 ;;
10705 no)
10706 echo "$as_me:$LINENO: result: no" >&5
10707echo "${ECHO_T}no" >&6
10708 ;;
10470 *) 10709 *)
10471 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 10710 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
10472echo "$as_me: error: Unknown audit module $withval" >&2;} 10711echo "$as_me: error: Unknown audit module $withval" >&2;}
@@ -10554,19 +10793,89 @@ fi;
10554 10793
10555 10794
10556 10795
10796
10797
10557for ac_func in \ 10798for ac_func in \
10558 arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \ 10799 arc4random \
10559 bindresvport_sa clock closefrom dirfd fchdir fchmod fchown \ 10800 b64_ntop \
10560 freeaddrinfo futimes getaddrinfo getcwd getgrouplist getnameinfo \ 10801 __b64_ntop \
10561 getopt getpeereid _getpty getrlimit getttyent glob inet_aton \ 10802 b64_pton \
10562 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ 10803 __b64_pton \
10563 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ 10804 bcopy \
10564 pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ 10805 bindresvport_sa \
10565 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ 10806 clock \
10566 setproctitle setregid setreuid setrlimit \ 10807 closefrom \
10567 setsid setvbuf sigaction sigvec snprintf socketpair strerror \ 10808 dirfd \
10568 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ 10809 fchmod \
10569 truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ 10810 fchown \
10811 freeaddrinfo \
10812 futimes \
10813 getaddrinfo \
10814 getcwd \
10815 getgrouplist \
10816 getnameinfo \
10817 getopt \
10818 getpeereid \
10819 _getpty \
10820 getrlimit \
10821 getttyent \
10822 glob \
10823 inet_aton \
10824 inet_ntoa \
10825 inet_ntop \
10826 innetgr \
10827 login_getcapbool \
10828 md5_crypt \
10829 memmove \
10830 mkdtemp \
10831 mmap \
10832 ngetaddrinfo \
10833 nsleep \
10834 ogetaddrinfo \
10835 openlog_r \
10836 openpty \
10837 prctl \
10838 pstat \
10839 readpassphrase \
10840 realpath \
10841 recvmsg \
10842 rresvport_af \
10843 sendmsg \
10844 setdtablesize \
10845 setegid \
10846 setenv \
10847 seteuid \
10848 setgroups \
10849 setlogin \
10850 setpcred \
10851 setproctitle \
10852 setregid \
10853 setreuid \
10854 setrlimit \
10855 setsid \
10856 setvbuf \
10857 sigaction \
10858 sigvec \
10859 snprintf \
10860 socketpair \
10861 strdup \
10862 strerror \
10863 strlcat \
10864 strlcpy \
10865 strmode \
10866 strnvis \
10867 strtonum \
10868 strtoll \
10869 strtoul \
10870 sysconf \
10871 tcgetpgrp \
10872 truncate \
10873 unsetenv \
10874 updwtmpx \
10875 utimes \
10876 vhangup \
10877 vsnprintf \
10878 waitpid \
10570 10879
10571do 10880do
10572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -10959,9 +11268,9 @@ _ACEOF
10959fi 11268fi
10960 11269
10961 11270
10962echo "$as_me:$LINENO: checking whether strsep is declared" >&5 11271echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
10963echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 11272echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
10964if test "${ac_cv_have_decl_strsep+set}" = set; then 11273if test "${ac_cv_have_decl_getrusage+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6 11274 echo $ECHO_N "(cached) $ECHO_C" >&6
10966else 11275else
10967 cat >conftest.$ac_ext <<_ACEOF 11276 cat >conftest.$ac_ext <<_ACEOF
@@ -10974,8 +11283,8 @@ $ac_includes_default
10974int 11283int
10975main () 11284main ()
10976{ 11285{
10977#ifndef strsep 11286#ifndef getrusage
10978 char *p = (char *) strsep; 11287 char *p = (char *) getrusage;
10979#endif 11288#endif
10980 11289
10981 ; 11290 ;
@@ -11003,20 +11312,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 ac_status=$? 11312 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then 11314 (exit $ac_status); }; }; then
11006 ac_cv_have_decl_strsep=yes 11315 ac_cv_have_decl_getrusage=yes
11007else 11316else
11008 echo "$as_me: failed program was:" >&5 11317 echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5 11318sed 's/^/| /' conftest.$ac_ext >&5
11010 11319
11011ac_cv_have_decl_strsep=no 11320ac_cv_have_decl_getrusage=no
11012fi 11321fi
11013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014fi 11323fi
11015echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 11324echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
11016echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 11325echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
11017if test $ac_cv_have_decl_strsep = yes; then 11326if test $ac_cv_have_decl_getrusage = yes; then
11018 11327
11019for ac_func in strsep 11328for ac_func in getrusage
11020do 11329do
11021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11022echo "$as_me:$LINENO: checking for $ac_func" >&5 11331echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -11118,9 +11427,9 @@ done
11118 11427
11119fi 11428fi
11120 11429
11121echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 11430echo "$as_me:$LINENO: checking whether strsep is declared" >&5
11122echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 11431echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
11123if test "${ac_cv_have_decl_getrusage+set}" = set; then 11432if test "${ac_cv_have_decl_strsep+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6 11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else 11434else
11126 cat >conftest.$ac_ext <<_ACEOF 11435 cat >conftest.$ac_ext <<_ACEOF
@@ -11129,12 +11438,17 @@ _ACEOF
11129cat confdefs.h >>conftest.$ac_ext 11438cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF 11439cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */ 11440/* end confdefs.h. */
11132$ac_includes_default 11441
11442#ifdef HAVE_STRING_H
11443# include <string.h>
11444#endif
11445
11446
11133int 11447int
11134main () 11448main ()
11135{ 11449{
11136#ifndef getrusage 11450#ifndef strsep
11137 char *p = (char *) getrusage; 11451 char *p = (char *) strsep;
11138#endif 11452#endif
11139 11453
11140 ; 11454 ;
@@ -11162,20 +11476,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 ac_status=$? 11476 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then 11478 (exit $ac_status); }; }; then
11165 ac_cv_have_decl_getrusage=yes 11479 ac_cv_have_decl_strsep=yes
11166else 11480else
11167 echo "$as_me: failed program was:" >&5 11481 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5 11482sed 's/^/| /' conftest.$ac_ext >&5
11169 11483
11170ac_cv_have_decl_getrusage=no 11484ac_cv_have_decl_strsep=no
11171fi 11485fi
11172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11173fi 11487fi
11174echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 11488echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
11175echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 11489echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
11176if test $ac_cv_have_decl_getrusage = yes; then 11490if test $ac_cv_have_decl_strsep = yes; then
11177 11491
11178for ac_func in getrusage 11492for ac_func in strsep
11179do 11493do
11180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181echo "$as_me:$LINENO: checking for $ac_func" >&5 11495echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -14222,6 +14536,79 @@ fi
14222fi 14536fi
14223 14537
14224 14538
14539echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
14540echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6
14541if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543else
14544 ac_check_lib_save_LIBS=$LIBS
14545LIBS="-liaf $LIBS"
14546cat >conftest.$ac_ext <<_ACEOF
14547/* confdefs.h. */
14548_ACEOF
14549cat confdefs.h >>conftest.$ac_ext
14550cat >>conftest.$ac_ext <<_ACEOF
14551/* end confdefs.h. */
14552
14553/* Override any gcc2 internal prototype to avoid an error. */
14554#ifdef __cplusplus
14555extern "C"
14556#endif
14557/* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14559char ia_openinfo ();
14560int
14561main ()
14562{
14563ia_openinfo ();
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568rm -f conftest.$ac_objext conftest$ac_exeext
14569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570 (eval $ac_link) 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_cv_lib_iaf_ia_openinfo=yes
14590else
14591 echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594ac_cv_lib_iaf_ia_openinfo=no
14595fi
14596rm -f conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598LIBS=$ac_check_lib_save_LIBS
14599fi
14600echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
14601echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6
14602if test $ac_cv_lib_iaf_ia_openinfo = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604#define HAVE_LIBIAF 1
14605_ACEOF
14606
14607 LIBS="-liaf $LIBS"
14608
14609fi
14610
14611
14225### Configure cryptographic random number support 14612### Configure cryptographic random number support
14226 14613
14227# Check wheter OpenSSL seeds itself 14614# Check wheter OpenSSL seeds itself
@@ -21018,9 +21405,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
21018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21019 ( 21406 (
21020 cat <<\_ASBOX 21407 cat <<\_ASBOX
21021## ---------------------------------- ## 21408## ------------------------------------------- ##
21022## Report this to the OpenSSH lists. ## 21409## Report this to openssh-unix-dev@mindrot.org ##
21023## ---------------------------------- ## 21410## ------------------------------------------- ##
21024_ASBOX 21411_ASBOX
21025 ) | 21412 ) |
21026 sed "s/^/$as_me: WARNING: /" >&2 21413 sed "s/^/$as_me: WARNING: /" >&2
@@ -21799,6 +22186,150 @@ _ACEOF
21799fi 22186fi
21800done 22187done
21801 22188
22189 echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
22190echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6
22191if test "${ac_cv_have_decl__getshort+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193else
22194 cat >conftest.$ac_ext <<_ACEOF
22195/* confdefs.h. */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h. */
22200#include <sys/types.h>
22201 #include <arpa/nameser.h>
22202
22203int
22204main ()
22205{
22206#ifndef _getshort
22207 char *p = (char *) _getshort;
22208#endif
22209
22210 ;
22211 return 0;
22212}
22213_ACEOF
22214rm -f conftest.$ac_objext
22215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22216 (eval $ac_compile) 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } &&
22223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; } &&
22229 { ac_try='test -s conftest.$ac_objext'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 ac_cv_have_decl__getshort=yes
22236else
22237 echo "$as_me: failed program was:" >&5
22238sed 's/^/| /' conftest.$ac_ext >&5
22239
22240ac_cv_have_decl__getshort=no
22241fi
22242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22243fi
22244echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
22245echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6
22246if test $ac_cv_have_decl__getshort = yes; then
22247
22248cat >>confdefs.h <<_ACEOF
22249#define HAVE_DECL__GETSHORT 1
22250_ACEOF
22251
22252
22253else
22254 cat >>confdefs.h <<_ACEOF
22255#define HAVE_DECL__GETSHORT 0
22256_ACEOF
22257
22258
22259fi
22260echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
22261echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6
22262if test "${ac_cv_have_decl__getlong+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264else
22265 cat >conftest.$ac_ext <<_ACEOF
22266/* confdefs.h. */
22267_ACEOF
22268cat confdefs.h >>conftest.$ac_ext
22269cat >>conftest.$ac_ext <<_ACEOF
22270/* end confdefs.h. */
22271#include <sys/types.h>
22272 #include <arpa/nameser.h>
22273
22274int
22275main ()
22276{
22277#ifndef _getlong
22278 char *p = (char *) _getlong;
22279#endif
22280
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext
22286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287 (eval $ac_compile) 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
22294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest.$ac_objext'
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 ac_cv_have_decl__getlong=yes
22307else
22308 echo "$as_me: failed program was:" >&5
22309sed 's/^/| /' conftest.$ac_ext >&5
22310
22311ac_cv_have_decl__getlong=no
22312fi
22313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22314fi
22315echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
22316echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6
22317if test $ac_cv_have_decl__getlong = yes; then
22318
22319cat >>confdefs.h <<_ACEOF
22320#define HAVE_DECL__GETLONG 1
22321_ACEOF
22322
22323
22324else
22325 cat >>confdefs.h <<_ACEOF
22326#define HAVE_DECL__GETLONG 0
22327_ACEOF
22328
22329
22330fi
22331
22332
21802 echo "$as_me:$LINENO: checking for HEADER.ad" >&5 22333 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
21803echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 22334echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
21804if test "${ac_cv_member_HEADER_ad+set}" = set; then 22335if test "${ac_cv_member_HEADER_ad+set}" = set; then
@@ -22045,9 +22576,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
22045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22046 ( 22577 (
22047 cat <<\_ASBOX 22578 cat <<\_ASBOX
22048## ---------------------------------- ## 22579## ------------------------------------------- ##
22049## Report this to the OpenSSH lists. ## 22580## Report this to openssh-unix-dev@mindrot.org ##
22050## ---------------------------------- ## 22581## ------------------------------------------- ##
22051_ASBOX 22582_ASBOX
22052 ) | 22583 ) |
22053 sed "s/^/$as_me: WARNING: /" >&2 22584 sed "s/^/$as_me: WARNING: /" >&2
@@ -22695,9 +23226,9 @@ echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;
22695echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} 23226echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
22696 ( 23227 (
22697 cat <<\_ASBOX 23228 cat <<\_ASBOX
22698## ---------------------------------- ## 23229## ------------------------------------------- ##
22699## Report this to the OpenSSH lists. ## 23230## Report this to openssh-unix-dev@mindrot.org ##
22700## ---------------------------------- ## 23231## ------------------------------------------- ##
22701_ASBOX 23232_ASBOX
22702 ) | 23233 ) |
22703 sed "s/^/$as_me: WARNING: /" >&2 23234 sed "s/^/$as_me: WARNING: /" >&2
@@ -22840,9 +23371,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
22840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22841 ( 23372 (
22842 cat <<\_ASBOX 23373 cat <<\_ASBOX
22843## ---------------------------------- ## 23374## ------------------------------------------- ##
22844## Report this to the OpenSSH lists. ## 23375## Report this to openssh-unix-dev@mindrot.org ##
22845## ---------------------------------- ## 23376## ------------------------------------------- ##
22846_ASBOX 23377_ASBOX
22847 ) | 23378 ) |
22848 sed "s/^/$as_me: WARNING: /" >&2 23379 sed "s/^/$as_me: WARNING: /" >&2
@@ -22997,9 +23528,9 @@ echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result"
22997echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} 23528echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
22998 ( 23529 (
22999 cat <<\_ASBOX 23530 cat <<\_ASBOX
23000## ---------------------------------- ## 23531## ------------------------------------------- ##
23001## Report this to the OpenSSH lists. ## 23532## Report this to openssh-unix-dev@mindrot.org ##
23002## ---------------------------------- ## 23533## ------------------------------------------- ##
23003_ASBOX 23534_ASBOX
23004 ) | 23535 ) |
23005 sed "s/^/$as_me: WARNING: /" >&2 23536 sed "s/^/$as_me: WARNING: /" >&2
@@ -23155,9 +23686,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
23155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23156 ( 23687 (
23157 cat <<\_ASBOX 23688 cat <<\_ASBOX
23158## ---------------------------------- ## 23689## ------------------------------------------- ##
23159## Report this to the OpenSSH lists. ## 23690## Report this to openssh-unix-dev@mindrot.org ##
23160## ---------------------------------- ## 23691## ------------------------------------------- ##
23161_ASBOX 23692_ASBOX
23162 ) | 23693 ) |
23163 sed "s/^/$as_me: WARNING: /" >&2 23694 sed "s/^/$as_me: WARNING: /" >&2
@@ -23305,9 +23836,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
23305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23306 ( 23837 (
23307 cat <<\_ASBOX 23838 cat <<\_ASBOX
23308## ---------------------------------- ## 23839## ------------------------------------------- ##
23309## Report this to the OpenSSH lists. ## 23840## Report this to openssh-unix-dev@mindrot.org ##
23310## ---------------------------------- ## 23841## ------------------------------------------- ##
23311_ASBOX 23842_ASBOX
23312 ) | 23843 ) |
23313 sed "s/^/$as_me: WARNING: /" >&2 23844 sed "s/^/$as_me: WARNING: /" >&2
@@ -23455,9 +23986,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
23455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23456 ( 23987 (
23457 cat <<\_ASBOX 23988 cat <<\_ASBOX
23458## ---------------------------------- ## 23989## ------------------------------------------- ##
23459## Report this to the OpenSSH lists. ## 23990## Report this to openssh-unix-dev@mindrot.org ##
23460## ---------------------------------- ## 23991## ------------------------------------------- ##
23461_ASBOX 23992_ASBOX
23462 ) | 23993 ) |
23463 sed "s/^/$as_me: WARNING: /" >&2 23994 sed "s/^/$as_me: WARNING: /" >&2
@@ -23612,133 +24143,6 @@ _ACEOF
23612 24143
23613fi 24144fi
23614 24145
23615 echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5
23616echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6
23617if test "${ac_cv_search_krb5_init_ets+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23619else
23620 ac_func_search_save_LIBS=$LIBS
23621ac_cv_search_krb5_init_ets=no
23622cat >conftest.$ac_ext <<_ACEOF
23623/* confdefs.h. */
23624_ACEOF
23625cat confdefs.h >>conftest.$ac_ext
23626cat >>conftest.$ac_ext <<_ACEOF
23627/* end confdefs.h. */
23628
23629/* Override any gcc2 internal prototype to avoid an error. */
23630#ifdef __cplusplus
23631extern "C"
23632#endif
23633/* We use char because int might match the return type of a gcc2
23634 builtin and then its argument prototype would still apply. */
23635char krb5_init_ets ();
23636int
23637main ()
23638{
23639krb5_init_ets ();
23640 ;
23641 return 0;
23642}
23643_ACEOF
23644rm -f conftest.$ac_objext conftest$ac_exeext
23645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23646 (eval $ac_link) 2>conftest.er1
23647 ac_status=$?
23648 grep -v '^ *+' conftest.er1 >conftest.err
23649 rm -f conftest.er1
23650 cat conftest.err >&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } &&
23653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); }; } &&
23659 { ac_try='test -s conftest$ac_exeext'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; }; then
23665 ac_cv_search_krb5_init_ets="none required"
23666else
23667 echo "$as_me: failed program was:" >&5
23668sed 's/^/| /' conftest.$ac_ext >&5
23669
23670fi
23671rm -f conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext conftest.$ac_ext
23673if test "$ac_cv_search_krb5_init_ets" = no; then
23674 for ac_lib in $K5LIBS; do
23675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23676 cat >conftest.$ac_ext <<_ACEOF
23677/* confdefs.h. */
23678_ACEOF
23679cat confdefs.h >>conftest.$ac_ext
23680cat >>conftest.$ac_ext <<_ACEOF
23681/* end confdefs.h. */
23682
23683/* Override any gcc2 internal prototype to avoid an error. */
23684#ifdef __cplusplus
23685extern "C"
23686#endif
23687/* We use char because int might match the return type of a gcc2
23688 builtin and then its argument prototype would still apply. */
23689char krb5_init_ets ();
23690int
23691main ()
23692{
23693krb5_init_ets ();
23694 ;
23695 return 0;
23696}
23697_ACEOF
23698rm -f conftest.$ac_objext conftest$ac_exeext
23699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } &&
23707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; } &&
23713 { ac_try='test -s conftest$ac_exeext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23719 ac_cv_search_krb5_init_ets="-l$ac_lib"
23720break
23721else
23722 echo "$as_me: failed program was:" >&5
23723sed 's/^/| /' conftest.$ac_ext >&5
23724
23725fi
23726rm -f conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
23728 done
23729fi
23730LIBS=$ac_func_search_save_LIBS
23731fi
23732echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5
23733echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6
23734if test "$ac_cv_search_krb5_init_ets" != no; then
23735 test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS"
23736 cat >>confdefs.h <<\_ACEOF
23737#define KRB5_INIT_ETS 1
23738_ACEOF
23739
23740fi
23741
23742 24146
23743 24147
23744fi; 24148fi;
@@ -25020,6 +25424,8 @@ if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
25020 LIBS=`echo $LIBS | sed 's/-ldl //'` 25424 LIBS=`echo $LIBS | sed 's/-ldl //'`
25021fi 25425fi
25022 25426
25427CFLAGS="$CFLAGS $werror_flags"
25428
25023 25429
25024 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" 25430 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh"
25025 25431