diff options
Diffstat (limited to 'other/openssh-2.1.1p4/configure')
| -rwxr-xr-x | other/openssh-2.1.1p4/configure | 6694 |
1 files changed, 6694 insertions, 0 deletions
diff --git a/other/openssh-2.1.1p4/configure b/other/openssh-2.1.1p4/configure new file mode 100755 index 0000000..4382488 --- /dev/null +++ b/other/openssh-2.1.1p4/configure | |||
| @@ -0,0 +1,6694 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | # Guess values for system-dependent variables and create Makefiles. | ||
| 4 | # Generated automatically using autoconf version 2.13 | ||
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | ||
| 6 | # | ||
| 7 | # This configure script is free software; the Free Software Foundation | ||
| 8 | # gives unlimited permission to copy, distribute and modify it. | ||
| 9 | |||
| 10 | # Defaults: | ||
| 11 | ac_help= | ||
| 12 | ac_default_prefix=/usr/local | ||
| 13 | # Any additions from configure.in: | ||
| 14 | ac_help="$ac_help | ||
| 15 | --with-cflags Specify additional flags to pass to compiler" | ||
| 16 | ac_help="$ac_help | ||
| 17 | --with-ldlags Specify additional flags to pass to linker" | ||
| 18 | ac_help="$ac_help | ||
| 19 | --with-libs Specify additional libraries to link with" | ||
| 20 | ac_help="$ac_help | ||
| 21 | --without-pam Disable PAM support " | ||
| 22 | ac_help="$ac_help | ||
| 23 | --with-ssl-dir=PATH Specify path to OpenSSL installation " | ||
| 24 | ac_help="$ac_help | ||
| 25 | --with-rsh=PATH Specify path to remote shell program " | ||
| 26 | ac_help="$ac_help | ||
| 27 | --with-xauth=PATH Specify path to xauth program " | ||
| 28 | ac_help="$ac_help | ||
| 29 | --with-random=FILE read randomness from FILE (default=/dev/urandom)" | ||
| 30 | ac_help="$ac_help | ||
| 31 | --with-egd-pool=FILE read randomness from EGD pool FILE (default none)" | ||
| 32 | ac_help="$ac_help | ||
| 33 | --with-catman=man|cat Install preformatted manpages[no]" | ||
| 34 | ac_help="$ac_help | ||
| 35 | --with-kerberos4=PATH Enable Kerberos 4 support" | ||
| 36 | ac_help="$ac_help | ||
| 37 | --with-afs=PATH Enable AFS support" | ||
| 38 | ac_help="$ac_help | ||
| 39 | --with-skey Enable S/Key support" | ||
| 40 | ac_help="$ac_help | ||
| 41 | --with-tcp-wrappers Enable tcpwrappers support" | ||
| 42 | ac_help="$ac_help | ||
| 43 | --with-md5-passwords Enable use of MD5 passwords" | ||
| 44 | ac_help="$ac_help | ||
| 45 | --without-shadow Disable shadow password support" | ||
| 46 | ac_help="$ac_help | ||
| 47 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY" | ||
| 48 | ac_help="$ac_help | ||
| 49 | --with-default-path=PATH Specify default \$PATH environment for server" | ||
| 50 | ac_help="$ac_help | ||
| 51 | --with-ipv4-default Use IPv4 by connections unless '-6' specified" | ||
| 52 | ac_help="$ac_help | ||
| 53 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses" | ||
| 54 | ac_help="$ac_help | ||
| 55 | --with-pid-dir=PATH Specify location of ssh.pid file" | ||
| 56 | ac_help="$ac_help | ||
| 57 | --disable-lastlog disable use of lastlog even if detected [no]" | ||
| 58 | ac_help="$ac_help | ||
| 59 | --disable-utmp disable use of utmp even if detected [no]" | ||
| 60 | ac_help="$ac_help | ||
| 61 | --disable-utmpx disable use of utmpx even if detected [no]" | ||
| 62 | ac_help="$ac_help | ||
| 63 | --disable-wtmp disable use of wtmp even if detected [no]" | ||
| 64 | ac_help="$ac_help | ||
| 65 | --disable-wtmpx disable use of wtmpx even if detected [no]" | ||
| 66 | ac_help="$ac_help | ||
| 67 | --disable-libutil disable use of libutil (login() etc.) [no]" | ||
| 68 | ac_help="$ac_help | ||
| 69 | --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]" | ||
| 70 | ac_help="$ac_help | ||
| 71 | --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]" | ||
| 72 | ac_help="$ac_help | ||
| 73 | --with-lastlog=FILE|DIR specify lastlog location [common locations]" | ||
| 74 | ac_help="$ac_help | ||
| 75 | --with-entropy-timeout Specify entropy gathering command timeout (msec)" | ||
| 76 | |||
| 77 | # Initialize some variables set by options. | ||
| 78 | # The variables have the same names as the options, with | ||
| 79 | # dashes changed to underlines. | ||
| 80 | build=NONE | ||
| 81 | cache_file=./config.cache | ||
| 82 | exec_prefix=NONE | ||
| 83 | host=NONE | ||
| 84 | no_create= | ||
| 85 | nonopt=NONE | ||
| 86 | no_recursion= | ||
| 87 | prefix=NONE | ||
| 88 | program_prefix=NONE | ||
| 89 | program_suffix=NONE | ||
| 90 | program_transform_name=s,x,x, | ||
| 91 | silent= | ||
| 92 | site= | ||
| 93 | srcdir= | ||
| 94 | target=NONE | ||
| 95 | verbose= | ||
| 96 | x_includes=NONE | ||
| 97 | x_libraries=NONE | ||
| 98 | bindir='${exec_prefix}/bin' | ||
| 99 | sbindir='${exec_prefix}/sbin' | ||
| 100 | libexecdir='${exec_prefix}/libexec' | ||
| 101 | datadir='${prefix}/share' | ||
| 102 | sysconfdir='${prefix}/etc' | ||
| 103 | sharedstatedir='${prefix}/com' | ||
| 104 | localstatedir='${prefix}/var' | ||
| 105 | libdir='${exec_prefix}/lib' | ||
| 106 | includedir='${prefix}/include' | ||
| 107 | oldincludedir='/usr/include' | ||
| 108 | infodir='${prefix}/info' | ||
| 109 | mandir='${prefix}/man' | ||
| 110 | |||
| 111 | # Initialize some other variables. | ||
| 112 | subdirs= | ||
| 113 | MFLAGS= MAKEFLAGS= | ||
| 114 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 115 | # Maximum number of lines to put in a shell here document. | ||
| 116 | ac_max_here_lines=12 | ||
| 117 | |||
| 118 | ac_prev= | ||
| 119 | for ac_option | ||
| 120 | do | ||
| 121 | |||
| 122 | # If the previous option needs an argument, assign it. | ||
| 123 | if test -n "$ac_prev"; then | ||
| 124 | eval "$ac_prev=\$ac_option" | ||
| 125 | ac_prev= | ||
| 126 | continue | ||
| 127 | fi | ||
| 128 | |||
| 129 | case "$ac_option" in | ||
| 130 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
| 131 | *) ac_optarg= ;; | ||
| 132 | esac | ||
| 133 | |||
| 134 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
| 135 | |||
| 136 | case "$ac_option" in | ||
| 137 | |||
| 138 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
| 139 | ac_prev=bindir ;; | ||
| 140 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
| 141 | bindir="$ac_optarg" ;; | ||
| 142 | |||
| 143 | -build | --build | --buil | --bui | --bu) | ||
| 144 | ac_prev=build ;; | ||
| 145 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
| 146 | build="$ac_optarg" ;; | ||
| 147 | |||
| 148 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
| 149 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
| 150 | ac_prev=cache_file ;; | ||
| 151 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
| 152 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
| 153 | cache_file="$ac_optarg" ;; | ||
| 154 | |||
| 155 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
| 156 | ac_prev=datadir ;; | ||
| 157 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
| 158 | | --da=*) | ||
| 159 | datadir="$ac_optarg" ;; | ||
| 160 | |||
| 161 | -disable-* | --disable-*) | ||
| 162 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | ||
| 163 | # Reject names that are not valid shell variable names. | ||
| 164 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
| 165 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
| 166 | fi | ||
| 167 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
| 168 | eval "enable_${ac_feature}=no" ;; | ||
| 169 | |||
| 170 | -enable-* | --enable-*) | ||
| 171 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | ||
| 172 | # Reject names that are not valid shell variable names. | ||
| 173 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
| 174 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
| 175 | fi | ||
| 176 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
| 177 | case "$ac_option" in | ||
| 178 | *=*) ;; | ||
| 179 | *) ac_optarg=yes ;; | ||
| 180 | esac | ||
| 181 | eval "enable_${ac_feature}='$ac_optarg'" ;; | ||
| 182 | |||
| 183 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
| 184 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
| 185 | | --exec | --exe | --ex) | ||
| 186 | ac_prev=exec_prefix ;; | ||
| 187 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
| 188 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
| 189 | | --exec=* | --exe=* | --ex=*) | ||
| 190 | exec_prefix="$ac_optarg" ;; | ||
| 191 | |||
| 192 | -gas | --gas | --ga | --g) | ||
| 193 | # Obsolete; use --with-gas. | ||
| 194 | with_gas=yes ;; | ||
| 195 | |||
| 196 | -help | --help | --hel | --he) | ||
| 197 | # Omit some internal or obsolete options to make the list less imposing. | ||
| 198 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
| 199 | cat << EOF | ||
| 200 | Usage: configure [options] [host] | ||
| 201 | Options: [defaults in brackets after descriptions] | ||
| 202 | Configuration: | ||
| 203 | --cache-file=FILE cache test results in FILE | ||
| 204 | --help print this message | ||
| 205 | --no-create do not create output files | ||
| 206 | --quiet, --silent do not print \`checking...' messages | ||
| 207 | --version print the version of autoconf that created configure | ||
| 208 | Directory and file names: | ||
| 209 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 210 | [$ac_default_prefix] | ||
| 211 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
| 212 | [same as prefix] | ||
| 213 | --bindir=DIR user executables in DIR [EPREFIX/bin] | ||
| 214 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | ||
| 215 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | ||
| 216 | --datadir=DIR read-only architecture-independent data in DIR | ||
| 217 | [PREFIX/share] | ||
| 218 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | ||
| 219 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | ||
| 220 | [PREFIX/com] | ||
| 221 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | ||
| 222 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | ||
| 223 | --includedir=DIR C header files in DIR [PREFIX/include] | ||
| 224 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | ||
| 225 | --infodir=DIR info documentation in DIR [PREFIX/info] | ||
| 226 | --mandir=DIR man documentation in DIR [PREFIX/man] | ||
| 227 | --srcdir=DIR find the sources in DIR [configure dir or ..] | ||
| 228 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
| 229 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
| 230 | --program-transform-name=PROGRAM | ||
| 231 | run sed PROGRAM on installed program names | ||
| 232 | EOF | ||
| 233 | cat << EOF | ||
| 234 | Host type: | ||
| 235 | --build=BUILD configure for building on BUILD [BUILD=HOST] | ||
| 236 | --host=HOST configure for HOST [guessed] | ||
| 237 | --target=TARGET configure for TARGET [TARGET=HOST] | ||
| 238 | Features and packages: | ||
| 239 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
| 240 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
| 241 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
| 242 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
| 243 | --x-includes=DIR X include files are in DIR | ||
| 244 | --x-libraries=DIR X library files are in DIR | ||
| 245 | EOF | ||
| 246 | if test -n "$ac_help"; then | ||
| 247 | echo "--enable and --with options recognized:$ac_help" | ||
| 248 | fi | ||
| 249 | exit 0 ;; | ||
| 250 | |||
| 251 | -host | --host | --hos | --ho) | ||
| 252 | ac_prev=host ;; | ||
| 253 | -host=* | --host=* | --hos=* | --ho=*) | ||
| 254 | host="$ac_optarg" ;; | ||
| 255 | |||
| 256 | -includedir | --includedir | --includedi | --included | --include \ | ||
| 257 | | --includ | --inclu | --incl | --inc) | ||
| 258 | ac_prev=includedir ;; | ||
| 259 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
| 260 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
| 261 | includedir="$ac_optarg" ;; | ||
| 262 | |||
| 263 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
| 264 | ac_prev=infodir ;; | ||
| 265 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
| 266 | infodir="$ac_optarg" ;; | ||
| 267 | |||
| 268 | -libdir | --libdir | --libdi | --libd) | ||
| 269 | ac_prev=libdir ;; | ||
| 270 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
| 271 | libdir="$ac_optarg" ;; | ||
| 272 | |||
| 273 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
| 274 | | --libexe | --libex | --libe) | ||
| 275 | ac_prev=libexecdir ;; | ||
| 276 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
| 277 | | --libexe=* | --libex=* | --libe=*) | ||
| 278 | libexecdir="$ac_optarg" ;; | ||
| 279 | |||
| 280 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
| 281 | | --localstate | --localstat | --localsta | --localst \ | ||
| 282 | | --locals | --local | --loca | --loc | --lo) | ||
| 283 | ac_prev=localstatedir ;; | ||
| 284 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
| 285 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
| 286 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
| 287 | localstatedir="$ac_optarg" ;; | ||
| 288 | |||
| 289 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
| 290 | ac_prev=mandir ;; | ||
| 291 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
| 292 | mandir="$ac_optarg" ;; | ||
| 293 | |||
| 294 | -nfp | --nfp | --nf) | ||
| 295 | # Obsolete; use --without-fp. | ||
| 296 | with_fp=no ;; | ||
| 297 | |||
| 298 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 299 | | --no-cr | --no-c) | ||
| 300 | no_create=yes ;; | ||
| 301 | |||
| 302 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 303 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
| 304 | no_recursion=yes ;; | ||
| 305 | |||
| 306 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
| 307 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
| 308 | | --oldin | --oldi | --old | --ol | --o) | ||
| 309 | ac_prev=oldincludedir ;; | ||
| 310 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
| 311 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
| 312 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
| 313 | oldincludedir="$ac_optarg" ;; | ||
| 314 | |||
| 315 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
| 316 | ac_prev=prefix ;; | ||
| 317 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
| 318 | prefix="$ac_optarg" ;; | ||
| 319 | |||
| 320 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
| 321 | | --program-pre | --program-pr | --program-p) | ||
| 322 | ac_prev=program_prefix ;; | ||
| 323 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
| 324 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
| 325 | program_prefix="$ac_optarg" ;; | ||
| 326 | |||
| 327 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
| 328 | | --program-suf | --program-su | --program-s) | ||
| 329 | ac_prev=program_suffix ;; | ||
| 330 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
| 331 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
| 332 | program_suffix="$ac_optarg" ;; | ||
| 333 | |||
| 334 | -program-transform-name | --program-transform-name \ | ||
| 335 | | --program-transform-nam | --program-transform-na \ | ||
| 336 | | --program-transform-n | --program-transform- \ | ||
| 337 | | --program-transform | --program-transfor \ | ||
| 338 | | --program-transfo | --program-transf \ | ||
| 339 | | --program-trans | --program-tran \ | ||
| 340 | | --progr-tra | --program-tr | --program-t) | ||
| 341 | ac_prev=program_transform_name ;; | ||
| 342 | -program-transform-name=* | --program-transform-name=* \ | ||
| 343 | | --program-transform-nam=* | --program-transform-na=* \ | ||
| 344 | | --program-transform-n=* | --program-transform-=* \ | ||
| 345 | | --program-transform=* | --program-transfor=* \ | ||
| 346 | | --program-transfo=* | --program-transf=* \ | ||
| 347 | | --program-trans=* | --program-tran=* \ | ||
| 348 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
| 349 | program_transform_name="$ac_optarg" ;; | ||
| 350 | |||
| 351 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 352 | | -silent | --silent | --silen | --sile | --sil) | ||
| 353 | silent=yes ;; | ||
| 354 | |||
| 355 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
| 356 | ac_prev=sbindir ;; | ||
| 357 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
| 358 | | --sbi=* | --sb=*) | ||
| 359 | sbindir="$ac_optarg" ;; | ||
| 360 | |||
| 361 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
| 362 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
| 363 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
| 364 | | --sha | --sh) | ||
| 365 | ac_prev=sharedstatedir ;; | ||
| 366 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
| 367 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
| 368 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
| 369 | | --sha=* | --sh=*) | ||
| 370 | sharedstatedir="$ac_optarg" ;; | ||
| 371 | |||
| 372 | -site | --site | --sit) | ||
| 373 | ac_prev=site ;; | ||
| 374 | -site=* | --site=* | --sit=*) | ||
| 375 | site="$ac_optarg" ;; | ||
| 376 | |||
| 377 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
| 378 | ac_prev=srcdir ;; | ||
| 379 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
| 380 | srcdir="$ac_optarg" ;; | ||
| 381 | |||
| 382 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
| 383 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
| 384 | ac_prev=sysconfdir ;; | ||
| 385 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
| 386 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
| 387 | sysconfdir="$ac_optarg" ;; | ||
| 388 | |||
| 389 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
| 390 | ac_prev=target ;; | ||
| 391 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
| 392 | target="$ac_optarg" ;; | ||
| 393 | |||
| 394 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
| 395 | verbose=yes ;; | ||
| 396 | |||
| 397 | -version | --version | --versio | --versi | --vers) | ||
| 398 | echo "configure generated by autoconf version 2.13" | ||
| 399 | exit 0 ;; | ||
| 400 | |||
| 401 | -with-* | --with-*) | ||
| 402 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | ||
| 403 | # Reject names that are not valid shell variable names. | ||
| 404 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
| 405 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
| 406 | fi | ||
| 407 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
| 408 | case "$ac_option" in | ||
| 409 | *=*) ;; | ||
| 410 | *) ac_optarg=yes ;; | ||
| 411 | esac | ||
| 412 | eval "with_${ac_package}='$ac_optarg'" ;; | ||
| 413 | |||
| 414 | -without-* | --without-*) | ||
| 415 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | ||
| 416 | # Reject names that are not valid shell variable names. | ||
| 417 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
| 418 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
| 419 | fi | ||
| 420 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
| 421 | eval "with_${ac_package}=no" ;; | ||
| 422 | |||
| 423 | --x) | ||
| 424 | # Obsolete; use --with-x. | ||
| 425 | with_x=yes ;; | ||
| 426 | |||
| 427 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
| 428 | | --x-incl | --x-inc | --x-in | --x-i) | ||
| 429 | ac_prev=x_includes ;; | ||
| 430 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
| 431 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
| 432 | x_includes="$ac_optarg" ;; | ||
| 433 | |||
| 434 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
| 435 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
| 436 | ac_prev=x_libraries ;; | ||
| 437 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
| 438 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
| 439 | x_libraries="$ac_optarg" ;; | ||
| 440 | |||
| 441 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | ||
| 442 | ;; | ||
| 443 | |||
| 444 | *) | ||
| 445 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | ||
| 446 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | ||
| 447 | fi | ||
| 448 | if test "x$nonopt" != xNONE; then | ||
| 449 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | ||
| 450 | fi | ||
| 451 | nonopt="$ac_option" | ||
| 452 | ;; | ||
| 453 | |||
| 454 | esac | ||
| 455 | done | ||
| 456 | |||
| 457 | if test -n "$ac_prev"; then | ||
| 458 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | ||
| 459 | fi | ||
| 460 | |||
| 461 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
| 462 | |||
| 463 | # File descriptor usage: | ||
| 464 | # 0 standard input | ||
| 465 | # 1 file creation | ||
| 466 | # 2 errors and warnings | ||
| 467 | # 3 some systems may open it to /dev/tty | ||
| 468 | # 4 used on the Kubota Titan | ||
| 469 | # 6 checking for... messages and results | ||
| 470 | # 5 compiler messages saved in config.log | ||
| 471 | if test "$silent" = yes; then | ||
| 472 | exec 6>/dev/null | ||
| 473 | else | ||
| 474 | exec 6>&1 | ||
| 475 | fi | ||
| 476 | exec 5>./config.log | ||
| 477 | |||
| 478 | echo "\ | ||
| 479 | This file contains any messages produced by compilers while | ||
| 480 | running configure, to aid debugging if configure makes a mistake. | ||
| 481 | " 1>&5 | ||
| 482 | |||
| 483 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
| 484 | # Also quote any args containing shell metacharacters. | ||
| 485 | ac_configure_args= | ||
| 486 | for ac_arg | ||
| 487 | do | ||
| 488 | case "$ac_arg" in | ||
| 489 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 490 | | --no-cr | --no-c) ;; | ||
| 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
| 493 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | ||
| 494 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
| 495 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | ||
| 496 | esac | ||
| 497 | done | ||
| 498 | |||
| 499 | # NLS nuisances. | ||
| 500 | # Only set these to C if already set. These must not be set unconditionally | ||
| 501 | # because not all systems understand e.g. LANG=C (notably SCO). | ||
| 502 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | ||
| 503 | # Non-C LC_CTYPE values break the ctype check. | ||
| 504 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | ||
| 505 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | ||
| 506 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | ||
| 507 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | ||
| 508 | |||
| 509 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 510 | rm -rf conftest* confdefs.h | ||
| 511 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
| 512 | echo > confdefs.h | ||
| 513 | |||
| 514 | # A filename unique to this package, relative to the directory that | ||
| 515 | # configure is in, which we can look for to find out if srcdir is correct. | ||
| 516 | ac_unique_file=ssh.c | ||
| 517 | |||
| 518 | # Find the source files, if location was not specified. | ||
| 519 | if test -z "$srcdir"; then | ||
| 520 | ac_srcdir_defaulted=yes | ||
| 521 | # Try the directory containing this script, then its parent. | ||
| 522 | ac_prog=$0 | ||
| 523 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | ||
| 524 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
| 525 | srcdir=$ac_confdir | ||
| 526 | if test ! -r $srcdir/$ac_unique_file; then | ||
| 527 | srcdir=.. | ||
| 528 | fi | ||
| 529 | else | ||
| 530 | ac_srcdir_defaulted=no | ||
| 531 | fi | ||
| 532 | if test ! -r $srcdir/$ac_unique_file; then | ||
| 533 | if test "$ac_srcdir_defaulted" = yes; then | ||
| 534 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | ||
| 535 | else | ||
| 536 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | ||
| 537 | fi | ||
| 538 | fi | ||
| 539 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | ||
| 540 | |||
| 541 | # Prefer explicitly selected file to automatically selected ones. | ||
| 542 | if test -z "$CONFIG_SITE"; then | ||
| 543 | if test "x$prefix" != xNONE; then | ||
| 544 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
| 545 | else | ||
| 546 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
| 547 | fi | ||
| 548 | fi | ||
| 549 | for ac_site_file in $CONFIG_SITE; do | ||
| 550 | if test -r "$ac_site_file"; then | ||
| 551 | echo "loading site script $ac_site_file" | ||
| 552 | . "$ac_site_file" | ||
| 553 | fi | ||
| 554 | done | ||
| 555 | |||
| 556 | if test -r "$cache_file"; then | ||
| 557 | echo "loading cache $cache_file" | ||
| 558 | . $cache_file | ||
| 559 | else | ||
| 560 | echo "creating cache $cache_file" | ||
| 561 | > $cache_file | ||
| 562 | fi | ||
| 563 | |||
| 564 | ac_ext=c | ||
| 565 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 566 | ac_cpp='$CPP $CPPFLAGS' | ||
| 567 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 568 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 569 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 570 | |||
| 571 | ac_exeext= | ||
| 572 | ac_objext=o | ||
| 573 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | ||
| 574 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | ||
| 575 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | ||
| 576 | ac_n= ac_c=' | ||
| 577 | ' ac_t=' ' | ||
| 578 | else | ||
| 579 | ac_n=-n ac_c= ac_t= | ||
| 580 | fi | ||
| 581 | else | ||
| 582 | ac_n= ac_c='\c' ac_t= | ||
| 583 | fi | ||
| 584 | |||
| 585 | |||
| 586 | |||
| 587 | |||
| 588 | # Extract the first word of "gcc", so it can be a program name with args. | ||
| 589 | set dummy gcc; ac_word=$2 | ||
| 590 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 591 | echo "configure:592: checking for $ac_word" >&5 | ||
| 592 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
| 593 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 594 | else | ||
| 595 | if test -n "$CC"; then | ||
| 596 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 597 | else | ||
| 598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 599 | ac_dummy="$PATH" | ||
| 600 | for ac_dir in $ac_dummy; do | ||
| 601 | test -z "$ac_dir" && ac_dir=. | ||
| 602 | if test -f $ac_dir/$ac_word; then | ||
| 603 | ac_cv_prog_CC="gcc" | ||
| 604 | break | ||
| 605 | fi | ||
| 606 | done | ||
| 607 | IFS="$ac_save_ifs" | ||
| 608 | fi | ||
| 609 | fi | ||
| 610 | CC="$ac_cv_prog_CC" | ||
| 611 | if test -n "$CC"; then | ||
| 612 | echo "$ac_t""$CC" 1>&6 | ||
| 613 | else | ||
| 614 | echo "$ac_t""no" 1>&6 | ||
| 615 | fi | ||
| 616 | |||
| 617 | if test -z "$CC"; then | ||
| 618 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 619 | set dummy cc; ac_word=$2 | ||
| 620 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 621 | echo "configure:622: checking for $ac_word" >&5 | ||
| 622 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
| 623 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 624 | else | ||
| 625 | if test -n "$CC"; then | ||
| 626 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 627 | else | ||
| 628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 629 | ac_prog_rejected=no | ||
| 630 | ac_dummy="$PATH" | ||
| 631 | for ac_dir in $ac_dummy; do | ||
| 632 | test -z "$ac_dir" && ac_dir=. | ||
| 633 | if test -f $ac_dir/$ac_word; then | ||
| 634 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
| 635 | ac_prog_rejected=yes | ||
| 636 | continue | ||
| 637 | fi | ||
| 638 | ac_cv_prog_CC="cc" | ||
| 639 | break | ||
| 640 | fi | ||
| 641 | done | ||
| 642 | IFS="$ac_save_ifs" | ||
| 643 | if test $ac_prog_rejected = yes; then | ||
| 644 | # We found a bogon in the path, so make sure we never use it. | ||
| 645 | set dummy $ac_cv_prog_CC | ||
| 646 | shift | ||
| 647 | if test $# -gt 0; then | ||
| 648 | # We chose a different compiler from the bogus one. | ||
| 649 | # However, it has the same basename, so the bogon will be chosen | ||
| 650 | # first if we set CC to just the basename; use the full file name. | ||
| 651 | shift | ||
| 652 | set dummy "$ac_dir/$ac_word" "$@" | ||
| 653 | shift | ||
| 654 | ac_cv_prog_CC="$@" | ||
| 655 | fi | ||
| 656 | fi | ||
| 657 | fi | ||
| 658 | fi | ||
| 659 | CC="$ac_cv_prog_CC" | ||
| 660 | if test -n "$CC"; then | ||
| 661 | echo "$ac_t""$CC" 1>&6 | ||
| 662 | else | ||
| 663 | echo "$ac_t""no" 1>&6 | ||
| 664 | fi | ||
| 665 | |||
| 666 | if test -z "$CC"; then | ||
| 667 | case "`uname -s`" in | ||
| 668 | *win32* | *WIN32*) | ||
| 669 | # Extract the first word of "cl", so it can be a program name with args. | ||
| 670 | set dummy cl; ac_word=$2 | ||
| 671 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 672 | echo "configure:673: checking for $ac_word" >&5 | ||
| 673 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
| 674 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 675 | else | ||
| 676 | if test -n "$CC"; then | ||
| 677 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 678 | else | ||
| 679 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 680 | ac_dummy="$PATH" | ||
| 681 | for ac_dir in $ac_dummy; do | ||
| 682 | test -z "$ac_dir" && ac_dir=. | ||
| 683 | if test -f $ac_dir/$ac_word; then | ||
| 684 | ac_cv_prog_CC="cl" | ||
| 685 | break | ||
| 686 | fi | ||
| 687 | done | ||
| 688 | IFS="$ac_save_ifs" | ||
| 689 | fi | ||
| 690 | fi | ||
| 691 | CC="$ac_cv_prog_CC" | ||
| 692 | if test -n "$CC"; then | ||
| 693 | echo "$ac_t""$CC" 1>&6 | ||
| 694 | else | ||
| 695 | echo "$ac_t""no" 1>&6 | ||
| 696 | fi | ||
| 697 | ;; | ||
| 698 | esac | ||
| 699 | fi | ||
| 700 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | ||
| 701 | fi | ||
| 702 | |||
| 703 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | ||
| 704 | echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | ||
| 705 | |||
| 706 | ac_ext=c | ||
| 707 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 708 | ac_cpp='$CPP $CPPFLAGS' | ||
| 709 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 710 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 711 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 712 | |||
| 713 | cat > conftest.$ac_ext << EOF | ||
| 714 | |||
| 715 | #line 716 "configure" | ||
| 716 | #include "confdefs.h" | ||
| 717 | |||
| 718 | main(){return(0);} | ||
| 719 | EOF | ||
| 720 | if { (eval echo configure:721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 721 | ac_cv_prog_cc_works=yes | ||
| 722 | # If we can't run a trivial program, we are probably using a cross compiler. | ||
| 723 | if (./conftest; exit) 2>/dev/null; then | ||
| 724 | ac_cv_prog_cc_cross=no | ||
| 725 | else | ||
| 726 | ac_cv_prog_cc_cross=yes | ||
| 727 | fi | ||
| 728 | else | ||
| 729 | echo "configure: failed program was:" >&5 | ||
| 730 | cat conftest.$ac_ext >&5 | ||
| 731 | ac_cv_prog_cc_works=no | ||
| 732 | fi | ||
| 733 | rm -fr conftest* | ||
| 734 | ac_ext=c | ||
| 735 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 736 | ac_cpp='$CPP $CPPFLAGS' | ||
| 737 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 738 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 739 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 740 | |||
| 741 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | ||
| 742 | if test $ac_cv_prog_cc_works = no; then | ||
| 743 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | ||
| 744 | fi | ||
| 745 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
| 746 | echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | ||
| 747 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | ||
| 748 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 749 | |||
| 750 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | ||
| 751 | echo "configure:752: checking whether we are using GNU C" >&5 | ||
| 752 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | ||
| 753 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 754 | else | ||
| 755 | cat > conftest.c <<EOF | ||
| 756 | #ifdef __GNUC__ | ||
| 757 | yes; | ||
| 758 | #endif | ||
| 759 | EOF | ||
| 760 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | ||
| 761 | ac_cv_prog_gcc=yes | ||
| 762 | else | ||
| 763 | ac_cv_prog_gcc=no | ||
| 764 | fi | ||
| 765 | fi | ||
| 766 | |||
| 767 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | ||
| 768 | |||
| 769 | if test $ac_cv_prog_gcc = yes; then | ||
| 770 | GCC=yes | ||
| 771 | else | ||
| 772 | GCC= | ||
| 773 | fi | ||
| 774 | |||
| 775 | ac_test_CFLAGS="${CFLAGS+set}" | ||
| 776 | ac_save_CFLAGS="$CFLAGS" | ||
| 777 | CFLAGS= | ||
| 778 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | ||
| 779 | echo "configure:780: checking whether ${CC-cc} accepts -g" >&5 | ||
| 780 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | ||
| 781 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 782 | else | ||
| 783 | echo 'void f(){}' > conftest.c | ||
| 784 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | ||
| 785 | ac_cv_prog_cc_g=yes | ||
| 786 | else | ||
| 787 | ac_cv_prog_cc_g=no | ||
| 788 | fi | ||
| 789 | rm -f conftest* | ||
| 790 | |||
| 791 | fi | ||
| 792 | |||
| 793 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | ||
| 794 | if test "$ac_test_CFLAGS" = set; then | ||
| 795 | CFLAGS="$ac_save_CFLAGS" | ||
| 796 | elif test $ac_cv_prog_cc_g = yes; then | ||
| 797 | if test "$GCC" = yes; then | ||
| 798 | CFLAGS="-g -O2" | ||
| 799 | else | ||
| 800 | CFLAGS="-g" | ||
| 801 | fi | ||
| 802 | else | ||
| 803 | if test "$GCC" = yes; then | ||
| 804 | CFLAGS="-O2" | ||
| 805 | else | ||
| 806 | CFLAGS= | ||
| 807 | fi | ||
| 808 | fi | ||
| 809 | |||
| 810 | ac_aux_dir= | ||
| 811 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
| 812 | if test -f $ac_dir/install-sh; then | ||
| 813 | ac_aux_dir=$ac_dir | ||
| 814 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
| 815 | break | ||
| 816 | elif test -f $ac_dir/install.sh; then | ||
| 817 | ac_aux_dir=$ac_dir | ||
| 818 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
| 819 | break | ||
| 820 | fi | ||
| 821 | done | ||
| 822 | if test -z "$ac_aux_dir"; then | ||
| 823 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | ||
| 824 | fi | ||
| 825 | ac_config_guess=$ac_aux_dir/config.guess | ||
| 826 | ac_config_sub=$ac_aux_dir/config.sub | ||
| 827 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | ||
| 828 | |||
| 829 | |||
| 830 | # Make sure we can run config.sub. | ||
| 831 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | ||
| 832 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | ||
| 833 | fi | ||
| 834 | |||
| 835 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | ||
| 836 | echo "configure:837: checking host system type" >&5 | ||
| 837 | |||
| 838 | host_alias=$host | ||
| 839 | case "$host_alias" in | ||
| 840 | NONE) | ||
| 841 | case $nonopt in | ||
| 842 | NONE) | ||
| 843 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | ||
| 844 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | ||
| 845 | fi ;; | ||
| 846 | *) host_alias=$nonopt ;; | ||
| 847 | esac ;; | ||
| 848 | esac | ||
| 849 | |||
| 850 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | ||
| 851 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 852 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 853 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 854 | echo "$ac_t""$host" 1>&6 | ||
| 855 | |||
| 856 | |||
| 857 | # Checks for programs. | ||
| 858 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | ||
| 859 | echo "configure:860: checking how to run the C preprocessor" >&5 | ||
| 860 | # On Suns, sometimes $CPP names a directory. | ||
| 861 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 862 | CPP= | ||
| 863 | fi | ||
| 864 | if test -z "$CPP"; then | ||
| 865 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | ||
| 866 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 867 | else | ||
| 868 | # This must be in double quotes, not single quotes, because CPP may get | ||
| 869 | # substituted into the Makefile and "${CC-cc}" will confuse make. | ||
| 870 | CPP="${CC-cc} -E" | ||
| 871 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 872 | # not just through cpp. | ||
| 873 | cat > conftest.$ac_ext <<EOF | ||
| 874 | #line 875 "configure" | ||
| 875 | #include "confdefs.h" | ||
| 876 | #include <assert.h> | ||
| 877 | Syntax Error | ||
| 878 | EOF | ||
| 879 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 880 | { (eval echo configure:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 881 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 882 | if test -z "$ac_err"; then | ||
| 883 | : | ||
| 884 | else | ||
| 885 | echo "$ac_err" >&5 | ||
| 886 | echo "configure: failed program was:" >&5 | ||
| 887 | cat conftest.$ac_ext >&5 | ||
| 888 | rm -rf conftest* | ||
| 889 | CPP="${CC-cc} -E -traditional-cpp" | ||
| 890 | cat > conftest.$ac_ext <<EOF | ||
| 891 | #line 892 "configure" | ||
| 892 | #include "confdefs.h" | ||
| 893 | #include <assert.h> | ||
| 894 | Syntax Error | ||
| 895 | EOF | ||
| 896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 897 | { (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 899 | if test -z "$ac_err"; then | ||
| 900 | : | ||
| 901 | else | ||
| 902 | echo "$ac_err" >&5 | ||
| 903 | echo "configure: failed program was:" >&5 | ||
| 904 | cat conftest.$ac_ext >&5 | ||
| 905 | rm -rf conftest* | ||
| 906 | CPP="${CC-cc} -nologo -E" | ||
| 907 | cat > conftest.$ac_ext <<EOF | ||
| 908 | #line 909 "configure" | ||
| 909 | #include "confdefs.h" | ||
| 910 | #include <assert.h> | ||
| 911 | Syntax Error | ||
| 912 | EOF | ||
| 913 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 914 | { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 915 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 916 | if test -z "$ac_err"; then | ||
| 917 | : | ||
| 918 | else | ||
| 919 | echo "$ac_err" >&5 | ||
| 920 | echo "configure: failed program was:" >&5 | ||
| 921 | cat conftest.$ac_ext >&5 | ||
| 922 | rm -rf conftest* | ||
| 923 | CPP=/lib/cpp | ||
| 924 | fi | ||
| 925 | rm -f conftest* | ||
| 926 | fi | ||
| 927 | rm -f conftest* | ||
| 928 | fi | ||
| 929 | rm -f conftest* | ||
| 930 | ac_cv_prog_CPP="$CPP" | ||
| 931 | fi | ||
| 932 | CPP="$ac_cv_prog_CPP" | ||
| 933 | else | ||
| 934 | ac_cv_prog_CPP="$CPP" | ||
| 935 | fi | ||
| 936 | echo "$ac_t""$CPP" 1>&6 | ||
| 937 | |||
| 938 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
| 939 | set dummy ranlib; ac_word=$2 | ||
| 940 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 941 | echo "configure:942: checking for $ac_word" >&5 | ||
| 942 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | ||
| 943 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 944 | else | ||
| 945 | if test -n "$RANLIB"; then | ||
| 946 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
| 947 | else | ||
| 948 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 949 | ac_dummy="$PATH" | ||
| 950 | for ac_dir in $ac_dummy; do | ||
| 951 | test -z "$ac_dir" && ac_dir=. | ||
| 952 | if test -f $ac_dir/$ac_word; then | ||
| 953 | ac_cv_prog_RANLIB="ranlib" | ||
| 954 | break | ||
| 955 | fi | ||
| 956 | done | ||
| 957 | IFS="$ac_save_ifs" | ||
| 958 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | ||
| 959 | fi | ||
| 960 | fi | ||
| 961 | RANLIB="$ac_cv_prog_RANLIB" | ||
| 962 | if test -n "$RANLIB"; then | ||
| 963 | echo "$ac_t""$RANLIB" 1>&6 | ||
| 964 | else | ||
| 965 | echo "$ac_t""no" 1>&6 | ||
| 966 | fi | ||
| 967 | |||
| 968 | # Find a good install program. We prefer a C program (faster), | ||
| 969 | # so one script is as good as another. But avoid the broken or | ||
| 970 | # incompatible versions: | ||
| 971 | # SysV /etc/install, /usr/sbin/install | ||
| 972 | # SunOS /usr/etc/install | ||
| 973 | # IRIX /sbin/install | ||
| 974 | # AIX /bin/install | ||
| 975 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
| 976 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
| 977 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
| 978 | # ./install, which can be erroneously created by make from ./install.sh. | ||
| 979 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | ||
| 980 | echo "configure:981: checking for a BSD compatible install" >&5 | ||
| 981 | if test -z "$INSTALL"; then | ||
| 982 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | ||
| 983 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 984 | else | ||
| 985 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | ||
| 986 | for ac_dir in $PATH; do | ||
| 987 | # Account for people who put trailing slashes in PATH elements. | ||
| 988 | case "$ac_dir/" in | ||
| 989 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | ||
| 990 | *) | ||
| 991 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
| 992 | # Don't use installbsd from OSF since it installs stuff as root | ||
| 993 | # by default. | ||
| 994 | for ac_prog in ginstall scoinst install; do | ||
| 995 | if test -f $ac_dir/$ac_prog; then | ||
| 996 | if test $ac_prog = install && | ||
| 997 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | ||
| 998 | # AIX install. It has an incompatible calling convention. | ||
| 999 | : | ||
| 1000 | else | ||
| 1001 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
| 1002 | break 2 | ||
| 1003 | fi | ||
| 1004 | fi | ||
| 1005 | done | ||
| 1006 | ;; | ||
| 1007 | esac | ||
| 1008 | done | ||
| 1009 | IFS="$ac_save_IFS" | ||
| 1010 | |||
| 1011 | fi | ||
| 1012 | if test "${ac_cv_path_install+set}" = set; then | ||
| 1013 | INSTALL="$ac_cv_path_install" | ||
| 1014 | else | ||
| 1015 | # As a last resort, use the slow shell script. We don't cache a | ||
| 1016 | # path for INSTALL within a source directory, because that will | ||
| 1017 | # break other packages using the cache if that directory is | ||
| 1018 | # removed, or if the path is relative. | ||
| 1019 | INSTALL="$ac_install_sh" | ||
| 1020 | fi | ||
| 1021 | fi | ||
| 1022 | echo "$ac_t""$INSTALL" 1>&6 | ||
| 1023 | |||
| 1024 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
| 1025 | # It thinks the first close brace ends the variable substitution. | ||
| 1026 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
| 1027 | |||
| 1028 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | ||
| 1029 | |||
| 1030 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
| 1031 | |||
| 1032 | # Extract the first word of "ar", so it can be a program name with args. | ||
| 1033 | set dummy ar; ac_word=$2 | ||
| 1034 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1035 | echo "configure:1036: checking for $ac_word" >&5 | ||
| 1036 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | ||
| 1037 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1038 | else | ||
| 1039 | if test -n "$AR"; then | ||
| 1040 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
| 1041 | else | ||
| 1042 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1043 | ac_dummy="$PATH" | ||
| 1044 | for ac_dir in $ac_dummy; do | ||
| 1045 | test -z "$ac_dir" && ac_dir=. | ||
| 1046 | if test -f $ac_dir/$ac_word; then | ||
| 1047 | ac_cv_prog_AR="ar" | ||
| 1048 | break | ||
| 1049 | fi | ||
| 1050 | done | ||
| 1051 | IFS="$ac_save_ifs" | ||
| 1052 | fi | ||
| 1053 | fi | ||
| 1054 | AR="$ac_cv_prog_AR" | ||
| 1055 | if test -n "$AR"; then | ||
| 1056 | echo "$ac_t""$AR" 1>&6 | ||
| 1057 | else | ||
| 1058 | echo "$ac_t""no" 1>&6 | ||
| 1059 | fi | ||
| 1060 | |||
| 1061 | # Extract the first word of "perl", so it can be a program name with args. | ||
| 1062 | set dummy perl; ac_word=$2 | ||
| 1063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1064 | echo "configure:1065: checking for $ac_word" >&5 | ||
| 1065 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then | ||
| 1066 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1067 | else | ||
| 1068 | case "$PERL" in | ||
| 1069 | /*) | ||
| 1070 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
| 1071 | ;; | ||
| 1072 | ?:/*) | ||
| 1073 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | ||
| 1074 | ;; | ||
| 1075 | *) | ||
| 1076 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1077 | ac_dummy="$PATH" | ||
| 1078 | for ac_dir in $ac_dummy; do | ||
| 1079 | test -z "$ac_dir" && ac_dir=. | ||
| 1080 | if test -f $ac_dir/$ac_word; then | ||
| 1081 | ac_cv_path_PERL="$ac_dir/$ac_word" | ||
| 1082 | break | ||
| 1083 | fi | ||
| 1084 | done | ||
| 1085 | IFS="$ac_save_ifs" | ||
| 1086 | ;; | ||
| 1087 | esac | ||
| 1088 | fi | ||
| 1089 | PERL="$ac_cv_path_PERL" | ||
| 1090 | if test -n "$PERL"; then | ||
| 1091 | echo "$ac_t""$PERL" 1>&6 | ||
| 1092 | else | ||
| 1093 | echo "$ac_t""no" 1>&6 | ||
| 1094 | fi | ||
| 1095 | |||
| 1096 | |||
| 1097 | # Extract the first word of "ent", so it can be a program name with args. | ||
| 1098 | set dummy ent; ac_word=$2 | ||
| 1099 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1100 | echo "configure:1101: checking for $ac_word" >&5 | ||
| 1101 | if eval "test \"`echo '$''{'ac_cv_path_ENT'+set}'`\" = set"; then | ||
| 1102 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1103 | else | ||
| 1104 | case "$ENT" in | ||
| 1105 | /*) | ||
| 1106 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
| 1107 | ;; | ||
| 1108 | ?:/*) | ||
| 1109 | ac_cv_path_ENT="$ENT" # Let the user override the test with a dos path. | ||
| 1110 | ;; | ||
| 1111 | *) | ||
| 1112 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1113 | ac_dummy="$PATH" | ||
| 1114 | for ac_dir in $ac_dummy; do | ||
| 1115 | test -z "$ac_dir" && ac_dir=. | ||
| 1116 | if test -f $ac_dir/$ac_word; then | ||
| 1117 | ac_cv_path_ENT="$ac_dir/$ac_word" | ||
| 1118 | break | ||
| 1119 | fi | ||
| 1120 | done | ||
| 1121 | IFS="$ac_save_ifs" | ||
| 1122 | ;; | ||
| 1123 | esac | ||
| 1124 | fi | ||
| 1125 | ENT="$ac_cv_path_ENT" | ||
| 1126 | if test -n "$ENT"; then | ||
| 1127 | echo "$ac_t""$ENT" 1>&6 | ||
| 1128 | else | ||
| 1129 | echo "$ac_t""no" 1>&6 | ||
| 1130 | fi | ||
| 1131 | |||
| 1132 | |||
| 1133 | |||
| 1134 | if test -z "$LD" ; then | ||
| 1135 | LD=$CC | ||
| 1136 | fi | ||
| 1137 | |||
| 1138 | |||
| 1139 | # C Compiler features | ||
| 1140 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | ||
| 1141 | echo "configure:1142: checking for inline" >&5 | ||
| 1142 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | ||
| 1143 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1144 | else | ||
| 1145 | ac_cv_c_inline=no | ||
| 1146 | for ac_kw in inline __inline__ __inline; do | ||
| 1147 | cat > conftest.$ac_ext <<EOF | ||
| 1148 | #line 1149 "configure" | ||
| 1149 | #include "confdefs.h" | ||
| 1150 | |||
| 1151 | int main() { | ||
| 1152 | } $ac_kw foo() { | ||
| 1153 | ; return 0; } | ||
| 1154 | EOF | ||
| 1155 | if { (eval echo configure:1156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 1156 | rm -rf conftest* | ||
| 1157 | ac_cv_c_inline=$ac_kw; break | ||
| 1158 | else | ||
| 1159 | echo "configure: failed program was:" >&5 | ||
| 1160 | cat conftest.$ac_ext >&5 | ||
| 1161 | fi | ||
| 1162 | rm -f conftest* | ||
| 1163 | done | ||
| 1164 | |||
| 1165 | fi | ||
| 1166 | |||
| 1167 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | ||
| 1168 | case "$ac_cv_c_inline" in | ||
| 1169 | inline | yes) ;; | ||
| 1170 | no) cat >> confdefs.h <<\EOF | ||
| 1171 | #define inline | ||
| 1172 | EOF | ||
| 1173 | ;; | ||
| 1174 | *) cat >> confdefs.h <<EOF | ||
| 1175 | #define inline $ac_cv_c_inline | ||
| 1176 | EOF | ||
| 1177 | ;; | ||
| 1178 | esac | ||
| 1179 | |||
| 1180 | if test "$GCC" = "yes"; then | ||
| 1181 | CFLAGS="$CFLAGS -Wall" | ||
| 1182 | fi | ||
| 1183 | |||
| 1184 | # Check for some target-specific stuff | ||
| 1185 | case "$host" in | ||
| 1186 | *-*-aix*) | ||
| 1187 | AFS_LIBS="-lld" | ||
| 1188 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1189 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1190 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | ||
| 1191 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
| 1192 | fi | ||
| 1193 | echo $ac_n "checking for authenticate""... $ac_c" 1>&6 | ||
| 1194 | echo "configure:1195: checking for authenticate" >&5 | ||
| 1195 | if eval "test \"`echo '$''{'ac_cv_func_authenticate'+set}'`\" = set"; then | ||
| 1196 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1197 | else | ||
| 1198 | cat > conftest.$ac_ext <<EOF | ||
| 1199 | #line 1200 "configure" | ||
| 1200 | #include "confdefs.h" | ||
| 1201 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1202 | which can conflict with char authenticate(); below. */ | ||
| 1203 | #include <assert.h> | ||
| 1204 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1205 | /* We use char because int might match the return type of a gcc2 | ||
| 1206 | builtin and then its argument prototype would still apply. */ | ||
| 1207 | char authenticate(); | ||
| 1208 | |||
| 1209 | int main() { | ||
| 1210 | |||
| 1211 | /* The GNU C library defines this for functions which it implements | ||
| 1212 | to always fail with ENOSYS. Some functions are actually named | ||
| 1213 | something starting with __ and the normal name is an alias. */ | ||
| 1214 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
| 1215 | choke me | ||
| 1216 | #else | ||
| 1217 | authenticate(); | ||
| 1218 | #endif | ||
| 1219 | |||
| 1220 | ; return 0; } | ||
| 1221 | EOF | ||
| 1222 | if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1223 | rm -rf conftest* | ||
| 1224 | eval "ac_cv_func_authenticate=yes" | ||
| 1225 | else | ||
| 1226 | echo "configure: failed program was:" >&5 | ||
| 1227 | cat conftest.$ac_ext >&5 | ||
| 1228 | rm -rf conftest* | ||
| 1229 | eval "ac_cv_func_authenticate=no" | ||
| 1230 | fi | ||
| 1231 | rm -f conftest* | ||
| 1232 | fi | ||
| 1233 | |||
| 1234 | if eval "test \"`echo '$ac_cv_func_'authenticate`\" = yes"; then | ||
| 1235 | echo "$ac_t""yes" 1>&6 | ||
| 1236 | cat >> confdefs.h <<\EOF | ||
| 1237 | #define WITH_AIXAUTHENTICATE 1 | ||
| 1238 | EOF | ||
| 1239 | |||
| 1240 | else | ||
| 1241 | echo "$ac_t""no" 1>&6 | ||
| 1242 | fi | ||
| 1243 | |||
| 1244 | cat >> confdefs.h <<\EOF | ||
| 1245 | #define BROKEN_GETADDRINFO 1 | ||
| 1246 | EOF | ||
| 1247 | |||
| 1248 | MANTYPE='$(CATMAN)' | ||
| 1249 | mansubdir=cat | ||
| 1250 | cat >> confdefs.h <<\EOF | ||
| 1251 | #define DISABLE_LASTLOG 1 | ||
| 1252 | EOF | ||
| 1253 | |||
| 1254 | MANTYPE='$(CATMAN)' | ||
| 1255 | mansubdir=cat | ||
| 1256 | ;; | ||
| 1257 | *-*-hpux10*) | ||
| 1258 | if test -z "$GCC"; then | ||
| 1259 | CFLAGS="$CFLAGS -Ae" | ||
| 1260 | fi | ||
| 1261 | CFLAGS="$CFLAGS -D_HPUX_SOURCE" | ||
| 1262 | cat >> confdefs.h <<\EOF | ||
| 1263 | #define IPADDR_IN_DISPLAY 1 | ||
| 1264 | EOF | ||
| 1265 | |||
| 1266 | echo $ac_n "checking for HPUX trusted system password database""... $ac_c" 1>&6 | ||
| 1267 | echo "configure:1268: checking for HPUX trusted system password database" >&5 | ||
| 1268 | if test -f /tcb/files/auth/system/default; then | ||
| 1269 | echo "$ac_t""yes" 1>&6 | ||
| 1270 | cat >> confdefs.h <<\EOF | ||
| 1271 | #define HAVE_HPUX_TRUSTED_SYSTEM_PW 1 | ||
| 1272 | EOF | ||
| 1273 | |||
| 1274 | LIBS="$LIBS -lsec" | ||
| 1275 | echo "configure: warning: This configuration is untested" 1>&2 | ||
| 1276 | else | ||
| 1277 | echo "$ac_t""no" 1>&6 | ||
| 1278 | cat >> confdefs.h <<\EOF | ||
| 1279 | #define DISABLE_SHADOW 1 | ||
| 1280 | EOF | ||
| 1281 | |||
| 1282 | fi | ||
| 1283 | MANTYPE='$(CATMAN)' | ||
| 1284 | mansubdir=cat | ||
| 1285 | ;; | ||
| 1286 | *-*-hpux11*) | ||
| 1287 | if test -z "$GCC"; then | ||
| 1288 | CFLAGS="$CFLAGS -Ae" | ||
| 1289 | fi | ||
| 1290 | CFLAGS="$CFLAGS -D_HPUX_SOURCE" | ||
| 1291 | cat >> confdefs.h <<\EOF | ||
| 1292 | #define IPADDR_IN_DISPLAY 1 | ||
| 1293 | EOF | ||
| 1294 | |||
| 1295 | echo $ac_n "checking for HPUX trusted system password database""... $ac_c" 1>&6 | ||
| 1296 | echo "configure:1297: checking for HPUX trusted system password database" >&5 | ||
| 1297 | if test -f /tcb/files/auth/system/default; then | ||
| 1298 | echo "$ac_t""yes" 1>&6 | ||
| 1299 | cat >> confdefs.h <<\EOF | ||
| 1300 | #define HAVE_HPUX_TRUSTED_SYSTEM_PW 1 | ||
| 1301 | EOF | ||
| 1302 | |||
| 1303 | LIBS="$LIBS -lsec" | ||
| 1304 | echo "configure: warning: This configuration is untested" 1>&2 | ||
| 1305 | else | ||
| 1306 | echo "$ac_t""no" 1>&6 | ||
| 1307 | cat >> confdefs.h <<\EOF | ||
| 1308 | #define DISABLE_SHADOW 1 | ||
| 1309 | EOF | ||
| 1310 | |||
| 1311 | fi | ||
| 1312 | MANTYPE='$(CATMAN)' | ||
| 1313 | mansubdir=cat | ||
| 1314 | ;; | ||
| 1315 | *-*-irix5*) | ||
| 1316 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1317 | LDFLAGS="$LDFLAGS" | ||
| 1318 | MANTYPE='$(CATMAN)' | ||
| 1319 | no_libsocket=1 | ||
| 1320 | no_libnsl=1 | ||
| 1321 | ;; | ||
| 1322 | *-*-irix6*) | ||
| 1323 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1324 | LDFLAGS="$LDFLAGS" | ||
| 1325 | MANTYPE='$(CATMAN)' | ||
| 1326 | cat >> confdefs.h <<\EOF | ||
| 1327 | #define WITH_IRIX_ARRAY 1 | ||
| 1328 | EOF | ||
| 1329 | |||
| 1330 | cat >> confdefs.h <<\EOF | ||
| 1331 | #define WITH_IRIX_PROJECT 1 | ||
| 1332 | EOF | ||
| 1333 | |||
| 1334 | cat >> confdefs.h <<\EOF | ||
| 1335 | #define WITH_IRIX_AUDIT 1 | ||
| 1336 | EOF | ||
| 1337 | |||
| 1338 | no_libsocket=1 | ||
| 1339 | no_libnsl=1 | ||
| 1340 | ;; | ||
| 1341 | *-*-linux*) | ||
| 1342 | no_dev_ptmx=1 | ||
| 1343 | cat >> confdefs.h <<\EOF | ||
| 1344 | #define DONT_TRY_OTHER_AF 1 | ||
| 1345 | EOF | ||
| 1346 | |||
| 1347 | cat >> confdefs.h <<\EOF | ||
| 1348 | #define PAM_TTY_KLUDGE 1 | ||
| 1349 | EOF | ||
| 1350 | |||
| 1351 | inet6_default_4in6=yes | ||
| 1352 | ;; | ||
| 1353 | *-*-netbsd*) | ||
| 1354 | need_dash_r=1 | ||
| 1355 | ;; | ||
| 1356 | *-next-*) | ||
| 1357 | # hardwire lastlog location (can't detect it on some versions) | ||
| 1358 | conf_lastlog_location="/usr/adm/lastlog" | ||
| 1359 | conf_utmp_location=/etc/utmp | ||
| 1360 | cat >> confdefs.h <<\EOF | ||
| 1361 | #define HAVE_NEXT 1 | ||
| 1362 | EOF | ||
| 1363 | |||
| 1364 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1365 | MAIL=/usr/spool/mail | ||
| 1366 | echo "configure: warning: *** Tested: PA-RISC/m68k Untested: Sparc/Intel" 1>&2 | ||
| 1367 | echo "configure: warning: *** Expect 'scp' to fail!" 1>&2 | ||
| 1368 | echo "configure: warning: *** Please report any problems, thanks" 1>&2 | ||
| 1369 | ;; | ||
| 1370 | *-*-solaris*) | ||
| 1371 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1372 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib" | ||
| 1373 | need_dash_r=1 | ||
| 1374 | # hardwire lastlog location (can't detect it on some versions) | ||
| 1375 | conf_lastlog_location="/var/adm/lastlog" | ||
| 1376 | echo $ac_n "checking for obsolete utmp and wtmp in solaris2.x""... $ac_c" 1>&6 | ||
| 1377 | echo "configure:1378: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
| 1378 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
| 1379 | if test "$sol2ver" -ge 8; then | ||
| 1380 | echo "$ac_t""yes" 1>&6 | ||
| 1381 | cat >> confdefs.h <<\EOF | ||
| 1382 | #define DISABLE_UTMP 1 | ||
| 1383 | EOF | ||
| 1384 | |||
| 1385 | cat >> confdefs.h <<\EOF | ||
| 1386 | #define DISABLE_WTMP 1 | ||
| 1387 | EOF | ||
| 1388 | |||
| 1389 | else | ||
| 1390 | echo "$ac_t""no" 1>&6 | ||
| 1391 | fi | ||
| 1392 | ;; | ||
| 1393 | *-*-sunos4*) | ||
| 1394 | CFLAGS="$CFLAGS -DSUNOS4" | ||
| 1395 | for ac_func in getpwanam | ||
| 1396 | do | ||
| 1397 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1398 | echo "configure:1399: checking for $ac_func" >&5 | ||
| 1399 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1400 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1401 | else | ||
| 1402 | cat > conftest.$ac_ext <<EOF | ||
| 1403 | #line 1404 "configure" | ||
| 1404 | #include "confdefs.h" | ||
| 1405 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1406 | which can conflict with char $ac_func(); below. */ | ||
| 1407 | #include <assert.h> | ||
| 1408 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1409 | /* We use char because int might match the return type of a gcc2 | ||
| 1410 | builtin and then its argument prototype would still apply. */ | ||
| 1411 | char $ac_func(); | ||
| 1412 | |||
| 1413 | int main() { | ||
| 1414 | |||
| 1415 | /* The GNU C library defines this for functions which it implements | ||
| 1416 | to always fail with ENOSYS. Some functions are actually named | ||
| 1417 | something starting with __ and the normal name is an alias. */ | ||
| 1418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 1419 | choke me | ||
| 1420 | #else | ||
| 1421 | $ac_func(); | ||
| 1422 | #endif | ||
| 1423 | |||
| 1424 | ; return 0; } | ||
| 1425 | EOF | ||
| 1426 | if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1427 | rm -rf conftest* | ||
| 1428 | eval "ac_cv_func_$ac_func=yes" | ||
| 1429 | else | ||
| 1430 | echo "configure: failed program was:" >&5 | ||
| 1431 | cat conftest.$ac_ext >&5 | ||
| 1432 | rm -rf conftest* | ||
| 1433 | eval "ac_cv_func_$ac_func=no" | ||
| 1434 | fi | ||
| 1435 | rm -f conftest* | ||
| 1436 | fi | ||
| 1437 | |||
| 1438 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 1439 | echo "$ac_t""yes" 1>&6 | ||
| 1440 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 1441 | cat >> confdefs.h <<EOF | ||
| 1442 | #define $ac_tr_func 1 | ||
| 1443 | EOF | ||
| 1444 | |||
| 1445 | else | ||
| 1446 | echo "$ac_t""no" 1>&6 | ||
| 1447 | fi | ||
| 1448 | done | ||
| 1449 | |||
| 1450 | ;; | ||
| 1451 | *-sni-sysv*) | ||
| 1452 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1453 | LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib" | ||
| 1454 | MANTYPE='$(CATMAN)' | ||
| 1455 | cat >> confdefs.h <<\EOF | ||
| 1456 | #define IP_TOS_IS_BROKEN 1 | ||
| 1457 | EOF | ||
| 1458 | |||
| 1459 | mansubdir=cat | ||
| 1460 | LIBS="$LIBS -lgen -lnsl -lucb" | ||
| 1461 | ;; | ||
| 1462 | *-*-sysv*) | ||
| 1463 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1464 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1465 | MANTYPE='$(CATMAN)' | ||
| 1466 | mansubdir=cat | ||
| 1467 | LIBS="$LIBS -lgen -lsocket" | ||
| 1468 | ;; | ||
| 1469 | *-*-sco3*) | ||
| 1470 | CFLAGS="$CFLAGS -I/usr/local/include" | ||
| 1471 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1472 | MANTYPE='$(CATMAN)' | ||
| 1473 | mansubdir=cat | ||
| 1474 | LIBS="$LIBS -lgen -lsocket" | ||
| 1475 | no_dev_ptmx=1 | ||
| 1476 | ;; | ||
| 1477 | *-dec-osf*) | ||
| 1478 | # This is untested | ||
| 1479 | if test ! -z "USE_SIA" ; then | ||
| 1480 | echo $ac_n "checking for Digital Unix Security Integration Architecture""... $ac_c" 1>&6 | ||
| 1481 | echo "configure:1482: checking for Digital Unix Security Integration Architecture" >&5 | ||
| 1482 | if test -f /etc/sia/matrix.conf; then | ||
| 1483 | echo "$ac_t""yes" 1>&6 | ||
| 1484 | cat >> confdefs.h <<\EOF | ||
| 1485 | #define HAVE_OSF_SIA 1 | ||
| 1486 | EOF | ||
| 1487 | |||
| 1488 | cat >> confdefs.h <<\EOF | ||
| 1489 | #define DISABLE_LOGIN 1 | ||
| 1490 | EOF | ||
| 1491 | |||
| 1492 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
| 1493 | else | ||
| 1494 | echo "$ac_t""no" 1>&6 | ||
| 1495 | fi | ||
| 1496 | fi | ||
| 1497 | ;; | ||
| 1498 | esac | ||
| 1499 | |||
| 1500 | # Allow user to specify flags | ||
| 1501 | # Check whether --with-cflags or --without-cflags was given. | ||
| 1502 | if test "${with_cflags+set}" = set; then | ||
| 1503 | withval="$with_cflags" | ||
| 1504 | |||
| 1505 | if test "x$withval" != "xno" ; then | ||
| 1506 | CFLAGS="$CFLAGS $withval" | ||
| 1507 | fi | ||
| 1508 | |||
| 1509 | |||
| 1510 | fi | ||
| 1511 | |||
| 1512 | # Check whether --with-ldflags or --without-ldflags was given. | ||
| 1513 | if test "${with_ldflags+set}" = set; then | ||
| 1514 | withval="$with_ldflags" | ||
| 1515 | |||
| 1516 | if test "x$withval" != "xno" ; then | ||
| 1517 | LDFLAGS="$LDFLAGS $withval" | ||
| 1518 | fi | ||
| 1519 | |||
| 1520 | |||
| 1521 | fi | ||
| 1522 | |||
| 1523 | # Check whether --with-libs or --without-libs was given. | ||
| 1524 | if test "${with_libs+set}" = set; then | ||
| 1525 | withval="$with_libs" | ||
| 1526 | |||
| 1527 | if test "x$withval" != "xno" ; then | ||
| 1528 | LIBS="$LIBS $withval" | ||
| 1529 | fi | ||
| 1530 | |||
| 1531 | |||
| 1532 | fi | ||
| 1533 | |||
| 1534 | |||
| 1535 | |||
| 1536 | # Checks for libraries. | ||
| 1537 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | ||
| 1538 | echo "configure:1539: checking for deflate in -lz" >&5 | ||
| 1539 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | ||
| 1540 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1542 | else | ||
| 1543 | ac_save_LIBS="$LIBS" | ||
| 1544 | LIBS="-lz $LIBS" | ||
| 1545 | cat > conftest.$ac_ext <<EOF | ||
| 1546 | #line 1547 "configure" | ||
| 1547 | #include "confdefs.h" | ||
| 1548 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1549 | /* We use char because int might match the return type of a gcc2 | ||
| 1550 | builtin and then its argument prototype would still apply. */ | ||
| 1551 | char deflate(); | ||
| 1552 | |||
| 1553 | int main() { | ||
| 1554 | deflate() | ||
| 1555 | ; return 0; } | ||
| 1556 | EOF | ||
| 1557 | if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1558 | rm -rf conftest* | ||
| 1559 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 1560 | else | ||
| 1561 | echo "configure: failed program was:" >&5 | ||
| 1562 | cat conftest.$ac_ext >&5 | ||
| 1563 | rm -rf conftest* | ||
| 1564 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 1565 | fi | ||
| 1566 | rm -f conftest* | ||
| 1567 | LIBS="$ac_save_LIBS" | ||
| 1568 | |||
| 1569 | fi | ||
| 1570 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 1571 | echo "$ac_t""yes" 1>&6 | ||
| 1572 | ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 1573 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 1574 | cat >> confdefs.h <<EOF | ||
| 1575 | #define $ac_tr_lib 1 | ||
| 1576 | EOF | ||
| 1577 | |||
| 1578 | LIBS="-lz $LIBS" | ||
| 1579 | |||
| 1580 | else | ||
| 1581 | echo "$ac_t""no" 1>&6 | ||
| 1582 | { echo "configure: error: *** zlib missing - please install first ***" 1>&2; exit 1; } | ||
| 1583 | fi | ||
| 1584 | |||
| 1585 | echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6 | ||
| 1586 | echo "configure:1587: checking for login in -lutil" >&5 | ||
| 1587 | ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'` | ||
| 1588 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 1589 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1590 | else | ||
| 1591 | ac_save_LIBS="$LIBS" | ||
| 1592 | LIBS="-lutil $LIBS" | ||
| 1593 | cat > conftest.$ac_ext <<EOF | ||
| 1594 | #line 1595 "configure" | ||
| 1595 | #include "confdefs.h" | ||
| 1596 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1597 | /* We use char because int might match the return type of a gcc2 | ||
| 1598 | builtin and then its argument prototype would still apply. */ | ||
| 1599 | char login(); | ||
| 1600 | |||
| 1601 | int main() { | ||
| 1602 | login() | ||
| 1603 | ; return 0; } | ||
| 1604 | EOF | ||
| 1605 | if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1606 | rm -rf conftest* | ||
| 1607 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 1608 | else | ||
| 1609 | echo "configure: failed program was:" >&5 | ||
| 1610 | cat conftest.$ac_ext >&5 | ||
| 1611 | rm -rf conftest* | ||
| 1612 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 1613 | fi | ||
| 1614 | rm -f conftest* | ||
| 1615 | LIBS="$ac_save_LIBS" | ||
| 1616 | |||
| 1617 | fi | ||
| 1618 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 1619 | echo "$ac_t""yes" 1>&6 | ||
| 1620 | cat >> confdefs.h <<\EOF | ||
| 1621 | #define HAVE_LIBUTIL_LOGIN 1 | ||
| 1622 | EOF | ||
| 1623 | LIBS="$LIBS -lutil" | ||
| 1624 | else | ||
| 1625 | echo "$ac_t""no" 1>&6 | ||
| 1626 | fi | ||
| 1627 | |||
| 1628 | |||
| 1629 | if test -z "$no_libsocket" ; then | ||
| 1630 | echo $ac_n "checking for yp_match in -lnsl""... $ac_c" 1>&6 | ||
| 1631 | echo "configure:1632: checking for yp_match in -lnsl" >&5 | ||
| 1632 | ac_lib_var=`echo nsl'_'yp_match | sed 'y%./+-%__p_%'` | ||
| 1633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 1634 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1635 | else | ||
| 1636 | ac_save_LIBS="$LIBS" | ||
| 1637 | LIBS="-lnsl $LIBS" | ||
| 1638 | cat > conftest.$ac_ext <<EOF | ||
| 1639 | #line 1640 "configure" | ||
| 1640 | #include "confdefs.h" | ||
| 1641 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1642 | /* We use char because int might match the return type of a gcc2 | ||
| 1643 | builtin and then its argument prototype would still apply. */ | ||
| 1644 | char yp_match(); | ||
| 1645 | |||
| 1646 | int main() { | ||
| 1647 | yp_match() | ||
| 1648 | ; return 0; } | ||
| 1649 | EOF | ||
| 1650 | if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1651 | rm -rf conftest* | ||
| 1652 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 1653 | else | ||
| 1654 | echo "configure: failed program was:" >&5 | ||
| 1655 | cat conftest.$ac_ext >&5 | ||
| 1656 | rm -rf conftest* | ||
| 1657 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 1658 | fi | ||
| 1659 | rm -f conftest* | ||
| 1660 | LIBS="$ac_save_LIBS" | ||
| 1661 | |||
| 1662 | fi | ||
| 1663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 1664 | echo "$ac_t""yes" 1>&6 | ||
| 1665 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 1666 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 1667 | cat >> confdefs.h <<EOF | ||
| 1668 | #define $ac_tr_lib 1 | ||
| 1669 | EOF | ||
| 1670 | |||
| 1671 | LIBS="-lnsl $LIBS" | ||
| 1672 | |||
| 1673 | else | ||
| 1674 | echo "$ac_t""no" 1>&6 | ||
| 1675 | fi | ||
| 1676 | |||
| 1677 | fi | ||
| 1678 | if test -z "$no_libnsl" ; then | ||
| 1679 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 | ||
| 1680 | echo "configure:1681: checking for main in -lsocket" >&5 | ||
| 1681 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` | ||
| 1682 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 1683 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1684 | else | ||
| 1685 | ac_save_LIBS="$LIBS" | ||
| 1686 | LIBS="-lsocket $LIBS" | ||
| 1687 | cat > conftest.$ac_ext <<EOF | ||
| 1688 | #line 1689 "configure" | ||
| 1689 | #include "confdefs.h" | ||
| 1690 | |||
| 1691 | int main() { | ||
| 1692 | main() | ||
| 1693 | ; return 0; } | ||
| 1694 | EOF | ||
| 1695 | if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1696 | rm -rf conftest* | ||
| 1697 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 1698 | else | ||
| 1699 | echo "configure: failed program was:" >&5 | ||
| 1700 | cat conftest.$ac_ext >&5 | ||
| 1701 | rm -rf conftest* | ||
| 1702 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 1703 | fi | ||
| 1704 | rm -f conftest* | ||
| 1705 | LIBS="$ac_save_LIBS" | ||
| 1706 | |||
| 1707 | fi | ||
| 1708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 1709 | echo "$ac_t""yes" 1>&6 | ||
| 1710 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 1711 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 1712 | cat >> confdefs.h <<EOF | ||
| 1713 | #define $ac_tr_lib 1 | ||
| 1714 | EOF | ||
| 1715 | |||
| 1716 | LIBS="-lsocket $LIBS" | ||
| 1717 | |||
| 1718 | else | ||
| 1719 | echo "$ac_t""no" 1>&6 | ||
| 1720 | fi | ||
| 1721 | |||
| 1722 | fi | ||
| 1723 | |||
| 1724 | # Checks for header files. | ||
| 1725 | for ac_hdr in bstring.h endian.h floatingpoint.h lastlog.h limits.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h usersec.h util.h utmp.h utmpx.h | ||
| 1726 | do | ||
| 1727 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
| 1728 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
| 1729 | echo "configure:1730: checking for $ac_hdr" >&5 | ||
| 1730 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
| 1731 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1732 | else | ||
| 1733 | cat > conftest.$ac_ext <<EOF | ||
| 1734 | #line 1735 "configure" | ||
| 1735 | #include "confdefs.h" | ||
| 1736 | #include <$ac_hdr> | ||
| 1737 | EOF | ||
| 1738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 1739 | { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 1740 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 1741 | if test -z "$ac_err"; then | ||
| 1742 | rm -rf conftest* | ||
| 1743 | eval "ac_cv_header_$ac_safe=yes" | ||
| 1744 | else | ||
| 1745 | echo "$ac_err" >&5 | ||
| 1746 | echo "configure: failed program was:" >&5 | ||
| 1747 | cat conftest.$ac_ext >&5 | ||
| 1748 | rm -rf conftest* | ||
| 1749 | eval "ac_cv_header_$ac_safe=no" | ||
| 1750 | fi | ||
| 1751 | rm -f conftest* | ||
| 1752 | fi | ||
| 1753 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
| 1754 | echo "$ac_t""yes" 1>&6 | ||
| 1755 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
| 1756 | cat >> confdefs.h <<EOF | ||
| 1757 | #define $ac_tr_hdr 1 | ||
| 1758 | EOF | ||
| 1759 | |||
| 1760 | else | ||
| 1761 | echo "$ac_t""no" 1>&6 | ||
| 1762 | fi | ||
| 1763 | done | ||
| 1764 | |||
| 1765 | |||
| 1766 | # Checks for library functions. | ||
| 1767 | for ac_func in arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage inet_aton innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid sigaction sigvec snprintf strerror strlcat strlcpy strsep vsnprintf vhangup _getpty __b64_ntop | ||
| 1768 | do | ||
| 1769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1770 | echo "configure:1771: checking for $ac_func" >&5 | ||
| 1771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1772 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1773 | else | ||
| 1774 | cat > conftest.$ac_ext <<EOF | ||
| 1775 | #line 1776 "configure" | ||
| 1776 | #include "confdefs.h" | ||
| 1777 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1778 | which can conflict with char $ac_func(); below. */ | ||
| 1779 | #include <assert.h> | ||
| 1780 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1781 | /* We use char because int might match the return type of a gcc2 | ||
| 1782 | builtin and then its argument prototype would still apply. */ | ||
| 1783 | char $ac_func(); | ||
| 1784 | |||
| 1785 | int main() { | ||
| 1786 | |||
| 1787 | /* The GNU C library defines this for functions which it implements | ||
| 1788 | to always fail with ENOSYS. Some functions are actually named | ||
| 1789 | something starting with __ and the normal name is an alias. */ | ||
| 1790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 1791 | choke me | ||
| 1792 | #else | ||
| 1793 | $ac_func(); | ||
| 1794 | #endif | ||
| 1795 | |||
| 1796 | ; return 0; } | ||
| 1797 | EOF | ||
| 1798 | if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1799 | rm -rf conftest* | ||
| 1800 | eval "ac_cv_func_$ac_func=yes" | ||
| 1801 | else | ||
| 1802 | echo "configure: failed program was:" >&5 | ||
| 1803 | cat conftest.$ac_ext >&5 | ||
| 1804 | rm -rf conftest* | ||
| 1805 | eval "ac_cv_func_$ac_func=no" | ||
| 1806 | fi | ||
| 1807 | rm -f conftest* | ||
| 1808 | fi | ||
| 1809 | |||
| 1810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 1811 | echo "$ac_t""yes" 1>&6 | ||
| 1812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 1813 | cat >> confdefs.h <<EOF | ||
| 1814 | #define $ac_tr_func 1 | ||
| 1815 | EOF | ||
| 1816 | |||
| 1817 | else | ||
| 1818 | echo "$ac_t""no" 1>&6 | ||
| 1819 | fi | ||
| 1820 | done | ||
| 1821 | |||
| 1822 | for ac_func in gettimeofday time | ||
| 1823 | do | ||
| 1824 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1825 | echo "configure:1826: checking for $ac_func" >&5 | ||
| 1826 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1827 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1828 | else | ||
| 1829 | cat > conftest.$ac_ext <<EOF | ||
| 1830 | #line 1831 "configure" | ||
| 1831 | #include "confdefs.h" | ||
| 1832 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1833 | which can conflict with char $ac_func(); below. */ | ||
| 1834 | #include <assert.h> | ||
| 1835 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1836 | /* We use char because int might match the return type of a gcc2 | ||
| 1837 | builtin and then its argument prototype would still apply. */ | ||
| 1838 | char $ac_func(); | ||
| 1839 | |||
| 1840 | int main() { | ||
| 1841 | |||
| 1842 | /* The GNU C library defines this for functions which it implements | ||
| 1843 | to always fail with ENOSYS. Some functions are actually named | ||
| 1844 | something starting with __ and the normal name is an alias. */ | ||
| 1845 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 1846 | choke me | ||
| 1847 | #else | ||
| 1848 | $ac_func(); | ||
| 1849 | #endif | ||
| 1850 | |||
| 1851 | ; return 0; } | ||
| 1852 | EOF | ||
| 1853 | if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1854 | rm -rf conftest* | ||
| 1855 | eval "ac_cv_func_$ac_func=yes" | ||
| 1856 | else | ||
| 1857 | echo "configure: failed program was:" >&5 | ||
| 1858 | cat conftest.$ac_ext >&5 | ||
| 1859 | rm -rf conftest* | ||
| 1860 | eval "ac_cv_func_$ac_func=no" | ||
| 1861 | fi | ||
| 1862 | rm -f conftest* | ||
| 1863 | fi | ||
| 1864 | |||
| 1865 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 1866 | echo "$ac_t""yes" 1>&6 | ||
| 1867 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 1868 | cat >> confdefs.h <<EOF | ||
| 1869 | #define $ac_tr_func 1 | ||
| 1870 | EOF | ||
| 1871 | |||
| 1872 | else | ||
| 1873 | echo "$ac_t""no" 1>&6 | ||
| 1874 | fi | ||
| 1875 | done | ||
| 1876 | |||
| 1877 | for ac_func in login logout updwtmp logwtmp | ||
| 1878 | do | ||
| 1879 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1880 | echo "configure:1881: checking for $ac_func" >&5 | ||
| 1881 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1882 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1883 | else | ||
| 1884 | cat > conftest.$ac_ext <<EOF | ||
| 1885 | #line 1886 "configure" | ||
| 1886 | #include "confdefs.h" | ||
| 1887 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1888 | which can conflict with char $ac_func(); below. */ | ||
| 1889 | #include <assert.h> | ||
| 1890 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1891 | /* We use char because int might match the return type of a gcc2 | ||
| 1892 | builtin and then its argument prototype would still apply. */ | ||
| 1893 | char $ac_func(); | ||
| 1894 | |||
| 1895 | int main() { | ||
| 1896 | |||
| 1897 | /* The GNU C library defines this for functions which it implements | ||
| 1898 | to always fail with ENOSYS. Some functions are actually named | ||
| 1899 | something starting with __ and the normal name is an alias. */ | ||
| 1900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 1901 | choke me | ||
| 1902 | #else | ||
| 1903 | $ac_func(); | ||
| 1904 | #endif | ||
| 1905 | |||
| 1906 | ; return 0; } | ||
| 1907 | EOF | ||
| 1908 | if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1909 | rm -rf conftest* | ||
| 1910 | eval "ac_cv_func_$ac_func=yes" | ||
| 1911 | else | ||
| 1912 | echo "configure: failed program was:" >&5 | ||
| 1913 | cat conftest.$ac_ext >&5 | ||
| 1914 | rm -rf conftest* | ||
| 1915 | eval "ac_cv_func_$ac_func=no" | ||
| 1916 | fi | ||
| 1917 | rm -f conftest* | ||
| 1918 | fi | ||
| 1919 | |||
| 1920 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 1921 | echo "$ac_t""yes" 1>&6 | ||
| 1922 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 1923 | cat >> confdefs.h <<EOF | ||
| 1924 | #define $ac_tr_func 1 | ||
| 1925 | EOF | ||
| 1926 | |||
| 1927 | else | ||
| 1928 | echo "$ac_t""no" 1>&6 | ||
| 1929 | fi | ||
| 1930 | done | ||
| 1931 | |||
| 1932 | for ac_func in entutent getutent getutid getutline pututline setutent | ||
| 1933 | do | ||
| 1934 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1935 | echo "configure:1936: checking for $ac_func" >&5 | ||
| 1936 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1937 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1938 | else | ||
| 1939 | cat > conftest.$ac_ext <<EOF | ||
| 1940 | #line 1941 "configure" | ||
| 1941 | #include "confdefs.h" | ||
| 1942 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1943 | which can conflict with char $ac_func(); below. */ | ||
| 1944 | #include <assert.h> | ||
| 1945 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1946 | /* We use char because int might match the return type of a gcc2 | ||
| 1947 | builtin and then its argument prototype would still apply. */ | ||
| 1948 | char $ac_func(); | ||
| 1949 | |||
| 1950 | int main() { | ||
| 1951 | |||
| 1952 | /* The GNU C library defines this for functions which it implements | ||
| 1953 | to always fail with ENOSYS. Some functions are actually named | ||
| 1954 | something starting with __ and the normal name is an alias. */ | ||
| 1955 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 1956 | choke me | ||
| 1957 | #else | ||
| 1958 | $ac_func(); | ||
| 1959 | #endif | ||
| 1960 | |||
| 1961 | ; return 0; } | ||
| 1962 | EOF | ||
| 1963 | if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1964 | rm -rf conftest* | ||
| 1965 | eval "ac_cv_func_$ac_func=yes" | ||
| 1966 | else | ||
| 1967 | echo "configure: failed program was:" >&5 | ||
| 1968 | cat conftest.$ac_ext >&5 | ||
| 1969 | rm -rf conftest* | ||
| 1970 | eval "ac_cv_func_$ac_func=no" | ||
| 1971 | fi | ||
| 1972 | rm -f conftest* | ||
| 1973 | fi | ||
| 1974 | |||
| 1975 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 1976 | echo "$ac_t""yes" 1>&6 | ||
| 1977 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 1978 | cat >> confdefs.h <<EOF | ||
| 1979 | #define $ac_tr_func 1 | ||
| 1980 | EOF | ||
| 1981 | |||
| 1982 | else | ||
| 1983 | echo "$ac_t""no" 1>&6 | ||
| 1984 | fi | ||
| 1985 | done | ||
| 1986 | |||
| 1987 | for ac_func in utmpname | ||
| 1988 | do | ||
| 1989 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1990 | echo "configure:1991: checking for $ac_func" >&5 | ||
| 1991 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1992 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1993 | else | ||
| 1994 | cat > conftest.$ac_ext <<EOF | ||
| 1995 | #line 1996 "configure" | ||
| 1996 | #include "confdefs.h" | ||
| 1997 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1998 | which can conflict with char $ac_func(); below. */ | ||
| 1999 | #include <assert.h> | ||
| 2000 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2001 | /* We use char because int might match the return type of a gcc2 | ||
| 2002 | builtin and then its argument prototype would still apply. */ | ||
| 2003 | char $ac_func(); | ||
| 2004 | |||
| 2005 | int main() { | ||
| 2006 | |||
| 2007 | /* The GNU C library defines this for functions which it implements | ||
| 2008 | to always fail with ENOSYS. Some functions are actually named | ||
| 2009 | something starting with __ and the normal name is an alias. */ | ||
| 2010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 2011 | choke me | ||
| 2012 | #else | ||
| 2013 | $ac_func(); | ||
| 2014 | #endif | ||
| 2015 | |||
| 2016 | ; return 0; } | ||
| 2017 | EOF | ||
| 2018 | if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2019 | rm -rf conftest* | ||
| 2020 | eval "ac_cv_func_$ac_func=yes" | ||
| 2021 | else | ||
| 2022 | echo "configure: failed program was:" >&5 | ||
| 2023 | cat conftest.$ac_ext >&5 | ||
| 2024 | rm -rf conftest* | ||
| 2025 | eval "ac_cv_func_$ac_func=no" | ||
| 2026 | fi | ||
| 2027 | rm -f conftest* | ||
| 2028 | fi | ||
| 2029 | |||
| 2030 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 2031 | echo "$ac_t""yes" 1>&6 | ||
| 2032 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 2033 | cat >> confdefs.h <<EOF | ||
| 2034 | #define $ac_tr_func 1 | ||
| 2035 | EOF | ||
| 2036 | |||
| 2037 | else | ||
| 2038 | echo "$ac_t""no" 1>&6 | ||
| 2039 | fi | ||
| 2040 | done | ||
| 2041 | |||
| 2042 | for ac_func in entutxent getutxent getutxid getutxline pututxline | ||
| 2043 | do | ||
| 2044 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 2045 | echo "configure:2046: checking for $ac_func" >&5 | ||
| 2046 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 2047 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2048 | else | ||
| 2049 | cat > conftest.$ac_ext <<EOF | ||
| 2050 | #line 2051 "configure" | ||
| 2051 | #include "confdefs.h" | ||
| 2052 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2053 | which can conflict with char $ac_func(); below. */ | ||
| 2054 | #include <assert.h> | ||
| 2055 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2056 | /* We use char because int might match the return type of a gcc2 | ||
| 2057 | builtin and then its argument prototype would still apply. */ | ||
| 2058 | char $ac_func(); | ||
| 2059 | |||
| 2060 | int main() { | ||
| 2061 | |||
| 2062 | /* The GNU C library defines this for functions which it implements | ||
| 2063 | to always fail with ENOSYS. Some functions are actually named | ||
| 2064 | something starting with __ and the normal name is an alias. */ | ||
| 2065 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 2066 | choke me | ||
| 2067 | #else | ||
| 2068 | $ac_func(); | ||
| 2069 | #endif | ||
| 2070 | |||
| 2071 | ; return 0; } | ||
| 2072 | EOF | ||
| 2073 | if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2074 | rm -rf conftest* | ||
| 2075 | eval "ac_cv_func_$ac_func=yes" | ||
| 2076 | else | ||
| 2077 | echo "configure: failed program was:" >&5 | ||
| 2078 | cat conftest.$ac_ext >&5 | ||
| 2079 | rm -rf conftest* | ||
| 2080 | eval "ac_cv_func_$ac_func=no" | ||
| 2081 | fi | ||
| 2082 | rm -f conftest* | ||
| 2083 | fi | ||
| 2084 | |||
| 2085 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 2086 | echo "$ac_t""yes" 1>&6 | ||
| 2087 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 2088 | cat >> confdefs.h <<EOF | ||
| 2089 | #define $ac_tr_func 1 | ||
| 2090 | EOF | ||
| 2091 | |||
| 2092 | else | ||
| 2093 | echo "$ac_t""no" 1>&6 | ||
| 2094 | fi | ||
| 2095 | done | ||
| 2096 | |||
| 2097 | for ac_func in setutxent utmpxname | ||
| 2098 | do | ||
| 2099 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 2100 | echo "configure:2101: checking for $ac_func" >&5 | ||
| 2101 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 2102 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2103 | else | ||
| 2104 | cat > conftest.$ac_ext <<EOF | ||
| 2105 | #line 2106 "configure" | ||
| 2106 | #include "confdefs.h" | ||
| 2107 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2108 | which can conflict with char $ac_func(); below. */ | ||
| 2109 | #include <assert.h> | ||
| 2110 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2111 | /* We use char because int might match the return type of a gcc2 | ||
| 2112 | builtin and then its argument prototype would still apply. */ | ||
| 2113 | char $ac_func(); | ||
| 2114 | |||
| 2115 | int main() { | ||
| 2116 | |||
| 2117 | /* The GNU C library defines this for functions which it implements | ||
| 2118 | to always fail with ENOSYS. Some functions are actually named | ||
| 2119 | something starting with __ and the normal name is an alias. */ | ||
| 2120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 2121 | choke me | ||
| 2122 | #else | ||
| 2123 | $ac_func(); | ||
| 2124 | #endif | ||
| 2125 | |||
| 2126 | ; return 0; } | ||
| 2127 | EOF | ||
| 2128 | if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2129 | rm -rf conftest* | ||
| 2130 | eval "ac_cv_func_$ac_func=yes" | ||
| 2131 | else | ||
| 2132 | echo "configure: failed program was:" >&5 | ||
| 2133 | cat conftest.$ac_ext >&5 | ||
| 2134 | rm -rf conftest* | ||
| 2135 | eval "ac_cv_func_$ac_func=no" | ||
| 2136 | fi | ||
| 2137 | rm -f conftest* | ||
| 2138 | fi | ||
| 2139 | |||
| 2140 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 2141 | echo "$ac_t""yes" 1>&6 | ||
| 2142 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 2143 | cat >> confdefs.h <<EOF | ||
| 2144 | #define $ac_tr_func 1 | ||
| 2145 | EOF | ||
| 2146 | |||
| 2147 | else | ||
| 2148 | echo "$ac_t""no" 1>&6 | ||
| 2149 | fi | ||
| 2150 | done | ||
| 2151 | |||
| 2152 | |||
| 2153 | echo $ac_n "checking for getuserattr""... $ac_c" 1>&6 | ||
| 2154 | echo "configure:2155: checking for getuserattr" >&5 | ||
| 2155 | if eval "test \"`echo '$''{'ac_cv_func_getuserattr'+set}'`\" = set"; then | ||
| 2156 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2157 | else | ||
| 2158 | cat > conftest.$ac_ext <<EOF | ||
| 2159 | #line 2160 "configure" | ||
| 2160 | #include "confdefs.h" | ||
| 2161 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2162 | which can conflict with char getuserattr(); below. */ | ||
| 2163 | #include <assert.h> | ||
| 2164 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2165 | /* We use char because int might match the return type of a gcc2 | ||
| 2166 | builtin and then its argument prototype would still apply. */ | ||
| 2167 | char getuserattr(); | ||
| 2168 | |||
| 2169 | int main() { | ||
| 2170 | |||
| 2171 | /* The GNU C library defines this for functions which it implements | ||
| 2172 | to always fail with ENOSYS. Some functions are actually named | ||
| 2173 | something starting with __ and the normal name is an alias. */ | ||
| 2174 | #if defined (__stub_getuserattr) || defined (__stub___getuserattr) | ||
| 2175 | choke me | ||
| 2176 | #else | ||
| 2177 | getuserattr(); | ||
| 2178 | #endif | ||
| 2179 | |||
| 2180 | ; return 0; } | ||
| 2181 | EOF | ||
| 2182 | if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2183 | rm -rf conftest* | ||
| 2184 | eval "ac_cv_func_getuserattr=yes" | ||
| 2185 | else | ||
| 2186 | echo "configure: failed program was:" >&5 | ||
| 2187 | cat conftest.$ac_ext >&5 | ||
| 2188 | rm -rf conftest* | ||
| 2189 | eval "ac_cv_func_getuserattr=no" | ||
| 2190 | fi | ||
| 2191 | rm -f conftest* | ||
| 2192 | fi | ||
| 2193 | |||
| 2194 | if eval "test \"`echo '$ac_cv_func_'getuserattr`\" = yes"; then | ||
| 2195 | echo "$ac_t""yes" 1>&6 | ||
| 2196 | cat >> confdefs.h <<\EOF | ||
| 2197 | #define HAVE_GETUSERATTR 1 | ||
| 2198 | EOF | ||
| 2199 | |||
| 2200 | else | ||
| 2201 | echo "$ac_t""no" 1>&6 | ||
| 2202 | echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 | ||
| 2203 | echo "configure:2204: checking for getuserattr in -ls" >&5 | ||
| 2204 | ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` | ||
| 2205 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2206 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2207 | else | ||
| 2208 | ac_save_LIBS="$LIBS" | ||
| 2209 | LIBS="-ls $LIBS" | ||
| 2210 | cat > conftest.$ac_ext <<EOF | ||
| 2211 | #line 2212 "configure" | ||
| 2212 | #include "confdefs.h" | ||
| 2213 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2214 | /* We use char because int might match the return type of a gcc2 | ||
| 2215 | builtin and then its argument prototype would still apply. */ | ||
| 2216 | char getuserattr(); | ||
| 2217 | |||
| 2218 | int main() { | ||
| 2219 | getuserattr() | ||
| 2220 | ; return 0; } | ||
| 2221 | EOF | ||
| 2222 | if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2223 | rm -rf conftest* | ||
| 2224 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2225 | else | ||
| 2226 | echo "configure: failed program was:" >&5 | ||
| 2227 | cat conftest.$ac_ext >&5 | ||
| 2228 | rm -rf conftest* | ||
| 2229 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2230 | fi | ||
| 2231 | rm -f conftest* | ||
| 2232 | LIBS="$ac_save_LIBS" | ||
| 2233 | |||
| 2234 | fi | ||
| 2235 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2236 | echo "$ac_t""yes" 1>&6 | ||
| 2237 | LIBS="$LIBS -ls"; cat >> confdefs.h <<\EOF | ||
| 2238 | #define HAVE_GETUSERATTR 1 | ||
| 2239 | EOF | ||
| 2240 | |||
| 2241 | else | ||
| 2242 | echo "$ac_t""no" 1>&6 | ||
| 2243 | fi | ||
| 2244 | |||
| 2245 | |||
| 2246 | fi | ||
| 2247 | |||
| 2248 | |||
| 2249 | echo $ac_n "checking for login""... $ac_c" 1>&6 | ||
| 2250 | echo "configure:2251: checking for login" >&5 | ||
| 2251 | if eval "test \"`echo '$''{'ac_cv_func_login'+set}'`\" = set"; then | ||
| 2252 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2253 | else | ||
| 2254 | cat > conftest.$ac_ext <<EOF | ||
| 2255 | #line 2256 "configure" | ||
| 2256 | #include "confdefs.h" | ||
| 2257 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2258 | which can conflict with char login(); below. */ | ||
| 2259 | #include <assert.h> | ||
| 2260 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2261 | /* We use char because int might match the return type of a gcc2 | ||
| 2262 | builtin and then its argument prototype would still apply. */ | ||
| 2263 | char login(); | ||
| 2264 | |||
| 2265 | int main() { | ||
| 2266 | |||
| 2267 | /* The GNU C library defines this for functions which it implements | ||
| 2268 | to always fail with ENOSYS. Some functions are actually named | ||
| 2269 | something starting with __ and the normal name is an alias. */ | ||
| 2270 | #if defined (__stub_login) || defined (__stub___login) | ||
| 2271 | choke me | ||
| 2272 | #else | ||
| 2273 | login(); | ||
| 2274 | #endif | ||
| 2275 | |||
| 2276 | ; return 0; } | ||
| 2277 | EOF | ||
| 2278 | if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2279 | rm -rf conftest* | ||
| 2280 | eval "ac_cv_func_login=yes" | ||
| 2281 | else | ||
| 2282 | echo "configure: failed program was:" >&5 | ||
| 2283 | cat conftest.$ac_ext >&5 | ||
| 2284 | rm -rf conftest* | ||
| 2285 | eval "ac_cv_func_login=no" | ||
| 2286 | fi | ||
| 2287 | rm -f conftest* | ||
| 2288 | fi | ||
| 2289 | |||
| 2290 | if eval "test \"`echo '$ac_cv_func_'login`\" = yes"; then | ||
| 2291 | echo "$ac_t""yes" 1>&6 | ||
| 2292 | cat >> confdefs.h <<\EOF | ||
| 2293 | #define HAVE_LOGIN 1 | ||
| 2294 | EOF | ||
| 2295 | |||
| 2296 | else | ||
| 2297 | echo "$ac_t""no" 1>&6 | ||
| 2298 | echo $ac_n "checking for login in -lbsd""... $ac_c" 1>&6 | ||
| 2299 | echo "configure:2300: checking for login in -lbsd" >&5 | ||
| 2300 | ac_lib_var=`echo bsd'_'login | sed 'y%./+-%__p_%'` | ||
| 2301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2302 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2303 | else | ||
| 2304 | ac_save_LIBS="$LIBS" | ||
| 2305 | LIBS="-lbsd $LIBS" | ||
| 2306 | cat > conftest.$ac_ext <<EOF | ||
| 2307 | #line 2308 "configure" | ||
| 2308 | #include "confdefs.h" | ||
| 2309 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2310 | /* We use char because int might match the return type of a gcc2 | ||
| 2311 | builtin and then its argument prototype would still apply. */ | ||
| 2312 | char login(); | ||
| 2313 | |||
| 2314 | int main() { | ||
| 2315 | login() | ||
| 2316 | ; return 0; } | ||
| 2317 | EOF | ||
| 2318 | if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2319 | rm -rf conftest* | ||
| 2320 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2321 | else | ||
| 2322 | echo "configure: failed program was:" >&5 | ||
| 2323 | cat conftest.$ac_ext >&5 | ||
| 2324 | rm -rf conftest* | ||
| 2325 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2326 | fi | ||
| 2327 | rm -f conftest* | ||
| 2328 | LIBS="$ac_save_LIBS" | ||
| 2329 | |||
| 2330 | fi | ||
| 2331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2332 | echo "$ac_t""yes" 1>&6 | ||
| 2333 | LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF | ||
| 2334 | #define HAVE_LOGIN 1 | ||
| 2335 | EOF | ||
| 2336 | |||
| 2337 | else | ||
| 2338 | echo "$ac_t""no" 1>&6 | ||
| 2339 | fi | ||
| 2340 | |||
| 2341 | |||
| 2342 | fi | ||
| 2343 | |||
| 2344 | |||
| 2345 | echo $ac_n "checking for daemon""... $ac_c" 1>&6 | ||
| 2346 | echo "configure:2347: checking for daemon" >&5 | ||
| 2347 | if eval "test \"`echo '$''{'ac_cv_func_daemon'+set}'`\" = set"; then | ||
| 2348 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2349 | else | ||
| 2350 | cat > conftest.$ac_ext <<EOF | ||
| 2351 | #line 2352 "configure" | ||
| 2352 | #include "confdefs.h" | ||
| 2353 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2354 | which can conflict with char daemon(); below. */ | ||
| 2355 | #include <assert.h> | ||
| 2356 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2357 | /* We use char because int might match the return type of a gcc2 | ||
| 2358 | builtin and then its argument prototype would still apply. */ | ||
| 2359 | char daemon(); | ||
| 2360 | |||
| 2361 | int main() { | ||
| 2362 | |||
| 2363 | /* The GNU C library defines this for functions which it implements | ||
| 2364 | to always fail with ENOSYS. Some functions are actually named | ||
| 2365 | something starting with __ and the normal name is an alias. */ | ||
| 2366 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
| 2367 | choke me | ||
| 2368 | #else | ||
| 2369 | daemon(); | ||
| 2370 | #endif | ||
| 2371 | |||
| 2372 | ; return 0; } | ||
| 2373 | EOF | ||
| 2374 | if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2375 | rm -rf conftest* | ||
| 2376 | eval "ac_cv_func_daemon=yes" | ||
| 2377 | else | ||
| 2378 | echo "configure: failed program was:" >&5 | ||
| 2379 | cat conftest.$ac_ext >&5 | ||
| 2380 | rm -rf conftest* | ||
| 2381 | eval "ac_cv_func_daemon=no" | ||
| 2382 | fi | ||
| 2383 | rm -f conftest* | ||
| 2384 | fi | ||
| 2385 | |||
| 2386 | if eval "test \"`echo '$ac_cv_func_'daemon`\" = yes"; then | ||
| 2387 | echo "$ac_t""yes" 1>&6 | ||
| 2388 | cat >> confdefs.h <<\EOF | ||
| 2389 | #define HAVE_DAEMON 1 | ||
| 2390 | EOF | ||
| 2391 | |||
| 2392 | else | ||
| 2393 | echo "$ac_t""no" 1>&6 | ||
| 2394 | echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6 | ||
| 2395 | echo "configure:2396: checking for daemon in -lbsd" >&5 | ||
| 2396 | ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'` | ||
| 2397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2398 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2399 | else | ||
| 2400 | ac_save_LIBS="$LIBS" | ||
| 2401 | LIBS="-lbsd $LIBS" | ||
| 2402 | cat > conftest.$ac_ext <<EOF | ||
| 2403 | #line 2404 "configure" | ||
| 2404 | #include "confdefs.h" | ||
| 2405 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2406 | /* We use char because int might match the return type of a gcc2 | ||
| 2407 | builtin and then its argument prototype would still apply. */ | ||
| 2408 | char daemon(); | ||
| 2409 | |||
| 2410 | int main() { | ||
| 2411 | daemon() | ||
| 2412 | ; return 0; } | ||
| 2413 | EOF | ||
| 2414 | if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2415 | rm -rf conftest* | ||
| 2416 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2417 | else | ||
| 2418 | echo "configure: failed program was:" >&5 | ||
| 2419 | cat conftest.$ac_ext >&5 | ||
| 2420 | rm -rf conftest* | ||
| 2421 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2422 | fi | ||
| 2423 | rm -f conftest* | ||
| 2424 | LIBS="$ac_save_LIBS" | ||
| 2425 | |||
| 2426 | fi | ||
| 2427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2428 | echo "$ac_t""yes" 1>&6 | ||
| 2429 | LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF | ||
| 2430 | #define HAVE_DAEMON 1 | ||
| 2431 | EOF | ||
| 2432 | |||
| 2433 | else | ||
| 2434 | echo "$ac_t""no" 1>&6 | ||
| 2435 | fi | ||
| 2436 | |||
| 2437 | |||
| 2438 | fi | ||
| 2439 | |||
| 2440 | |||
| 2441 | echo $ac_n "checking for getpagesize""... $ac_c" 1>&6 | ||
| 2442 | echo "configure:2443: checking for getpagesize" >&5 | ||
| 2443 | if eval "test \"`echo '$''{'ac_cv_func_getpagesize'+set}'`\" = set"; then | ||
| 2444 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2445 | else | ||
| 2446 | cat > conftest.$ac_ext <<EOF | ||
| 2447 | #line 2448 "configure" | ||
| 2448 | #include "confdefs.h" | ||
| 2449 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2450 | which can conflict with char getpagesize(); below. */ | ||
| 2451 | #include <assert.h> | ||
| 2452 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2453 | /* We use char because int might match the return type of a gcc2 | ||
| 2454 | builtin and then its argument prototype would still apply. */ | ||
| 2455 | char getpagesize(); | ||
| 2456 | |||
| 2457 | int main() { | ||
| 2458 | |||
| 2459 | /* The GNU C library defines this for functions which it implements | ||
| 2460 | to always fail with ENOSYS. Some functions are actually named | ||
| 2461 | something starting with __ and the normal name is an alias. */ | ||
| 2462 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
| 2463 | choke me | ||
| 2464 | #else | ||
| 2465 | getpagesize(); | ||
| 2466 | #endif | ||
| 2467 | |||
| 2468 | ; return 0; } | ||
| 2469 | EOF | ||
| 2470 | if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2471 | rm -rf conftest* | ||
| 2472 | eval "ac_cv_func_getpagesize=yes" | ||
| 2473 | else | ||
| 2474 | echo "configure: failed program was:" >&5 | ||
| 2475 | cat conftest.$ac_ext >&5 | ||
| 2476 | rm -rf conftest* | ||
| 2477 | eval "ac_cv_func_getpagesize=no" | ||
| 2478 | fi | ||
| 2479 | rm -f conftest* | ||
| 2480 | fi | ||
| 2481 | |||
| 2482 | if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then | ||
| 2483 | echo "$ac_t""yes" 1>&6 | ||
| 2484 | cat >> confdefs.h <<\EOF | ||
| 2485 | #define HAVE_GETPAGESIZE 1 | ||
| 2486 | EOF | ||
| 2487 | |||
| 2488 | else | ||
| 2489 | echo "$ac_t""no" 1>&6 | ||
| 2490 | echo $ac_n "checking for getpagesize in -lucb""... $ac_c" 1>&6 | ||
| 2491 | echo "configure:2492: checking for getpagesize in -lucb" >&5 | ||
| 2492 | ac_lib_var=`echo ucb'_'getpagesize | sed 'y%./+-%__p_%'` | ||
| 2493 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2494 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2495 | else | ||
| 2496 | ac_save_LIBS="$LIBS" | ||
| 2497 | LIBS="-lucb $LIBS" | ||
| 2498 | cat > conftest.$ac_ext <<EOF | ||
| 2499 | #line 2500 "configure" | ||
| 2500 | #include "confdefs.h" | ||
| 2501 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2502 | /* We use char because int might match the return type of a gcc2 | ||
| 2503 | builtin and then its argument prototype would still apply. */ | ||
| 2504 | char getpagesize(); | ||
| 2505 | |||
| 2506 | int main() { | ||
| 2507 | getpagesize() | ||
| 2508 | ; return 0; } | ||
| 2509 | EOF | ||
| 2510 | if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2511 | rm -rf conftest* | ||
| 2512 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2513 | else | ||
| 2514 | echo "configure: failed program was:" >&5 | ||
| 2515 | cat conftest.$ac_ext >&5 | ||
| 2516 | rm -rf conftest* | ||
| 2517 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2518 | fi | ||
| 2519 | rm -f conftest* | ||
| 2520 | LIBS="$ac_save_LIBS" | ||
| 2521 | |||
| 2522 | fi | ||
| 2523 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2524 | echo "$ac_t""yes" 1>&6 | ||
| 2525 | LIBS="$LIBS -lucb"; cat >> confdefs.h <<\EOF | ||
| 2526 | #define HAVE_GETPAGESIZE 1 | ||
| 2527 | EOF | ||
| 2528 | |||
| 2529 | else | ||
| 2530 | echo "$ac_t""no" 1>&6 | ||
| 2531 | fi | ||
| 2532 | |||
| 2533 | |||
| 2534 | fi | ||
| 2535 | |||
| 2536 | |||
| 2537 | # Check for broken snprintf | ||
| 2538 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
| 2539 | echo $ac_n "checking whether snprintf correctly terminates long strings""... $ac_c" 1>&6 | ||
| 2540 | echo "configure:2541: checking whether snprintf correctly terminates long strings" >&5 | ||
| 2541 | if test "$cross_compiling" = yes; then | ||
| 2542 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 2543 | else | ||
| 2544 | cat > conftest.$ac_ext <<EOF | ||
| 2545 | #line 2546 "configure" | ||
| 2546 | #include "confdefs.h" | ||
| 2547 | |||
| 2548 | #include <stdio.h> | ||
| 2549 | int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} | ||
| 2550 | |||
| 2551 | EOF | ||
| 2552 | if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 2553 | then | ||
| 2554 | echo "$ac_t""yes" 1>&6 | ||
| 2555 | else | ||
| 2556 | echo "configure: failed program was:" >&5 | ||
| 2557 | cat conftest.$ac_ext >&5 | ||
| 2558 | rm -fr conftest* | ||
| 2559 | |||
| 2560 | echo "$ac_t""no" 1>&6 | ||
| 2561 | cat >> confdefs.h <<\EOF | ||
| 2562 | #define BROKEN_SNPRINTF 1 | ||
| 2563 | EOF | ||
| 2564 | |||
| 2565 | echo "configure: warning: ****** Your snprintf() function is broken, complain to your vendor" 1>&2 | ||
| 2566 | |||
| 2567 | |||
| 2568 | fi | ||
| 2569 | rm -fr conftest* | ||
| 2570 | fi | ||
| 2571 | |||
| 2572 | fi | ||
| 2573 | |||
| 2574 | PAM_MSG="no" | ||
| 2575 | # Check whether --with-pam or --without-pam was given. | ||
| 2576 | if test "${with_pam+set}" = set; then | ||
| 2577 | withval="$with_pam" | ||
| 2578 | |||
| 2579 | if test "x$withval" = "xno" ; then | ||
| 2580 | no_pam=1 | ||
| 2581 | cat >> confdefs.h <<\EOF | ||
| 2582 | #define DISABLE_PAM 1 | ||
| 2583 | EOF | ||
| 2584 | |||
| 2585 | PAM_MSG="disabled" | ||
| 2586 | fi | ||
| 2587 | |||
| 2588 | |||
| 2589 | fi | ||
| 2590 | |||
| 2591 | if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then | ||
| 2592 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | ||
| 2593 | echo "configure:2594: checking for dlopen in -ldl" >&5 | ||
| 2594 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | ||
| 2595 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2596 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2597 | else | ||
| 2598 | ac_save_LIBS="$LIBS" | ||
| 2599 | LIBS="-ldl $LIBS" | ||
| 2600 | cat > conftest.$ac_ext <<EOF | ||
| 2601 | #line 2602 "configure" | ||
| 2602 | #include "confdefs.h" | ||
| 2603 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2604 | /* We use char because int might match the return type of a gcc2 | ||
| 2605 | builtin and then its argument prototype would still apply. */ | ||
| 2606 | char dlopen(); | ||
| 2607 | |||
| 2608 | int main() { | ||
| 2609 | dlopen() | ||
| 2610 | ; return 0; } | ||
| 2611 | EOF | ||
| 2612 | if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2613 | rm -rf conftest* | ||
| 2614 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2615 | else | ||
| 2616 | echo "configure: failed program was:" >&5 | ||
| 2617 | cat conftest.$ac_ext >&5 | ||
| 2618 | rm -rf conftest* | ||
| 2619 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2620 | fi | ||
| 2621 | rm -f conftest* | ||
| 2622 | LIBS="$ac_save_LIBS" | ||
| 2623 | |||
| 2624 | fi | ||
| 2625 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2626 | echo "$ac_t""yes" 1>&6 | ||
| 2627 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 2628 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 2629 | cat >> confdefs.h <<EOF | ||
| 2630 | #define $ac_tr_lib 1 | ||
| 2631 | EOF | ||
| 2632 | |||
| 2633 | LIBS="-ldl $LIBS" | ||
| 2634 | |||
| 2635 | else | ||
| 2636 | echo "$ac_t""no" 1>&6 | ||
| 2637 | fi | ||
| 2638 | |||
| 2639 | LIBS="$LIBS -lpam" | ||
| 2640 | |||
| 2641 | for ac_func in pam_getenvlist | ||
| 2642 | do | ||
| 2643 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 2644 | echo "configure:2645: checking for $ac_func" >&5 | ||
| 2645 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 2646 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2647 | else | ||
| 2648 | cat > conftest.$ac_ext <<EOF | ||
| 2649 | #line 2650 "configure" | ||
| 2650 | #include "confdefs.h" | ||
| 2651 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2652 | which can conflict with char $ac_func(); below. */ | ||
| 2653 | #include <assert.h> | ||
| 2654 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2655 | /* We use char because int might match the return type of a gcc2 | ||
| 2656 | builtin and then its argument prototype would still apply. */ | ||
| 2657 | char $ac_func(); | ||
| 2658 | |||
| 2659 | int main() { | ||
| 2660 | |||
| 2661 | /* The GNU C library defines this for functions which it implements | ||
| 2662 | to always fail with ENOSYS. Some functions are actually named | ||
| 2663 | something starting with __ and the normal name is an alias. */ | ||
| 2664 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 2665 | choke me | ||
| 2666 | #else | ||
| 2667 | $ac_func(); | ||
| 2668 | #endif | ||
| 2669 | |||
| 2670 | ; return 0; } | ||
| 2671 | EOF | ||
| 2672 | if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2673 | rm -rf conftest* | ||
| 2674 | eval "ac_cv_func_$ac_func=yes" | ||
| 2675 | else | ||
| 2676 | echo "configure: failed program was:" >&5 | ||
| 2677 | cat conftest.$ac_ext >&5 | ||
| 2678 | rm -rf conftest* | ||
| 2679 | eval "ac_cv_func_$ac_func=no" | ||
| 2680 | fi | ||
| 2681 | rm -f conftest* | ||
| 2682 | fi | ||
| 2683 | |||
| 2684 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 2685 | echo "$ac_t""yes" 1>&6 | ||
| 2686 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 2687 | cat >> confdefs.h <<EOF | ||
| 2688 | #define $ac_tr_func 1 | ||
| 2689 | EOF | ||
| 2690 | |||
| 2691 | else | ||
| 2692 | echo "$ac_t""no" 1>&6 | ||
| 2693 | fi | ||
| 2694 | done | ||
| 2695 | |||
| 2696 | |||
| 2697 | disable_shadow=yes | ||
| 2698 | |||
| 2699 | PAM_MSG="yes" | ||
| 2700 | |||
| 2701 | # Check PAM strerror arguments (old PAM) | ||
| 2702 | echo $ac_n "checking whether pam_strerror takes only one argument""... $ac_c" 1>&6 | ||
| 2703 | echo "configure:2704: checking whether pam_strerror takes only one argument" >&5 | ||
| 2704 | cat > conftest.$ac_ext <<EOF | ||
| 2705 | #line 2706 "configure" | ||
| 2706 | #include "confdefs.h" | ||
| 2707 | |||
| 2708 | #include <stdlib.h> | ||
| 2709 | #include <security/pam_appl.h> | ||
| 2710 | |||
| 2711 | int main() { | ||
| 2712 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
| 2713 | ; return 0; } | ||
| 2714 | EOF | ||
| 2715 | if { (eval echo configure:2716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 2716 | rm -rf conftest* | ||
| 2717 | echo "$ac_t""no" 1>&6 | ||
| 2718 | else | ||
| 2719 | echo "configure: failed program was:" >&5 | ||
| 2720 | cat conftest.$ac_ext >&5 | ||
| 2721 | rm -rf conftest* | ||
| 2722 | |||
| 2723 | cat >> confdefs.h <<\EOF | ||
| 2724 | #define HAVE_OLD_PAM 1 | ||
| 2725 | EOF | ||
| 2726 | |||
| 2727 | echo "$ac_t""yes" 1>&6 | ||
| 2728 | PAM_MSG="yes (old library)" | ||
| 2729 | |||
| 2730 | |||
| 2731 | fi | ||
| 2732 | rm -f conftest* | ||
| 2733 | fi | ||
| 2734 | |||
| 2735 | # The big search for OpenSSL | ||
| 2736 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
| 2737 | if test "${with_ssl_dir+set}" = set; then | ||
| 2738 | withval="$with_ssl_dir" | ||
| 2739 | |||
| 2740 | if test "x$withval" != "$xno" ; then | ||
| 2741 | tryssldir=$withval | ||
| 2742 | fi | ||
| 2743 | |||
| 2744 | |||
| 2745 | fi | ||
| 2746 | |||
| 2747 | |||
| 2748 | saved_LIBS="$LIBS" | ||
| 2749 | saved_LDFLAGS="$LDFLAGS" | ||
| 2750 | saved_CFLAGS="$CFLAGS" | ||
| 2751 | if test "x$prefix" != "xNONE" ; then | ||
| 2752 | tryssldir="$tryssldir $prefix" | ||
| 2753 | fi | ||
| 2754 | echo $ac_n "checking for OpenSSL directory""... $ac_c" 1>&6 | ||
| 2755 | echo "configure:2756: checking for OpenSSL directory" >&5 | ||
| 2756 | if eval "test \"`echo '$''{'ac_cv_openssldir'+set}'`\" = set"; then | ||
| 2757 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2758 | else | ||
| 2759 | |||
| 2760 | |||
| 2761 | for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do | ||
| 2762 | if test ! -z "$ssldir" ; then | ||
| 2763 | LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir" | ||
| 2764 | CFLAGS="$saved_CFLAGS -I$ssldir/include" | ||
| 2765 | if test ! -z "$need_dash_r" ; then | ||
| 2766 | LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir" | ||
| 2767 | fi | ||
| 2768 | else | ||
| 2769 | LDFLAGS="$saved_LDFLAGS" | ||
| 2770 | fi | ||
| 2771 | |||
| 2772 | LIBS="$saved_LIBS -lcrypto" | ||
| 2773 | |||
| 2774 | # Basic test to check for compatible version and correct linking | ||
| 2775 | # *does not* test for RSA - that comes later. | ||
| 2776 | if test "$cross_compiling" = yes; then | ||
| 2777 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 2778 | else | ||
| 2779 | cat > conftest.$ac_ext <<EOF | ||
| 2780 | #line 2781 "configure" | ||
| 2781 | #include "confdefs.h" | ||
| 2782 | |||
| 2783 | #include <string.h> | ||
| 2784 | #include <openssl/rand.h> | ||
| 2785 | int main(void) | ||
| 2786 | { | ||
| 2787 | char a[2048]; | ||
| 2788 | memset(a, 0, sizeof(a)); | ||
| 2789 | RAND_add(a, sizeof(a), sizeof(a)); | ||
| 2790 | return(RAND_status() <= 0); | ||
| 2791 | } | ||
| 2792 | |||
| 2793 | EOF | ||
| 2794 | if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 2795 | then | ||
| 2796 | |||
| 2797 | found_crypto=1 | ||
| 2798 | break; | ||
| 2799 | |||
| 2800 | else | ||
| 2801 | echo "configure: failed program was:" >&5 | ||
| 2802 | cat conftest.$ac_ext >&5 | ||
| 2803 | rm -fr conftest* | ||
| 2804 | |||
| 2805 | |||
| 2806 | fi | ||
| 2807 | rm -fr conftest* | ||
| 2808 | fi | ||
| 2809 | |||
| 2810 | |||
| 2811 | if test ! -z "$found_crypto" ; then | ||
| 2812 | break; | ||
| 2813 | fi | ||
| 2814 | done | ||
| 2815 | |||
| 2816 | if test -z "$found_crypto" ; then | ||
| 2817 | { echo "configure: error: Could not find working SSLeay / OpenSSL libraries, please install" 1>&2; exit 1; } | ||
| 2818 | fi | ||
| 2819 | if test -z "$ssldir" ; then | ||
| 2820 | ssldir="(system)" | ||
| 2821 | fi | ||
| 2822 | |||
| 2823 | ac_cv_openssldir=$ssldir | ||
| 2824 | |||
| 2825 | fi | ||
| 2826 | |||
| 2827 | echo "$ac_t""$ac_cv_openssldir" 1>&6 | ||
| 2828 | |||
| 2829 | if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then | ||
| 2830 | cat >> confdefs.h <<\EOF | ||
| 2831 | #define HAVE_OPENSSL 1 | ||
| 2832 | EOF | ||
| 2833 | |||
| 2834 | ssldir=$ac_cv_openssldir | ||
| 2835 | CFLAGS="$saved_CFLAGS -I$ssldir/include" | ||
| 2836 | LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir" | ||
| 2837 | if test ! -z "$need_dash_r" ; then | ||
| 2838 | LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir" | ||
| 2839 | fi | ||
| 2840 | if test ! -z "$blibpath" ; then | ||
| 2841 | blibpath="$blibpath:$ssldir:$ssldir/lib" | ||
| 2842 | fi | ||
| 2843 | fi | ||
| 2844 | LIBS="$saved_LIBS -lcrypto" | ||
| 2845 | |||
| 2846 | # Now test RSA support | ||
| 2847 | saved_LIBS="$LIBS" | ||
| 2848 | echo $ac_n "checking for RSA support""... $ac_c" 1>&6 | ||
| 2849 | echo "configure:2850: checking for RSA support" >&5 | ||
| 2850 | for WANTS_RSAREF in "" 1 ; do | ||
| 2851 | if test -z "$WANTS_RSAREF" ; then | ||
| 2852 | LIBS="$saved_LIBS" | ||
| 2853 | else | ||
| 2854 | LIBS="$saved_LIBS -lRSAglue -lrsaref" | ||
| 2855 | fi | ||
| 2856 | if test "$cross_compiling" = yes; then | ||
| 2857 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 2858 | else | ||
| 2859 | cat > conftest.$ac_ext <<EOF | ||
| 2860 | #line 2861 "configure" | ||
| 2861 | #include "confdefs.h" | ||
| 2862 | |||
| 2863 | #include <string.h> | ||
| 2864 | #include <openssl/rand.h> | ||
| 2865 | #include <openssl/rsa.h> | ||
| 2866 | #include <openssl/bn.h> | ||
| 2867 | #include <openssl/sha.h> | ||
| 2868 | int main(void) | ||
| 2869 | { | ||
| 2870 | int num; RSA *key; static unsigned char p_in[] = "blahblah"; | ||
| 2871 | unsigned char c[256], p[256]; | ||
| 2872 | memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c)); | ||
| 2873 | if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1); | ||
| 2874 | num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING); | ||
| 2875 | return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING)); | ||
| 2876 | } | ||
| 2877 | |||
| 2878 | EOF | ||
| 2879 | if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 2880 | then | ||
| 2881 | |||
| 2882 | rsa_works=1 | ||
| 2883 | break; | ||
| 2884 | |||
| 2885 | else | ||
| 2886 | echo "configure: failed program was:" >&5 | ||
| 2887 | cat conftest.$ac_ext >&5 | ||
| 2888 | fi | ||
| 2889 | rm -fr conftest* | ||
| 2890 | fi | ||
| 2891 | |||
| 2892 | done | ||
| 2893 | |||
| 2894 | if test ! -z "$no_rsa" ; then | ||
| 2895 | echo "$ac_t""disabled" 1>&6 | ||
| 2896 | RSA_MSG="disabled" | ||
| 2897 | else | ||
| 2898 | if test -z "$rsa_works" ; then | ||
| 2899 | echo "configure: warning: *** No RSA support found *** " 1>&2 | ||
| 2900 | RSA_MSG="no" | ||
| 2901 | else | ||
| 2902 | if test -z "$WANTS_RSAREF" ; then | ||
| 2903 | echo "$ac_t""yes" 1>&6 | ||
| 2904 | RSA_MSG="yes" | ||
| 2905 | else | ||
| 2906 | RSA_MSG="yes (using RSAref)" | ||
| 2907 | echo "$ac_t""using RSAref" 1>&6 | ||
| 2908 | LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref" | ||
| 2909 | fi | ||
| 2910 | fi | ||
| 2911 | fi | ||
| 2912 | |||
| 2913 | # Checks for data types | ||
| 2914 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | ||
| 2915 | echo "configure:2916: checking size of char" >&5 | ||
| 2916 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | ||
| 2917 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2918 | else | ||
| 2919 | if test "$cross_compiling" = yes; then | ||
| 2920 | ac_cv_sizeof_char=1 | ||
| 2921 | else | ||
| 2922 | cat > conftest.$ac_ext <<EOF | ||
| 2923 | #line 2924 "configure" | ||
| 2924 | #include "confdefs.h" | ||
| 2925 | #include <stdio.h> | ||
| 2926 | main() | ||
| 2927 | { | ||
| 2928 | FILE *f=fopen("conftestval", "w"); | ||
| 2929 | if (!f) exit(1); | ||
| 2930 | fprintf(f, "%d\n", sizeof(char)); | ||
| 2931 | exit(0); | ||
| 2932 | } | ||
| 2933 | EOF | ||
| 2934 | if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 2935 | then | ||
| 2936 | ac_cv_sizeof_char=`cat conftestval` | ||
| 2937 | else | ||
| 2938 | echo "configure: failed program was:" >&5 | ||
| 2939 | cat conftest.$ac_ext >&5 | ||
| 2940 | rm -fr conftest* | ||
| 2941 | ac_cv_sizeof_char=0 | ||
| 2942 | fi | ||
| 2943 | rm -fr conftest* | ||
| 2944 | fi | ||
| 2945 | |||
| 2946 | fi | ||
| 2947 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | ||
| 2948 | cat >> confdefs.h <<EOF | ||
| 2949 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
| 2950 | EOF | ||
| 2951 | |||
| 2952 | |||
| 2953 | echo $ac_n "checking size of short int""... $ac_c" 1>&6 | ||
| 2954 | echo "configure:2955: checking size of short int" >&5 | ||
| 2955 | if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then | ||
| 2956 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2957 | else | ||
| 2958 | if test "$cross_compiling" = yes; then | ||
| 2959 | ac_cv_sizeof_short_int=2 | ||
| 2960 | else | ||
| 2961 | cat > conftest.$ac_ext <<EOF | ||
| 2962 | #line 2963 "configure" | ||
| 2963 | #include "confdefs.h" | ||
| 2964 | #include <stdio.h> | ||
| 2965 | main() | ||
| 2966 | { | ||
| 2967 | FILE *f=fopen("conftestval", "w"); | ||
| 2968 | if (!f) exit(1); | ||
| 2969 | fprintf(f, "%d\n", sizeof(short int)); | ||
| 2970 | exit(0); | ||
| 2971 | } | ||
| 2972 | EOF | ||
| 2973 | if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 2974 | then | ||
| 2975 | ac_cv_sizeof_short_int=`cat conftestval` | ||
| 2976 | else | ||
| 2977 | echo "configure: failed program was:" >&5 | ||
| 2978 | cat conftest.$ac_ext >&5 | ||
| 2979 | rm -fr conftest* | ||
| 2980 | ac_cv_sizeof_short_int=0 | ||
| 2981 | fi | ||
| 2982 | rm -fr conftest* | ||
| 2983 | fi | ||
| 2984 | |||
| 2985 | fi | ||
| 2986 | echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6 | ||
| 2987 | cat >> confdefs.h <<EOF | ||
| 2988 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
| 2989 | EOF | ||
| 2990 | |||
| 2991 | |||
| 2992 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | ||
| 2993 | echo "configure:2994: checking size of int" >&5 | ||
| 2994 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | ||
| 2995 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2996 | else | ||
| 2997 | if test "$cross_compiling" = yes; then | ||
| 2998 | ac_cv_sizeof_int=4 | ||
| 2999 | else | ||
| 3000 | cat > conftest.$ac_ext <<EOF | ||
| 3001 | #line 3002 "configure" | ||
| 3002 | #include "confdefs.h" | ||
| 3003 | #include <stdio.h> | ||
| 3004 | main() | ||
| 3005 | { | ||
| 3006 | FILE *f=fopen("conftestval", "w"); | ||
| 3007 | if (!f) exit(1); | ||
| 3008 | fprintf(f, "%d\n", sizeof(int)); | ||
| 3009 | exit(0); | ||
| 3010 | } | ||
| 3011 | EOF | ||
| 3012 | if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 3013 | then | ||
| 3014 | ac_cv_sizeof_int=`cat conftestval` | ||
| 3015 | else | ||
| 3016 | echo "configure: failed program was:" >&5 | ||
| 3017 | cat conftest.$ac_ext >&5 | ||
| 3018 | rm -fr conftest* | ||
| 3019 | ac_cv_sizeof_int=0 | ||
| 3020 | fi | ||
| 3021 | rm -fr conftest* | ||
| 3022 | fi | ||
| 3023 | |||
| 3024 | fi | ||
| 3025 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | ||
| 3026 | cat >> confdefs.h <<EOF | ||
| 3027 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
| 3028 | EOF | ||
| 3029 | |||
| 3030 | |||
| 3031 | echo $ac_n "checking size of long int""... $ac_c" 1>&6 | ||
| 3032 | echo "configure:3033: checking size of long int" >&5 | ||
| 3033 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then | ||
| 3034 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3035 | else | ||
| 3036 | if test "$cross_compiling" = yes; then | ||
| 3037 | ac_cv_sizeof_long_int=4 | ||
| 3038 | else | ||
| 3039 | cat > conftest.$ac_ext <<EOF | ||
| 3040 | #line 3041 "configure" | ||
| 3041 | #include "confdefs.h" | ||
| 3042 | #include <stdio.h> | ||
| 3043 | main() | ||
| 3044 | { | ||
| 3045 | FILE *f=fopen("conftestval", "w"); | ||
| 3046 | if (!f) exit(1); | ||
| 3047 | fprintf(f, "%d\n", sizeof(long int)); | ||
| 3048 | exit(0); | ||
| 3049 | } | ||
| 3050 | EOF | ||
| 3051 | if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 3052 | then | ||
| 3053 | ac_cv_sizeof_long_int=`cat conftestval` | ||
| 3054 | else | ||
| 3055 | echo "configure: failed program was:" >&5 | ||
| 3056 | cat conftest.$ac_ext >&5 | ||
| 3057 | rm -fr conftest* | ||
| 3058 | ac_cv_sizeof_long_int=0 | ||
| 3059 | fi | ||
| 3060 | rm -fr conftest* | ||
| 3061 | fi | ||
| 3062 | |||
| 3063 | fi | ||
| 3064 | echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 | ||
| 3065 | cat >> confdefs.h <<EOF | ||
| 3066 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
| 3067 | EOF | ||
| 3068 | |||
| 3069 | |||
| 3070 | echo $ac_n "checking size of long long int""... $ac_c" 1>&6 | ||
| 3071 | echo "configure:3072: checking size of long long int" >&5 | ||
| 3072 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then | ||
| 3073 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3074 | else | ||
| 3075 | if test "$cross_compiling" = yes; then | ||
| 3076 | ac_cv_sizeof_long_long_int=8 | ||
| 3077 | else | ||
| 3078 | cat > conftest.$ac_ext <<EOF | ||
| 3079 | #line 3080 "configure" | ||
| 3080 | #include "confdefs.h" | ||
| 3081 | #include <stdio.h> | ||
| 3082 | main() | ||
| 3083 | { | ||
| 3084 | FILE *f=fopen("conftestval", "w"); | ||
| 3085 | if (!f) exit(1); | ||
| 3086 | fprintf(f, "%d\n", sizeof(long long int)); | ||
| 3087 | exit(0); | ||
| 3088 | } | ||
| 3089 | EOF | ||
| 3090 | if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 3091 | then | ||
| 3092 | ac_cv_sizeof_long_long_int=`cat conftestval` | ||
| 3093 | else | ||
| 3094 | echo "configure: failed program was:" >&5 | ||
| 3095 | cat conftest.$ac_ext >&5 | ||
| 3096 | rm -fr conftest* | ||
| 3097 | ac_cv_sizeof_long_long_int=0 | ||
| 3098 | fi | ||
| 3099 | rm -fr conftest* | ||
| 3100 | fi | ||
| 3101 | |||
| 3102 | fi | ||
| 3103 | echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6 | ||
| 3104 | cat >> confdefs.h <<EOF | ||
| 3105 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
| 3106 | EOF | ||
| 3107 | |||
| 3108 | |||
| 3109 | |||
| 3110 | # More checks for data types | ||
| 3111 | echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6 | ||
| 3112 | echo "configure:3113: checking for intXX_t types" >&5 | ||
| 3113 | if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then | ||
| 3114 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3115 | else | ||
| 3116 | |||
| 3117 | cat > conftest.$ac_ext <<EOF | ||
| 3118 | #line 3119 "configure" | ||
| 3119 | #include "confdefs.h" | ||
| 3120 | #include <sys/types.h> | ||
| 3121 | int main() { | ||
| 3122 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
| 3123 | ; return 0; } | ||
| 3124 | EOF | ||
| 3125 | if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3126 | rm -rf conftest* | ||
| 3127 | ac_cv_have_intxx_t="yes" | ||
| 3128 | else | ||
| 3129 | echo "configure: failed program was:" >&5 | ||
| 3130 | cat conftest.$ac_ext >&5 | ||
| 3131 | rm -rf conftest* | ||
| 3132 | ac_cv_have_intxx_t="no" | ||
| 3133 | |||
| 3134 | fi | ||
| 3135 | rm -f conftest* | ||
| 3136 | |||
| 3137 | fi | ||
| 3138 | |||
| 3139 | echo "$ac_t""$ac_cv_have_intxx_t" 1>&6 | ||
| 3140 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
| 3141 | cat >> confdefs.h <<\EOF | ||
| 3142 | #define HAVE_INTXX_T 1 | ||
| 3143 | EOF | ||
| 3144 | |||
| 3145 | have_intxx_t=1 | ||
| 3146 | fi | ||
| 3147 | |||
| 3148 | echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6 | ||
| 3149 | echo "configure:3150: checking for u_intXX_t types" >&5 | ||
| 3150 | if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then | ||
| 3151 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3152 | else | ||
| 3153 | |||
| 3154 | cat > conftest.$ac_ext <<EOF | ||
| 3155 | #line 3156 "configure" | ||
| 3156 | #include "confdefs.h" | ||
| 3157 | #include <sys/types.h> | ||
| 3158 | int main() { | ||
| 3159 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
| 3160 | ; return 0; } | ||
| 3161 | EOF | ||
| 3162 | if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3163 | rm -rf conftest* | ||
| 3164 | ac_cv_have_u_intxx_t="yes" | ||
| 3165 | else | ||
| 3166 | echo "configure: failed program was:" >&5 | ||
| 3167 | cat conftest.$ac_ext >&5 | ||
| 3168 | rm -rf conftest* | ||
| 3169 | ac_cv_have_u_intxx_t="no" | ||
| 3170 | |||
| 3171 | fi | ||
| 3172 | rm -f conftest* | ||
| 3173 | |||
| 3174 | fi | ||
| 3175 | |||
| 3176 | echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6 | ||
| 3177 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
| 3178 | cat >> confdefs.h <<\EOF | ||
| 3179 | #define HAVE_U_INTXX_T 1 | ||
| 3180 | EOF | ||
| 3181 | |||
| 3182 | have_u_intxx_t=1 | ||
| 3183 | fi | ||
| 3184 | |||
| 3185 | |||
| 3186 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
| 3187 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
| 3188 | then | ||
| 3189 | echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6 | ||
| 3190 | echo "configure:3191: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
| 3191 | cat > conftest.$ac_ext <<EOF | ||
| 3192 | #line 3193 "configure" | ||
| 3193 | #include "confdefs.h" | ||
| 3194 | |||
| 3195 | #include <sys/bitypes.h> | ||
| 3196 | |||
| 3197 | int main() { | ||
| 3198 | |||
| 3199 | int8_t a; int16_t b; int32_t c; | ||
| 3200 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
| 3201 | a = b = c = e = f = g = 1; | ||
| 3202 | |||
| 3203 | ; return 0; } | ||
| 3204 | EOF | ||
| 3205 | if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3206 | rm -rf conftest* | ||
| 3207 | |||
| 3208 | cat >> confdefs.h <<\EOF | ||
| 3209 | #define HAVE_U_INTXX_T 1 | ||
| 3210 | EOF | ||
| 3211 | |||
| 3212 | cat >> confdefs.h <<\EOF | ||
| 3213 | #define HAVE_INTXX_T 1 | ||
| 3214 | EOF | ||
| 3215 | |||
| 3216 | echo "$ac_t""yes" 1>&6 | ||
| 3217 | |||
| 3218 | else | ||
| 3219 | echo "configure: failed program was:" >&5 | ||
| 3220 | cat conftest.$ac_ext >&5 | ||
| 3221 | rm -rf conftest* | ||
| 3222 | echo "$ac_t""no" 1>&6 | ||
| 3223 | |||
| 3224 | fi | ||
| 3225 | rm -f conftest* | ||
| 3226 | fi | ||
| 3227 | |||
| 3228 | if test -z "$have_u_intxx_t" ; then | ||
| 3229 | echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6 | ||
| 3230 | echo "configure:3231: checking for uintXX_t types" >&5 | ||
| 3231 | if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then | ||
| 3232 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3233 | else | ||
| 3234 | |||
| 3235 | cat > conftest.$ac_ext <<EOF | ||
| 3236 | #line 3237 "configure" | ||
| 3237 | #include "confdefs.h" | ||
| 3238 | |||
| 3239 | #include <sys/types.h> | ||
| 3240 | |||
| 3241 | int main() { | ||
| 3242 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
| 3243 | ; return 0; } | ||
| 3244 | EOF | ||
| 3245 | if { (eval echo configure:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3246 | rm -rf conftest* | ||
| 3247 | ac_cv_have_uintxx_t="yes" | ||
| 3248 | else | ||
| 3249 | echo "configure: failed program was:" >&5 | ||
| 3250 | cat conftest.$ac_ext >&5 | ||
| 3251 | rm -rf conftest* | ||
| 3252 | ac_cv_have_uintxx_t="no" | ||
| 3253 | |||
| 3254 | fi | ||
| 3255 | rm -f conftest* | ||
| 3256 | |||
| 3257 | fi | ||
| 3258 | |||
| 3259 | echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6 | ||
| 3260 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
| 3261 | cat >> confdefs.h <<\EOF | ||
| 3262 | #define HAVE_UINTXX_T 1 | ||
| 3263 | EOF | ||
| 3264 | |||
| 3265 | fi | ||
| 3266 | fi | ||
| 3267 | |||
| 3268 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 | ||
| 3269 | echo "configure:3270: checking for socklen_t" >&5 | ||
| 3270 | if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then | ||
| 3271 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3272 | else | ||
| 3273 | |||
| 3274 | cat > conftest.$ac_ext <<EOF | ||
| 3275 | #line 3276 "configure" | ||
| 3276 | #include "confdefs.h" | ||
| 3277 | |||
| 3278 | #include <sys/types.h> | ||
| 3279 | #include <sys/socket.h> | ||
| 3280 | |||
| 3281 | int main() { | ||
| 3282 | socklen_t foo; foo = 1235; | ||
| 3283 | ; return 0; } | ||
| 3284 | EOF | ||
| 3285 | if { (eval echo configure:3286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3286 | rm -rf conftest* | ||
| 3287 | ac_cv_have_socklen_t="yes" | ||
| 3288 | else | ||
| 3289 | echo "configure: failed program was:" >&5 | ||
| 3290 | cat conftest.$ac_ext >&5 | ||
| 3291 | rm -rf conftest* | ||
| 3292 | ac_cv_have_socklen_t="no" | ||
| 3293 | |||
| 3294 | fi | ||
| 3295 | rm -f conftest* | ||
| 3296 | |||
| 3297 | fi | ||
| 3298 | |||
| 3299 | echo "$ac_t""$ac_cv_have_socklen_t" 1>&6 | ||
| 3300 | if test "x$ac_cv_have_socklen_t" = "xyes" ; then | ||
| 3301 | cat >> confdefs.h <<\EOF | ||
| 3302 | #define HAVE_SOCKLEN_T 1 | ||
| 3303 | EOF | ||
| 3304 | |||
| 3305 | fi | ||
| 3306 | |||
| 3307 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | ||
| 3308 | echo "configure:3309: checking for size_t" >&5 | ||
| 3309 | if eval "test \"`echo '$''{'ac_cv_have_size_t'+set}'`\" = set"; then | ||
| 3310 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3311 | else | ||
| 3312 | |||
| 3313 | cat > conftest.$ac_ext <<EOF | ||
| 3314 | #line 3315 "configure" | ||
| 3315 | #include "confdefs.h" | ||
| 3316 | |||
| 3317 | #include <sys/types.h> | ||
| 3318 | |||
| 3319 | int main() { | ||
| 3320 | size_t foo; foo = 1235; | ||
| 3321 | ; return 0; } | ||
| 3322 | EOF | ||
| 3323 | if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3324 | rm -rf conftest* | ||
| 3325 | ac_cv_have_size_t="yes" | ||
| 3326 | else | ||
| 3327 | echo "configure: failed program was:" >&5 | ||
| 3328 | cat conftest.$ac_ext >&5 | ||
| 3329 | rm -rf conftest* | ||
| 3330 | ac_cv_have_size_t="no" | ||
| 3331 | |||
| 3332 | fi | ||
| 3333 | rm -f conftest* | ||
| 3334 | |||
| 3335 | fi | ||
| 3336 | |||
| 3337 | echo "$ac_t""$ac_cv_have_size_t" 1>&6 | ||
| 3338 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
| 3339 | cat >> confdefs.h <<\EOF | ||
| 3340 | #define HAVE_SIZE_T 1 | ||
| 3341 | EOF | ||
| 3342 | |||
| 3343 | fi | ||
| 3344 | |||
| 3345 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 | ||
| 3346 | echo "configure:3347: checking for ssize_t" >&5 | ||
| 3347 | if eval "test \"`echo '$''{'ac_cv_have_ssize_t'+set}'`\" = set"; then | ||
| 3348 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3349 | else | ||
| 3350 | |||
| 3351 | cat > conftest.$ac_ext <<EOF | ||
| 3352 | #line 3353 "configure" | ||
| 3353 | #include "confdefs.h" | ||
| 3354 | |||
| 3355 | #include <sys/types.h> | ||
| 3356 | |||
| 3357 | int main() { | ||
| 3358 | ssize_t foo; foo = 1235; | ||
| 3359 | ; return 0; } | ||
| 3360 | EOF | ||
| 3361 | if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3362 | rm -rf conftest* | ||
| 3363 | ac_cv_have_ssize_t="yes" | ||
| 3364 | else | ||
| 3365 | echo "configure: failed program was:" >&5 | ||
| 3366 | cat conftest.$ac_ext >&5 | ||
| 3367 | rm -rf conftest* | ||
| 3368 | ac_cv_have_ssize_t="no" | ||
| 3369 | |||
| 3370 | fi | ||
| 3371 | rm -f conftest* | ||
| 3372 | |||
| 3373 | fi | ||
| 3374 | |||
| 3375 | echo "$ac_t""$ac_cv_have_ssize_t" 1>&6 | ||
| 3376 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
| 3377 | cat >> confdefs.h <<\EOF | ||
| 3378 | #define HAVE_SSIZE_T 1 | ||
| 3379 | EOF | ||
| 3380 | |||
| 3381 | fi | ||
| 3382 | |||
| 3383 | echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6 | ||
| 3384 | echo "configure:3385: checking for sa_family_t" >&5 | ||
| 3385 | if eval "test \"`echo '$''{'ac_cv_have_sa_family_t'+set}'`\" = set"; then | ||
| 3386 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3387 | else | ||
| 3388 | |||
| 3389 | cat > conftest.$ac_ext <<EOF | ||
| 3390 | #line 3391 "configure" | ||
| 3391 | #include "confdefs.h" | ||
| 3392 | |||
| 3393 | #include <sys/types.h> | ||
| 3394 | #include <sys/socket.h> | ||
| 3395 | |||
| 3396 | int main() { | ||
| 3397 | sa_family_t foo; foo = 1235; | ||
| 3398 | ; return 0; } | ||
| 3399 | EOF | ||
| 3400 | if { (eval echo configure:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3401 | rm -rf conftest* | ||
| 3402 | ac_cv_have_sa_family_t="yes" | ||
| 3403 | else | ||
| 3404 | echo "configure: failed program was:" >&5 | ||
| 3405 | cat conftest.$ac_ext >&5 | ||
| 3406 | rm -rf conftest* | ||
| 3407 | ac_cv_have_sa_family_t="no" | ||
| 3408 | |||
| 3409 | fi | ||
| 3410 | rm -f conftest* | ||
| 3411 | |||
| 3412 | fi | ||
| 3413 | |||
| 3414 | echo "$ac_t""$ac_cv_have_sa_family_t" 1>&6 | ||
| 3415 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
| 3416 | cat >> confdefs.h <<\EOF | ||
| 3417 | #define HAVE_SA_FAMILY_T 1 | ||
| 3418 | EOF | ||
| 3419 | |||
| 3420 | fi | ||
| 3421 | |||
| 3422 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | ||
| 3423 | echo "configure:3424: checking for pid_t" >&5 | ||
| 3424 | if eval "test \"`echo '$''{'ac_cv_have_pid_t'+set}'`\" = set"; then | ||
| 3425 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3426 | else | ||
| 3427 | |||
| 3428 | cat > conftest.$ac_ext <<EOF | ||
| 3429 | #line 3430 "configure" | ||
| 3430 | #include "confdefs.h" | ||
| 3431 | |||
| 3432 | #include <sys/types.h> | ||
| 3433 | |||
| 3434 | int main() { | ||
| 3435 | pid_t foo; foo = 1235; | ||
| 3436 | ; return 0; } | ||
| 3437 | EOF | ||
| 3438 | if { (eval echo configure:3439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3439 | rm -rf conftest* | ||
| 3440 | ac_cv_have_pid_t="yes" | ||
| 3441 | else | ||
| 3442 | echo "configure: failed program was:" >&5 | ||
| 3443 | cat conftest.$ac_ext >&5 | ||
| 3444 | rm -rf conftest* | ||
| 3445 | ac_cv_have_pid_t="no" | ||
| 3446 | |||
| 3447 | fi | ||
| 3448 | rm -f conftest* | ||
| 3449 | |||
| 3450 | fi | ||
| 3451 | |||
| 3452 | echo "$ac_t""$ac_cv_have_pid_t" 1>&6 | ||
| 3453 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
| 3454 | cat >> confdefs.h <<\EOF | ||
| 3455 | #define HAVE_PID_T 1 | ||
| 3456 | EOF | ||
| 3457 | |||
| 3458 | fi | ||
| 3459 | |||
| 3460 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | ||
| 3461 | echo "configure:3462: checking for mode_t" >&5 | ||
| 3462 | if eval "test \"`echo '$''{'ac_cv_have_mode_t'+set}'`\" = set"; then | ||
| 3463 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3464 | else | ||
| 3465 | |||
| 3466 | cat > conftest.$ac_ext <<EOF | ||
| 3467 | #line 3468 "configure" | ||
| 3468 | #include "confdefs.h" | ||
| 3469 | |||
| 3470 | #include <sys/types.h> | ||
| 3471 | |||
| 3472 | int main() { | ||
| 3473 | mode_t foo; foo = 1235; | ||
| 3474 | ; return 0; } | ||
| 3475 | EOF | ||
| 3476 | if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3477 | rm -rf conftest* | ||
| 3478 | ac_cv_have_mode_t="yes" | ||
| 3479 | else | ||
| 3480 | echo "configure: failed program was:" >&5 | ||
| 3481 | cat conftest.$ac_ext >&5 | ||
| 3482 | rm -rf conftest* | ||
| 3483 | ac_cv_have_mode_t="no" | ||
| 3484 | |||
| 3485 | fi | ||
| 3486 | rm -f conftest* | ||
| 3487 | |||
| 3488 | fi | ||
| 3489 | |||
| 3490 | echo "$ac_t""$ac_cv_have_mode_t" 1>&6 | ||
| 3491 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
| 3492 | cat >> confdefs.h <<\EOF | ||
| 3493 | #define HAVE_MODE_T 1 | ||
| 3494 | EOF | ||
| 3495 | |||
| 3496 | fi | ||
| 3497 | |||
| 3498 | |||
| 3499 | echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6 | ||
| 3500 | echo "configure:3501: checking for struct sockaddr_storage" >&5 | ||
| 3501 | if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_storage'+set}'`\" = set"; then | ||
| 3502 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3503 | else | ||
| 3504 | |||
| 3505 | cat > conftest.$ac_ext <<EOF | ||
| 3506 | #line 3507 "configure" | ||
| 3507 | #include "confdefs.h" | ||
| 3508 | |||
| 3509 | #include <sys/types.h> | ||
| 3510 | #include <sys/socket.h> | ||
| 3511 | |||
| 3512 | int main() { | ||
| 3513 | struct sockaddr_storage s; | ||
| 3514 | ; return 0; } | ||
| 3515 | EOF | ||
| 3516 | if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3517 | rm -rf conftest* | ||
| 3518 | ac_cv_have_struct_sockaddr_storage="yes" | ||
| 3519 | else | ||
| 3520 | echo "configure: failed program was:" >&5 | ||
| 3521 | cat conftest.$ac_ext >&5 | ||
| 3522 | rm -rf conftest* | ||
| 3523 | ac_cv_have_struct_sockaddr_storage="no" | ||
| 3524 | |||
| 3525 | fi | ||
| 3526 | rm -f conftest* | ||
| 3527 | |||
| 3528 | fi | ||
| 3529 | |||
| 3530 | echo "$ac_t""$ac_cv_have_struct_sockaddr_storage" 1>&6 | ||
| 3531 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
| 3532 | cat >> confdefs.h <<\EOF | ||
| 3533 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
| 3534 | EOF | ||
| 3535 | |||
| 3536 | fi | ||
| 3537 | |||
| 3538 | echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6 | ||
| 3539 | echo "configure:3540: checking for struct sockaddr_in6" >&5 | ||
| 3540 | if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_in6'+set}'`\" = set"; then | ||
| 3541 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3542 | else | ||
| 3543 | |||
| 3544 | cat > conftest.$ac_ext <<EOF | ||
| 3545 | #line 3546 "configure" | ||
| 3546 | #include "confdefs.h" | ||
| 3547 | |||
| 3548 | #include <sys/types.h> | ||
| 3549 | #include <netinet/in.h> | ||
| 3550 | |||
| 3551 | int main() { | ||
| 3552 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
| 3553 | ; return 0; } | ||
| 3554 | EOF | ||
| 3555 | if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3556 | rm -rf conftest* | ||
| 3557 | ac_cv_have_struct_sockaddr_in6="yes" | ||
| 3558 | else | ||
| 3559 | echo "configure: failed program was:" >&5 | ||
| 3560 | cat conftest.$ac_ext >&5 | ||
| 3561 | rm -rf conftest* | ||
| 3562 | ac_cv_have_struct_sockaddr_in6="no" | ||
| 3563 | |||
| 3564 | fi | ||
| 3565 | rm -f conftest* | ||
| 3566 | |||
| 3567 | fi | ||
| 3568 | |||
| 3569 | echo "$ac_t""$ac_cv_have_struct_sockaddr_in6" 1>&6 | ||
| 3570 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
| 3571 | cat >> confdefs.h <<\EOF | ||
| 3572 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
| 3573 | EOF | ||
| 3574 | |||
| 3575 | fi | ||
| 3576 | |||
| 3577 | echo $ac_n "checking for struct in6_addr""... $ac_c" 1>&6 | ||
| 3578 | echo "configure:3579: checking for struct in6_addr" >&5 | ||
| 3579 | if eval "test \"`echo '$''{'ac_cv_have_struct_in6_addr'+set}'`\" = set"; then | ||
| 3580 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3581 | else | ||
| 3582 | |||
| 3583 | cat > conftest.$ac_ext <<EOF | ||
| 3584 | #line 3585 "configure" | ||
| 3585 | #include "confdefs.h" | ||
| 3586 | |||
| 3587 | #include <sys/types.h> | ||
| 3588 | #include <netinet/in.h> | ||
| 3589 | |||
| 3590 | int main() { | ||
| 3591 | struct in6_addr s; s.s6_addr[0] = 0; | ||
| 3592 | ; return 0; } | ||
| 3593 | EOF | ||
| 3594 | if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3595 | rm -rf conftest* | ||
| 3596 | ac_cv_have_struct_in6_addr="yes" | ||
| 3597 | else | ||
| 3598 | echo "configure: failed program was:" >&5 | ||
| 3599 | cat conftest.$ac_ext >&5 | ||
| 3600 | rm -rf conftest* | ||
| 3601 | ac_cv_have_struct_in6_addr="no" | ||
| 3602 | |||
| 3603 | fi | ||
| 3604 | rm -f conftest* | ||
| 3605 | |||
| 3606 | fi | ||
| 3607 | |||
| 3608 | echo "$ac_t""$ac_cv_have_struct_in6_addr" 1>&6 | ||
| 3609 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
| 3610 | cat >> confdefs.h <<\EOF | ||
| 3611 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
| 3612 | EOF | ||
| 3613 | |||
| 3614 | fi | ||
| 3615 | |||
| 3616 | echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 | ||
| 3617 | echo "configure:3618: checking for struct addrinfo" >&5 | ||
| 3618 | if eval "test \"`echo '$''{'ac_cv_have_struct_addrinfo'+set}'`\" = set"; then | ||
| 3619 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3620 | else | ||
| 3621 | |||
| 3622 | cat > conftest.$ac_ext <<EOF | ||
| 3623 | #line 3624 "configure" | ||
| 3624 | #include "confdefs.h" | ||
| 3625 | |||
| 3626 | #include <sys/types.h> | ||
| 3627 | #include <sys/socket.h> | ||
| 3628 | #include <netdb.h> | ||
| 3629 | |||
| 3630 | int main() { | ||
| 3631 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
| 3632 | ; return 0; } | ||
| 3633 | EOF | ||
| 3634 | if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 3635 | rm -rf conftest* | ||
| 3636 | ac_cv_have_struct_addrinfo="yes" | ||
| 3637 | else | ||
| 3638 | echo "configure: failed program was:" >&5 | ||
| 3639 | cat conftest.$ac_ext >&5 | ||
| 3640 | rm -rf conftest* | ||
| 3641 | ac_cv_have_struct_addrinfo="no" | ||
| 3642 | |||
| 3643 | fi | ||
| 3644 | rm -f conftest* | ||
| 3645 | |||
| 3646 | fi | ||
| 3647 | |||
| 3648 | echo "$ac_t""$ac_cv_have_struct_addrinfo" 1>&6 | ||
| 3649 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
| 3650 | cat >> confdefs.h <<\EOF | ||
| 3651 | #define HAVE_STRUCT_ADDRINFO 1 | ||
| 3652 | EOF | ||
| 3653 | |||
| 3654 | fi | ||
| 3655 | |||
| 3656 | |||
| 3657 | # Checks for structure members | ||
| 3658 | |||
| 3659 | |||
| 3660 | # look for field 'ut_host' in header 'utmp.h' | ||
| 3661 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 3662 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
| 3663 | echo $ac_n "checking for ut_host field in utmp.h""... $ac_c" 1>&6 | ||
| 3664 | echo "configure:3665: checking for ut_host field in utmp.h" >&5 | ||
| 3665 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3666 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3667 | else | ||
| 3668 | |||
| 3669 | cat > conftest.$ac_ext <<EOF | ||
| 3670 | #line 3671 "configure" | ||
| 3671 | #include "confdefs.h" | ||
| 3672 | #include <utmp.h> | ||
| 3673 | EOF | ||
| 3674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3675 | egrep "ut_host" >/dev/null 2>&1; then | ||
| 3676 | rm -rf conftest* | ||
| 3677 | eval "$ossh_varname=yes" | ||
| 3678 | else | ||
| 3679 | rm -rf conftest* | ||
| 3680 | eval "$ossh_varname=no" | ||
| 3681 | fi | ||
| 3682 | rm -f conftest* | ||
| 3683 | |||
| 3684 | fi | ||
| 3685 | |||
| 3686 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3687 | if test -n "`echo $ossh_varname`"; then | ||
| 3688 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3689 | if test "x$ossh_result" = "xyes"; then | ||
| 3690 | cat >> confdefs.h <<\EOF | ||
| 3691 | #define HAVE_HOST_IN_UTMP 1 | ||
| 3692 | EOF | ||
| 3693 | |||
| 3694 | fi | ||
| 3695 | else | ||
| 3696 | echo "$ac_t""no" 1>&6 | ||
| 3697 | fi | ||
| 3698 | |||
| 3699 | |||
| 3700 | # look for field 'ut_host' in header 'utmpx.h' | ||
| 3701 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 3702 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
| 3703 | echo $ac_n "checking for ut_host field in utmpx.h""... $ac_c" 1>&6 | ||
| 3704 | echo "configure:3705: checking for ut_host field in utmpx.h" >&5 | ||
| 3705 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3706 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3707 | else | ||
| 3708 | |||
| 3709 | cat > conftest.$ac_ext <<EOF | ||
| 3710 | #line 3711 "configure" | ||
| 3711 | #include "confdefs.h" | ||
| 3712 | #include <utmpx.h> | ||
| 3713 | EOF | ||
| 3714 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3715 | egrep "ut_host" >/dev/null 2>&1; then | ||
| 3716 | rm -rf conftest* | ||
| 3717 | eval "$ossh_varname=yes" | ||
| 3718 | else | ||
| 3719 | rm -rf conftest* | ||
| 3720 | eval "$ossh_varname=no" | ||
| 3721 | fi | ||
| 3722 | rm -f conftest* | ||
| 3723 | |||
| 3724 | fi | ||
| 3725 | |||
| 3726 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3727 | if test -n "`echo $ossh_varname`"; then | ||
| 3728 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3729 | if test "x$ossh_result" = "xyes"; then | ||
| 3730 | cat >> confdefs.h <<\EOF | ||
| 3731 | #define HAVE_HOST_IN_UTMPX 1 | ||
| 3732 | EOF | ||
| 3733 | |||
| 3734 | fi | ||
| 3735 | else | ||
| 3736 | echo "$ac_t""no" 1>&6 | ||
| 3737 | fi | ||
| 3738 | |||
| 3739 | |||
| 3740 | # look for field 'syslen' in header 'utmpx.h' | ||
| 3741 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 3742 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
| 3743 | echo $ac_n "checking for syslen field in utmpx.h""... $ac_c" 1>&6 | ||
| 3744 | echo "configure:3745: checking for syslen field in utmpx.h" >&5 | ||
| 3745 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3746 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3747 | else | ||
| 3748 | |||
| 3749 | cat > conftest.$ac_ext <<EOF | ||
| 3750 | #line 3751 "configure" | ||
| 3751 | #include "confdefs.h" | ||
| 3752 | #include <utmpx.h> | ||
| 3753 | EOF | ||
| 3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3755 | egrep "syslen" >/dev/null 2>&1; then | ||
| 3756 | rm -rf conftest* | ||
| 3757 | eval "$ossh_varname=yes" | ||
| 3758 | else | ||
| 3759 | rm -rf conftest* | ||
| 3760 | eval "$ossh_varname=no" | ||
| 3761 | fi | ||
| 3762 | rm -f conftest* | ||
| 3763 | |||
| 3764 | fi | ||
| 3765 | |||
| 3766 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3767 | if test -n "`echo $ossh_varname`"; then | ||
| 3768 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3769 | if test "x$ossh_result" = "xyes"; then | ||
| 3770 | cat >> confdefs.h <<\EOF | ||
| 3771 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
| 3772 | EOF | ||
| 3773 | |||
| 3774 | fi | ||
| 3775 | else | ||
| 3776 | echo "$ac_t""no" 1>&6 | ||
| 3777 | fi | ||
| 3778 | |||
| 3779 | |||
| 3780 | # look for field 'ut_pid' in header 'utmp.h' | ||
| 3781 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 3782 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
| 3783 | echo $ac_n "checking for ut_pid field in utmp.h""... $ac_c" 1>&6 | ||
| 3784 | echo "configure:3785: checking for ut_pid field in utmp.h" >&5 | ||
| 3785 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3786 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3787 | else | ||
| 3788 | |||
| 3789 | cat > conftest.$ac_ext <<EOF | ||
| 3790 | #line 3791 "configure" | ||
| 3791 | #include "confdefs.h" | ||
| 3792 | #include <utmp.h> | ||
| 3793 | EOF | ||
| 3794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3795 | egrep "ut_pid" >/dev/null 2>&1; then | ||
| 3796 | rm -rf conftest* | ||
| 3797 | eval "$ossh_varname=yes" | ||
| 3798 | else | ||
| 3799 | rm -rf conftest* | ||
| 3800 | eval "$ossh_varname=no" | ||
| 3801 | fi | ||
| 3802 | rm -f conftest* | ||
| 3803 | |||
| 3804 | fi | ||
| 3805 | |||
| 3806 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3807 | if test -n "`echo $ossh_varname`"; then | ||
| 3808 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3809 | if test "x$ossh_result" = "xyes"; then | ||
| 3810 | cat >> confdefs.h <<\EOF | ||
| 3811 | #define HAVE_PID_IN_UTMP 1 | ||
| 3812 | EOF | ||
| 3813 | |||
| 3814 | fi | ||
| 3815 | else | ||
| 3816 | echo "$ac_t""no" 1>&6 | ||
| 3817 | fi | ||
| 3818 | |||
| 3819 | |||
| 3820 | # look for field 'ut_type' in header 'utmp.h' | ||
| 3821 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 3822 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
| 3823 | echo $ac_n "checking for ut_type field in utmp.h""... $ac_c" 1>&6 | ||
| 3824 | echo "configure:3825: checking for ut_type field in utmp.h" >&5 | ||
| 3825 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3826 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3827 | else | ||
| 3828 | |||
| 3829 | cat > conftest.$ac_ext <<EOF | ||
| 3830 | #line 3831 "configure" | ||
| 3831 | #include "confdefs.h" | ||
| 3832 | #include <utmp.h> | ||
| 3833 | EOF | ||
| 3834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3835 | egrep "ut_type" >/dev/null 2>&1; then | ||
| 3836 | rm -rf conftest* | ||
| 3837 | eval "$ossh_varname=yes" | ||
| 3838 | else | ||
| 3839 | rm -rf conftest* | ||
| 3840 | eval "$ossh_varname=no" | ||
| 3841 | fi | ||
| 3842 | rm -f conftest* | ||
| 3843 | |||
| 3844 | fi | ||
| 3845 | |||
| 3846 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3847 | if test -n "`echo $ossh_varname`"; then | ||
| 3848 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3849 | if test "x$ossh_result" = "xyes"; then | ||
| 3850 | cat >> confdefs.h <<\EOF | ||
| 3851 | #define HAVE_TYPE_IN_UTMP 1 | ||
| 3852 | EOF | ||
| 3853 | |||
| 3854 | fi | ||
| 3855 | else | ||
| 3856 | echo "$ac_t""no" 1>&6 | ||
| 3857 | fi | ||
| 3858 | |||
| 3859 | |||
| 3860 | # look for field 'ut_type' in header 'utmpx.h' | ||
| 3861 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 3862 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
| 3863 | echo $ac_n "checking for ut_type field in utmpx.h""... $ac_c" 1>&6 | ||
| 3864 | echo "configure:3865: checking for ut_type field in utmpx.h" >&5 | ||
| 3865 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3866 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3867 | else | ||
| 3868 | |||
| 3869 | cat > conftest.$ac_ext <<EOF | ||
| 3870 | #line 3871 "configure" | ||
| 3871 | #include "confdefs.h" | ||
| 3872 | #include <utmpx.h> | ||
| 3873 | EOF | ||
| 3874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3875 | egrep "ut_type" >/dev/null 2>&1; then | ||
| 3876 | rm -rf conftest* | ||
| 3877 | eval "$ossh_varname=yes" | ||
| 3878 | else | ||
| 3879 | rm -rf conftest* | ||
| 3880 | eval "$ossh_varname=no" | ||
| 3881 | fi | ||
| 3882 | rm -f conftest* | ||
| 3883 | |||
| 3884 | fi | ||
| 3885 | |||
| 3886 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3887 | if test -n "`echo $ossh_varname`"; then | ||
| 3888 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3889 | if test "x$ossh_result" = "xyes"; then | ||
| 3890 | cat >> confdefs.h <<\EOF | ||
| 3891 | #define HAVE_TYPE_IN_UTMPX 1 | ||
| 3892 | EOF | ||
| 3893 | |||
| 3894 | fi | ||
| 3895 | else | ||
| 3896 | echo "$ac_t""no" 1>&6 | ||
| 3897 | fi | ||
| 3898 | |||
| 3899 | |||
| 3900 | # look for field 'ut_tv' in header 'utmp.h' | ||
| 3901 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 3902 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
| 3903 | echo $ac_n "checking for ut_tv field in utmp.h""... $ac_c" 1>&6 | ||
| 3904 | echo "configure:3905: checking for ut_tv field in utmp.h" >&5 | ||
| 3905 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3906 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3907 | else | ||
| 3908 | |||
| 3909 | cat > conftest.$ac_ext <<EOF | ||
| 3910 | #line 3911 "configure" | ||
| 3911 | #include "confdefs.h" | ||
| 3912 | #include <utmp.h> | ||
| 3913 | EOF | ||
| 3914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3915 | egrep "ut_tv" >/dev/null 2>&1; then | ||
| 3916 | rm -rf conftest* | ||
| 3917 | eval "$ossh_varname=yes" | ||
| 3918 | else | ||
| 3919 | rm -rf conftest* | ||
| 3920 | eval "$ossh_varname=no" | ||
| 3921 | fi | ||
| 3922 | rm -f conftest* | ||
| 3923 | |||
| 3924 | fi | ||
| 3925 | |||
| 3926 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3927 | if test -n "`echo $ossh_varname`"; then | ||
| 3928 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3929 | if test "x$ossh_result" = "xyes"; then | ||
| 3930 | cat >> confdefs.h <<\EOF | ||
| 3931 | #define HAVE_TV_IN_UTMP 1 | ||
| 3932 | EOF | ||
| 3933 | |||
| 3934 | fi | ||
| 3935 | else | ||
| 3936 | echo "$ac_t""no" 1>&6 | ||
| 3937 | fi | ||
| 3938 | |||
| 3939 | |||
| 3940 | # look for field 'ut_id' in header 'utmp.h' | ||
| 3941 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 3942 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
| 3943 | echo $ac_n "checking for ut_id field in utmp.h""... $ac_c" 1>&6 | ||
| 3944 | echo "configure:3945: checking for ut_id field in utmp.h" >&5 | ||
| 3945 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3946 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3947 | else | ||
| 3948 | |||
| 3949 | cat > conftest.$ac_ext <<EOF | ||
| 3950 | #line 3951 "configure" | ||
| 3951 | #include "confdefs.h" | ||
| 3952 | #include <utmp.h> | ||
| 3953 | EOF | ||
| 3954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3955 | egrep "ut_id" >/dev/null 2>&1; then | ||
| 3956 | rm -rf conftest* | ||
| 3957 | eval "$ossh_varname=yes" | ||
| 3958 | else | ||
| 3959 | rm -rf conftest* | ||
| 3960 | eval "$ossh_varname=no" | ||
| 3961 | fi | ||
| 3962 | rm -f conftest* | ||
| 3963 | |||
| 3964 | fi | ||
| 3965 | |||
| 3966 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 3967 | if test -n "`echo $ossh_varname`"; then | ||
| 3968 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 3969 | if test "x$ossh_result" = "xyes"; then | ||
| 3970 | cat >> confdefs.h <<\EOF | ||
| 3971 | #define HAVE_ID_IN_UTMP 1 | ||
| 3972 | EOF | ||
| 3973 | |||
| 3974 | fi | ||
| 3975 | else | ||
| 3976 | echo "$ac_t""no" 1>&6 | ||
| 3977 | fi | ||
| 3978 | |||
| 3979 | |||
| 3980 | # look for field 'ut_id' in header 'utmpx.h' | ||
| 3981 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 3982 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
| 3983 | echo $ac_n "checking for ut_id field in utmpx.h""... $ac_c" 1>&6 | ||
| 3984 | echo "configure:3985: checking for ut_id field in utmpx.h" >&5 | ||
| 3985 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 3986 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3987 | else | ||
| 3988 | |||
| 3989 | cat > conftest.$ac_ext <<EOF | ||
| 3990 | #line 3991 "configure" | ||
| 3991 | #include "confdefs.h" | ||
| 3992 | #include <utmpx.h> | ||
| 3993 | EOF | ||
| 3994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3995 | egrep "ut_id" >/dev/null 2>&1; then | ||
| 3996 | rm -rf conftest* | ||
| 3997 | eval "$ossh_varname=yes" | ||
| 3998 | else | ||
| 3999 | rm -rf conftest* | ||
| 4000 | eval "$ossh_varname=no" | ||
| 4001 | fi | ||
| 4002 | rm -f conftest* | ||
| 4003 | |||
| 4004 | fi | ||
| 4005 | |||
| 4006 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4007 | if test -n "`echo $ossh_varname`"; then | ||
| 4008 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4009 | if test "x$ossh_result" = "xyes"; then | ||
| 4010 | cat >> confdefs.h <<\EOF | ||
| 4011 | #define HAVE_ID_IN_UTMPX 1 | ||
| 4012 | EOF | ||
| 4013 | |||
| 4014 | fi | ||
| 4015 | else | ||
| 4016 | echo "$ac_t""no" 1>&6 | ||
| 4017 | fi | ||
| 4018 | |||
| 4019 | |||
| 4020 | # look for field 'ut_addr' in header 'utmp.h' | ||
| 4021 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 4022 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
| 4023 | echo $ac_n "checking for ut_addr field in utmp.h""... $ac_c" 1>&6 | ||
| 4024 | echo "configure:4025: checking for ut_addr field in utmp.h" >&5 | ||
| 4025 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4026 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4027 | else | ||
| 4028 | |||
| 4029 | cat > conftest.$ac_ext <<EOF | ||
| 4030 | #line 4031 "configure" | ||
| 4031 | #include "confdefs.h" | ||
| 4032 | #include <utmp.h> | ||
| 4033 | EOF | ||
| 4034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4035 | egrep "ut_addr" >/dev/null 2>&1; then | ||
| 4036 | rm -rf conftest* | ||
| 4037 | eval "$ossh_varname=yes" | ||
| 4038 | else | ||
| 4039 | rm -rf conftest* | ||
| 4040 | eval "$ossh_varname=no" | ||
| 4041 | fi | ||
| 4042 | rm -f conftest* | ||
| 4043 | |||
| 4044 | fi | ||
| 4045 | |||
| 4046 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4047 | if test -n "`echo $ossh_varname`"; then | ||
| 4048 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4049 | if test "x$ossh_result" = "xyes"; then | ||
| 4050 | cat >> confdefs.h <<\EOF | ||
| 4051 | #define HAVE_ADDR_IN_UTMP 1 | ||
| 4052 | EOF | ||
| 4053 | |||
| 4054 | fi | ||
| 4055 | else | ||
| 4056 | echo "$ac_t""no" 1>&6 | ||
| 4057 | fi | ||
| 4058 | |||
| 4059 | |||
| 4060 | # look for field 'ut_addr' in header 'utmpx.h' | ||
| 4061 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 4062 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
| 4063 | echo $ac_n "checking for ut_addr field in utmpx.h""... $ac_c" 1>&6 | ||
| 4064 | echo "configure:4065: checking for ut_addr field in utmpx.h" >&5 | ||
| 4065 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4066 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4067 | else | ||
| 4068 | |||
| 4069 | cat > conftest.$ac_ext <<EOF | ||
| 4070 | #line 4071 "configure" | ||
| 4071 | #include "confdefs.h" | ||
| 4072 | #include <utmpx.h> | ||
| 4073 | EOF | ||
| 4074 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4075 | egrep "ut_addr" >/dev/null 2>&1; then | ||
| 4076 | rm -rf conftest* | ||
| 4077 | eval "$ossh_varname=yes" | ||
| 4078 | else | ||
| 4079 | rm -rf conftest* | ||
| 4080 | eval "$ossh_varname=no" | ||
| 4081 | fi | ||
| 4082 | rm -f conftest* | ||
| 4083 | |||
| 4084 | fi | ||
| 4085 | |||
| 4086 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4087 | if test -n "`echo $ossh_varname`"; then | ||
| 4088 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4089 | if test "x$ossh_result" = "xyes"; then | ||
| 4090 | cat >> confdefs.h <<\EOF | ||
| 4091 | #define HAVE_ADDR_IN_UTMPX 1 | ||
| 4092 | EOF | ||
| 4093 | |||
| 4094 | fi | ||
| 4095 | else | ||
| 4096 | echo "$ac_t""no" 1>&6 | ||
| 4097 | fi | ||
| 4098 | |||
| 4099 | |||
| 4100 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
| 4101 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 4102 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
| 4103 | echo $ac_n "checking for ut_addr_v6 field in utmp.h""... $ac_c" 1>&6 | ||
| 4104 | echo "configure:4105: checking for ut_addr_v6 field in utmp.h" >&5 | ||
| 4105 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4106 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4107 | else | ||
| 4108 | |||
| 4109 | cat > conftest.$ac_ext <<EOF | ||
| 4110 | #line 4111 "configure" | ||
| 4111 | #include "confdefs.h" | ||
| 4112 | #include <utmp.h> | ||
| 4113 | EOF | ||
| 4114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4115 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
| 4116 | rm -rf conftest* | ||
| 4117 | eval "$ossh_varname=yes" | ||
| 4118 | else | ||
| 4119 | rm -rf conftest* | ||
| 4120 | eval "$ossh_varname=no" | ||
| 4121 | fi | ||
| 4122 | rm -f conftest* | ||
| 4123 | |||
| 4124 | fi | ||
| 4125 | |||
| 4126 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4127 | if test -n "`echo $ossh_varname`"; then | ||
| 4128 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4129 | if test "x$ossh_result" = "xyes"; then | ||
| 4130 | cat >> confdefs.h <<\EOF | ||
| 4131 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
| 4132 | EOF | ||
| 4133 | |||
| 4134 | fi | ||
| 4135 | else | ||
| 4136 | echo "$ac_t""no" 1>&6 | ||
| 4137 | fi | ||
| 4138 | |||
| 4139 | |||
| 4140 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
| 4141 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 4142 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
| 4143 | echo $ac_n "checking for ut_addr_v6 field in utmpx.h""... $ac_c" 1>&6 | ||
| 4144 | echo "configure:4145: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
| 4145 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4146 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4147 | else | ||
| 4148 | |||
| 4149 | cat > conftest.$ac_ext <<EOF | ||
| 4150 | #line 4151 "configure" | ||
| 4151 | #include "confdefs.h" | ||
| 4152 | #include <utmpx.h> | ||
| 4153 | EOF | ||
| 4154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4155 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
| 4156 | rm -rf conftest* | ||
| 4157 | eval "$ossh_varname=yes" | ||
| 4158 | else | ||
| 4159 | rm -rf conftest* | ||
| 4160 | eval "$ossh_varname=no" | ||
| 4161 | fi | ||
| 4162 | rm -f conftest* | ||
| 4163 | |||
| 4164 | fi | ||
| 4165 | |||
| 4166 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4167 | if test -n "`echo $ossh_varname`"; then | ||
| 4168 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4169 | if test "x$ossh_result" = "xyes"; then | ||
| 4170 | cat >> confdefs.h <<\EOF | ||
| 4171 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
| 4172 | EOF | ||
| 4173 | |||
| 4174 | fi | ||
| 4175 | else | ||
| 4176 | echo "$ac_t""no" 1>&6 | ||
| 4177 | fi | ||
| 4178 | |||
| 4179 | |||
| 4180 | # look for field 'ut_exit' in header 'utmp.h' | ||
| 4181 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 4182 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
| 4183 | echo $ac_n "checking for ut_exit field in utmp.h""... $ac_c" 1>&6 | ||
| 4184 | echo "configure:4185: checking for ut_exit field in utmp.h" >&5 | ||
| 4185 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4186 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4187 | else | ||
| 4188 | |||
| 4189 | cat > conftest.$ac_ext <<EOF | ||
| 4190 | #line 4191 "configure" | ||
| 4191 | #include "confdefs.h" | ||
| 4192 | #include <utmp.h> | ||
| 4193 | EOF | ||
| 4194 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4195 | egrep "ut_exit" >/dev/null 2>&1; then | ||
| 4196 | rm -rf conftest* | ||
| 4197 | eval "$ossh_varname=yes" | ||
| 4198 | else | ||
| 4199 | rm -rf conftest* | ||
| 4200 | eval "$ossh_varname=no" | ||
| 4201 | fi | ||
| 4202 | rm -f conftest* | ||
| 4203 | |||
| 4204 | fi | ||
| 4205 | |||
| 4206 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4207 | if test -n "`echo $ossh_varname`"; then | ||
| 4208 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4209 | if test "x$ossh_result" = "xyes"; then | ||
| 4210 | cat >> confdefs.h <<\EOF | ||
| 4211 | #define HAVE_EXIT_IN_UTMP 1 | ||
| 4212 | EOF | ||
| 4213 | |||
| 4214 | fi | ||
| 4215 | else | ||
| 4216 | echo "$ac_t""no" 1>&6 | ||
| 4217 | fi | ||
| 4218 | |||
| 4219 | |||
| 4220 | # look for field 'ut_time' in header 'utmp.h' | ||
| 4221 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 4222 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
| 4223 | echo $ac_n "checking for ut_time field in utmp.h""... $ac_c" 1>&6 | ||
| 4224 | echo "configure:4225: checking for ut_time field in utmp.h" >&5 | ||
| 4225 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4226 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4227 | else | ||
| 4228 | |||
| 4229 | cat > conftest.$ac_ext <<EOF | ||
| 4230 | #line 4231 "configure" | ||
| 4231 | #include "confdefs.h" | ||
| 4232 | #include <utmp.h> | ||
| 4233 | EOF | ||
| 4234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4235 | egrep "ut_time" >/dev/null 2>&1; then | ||
| 4236 | rm -rf conftest* | ||
| 4237 | eval "$ossh_varname=yes" | ||
| 4238 | else | ||
| 4239 | rm -rf conftest* | ||
| 4240 | eval "$ossh_varname=no" | ||
| 4241 | fi | ||
| 4242 | rm -f conftest* | ||
| 4243 | |||
| 4244 | fi | ||
| 4245 | |||
| 4246 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4247 | if test -n "`echo $ossh_varname`"; then | ||
| 4248 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4249 | if test "x$ossh_result" = "xyes"; then | ||
| 4250 | cat >> confdefs.h <<\EOF | ||
| 4251 | #define HAVE_TIME_IN_UTMP 1 | ||
| 4252 | EOF | ||
| 4253 | |||
| 4254 | fi | ||
| 4255 | else | ||
| 4256 | echo "$ac_t""no" 1>&6 | ||
| 4257 | fi | ||
| 4258 | |||
| 4259 | |||
| 4260 | # look for field 'ut_time' in header 'utmpx.h' | ||
| 4261 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 4262 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
| 4263 | echo $ac_n "checking for ut_time field in utmpx.h""... $ac_c" 1>&6 | ||
| 4264 | echo "configure:4265: checking for ut_time field in utmpx.h" >&5 | ||
| 4265 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4266 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4267 | else | ||
| 4268 | |||
| 4269 | cat > conftest.$ac_ext <<EOF | ||
| 4270 | #line 4271 "configure" | ||
| 4271 | #include "confdefs.h" | ||
| 4272 | #include <utmpx.h> | ||
| 4273 | EOF | ||
| 4274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4275 | egrep "ut_time" >/dev/null 2>&1; then | ||
| 4276 | rm -rf conftest* | ||
| 4277 | eval "$ossh_varname=yes" | ||
| 4278 | else | ||
| 4279 | rm -rf conftest* | ||
| 4280 | eval "$ossh_varname=no" | ||
| 4281 | fi | ||
| 4282 | rm -f conftest* | ||
| 4283 | |||
| 4284 | fi | ||
| 4285 | |||
| 4286 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4287 | if test -n "`echo $ossh_varname`"; then | ||
| 4288 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4289 | if test "x$ossh_result" = "xyes"; then | ||
| 4290 | cat >> confdefs.h <<\EOF | ||
| 4291 | #define HAVE_TIME_IN_UTMPX 1 | ||
| 4292 | EOF | ||
| 4293 | |||
| 4294 | fi | ||
| 4295 | else | ||
| 4296 | echo "$ac_t""no" 1>&6 | ||
| 4297 | fi | ||
| 4298 | |||
| 4299 | |||
| 4300 | # look for field 'ut_tv' in header 'utmpx.h' | ||
| 4301 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 4302 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
| 4303 | echo $ac_n "checking for ut_tv field in utmpx.h""... $ac_c" 1>&6 | ||
| 4304 | echo "configure:4305: checking for ut_tv field in utmpx.h" >&5 | ||
| 4305 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 4306 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4307 | else | ||
| 4308 | |||
| 4309 | cat > conftest.$ac_ext <<EOF | ||
| 4310 | #line 4311 "configure" | ||
| 4311 | #include "confdefs.h" | ||
| 4312 | #include <utmpx.h> | ||
| 4313 | EOF | ||
| 4314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 4315 | egrep "ut_tv" >/dev/null 2>&1; then | ||
| 4316 | rm -rf conftest* | ||
| 4317 | eval "$ossh_varname=yes" | ||
| 4318 | else | ||
| 4319 | rm -rf conftest* | ||
| 4320 | eval "$ossh_varname=no" | ||
| 4321 | fi | ||
| 4322 | rm -f conftest* | ||
| 4323 | |||
| 4324 | fi | ||
| 4325 | |||
| 4326 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 4327 | if test -n "`echo $ossh_varname`"; then | ||
| 4328 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 4329 | if test "x$ossh_result" = "xyes"; then | ||
| 4330 | cat >> confdefs.h <<\EOF | ||
| 4331 | #define HAVE_TV_IN_UTMPX 1 | ||
| 4332 | EOF | ||
| 4333 | |||
| 4334 | fi | ||
| 4335 | else | ||
| 4336 | echo "$ac_t""no" 1>&6 | ||
| 4337 | fi | ||
| 4338 | |||
| 4339 | |||
| 4340 | echo $ac_n "checking for ss_family field in struct sockaddr_storage""... $ac_c" 1>&6 | ||
| 4341 | echo "configure:4342: checking for ss_family field in struct sockaddr_storage" >&5 | ||
| 4342 | if eval "test \"`echo '$''{'ac_cv_have_ss_family_in_struct_ss'+set}'`\" = set"; then | ||
| 4343 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4344 | else | ||
| 4345 | |||
| 4346 | cat > conftest.$ac_ext <<EOF | ||
| 4347 | #line 4348 "configure" | ||
| 4348 | #include "confdefs.h" | ||
| 4349 | |||
| 4350 | #include <sys/types.h> | ||
| 4351 | #include <sys/socket.h> | ||
| 4352 | |||
| 4353 | int main() { | ||
| 4354 | struct sockaddr_storage s; s.ss_family = 1; | ||
| 4355 | ; return 0; } | ||
| 4356 | EOF | ||
| 4357 | if { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4358 | rm -rf conftest* | ||
| 4359 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
| 4360 | else | ||
| 4361 | echo "configure: failed program was:" >&5 | ||
| 4362 | cat conftest.$ac_ext >&5 | ||
| 4363 | rm -rf conftest* | ||
| 4364 | ac_cv_have_ss_family_in_struct_ss="no" | ||
| 4365 | fi | ||
| 4366 | rm -f conftest* | ||
| 4367 | |||
| 4368 | fi | ||
| 4369 | |||
| 4370 | echo "$ac_t""$ac_cv_have_ss_family_in_struct_ss" 1>&6 | ||
| 4371 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
| 4372 | cat >> confdefs.h <<\EOF | ||
| 4373 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
| 4374 | EOF | ||
| 4375 | |||
| 4376 | fi | ||
| 4377 | |||
| 4378 | echo $ac_n "checking for __ss_family field in struct sockaddr_storage""... $ac_c" 1>&6 | ||
| 4379 | echo "configure:4380: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
| 4380 | if eval "test \"`echo '$''{'ac_cv_have___ss_family_in_struct_ss'+set}'`\" = set"; then | ||
| 4381 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4382 | else | ||
| 4383 | |||
| 4384 | cat > conftest.$ac_ext <<EOF | ||
| 4385 | #line 4386 "configure" | ||
| 4386 | #include "confdefs.h" | ||
| 4387 | |||
| 4388 | #include <sys/types.h> | ||
| 4389 | #include <sys/socket.h> | ||
| 4390 | |||
| 4391 | int main() { | ||
| 4392 | struct sockaddr_storage s; s.__ss_family = 1; | ||
| 4393 | ; return 0; } | ||
| 4394 | EOF | ||
| 4395 | if { (eval echo configure:4396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4396 | rm -rf conftest* | ||
| 4397 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
| 4398 | else | ||
| 4399 | echo "configure: failed program was:" >&5 | ||
| 4400 | cat conftest.$ac_ext >&5 | ||
| 4401 | rm -rf conftest* | ||
| 4402 | ac_cv_have___ss_family_in_struct_ss="no" | ||
| 4403 | |||
| 4404 | fi | ||
| 4405 | rm -f conftest* | ||
| 4406 | |||
| 4407 | fi | ||
| 4408 | |||
| 4409 | echo "$ac_t""$ac_cv_have___ss_family_in_struct_ss" 1>&6 | ||
| 4410 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
| 4411 | cat >> confdefs.h <<\EOF | ||
| 4412 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
| 4413 | EOF | ||
| 4414 | |||
| 4415 | fi | ||
| 4416 | |||
| 4417 | |||
| 4418 | echo $ac_n "checking if libc defines __progname""... $ac_c" 1>&6 | ||
| 4419 | echo "configure:4420: checking if libc defines __progname" >&5 | ||
| 4420 | if eval "test \"`echo '$''{'ac_cv_libc_defines___progname'+set}'`\" = set"; then | ||
| 4421 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4422 | else | ||
| 4423 | |||
| 4424 | cat > conftest.$ac_ext <<EOF | ||
| 4425 | #line 4426 "configure" | ||
| 4426 | #include "confdefs.h" | ||
| 4427 | |||
| 4428 | int main() { | ||
| 4429 | extern char *__progname; printf("%s", __progname); | ||
| 4430 | ; return 0; } | ||
| 4431 | EOF | ||
| 4432 | if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4433 | rm -rf conftest* | ||
| 4434 | ac_cv_libc_defines___progname="yes" | ||
| 4435 | else | ||
| 4436 | echo "configure: failed program was:" >&5 | ||
| 4437 | cat conftest.$ac_ext >&5 | ||
| 4438 | rm -rf conftest* | ||
| 4439 | ac_cv_libc_defines___progname="no" | ||
| 4440 | |||
| 4441 | fi | ||
| 4442 | rm -f conftest* | ||
| 4443 | |||
| 4444 | fi | ||
| 4445 | |||
| 4446 | echo "$ac_t""$ac_cv_libc_defines___progname" 1>&6 | ||
| 4447 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
| 4448 | cat >> confdefs.h <<\EOF | ||
| 4449 | #define HAVE___PROGNAME 1 | ||
| 4450 | EOF | ||
| 4451 | |||
| 4452 | fi | ||
| 4453 | |||
| 4454 | |||
| 4455 | echo $ac_n "checking if libc defines sys_errlist""... $ac_c" 1>&6 | ||
| 4456 | echo "configure:4457: checking if libc defines sys_errlist" >&5 | ||
| 4457 | if eval "test \"`echo '$''{'ac_cv_libc_defines_sys_errlist'+set}'`\" = set"; then | ||
| 4458 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4459 | else | ||
| 4460 | |||
| 4461 | cat > conftest.$ac_ext <<EOF | ||
| 4462 | #line 4463 "configure" | ||
| 4463 | #include "confdefs.h" | ||
| 4464 | |||
| 4465 | int main() { | ||
| 4466 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
| 4467 | ; return 0; } | ||
| 4468 | EOF | ||
| 4469 | if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4470 | rm -rf conftest* | ||
| 4471 | ac_cv_libc_defines_sys_errlist="yes" | ||
| 4472 | else | ||
| 4473 | echo "configure: failed program was:" >&5 | ||
| 4474 | cat conftest.$ac_ext >&5 | ||
| 4475 | rm -rf conftest* | ||
| 4476 | ac_cv_libc_defines_sys_errlist="no" | ||
| 4477 | |||
| 4478 | fi | ||
| 4479 | rm -f conftest* | ||
| 4480 | |||
| 4481 | fi | ||
| 4482 | |||
| 4483 | echo "$ac_t""$ac_cv_libc_defines_sys_errlist" 1>&6 | ||
| 4484 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
| 4485 | cat >> confdefs.h <<\EOF | ||
| 4486 | #define HAVE_SYS_ERRLIST 1 | ||
| 4487 | EOF | ||
| 4488 | |||
| 4489 | fi | ||
| 4490 | |||
| 4491 | |||
| 4492 | # Looking for programs, paths and files | ||
| 4493 | # Check whether --with-rsh or --without-rsh was given. | ||
| 4494 | if test "${with_rsh+set}" = set; then | ||
| 4495 | withval="$with_rsh" | ||
| 4496 | |||
| 4497 | if test "x$withval" != "$no" ; then | ||
| 4498 | rsh_path=$withval | ||
| 4499 | fi | ||
| 4500 | |||
| 4501 | else | ||
| 4502 | |||
| 4503 | # Extract the first word of "rsh", so it can be a program name with args. | ||
| 4504 | set dummy rsh; ac_word=$2 | ||
| 4505 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4506 | echo "configure:4507: checking for $ac_word" >&5 | ||
| 4507 | if eval "test \"`echo '$''{'ac_cv_path_rsh_path'+set}'`\" = set"; then | ||
| 4508 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4509 | else | ||
| 4510 | case "$rsh_path" in | ||
| 4511 | /*) | ||
| 4512 | ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path. | ||
| 4513 | ;; | ||
| 4514 | ?:/*) | ||
| 4515 | ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a dos path. | ||
| 4516 | ;; | ||
| 4517 | *) | ||
| 4518 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4519 | ac_dummy="$PATH" | ||
| 4520 | for ac_dir in $ac_dummy; do | ||
| 4521 | test -z "$ac_dir" && ac_dir=. | ||
| 4522 | if test -f $ac_dir/$ac_word; then | ||
| 4523 | ac_cv_path_rsh_path="$ac_dir/$ac_word" | ||
| 4524 | break | ||
| 4525 | fi | ||
| 4526 | done | ||
| 4527 | IFS="$ac_save_ifs" | ||
| 4528 | ;; | ||
| 4529 | esac | ||
| 4530 | fi | ||
| 4531 | rsh_path="$ac_cv_path_rsh_path" | ||
| 4532 | if test -n "$rsh_path"; then | ||
| 4533 | echo "$ac_t""$rsh_path" 1>&6 | ||
| 4534 | else | ||
| 4535 | echo "$ac_t""no" 1>&6 | ||
| 4536 | fi | ||
| 4537 | |||
| 4538 | |||
| 4539 | |||
| 4540 | fi | ||
| 4541 | |||
| 4542 | |||
| 4543 | # Check whether --with-xauth or --without-xauth was given. | ||
| 4544 | if test "${with_xauth+set}" = set; then | ||
| 4545 | withval="$with_xauth" | ||
| 4546 | |||
| 4547 | if test "x$withval" != "$xno" ; then | ||
| 4548 | xauth_path=$withval | ||
| 4549 | fi | ||
| 4550 | |||
| 4551 | else | ||
| 4552 | |||
| 4553 | # Extract the first word of "xauth", so it can be a program name with args. | ||
| 4554 | set dummy xauth; ac_word=$2 | ||
| 4555 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4556 | echo "configure:4557: checking for $ac_word" >&5 | ||
| 4557 | if eval "test \"`echo '$''{'ac_cv_path_xauth_path'+set}'`\" = set"; then | ||
| 4558 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4559 | else | ||
| 4560 | case "$xauth_path" in | ||
| 4561 | /*) | ||
| 4562 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
| 4563 | ;; | ||
| 4564 | ?:/*) | ||
| 4565 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a dos path. | ||
| 4566 | ;; | ||
| 4567 | *) | ||
| 4568 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4569 | ac_dummy="$PATH" | ||
| 4570 | for ac_dir in $ac_dummy; do | ||
| 4571 | test -z "$ac_dir" && ac_dir=. | ||
| 4572 | if test -f $ac_dir/$ac_word; then | ||
| 4573 | ac_cv_path_xauth_path="$ac_dir/$ac_word" | ||
| 4574 | break | ||
| 4575 | fi | ||
| 4576 | done | ||
| 4577 | IFS="$ac_save_ifs" | ||
| 4578 | ;; | ||
| 4579 | esac | ||
| 4580 | fi | ||
| 4581 | xauth_path="$ac_cv_path_xauth_path" | ||
| 4582 | if test -n "$xauth_path"; then | ||
| 4583 | echo "$ac_t""$xauth_path" 1>&6 | ||
| 4584 | else | ||
| 4585 | echo "$ac_t""no" 1>&6 | ||
| 4586 | fi | ||
| 4587 | |||
| 4588 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
| 4589 | xauth_path="/usr/openwin/bin/xauth" | ||
| 4590 | fi | ||
| 4591 | |||
| 4592 | |||
| 4593 | fi | ||
| 4594 | |||
| 4595 | |||
| 4596 | if test ! -z "$xauth_path" ; then | ||
| 4597 | cat >> confdefs.h <<EOF | ||
| 4598 | #define XAUTH_PATH "$xauth_path" | ||
| 4599 | EOF | ||
| 4600 | |||
| 4601 | fi | ||
| 4602 | if test ! -z "$rsh_path" ; then | ||
| 4603 | cat >> confdefs.h <<EOF | ||
| 4604 | #define RSH_PATH "$rsh_path" | ||
| 4605 | EOF | ||
| 4606 | |||
| 4607 | fi | ||
| 4608 | |||
| 4609 | # Check for mail directory (last resort if we cannot get it from headers) | ||
| 4610 | if test ! -z "$MAIL" ; then | ||
| 4611 | maildir=`dirname $MAIL` | ||
| 4612 | cat >> confdefs.h <<EOF | ||
| 4613 | #define MAIL_DIRECTORY "$maildir" | ||
| 4614 | EOF | ||
| 4615 | |||
| 4616 | fi | ||
| 4617 | |||
| 4618 | if test -z "$no_dev_ptmx" ; then | ||
| 4619 | |||
| 4620 | ac_safe=`echo ""/dev/ptmx"" | sed 'y%./+-%__p_%'` | ||
| 4621 | echo $ac_n "checking for "/dev/ptmx"""... $ac_c" 1>&6 | ||
| 4622 | echo "configure:4623: checking for "/dev/ptmx"" >&5 | ||
| 4623 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
| 4624 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4625 | else | ||
| 4626 | if test "$cross_compiling" = yes; then | ||
| 4627 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
| 4628 | else | ||
| 4629 | if test -r "/dev/ptmx"; then | ||
| 4630 | eval "ac_cv_file_$ac_safe=yes" | ||
| 4631 | else | ||
| 4632 | eval "ac_cv_file_$ac_safe=no" | ||
| 4633 | fi | ||
| 4634 | fi | ||
| 4635 | fi | ||
| 4636 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
| 4637 | echo "$ac_t""yes" 1>&6 | ||
| 4638 | |||
| 4639 | cat >> confdefs.h <<EOF | ||
| 4640 | #define HAVE_DEV_PTMX 1 | ||
| 4641 | EOF | ||
| 4642 | |||
| 4643 | have_dev_ptmx=1 | ||
| 4644 | |||
| 4645 | |||
| 4646 | else | ||
| 4647 | echo "$ac_t""no" 1>&6 | ||
| 4648 | |||
| 4649 | fi | ||
| 4650 | |||
| 4651 | fi | ||
| 4652 | |||
| 4653 | ac_safe=`echo ""/dev/ptc"" | sed 'y%./+-%__p_%'` | ||
| 4654 | echo $ac_n "checking for "/dev/ptc"""... $ac_c" 1>&6 | ||
| 4655 | echo "configure:4656: checking for "/dev/ptc"" >&5 | ||
| 4656 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
| 4657 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4658 | else | ||
| 4659 | if test "$cross_compiling" = yes; then | ||
| 4660 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
| 4661 | else | ||
| 4662 | if test -r "/dev/ptc"; then | ||
| 4663 | eval "ac_cv_file_$ac_safe=yes" | ||
| 4664 | else | ||
| 4665 | eval "ac_cv_file_$ac_safe=no" | ||
| 4666 | fi | ||
| 4667 | fi | ||
| 4668 | fi | ||
| 4669 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
| 4670 | echo "$ac_t""yes" 1>&6 | ||
| 4671 | |||
| 4672 | cat >> confdefs.h <<EOF | ||
| 4673 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
| 4674 | EOF | ||
| 4675 | |||
| 4676 | have_dev_ptc=1 | ||
| 4677 | |||
| 4678 | |||
| 4679 | else | ||
| 4680 | echo "$ac_t""no" 1>&6 | ||
| 4681 | |||
| 4682 | fi | ||
| 4683 | |||
| 4684 | |||
| 4685 | # Options from here on. Some of these are preset by platform above | ||
| 4686 | |||
| 4687 | # Check for user-specified random device, otherwise check /dev/urandom | ||
| 4688 | # Check whether --with-random or --without-random was given. | ||
| 4689 | if test "${with_random+set}" = set; then | ||
| 4690 | withval="$with_random" | ||
| 4691 | |||
| 4692 | if test "x$withval" != "xno" ; then | ||
| 4693 | RANDOM_POOL="$withval"; | ||
| 4694 | cat >> confdefs.h <<EOF | ||
| 4695 | #define RANDOM_POOL "$RANDOM_POOL" | ||
| 4696 | EOF | ||
| 4697 | |||
| 4698 | fi | ||
| 4699 | |||
| 4700 | else | ||
| 4701 | |||
| 4702 | # Check for random device | ||
| 4703 | |||
| 4704 | ac_safe=`echo ""/dev/urandom"" | sed 'y%./+-%__p_%'` | ||
| 4705 | echo $ac_n "checking for "/dev/urandom"""... $ac_c" 1>&6 | ||
| 4706 | echo "configure:4707: checking for "/dev/urandom"" >&5 | ||
| 4707 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
| 4708 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4709 | else | ||
| 4710 | if test "$cross_compiling" = yes; then | ||
| 4711 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
| 4712 | else | ||
| 4713 | if test -r "/dev/urandom"; then | ||
| 4714 | eval "ac_cv_file_$ac_safe=yes" | ||
| 4715 | else | ||
| 4716 | eval "ac_cv_file_$ac_safe=no" | ||
| 4717 | fi | ||
| 4718 | fi | ||
| 4719 | fi | ||
| 4720 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
| 4721 | echo "$ac_t""yes" 1>&6 | ||
| 4722 | |||
| 4723 | RANDOM_POOL="/dev/urandom"; | ||
| 4724 | |||
| 4725 | cat >> confdefs.h <<EOF | ||
| 4726 | #define RANDOM_POOL "$RANDOM_POOL" | ||
| 4727 | EOF | ||
| 4728 | |||
| 4729 | |||
| 4730 | |||
| 4731 | else | ||
| 4732 | echo "$ac_t""no" 1>&6 | ||
| 4733 | |||
| 4734 | fi | ||
| 4735 | |||
| 4736 | |||
| 4737 | |||
| 4738 | fi | ||
| 4739 | |||
| 4740 | |||
| 4741 | # Check for EGD pool file | ||
| 4742 | # Check whether --with-egd-pool or --without-egd-pool was given. | ||
| 4743 | if test "${with_egd_pool+set}" = set; then | ||
| 4744 | withval="$with_egd_pool" | ||
| 4745 | |||
| 4746 | if test "x$withval" != "xno" ; then | ||
| 4747 | EGD_SOCKET="$withval"; | ||
| 4748 | cat >> confdefs.h <<EOF | ||
| 4749 | #define EGD_SOCKET "$EGD_SOCKET" | ||
| 4750 | EOF | ||
| 4751 | |||
| 4752 | fi | ||
| 4753 | |||
| 4754 | |||
| 4755 | fi | ||
| 4756 | |||
| 4757 | |||
| 4758 | # detect pathnames for entropy gathering commands, if we need them | ||
| 4759 | INSTALL_SSH_PRNG_CMDS="" | ||
| 4760 | rm -f prng_commands | ||
| 4761 | if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then | ||
| 4762 | # Use these commands to collect entropy | ||
| 4763 | |||
| 4764 | # Extract the first word of "ls", so it can be a program name with args. | ||
| 4765 | set dummy ls; ac_word=$2 | ||
| 4766 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4767 | echo "configure:4768: checking for $ac_word" >&5 | ||
| 4768 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LS'+set}'`\" = set"; then | ||
| 4769 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4770 | else | ||
| 4771 | case "$PROG_LS" in | ||
| 4772 | /*) | ||
| 4773 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
| 4774 | ;; | ||
| 4775 | ?:/*) | ||
| 4776 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a dos path. | ||
| 4777 | ;; | ||
| 4778 | *) | ||
| 4779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4780 | ac_dummy="$PATH" | ||
| 4781 | for ac_dir in $ac_dummy; do | ||
| 4782 | test -z "$ac_dir" && ac_dir=. | ||
| 4783 | if test -f $ac_dir/$ac_word; then | ||
| 4784 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
| 4785 | break | ||
| 4786 | fi | ||
| 4787 | done | ||
| 4788 | IFS="$ac_save_ifs" | ||
| 4789 | ;; | ||
| 4790 | esac | ||
| 4791 | fi | ||
| 4792 | PROG_LS="$ac_cv_path_PROG_LS" | ||
| 4793 | if test -n "$PROG_LS"; then | ||
| 4794 | echo "$ac_t""$PROG_LS" 1>&6 | ||
| 4795 | else | ||
| 4796 | echo "$ac_t""no" 1>&6 | ||
| 4797 | fi | ||
| 4798 | |||
| 4799 | if test -z "$PROG_LS" ; then | ||
| 4800 | PROG_LS="undef" | ||
| 4801 | fi | ||
| 4802 | |||
| 4803 | |||
| 4804 | |||
| 4805 | # Extract the first word of "netstat", so it can be a program name with args. | ||
| 4806 | set dummy netstat; ac_word=$2 | ||
| 4807 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4808 | echo "configure:4809: checking for $ac_word" >&5 | ||
| 4809 | if eval "test \"`echo '$''{'ac_cv_path_PROG_NETSTAT'+set}'`\" = set"; then | ||
| 4810 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4811 | else | ||
| 4812 | case "$PROG_NETSTAT" in | ||
| 4813 | /*) | ||
| 4814 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
| 4815 | ;; | ||
| 4816 | ?:/*) | ||
| 4817 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a dos path. | ||
| 4818 | ;; | ||
| 4819 | *) | ||
| 4820 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4821 | ac_dummy="$PATH" | ||
| 4822 | for ac_dir in $ac_dummy; do | ||
| 4823 | test -z "$ac_dir" && ac_dir=. | ||
| 4824 | if test -f $ac_dir/$ac_word; then | ||
| 4825 | ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word" | ||
| 4826 | break | ||
| 4827 | fi | ||
| 4828 | done | ||
| 4829 | IFS="$ac_save_ifs" | ||
| 4830 | ;; | ||
| 4831 | esac | ||
| 4832 | fi | ||
| 4833 | PROG_NETSTAT="$ac_cv_path_PROG_NETSTAT" | ||
| 4834 | if test -n "$PROG_NETSTAT"; then | ||
| 4835 | echo "$ac_t""$PROG_NETSTAT" 1>&6 | ||
| 4836 | else | ||
| 4837 | echo "$ac_t""no" 1>&6 | ||
| 4838 | fi | ||
| 4839 | |||
| 4840 | if test -z "$PROG_NETSTAT" ; then | ||
| 4841 | PROG_NETSTAT="undef" | ||
| 4842 | fi | ||
| 4843 | |||
| 4844 | |||
| 4845 | |||
| 4846 | # Extract the first word of "arp", so it can be a program name with args. | ||
| 4847 | set dummy arp; ac_word=$2 | ||
| 4848 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4849 | echo "configure:4850: checking for $ac_word" >&5 | ||
| 4850 | if eval "test \"`echo '$''{'ac_cv_path_PROG_ARP'+set}'`\" = set"; then | ||
| 4851 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4852 | else | ||
| 4853 | case "$PROG_ARP" in | ||
| 4854 | /*) | ||
| 4855 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
| 4856 | ;; | ||
| 4857 | ?:/*) | ||
| 4858 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a dos path. | ||
| 4859 | ;; | ||
| 4860 | *) | ||
| 4861 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4862 | ac_dummy="$PATH" | ||
| 4863 | for ac_dir in $ac_dummy; do | ||
| 4864 | test -z "$ac_dir" && ac_dir=. | ||
| 4865 | if test -f $ac_dir/$ac_word; then | ||
| 4866 | ac_cv_path_PROG_ARP="$ac_dir/$ac_word" | ||
| 4867 | break | ||
| 4868 | fi | ||
| 4869 | done | ||
| 4870 | IFS="$ac_save_ifs" | ||
| 4871 | ;; | ||
| 4872 | esac | ||
| 4873 | fi | ||
| 4874 | PROG_ARP="$ac_cv_path_PROG_ARP" | ||
| 4875 | if test -n "$PROG_ARP"; then | ||
| 4876 | echo "$ac_t""$PROG_ARP" 1>&6 | ||
| 4877 | else | ||
| 4878 | echo "$ac_t""no" 1>&6 | ||
| 4879 | fi | ||
| 4880 | |||
| 4881 | if test -z "$PROG_ARP" ; then | ||
| 4882 | PROG_ARP="undef" | ||
| 4883 | fi | ||
| 4884 | |||
| 4885 | |||
| 4886 | |||
| 4887 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
| 4888 | set dummy ifconfig; ac_word=$2 | ||
| 4889 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4890 | echo "configure:4891: checking for $ac_word" >&5 | ||
| 4891 | if eval "test \"`echo '$''{'ac_cv_path_PROG_IFCONFIG'+set}'`\" = set"; then | ||
| 4892 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4893 | else | ||
| 4894 | case "$PROG_IFCONFIG" in | ||
| 4895 | /*) | ||
| 4896 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
| 4897 | ;; | ||
| 4898 | ?:/*) | ||
| 4899 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a dos path. | ||
| 4900 | ;; | ||
| 4901 | *) | ||
| 4902 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4903 | ac_dummy="$PATH" | ||
| 4904 | for ac_dir in $ac_dummy; do | ||
| 4905 | test -z "$ac_dir" && ac_dir=. | ||
| 4906 | if test -f $ac_dir/$ac_word; then | ||
| 4907 | ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word" | ||
| 4908 | break | ||
| 4909 | fi | ||
| 4910 | done | ||
| 4911 | IFS="$ac_save_ifs" | ||
| 4912 | ;; | ||
| 4913 | esac | ||
| 4914 | fi | ||
| 4915 | PROG_IFCONFIG="$ac_cv_path_PROG_IFCONFIG" | ||
| 4916 | if test -n "$PROG_IFCONFIG"; then | ||
| 4917 | echo "$ac_t""$PROG_IFCONFIG" 1>&6 | ||
| 4918 | else | ||
| 4919 | echo "$ac_t""no" 1>&6 | ||
| 4920 | fi | ||
| 4921 | |||
| 4922 | if test -z "$PROG_IFCONFIG" ; then | ||
| 4923 | PROG_IFCONFIG="undef" | ||
| 4924 | fi | ||
| 4925 | |||
| 4926 | |||
| 4927 | |||
| 4928 | # Extract the first word of "ps", so it can be a program name with args. | ||
| 4929 | set dummy ps; ac_word=$2 | ||
| 4930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4931 | echo "configure:4932: checking for $ac_word" >&5 | ||
| 4932 | if eval "test \"`echo '$''{'ac_cv_path_PROG_PS'+set}'`\" = set"; then | ||
| 4933 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4934 | else | ||
| 4935 | case "$PROG_PS" in | ||
| 4936 | /*) | ||
| 4937 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
| 4938 | ;; | ||
| 4939 | ?:/*) | ||
| 4940 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a dos path. | ||
| 4941 | ;; | ||
| 4942 | *) | ||
| 4943 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4944 | ac_dummy="$PATH" | ||
| 4945 | for ac_dir in $ac_dummy; do | ||
| 4946 | test -z "$ac_dir" && ac_dir=. | ||
| 4947 | if test -f $ac_dir/$ac_word; then | ||
| 4948 | ac_cv_path_PROG_PS="$ac_dir/$ac_word" | ||
| 4949 | break | ||
| 4950 | fi | ||
| 4951 | done | ||
| 4952 | IFS="$ac_save_ifs" | ||
| 4953 | ;; | ||
| 4954 | esac | ||
| 4955 | fi | ||
| 4956 | PROG_PS="$ac_cv_path_PROG_PS" | ||
| 4957 | if test -n "$PROG_PS"; then | ||
| 4958 | echo "$ac_t""$PROG_PS" 1>&6 | ||
| 4959 | else | ||
| 4960 | echo "$ac_t""no" 1>&6 | ||
| 4961 | fi | ||
| 4962 | |||
| 4963 | if test -z "$PROG_PS" ; then | ||
| 4964 | PROG_PS="undef" | ||
| 4965 | fi | ||
| 4966 | |||
| 4967 | |||
| 4968 | |||
| 4969 | # Extract the first word of "w", so it can be a program name with args. | ||
| 4970 | set dummy w; ac_word=$2 | ||
| 4971 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 4972 | echo "configure:4973: checking for $ac_word" >&5 | ||
| 4973 | if eval "test \"`echo '$''{'ac_cv_path_PROG_W'+set}'`\" = set"; then | ||
| 4974 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4975 | else | ||
| 4976 | case "$PROG_W" in | ||
| 4977 | /*) | ||
| 4978 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
| 4979 | ;; | ||
| 4980 | ?:/*) | ||
| 4981 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a dos path. | ||
| 4982 | ;; | ||
| 4983 | *) | ||
| 4984 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 4985 | ac_dummy="$PATH" | ||
| 4986 | for ac_dir in $ac_dummy; do | ||
| 4987 | test -z "$ac_dir" && ac_dir=. | ||
| 4988 | if test -f $ac_dir/$ac_word; then | ||
| 4989 | ac_cv_path_PROG_W="$ac_dir/$ac_word" | ||
| 4990 | break | ||
| 4991 | fi | ||
| 4992 | done | ||
| 4993 | IFS="$ac_save_ifs" | ||
| 4994 | ;; | ||
| 4995 | esac | ||
| 4996 | fi | ||
| 4997 | PROG_W="$ac_cv_path_PROG_W" | ||
| 4998 | if test -n "$PROG_W"; then | ||
| 4999 | echo "$ac_t""$PROG_W" 1>&6 | ||
| 5000 | else | ||
| 5001 | echo "$ac_t""no" 1>&6 | ||
| 5002 | fi | ||
| 5003 | |||
| 5004 | if test -z "$PROG_W" ; then | ||
| 5005 | PROG_W="undef" | ||
| 5006 | fi | ||
| 5007 | |||
| 5008 | |||
| 5009 | |||
| 5010 | # Extract the first word of "who", so it can be a program name with args. | ||
| 5011 | set dummy who; ac_word=$2 | ||
| 5012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5013 | echo "configure:5014: checking for $ac_word" >&5 | ||
| 5014 | if eval "test \"`echo '$''{'ac_cv_path_PROG_WHO'+set}'`\" = set"; then | ||
| 5015 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5016 | else | ||
| 5017 | case "$PROG_WHO" in | ||
| 5018 | /*) | ||
| 5019 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
| 5020 | ;; | ||
| 5021 | ?:/*) | ||
| 5022 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a dos path. | ||
| 5023 | ;; | ||
| 5024 | *) | ||
| 5025 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5026 | ac_dummy="$PATH" | ||
| 5027 | for ac_dir in $ac_dummy; do | ||
| 5028 | test -z "$ac_dir" && ac_dir=. | ||
| 5029 | if test -f $ac_dir/$ac_word; then | ||
| 5030 | ac_cv_path_PROG_WHO="$ac_dir/$ac_word" | ||
| 5031 | break | ||
| 5032 | fi | ||
| 5033 | done | ||
| 5034 | IFS="$ac_save_ifs" | ||
| 5035 | ;; | ||
| 5036 | esac | ||
| 5037 | fi | ||
| 5038 | PROG_WHO="$ac_cv_path_PROG_WHO" | ||
| 5039 | if test -n "$PROG_WHO"; then | ||
| 5040 | echo "$ac_t""$PROG_WHO" 1>&6 | ||
| 5041 | else | ||
| 5042 | echo "$ac_t""no" 1>&6 | ||
| 5043 | fi | ||
| 5044 | |||
| 5045 | if test -z "$PROG_WHO" ; then | ||
| 5046 | PROG_WHO="undef" | ||
| 5047 | fi | ||
| 5048 | |||
| 5049 | |||
| 5050 | |||
| 5051 | # Extract the first word of "last", so it can be a program name with args. | ||
| 5052 | set dummy last; ac_word=$2 | ||
| 5053 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5054 | echo "configure:5055: checking for $ac_word" >&5 | ||
| 5055 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LAST'+set}'`\" = set"; then | ||
| 5056 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5057 | else | ||
| 5058 | case "$PROG_LAST" in | ||
| 5059 | /*) | ||
| 5060 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
| 5061 | ;; | ||
| 5062 | ?:/*) | ||
| 5063 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a dos path. | ||
| 5064 | ;; | ||
| 5065 | *) | ||
| 5066 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5067 | ac_dummy="$PATH" | ||
| 5068 | for ac_dir in $ac_dummy; do | ||
| 5069 | test -z "$ac_dir" && ac_dir=. | ||
| 5070 | if test -f $ac_dir/$ac_word; then | ||
| 5071 | ac_cv_path_PROG_LAST="$ac_dir/$ac_word" | ||
| 5072 | break | ||
| 5073 | fi | ||
| 5074 | done | ||
| 5075 | IFS="$ac_save_ifs" | ||
| 5076 | ;; | ||
| 5077 | esac | ||
| 5078 | fi | ||
| 5079 | PROG_LAST="$ac_cv_path_PROG_LAST" | ||
| 5080 | if test -n "$PROG_LAST"; then | ||
| 5081 | echo "$ac_t""$PROG_LAST" 1>&6 | ||
| 5082 | else | ||
| 5083 | echo "$ac_t""no" 1>&6 | ||
| 5084 | fi | ||
| 5085 | |||
| 5086 | if test -z "$PROG_LAST" ; then | ||
| 5087 | PROG_LAST="undef" | ||
| 5088 | fi | ||
| 5089 | |||
| 5090 | |||
| 5091 | |||
| 5092 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
| 5093 | set dummy lastlog; ac_word=$2 | ||
| 5094 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5095 | echo "configure:5096: checking for $ac_word" >&5 | ||
| 5096 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LASTLOG'+set}'`\" = set"; then | ||
| 5097 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5098 | else | ||
| 5099 | case "$PROG_LASTLOG" in | ||
| 5100 | /*) | ||
| 5101 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
| 5102 | ;; | ||
| 5103 | ?:/*) | ||
| 5104 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a dos path. | ||
| 5105 | ;; | ||
| 5106 | *) | ||
| 5107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5108 | ac_dummy="$PATH" | ||
| 5109 | for ac_dir in $ac_dummy; do | ||
| 5110 | test -z "$ac_dir" && ac_dir=. | ||
| 5111 | if test -f $ac_dir/$ac_word; then | ||
| 5112 | ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word" | ||
| 5113 | break | ||
| 5114 | fi | ||
| 5115 | done | ||
| 5116 | IFS="$ac_save_ifs" | ||
| 5117 | ;; | ||
| 5118 | esac | ||
| 5119 | fi | ||
| 5120 | PROG_LASTLOG="$ac_cv_path_PROG_LASTLOG" | ||
| 5121 | if test -n "$PROG_LASTLOG"; then | ||
| 5122 | echo "$ac_t""$PROG_LASTLOG" 1>&6 | ||
| 5123 | else | ||
| 5124 | echo "$ac_t""no" 1>&6 | ||
| 5125 | fi | ||
| 5126 | |||
| 5127 | if test -z "$PROG_LASTLOG" ; then | ||
| 5128 | PROG_LASTLOG="undef" | ||
| 5129 | fi | ||
| 5130 | |||
| 5131 | |||
| 5132 | |||
| 5133 | # Extract the first word of "df", so it can be a program name with args. | ||
| 5134 | set dummy df; ac_word=$2 | ||
| 5135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5136 | echo "configure:5137: checking for $ac_word" >&5 | ||
| 5137 | if eval "test \"`echo '$''{'ac_cv_path_PROG_DF'+set}'`\" = set"; then | ||
| 5138 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5139 | else | ||
| 5140 | case "$PROG_DF" in | ||
| 5141 | /*) | ||
| 5142 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
| 5143 | ;; | ||
| 5144 | ?:/*) | ||
| 5145 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a dos path. | ||
| 5146 | ;; | ||
| 5147 | *) | ||
| 5148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5149 | ac_dummy="$PATH" | ||
| 5150 | for ac_dir in $ac_dummy; do | ||
| 5151 | test -z "$ac_dir" && ac_dir=. | ||
| 5152 | if test -f $ac_dir/$ac_word; then | ||
| 5153 | ac_cv_path_PROG_DF="$ac_dir/$ac_word" | ||
| 5154 | break | ||
| 5155 | fi | ||
| 5156 | done | ||
| 5157 | IFS="$ac_save_ifs" | ||
| 5158 | ;; | ||
| 5159 | esac | ||
| 5160 | fi | ||
| 5161 | PROG_DF="$ac_cv_path_PROG_DF" | ||
| 5162 | if test -n "$PROG_DF"; then | ||
| 5163 | echo "$ac_t""$PROG_DF" 1>&6 | ||
| 5164 | else | ||
| 5165 | echo "$ac_t""no" 1>&6 | ||
| 5166 | fi | ||
| 5167 | |||
| 5168 | if test -z "$PROG_DF" ; then | ||
| 5169 | PROG_DF="undef" | ||
| 5170 | fi | ||
| 5171 | |||
| 5172 | |||
| 5173 | |||
| 5174 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
| 5175 | set dummy vmstat; ac_word=$2 | ||
| 5176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5177 | echo "configure:5178: checking for $ac_word" >&5 | ||
| 5178 | if eval "test \"`echo '$''{'ac_cv_path_PROG_VMSTAT'+set}'`\" = set"; then | ||
| 5179 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5180 | else | ||
| 5181 | case "$PROG_VMSTAT" in | ||
| 5182 | /*) | ||
| 5183 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
| 5184 | ;; | ||
| 5185 | ?:/*) | ||
| 5186 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a dos path. | ||
| 5187 | ;; | ||
| 5188 | *) | ||
| 5189 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5190 | ac_dummy="$PATH" | ||
| 5191 | for ac_dir in $ac_dummy; do | ||
| 5192 | test -z "$ac_dir" && ac_dir=. | ||
| 5193 | if test -f $ac_dir/$ac_word; then | ||
| 5194 | ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word" | ||
| 5195 | break | ||
| 5196 | fi | ||
| 5197 | done | ||
| 5198 | IFS="$ac_save_ifs" | ||
| 5199 | ;; | ||
| 5200 | esac | ||
| 5201 | fi | ||
| 5202 | PROG_VMSTAT="$ac_cv_path_PROG_VMSTAT" | ||
| 5203 | if test -n "$PROG_VMSTAT"; then | ||
| 5204 | echo "$ac_t""$PROG_VMSTAT" 1>&6 | ||
| 5205 | else | ||
| 5206 | echo "$ac_t""no" 1>&6 | ||
| 5207 | fi | ||
| 5208 | |||
| 5209 | if test -z "$PROG_VMSTAT" ; then | ||
| 5210 | PROG_VMSTAT="undef" | ||
| 5211 | fi | ||
| 5212 | |||
| 5213 | |||
| 5214 | |||
| 5215 | # Extract the first word of "uptime", so it can be a program name with args. | ||
| 5216 | set dummy uptime; ac_word=$2 | ||
| 5217 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5218 | echo "configure:5219: checking for $ac_word" >&5 | ||
| 5219 | if eval "test \"`echo '$''{'ac_cv_path_PROG_UPTIME'+set}'`\" = set"; then | ||
| 5220 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5221 | else | ||
| 5222 | case "$PROG_UPTIME" in | ||
| 5223 | /*) | ||
| 5224 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
| 5225 | ;; | ||
| 5226 | ?:/*) | ||
| 5227 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a dos path. | ||
| 5228 | ;; | ||
| 5229 | *) | ||
| 5230 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5231 | ac_dummy="$PATH" | ||
| 5232 | for ac_dir in $ac_dummy; do | ||
| 5233 | test -z "$ac_dir" && ac_dir=. | ||
| 5234 | if test -f $ac_dir/$ac_word; then | ||
| 5235 | ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word" | ||
| 5236 | break | ||
| 5237 | fi | ||
| 5238 | done | ||
| 5239 | IFS="$ac_save_ifs" | ||
| 5240 | ;; | ||
| 5241 | esac | ||
| 5242 | fi | ||
| 5243 | PROG_UPTIME="$ac_cv_path_PROG_UPTIME" | ||
| 5244 | if test -n "$PROG_UPTIME"; then | ||
| 5245 | echo "$ac_t""$PROG_UPTIME" 1>&6 | ||
| 5246 | else | ||
| 5247 | echo "$ac_t""no" 1>&6 | ||
| 5248 | fi | ||
| 5249 | |||
| 5250 | if test -z "$PROG_UPTIME" ; then | ||
| 5251 | PROG_UPTIME="undef" | ||
| 5252 | fi | ||
| 5253 | |||
| 5254 | |||
| 5255 | |||
| 5256 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
| 5257 | set dummy ipcs; ac_word=$2 | ||
| 5258 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5259 | echo "configure:5260: checking for $ac_word" >&5 | ||
| 5260 | if eval "test \"`echo '$''{'ac_cv_path_PROG_IPCS'+set}'`\" = set"; then | ||
| 5261 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5262 | else | ||
| 5263 | case "$PROG_IPCS" in | ||
| 5264 | /*) | ||
| 5265 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
| 5266 | ;; | ||
| 5267 | ?:/*) | ||
| 5268 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a dos path. | ||
| 5269 | ;; | ||
| 5270 | *) | ||
| 5271 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5272 | ac_dummy="$PATH" | ||
| 5273 | for ac_dir in $ac_dummy; do | ||
| 5274 | test -z "$ac_dir" && ac_dir=. | ||
| 5275 | if test -f $ac_dir/$ac_word; then | ||
| 5276 | ac_cv_path_PROG_IPCS="$ac_dir/$ac_word" | ||
| 5277 | break | ||
| 5278 | fi | ||
| 5279 | done | ||
| 5280 | IFS="$ac_save_ifs" | ||
| 5281 | ;; | ||
| 5282 | esac | ||
| 5283 | fi | ||
| 5284 | PROG_IPCS="$ac_cv_path_PROG_IPCS" | ||
| 5285 | if test -n "$PROG_IPCS"; then | ||
| 5286 | echo "$ac_t""$PROG_IPCS" 1>&6 | ||
| 5287 | else | ||
| 5288 | echo "$ac_t""no" 1>&6 | ||
| 5289 | fi | ||
| 5290 | |||
| 5291 | if test -z "$PROG_IPCS" ; then | ||
| 5292 | PROG_IPCS="undef" | ||
| 5293 | fi | ||
| 5294 | |||
| 5295 | |||
| 5296 | |||
| 5297 | # Extract the first word of "tail", so it can be a program name with args. | ||
| 5298 | set dummy tail; ac_word=$2 | ||
| 5299 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5300 | echo "configure:5301: checking for $ac_word" >&5 | ||
| 5301 | if eval "test \"`echo '$''{'ac_cv_path_PROG_TAIL'+set}'`\" = set"; then | ||
| 5302 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5303 | else | ||
| 5304 | case "$PROG_TAIL" in | ||
| 5305 | /*) | ||
| 5306 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
| 5307 | ;; | ||
| 5308 | ?:/*) | ||
| 5309 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a dos path. | ||
| 5310 | ;; | ||
| 5311 | *) | ||
| 5312 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5313 | ac_dummy="$PATH" | ||
| 5314 | for ac_dir in $ac_dummy; do | ||
| 5315 | test -z "$ac_dir" && ac_dir=. | ||
| 5316 | if test -f $ac_dir/$ac_word; then | ||
| 5317 | ac_cv_path_PROG_TAIL="$ac_dir/$ac_word" | ||
| 5318 | break | ||
| 5319 | fi | ||
| 5320 | done | ||
| 5321 | IFS="$ac_save_ifs" | ||
| 5322 | ;; | ||
| 5323 | esac | ||
| 5324 | fi | ||
| 5325 | PROG_TAIL="$ac_cv_path_PROG_TAIL" | ||
| 5326 | if test -n "$PROG_TAIL"; then | ||
| 5327 | echo "$ac_t""$PROG_TAIL" 1>&6 | ||
| 5328 | else | ||
| 5329 | echo "$ac_t""no" 1>&6 | ||
| 5330 | fi | ||
| 5331 | |||
| 5332 | if test -z "$PROG_TAIL" ; then | ||
| 5333 | PROG_TAIL="undef" | ||
| 5334 | fi | ||
| 5335 | |||
| 5336 | |||
| 5337 | |||
| 5338 | # Extract the first word of "ls", so it can be a program name with args. | ||
| 5339 | set dummy ls; ac_word=$2 | ||
| 5340 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 5341 | echo "configure:5342: checking for $ac_word" >&5 | ||
| 5342 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LS'+set}'`\" = set"; then | ||
| 5343 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5344 | else | ||
| 5345 | case "$PROG_LS" in | ||
| 5346 | /*) | ||
| 5347 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
| 5348 | ;; | ||
| 5349 | ?:/*) | ||
| 5350 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a dos path. | ||
| 5351 | ;; | ||
| 5352 | *) | ||
| 5353 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 5354 | ac_dummy="$PATH" | ||
| 5355 | for ac_dir in $ac_dummy; do | ||
| 5356 | test -z "$ac_dir" && ac_dir=. | ||
| 5357 | if test -f $ac_dir/$ac_word; then | ||
| 5358 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
| 5359 | break | ||
| 5360 | fi | ||
| 5361 | done | ||
| 5362 | IFS="$ac_save_ifs" | ||
| 5363 | ;; | ||
| 5364 | esac | ||
| 5365 | fi | ||
| 5366 | PROG_LS="$ac_cv_path_PROG_LS" | ||
| 5367 | if test -n "$PROG_LS"; then | ||
| 5368 | echo "$ac_t""$PROG_LS" 1>&6 | ||
| 5369 | else | ||
| 5370 | echo "$ac_t""no" 1>&6 | ||
| 5371 | fi | ||
| 5372 | |||
| 5373 | if test -z "$PROG_LS" ; then | ||
| 5374 | PROG_LS="undef" | ||
| 5375 | fi | ||
| 5376 | |||
| 5377 | |||
| 5378 | |||
| 5379 | INSTALL_SSH_PRNG_CMDS="yes" | ||
| 5380 | fi | ||
| 5381 | |||
| 5382 | |||
| 5383 | |||
| 5384 | # Check whether --with-catman or --without-catman was given. | ||
| 5385 | if test "${with_catman+set}" = set; then | ||
| 5386 | withval="$with_catman" | ||
| 5387 | |||
| 5388 | MANTYPE='$(CATMAN)' | ||
| 5389 | if test x"$withval" != x"yes" ; then | ||
| 5390 | mansubdir=$withval | ||
| 5391 | else | ||
| 5392 | mansubdir=cat | ||
| 5393 | fi | ||
| 5394 | |||
| 5395 | else | ||
| 5396 | |||
| 5397 | if test -z "$MANTYPE" ; then | ||
| 5398 | MANTYPE='$(TROFFMAN)' | ||
| 5399 | mansubdir=man | ||
| 5400 | fi | ||
| 5401 | |||
| 5402 | |||
| 5403 | fi | ||
| 5404 | |||
| 5405 | |||
| 5406 | |||
| 5407 | |||
| 5408 | # Check whether user wants Kerberos support | ||
| 5409 | KRB4_MSG="no" | ||
| 5410 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | ||
| 5411 | if test "${with_kerberos4+set}" = set; then | ||
| 5412 | withval="$with_kerberos4" | ||
| 5413 | |||
| 5414 | if test "x$withval" != "xno" ; then | ||
| 5415 | |||
| 5416 | if test "x$withval" != "$xyes" ; then | ||
| 5417 | CFLAGS="$CFLAGS -I${withval}/include" | ||
| 5418 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
| 5419 | if test ! -z "$need_dash_r" ; then | ||
| 5420 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
| 5421 | fi | ||
| 5422 | if test ! -z "$blibpath" ; then | ||
| 5423 | blibpath="$blibpath:${withval}/lib" | ||
| 5424 | fi | ||
| 5425 | else | ||
| 5426 | if test -d /usr/include/kerberosIV ; then | ||
| 5427 | CFLAGS="$CFLAGS -I/usr/include/kerberosIV" | ||
| 5428 | fi | ||
| 5429 | fi | ||
| 5430 | |||
| 5431 | for ac_hdr in krb.h | ||
| 5432 | do | ||
| 5433 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
| 5434 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
| 5435 | echo "configure:5436: checking for $ac_hdr" >&5 | ||
| 5436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
| 5437 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5438 | else | ||
| 5439 | cat > conftest.$ac_ext <<EOF | ||
| 5440 | #line 5441 "configure" | ||
| 5441 | #include "confdefs.h" | ||
| 5442 | #include <$ac_hdr> | ||
| 5443 | EOF | ||
| 5444 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 5445 | { (eval echo configure:5446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 5446 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 5447 | if test -z "$ac_err"; then | ||
| 5448 | rm -rf conftest* | ||
| 5449 | eval "ac_cv_header_$ac_safe=yes" | ||
| 5450 | else | ||
| 5451 | echo "$ac_err" >&5 | ||
| 5452 | echo "configure: failed program was:" >&5 | ||
| 5453 | cat conftest.$ac_ext >&5 | ||
| 5454 | rm -rf conftest* | ||
| 5455 | eval "ac_cv_header_$ac_safe=no" | ||
| 5456 | fi | ||
| 5457 | rm -f conftest* | ||
| 5458 | fi | ||
| 5459 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
| 5460 | echo "$ac_t""yes" 1>&6 | ||
| 5461 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
| 5462 | cat >> confdefs.h <<EOF | ||
| 5463 | #define $ac_tr_hdr 1 | ||
| 5464 | EOF | ||
| 5465 | |||
| 5466 | else | ||
| 5467 | echo "$ac_t""no" 1>&6 | ||
| 5468 | fi | ||
| 5469 | done | ||
| 5470 | |||
| 5471 | echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6 | ||
| 5472 | echo "configure:5473: checking for main in -lkrb" >&5 | ||
| 5473 | ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'` | ||
| 5474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 5475 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5476 | else | ||
| 5477 | ac_save_LIBS="$LIBS" | ||
| 5478 | LIBS="-lkrb $LIBS" | ||
| 5479 | cat > conftest.$ac_ext <<EOF | ||
| 5480 | #line 5481 "configure" | ||
| 5481 | #include "confdefs.h" | ||
| 5482 | |||
| 5483 | int main() { | ||
| 5484 | main() | ||
| 5485 | ; return 0; } | ||
| 5486 | EOF | ||
| 5487 | if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 5488 | rm -rf conftest* | ||
| 5489 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 5490 | else | ||
| 5491 | echo "configure: failed program was:" >&5 | ||
| 5492 | cat conftest.$ac_ext >&5 | ||
| 5493 | rm -rf conftest* | ||
| 5494 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 5495 | fi | ||
| 5496 | rm -f conftest* | ||
| 5497 | LIBS="$ac_save_LIBS" | ||
| 5498 | |||
| 5499 | fi | ||
| 5500 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 5501 | echo "$ac_t""yes" 1>&6 | ||
| 5502 | ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 5503 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 5504 | cat >> confdefs.h <<EOF | ||
| 5505 | #define $ac_tr_lib 1 | ||
| 5506 | EOF | ||
| 5507 | |||
| 5508 | LIBS="-lkrb $LIBS" | ||
| 5509 | |||
| 5510 | else | ||
| 5511 | echo "$ac_t""no" 1>&6 | ||
| 5512 | fi | ||
| 5513 | |||
| 5514 | if test "$ac_cv_header_krb_h" != yes; then | ||
| 5515 | echo "configure: warning: Cannot find krb.h, build may fail" 1>&2 | ||
| 5516 | fi | ||
| 5517 | if test "$ac_cv_lib_krb_main" != yes; then | ||
| 5518 | echo "configure: warning: Cannot find libkrb, build may fail" 1>&2 | ||
| 5519 | fi | ||
| 5520 | |||
| 5521 | KLIBS="-lkrb -ldes" | ||
| 5522 | echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6 | ||
| 5523 | echo "configure:5524: checking for dn_expand in -lresolv" >&5 | ||
| 5524 | ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'` | ||
| 5525 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 5526 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5527 | else | ||
| 5528 | ac_save_LIBS="$LIBS" | ||
| 5529 | LIBS="-lresolv $LIBS" | ||
| 5530 | cat > conftest.$ac_ext <<EOF | ||
| 5531 | #line 5532 "configure" | ||
| 5532 | #include "confdefs.h" | ||
| 5533 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 5534 | /* We use char because int might match the return type of a gcc2 | ||
| 5535 | builtin and then its argument prototype would still apply. */ | ||
| 5536 | char dn_expand(); | ||
| 5537 | |||
| 5538 | int main() { | ||
| 5539 | dn_expand() | ||
| 5540 | ; return 0; } | ||
| 5541 | EOF | ||
| 5542 | if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 5543 | rm -rf conftest* | ||
| 5544 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 5545 | else | ||
| 5546 | echo "configure: failed program was:" >&5 | ||
| 5547 | cat conftest.$ac_ext >&5 | ||
| 5548 | rm -rf conftest* | ||
| 5549 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 5550 | fi | ||
| 5551 | rm -f conftest* | ||
| 5552 | LIBS="$ac_save_LIBS" | ||
| 5553 | |||
| 5554 | fi | ||
| 5555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 5556 | echo "$ac_t""yes" 1>&6 | ||
| 5557 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 5558 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 5559 | cat >> confdefs.h <<EOF | ||
| 5560 | #define $ac_tr_lib 1 | ||
| 5561 | EOF | ||
| 5562 | |||
| 5563 | LIBS="-lresolv $LIBS" | ||
| 5564 | |||
| 5565 | else | ||
| 5566 | echo "$ac_t""no" 1>&6 | ||
| 5567 | fi | ||
| 5568 | |||
| 5569 | KRB4=yes | ||
| 5570 | KRB4_MSG="yes" | ||
| 5571 | cat >> confdefs.h <<\EOF | ||
| 5572 | #define KRB4 1 | ||
| 5573 | EOF | ||
| 5574 | |||
| 5575 | fi | ||
| 5576 | |||
| 5577 | |||
| 5578 | fi | ||
| 5579 | |||
| 5580 | |||
| 5581 | # Check whether user wants AFS support | ||
| 5582 | AFS_MSG="no" | ||
| 5583 | # Check whether --with-afs or --without-afs was given. | ||
| 5584 | if test "${with_afs+set}" = set; then | ||
| 5585 | withval="$with_afs" | ||
| 5586 | |||
| 5587 | if test "x$withval" != "xno" ; then | ||
| 5588 | |||
| 5589 | if test "x$withval" != "$xyes" ; then | ||
| 5590 | CFLAGS="$CFLAGS -I${withval}/include" | ||
| 5591 | LFLAGS="$LFLAGS -L${withval}/lib" | ||
| 5592 | fi | ||
| 5593 | |||
| 5594 | if test -z "$KRB4" ; then | ||
| 5595 | echo "configure: warning: AFS requires Kerberos IV support, build may fail" 1>&2 | ||
| 5596 | fi | ||
| 5597 | |||
| 5598 | LIBS="$LIBS -lkafs" | ||
| 5599 | if test ! -z "$AFS_LIBS" ; then | ||
| 5600 | LIBS="$LIBS $AFS_LIBS" | ||
| 5601 | fi | ||
| 5602 | cat >> confdefs.h <<\EOF | ||
| 5603 | #define AFS 1 | ||
| 5604 | EOF | ||
| 5605 | |||
| 5606 | AFS_MSG="yes" | ||
| 5607 | fi | ||
| 5608 | |||
| 5609 | |||
| 5610 | fi | ||
| 5611 | |||
| 5612 | LIBS="$LIBS $KLIBS" | ||
| 5613 | |||
| 5614 | # Check whether user wants S/Key support | ||
| 5615 | SKEY_MSG="no" | ||
| 5616 | # Check whether --with-skey or --without-skey was given. | ||
| 5617 | if test "${with_skey+set}" = set; then | ||
| 5618 | withval="$with_skey" | ||
| 5619 | |||
| 5620 | if test "x$withval" != "xno" ; then | ||
| 5621 | cat >> confdefs.h <<\EOF | ||
| 5622 | #define SKEY 1 | ||
| 5623 | EOF | ||
| 5624 | |||
| 5625 | LIBS="$LIBS -lskey" | ||
| 5626 | SKEY_MSG="yes" | ||
| 5627 | fi | ||
| 5628 | |||
| 5629 | |||
| 5630 | fi | ||
| 5631 | |||
| 5632 | |||
| 5633 | # Check whether user wants TCP wrappers support | ||
| 5634 | TCPW_MSG="no" | ||
| 5635 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
| 5636 | if test "${with_tcp_wrappers+set}" = set; then | ||
| 5637 | withval="$with_tcp_wrappers" | ||
| 5638 | |||
| 5639 | if test "x$withval" != "xno" ; then | ||
| 5640 | saved_LIBS="$LIBS" | ||
| 5641 | LIBS="$LIBS -lwrap" | ||
| 5642 | echo $ac_n "checking for libwrap""... $ac_c" 1>&6 | ||
| 5643 | echo "configure:5644: checking for libwrap" >&5 | ||
| 5644 | cat > conftest.$ac_ext <<EOF | ||
| 5645 | #line 5646 "configure" | ||
| 5646 | #include "confdefs.h" | ||
| 5647 | |||
| 5648 | #include <tcpd.h> | ||
| 5649 | int deny_severity = 0, allow_severity = 0; | ||
| 5650 | |||
| 5651 | int main() { | ||
| 5652 | hosts_access(0); | ||
| 5653 | ; return 0; } | ||
| 5654 | EOF | ||
| 5655 | if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 5656 | rm -rf conftest* | ||
| 5657 | |||
| 5658 | echo "$ac_t""yes" 1>&6 | ||
| 5659 | cat >> confdefs.h <<\EOF | ||
| 5660 | #define LIBWRAP 1 | ||
| 5661 | EOF | ||
| 5662 | |||
| 5663 | TCPW_MSG="yes" | ||
| 5664 | |||
| 5665 | else | ||
| 5666 | echo "configure: failed program was:" >&5 | ||
| 5667 | cat conftest.$ac_ext >&5 | ||
| 5668 | rm -rf conftest* | ||
| 5669 | |||
| 5670 | { echo "configure: error: *** libwrap missing" 1>&2; exit 1; } | ||
| 5671 | |||
| 5672 | |||
| 5673 | fi | ||
| 5674 | rm -f conftest* | ||
| 5675 | fi | ||
| 5676 | |||
| 5677 | |||
| 5678 | fi | ||
| 5679 | |||
| 5680 | |||
| 5681 | # Check whether to enable MD5 passwords | ||
| 5682 | MD5_MSG="no" | ||
| 5683 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
| 5684 | if test "${with_md5_passwords+set}" = set; then | ||
| 5685 | withval="$with_md5_passwords" | ||
| 5686 | |||
| 5687 | if test "x$withval" != "xno" ; then | ||
| 5688 | cat >> confdefs.h <<\EOF | ||
| 5689 | #define HAVE_MD5_PASSWORDS 1 | ||
| 5690 | EOF | ||
| 5691 | |||
| 5692 | MD5_MSG="yes" | ||
| 5693 | fi | ||
| 5694 | |||
| 5695 | |||
| 5696 | fi | ||
| 5697 | |||
| 5698 | |||
| 5699 | # Whether to disable shadow password support | ||
| 5700 | # Check whether --with-shadow or --without-shadow was given. | ||
| 5701 | if test "${with_shadow+set}" = set; then | ||
| 5702 | withval="$with_shadow" | ||
| 5703 | |||
| 5704 | if test "x$withval" = "xno" ; then | ||
| 5705 | cat >> confdefs.h <<\EOF | ||
| 5706 | #define DISABLE_SHADOW 1 | ||
| 5707 | EOF | ||
| 5708 | |||
| 5709 | disable_shadow=yes | ||
| 5710 | fi | ||
| 5711 | |||
| 5712 | |||
| 5713 | fi | ||
| 5714 | |||
| 5715 | |||
| 5716 | if test -z "$disable_shadow" ; then | ||
| 5717 | echo $ac_n "checking if the systems has expire shadow information""... $ac_c" 1>&6 | ||
| 5718 | echo "configure:5719: checking if the systems has expire shadow information" >&5 | ||
| 5719 | cat > conftest.$ac_ext <<EOF | ||
| 5720 | #line 5721 "configure" | ||
| 5721 | #include "confdefs.h" | ||
| 5722 | |||
| 5723 | #include <sys/types.h> | ||
| 5724 | #include <shadow.h> | ||
| 5725 | struct spwd sp; | ||
| 5726 | |||
| 5727 | int main() { | ||
| 5728 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
| 5729 | ; return 0; } | ||
| 5730 | EOF | ||
| 5731 | if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5732 | rm -rf conftest* | ||
| 5733 | sp_expire_available=yes | ||
| 5734 | else | ||
| 5735 | echo "configure: failed program was:" >&5 | ||
| 5736 | cat conftest.$ac_ext >&5 | ||
| 5737 | rm -rf conftest* | ||
| 5738 | |||
| 5739 | |||
| 5740 | fi | ||
| 5741 | rm -f conftest* | ||
| 5742 | |||
| 5743 | if test "x$sp_expire_available" = "xyes" ; then | ||
| 5744 | echo "$ac_t""yes" 1>&6 | ||
| 5745 | cat >> confdefs.h <<\EOF | ||
| 5746 | #define HAS_SHADOW_EXPIRE 1 | ||
| 5747 | EOF | ||
| 5748 | |||
| 5749 | else | ||
| 5750 | echo "$ac_t""no" 1>&6 | ||
| 5751 | fi | ||
| 5752 | fi | ||
| 5753 | |||
| 5754 | # Use ip address instead of hostname in $DISPLAY | ||
| 5755 | DISPLAY_HACK_MSG="no" | ||
| 5756 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
| 5757 | if test "${with_ipaddr_display+set}" = set; then | ||
| 5758 | withval="$with_ipaddr_display" | ||
| 5759 | |||
| 5760 | if test "x$withval" = "xno" ; then | ||
| 5761 | cat >> confdefs.h <<\EOF | ||
| 5762 | #define IPADDR_IN_DISPLAY 1 | ||
| 5763 | EOF | ||
| 5764 | |||
| 5765 | DISPLAY_HACK_MSG="yes" | ||
| 5766 | fi | ||
| 5767 | |||
| 5768 | |||
| 5769 | fi | ||
| 5770 | |||
| 5771 | |||
| 5772 | # Whether to mess with the default path | ||
| 5773 | SERVER_PATH_MSG="(default)" | ||
| 5774 | # Check whether --with-default-path or --without-default-path was given. | ||
| 5775 | if test "${with_default_path+set}" = set; then | ||
| 5776 | withval="$with_default_path" | ||
| 5777 | |||
| 5778 | if test "x$withval" != "xno" ; then | ||
| 5779 | cat >> confdefs.h <<EOF | ||
| 5780 | #define USER_PATH "$withval" | ||
| 5781 | EOF | ||
| 5782 | |||
| 5783 | SERVER_PATH_MSG="$withval" | ||
| 5784 | fi | ||
| 5785 | |||
| 5786 | |||
| 5787 | fi | ||
| 5788 | |||
| 5789 | |||
| 5790 | # Whether to force IPv4 by default (needed on broken glibc Linux) | ||
| 5791 | IPV4_HACK_MSG="no" | ||
| 5792 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | ||
| 5793 | if test "${with_ipv4_default+set}" = set; then | ||
| 5794 | withval="$with_ipv4_default" | ||
| 5795 | |||
| 5796 | if test "x$withval" != "xno" ; then | ||
| 5797 | cat >> confdefs.h <<\EOF | ||
| 5798 | #define IPV4_DEFAULT 1 | ||
| 5799 | EOF | ||
| 5800 | |||
| 5801 | IPV4_HACK_MSG="yes" | ||
| 5802 | fi | ||
| 5803 | |||
| 5804 | |||
| 5805 | fi | ||
| 5806 | |||
| 5807 | |||
| 5808 | echo $ac_n "checking if we need to convert IPv4 in IPv6-mapped addresses""... $ac_c" 1>&6 | ||
| 5809 | echo "configure:5810: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
| 5810 | IPV4_IN6_HACK_MSG="no" | ||
| 5811 | # Check whether --with-4in6 or --without-4in6 was given. | ||
| 5812 | if test "${with_4in6+set}" = set; then | ||
| 5813 | withval="$with_4in6" | ||
| 5814 | |||
| 5815 | if test "x$withval" != "xno" ; then | ||
| 5816 | echo "$ac_t""yes" 1>&6 | ||
| 5817 | cat >> confdefs.h <<\EOF | ||
| 5818 | #define IPV4_IN_IPV6 1 | ||
| 5819 | EOF | ||
| 5820 | |||
| 5821 | IPV4_IN6_HACK_MSG="yes" | ||
| 5822 | else | ||
| 5823 | echo "$ac_t""no" 1>&6 | ||
| 5824 | fi | ||
| 5825 | |||
| 5826 | else | ||
| 5827 | |||
| 5828 | if test "x$inet6_default_4in6" = "xyes"; then | ||
| 5829 | echo "$ac_t""yes (default)" 1>&6 | ||
| 5830 | cat >> confdefs.h <<\EOF | ||
| 5831 | #define IPV4_IN_IPV6 1 | ||
| 5832 | EOF | ||
| 5833 | |||
| 5834 | IPV4_IN6_HACK_MSG="yes" | ||
| 5835 | else | ||
| 5836 | echo "$ac_t""no (default)" 1>&6 | ||
| 5837 | fi | ||
| 5838 | |||
| 5839 | |||
| 5840 | fi | ||
| 5841 | |||
| 5842 | |||
| 5843 | # Where to place sshd.pid | ||
| 5844 | piddir=/var/run | ||
| 5845 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
| 5846 | if test "${with_pid_dir+set}" = set; then | ||
| 5847 | withval="$with_pid_dir" | ||
| 5848 | |||
| 5849 | if test "x$withval" != "xno" ; then | ||
| 5850 | piddir=$withval | ||
| 5851 | fi | ||
| 5852 | |||
| 5853 | |||
| 5854 | fi | ||
| 5855 | |||
| 5856 | |||
| 5857 | cat >> confdefs.h <<EOF | ||
| 5858 | #define PIDDIR "$piddir" | ||
| 5859 | EOF | ||
| 5860 | |||
| 5861 | |||
| 5862 | |||
| 5863 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
| 5864 | if test "${enable_lastlog+set}" = set; then | ||
| 5865 | enableval="$enable_lastlog" | ||
| 5866 | cat >> confdefs.h <<\EOF | ||
| 5867 | #define DISABLE_LASTLOG 1 | ||
| 5868 | EOF | ||
| 5869 | |||
| 5870 | |||
| 5871 | fi | ||
| 5872 | |||
| 5873 | # Check whether --enable-utmp or --disable-utmp was given. | ||
| 5874 | if test "${enable_utmp+set}" = set; then | ||
| 5875 | enableval="$enable_utmp" | ||
| 5876 | cat >> confdefs.h <<\EOF | ||
| 5877 | #define DISABLE_UTMP 1 | ||
| 5878 | EOF | ||
| 5879 | |||
| 5880 | |||
| 5881 | fi | ||
| 5882 | |||
| 5883 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
| 5884 | if test "${enable_utmpx+set}" = set; then | ||
| 5885 | enableval="$enable_utmpx" | ||
| 5886 | cat >> confdefs.h <<\EOF | ||
| 5887 | #define DISABLE_UTMPX 1 | ||
| 5888 | EOF | ||
| 5889 | |||
| 5890 | |||
| 5891 | fi | ||
| 5892 | |||
| 5893 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
| 5894 | if test "${enable_wtmp+set}" = set; then | ||
| 5895 | enableval="$enable_wtmp" | ||
| 5896 | cat >> confdefs.h <<\EOF | ||
| 5897 | #define DISABLE_WTMP 1 | ||
| 5898 | EOF | ||
| 5899 | |||
| 5900 | |||
| 5901 | fi | ||
| 5902 | |||
| 5903 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
| 5904 | if test "${enable_wtmpx+set}" = set; then | ||
| 5905 | enableval="$enable_wtmpx" | ||
| 5906 | cat >> confdefs.h <<\EOF | ||
| 5907 | #define DISABLE_WTMPX 1 | ||
| 5908 | EOF | ||
| 5909 | |||
| 5910 | |||
| 5911 | fi | ||
| 5912 | |||
| 5913 | # Check whether --enable-libutil or --disable-libutil was given. | ||
| 5914 | if test "${enable_libutil+set}" = set; then | ||
| 5915 | enableval="$enable_libutil" | ||
| 5916 | cat >> confdefs.h <<\EOF | ||
| 5917 | #define DISABLE_LOGIN 1 | ||
| 5918 | EOF | ||
| 5919 | |||
| 5920 | |||
| 5921 | fi | ||
| 5922 | |||
| 5923 | # Check whether --enable-pututline or --disable-pututline was given. | ||
| 5924 | if test "${enable_pututline+set}" = set; then | ||
| 5925 | enableval="$enable_pututline" | ||
| 5926 | cat >> confdefs.h <<\EOF | ||
| 5927 | #define DISABLE_PUTUTLINE 1 | ||
| 5928 | EOF | ||
| 5929 | |||
| 5930 | |||
| 5931 | fi | ||
| 5932 | |||
| 5933 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
| 5934 | if test "${enable_pututxline+set}" = set; then | ||
| 5935 | enableval="$enable_pututxline" | ||
| 5936 | cat >> confdefs.h <<\EOF | ||
| 5937 | #define DISABLE_PUTUTXLINE 1 | ||
| 5938 | EOF | ||
| 5939 | |||
| 5940 | |||
| 5941 | fi | ||
| 5942 | |||
| 5943 | # Check whether --with-lastlog or --without-lastlog was given. | ||
| 5944 | if test "${with_lastlog+set}" = set; then | ||
| 5945 | withval="$with_lastlog" | ||
| 5946 | conf_lastlog_location="$withval"; | ||
| 5947 | fi | ||
| 5948 | |||
| 5949 | |||
| 5950 | |||
| 5951 | echo $ac_n "checking if your system defines LASTLOG_FILE""... $ac_c" 1>&6 | ||
| 5952 | echo "configure:5953: checking if your system defines LASTLOG_FILE" >&5 | ||
| 5953 | cat > conftest.$ac_ext <<EOF | ||
| 5954 | #line 5955 "configure" | ||
| 5955 | #include "confdefs.h" | ||
| 5956 | |||
| 5957 | #include <sys/types.h> | ||
| 5958 | #include <utmp.h> | ||
| 5959 | #ifdef HAVE_LASTLOG_H | ||
| 5960 | # include <lastlog.h> | ||
| 5961 | #endif | ||
| 5962 | #ifdef HAVE_PATHS_H | ||
| 5963 | # include <paths.h> | ||
| 5964 | #endif | ||
| 5965 | |||
| 5966 | int main() { | ||
| 5967 | char *lastlog = LASTLOG_FILE; | ||
| 5968 | ; return 0; } | ||
| 5969 | EOF | ||
| 5970 | if { (eval echo configure:5971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5971 | rm -rf conftest* | ||
| 5972 | echo "$ac_t""yes" 1>&6 | ||
| 5973 | else | ||
| 5974 | echo "configure: failed program was:" >&5 | ||
| 5975 | cat conftest.$ac_ext >&5 | ||
| 5976 | rm -rf conftest* | ||
| 5977 | |||
| 5978 | echo "$ac_t""no" 1>&6 | ||
| 5979 | echo $ac_n "checking if your system defines _PATH_LASTLOG""... $ac_c" 1>&6 | ||
| 5980 | echo "configure:5981: checking if your system defines _PATH_LASTLOG" >&5 | ||
| 5981 | cat > conftest.$ac_ext <<EOF | ||
| 5982 | #line 5983 "configure" | ||
| 5983 | #include "confdefs.h" | ||
| 5984 | |||
| 5985 | #include <sys/types.h> | ||
| 5986 | #include <utmp.h> | ||
| 5987 | #ifdef HAVE_LASTLOG_H | ||
| 5988 | # include <lastlog.h> | ||
| 5989 | #endif | ||
| 5990 | #ifdef HAVE_PATHS_H | ||
| 5991 | # include <paths.h> | ||
| 5992 | #endif | ||
| 5993 | |||
| 5994 | int main() { | ||
| 5995 | char *lastlog = _PATH_LASTLOG; | ||
| 5996 | ; return 0; } | ||
| 5997 | EOF | ||
| 5998 | if { (eval echo configure:5999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5999 | rm -rf conftest* | ||
| 6000 | echo "$ac_t""yes" 1>&6 | ||
| 6001 | else | ||
| 6002 | echo "configure: failed program was:" >&5 | ||
| 6003 | cat conftest.$ac_ext >&5 | ||
| 6004 | rm -rf conftest* | ||
| 6005 | |||
| 6006 | echo "$ac_t""no" 1>&6 | ||
| 6007 | system_lastlog_path=no | ||
| 6008 | |||
| 6009 | fi | ||
| 6010 | rm -f conftest* | ||
| 6011 | |||
| 6012 | |||
| 6013 | fi | ||
| 6014 | rm -f conftest* | ||
| 6015 | |||
| 6016 | if test -z "$conf_lastlog_location"; then | ||
| 6017 | if test x"$system_lastlog_path" = x"no" ; then | ||
| 6018 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
| 6019 | if (test -d "$f" || test -f "$f") ; then | ||
| 6020 | conf_lastlog_location=$f | ||
| 6021 | fi | ||
| 6022 | done | ||
| 6023 | if test -z "$conf_lastlog_location"; then | ||
| 6024 | echo "configure: warning: ** Cannot find lastlog **" 1>&2 | ||
| 6025 | fi | ||
| 6026 | fi | ||
| 6027 | fi | ||
| 6028 | |||
| 6029 | if test -n "$conf_lastlog_location"; then | ||
| 6030 | cat >> confdefs.h <<EOF | ||
| 6031 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
| 6032 | EOF | ||
| 6033 | |||
| 6034 | fi | ||
| 6035 | |||
| 6036 | echo $ac_n "checking if your system defines UTMP_FILE""... $ac_c" 1>&6 | ||
| 6037 | echo "configure:6038: checking if your system defines UTMP_FILE" >&5 | ||
| 6038 | cat > conftest.$ac_ext <<EOF | ||
| 6039 | #line 6040 "configure" | ||
| 6040 | #include "confdefs.h" | ||
| 6041 | |||
| 6042 | #include <sys/types.h> | ||
| 6043 | #include <utmp.h> | ||
| 6044 | #ifdef HAVE_PATHS_H | ||
| 6045 | # include <paths.h> | ||
| 6046 | #endif | ||
| 6047 | |||
| 6048 | int main() { | ||
| 6049 | char *utmp = UTMP_FILE; | ||
| 6050 | ; return 0; } | ||
| 6051 | EOF | ||
| 6052 | if { (eval echo configure:6053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6053 | rm -rf conftest* | ||
| 6054 | echo "$ac_t""yes" 1>&6 | ||
| 6055 | else | ||
| 6056 | echo "configure: failed program was:" >&5 | ||
| 6057 | cat conftest.$ac_ext >&5 | ||
| 6058 | rm -rf conftest* | ||
| 6059 | echo "$ac_t""no" 1>&6 | ||
| 6060 | system_utmp_path=no | ||
| 6061 | |||
| 6062 | fi | ||
| 6063 | rm -f conftest* | ||
| 6064 | if test -z "$conf_utmp_location"; then | ||
| 6065 | if test x"$system_utmp_path" = x"no" ; then | ||
| 6066 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
| 6067 | if test -f $f ; then | ||
| 6068 | conf_utmp_location=$f | ||
| 6069 | fi | ||
| 6070 | done | ||
| 6071 | if test -z "$conf_utmp_location"; then | ||
| 6072 | cat >> confdefs.h <<\EOF | ||
| 6073 | #define DISABLE_UTMP 1 | ||
| 6074 | EOF | ||
| 6075 | |||
| 6076 | fi | ||
| 6077 | fi | ||
| 6078 | fi | ||
| 6079 | if test -n "$conf_utmp_location"; then | ||
| 6080 | cat >> confdefs.h <<EOF | ||
| 6081 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
| 6082 | EOF | ||
| 6083 | |||
| 6084 | fi | ||
| 6085 | |||
| 6086 | echo $ac_n "checking if your system defines WTMP_FILE""... $ac_c" 1>&6 | ||
| 6087 | echo "configure:6088: checking if your system defines WTMP_FILE" >&5 | ||
| 6088 | cat > conftest.$ac_ext <<EOF | ||
| 6089 | #line 6090 "configure" | ||
| 6090 | #include "confdefs.h" | ||
| 6091 | |||
| 6092 | #include <sys/types.h> | ||
| 6093 | #include <utmp.h> | ||
| 6094 | #ifdef HAVE_PATHS_H | ||
| 6095 | # include <paths.h> | ||
| 6096 | #endif | ||
| 6097 | |||
| 6098 | int main() { | ||
| 6099 | char *wtmp = WTMP_FILE; | ||
| 6100 | ; return 0; } | ||
| 6101 | EOF | ||
| 6102 | if { (eval echo configure:6103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6103 | rm -rf conftest* | ||
| 6104 | echo "$ac_t""yes" 1>&6 | ||
| 6105 | else | ||
| 6106 | echo "configure: failed program was:" >&5 | ||
| 6107 | cat conftest.$ac_ext >&5 | ||
| 6108 | rm -rf conftest* | ||
| 6109 | echo "$ac_t""no" 1>&6 | ||
| 6110 | system_wtmp_path=no | ||
| 6111 | |||
| 6112 | fi | ||
| 6113 | rm -f conftest* | ||
| 6114 | if test -z "$conf_wtmp_location"; then | ||
| 6115 | if test x"$system_wtmp_path" = x"no" ; then | ||
| 6116 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
| 6117 | if test -f $f ; then | ||
| 6118 | conf_wtmp_location=$f | ||
| 6119 | fi | ||
| 6120 | done | ||
| 6121 | if test -z "$conf_wtmp_location"; then | ||
| 6122 | cat >> confdefs.h <<\EOF | ||
| 6123 | #define DISABLE_WTMP 1 | ||
| 6124 | EOF | ||
| 6125 | |||
| 6126 | fi | ||
| 6127 | fi | ||
| 6128 | fi | ||
| 6129 | if test -n "$conf_wtmp_location"; then | ||
| 6130 | cat >> confdefs.h <<EOF | ||
| 6131 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
| 6132 | EOF | ||
| 6133 | |||
| 6134 | fi | ||
| 6135 | |||
| 6136 | |||
| 6137 | echo $ac_n "checking if your system defines UTMPX_FILE""... $ac_c" 1>&6 | ||
| 6138 | echo "configure:6139: checking if your system defines UTMPX_FILE" >&5 | ||
| 6139 | cat > conftest.$ac_ext <<EOF | ||
| 6140 | #line 6141 "configure" | ||
| 6141 | #include "confdefs.h" | ||
| 6142 | |||
| 6143 | #include <sys/types.h> | ||
| 6144 | #include <utmp.h> | ||
| 6145 | #ifdef HAVE_UTMPX_H | ||
| 6146 | #include <utmpx.h> | ||
| 6147 | #endif | ||
| 6148 | #ifdef HAVE_PATHS_H | ||
| 6149 | # include <paths.h> | ||
| 6150 | #endif | ||
| 6151 | |||
| 6152 | int main() { | ||
| 6153 | char *utmpx = UTMPX_FILE; | ||
| 6154 | ; return 0; } | ||
| 6155 | EOF | ||
| 6156 | if { (eval echo configure:6157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6157 | rm -rf conftest* | ||
| 6158 | echo "$ac_t""yes" 1>&6 | ||
| 6159 | else | ||
| 6160 | echo "configure: failed program was:" >&5 | ||
| 6161 | cat conftest.$ac_ext >&5 | ||
| 6162 | rm -rf conftest* | ||
| 6163 | echo "$ac_t""no" 1>&6 | ||
| 6164 | system_utmpx_path=no | ||
| 6165 | |||
| 6166 | fi | ||
| 6167 | rm -f conftest* | ||
| 6168 | if test -z "$conf_utmpx_location"; then | ||
| 6169 | if test x"$system_utmpx_path" = x"no" ; then | ||
| 6170 | cat >> confdefs.h <<\EOF | ||
| 6171 | #define DISABLE_UTMPX 1 | ||
| 6172 | EOF | ||
| 6173 | |||
| 6174 | fi | ||
| 6175 | else | ||
| 6176 | cat >> confdefs.h <<EOF | ||
| 6177 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
| 6178 | EOF | ||
| 6179 | |||
| 6180 | fi | ||
| 6181 | |||
| 6182 | echo $ac_n "checking if your system defines WTMPX_FILE""... $ac_c" 1>&6 | ||
| 6183 | echo "configure:6184: checking if your system defines WTMPX_FILE" >&5 | ||
| 6184 | cat > conftest.$ac_ext <<EOF | ||
| 6185 | #line 6186 "configure" | ||
| 6186 | #include "confdefs.h" | ||
| 6187 | |||
| 6188 | #include <sys/types.h> | ||
| 6189 | #include <utmp.h> | ||
| 6190 | #ifdef HAVE_UTMPX_H | ||
| 6191 | #include <utmpx.h> | ||
| 6192 | #endif | ||
| 6193 | #ifdef HAVE_PATHS_H | ||
| 6194 | # include <paths.h> | ||
| 6195 | #endif | ||
| 6196 | |||
| 6197 | int main() { | ||
| 6198 | char *wtmpx = WTMPX_FILE; | ||
| 6199 | ; return 0; } | ||
| 6200 | EOF | ||
| 6201 | if { (eval echo configure:6202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6202 | rm -rf conftest* | ||
| 6203 | echo "$ac_t""yes" 1>&6 | ||
| 6204 | else | ||
| 6205 | echo "configure: failed program was:" >&5 | ||
| 6206 | cat conftest.$ac_ext >&5 | ||
| 6207 | rm -rf conftest* | ||
| 6208 | echo "$ac_t""no" 1>&6 | ||
| 6209 | system_wtmpx_path=no | ||
| 6210 | |||
| 6211 | fi | ||
| 6212 | rm -f conftest* | ||
| 6213 | if test -z "$conf_wtmpx_location"; then | ||
| 6214 | if test x"$system_wtmpx_path" = x"no" ; then | ||
| 6215 | cat >> confdefs.h <<\EOF | ||
| 6216 | #define DISABLE_WTMPX 1 | ||
| 6217 | EOF | ||
| 6218 | |||
| 6219 | fi | ||
| 6220 | else | ||
| 6221 | cat >> confdefs.h <<EOF | ||
| 6222 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
| 6223 | EOF | ||
| 6224 | |||
| 6225 | fi | ||
| 6226 | |||
| 6227 | |||
| 6228 | # Change default command timeout for builtin PRNG | ||
| 6229 | entropy_timeout=200 | ||
| 6230 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
| 6231 | if test "${with_entropy_timeout+set}" = set; then | ||
| 6232 | withval="$with_entropy_timeout" | ||
| 6233 | |||
| 6234 | if test "x$withval" != "xno" ; then | ||
| 6235 | entropy_timeout=$withval | ||
| 6236 | fi | ||
| 6237 | |||
| 6238 | |||
| 6239 | fi | ||
| 6240 | |||
| 6241 | cat >> confdefs.h <<EOF | ||
| 6242 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
| 6243 | EOF | ||
| 6244 | |||
| 6245 | |||
| 6246 | |||
| 6247 | if test ! -z "$blibpath" ; then | ||
| 6248 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | ||
| 6249 | echo "configure: warning: Please check and edit -blibpath in LDFLAGS in Makefile" 1>&2 | ||
| 6250 | fi | ||
| 6251 | |||
| 6252 | trap '' 1 2 15 | ||
| 6253 | cat > confcache <<\EOF | ||
| 6254 | # This file is a shell script that caches the results of configure | ||
| 6255 | # tests run on this system so they can be shared between configure | ||
| 6256 | # scripts and configure runs. It is not useful on other systems. | ||
| 6257 | # If it contains results you don't want to keep, you may remove or edit it. | ||
| 6258 | # | ||
| 6259 | # By default, configure uses ./config.cache as the cache file, | ||
| 6260 | # creating it if it does not exist already. You can give configure | ||
| 6261 | # the --cache-file=FILE option to use a different cache file; that is | ||
| 6262 | # what configure does when it calls configure scripts in | ||
| 6263 | # subdirectories, so they share the cache. | ||
| 6264 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | ||
| 6265 | # config.status only pays attention to the cache file if you give it the | ||
| 6266 | # --recheck option to rerun configure. | ||
| 6267 | # | ||
| 6268 | EOF | ||
| 6269 | # The following way of writing the cache mishandles newlines in values, | ||
| 6270 | # but we know of no workaround that is simple, portable, and efficient. | ||
| 6271 | # So, don't put newlines in cache variables' values. | ||
| 6272 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
| 6273 | # and sets the high bit in the cache file unless we assign to the vars. | ||
| 6274 | (set) 2>&1 | | ||
| 6275 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
| 6276 | *ac_space=\ *) | ||
| 6277 | # `set' does not quote correctly, so add quotes (double-quote substitution | ||
| 6278 | # turns \\\\ into \\, and sed turns \\ into \). | ||
| 6279 | sed -n \ | ||
| 6280 | -e "s/'/'\\\\''/g" \ | ||
| 6281 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | ||
| 6282 | ;; | ||
| 6283 | *) | ||
| 6284 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
| 6285 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | ||
| 6286 | ;; | ||
| 6287 | esac >> confcache | ||
| 6288 | if cmp -s $cache_file confcache; then | ||
| 6289 | : | ||
| 6290 | else | ||
| 6291 | if test -w $cache_file; then | ||
| 6292 | echo "updating cache $cache_file" | ||
| 6293 | cat confcache > $cache_file | ||
| 6294 | else | ||
| 6295 | echo "not updating unwritable cache $cache_file" | ||
| 6296 | fi | ||
| 6297 | fi | ||
| 6298 | rm -f confcache | ||
| 6299 | |||
| 6300 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
| 6301 | |||
| 6302 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
| 6303 | # Let make expand exec_prefix. | ||
| 6304 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
| 6305 | |||
| 6306 | # Any assignment to VPATH causes Sun make to only execute | ||
| 6307 | # the first set of double-colon rules, so remove it if not needed. | ||
| 6308 | # If there is a colon in the path, we need to keep it. | ||
| 6309 | if test "x$srcdir" = x.; then | ||
| 6310 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | ||
| 6311 | fi | ||
| 6312 | |||
| 6313 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | ||
| 6314 | |||
| 6315 | DEFS=-DHAVE_CONFIG_H | ||
| 6316 | |||
| 6317 | # Without the "./", some shells look in PATH for config.status. | ||
| 6318 | : ${CONFIG_STATUS=./config.status} | ||
| 6319 | |||
| 6320 | echo creating $CONFIG_STATUS | ||
| 6321 | rm -f $CONFIG_STATUS | ||
| 6322 | cat > $CONFIG_STATUS <<EOF | ||
| 6323 | #! /bin/sh | ||
| 6324 | # Generated automatically by configure. | ||
| 6325 | # Run this file to recreate the current configuration. | ||
| 6326 | # This directory was configured as follows, | ||
| 6327 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
| 6328 | # | ||
| 6329 | # $0 $ac_configure_args | ||
| 6330 | # | ||
| 6331 | # Compiler output produced by configure, useful for debugging | ||
| 6332 | # configure, is in ./config.log if it exists. | ||
| 6333 | |||
| 6334 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | ||
| 6335 | for ac_option | ||
| 6336 | do | ||
| 6337 | case "\$ac_option" in | ||
| 6338 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
| 6339 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | ||
| 6340 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | ||
| 6341 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | ||
| 6342 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | ||
| 6343 | exit 0 ;; | ||
| 6344 | -help | --help | --hel | --he | --h) | ||
| 6345 | echo "\$ac_cs_usage"; exit 0 ;; | ||
| 6346 | *) echo "\$ac_cs_usage"; exit 1 ;; | ||
| 6347 | esac | ||
| 6348 | done | ||
| 6349 | |||
| 6350 | ac_given_srcdir=$srcdir | ||
| 6351 | ac_given_INSTALL="$INSTALL" | ||
| 6352 | |||
| 6353 | trap 'rm -fr `echo "Makefile ssh_prng_cmds config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | ||
| 6354 | EOF | ||
| 6355 | cat >> $CONFIG_STATUS <<EOF | ||
| 6356 | |||
| 6357 | # Protect against being on the right side of a sed subst in config.status. | ||
| 6358 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | ||
| 6359 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | ||
| 6360 | $ac_vpsub | ||
| 6361 | $extrasub | ||
| 6362 | s%@SHELL@%$SHELL%g | ||
| 6363 | s%@CFLAGS@%$CFLAGS%g | ||
| 6364 | s%@CPPFLAGS@%$CPPFLAGS%g | ||
| 6365 | s%@CXXFLAGS@%$CXXFLAGS%g | ||
| 6366 | s%@FFLAGS@%$FFLAGS%g | ||
| 6367 | s%@DEFS@%$DEFS%g | ||
| 6368 | s%@LDFLAGS@%$LDFLAGS%g | ||
| 6369 | s%@LIBS@%$LIBS%g | ||
| 6370 | s%@exec_prefix@%$exec_prefix%g | ||
| 6371 | s%@prefix@%$prefix%g | ||
| 6372 | s%@program_transform_name@%$program_transform_name%g | ||
| 6373 | s%@bindir@%$bindir%g | ||
| 6374 | s%@sbindir@%$sbindir%g | ||
| 6375 | s%@libexecdir@%$libexecdir%g | ||
| 6376 | s%@datadir@%$datadir%g | ||
| 6377 | s%@sysconfdir@%$sysconfdir%g | ||
| 6378 | s%@sharedstatedir@%$sharedstatedir%g | ||
| 6379 | s%@localstatedir@%$localstatedir%g | ||
| 6380 | s%@libdir@%$libdir%g | ||
| 6381 | s%@includedir@%$includedir%g | ||
| 6382 | s%@oldincludedir@%$oldincludedir%g | ||
| 6383 | s%@infodir@%$infodir%g | ||
| 6384 | s%@mandir@%$mandir%g | ||
| 6385 | s%@CC@%$CC%g | ||
| 6386 | s%@host@%$host%g | ||
| 6387 | s%@host_alias@%$host_alias%g | ||
| 6388 | s%@host_cpu@%$host_cpu%g | ||
| 6389 | s%@host_vendor@%$host_vendor%g | ||
| 6390 | s%@host_os@%$host_os%g | ||
| 6391 | s%@CPP@%$CPP%g | ||
| 6392 | s%@RANLIB@%$RANLIB%g | ||
| 6393 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | ||
| 6394 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | ||
| 6395 | s%@INSTALL_DATA@%$INSTALL_DATA%g | ||
| 6396 | s%@AR@%$AR%g | ||
| 6397 | s%@PERL@%$PERL%g | ||
| 6398 | s%@ENT@%$ENT%g | ||
| 6399 | s%@LD@%$LD%g | ||
| 6400 | s%@rsh_path@%$rsh_path%g | ||
| 6401 | s%@xauth_path@%$xauth_path%g | ||
| 6402 | s%@RANDOM_POOL@%$RANDOM_POOL%g | ||
| 6403 | s%@PROG_LS@%$PROG_LS%g | ||
| 6404 | s%@PROG_NETSTAT@%$PROG_NETSTAT%g | ||
| 6405 | s%@PROG_ARP@%$PROG_ARP%g | ||
| 6406 | s%@PROG_IFCONFIG@%$PROG_IFCONFIG%g | ||
| 6407 | s%@PROG_PS@%$PROG_PS%g | ||
| 6408 | s%@PROG_W@%$PROG_W%g | ||
| 6409 | s%@PROG_WHO@%$PROG_WHO%g | ||
| 6410 | s%@PROG_LAST@%$PROG_LAST%g | ||
| 6411 | s%@PROG_LASTLOG@%$PROG_LASTLOG%g | ||
| 6412 | s%@PROG_DF@%$PROG_DF%g | ||
| 6413 | s%@PROG_VMSTAT@%$PROG_VMSTAT%g | ||
| 6414 | s%@PROG_UPTIME@%$PROG_UPTIME%g | ||
| 6415 | s%@PROG_IPCS@%$PROG_IPCS%g | ||
| 6416 | s%@PROG_TAIL@%$PROG_TAIL%g | ||
| 6417 | s%@INSTALL_SSH_PRNG_CMDS@%$INSTALL_SSH_PRNG_CMDS%g | ||
| 6418 | s%@MANTYPE@%$MANTYPE%g | ||
| 6419 | s%@mansubdir@%$mansubdir%g | ||
| 6420 | s%@piddir@%$piddir%g | ||
| 6421 | |||
| 6422 | CEOF | ||
| 6423 | EOF | ||
| 6424 | |||
| 6425 | cat >> $CONFIG_STATUS <<\EOF | ||
| 6426 | |||
| 6427 | # Split the substitutions into bite-sized pieces for seds with | ||
| 6428 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
| 6429 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | ||
| 6430 | ac_file=1 # Number of current file. | ||
| 6431 | ac_beg=1 # First line for current file. | ||
| 6432 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | ||
| 6433 | ac_more_lines=: | ||
| 6434 | ac_sed_cmds="" | ||
| 6435 | while $ac_more_lines; do | ||
| 6436 | if test $ac_beg -gt 1; then | ||
| 6437 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | ||
| 6438 | else | ||
| 6439 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | ||
| 6440 | fi | ||
| 6441 | if test ! -s conftest.s$ac_file; then | ||
| 6442 | ac_more_lines=false | ||
| 6443 | rm -f conftest.s$ac_file | ||
| 6444 | else | ||
| 6445 | if test -z "$ac_sed_cmds"; then | ||
| 6446 | ac_sed_cmds="sed -f conftest.s$ac_file" | ||
| 6447 | else | ||
| 6448 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | ||
| 6449 | fi | ||
| 6450 | ac_file=`expr $ac_file + 1` | ||
| 6451 | ac_beg=$ac_end | ||
| 6452 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | ||
| 6453 | fi | ||
| 6454 | done | ||
| 6455 | if test -z "$ac_sed_cmds"; then | ||
| 6456 | ac_sed_cmds=cat | ||
| 6457 | fi | ||
| 6458 | EOF | ||
| 6459 | |||
| 6460 | cat >> $CONFIG_STATUS <<EOF | ||
| 6461 | |||
| 6462 | CONFIG_FILES=\${CONFIG_FILES-"Makefile ssh_prng_cmds"} | ||
| 6463 | EOF | ||
| 6464 | cat >> $CONFIG_STATUS <<\EOF | ||
| 6465 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | ||
| 6466 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
| 6467 | case "$ac_file" in | ||
| 6468 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
| 6469 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
| 6470 | *) ac_file_in="${ac_file}.in" ;; | ||
| 6471 | esac | ||
| 6472 | |||
| 6473 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | ||
| 6474 | |||
| 6475 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
| 6476 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
| 6477 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
| 6478 | # The file is in a subdirectory. | ||
| 6479 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
| 6480 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | ||
| 6481 | # A "../" for each directory in $ac_dir_suffix. | ||
| 6482 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | ||
| 6483 | else | ||
| 6484 | ac_dir_suffix= ac_dots= | ||
| 6485 | fi | ||
| 6486 | |||
| 6487 | case "$ac_given_srcdir" in | ||
| 6488 | .) srcdir=. | ||
| 6489 | if test -z "$ac_dots"; then top_srcdir=. | ||
| 6490 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | ||
| 6491 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | ||
| 6492 | *) # Relative path. | ||
| 6493 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | ||
| 6494 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
| 6495 | esac | ||
| 6496 | |||
| 6497 | case "$ac_given_INSTALL" in | ||
| 6498 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | ||
| 6499 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | ||
| 6500 | esac | ||
| 6501 | |||
| 6502 | echo creating "$ac_file" | ||
| 6503 | rm -f "$ac_file" | ||
| 6504 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | ||
| 6505 | case "$ac_file" in | ||
| 6506 | *Makefile*) ac_comsub="1i\\ | ||
| 6507 | # $configure_input" ;; | ||
| 6508 | *) ac_comsub= ;; | ||
| 6509 | esac | ||
| 6510 | |||
| 6511 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
| 6512 | sed -e "$ac_comsub | ||
| 6513 | s%@configure_input@%$configure_input%g | ||
| 6514 | s%@srcdir@%$srcdir%g | ||
| 6515 | s%@top_srcdir@%$top_srcdir%g | ||
| 6516 | s%@INSTALL@%$INSTALL%g | ||
| 6517 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | ||
| 6518 | fi; done | ||
| 6519 | rm -f conftest.s* | ||
| 6520 | |||
| 6521 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
| 6522 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
| 6523 | # | ||
| 6524 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
| 6525 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
| 6526 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | ||
| 6527 | ac_dC='\3' | ||
| 6528 | ac_dD='%g' | ||
| 6529 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | ||
| 6530 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
| 6531 | ac_uB='\([ ]\)%\1#\2define\3' | ||
| 6532 | ac_uC=' ' | ||
| 6533 | ac_uD='\4%g' | ||
| 6534 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
| 6535 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
| 6536 | ac_eB='$%\1#\2define\3' | ||
| 6537 | ac_eC=' ' | ||
| 6538 | ac_eD='%g' | ||
| 6539 | |||
| 6540 | if test "${CONFIG_HEADERS+set}" != set; then | ||
| 6541 | EOF | ||
| 6542 | cat >> $CONFIG_STATUS <<EOF | ||
| 6543 | CONFIG_HEADERS="config.h" | ||
| 6544 | EOF | ||
| 6545 | cat >> $CONFIG_STATUS <<\EOF | ||
| 6546 | fi | ||
| 6547 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | ||
| 6548 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
| 6549 | case "$ac_file" in | ||
| 6550 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
| 6551 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
| 6552 | *) ac_file_in="${ac_file}.in" ;; | ||
| 6553 | esac | ||
| 6554 | |||
| 6555 | echo creating $ac_file | ||
| 6556 | |||
| 6557 | rm -f conftest.frag conftest.in conftest.out | ||
| 6558 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
| 6559 | cat $ac_file_inputs > conftest.in | ||
| 6560 | |||
| 6561 | EOF | ||
| 6562 | |||
| 6563 | # Transform confdefs.h into a sed script conftest.vals that substitutes | ||
| 6564 | # the proper values into config.h.in to produce config.h. And first: | ||
| 6565 | # Protect against being on the right side of a sed subst in config.status. | ||
| 6566 | # Protect against being in an unquoted here document in config.status. | ||
| 6567 | rm -f conftest.vals | ||
| 6568 | cat > conftest.hdr <<\EOF | ||
| 6569 | s/[\\&%]/\\&/g | ||
| 6570 | s%[\\$`]%\\&%g | ||
| 6571 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | ||
| 6572 | s%ac_d%ac_u%gp | ||
| 6573 | s%ac_u%ac_e%gp | ||
| 6574 | EOF | ||
| 6575 | sed -n -f conftest.hdr confdefs.h > conftest.vals | ||
| 6576 | rm -f conftest.hdr | ||
| 6577 | |||
| 6578 | # This sed command replaces #undef with comments. This is necessary, for | ||
| 6579 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
| 6580 | # on some systems where configure will not decide to define it. | ||
| 6581 | cat >> conftest.vals <<\EOF | ||
| 6582 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | ||
| 6583 | EOF | ||
| 6584 | |||
| 6585 | # Break up conftest.vals because some shells have a limit on | ||
| 6586 | # the size of here documents, and old seds have small limits too. | ||
| 6587 | |||
| 6588 | rm -f conftest.tail | ||
| 6589 | while : | ||
| 6590 | do | ||
| 6591 | ac_lines=`grep -c . conftest.vals` | ||
| 6592 | # grep -c gives empty output for an empty file on some AIX systems. | ||
| 6593 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | ||
| 6594 | # Write a limited-size here document to conftest.frag. | ||
| 6595 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | ||
| 6596 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | ||
| 6597 | echo 'CEOF | ||
| 6598 | sed -f conftest.frag conftest.in > conftest.out | ||
| 6599 | rm -f conftest.in | ||
| 6600 | mv conftest.out conftest.in | ||
| 6601 | ' >> $CONFIG_STATUS | ||
| 6602 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | ||
| 6603 | rm -f conftest.vals | ||
| 6604 | mv conftest.tail conftest.vals | ||
| 6605 | done | ||
| 6606 | rm -f conftest.vals | ||
| 6607 | |||
| 6608 | cat >> $CONFIG_STATUS <<\EOF | ||
| 6609 | rm -f conftest.frag conftest.h | ||
| 6610 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | ||
| 6611 | cat conftest.in >> conftest.h | ||
| 6612 | rm -f conftest.in | ||
| 6613 | if cmp -s $ac_file conftest.h 2>/dev/null; then | ||
| 6614 | echo "$ac_file is unchanged" | ||
| 6615 | rm -f conftest.h | ||
| 6616 | else | ||
| 6617 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
| 6618 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
| 6619 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
| 6620 | # The file is in a subdirectory. | ||
| 6621 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
| 6622 | fi | ||
| 6623 | rm -f $ac_file | ||
| 6624 | mv conftest.h $ac_file | ||
| 6625 | fi | ||
| 6626 | fi; done | ||
| 6627 | |||
| 6628 | EOF | ||
| 6629 | cat >> $CONFIG_STATUS <<EOF | ||
| 6630 | |||
| 6631 | EOF | ||
| 6632 | cat >> $CONFIG_STATUS <<\EOF | ||
| 6633 | |||
| 6634 | exit 0 | ||
| 6635 | EOF | ||
| 6636 | chmod +x $CONFIG_STATUS | ||
| 6637 | rm -fr confdefs* $ac_clean_files | ||
| 6638 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | ||
| 6639 | |||
| 6640 | |||
| 6641 | # Print summary of options | ||
| 6642 | |||
| 6643 | if test x$MANTYPE = x'$(CATMAN)' ; then | ||
| 6644 | MAN_MSG=cat | ||
| 6645 | else | ||
| 6646 | MAN_MSG=man | ||
| 6647 | fi | ||
| 6648 | if test ! -z "$RANDOM_POOL" ; then | ||
| 6649 | RAND_MSG="Device ($RANDOM_POOL)" | ||
| 6650 | else | ||
| 6651 | if test ! -z "$EGD_SOCKET" ; then | ||
| 6652 | RAND_MSG="EGD ($EGD_SOCKET)" | ||
| 6653 | else | ||
| 6654 | RAND_MSG="Builtin (timeout $entropy_timeout)" | ||
| 6655 | fi | ||
| 6656 | fi | ||
| 6657 | |||
| 6658 | # Someone please show me a better way :) | ||
| 6659 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
| 6660 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
| 6661 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
| 6662 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
| 6663 | E=`eval echo ${libexecdir}/ssh/ssh-askpass` ; E=`eval echo ${E}` | ||
| 6664 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
| 6665 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
| 6666 | |||
| 6667 | echo "" | ||
| 6668 | echo "OpenSSH configured has been configured with the following options." | ||
| 6669 | echo " User binaries: $B" | ||
| 6670 | echo " System binaries: $C" | ||
| 6671 | echo " Configuration files: $D" | ||
| 6672 | echo " Askpass program: $E" | ||
| 6673 | echo " Manual pages: $F" | ||
| 6674 | echo " PID file: $G" | ||
| 6675 | echo " Random number collection: $RAND_MSG" | ||
| 6676 | echo " Manpage format: $MAN_MSG" | ||
| 6677 | echo " PAM support: ${PAM_MSG}" | ||
| 6678 | echo " KerberosIV support: $KRB4_MSG" | ||
| 6679 | echo " AFS support: $AFS_MSG" | ||
| 6680 | echo " S/KEY support: $SKEY_MSG" | ||
| 6681 | echo " TCP Wrappers support: $TCPW_MSG" | ||
| 6682 | echo " MD5 password support: $MD5_MSG" | ||
| 6683 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
| 6684 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | ||
| 6685 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
| 6686 | |||
| 6687 | echo "" | ||
| 6688 | |||
| 6689 | echo "Compiler flags: ${CFLAGS}" | ||
| 6690 | echo "Linker flags: ${LDFLAGS}" | ||
| 6691 | echo "Libraries: ${LIBS}" | ||
| 6692 | |||
| 6693 | echo "" | ||
| 6694 | |||
