configure revision 106792
1#! /bin/sh 2 3# From configure.in Revision: 1.17 4 5 6 7 8 9 10 11 12 13 14# Guess values for system-dependent variables and create Makefiles. 15# Generated automatically using autoconf version 2.13 16# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 17# 18# This configure script is free software; the Free Software Foundation 19# gives unlimited permission to copy, distribute and modify it. 20 21# Defaults: 22ac_help= 23ac_default_prefix=/usr/local 24# Any additions from configure.in: 25ac_help="$ac_help 26\ 27 --enable-ipv6 Enable IPv6 support (if your OS supports it). 28 --disable-ipv6 Disable IPv6 support (even if your OS supports it). 29 [default: enabled]" 30ac_help="$ac_help 31\ 32 --enable-builtinls Enable built-in /bin/ls. [default: enabled] 33 --disable-builtinls Disable built-in /bin/ls." 34ac_help="$ac_help 35 --with-socks Compile with SOCKS firewall traversal support." 36ac_help="$ac_help 37 --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support." 38ac_help="$ac_help 39 --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support." 40ac_help="$ac_help 41 --with-skey Compile with S/Key authentication support." 42 43# Initialize some variables set by options. 44# The variables have the same names as the options, with 45# dashes changed to underlines. 46build=NONE 47cache_file=./config.cache 48exec_prefix=NONE 49host=NONE 50no_create= 51nonopt=NONE 52no_recursion= 53prefix=NONE 54program_prefix=NONE 55program_suffix=NONE 56program_transform_name=s,x,x, 57silent= 58site= 59srcdir= 60target=NONE 61verbose= 62x_includes=NONE 63x_libraries=NONE 64bindir='${exec_prefix}/bin' 65sbindir='${exec_prefix}/sbin' 66libexecdir='${exec_prefix}/libexec' 67datadir='${prefix}/share' 68sysconfdir='${prefix}/etc' 69sharedstatedir='${prefix}/com' 70localstatedir='${prefix}/var' 71libdir='${exec_prefix}/lib' 72includedir='${prefix}/include' 73oldincludedir='/usr/include' 74infodir='${prefix}/info' 75mandir='${prefix}/man' 76 77# Initialize some other variables. 78subdirs= 79MFLAGS= MAKEFLAGS= 80SHELL=${CONFIG_SHELL-/bin/sh} 81# Maximum number of lines to put in a shell here document. 82ac_max_here_lines=12 83 84ac_prev= 85for ac_option 86do 87 88 # If the previous option needs an argument, assign it. 89 if test -n "$ac_prev"; then 90 eval "$ac_prev=\$ac_option" 91 ac_prev= 92 continue 93 fi 94 95 case "$ac_option" in 96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 97 *) ac_optarg= ;; 98 esac 99 100 # Accept the important Cygnus configure options, so we can diagnose typos. 101 102 case "$ac_option" in 103 104 -bindir | --bindir | --bindi | --bind | --bin | --bi) 105 ac_prev=bindir ;; 106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 107 bindir="$ac_optarg" ;; 108 109 -build | --build | --buil | --bui | --bu) 110 ac_prev=build ;; 111 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 112 build="$ac_optarg" ;; 113 114 -cache-file | --cache-file | --cache-fil | --cache-fi \ 115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 116 ac_prev=cache_file ;; 117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 119 cache_file="$ac_optarg" ;; 120 121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 122 ac_prev=datadir ;; 123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 124 | --da=*) 125 datadir="$ac_optarg" ;; 126 127 -disable-* | --disable-*) 128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 129 # Reject names that are not valid shell variable names. 130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 132 fi 133 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 134 eval "enable_${ac_feature}=no" ;; 135 136 -enable-* | --enable-*) 137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 138 # Reject names that are not valid shell variable names. 139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 141 fi 142 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 143 case "$ac_option" in 144 *=*) ;; 145 *) ac_optarg=yes ;; 146 esac 147 eval "enable_${ac_feature}='$ac_optarg'" ;; 148 149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 151 | --exec | --exe | --ex) 152 ac_prev=exec_prefix ;; 153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 155 | --exec=* | --exe=* | --ex=*) 156 exec_prefix="$ac_optarg" ;; 157 158 -gas | --gas | --ga | --g) 159 # Obsolete; use --with-gas. 160 with_gas=yes ;; 161 162 -help | --help | --hel | --he) 163 # Omit some internal or obsolete options to make the list less imposing. 164 # This message is too long to be a string in the A/UX 3.1 sh. 165 cat << EOF 166Usage: configure [options] [host] 167Options: [defaults in brackets after descriptions] 168Configuration: 169 --cache-file=FILE cache test results in FILE 170 --help print this message 171 --no-create do not create output files 172 --quiet, --silent do not print \`checking...' messages 173 --version print the version of autoconf that created configure 174Directory and file names: 175 --prefix=PREFIX install architecture-independent files in PREFIX 176 [$ac_default_prefix] 177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 178 [same as prefix] 179 --bindir=DIR user executables in DIR [EPREFIX/bin] 180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 182 --datadir=DIR read-only architecture-independent data in DIR 183 [PREFIX/share] 184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 185 --sharedstatedir=DIR modifiable architecture-independent data in DIR 186 [PREFIX/com] 187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 188 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 189 --includedir=DIR C header files in DIR [PREFIX/include] 190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 191 --infodir=DIR info documentation in DIR [PREFIX/info] 192 --mandir=DIR man documentation in DIR [PREFIX/man] 193 --srcdir=DIR find the sources in DIR [configure dir or ..] 194 --program-prefix=PREFIX prepend PREFIX to installed program names 195 --program-suffix=SUFFIX append SUFFIX to installed program names 196 --program-transform-name=PROGRAM 197 run sed PROGRAM on installed program names 198EOF 199 cat << EOF 200Host type: 201 --build=BUILD configure for building on BUILD [BUILD=HOST] 202 --host=HOST configure for HOST [guessed] 203 --target=TARGET configure for TARGET [TARGET=HOST] 204Features and packages: 205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 209 --x-includes=DIR X include files are in DIR 210 --x-libraries=DIR X library files are in DIR 211EOF 212 if test -n "$ac_help"; then 213 echo "--enable and --with options recognized:$ac_help" 214 fi 215 exit 0 ;; 216 217 -host | --host | --hos | --ho) 218 ac_prev=host ;; 219 -host=* | --host=* | --hos=* | --ho=*) 220 host="$ac_optarg" ;; 221 222 -includedir | --includedir | --includedi | --included | --include \ 223 | --includ | --inclu | --incl | --inc) 224 ac_prev=includedir ;; 225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 226 | --includ=* | --inclu=* | --incl=* | --inc=*) 227 includedir="$ac_optarg" ;; 228 229 -infodir | --infodir | --infodi | --infod | --info | --inf) 230 ac_prev=infodir ;; 231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 232 infodir="$ac_optarg" ;; 233 234 -libdir | --libdir | --libdi | --libd) 235 ac_prev=libdir ;; 236 -libdir=* | --libdir=* | --libdi=* | --libd=*) 237 libdir="$ac_optarg" ;; 238 239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 240 | --libexe | --libex | --libe) 241 ac_prev=libexecdir ;; 242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 243 | --libexe=* | --libex=* | --libe=*) 244 libexecdir="$ac_optarg" ;; 245 246 -localstatedir | --localstatedir | --localstatedi | --localstated \ 247 | --localstate | --localstat | --localsta | --localst \ 248 | --locals | --local | --loca | --loc | --lo) 249 ac_prev=localstatedir ;; 250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 253 localstatedir="$ac_optarg" ;; 254 255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 256 ac_prev=mandir ;; 257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 258 mandir="$ac_optarg" ;; 259 260 -nfp | --nfp | --nf) 261 # Obsolete; use --without-fp. 262 with_fp=no ;; 263 264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 265 | --no-cr | --no-c) 266 no_create=yes ;; 267 268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 270 no_recursion=yes ;; 271 272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 274 | --oldin | --oldi | --old | --ol | --o) 275 ac_prev=oldincludedir ;; 276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 279 oldincludedir="$ac_optarg" ;; 280 281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 282 ac_prev=prefix ;; 283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 284 prefix="$ac_optarg" ;; 285 286 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 287 | --program-pre | --program-pr | --program-p) 288 ac_prev=program_prefix ;; 289 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 291 program_prefix="$ac_optarg" ;; 292 293 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 294 | --program-suf | --program-su | --program-s) 295 ac_prev=program_suffix ;; 296 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 298 program_suffix="$ac_optarg" ;; 299 300 -program-transform-name | --program-transform-name \ 301 | --program-transform-nam | --program-transform-na \ 302 | --program-transform-n | --program-transform- \ 303 | --program-transform | --program-transfor \ 304 | --program-transfo | --program-transf \ 305 | --program-trans | --program-tran \ 306 | --progr-tra | --program-tr | --program-t) 307 ac_prev=program_transform_name ;; 308 -program-transform-name=* | --program-transform-name=* \ 309 | --program-transform-nam=* | --program-transform-na=* \ 310 | --program-transform-n=* | --program-transform-=* \ 311 | --program-transform=* | --program-transfor=* \ 312 | --program-transfo=* | --program-transf=* \ 313 | --program-trans=* | --program-tran=* \ 314 | --progr-tra=* | --program-tr=* | --program-t=*) 315 program_transform_name="$ac_optarg" ;; 316 317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 318 | -silent | --silent | --silen | --sile | --sil) 319 silent=yes ;; 320 321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 322 ac_prev=sbindir ;; 323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 324 | --sbi=* | --sb=*) 325 sbindir="$ac_optarg" ;; 326 327 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 329 | --sharedst | --shareds | --shared | --share | --shar \ 330 | --sha | --sh) 331 ac_prev=sharedstatedir ;; 332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 335 | --sha=* | --sh=*) 336 sharedstatedir="$ac_optarg" ;; 337 338 -site | --site | --sit) 339 ac_prev=site ;; 340 -site=* | --site=* | --sit=*) 341 site="$ac_optarg" ;; 342 343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 344 ac_prev=srcdir ;; 345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 346 srcdir="$ac_optarg" ;; 347 348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 349 | --syscon | --sysco | --sysc | --sys | --sy) 350 ac_prev=sysconfdir ;; 351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 353 sysconfdir="$ac_optarg" ;; 354 355 -target | --target | --targe | --targ | --tar | --ta | --t) 356 ac_prev=target ;; 357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 358 target="$ac_optarg" ;; 359 360 -v | -verbose | --verbose | --verbos | --verbo | --verb) 361 verbose=yes ;; 362 363 -version | --version | --versio | --versi | --vers) 364 echo "configure generated by autoconf version 2.13" 365 exit 0 ;; 366 367 -with-* | --with-*) 368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 369 # Reject names that are not valid shell variable names. 370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 372 fi 373 ac_package=`echo $ac_package| sed 's/-/_/g'` 374 case "$ac_option" in 375 *=*) ;; 376 *) ac_optarg=yes ;; 377 esac 378 eval "with_${ac_package}='$ac_optarg'" ;; 379 380 -without-* | --without-*) 381 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 382 # Reject names that are not valid shell variable names. 383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 385 fi 386 ac_package=`echo $ac_package| sed 's/-/_/g'` 387 eval "with_${ac_package}=no" ;; 388 389 --x) 390 # Obsolete; use --with-x. 391 with_x=yes ;; 392 393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 394 | --x-incl | --x-inc | --x-in | --x-i) 395 ac_prev=x_includes ;; 396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 398 x_includes="$ac_optarg" ;; 399 400 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 402 ac_prev=x_libraries ;; 403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 405 x_libraries="$ac_optarg" ;; 406 407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 408 ;; 409 410 *) 411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 412 echo "configure: warning: $ac_option: invalid host type" 1>&2 413 fi 414 if test "x$nonopt" != xNONE; then 415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 416 fi 417 nonopt="$ac_option" 418 ;; 419 420 esac 421done 422 423if test -n "$ac_prev"; then 424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 425fi 426 427trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 428 429# File descriptor usage: 430# 0 standard input 431# 1 file creation 432# 2 errors and warnings 433# 3 some systems may open it to /dev/tty 434# 4 used on the Kubota Titan 435# 6 checking for... messages and results 436# 5 compiler messages saved in config.log 437if test "$silent" = yes; then 438 exec 6>/dev/null 439else 440 exec 6>&1 441fi 442exec 5>./config.log 443 444echo "\ 445This file contains any messages produced by compilers while 446running configure, to aid debugging if configure makes a mistake. 447" 1>&5 448 449# Strip out --no-create and --no-recursion so they do not pile up. 450# Also quote any args containing shell metacharacters. 451ac_configure_args= 452for ac_arg 453do 454 case "$ac_arg" in 455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 456 | --no-cr | --no-c) ;; 457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 460 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 461 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 462 esac 463done 464 465# NLS nuisances. 466# Only set these to C if already set. These must not be set unconditionally 467# because not all systems understand e.g. LANG=C (notably SCO). 468# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 469# Non-C LC_CTYPE values break the ctype check. 470if test "${LANG+set}" = set; then LANG=C; export LANG; fi 471if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 472if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 473if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 474 475# confdefs.h avoids OS command line length limits that DEFS can exceed. 476rm -rf conftest* confdefs.h 477# AIX cpp loses on an empty file, so make sure it contains at least a newline. 478echo > confdefs.h 479 480# A filename unique to this package, relative to the directory that 481# configure is in, which we can look for to find out if srcdir is correct. 482ac_unique_file=lukemftpd.h 483 484# Find the source files, if location was not specified. 485if test -z "$srcdir"; then 486 ac_srcdir_defaulted=yes 487 # Try the directory containing this script, then its parent. 488 ac_prog=$0 489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 491 srcdir=$ac_confdir 492 if test ! -r $srcdir/$ac_unique_file; then 493 srcdir=.. 494 fi 495else 496 ac_srcdir_defaulted=no 497fi 498if test ! -r $srcdir/$ac_unique_file; then 499 if test "$ac_srcdir_defaulted" = yes; then 500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 501 else 502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 503 fi 504fi 505srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 506 507# Prefer explicitly selected file to automatically selected ones. 508if test -z "$CONFIG_SITE"; then 509 if test "x$prefix" != xNONE; then 510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 511 else 512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 513 fi 514fi 515for ac_site_file in $CONFIG_SITE; do 516 if test -r "$ac_site_file"; then 517 echo "loading site script $ac_site_file" 518 . "$ac_site_file" 519 fi 520done 521 522if test -r "$cache_file"; then 523 echo "loading cache $cache_file" 524 . $cache_file 525else 526 echo "creating cache $cache_file" 527 > $cache_file 528fi 529 530ac_ext=c 531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 532ac_cpp='$CPP $CPPFLAGS' 533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 535cross_compiling=$ac_cv_prog_cc_cross 536 537ac_exeext= 538ac_objext=o 539if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 542 ac_n= ac_c=' 543' ac_t=' ' 544 else 545 ac_n=-n ac_c= ac_t= 546 fi 547else 548 ac_n= ac_c='\c' ac_t= 549fi 550 551 552 553 554# Check whether --enable-ipv6 or --disable-ipv6 was given. 555if test "${enable_ipv6+set}" = set; then 556 enableval="$enable_ipv6" 557 opt_ipv6=$enableval 558else 559 opt_ipv6=yes 560fi 561 562# Check whether --enable-builtinls or --disable-builtinls was given. 563if test "${enable_builtinls+set}" = set; then 564 enableval="$enable_builtinls" 565 opt_builtinls=$enableval 566else 567 opt_builtinls=yes 568fi 569 570 571 572echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 573echo "configure:574: checking whether ${MAKE-make} sets \${MAKE}" >&5 574set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 575if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 576 echo $ac_n "(cached) $ac_c" 1>&6 577else 578 cat > conftestmake <<\EOF 579all: 580 @echo 'ac_maketemp="${MAKE}"' 581EOF 582# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 583eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 584if test -n "$ac_maketemp"; then 585 eval ac_cv_prog_make_${ac_make}_set=yes 586else 587 eval ac_cv_prog_make_${ac_make}_set=no 588fi 589rm -f conftestmake 590fi 591if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 592 echo "$ac_t""yes" 1>&6 593 SET_MAKE= 594else 595 echo "$ac_t""no" 1>&6 596 SET_MAKE="MAKE=${MAKE-make}" 597fi 598 599# Extract the first word of "gcc", so it can be a program name with args. 600set dummy gcc; ac_word=$2 601echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 602echo "configure:603: checking for $ac_word" >&5 603if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 604 echo $ac_n "(cached) $ac_c" 1>&6 605else 606 if test -n "$CC"; then 607 ac_cv_prog_CC="$CC" # Let the user override the test. 608else 609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 610 ac_dummy="$PATH" 611 for ac_dir in $ac_dummy; do 612 test -z "$ac_dir" && ac_dir=. 613 if test -f $ac_dir/$ac_word; then 614 ac_cv_prog_CC="gcc" 615 break 616 fi 617 done 618 IFS="$ac_save_ifs" 619fi 620fi 621CC="$ac_cv_prog_CC" 622if test -n "$CC"; then 623 echo "$ac_t""$CC" 1>&6 624else 625 echo "$ac_t""no" 1>&6 626fi 627 628if test -z "$CC"; then 629 # Extract the first word of "cc", so it can be a program name with args. 630set dummy cc; ac_word=$2 631echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 632echo "configure:633: checking for $ac_word" >&5 633if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 634 echo $ac_n "(cached) $ac_c" 1>&6 635else 636 if test -n "$CC"; then 637 ac_cv_prog_CC="$CC" # Let the user override the test. 638else 639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 640 ac_prog_rejected=no 641 ac_dummy="$PATH" 642 for ac_dir in $ac_dummy; do 643 test -z "$ac_dir" && ac_dir=. 644 if test -f $ac_dir/$ac_word; then 645 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 646 ac_prog_rejected=yes 647 continue 648 fi 649 ac_cv_prog_CC="cc" 650 break 651 fi 652 done 653 IFS="$ac_save_ifs" 654if test $ac_prog_rejected = yes; then 655 # We found a bogon in the path, so make sure we never use it. 656 set dummy $ac_cv_prog_CC 657 shift 658 if test $# -gt 0; then 659 # We chose a different compiler from the bogus one. 660 # However, it has the same basename, so the bogon will be chosen 661 # first if we set CC to just the basename; use the full file name. 662 shift 663 set dummy "$ac_dir/$ac_word" "$@" 664 shift 665 ac_cv_prog_CC="$@" 666 fi 667fi 668fi 669fi 670CC="$ac_cv_prog_CC" 671if test -n "$CC"; then 672 echo "$ac_t""$CC" 1>&6 673else 674 echo "$ac_t""no" 1>&6 675fi 676 677 if test -z "$CC"; then 678 case "`uname -s`" in 679 *win32* | *WIN32*) 680 # Extract the first word of "cl", so it can be a program name with args. 681set dummy cl; ac_word=$2 682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 683echo "configure:684: checking for $ac_word" >&5 684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 685 echo $ac_n "(cached) $ac_c" 1>&6 686else 687 if test -n "$CC"; then 688 ac_cv_prog_CC="$CC" # Let the user override the test. 689else 690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 691 ac_dummy="$PATH" 692 for ac_dir in $ac_dummy; do 693 test -z "$ac_dir" && ac_dir=. 694 if test -f $ac_dir/$ac_word; then 695 ac_cv_prog_CC="cl" 696 break 697 fi 698 done 699 IFS="$ac_save_ifs" 700fi 701fi 702CC="$ac_cv_prog_CC" 703if test -n "$CC"; then 704 echo "$ac_t""$CC" 1>&6 705else 706 echo "$ac_t""no" 1>&6 707fi 708 ;; 709 esac 710 fi 711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 712fi 713 714echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 715echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 716 717ac_ext=c 718# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 719ac_cpp='$CPP $CPPFLAGS' 720ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 721ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 722cross_compiling=$ac_cv_prog_cc_cross 723 724cat > conftest.$ac_ext << EOF 725 726#line 727 "configure" 727#include "confdefs.h" 728 729main(){return(0);} 730EOF 731if { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 732 ac_cv_prog_cc_works=yes 733 # If we can't run a trivial program, we are probably using a cross compiler. 734 if (./conftest; exit) 2>/dev/null; then 735 ac_cv_prog_cc_cross=no 736 else 737 ac_cv_prog_cc_cross=yes 738 fi 739else 740 echo "configure: failed program was:" >&5 741 cat conftest.$ac_ext >&5 742 ac_cv_prog_cc_works=no 743fi 744rm -fr conftest* 745ac_ext=c 746# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 747ac_cpp='$CPP $CPPFLAGS' 748ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 749ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 750cross_compiling=$ac_cv_prog_cc_cross 751 752echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 753if test $ac_cv_prog_cc_works = no; then 754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 755fi 756echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 757echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 758echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 759cross_compiling=$ac_cv_prog_cc_cross 760 761echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 762echo "configure:763: checking whether we are using GNU C" >&5 763if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 764 echo $ac_n "(cached) $ac_c" 1>&6 765else 766 cat > conftest.c <<EOF 767#ifdef __GNUC__ 768 yes; 769#endif 770EOF 771if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 772 ac_cv_prog_gcc=yes 773else 774 ac_cv_prog_gcc=no 775fi 776fi 777 778echo "$ac_t""$ac_cv_prog_gcc" 1>&6 779 780if test $ac_cv_prog_gcc = yes; then 781 GCC=yes 782else 783 GCC= 784fi 785 786ac_test_CFLAGS="${CFLAGS+set}" 787ac_save_CFLAGS="$CFLAGS" 788CFLAGS= 789echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 790echo "configure:791: checking whether ${CC-cc} accepts -g" >&5 791if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 792 echo $ac_n "(cached) $ac_c" 1>&6 793else 794 echo 'void f(){}' > conftest.c 795if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 796 ac_cv_prog_cc_g=yes 797else 798 ac_cv_prog_cc_g=no 799fi 800rm -f conftest* 801 802fi 803 804echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 805if test "$ac_test_CFLAGS" = set; then 806 CFLAGS="$ac_save_CFLAGS" 807elif test $ac_cv_prog_cc_g = yes; then 808 if test "$GCC" = yes; then 809 CFLAGS="-g -O2" 810 else 811 CFLAGS="-g" 812 fi 813else 814 if test "$GCC" = yes; then 815 CFLAGS="-O2" 816 else 817 CFLAGS= 818 fi 819fi 820 821for ac_prog in mawk gawk nawk awk 822do 823# Extract the first word of "$ac_prog", so it can be a program name with args. 824set dummy $ac_prog; ac_word=$2 825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 826echo "configure:827: checking for $ac_word" >&5 827if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 828 echo $ac_n "(cached) $ac_c" 1>&6 829else 830 if test -n "$AWK"; then 831 ac_cv_prog_AWK="$AWK" # Let the user override the test. 832else 833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 834 ac_dummy="$PATH" 835 for ac_dir in $ac_dummy; do 836 test -z "$ac_dir" && ac_dir=. 837 if test -f $ac_dir/$ac_word; then 838 ac_cv_prog_AWK="$ac_prog" 839 break 840 fi 841 done 842 IFS="$ac_save_ifs" 843fi 844fi 845AWK="$ac_cv_prog_AWK" 846if test -n "$AWK"; then 847 echo "$ac_t""$AWK" 1>&6 848else 849 echo "$ac_t""no" 1>&6 850fi 851 852test -n "$AWK" && break 853done 854 855ac_aux_dir= 856for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 857 if test -f $ac_dir/install-sh; then 858 ac_aux_dir=$ac_dir 859 ac_install_sh="$ac_aux_dir/install-sh -c" 860 break 861 elif test -f $ac_dir/install.sh; then 862 ac_aux_dir=$ac_dir 863 ac_install_sh="$ac_aux_dir/install.sh -c" 864 break 865 fi 866done 867if test -z "$ac_aux_dir"; then 868 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 869fi 870ac_config_guess=$ac_aux_dir/config.guess 871ac_config_sub=$ac_aux_dir/config.sub 872ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 873 874# Find a good install program. We prefer a C program (faster), 875# so one script is as good as another. But avoid the broken or 876# incompatible versions: 877# SysV /etc/install, /usr/sbin/install 878# SunOS /usr/etc/install 879# IRIX /sbin/install 880# AIX /bin/install 881# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 882# AFS /usr/afsws/bin/install, which mishandles nonexistent args 883# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 884# ./install, which can be erroneously created by make from ./install.sh. 885echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 886echo "configure:887: checking for a BSD compatible install" >&5 887if test -z "$INSTALL"; then 888if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 889 echo $ac_n "(cached) $ac_c" 1>&6 890else 891 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 892 for ac_dir in $PATH; do 893 # Account for people who put trailing slashes in PATH elements. 894 case "$ac_dir/" in 895 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 896 *) 897 # OSF1 and SCO ODT 3.0 have their own names for install. 898 # Don't use installbsd from OSF since it installs stuff as root 899 # by default. 900 for ac_prog in ginstall scoinst install; do 901 if test -f $ac_dir/$ac_prog; then 902 if test $ac_prog = install && 903 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 904 # AIX install. It has an incompatible calling convention. 905 : 906 else 907 ac_cv_path_install="$ac_dir/$ac_prog -c" 908 break 2 909 fi 910 fi 911 done 912 ;; 913 esac 914 done 915 IFS="$ac_save_IFS" 916 917fi 918 if test "${ac_cv_path_install+set}" = set; then 919 INSTALL="$ac_cv_path_install" 920 else 921 # As a last resort, use the slow shell script. We don't cache a 922 # path for INSTALL within a source directory, because that will 923 # break other packages using the cache if that directory is 924 # removed, or if the path is relative. 925 INSTALL="$ac_install_sh" 926 fi 927fi 928echo "$ac_t""$INSTALL" 1>&6 929 930# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 931# It thinks the first close brace ends the variable substitution. 932test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 933 934test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 935 936test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 937 938# Extract the first word of "ranlib", so it can be a program name with args. 939set dummy ranlib; ac_word=$2 940echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 941echo "configure:942: checking for $ac_word" >&5 942if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 943 echo $ac_n "(cached) $ac_c" 1>&6 944else 945 if test -n "$RANLIB"; then 946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 947else 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=":" 959fi 960fi 961RANLIB="$ac_cv_prog_RANLIB" 962if test -n "$RANLIB"; then 963 echo "$ac_t""$RANLIB" 1>&6 964else 965 echo "$ac_t""no" 1>&6 966fi 967 968for ac_prog in 'bison -y' byacc 969do 970# Extract the first word of "$ac_prog", so it can be a program name with args. 971set dummy $ac_prog; ac_word=$2 972echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 973echo "configure:974: checking for $ac_word" >&5 974if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 975 echo $ac_n "(cached) $ac_c" 1>&6 976else 977 if test -n "$YACC"; then 978 ac_cv_prog_YACC="$YACC" # Let the user override the test. 979else 980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 981 ac_dummy="$PATH" 982 for ac_dir in $ac_dummy; do 983 test -z "$ac_dir" && ac_dir=. 984 if test -f $ac_dir/$ac_word; then 985 ac_cv_prog_YACC="$ac_prog" 986 break 987 fi 988 done 989 IFS="$ac_save_ifs" 990fi 991fi 992YACC="$ac_cv_prog_YACC" 993if test -n "$YACC"; then 994 echo "$ac_t""$YACC" 1>&6 995else 996 echo "$ac_t""no" 1>&6 997fi 998 999test -n "$YACC" && break 1000done 1001test -n "$YACC" || YACC="yacc" 1002 1003for ac_prog in ar 1004do 1005# Extract the first word of "$ac_prog", so it can be a program name with args. 1006set dummy $ac_prog; ac_word=$2 1007echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1008echo "configure:1009: checking for $ac_word" >&5 1009if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1010 echo $ac_n "(cached) $ac_c" 1>&6 1011else 1012 if test -n "$AR"; then 1013 ac_cv_prog_AR="$AR" # Let the user override the test. 1014else 1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1016 ac_dummy="$PATH" 1017 for ac_dir in $ac_dummy; do 1018 test -z "$ac_dir" && ac_dir=. 1019 if test -f $ac_dir/$ac_word; then 1020 ac_cv_prog_AR="$ac_prog" 1021 break 1022 fi 1023 done 1024 IFS="$ac_save_ifs" 1025fi 1026fi 1027AR="$ac_cv_prog_AR" 1028if test -n "$AR"; then 1029 echo "$ac_t""$AR" 1>&6 1030else 1031 echo "$ac_t""no" 1>&6 1032fi 1033 1034test -n "$AR" && break 1035done 1036 1037 1038 1039echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 1040echo "configure:1041: checking for crypt in -lcrypt" >&5 1041ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 1042if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1043 echo $ac_n "(cached) $ac_c" 1>&6 1044else 1045 ac_save_LIBS="$LIBS" 1046LIBS="-lcrypt $LIBS" 1047cat > conftest.$ac_ext <<EOF 1048#line 1049 "configure" 1049#include "confdefs.h" 1050/* Override any gcc2 internal prototype to avoid an error. */ 1051/* We use char because int might match the return type of a gcc2 1052 builtin and then its argument prototype would still apply. */ 1053char crypt(); 1054 1055int main() { 1056crypt() 1057; return 0; } 1058EOF 1059if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1060 rm -rf conftest* 1061 eval "ac_cv_lib_$ac_lib_var=yes" 1062else 1063 echo "configure: failed program was:" >&5 1064 cat conftest.$ac_ext >&5 1065 rm -rf conftest* 1066 eval "ac_cv_lib_$ac_lib_var=no" 1067fi 1068rm -f conftest* 1069LIBS="$ac_save_LIBS" 1070 1071fi 1072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1073 echo "$ac_t""yes" 1>&6 1074 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1076 cat >> confdefs.h <<EOF 1077#define $ac_tr_lib 1 1078EOF 1079 1080 LIBS="-lcrypt $LIBS" 1081 1082else 1083 echo "$ac_t""no" 1>&6 1084fi 1085 1086echo $ac_n "checking for fparseln in -lutil""... $ac_c" 1>&6 1087echo "configure:1088: checking for fparseln in -lutil" >&5 1088ac_lib_var=`echo util'_'fparseln | sed 'y%./+-%__p_%'` 1089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1090 echo $ac_n "(cached) $ac_c" 1>&6 1091else 1092 ac_save_LIBS="$LIBS" 1093LIBS="-lutil $LIBS" 1094cat > conftest.$ac_ext <<EOF 1095#line 1096 "configure" 1096#include "confdefs.h" 1097/* Override any gcc2 internal prototype to avoid an error. */ 1098/* We use char because int might match the return type of a gcc2 1099 builtin and then its argument prototype would still apply. */ 1100char fparseln(); 1101 1102int main() { 1103fparseln() 1104; return 0; } 1105EOF 1106if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1107 rm -rf conftest* 1108 eval "ac_cv_lib_$ac_lib_var=yes" 1109else 1110 echo "configure: failed program was:" >&5 1111 cat conftest.$ac_ext >&5 1112 rm -rf conftest* 1113 eval "ac_cv_lib_$ac_lib_var=no" 1114fi 1115rm -f conftest* 1116LIBS="$ac_save_LIBS" 1117 1118fi 1119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1120 echo "$ac_t""yes" 1>&6 1121 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1123 cat >> confdefs.h <<EOF 1124#define $ac_tr_lib 1 1125EOF 1126 1127 LIBS="-lutil $LIBS" 1128 1129else 1130 echo "$ac_t""no" 1>&6 1131fi 1132 1133if test $ac_cv_lib_util_fparseln != yes; then 1134 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6 1135echo "configure:1136: checking for setproctitle in -lutil" >&5 1136ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'` 1137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1138 echo $ac_n "(cached) $ac_c" 1>&6 1139else 1140 ac_save_LIBS="$LIBS" 1141LIBS="-lutil $LIBS" 1142cat > conftest.$ac_ext <<EOF 1143#line 1144 "configure" 1144#include "confdefs.h" 1145/* Override any gcc2 internal prototype to avoid an error. */ 1146/* We use char because int might match the return type of a gcc2 1147 builtin and then its argument prototype would still apply. */ 1148char setproctitle(); 1149 1150int main() { 1151setproctitle() 1152; return 0; } 1153EOF 1154if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1155 rm -rf conftest* 1156 eval "ac_cv_lib_$ac_lib_var=yes" 1157else 1158 echo "configure: failed program was:" >&5 1159 cat conftest.$ac_ext >&5 1160 rm -rf conftest* 1161 eval "ac_cv_lib_$ac_lib_var=no" 1162fi 1163rm -f conftest* 1164LIBS="$ac_save_LIBS" 1165 1166fi 1167if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1168 echo "$ac_t""yes" 1>&6 1169 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1171 cat >> confdefs.h <<EOF 1172#define $ac_tr_lib 1 1173EOF 1174 1175 LIBS="-lutil $LIBS" 1176 1177else 1178 echo "$ac_t""no" 1>&6 1179fi 1180 1181fi 1182 1183 # Most operating systems have gethostbyname() in the default searched 1184 # libraries (i.e. libc): 1185 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1186echo "configure:1187: checking for gethostbyname" >&5 1187if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1188 echo $ac_n "(cached) $ac_c" 1>&6 1189else 1190 cat > conftest.$ac_ext <<EOF 1191#line 1192 "configure" 1192#include "confdefs.h" 1193/* System header to define __stub macros and hopefully few prototypes, 1194 which can conflict with char gethostbyname(); below. */ 1195#include <assert.h> 1196/* Override any gcc2 internal prototype to avoid an error. */ 1197/* We use char because int might match the return type of a gcc2 1198 builtin and then its argument prototype would still apply. */ 1199char gethostbyname(); 1200 1201int main() { 1202 1203/* The GNU C library defines this for functions which it implements 1204 to always fail with ENOSYS. Some functions are actually named 1205 something starting with __ and the normal name is an alias. */ 1206#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1207choke me 1208#else 1209gethostbyname(); 1210#endif 1211 1212; return 0; } 1213EOF 1214if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1215 rm -rf conftest* 1216 eval "ac_cv_func_gethostbyname=yes" 1217else 1218 echo "configure: failed program was:" >&5 1219 cat conftest.$ac_ext >&5 1220 rm -rf conftest* 1221 eval "ac_cv_func_gethostbyname=no" 1222fi 1223rm -f conftest* 1224fi 1225 1226if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1227 echo "$ac_t""yes" 1>&6 1228 : 1229else 1230 echo "$ac_t""no" 1>&6 1231# Some OSes (eg. Solaris) place it in libnsl: 1232 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1233echo "configure:1234: checking for gethostbyname in -lnsl" >&5 1234ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1236 echo $ac_n "(cached) $ac_c" 1>&6 1237else 1238 ac_save_LIBS="$LIBS" 1239LIBS="-lnsl $LIBS" 1240cat > conftest.$ac_ext <<EOF 1241#line 1242 "configure" 1242#include "confdefs.h" 1243/* Override any gcc2 internal prototype to avoid an error. */ 1244/* We use char because int might match the return type of a gcc2 1245 builtin and then its argument prototype would still apply. */ 1246char gethostbyname(); 1247 1248int main() { 1249gethostbyname() 1250; return 0; } 1251EOF 1252if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1253 rm -rf conftest* 1254 eval "ac_cv_lib_$ac_lib_var=yes" 1255else 1256 echo "configure: failed program was:" >&5 1257 cat conftest.$ac_ext >&5 1258 rm -rf conftest* 1259 eval "ac_cv_lib_$ac_lib_var=no" 1260fi 1261rm -f conftest* 1262LIBS="$ac_save_LIBS" 1263 1264fi 1265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1266 echo "$ac_t""yes" 1>&6 1267 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ 1268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1269 cat >> confdefs.h <<EOF 1270#define $ac_tr_lib 1 1271EOF 1272 1273 LIBS="-lnsl $LIBS" 1274 1275else 1276 echo "$ac_t""no" 1>&6 1277# Some strange OSes (SINIX) have it in libsocket: 1278 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 1279echo "configure:1280: checking for gethostbyname in -lsocket" >&5 1280ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` 1281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1282 echo $ac_n "(cached) $ac_c" 1>&6 1283else 1284 ac_save_LIBS="$LIBS" 1285LIBS="-lsocket $LIBS" 1286cat > conftest.$ac_ext <<EOF 1287#line 1288 "configure" 1288#include "confdefs.h" 1289/* Override any gcc2 internal prototype to avoid an error. */ 1290/* We use char because int might match the return type of a gcc2 1291 builtin and then its argument prototype would still apply. */ 1292char gethostbyname(); 1293 1294int main() { 1295gethostbyname() 1296; return 0; } 1297EOF 1298if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1299 rm -rf conftest* 1300 eval "ac_cv_lib_$ac_lib_var=yes" 1301else 1302 echo "configure: failed program was:" >&5 1303 cat conftest.$ac_ext >&5 1304 rm -rf conftest* 1305 eval "ac_cv_lib_$ac_lib_var=no" 1306fi 1307rm -f conftest* 1308LIBS="$ac_save_LIBS" 1309 1310fi 1311if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1312 echo "$ac_t""yes" 1>&6 1313 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ 1314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1315 cat >> confdefs.h <<EOF 1316#define $ac_tr_lib 1 1317EOF 1318 1319 LIBS="-lsocket $LIBS" 1320 1321else 1322 echo "$ac_t""no" 1>&6 1323# Unfortunately libsocket sometimes depends on libnsl. 1324 # AC_CHECK_LIB's API is essentially broken so the following 1325 # ugliness is necessary: 1326 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 1327echo "configure:1328: checking for gethostbyname in -lsocket" >&5 1328ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` 1329if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1330 echo $ac_n "(cached) $ac_c" 1>&6 1331else 1332 ac_save_LIBS="$LIBS" 1333LIBS="-lsocket -lnsl $LIBS" 1334cat > conftest.$ac_ext <<EOF 1335#line 1336 "configure" 1336#include "confdefs.h" 1337/* Override any gcc2 internal prototype to avoid an error. */ 1338/* We use char because int might match the return type of a gcc2 1339 builtin and then its argument prototype would still apply. */ 1340char gethostbyname(); 1341 1342int main() { 1343gethostbyname() 1344; return 0; } 1345EOF 1346if { (eval echo configure:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1347 rm -rf conftest* 1348 eval "ac_cv_lib_$ac_lib_var=yes" 1349else 1350 echo "configure: failed program was:" >&5 1351 cat conftest.$ac_ext >&5 1352 rm -rf conftest* 1353 eval "ac_cv_lib_$ac_lib_var=no" 1354fi 1355rm -f conftest* 1356LIBS="$ac_save_LIBS" 1357 1358fi 1359if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1360 echo "$ac_t""yes" 1>&6 1361 LIBS="-lsocket -lnsl $LIBS" 1362else 1363 echo "$ac_t""no" 1>&6 1364echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 1365echo "configure:1366: checking for gethostbyname in -lresolv" >&5 1366ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` 1367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1368 echo $ac_n "(cached) $ac_c" 1>&6 1369else 1370 ac_save_LIBS="$LIBS" 1371LIBS="-lresolv $LIBS" 1372cat > conftest.$ac_ext <<EOF 1373#line 1374 "configure" 1374#include "confdefs.h" 1375/* Override any gcc2 internal prototype to avoid an error. */ 1376/* We use char because int might match the return type of a gcc2 1377 builtin and then its argument prototype would still apply. */ 1378char gethostbyname(); 1379 1380int main() { 1381gethostbyname() 1382; return 0; } 1383EOF 1384if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1385 rm -rf conftest* 1386 eval "ac_cv_lib_$ac_lib_var=yes" 1387else 1388 echo "configure: failed program was:" >&5 1389 cat conftest.$ac_ext >&5 1390 rm -rf conftest* 1391 eval "ac_cv_lib_$ac_lib_var=no" 1392fi 1393rm -f conftest* 1394LIBS="$ac_save_LIBS" 1395 1396fi 1397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1398 echo "$ac_t""yes" 1>&6 1399 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \ 1400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1401 cat >> confdefs.h <<EOF 1402#define $ac_tr_lib 1 1403EOF 1404 1405 LIBS="-lresolv $LIBS" 1406 1407else 1408 echo "$ac_t""no" 1>&6 1409fi 1410 1411fi 1412 1413 1414fi 1415 1416 1417fi 1418 1419 1420fi 1421 1422 echo $ac_n "checking for socket""... $ac_c" 1>&6 1423echo "configure:1424: checking for socket" >&5 1424if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 1425 echo $ac_n "(cached) $ac_c" 1>&6 1426else 1427 cat > conftest.$ac_ext <<EOF 1428#line 1429 "configure" 1429#include "confdefs.h" 1430/* System header to define __stub macros and hopefully few prototypes, 1431 which can conflict with char socket(); below. */ 1432#include <assert.h> 1433/* Override any gcc2 internal prototype to avoid an error. */ 1434/* We use char because int might match the return type of a gcc2 1435 builtin and then its argument prototype would still apply. */ 1436char socket(); 1437 1438int main() { 1439 1440/* The GNU C library defines this for functions which it implements 1441 to always fail with ENOSYS. Some functions are actually named 1442 something starting with __ and the normal name is an alias. */ 1443#if defined (__stub_socket) || defined (__stub___socket) 1444choke me 1445#else 1446socket(); 1447#endif 1448 1449; return 0; } 1450EOF 1451if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1452 rm -rf conftest* 1453 eval "ac_cv_func_socket=yes" 1454else 1455 echo "configure: failed program was:" >&5 1456 cat conftest.$ac_ext >&5 1457 rm -rf conftest* 1458 eval "ac_cv_func_socket=no" 1459fi 1460rm -f conftest* 1461fi 1462 1463if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 1464 echo "$ac_t""yes" 1>&6 1465 : 1466else 1467 echo "$ac_t""no" 1>&6 1468echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 1469echo "configure:1470: checking for socket in -lsocket" >&5 1470ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 1471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1472 echo $ac_n "(cached) $ac_c" 1>&6 1473else 1474 ac_save_LIBS="$LIBS" 1475LIBS="-lsocket $LIBS" 1476cat > conftest.$ac_ext <<EOF 1477#line 1478 "configure" 1478#include "confdefs.h" 1479/* Override any gcc2 internal prototype to avoid an error. */ 1480/* We use char because int might match the return type of a gcc2 1481 builtin and then its argument prototype would still apply. */ 1482char socket(); 1483 1484int main() { 1485socket() 1486; return 0; } 1487EOF 1488if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1489 rm -rf conftest* 1490 eval "ac_cv_lib_$ac_lib_var=yes" 1491else 1492 echo "configure: failed program was:" >&5 1493 cat conftest.$ac_ext >&5 1494 rm -rf conftest* 1495 eval "ac_cv_lib_$ac_lib_var=no" 1496fi 1497rm -f conftest* 1498LIBS="$ac_save_LIBS" 1499 1500fi 1501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1502 echo "$ac_t""yes" 1>&6 1503 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ 1504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1505 cat >> confdefs.h <<EOF 1506#define $ac_tr_lib 1 1507EOF 1508 1509 LIBS="-lsocket $LIBS" 1510 1511else 1512 echo "$ac_t""no" 1>&6 1513echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 1514echo "configure:1515: checking for socket in -lsocket" >&5 1515ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 1516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1517 echo $ac_n "(cached) $ac_c" 1>&6 1518else 1519 ac_save_LIBS="$LIBS" 1520LIBS="-lsocket -lnsl $LIBS" 1521cat > conftest.$ac_ext <<EOF 1522#line 1523 "configure" 1523#include "confdefs.h" 1524/* Override any gcc2 internal prototype to avoid an error. */ 1525/* We use char because int might match the return type of a gcc2 1526 builtin and then its argument prototype would still apply. */ 1527char socket(); 1528 1529int main() { 1530socket() 1531; return 0; } 1532EOF 1533if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1534 rm -rf conftest* 1535 eval "ac_cv_lib_$ac_lib_var=yes" 1536else 1537 echo "configure: failed program was:" >&5 1538 cat conftest.$ac_ext >&5 1539 rm -rf conftest* 1540 eval "ac_cv_lib_$ac_lib_var=no" 1541fi 1542rm -f conftest* 1543LIBS="$ac_save_LIBS" 1544 1545fi 1546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1547 echo "$ac_t""yes" 1>&6 1548 LIBS="-lsocket -lnsl $LIBS" 1549else 1550 echo "$ac_t""no" 1>&6 1551fi 1552 1553fi 1554 1555fi 1556 1557 1558 1559 echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6 1560echo "configure:1561: checking whether to support SOCKS" >&5 1561 # Check whether --with-socks or --without-socks was given. 1562if test "${with_socks+set}" = set; then 1563 withval="$with_socks" 1564 1565 case "$withval" in 1566 no) 1567 echo "$ac_t""no" 1>&6 1568 ;; 1569 yes) 1570 echo "$ac_t""yes" 1>&6 1571 echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6 1572echo "configure:1573: checking for SOCKSconnect in -lsocks5" >&5 1573ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'` 1574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1575 echo $ac_n "(cached) $ac_c" 1>&6 1576else 1577 ac_save_LIBS="$LIBS" 1578LIBS="-lsocks5 $LIBS" 1579cat > conftest.$ac_ext <<EOF 1580#line 1581 "configure" 1581#include "confdefs.h" 1582/* Override any gcc2 internal prototype to avoid an error. */ 1583/* We use char because int might match the return type of a gcc2 1584 builtin and then its argument prototype would still apply. */ 1585char SOCKSconnect(); 1586 1587int main() { 1588SOCKSconnect() 1589; return 0; } 1590EOF 1591if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1592 rm -rf conftest* 1593 eval "ac_cv_lib_$ac_lib_var=yes" 1594else 1595 echo "configure: failed program was:" >&5 1596 cat conftest.$ac_ext >&5 1597 rm -rf conftest* 1598 eval "ac_cv_lib_$ac_lib_var=no" 1599fi 1600rm -f conftest* 1601LIBS="$ac_save_LIBS" 1602 1603fi 1604if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1605 echo "$ac_t""yes" 1>&6 1606 1607 socks=5 1608 LIBS="-lsocks5 $LIBS" 1609else 1610 echo "$ac_t""no" 1>&6 1611 1612 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6 1613echo "configure:1614: checking for Rconnect in -lsocks" >&5 1614ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'` 1615if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1616 echo $ac_n "(cached) $ac_c" 1>&6 1617else 1618 ac_save_LIBS="$LIBS" 1619LIBS="-lsocks $LIBS" 1620cat > conftest.$ac_ext <<EOF 1621#line 1622 "configure" 1622#include "confdefs.h" 1623/* Override any gcc2 internal prototype to avoid an error. */ 1624/* We use char because int might match the return type of a gcc2 1625 builtin and then its argument prototype would still apply. */ 1626char Rconnect(); 1627 1628int main() { 1629Rconnect() 1630; return 0; } 1631EOF 1632if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1633 rm -rf conftest* 1634 eval "ac_cv_lib_$ac_lib_var=yes" 1635else 1636 echo "configure: failed program was:" >&5 1637 cat conftest.$ac_ext >&5 1638 rm -rf conftest* 1639 eval "ac_cv_lib_$ac_lib_var=no" 1640fi 1641rm -f conftest* 1642LIBS="$ac_save_LIBS" 1643 1644fi 1645if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1646 echo "$ac_t""yes" 1>&6 1647 1648 socks=4 1649 LIBS="-lsocks $LIBS" 1650else 1651 echo "$ac_t""no" 1>&6 1652 1653 { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; } 1654fi 1655 1656fi 1657 1658 ;; 1659 esac 1660 1661else 1662 echo "$ac_t""no" 1>&6 1663 1664fi 1665 1666 1667 if test "x$socks" = "x"; then 1668 echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6 1669echo "configure:1670: checking whether to support SOCKS5" >&5 1670 # Check whether --with-socks5 or --without-socks5 was given. 1671if test "${with_socks5+set}" = set; then 1672 withval="$with_socks5" 1673 1674 case "$withval" in 1675 no) 1676 echo "$ac_t""no" 1>&6 1677 ;; 1678 *) 1679 echo "$ac_t""yes" 1>&6 1680 socks=5 1681 if test "x$withval" = "xyes"; then 1682 withval="-lsocks5" 1683 else 1684 if test -d "$withval"; then 1685 if test -d "$withval/include"; then 1686 CFLAGS="$CFLAGS -I$withval/include" 1687 else 1688 CFLAGS="$CFLAGS -I$withval" 1689 fi 1690 if test -d "$withval/lib"; then 1691 withval="-L$withval/lib -lsocks5" 1692 else 1693 withval="-L$withval -lsocks5" 1694 fi 1695 fi 1696 fi 1697 LIBS="$withval $LIBS" 1698 # If Socks was compiled with Kerberos support, we will need 1699 # to link against kerberos libraries. Temporarily append 1700 # to LIBS. This is harmless if there is no kerberos support. 1701 TMPLIBS="$LIBS" 1702 LIBS="$LIBS $KERBEROS_LIBS" 1703 cat > conftest.$ac_ext <<EOF 1704#line 1705 "configure" 1705#include "confdefs.h" 1706 1707int main() { 1708 SOCKSconnect(); 1709; return 0; } 1710EOF 1711if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1712 : 1713else 1714 echo "configure: failed program was:" >&5 1715 cat conftest.$ac_ext >&5 1716 rm -rf conftest* 1717 { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; } 1718fi 1719rm -f conftest* 1720 LIBS="$TMPLIBS" 1721 ;; 1722 esac 1723 1724else 1725 echo "$ac_t""no" 1>&6 1726 1727fi 1728 1729 fi 1730 1731 if test "x$socks" = "x"; then 1732 echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6 1733echo "configure:1734: checking whether to support SOCKS4" >&5 1734 # Check whether --with-socks4 or --without-socks4 was given. 1735if test "${with_socks4+set}" = set; then 1736 withval="$with_socks4" 1737 1738 case "$withval" in 1739 no) 1740 echo "$ac_t""no" 1>&6 1741 ;; 1742 *) 1743 echo "$ac_t""yes" 1>&6 1744 socks=4 1745 if test "x$withval" = "xyes"; then 1746 withval="-lsocks" 1747 else 1748 if test -d "$withval"; then 1749 withval="-L$withval -lsocks" 1750 fi 1751 fi 1752 LIBS="$withval $LIBS" 1753 cat > conftest.$ac_ext <<EOF 1754#line 1755 "configure" 1755#include "confdefs.h" 1756 1757int main() { 1758 Rconnect(); 1759; return 0; } 1760EOF 1761if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1762 : 1763else 1764 echo "configure: failed program was:" >&5 1765 cat conftest.$ac_ext >&5 1766 rm -rf conftest* 1767 { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; } 1768fi 1769rm -f conftest* 1770 ;; 1771 esac 1772 1773else 1774 echo "$ac_t""no" 1>&6 1775 1776fi 1777 1778 fi 1779 1780 if test "x$socks" = "x4"; then 1781 cat >> confdefs.h <<\EOF 1782#define SOCKS 1 1783EOF 1784 1785 cat >> confdefs.h <<\EOF 1786#define SOCKS4 1 1787EOF 1788 1789 cat >> confdefs.h <<\EOF 1790#define connect Rconnect 1791EOF 1792 1793 cat >> confdefs.h <<\EOF 1794#define getsockname Rgetsockname 1795EOF 1796 1797 cat >> confdefs.h <<\EOF 1798#define bind Rbind 1799EOF 1800 1801 cat >> confdefs.h <<\EOF 1802#define accept Raccept 1803EOF 1804 1805 cat >> confdefs.h <<\EOF 1806#define listen Rlisten 1807EOF 1808 1809 cat >> confdefs.h <<\EOF 1810#define select Rselect 1811EOF 1812 1813 fi 1814 1815 if test "x$socks" = "x5"; then 1816 cat >> confdefs.h <<\EOF 1817#define SOCKS 1 1818EOF 1819 1820 cat >> confdefs.h <<\EOF 1821#define SOCKS5 1 1822EOF 1823 1824 cat >> confdefs.h <<\EOF 1825#define connect SOCKSconnect 1826EOF 1827 1828 cat >> confdefs.h <<\EOF 1829#define getsockname SOCKSgetsockname 1830EOF 1831 1832 cat >> confdefs.h <<\EOF 1833#define getpeername SOCKSgetpeername 1834EOF 1835 1836 cat >> confdefs.h <<\EOF 1837#define bind SOCKSbind 1838EOF 1839 1840 cat >> confdefs.h <<\EOF 1841#define accept SOCKSaccept 1842EOF 1843 1844 cat >> confdefs.h <<\EOF 1845#define listen SOCKSlisten 1846EOF 1847 1848 cat >> confdefs.h <<\EOF 1849#define select SOCKSselect 1850EOF 1851 1852 cat >> confdefs.h <<\EOF 1853#define recvfrom SOCKSrecvfrom 1854EOF 1855 1856 cat >> confdefs.h <<\EOF 1857#define sendto SOCKSsendto 1858EOF 1859 1860 cat >> confdefs.h <<\EOF 1861#define recv SOCKSrecv 1862EOF 1863 1864 cat >> confdefs.h <<\EOF 1865#define send SOCKSsend 1866EOF 1867 1868 cat >> confdefs.h <<\EOF 1869#define read SOCKSread 1870EOF 1871 1872 cat >> confdefs.h <<\EOF 1873#define write SOCKSwrite 1874EOF 1875 1876 cat >> confdefs.h <<\EOF 1877#define rresvport SOCKSrresvport 1878EOF 1879 1880 cat >> confdefs.h <<\EOF 1881#define shutdown SOCKSshutdown 1882EOF 1883 1884 cat >> confdefs.h <<\EOF 1885#define listen SOCKSlisten 1886EOF 1887 1888 cat >> confdefs.h <<\EOF 1889#define close SOCKSclose 1890EOF 1891 1892 cat >> confdefs.h <<\EOF 1893#define dup SOCKSdup 1894EOF 1895 1896 cat >> confdefs.h <<\EOF 1897#define dup2 SOCKSdup2 1898EOF 1899 1900 cat >> confdefs.h <<\EOF 1901#define fclose SOCKSfclose 1902EOF 1903 1904 cat >> confdefs.h <<\EOF 1905#define gethostbyname SOCKSgethostbyname 1906EOF 1907 1908 fi 1909 1910if test -n "$socks"; then 1911 if test $opt_ipv6 = yes; then 1912 echo "IPv6 is incompatible with socks, disabling IPv6 support" 1913 opt_ipv6=no 1914 fi 1915fi 1916# Check whether --with-skey or --without-skey was given. 1917if test "${with_skey+set}" = set; then 1918 withval="$with_skey" 1919 if test $withval = yes; then 1920 echo $ac_n "checking for skey_haskey in -lskey""... $ac_c" 1>&6 1921echo "configure:1922: checking for skey_haskey in -lskey" >&5 1922ac_lib_var=`echo skey'_'skey_haskey | sed 'y%./+-%__p_%'` 1923if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1924 echo $ac_n "(cached) $ac_c" 1>&6 1925else 1926 ac_save_LIBS="$LIBS" 1927LIBS="-lskey $LIBS" 1928cat > conftest.$ac_ext <<EOF 1929#line 1930 "configure" 1930#include "confdefs.h" 1931/* Override any gcc2 internal prototype to avoid an error. */ 1932/* We use char because int might match the return type of a gcc2 1933 builtin and then its argument prototype would still apply. */ 1934char skey_haskey(); 1935 1936int main() { 1937skey_haskey() 1938; return 0; } 1939EOF 1940if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1941 rm -rf conftest* 1942 eval "ac_cv_lib_$ac_lib_var=yes" 1943else 1944 echo "configure: failed program was:" >&5 1945 cat conftest.$ac_ext >&5 1946 rm -rf conftest* 1947 eval "ac_cv_lib_$ac_lib_var=no" 1948fi 1949rm -f conftest* 1950LIBS="$ac_save_LIBS" 1951 1952fi 1953if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1954 echo "$ac_t""yes" 1>&6 1955 ac_tr_lib=HAVE_LIB`echo skey | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1957 cat >> confdefs.h <<EOF 1958#define $ac_tr_lib 1 1959EOF 1960 1961 LIBS="-lskey $LIBS" 1962 1963else 1964 echo "$ac_t""no" 1>&6 1965fi 1966 1967 fi 1968fi 1969 1970echo $ac_n "checking whether to support S/Key""... $ac_c" 1>&6 1971echo "configure:1972: checking whether to support S/Key" >&5 1972if test x"$ac_cv_lib_skey_skey_haskey" = "xyes"; then 1973 echo "$ac_t""yes" 1>&6 1974 cat >> confdefs.h <<\EOF 1975#define SKEY 1 1976EOF 1977 1978else 1979 echo "$ac_t""no" 1>&6 1980fi 1981 1982 1983 1984ac_header_dirent=no 1985for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1986do 1987ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1988echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1989echo "configure:1990: checking for $ac_hdr that defines DIR" >&5 1990if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1991 echo $ac_n "(cached) $ac_c" 1>&6 1992else 1993 cat > conftest.$ac_ext <<EOF 1994#line 1995 "configure" 1995#include "confdefs.h" 1996#include <sys/types.h> 1997#include <$ac_hdr> 1998int main() { 1999DIR *dirp = 0; 2000; return 0; } 2001EOF 2002if { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2003 rm -rf conftest* 2004 eval "ac_cv_header_dirent_$ac_safe=yes" 2005else 2006 echo "configure: failed program was:" >&5 2007 cat conftest.$ac_ext >&5 2008 rm -rf conftest* 2009 eval "ac_cv_header_dirent_$ac_safe=no" 2010fi 2011rm -f conftest* 2012fi 2013if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 2014 echo "$ac_t""yes" 1>&6 2015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2016 cat >> confdefs.h <<EOF 2017#define $ac_tr_hdr 1 2018EOF 2019 ac_header_dirent=$ac_hdr; break 2020else 2021 echo "$ac_t""no" 1>&6 2022fi 2023done 2024# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 2025if test $ac_header_dirent = dirent.h; then 2026echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 2027echo "configure:2028: checking for opendir in -ldir" >&5 2028ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 2029if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2030 echo $ac_n "(cached) $ac_c" 1>&6 2031else 2032 ac_save_LIBS="$LIBS" 2033LIBS="-ldir $LIBS" 2034cat > conftest.$ac_ext <<EOF 2035#line 2036 "configure" 2036#include "confdefs.h" 2037/* Override any gcc2 internal prototype to avoid an error. */ 2038/* We use char because int might match the return type of a gcc2 2039 builtin and then its argument prototype would still apply. */ 2040char opendir(); 2041 2042int main() { 2043opendir() 2044; return 0; } 2045EOF 2046if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2047 rm -rf conftest* 2048 eval "ac_cv_lib_$ac_lib_var=yes" 2049else 2050 echo "configure: failed program was:" >&5 2051 cat conftest.$ac_ext >&5 2052 rm -rf conftest* 2053 eval "ac_cv_lib_$ac_lib_var=no" 2054fi 2055rm -f conftest* 2056LIBS="$ac_save_LIBS" 2057 2058fi 2059if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2060 echo "$ac_t""yes" 1>&6 2061 LIBS="$LIBS -ldir" 2062else 2063 echo "$ac_t""no" 1>&6 2064fi 2065 2066else 2067echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 2068echo "configure:2069: checking for opendir in -lx" >&5 2069ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2070if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2071 echo $ac_n "(cached) $ac_c" 1>&6 2072else 2073 ac_save_LIBS="$LIBS" 2074LIBS="-lx $LIBS" 2075cat > conftest.$ac_ext <<EOF 2076#line 2077 "configure" 2077#include "confdefs.h" 2078/* Override any gcc2 internal prototype to avoid an error. */ 2079/* We use char because int might match the return type of a gcc2 2080 builtin and then its argument prototype would still apply. */ 2081char opendir(); 2082 2083int main() { 2084opendir() 2085; return 0; } 2086EOF 2087if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2088 rm -rf conftest* 2089 eval "ac_cv_lib_$ac_lib_var=yes" 2090else 2091 echo "configure: failed program was:" >&5 2092 cat conftest.$ac_ext >&5 2093 rm -rf conftest* 2094 eval "ac_cv_lib_$ac_lib_var=no" 2095fi 2096rm -f conftest* 2097LIBS="$ac_save_LIBS" 2098 2099fi 2100if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2101 echo "$ac_t""yes" 1>&6 2102 LIBS="$LIBS -lx" 2103else 2104 echo "$ac_t""no" 1>&6 2105fi 2106 2107fi 2108 2109echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2110echo "configure:2111: checking how to run the C preprocessor" >&5 2111# On Suns, sometimes $CPP names a directory. 2112if test -n "$CPP" && test -d "$CPP"; then 2113 CPP= 2114fi 2115if test -z "$CPP"; then 2116if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2117 echo $ac_n "(cached) $ac_c" 1>&6 2118else 2119 # This must be in double quotes, not single quotes, because CPP may get 2120 # substituted into the Makefile and "${CC-cc}" will confuse make. 2121 CPP="${CC-cc} -E" 2122 # On the NeXT, cc -E runs the code through the compiler's parser, 2123 # not just through cpp. 2124 cat > conftest.$ac_ext <<EOF 2125#line 2126 "configure" 2126#include "confdefs.h" 2127#include <assert.h> 2128Syntax Error 2129EOF 2130ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2131{ (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2132ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2133if test -z "$ac_err"; then 2134 : 2135else 2136 echo "$ac_err" >&5 2137 echo "configure: failed program was:" >&5 2138 cat conftest.$ac_ext >&5 2139 rm -rf conftest* 2140 CPP="${CC-cc} -E -traditional-cpp" 2141 cat > conftest.$ac_ext <<EOF 2142#line 2143 "configure" 2143#include "confdefs.h" 2144#include <assert.h> 2145Syntax Error 2146EOF 2147ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2148{ (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2149ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2150if test -z "$ac_err"; then 2151 : 2152else 2153 echo "$ac_err" >&5 2154 echo "configure: failed program was:" >&5 2155 cat conftest.$ac_ext >&5 2156 rm -rf conftest* 2157 CPP="${CC-cc} -nologo -E" 2158 cat > conftest.$ac_ext <<EOF 2159#line 2160 "configure" 2160#include "confdefs.h" 2161#include <assert.h> 2162Syntax Error 2163EOF 2164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2165{ (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2167if test -z "$ac_err"; then 2168 : 2169else 2170 echo "$ac_err" >&5 2171 echo "configure: failed program was:" >&5 2172 cat conftest.$ac_ext >&5 2173 rm -rf conftest* 2174 CPP=/lib/cpp 2175fi 2176rm -f conftest* 2177fi 2178rm -f conftest* 2179fi 2180rm -f conftest* 2181 ac_cv_prog_CPP="$CPP" 2182fi 2183 CPP="$ac_cv_prog_CPP" 2184else 2185 ac_cv_prog_CPP="$CPP" 2186fi 2187echo "$ac_t""$CPP" 1>&6 2188 2189echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2190echo "configure:2191: checking for ANSI C header files" >&5 2191if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2192 echo $ac_n "(cached) $ac_c" 1>&6 2193else 2194 cat > conftest.$ac_ext <<EOF 2195#line 2196 "configure" 2196#include "confdefs.h" 2197#include <stdlib.h> 2198#include <stdarg.h> 2199#include <string.h> 2200#include <float.h> 2201EOF 2202ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2203{ (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2204ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2205if test -z "$ac_err"; then 2206 rm -rf conftest* 2207 ac_cv_header_stdc=yes 2208else 2209 echo "$ac_err" >&5 2210 echo "configure: failed program was:" >&5 2211 cat conftest.$ac_ext >&5 2212 rm -rf conftest* 2213 ac_cv_header_stdc=no 2214fi 2215rm -f conftest* 2216 2217if test $ac_cv_header_stdc = yes; then 2218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2219cat > conftest.$ac_ext <<EOF 2220#line 2221 "configure" 2221#include "confdefs.h" 2222#include <string.h> 2223EOF 2224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2225 egrep "memchr" >/dev/null 2>&1; then 2226 : 2227else 2228 rm -rf conftest* 2229 ac_cv_header_stdc=no 2230fi 2231rm -f conftest* 2232 2233fi 2234 2235if test $ac_cv_header_stdc = yes; then 2236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2237cat > conftest.$ac_ext <<EOF 2238#line 2239 "configure" 2239#include "confdefs.h" 2240#include <stdlib.h> 2241EOF 2242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2243 egrep "free" >/dev/null 2>&1; then 2244 : 2245else 2246 rm -rf conftest* 2247 ac_cv_header_stdc=no 2248fi 2249rm -f conftest* 2250 2251fi 2252 2253if test $ac_cv_header_stdc = yes; then 2254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2255if test "$cross_compiling" = yes; then 2256 : 2257else 2258 cat > conftest.$ac_ext <<EOF 2259#line 2260 "configure" 2260#include "confdefs.h" 2261#include <ctype.h> 2262#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2263#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2264#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2265int main () { int i; for (i = 0; i < 256; i++) 2266if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2267exit (0); } 2268 2269EOF 2270if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2271then 2272 : 2273else 2274 echo "configure: failed program was:" >&5 2275 cat conftest.$ac_ext >&5 2276 rm -fr conftest* 2277 ac_cv_header_stdc=no 2278fi 2279rm -fr conftest* 2280fi 2281 2282fi 2283fi 2284 2285echo "$ac_t""$ac_cv_header_stdc" 1>&6 2286if test $ac_cv_header_stdc = yes; then 2287 cat >> confdefs.h <<\EOF 2288#define STDC_HEADERS 1 2289EOF 2290 2291fi 2292 2293for ac_hdr in arpa/nameser.h err.h fts.h libutil.h paths.h \ 2294 sys/sysmacros.h util.h 2295do 2296ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2297echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2298echo "configure:2299: checking for $ac_hdr" >&5 2299if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2300 echo $ac_n "(cached) $ac_c" 1>&6 2301else 2302 cat > conftest.$ac_ext <<EOF 2303#line 2304 "configure" 2304#include "confdefs.h" 2305#include <$ac_hdr> 2306EOF 2307ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2308{ (eval echo configure:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2309ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2310if test -z "$ac_err"; then 2311 rm -rf conftest* 2312 eval "ac_cv_header_$ac_safe=yes" 2313else 2314 echo "$ac_err" >&5 2315 echo "configure: failed program was:" >&5 2316 cat conftest.$ac_ext >&5 2317 rm -rf conftest* 2318 eval "ac_cv_header_$ac_safe=no" 2319fi 2320rm -f conftest* 2321fi 2322if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2323 echo "$ac_t""yes" 1>&6 2324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2325 cat >> confdefs.h <<EOF 2326#define $ac_tr_hdr 1 2327EOF 2328 2329else 2330 echo "$ac_t""no" 1>&6 2331fi 2332done 2333 2334 2335 2336echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2337echo "configure:2338: checking whether time.h and sys/time.h may both be included" >&5 2338if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2339 echo $ac_n "(cached) $ac_c" 1>&6 2340else 2341 cat > conftest.$ac_ext <<EOF 2342#line 2343 "configure" 2343#include "confdefs.h" 2344#include <sys/types.h> 2345#include <sys/time.h> 2346#include <time.h> 2347int main() { 2348struct tm *tp; 2349; return 0; } 2350EOF 2351if { (eval echo configure:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2352 rm -rf conftest* 2353 ac_cv_header_time=yes 2354else 2355 echo "configure: failed program was:" >&5 2356 cat conftest.$ac_ext >&5 2357 rm -rf conftest* 2358 ac_cv_header_time=no 2359fi 2360rm -f conftest* 2361fi 2362 2363echo "$ac_t""$ac_cv_header_time" 1>&6 2364if test $ac_cv_header_time = yes; then 2365 cat >> confdefs.h <<\EOF 2366#define TIME_WITH_SYS_TIME 1 2367EOF 2368 2369fi 2370 2371echo $ac_n "checking for off_t""... $ac_c" 1>&6 2372echo "configure:2373: checking for off_t" >&5 2373if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 2374 echo $ac_n "(cached) $ac_c" 1>&6 2375else 2376 cat > conftest.$ac_ext <<EOF 2377#line 2378 "configure" 2378#include "confdefs.h" 2379#include <sys/types.h> 2380#if STDC_HEADERS 2381#include <stdlib.h> 2382#include <stddef.h> 2383#endif 2384EOF 2385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2386 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2387 rm -rf conftest* 2388 ac_cv_type_off_t=yes 2389else 2390 rm -rf conftest* 2391 ac_cv_type_off_t=no 2392fi 2393rm -f conftest* 2394 2395fi 2396echo "$ac_t""$ac_cv_type_off_t" 1>&6 2397if test $ac_cv_type_off_t = no; then 2398 cat >> confdefs.h <<\EOF 2399#define off_t long 2400EOF 2401 2402fi 2403 2404echo $ac_n "checking size of off_t""... $ac_c" 1>&6 2405echo "configure:2406: checking size of off_t" >&5 2406if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then 2407 echo $ac_n "(cached) $ac_c" 1>&6 2408else 2409 if test "$cross_compiling" = yes; then 2410 ac_cv_sizeof_off_t=0 2411else 2412 cat > conftest.$ac_ext <<EOF 2413#line 2414 "configure" 2414#include "confdefs.h" 2415#include <stdio.h> 2416main() 2417{ 2418 FILE *f=fopen("conftestval", "w"); 2419 if (!f) exit(1); 2420 fprintf(f, "%d\n", sizeof(off_t)); 2421 exit(0); 2422} 2423EOF 2424if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2425then 2426 ac_cv_sizeof_off_t=`cat conftestval` 2427else 2428 echo "configure: failed program was:" >&5 2429 cat conftest.$ac_ext >&5 2430 rm -fr conftest* 2431 ac_cv_sizeof_off_t=0 2432fi 2433rm -fr conftest* 2434fi 2435 2436fi 2437echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 2438cat >> confdefs.h <<EOF 2439#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 2440EOF 2441 2442 2443 2444 echo $ac_n "checking for long long""... $ac_c" 1>&6 2445echo "configure:2446: checking for long long" >&5 2446if eval "test \"`echo '$''{'ftp_cv_HAVE_LONG_LONG'+set}'`\" = set"; then 2447 echo $ac_n "(cached) $ac_c" 1>&6 2448else 2449 2450 cat > conftest.$ac_ext <<EOF 2451#line 2452 "configure" 2452#include "confdefs.h" 2453 2454#include <sys/types.h> 2455int main() { 2456 2457long long X = 2, Y = 1, Z; 2458Z = X / Y; ; 2459; return 0; } 2460EOF 2461if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2462 rm -rf conftest* 2463 ftp_cv_HAVE_LONG_LONG=yes 2464else 2465 echo "configure: failed program was:" >&5 2466 cat conftest.$ac_ext >&5 2467 rm -rf conftest* 2468 ftp_cv_HAVE_LONG_LONG=no 2469fi 2470rm -f conftest* 2471 2472fi 2473 2474echo "$ac_t""$ftp_cv_HAVE_LONG_LONG" 1>&6 2475 if test "x$ftp_cv_HAVE_LONG_LONG" = "xyes"; then 2476 2477cat >> confdefs.h <<\EOF 2478#define HAVE_LONG_LONG 1 2479EOF 2480 2481have_long_long=yes 2482 else 2483 have_long_long=no 2484 : 2485 fi 2486 2487 2488 2489 echo $ac_n "checking for in_port_t""... $ac_c" 1>&6 2490echo "configure:2491: checking for in_port_t" >&5 2491if eval "test \"`echo '$''{'ftp_cv_HAVE_IN_PORT_T'+set}'`\" = set"; then 2492 echo $ac_n "(cached) $ac_c" 1>&6 2493else 2494 2495 cat > conftest.$ac_ext <<EOF 2496#line 2497 "configure" 2497#include "confdefs.h" 2498 2499#include <sys/types.h> 2500#include <netinet/in.h> 2501int main() { 2502 in_port_t X ; 2503; return 0; } 2504EOF 2505if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2506 rm -rf conftest* 2507 ftp_cv_HAVE_IN_PORT_T=yes 2508else 2509 echo "configure: failed program was:" >&5 2510 cat conftest.$ac_ext >&5 2511 rm -rf conftest* 2512 ftp_cv_HAVE_IN_PORT_T=no 2513fi 2514rm -f conftest* 2515 2516fi 2517 2518echo "$ac_t""$ftp_cv_HAVE_IN_PORT_T" 1>&6 2519 if test "x$ftp_cv_HAVE_IN_PORT_T" = "xyes"; then 2520 cat >> confdefs.h <<\EOF 2521#define HAVE_IN_PORT_T 1 2522EOF 2523 2524 else 2525 2526 : 2527 fi 2528 2529 2530 2531 echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6 2532echo "configure:2533: checking for sockaddr_in.sin_len" >&5 2533if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_SA_LEN'+set}'`\" = set"; then 2534 echo $ac_n "(cached) $ac_c" 1>&6 2535else 2536 2537 cat > conftest.$ac_ext <<EOF 2538#line 2539 "configure" 2539#include "confdefs.h" 2540 2541#include <sys/types.h> 2542#include <sys/socket.h> 2543#include <netinet/in.h> 2544int main() { 2545 2546 struct sockaddr_in sin; 2547 int X = sin.sin_len ; 2548; return 0; } 2549EOF 2550if { (eval echo configure:2551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2551 rm -rf conftest* 2552 ftp_cv_HAVE_SOCKADDR_SA_LEN=yes 2553else 2554 echo "configure: failed program was:" >&5 2555 cat conftest.$ac_ext >&5 2556 rm -rf conftest* 2557 ftp_cv_HAVE_SOCKADDR_SA_LEN=no 2558fi 2559rm -f conftest* 2560 2561fi 2562 2563echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_SA_LEN" 1>&6 2564 if test "x$ftp_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then 2565 cat >> confdefs.h <<\EOF 2566#define HAVE_SOCKADDR_SA_LEN 1 2567EOF 2568 2569 else 2570 2571 : 2572 fi 2573 2574 2575 2576 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 2577echo "configure:2578: checking for socklen_t" >&5 2578if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKLEN_T'+set}'`\" = set"; then 2579 echo $ac_n "(cached) $ac_c" 1>&6 2580else 2581 2582 cat > conftest.$ac_ext <<EOF 2583#line 2584 "configure" 2584#include "confdefs.h" 2585 2586#include <sys/types.h> 2587#include <sys/socket.h> 2588int main() { 2589 socklen_t X ; 2590; return 0; } 2591EOF 2592if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2593 rm -rf conftest* 2594 ftp_cv_HAVE_SOCKLEN_T=yes 2595else 2596 echo "configure: failed program was:" >&5 2597 cat conftest.$ac_ext >&5 2598 rm -rf conftest* 2599 ftp_cv_HAVE_SOCKLEN_T=no 2600fi 2601rm -f conftest* 2602 2603fi 2604 2605echo "$ac_t""$ftp_cv_HAVE_SOCKLEN_T" 1>&6 2606 if test "x$ftp_cv_HAVE_SOCKLEN_T" = "xyes"; then 2607 cat >> confdefs.h <<\EOF 2608#define HAVE_SOCKLEN_T 1 2609EOF 2610 2611 else 2612 2613 : 2614 fi 2615 2616 2617if test $opt_ipv6 = yes; then 2618 2619 2620 echo $ac_n "checking for AF_INET6""... $ac_c" 1>&6 2621echo "configure:2622: checking for AF_INET6" >&5 2622if eval "test \"`echo '$''{'ftp_cv_HAVE_AF_INET6'+set}'`\" = set"; then 2623 echo $ac_n "(cached) $ac_c" 1>&6 2624else 2625 2626 cat > conftest.$ac_ext <<EOF 2627#line 2628 "configure" 2628#include "confdefs.h" 2629 2630#include <sys/types.h> 2631#include <sys/socket.h> 2632int main() { 2633 int X = AF_INET6 ; 2634; return 0; } 2635EOF 2636if { (eval echo configure:2637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2637 rm -rf conftest* 2638 ftp_cv_HAVE_AF_INET6=yes 2639else 2640 echo "configure: failed program was:" >&5 2641 cat conftest.$ac_ext >&5 2642 rm -rf conftest* 2643 ftp_cv_HAVE_AF_INET6=no 2644fi 2645rm -f conftest* 2646 2647fi 2648 2649echo "$ac_t""$ftp_cv_HAVE_AF_INET6" 1>&6 2650 if test "x$ftp_cv_HAVE_AF_INET6" = "xyes"; then 2651 cat >> confdefs.h <<\EOF 2652#define HAVE_AF_INET6 1 2653EOF 2654 2655 else 2656 2657 : 2658 fi 2659 2660 2661 2662 echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6 2663echo "configure:2664: checking for struct sockaddr_in6" >&5 2664if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_IN6'+set}'`\" = set"; then 2665 echo $ac_n "(cached) $ac_c" 1>&6 2666else 2667 2668 cat > conftest.$ac_ext <<EOF 2669#line 2670 "configure" 2670#include "confdefs.h" 2671 2672#include <sys/types.h> 2673#include <netinet/in.h> 2674int main() { 2675 struct sockaddr_in6 X ; 2676; return 0; } 2677EOF 2678if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2679 rm -rf conftest* 2680 ftp_cv_HAVE_SOCKADDR_IN6=yes 2681else 2682 echo "configure: failed program was:" >&5 2683 cat conftest.$ac_ext >&5 2684 rm -rf conftest* 2685 ftp_cv_HAVE_SOCKADDR_IN6=no 2686fi 2687rm -f conftest* 2688 2689fi 2690 2691echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_IN6" 1>&6 2692 if test "x$ftp_cv_HAVE_SOCKADDR_IN6" = "xyes"; then 2693 cat >> confdefs.h <<\EOF 2694#define HAVE_SOCKADDR_IN6 1 2695EOF 2696 2697 else 2698 2699 : 2700 fi 2701 2702 2703fi 2704 2705 2706 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 2707echo "configure:2708: checking for struct addrinfo" >&5 2708if eval "test \"`echo '$''{'ftp_cv_HAVE_ADDRINFO'+set}'`\" = set"; then 2709 echo $ac_n "(cached) $ac_c" 1>&6 2710else 2711 2712 cat > conftest.$ac_ext <<EOF 2713#line 2714 "configure" 2714#include "confdefs.h" 2715 2716#include <sys/types.h> 2717#include <sys/socket.h> 2718#include <netdb.h> 2719int main() { 2720 struct addrinfo X ; 2721; return 0; } 2722EOF 2723if { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2724 rm -rf conftest* 2725 ftp_cv_HAVE_ADDRINFO=yes 2726else 2727 echo "configure: failed program was:" >&5 2728 cat conftest.$ac_ext >&5 2729 rm -rf conftest* 2730 ftp_cv_HAVE_ADDRINFO=no 2731fi 2732rm -f conftest* 2733 2734fi 2735 2736echo "$ac_t""$ftp_cv_HAVE_ADDRINFO" 1>&6 2737 if test "x$ftp_cv_HAVE_ADDRINFO" = "xyes"; then 2738 cat >> confdefs.h <<\EOF 2739#define HAVE_ADDRINFO 1 2740EOF 2741 2742 else 2743 2744 : 2745 fi 2746 2747 2748 2749 echo $ac_n "checking for d_namlen in struct dirent""... $ac_c" 1>&6 2750echo "configure:2751: checking for d_namlen in struct dirent" >&5 2751if eval "test \"`echo '$''{'ftp_cv_HAVE_D_NAMLEN'+set}'`\" = set"; then 2752 echo $ac_n "(cached) $ac_c" 1>&6 2753else 2754 2755 cat > conftest.$ac_ext <<EOF 2756#line 2757 "configure" 2757#include "confdefs.h" 2758 2759#if HAVE_DIRENT_H 2760# include <dirent.h> 2761#else 2762# define dirent direct 2763# if HAVE_SYS_NDIR_H 2764# include <sys/ndir.h> 2765# endif 2766# if HAVE_SYS_DIR_H 2767# include <sys/dir.h> 2768# endif 2769# if HAVE_NDIR_H 2770# include <ndir.h> 2771# endif 2772#endif 2773int main() { 2774 2775 struct dirent dp; 2776 int X = dp.d_namlen; ; 2777; return 0; } 2778EOF 2779if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2780 rm -rf conftest* 2781 ftp_cv_HAVE_D_NAMLEN=yes 2782else 2783 echo "configure: failed program was:" >&5 2784 cat conftest.$ac_ext >&5 2785 rm -rf conftest* 2786 ftp_cv_HAVE_D_NAMLEN=no 2787fi 2788rm -f conftest* 2789 2790fi 2791 2792echo "$ac_t""$ftp_cv_HAVE_D_NAMLEN" 1>&6 2793 if test "x$ftp_cv_HAVE_D_NAMLEN" = "xyes"; then 2794 cat >> confdefs.h <<\EOF 2795#define HAVE_D_NAMLEN 1 2796EOF 2797 2798 else 2799 2800 : 2801 fi 2802 2803 2804 2805 echo $ac_n "checking for struct passwd.pw_expire""... $ac_c" 1>&6 2806echo "configure:2807: checking for struct passwd.pw_expire" >&5 2807if eval "test \"`echo '$''{'ftp_cv_HAVE_PW_EXPIRE'+set}'`\" = set"; then 2808 echo $ac_n "(cached) $ac_c" 1>&6 2809else 2810 2811 cat > conftest.$ac_ext <<EOF 2812#line 2813 "configure" 2813#include "confdefs.h" 2814 2815#include <sys/types.h> 2816#include <pwd.h> 2817int main() { 2818 struct passwd pw; 2819 time_t X = pw.pw_expire ; 2820; return 0; } 2821EOF 2822if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2823 rm -rf conftest* 2824 ftp_cv_HAVE_PW_EXPIRE=yes 2825else 2826 echo "configure: failed program was:" >&5 2827 cat conftest.$ac_ext >&5 2828 rm -rf conftest* 2829 ftp_cv_HAVE_PW_EXPIRE=no 2830fi 2831rm -f conftest* 2832 2833fi 2834 2835echo "$ac_t""$ftp_cv_HAVE_PW_EXPIRE" 1>&6 2836 if test "x$ftp_cv_HAVE_PW_EXPIRE" = "xyes"; then 2837 cat >> confdefs.h <<\EOF 2838#define HAVE_PW_EXPIRE 1 2839EOF 2840 2841 else 2842 2843 : 2844 fi 2845 2846 2847echo $ac_n "checking for working const""... $ac_c" 1>&6 2848echo "configure:2849: checking for working const" >&5 2849if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2850 echo $ac_n "(cached) $ac_c" 1>&6 2851else 2852 cat > conftest.$ac_ext <<EOF 2853#line 2854 "configure" 2854#include "confdefs.h" 2855 2856int main() { 2857 2858/* Ultrix mips cc rejects this. */ 2859typedef int charset[2]; const charset x; 2860/* SunOS 4.1.1 cc rejects this. */ 2861char const *const *ccp; 2862char **p; 2863/* NEC SVR4.0.2 mips cc rejects this. */ 2864struct point {int x, y;}; 2865static struct point const zero = {0,0}; 2866/* AIX XL C 1.02.0.0 rejects this. 2867 It does not let you subtract one const X* pointer from another in an arm 2868 of an if-expression whose if-part is not a constant expression */ 2869const char *g = "string"; 2870ccp = &g + (g ? g-g : 0); 2871/* HPUX 7.0 cc rejects these. */ 2872++ccp; 2873p = (char**) ccp; 2874ccp = (char const *const *) p; 2875{ /* SCO 3.2v4 cc rejects this. */ 2876 char *t; 2877 char const *s = 0 ? (char *) 0 : (char const *) 0; 2878 2879 *t++ = 0; 2880} 2881{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2882 int x[] = {25, 17}; 2883 const int *foo = &x[0]; 2884 ++foo; 2885} 2886{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2887 typedef const int *iptr; 2888 iptr p = 0; 2889 ++p; 2890} 2891{ /* AIX XL C 1.02.0.0 rejects this saying 2892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2893 struct s { int j; const int *ap[3]; }; 2894 struct s *b; b->j = 5; 2895} 2896{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2897 const int foo = 10; 2898} 2899 2900; return 0; } 2901EOF 2902if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2903 rm -rf conftest* 2904 ac_cv_c_const=yes 2905else 2906 echo "configure: failed program was:" >&5 2907 cat conftest.$ac_ext >&5 2908 rm -rf conftest* 2909 ac_cv_c_const=no 2910fi 2911rm -f conftest* 2912fi 2913 2914echo "$ac_t""$ac_cv_c_const" 1>&6 2915if test $ac_cv_c_const = no; then 2916 cat >> confdefs.h <<\EOF 2917#define const 2918EOF 2919 2920fi 2921 2922 2923 2924for ac_func in err fgetln getaddrinfo getgrouplist getnameinfo \ 2925 getusershell inet_net_pton inet_ntop inet_pton mkstemp \ 2926 sl_init snprintf strdup strerror strlcat strlcpy strsep \ 2927 usleep vsyslog 2928do 2929echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2930echo "configure:2931: checking for $ac_func" >&5 2931if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2932 echo $ac_n "(cached) $ac_c" 1>&6 2933else 2934 cat > conftest.$ac_ext <<EOF 2935#line 2936 "configure" 2936#include "confdefs.h" 2937/* System header to define __stub macros and hopefully few prototypes, 2938 which can conflict with char $ac_func(); below. */ 2939#include <assert.h> 2940/* Override any gcc2 internal prototype to avoid an error. */ 2941/* We use char because int might match the return type of a gcc2 2942 builtin and then its argument prototype would still apply. */ 2943char $ac_func(); 2944 2945int main() { 2946 2947/* The GNU C library defines this for functions which it implements 2948 to always fail with ENOSYS. Some functions are actually named 2949 something starting with __ and the normal name is an alias. */ 2950#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2951choke me 2952#else 2953$ac_func(); 2954#endif 2955 2956; return 0; } 2957EOF 2958if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2959 rm -rf conftest* 2960 eval "ac_cv_func_$ac_func=yes" 2961else 2962 echo "configure: failed program was:" >&5 2963 cat conftest.$ac_ext >&5 2964 rm -rf conftest* 2965 eval "ac_cv_func_$ac_func=no" 2966fi 2967rm -f conftest* 2968fi 2969 2970if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2971 echo "$ac_t""yes" 1>&6 2972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2973 cat >> confdefs.h <<EOF 2974#define $ac_tr_func 1 2975EOF 2976 2977else 2978 echo "$ac_t""no" 1>&6 2979LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2980fi 2981done 2982 2983 2984for ac_func in flock lockf getspnam setlogin setproctitle vfork 2985do 2986echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2987echo "configure:2988: checking for $ac_func" >&5 2988if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2989 echo $ac_n "(cached) $ac_c" 1>&6 2990else 2991 cat > conftest.$ac_ext <<EOF 2992#line 2993 "configure" 2993#include "confdefs.h" 2994/* System header to define __stub macros and hopefully few prototypes, 2995 which can conflict with char $ac_func(); below. */ 2996#include <assert.h> 2997/* Override any gcc2 internal prototype to avoid an error. */ 2998/* We use char because int might match the return type of a gcc2 2999 builtin and then its argument prototype would still apply. */ 3000char $ac_func(); 3001 3002int main() { 3003 3004/* The GNU C library defines this for functions which it implements 3005 to always fail with ENOSYS. Some functions are actually named 3006 something starting with __ and the normal name is an alias. */ 3007#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3008choke me 3009#else 3010$ac_func(); 3011#endif 3012 3013; return 0; } 3014EOF 3015if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3016 rm -rf conftest* 3017 eval "ac_cv_func_$ac_func=yes" 3018else 3019 echo "configure: failed program was:" >&5 3020 cat conftest.$ac_ext >&5 3021 rm -rf conftest* 3022 eval "ac_cv_func_$ac_func=no" 3023fi 3024rm -f conftest* 3025fi 3026 3027if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3028 echo "$ac_t""yes" 1>&6 3029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3030 cat >> confdefs.h <<EOF 3031#define $ac_tr_func 1 3032EOF 3033 3034else 3035 echo "$ac_t""no" 1>&6 3036fi 3037done 3038 3039if test $ac_cv_lib_util_fparseln != yes; then 3040 for ac_func in fparseln 3041do 3042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3043echo "configure:3044: checking for $ac_func" >&5 3044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3045 echo $ac_n "(cached) $ac_c" 1>&6 3046else 3047 cat > conftest.$ac_ext <<EOF 3048#line 3049 "configure" 3049#include "confdefs.h" 3050/* System header to define __stub macros and hopefully few prototypes, 3051 which can conflict with char $ac_func(); below. */ 3052#include <assert.h> 3053/* Override any gcc2 internal prototype to avoid an error. */ 3054/* We use char because int might match the return type of a gcc2 3055 builtin and then its argument prototype would still apply. */ 3056char $ac_func(); 3057 3058int main() { 3059 3060/* The GNU C library defines this for functions which it implements 3061 to always fail with ENOSYS. Some functions are actually named 3062 something starting with __ and the normal name is an alias. */ 3063#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3064choke me 3065#else 3066$ac_func(); 3067#endif 3068 3069; return 0; } 3070EOF 3071if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3072 rm -rf conftest* 3073 eval "ac_cv_func_$ac_func=yes" 3074else 3075 echo "configure: failed program was:" >&5 3076 cat conftest.$ac_ext >&5 3077 rm -rf conftest* 3078 eval "ac_cv_func_$ac_func=no" 3079fi 3080rm -f conftest* 3081fi 3082 3083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3084 echo "$ac_t""yes" 1>&6 3085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3086 cat >> confdefs.h <<EOF 3087#define $ac_tr_func 1 3088EOF 3089 3090else 3091 echo "$ac_t""no" 1>&6 3092LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 3093fi 3094done 3095 3096 3097fi 3098 3099LIBOBJS="$LIBOBJS glob.o" 3100 3101 3102 echo $ac_n "checking for crypt() declaration""... $ac_c" 1>&6 3103echo "configure:3104: checking for crypt() declaration" >&5 3104if eval "test \"`echo '$''{'ftp_cv_HAVE_CRYPT_D'+set}'`\" = set"; then 3105 echo $ac_n "(cached) $ac_c" 1>&6 3106else 3107 3108 cat > conftest.$ac_ext <<EOF 3109#line 3110 "configure" 3110#include "confdefs.h" 3111 3112#include <unistd.h> 3113int main() { 3114 char *(*X)() = crypt ; 3115; return 0; } 3116EOF 3117if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3118 rm -rf conftest* 3119 ftp_cv_HAVE_CRYPT_D=yes 3120else 3121 echo "configure: failed program was:" >&5 3122 cat conftest.$ac_ext >&5 3123 rm -rf conftest* 3124 ftp_cv_HAVE_CRYPT_D=no 3125fi 3126rm -f conftest* 3127 3128fi 3129 3130echo "$ac_t""$ftp_cv_HAVE_CRYPT_D" 1>&6 3131 if test "x$ftp_cv_HAVE_CRYPT_D" = "xyes"; then 3132 cat >> confdefs.h <<\EOF 3133#define HAVE_CRYPT_D 1 3134EOF 3135 3136 else 3137 3138 : 3139 fi 3140 3141 3142 3143 echo $ac_n "checking for fclose() declaration""... $ac_c" 1>&6 3144echo "configure:3145: checking for fclose() declaration" >&5 3145if eval "test \"`echo '$''{'ftp_cv_HAVE_FCLOSE_D'+set}'`\" = set"; then 3146 echo $ac_n "(cached) $ac_c" 1>&6 3147else 3148 3149 cat > conftest.$ac_ext <<EOF 3150#line 3151 "configure" 3151#include "confdefs.h" 3152 3153#include <stdio.h> 3154int main() { 3155 int (*X)() = fclose ; 3156; return 0; } 3157EOF 3158if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3159 rm -rf conftest* 3160 ftp_cv_HAVE_FCLOSE_D=yes 3161else 3162 echo "configure: failed program was:" >&5 3163 cat conftest.$ac_ext >&5 3164 rm -rf conftest* 3165 ftp_cv_HAVE_FCLOSE_D=no 3166fi 3167rm -f conftest* 3168 3169fi 3170 3171echo "$ac_t""$ftp_cv_HAVE_FCLOSE_D" 1>&6 3172 if test "x$ftp_cv_HAVE_FCLOSE_D" = "xyes"; then 3173 cat >> confdefs.h <<\EOF 3174#define HAVE_FCLOSE_D 1 3175EOF 3176 3177 else 3178 3179 : 3180 fi 3181 3182 3183 3184 echo $ac_n "checking for FNM_CASEFOLD""... $ac_c" 1>&6 3185echo "configure:3186: checking for FNM_CASEFOLD" >&5 3186if eval "test \"`echo '$''{'ftp_cv_HAVE_FNM_CASEFOLD'+set}'`\" = set"; then 3187 echo $ac_n "(cached) $ac_c" 1>&6 3188else 3189 3190 cat > conftest.$ac_ext <<EOF 3191#line 3192 "configure" 3192#include "confdefs.h" 3193 3194#include <fnmatch.h> 3195int main() { 3196 int X = FNM_CASEFOLD ; 3197; return 0; } 3198EOF 3199if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3200 rm -rf conftest* 3201 ftp_cv_HAVE_FNM_CASEFOLD=yes 3202else 3203 echo "configure: failed program was:" >&5 3204 cat conftest.$ac_ext >&5 3205 rm -rf conftest* 3206 ftp_cv_HAVE_FNM_CASEFOLD=no 3207fi 3208rm -f conftest* 3209 3210fi 3211 3212echo "$ac_t""$ftp_cv_HAVE_FNM_CASEFOLD" 1>&6 3213 if test "x$ftp_cv_HAVE_FNM_CASEFOLD" = "xyes"; then 3214 cat >> confdefs.h <<\EOF 3215#define HAVE_FNM_CASEFOLD 1 3216EOF 3217 3218 else 3219 LIBOBJS="$LIBOBJS fnmatch.o" 3220 : 3221 fi 3222 3223 3224 3225 echo $ac_n "checking for optarg declaration""... $ac_c" 1>&6 3226echo "configure:3227: checking for optarg declaration" >&5 3227if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTARG_D'+set}'`\" = set"; then 3228 echo $ac_n "(cached) $ac_c" 1>&6 3229else 3230 3231 cat > conftest.$ac_ext <<EOF 3232#line 3233 "configure" 3233#include "confdefs.h" 3234 3235#include <stdlib.h> 3236#include <unistd.h> 3237int main() { 3238 char *X = optarg ; 3239; return 0; } 3240EOF 3241if { (eval echo configure:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3242 rm -rf conftest* 3243 ftp_cv_HAVE_OPTARG_D=yes 3244else 3245 echo "configure: failed program was:" >&5 3246 cat conftest.$ac_ext >&5 3247 rm -rf conftest* 3248 ftp_cv_HAVE_OPTARG_D=no 3249fi 3250rm -f conftest* 3251 3252fi 3253 3254echo "$ac_t""$ftp_cv_HAVE_OPTARG_D" 1>&6 3255 if test "x$ftp_cv_HAVE_OPTARG_D" = "xyes"; then 3256 cat >> confdefs.h <<\EOF 3257#define HAVE_OPTARG_D 1 3258EOF 3259 3260 else 3261 3262 : 3263 fi 3264 3265 3266 3267 echo $ac_n "checking for optind declaration""... $ac_c" 1>&6 3268echo "configure:3269: checking for optind declaration" >&5 3269if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTIND_D'+set}'`\" = set"; then 3270 echo $ac_n "(cached) $ac_c" 1>&6 3271else 3272 3273 cat > conftest.$ac_ext <<EOF 3274#line 3275 "configure" 3275#include "confdefs.h" 3276 3277#include <stdlib.h> 3278#include <unistd.h> 3279int main() { 3280 int X = optind ; 3281; return 0; } 3282EOF 3283if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3284 rm -rf conftest* 3285 ftp_cv_HAVE_OPTIND_D=yes 3286else 3287 echo "configure: failed program was:" >&5 3288 cat conftest.$ac_ext >&5 3289 rm -rf conftest* 3290 ftp_cv_HAVE_OPTIND_D=no 3291fi 3292rm -f conftest* 3293 3294fi 3295 3296echo "$ac_t""$ftp_cv_HAVE_OPTIND_D" 1>&6 3297 if test "x$ftp_cv_HAVE_OPTIND_D" = "xyes"; then 3298 cat >> confdefs.h <<\EOF 3299#define HAVE_OPTIND_D 1 3300EOF 3301 3302 else 3303 3304 : 3305 fi 3306 3307 3308 3309 echo $ac_n "checking for optreset""... $ac_c" 1>&6 3310echo "configure:3311: checking for optreset" >&5 3311if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTRESET'+set}'`\" = set"; then 3312 echo $ac_n "(cached) $ac_c" 1>&6 3313else 3314 3315 cat > conftest.$ac_ext <<EOF 3316#line 3317 "configure" 3317#include "confdefs.h" 3318 3319#include <stdlib.h> 3320#include <unistd.h> 3321int main() { 3322 int X = optreset ; 3323; return 0; } 3324EOF 3325if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3326 rm -rf conftest* 3327 ftp_cv_HAVE_OPTRESET=yes 3328else 3329 echo "configure: failed program was:" >&5 3330 cat conftest.$ac_ext >&5 3331 rm -rf conftest* 3332 ftp_cv_HAVE_OPTRESET=no 3333fi 3334rm -f conftest* 3335 3336fi 3337 3338echo "$ac_t""$ftp_cv_HAVE_OPTRESET" 1>&6 3339 if test "x$ftp_cv_HAVE_OPTRESET" = "xyes"; then 3340 cat >> confdefs.h <<\EOF 3341#define HAVE_OPTRESET 1 3342EOF 3343 3344 else 3345 3346 : 3347 fi 3348 3349 3350 3351 echo $ac_n "checking for pclose() declaration""... $ac_c" 1>&6 3352echo "configure:3353: checking for pclose() declaration" >&5 3353if eval "test \"`echo '$''{'ftp_cv_HAVE_PCLOSE_D'+set}'`\" = set"; then 3354 echo $ac_n "(cached) $ac_c" 1>&6 3355else 3356 3357 cat > conftest.$ac_ext <<EOF 3358#line 3359 "configure" 3359#include "confdefs.h" 3360 3361#include <stdio.h> 3362int main() { 3363 int (*X)() = pclose ; 3364; return 0; } 3365EOF 3366if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3367 rm -rf conftest* 3368 ftp_cv_HAVE_PCLOSE_D=yes 3369else 3370 echo "configure: failed program was:" >&5 3371 cat conftest.$ac_ext >&5 3372 rm -rf conftest* 3373 ftp_cv_HAVE_PCLOSE_D=no 3374fi 3375rm -f conftest* 3376 3377fi 3378 3379echo "$ac_t""$ftp_cv_HAVE_PCLOSE_D" 1>&6 3380 if test "x$ftp_cv_HAVE_PCLOSE_D" = "xyes"; then 3381 cat >> confdefs.h <<\EOF 3382#define HAVE_PCLOSE_D 1 3383EOF 3384 3385 else 3386 3387 : 3388 fi 3389 3390 3391if test $ac_cv_func_getusershell = yes; then 3392 3393 echo $ac_n "checking for getusershell() declaration""... $ac_c" 1>&6 3394echo "configure:3395: checking for getusershell() declaration" >&5 3395if eval "test \"`echo '$''{'ftp_cv_HAVE_GETUSERSHELL_D'+set}'`\" = set"; then 3396 echo $ac_n "(cached) $ac_c" 1>&6 3397else 3398 3399 cat > conftest.$ac_ext <<EOF 3400#line 3401 "configure" 3401#include "confdefs.h" 3402 3403 #include <unistd.h> 3404int main() { 3405 char *(*X)() = getusershell ; 3406; return 0; } 3407EOF 3408if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3409 rm -rf conftest* 3410 ftp_cv_HAVE_GETUSERSHELL_D=yes 3411else 3412 echo "configure: failed program was:" >&5 3413 cat conftest.$ac_ext >&5 3414 rm -rf conftest* 3415 ftp_cv_HAVE_GETUSERSHELL_D=no 3416fi 3417rm -f conftest* 3418 3419fi 3420 3421echo "$ac_t""$ftp_cv_HAVE_GETUSERSHELL_D" 1>&6 3422 if test "x$ftp_cv_HAVE_GETUSERSHELL_D" = "xyes"; then 3423 cat >> confdefs.h <<\EOF 3424#define HAVE_GETUSERSHELL_D 1 3425EOF 3426 3427 else 3428 3429 : 3430 fi 3431 3432fi 3433 3434 3435if test $have_long_long = yes -a $ac_cv_sizeof_off_t -ge 8; then 3436 3437 3438 echo $ac_n "checking *printf() support for %lld""... $ac_c" 1>&6 3439echo "configure:3440: checking *printf() support for %lld" >&5 3440 can_printf_longlong=no 3441 if test "$cross_compiling" = yes; then 3442 : 3443else 3444 cat > conftest.$ac_ext <<EOF 3445#line 3446 "configure" 3446#include "confdefs.h" 3447 3448 #include <stdio.h> 3449 int main() { 3450 char buf[100]; 3451 sprintf(buf, "%lld", 4294967300LL); 3452 return (strcmp(buf, "4294967300")); 3453 } 3454 3455EOF 3456if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3457then 3458 3459 echo "$ac_t""yes" 1>&6 3460 can_printf_longlong=yes 3461 3462else 3463 echo "configure: failed program was:" >&5 3464 cat conftest.$ac_ext >&5 3465 rm -fr conftest* 3466 3467 echo "$ac_t""no" 1>&6 3468 3469fi 3470rm -fr conftest* 3471fi 3472 3473 3474 if test $can_printf_longlong != yes; then 3475 echo $ac_n "checking *printf() support for %qd""... $ac_c" 1>&6 3476echo "configure:3477: checking *printf() support for %qd" >&5 3477 if test "$cross_compiling" = yes; then 3478 : 3479else 3480 cat > conftest.$ac_ext <<EOF 3481#line 3482 "configure" 3482#include "confdefs.h" 3483 3484 #include <stdio.h> 3485 int main() { 3486 char buf[100]; 3487 sprintf(buf, "%qd", 4294967300LL); 3488 return (strcmp(buf, "4294967300")); 3489 } 3490 3491EOF 3492if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3493then 3494 3495 echo "$ac_t""yes" 1>&6 3496 can_printf_longlong=yes 3497 cat >> confdefs.h <<\EOF 3498#define HAVE_PRINTF_QD 1 3499EOF 3500 3501 3502else 3503 echo "configure: failed program was:" >&5 3504 cat conftest.$ac_ext >&5 3505 rm -fr conftest* 3506 3507 echo "$ac_t""no" 1>&6 3508 3509fi 3510rm -fr conftest* 3511fi 3512 3513 fi 3514 3515 if test $can_printf_longlong = yes; then 3516 cat >> confdefs.h <<\EOF 3517#define HAVE_QUAD_SUPPORT 1 3518EOF 3519 3520 for ac_func in strtoll 3521do 3522echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3523echo "configure:3524: checking for $ac_func" >&5 3524if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3525 echo $ac_n "(cached) $ac_c" 1>&6 3526else 3527 cat > conftest.$ac_ext <<EOF 3528#line 3529 "configure" 3529#include "confdefs.h" 3530/* System header to define __stub macros and hopefully few prototypes, 3531 which can conflict with char $ac_func(); below. */ 3532#include <assert.h> 3533/* Override any gcc2 internal prototype to avoid an error. */ 3534/* We use char because int might match the return type of a gcc2 3535 builtin and then its argument prototype would still apply. */ 3536char $ac_func(); 3537 3538int main() { 3539 3540/* The GNU C library defines this for functions which it implements 3541 to always fail with ENOSYS. Some functions are actually named 3542 something starting with __ and the normal name is an alias. */ 3543#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3544choke me 3545#else 3546$ac_func(); 3547#endif 3548 3549; return 0; } 3550EOF 3551if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3552 rm -rf conftest* 3553 eval "ac_cv_func_$ac_func=yes" 3554else 3555 echo "configure: failed program was:" >&5 3556 cat conftest.$ac_ext >&5 3557 rm -rf conftest* 3558 eval "ac_cv_func_$ac_func=no" 3559fi 3560rm -f conftest* 3561fi 3562 3563if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3564 echo "$ac_t""yes" 1>&6 3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3566 cat >> confdefs.h <<EOF 3567#define $ac_tr_func 1 3568EOF 3569 3570else 3571 echo "$ac_t""no" 1>&6 3572LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 3573fi 3574done 3575 3576 3577 fi 3578 3579fi 3580 3581 3582have_rfc2553_netdb=no 3583if test $ac_cv_func_getaddrinfo = yes -a ! -n "$socks"; then 3584 3585 echo $ac_n "checking for AI_NUMERICHOST""... $ac_c" 1>&6 3586echo "configure:3587: checking for AI_NUMERICHOST" >&5 3587if eval "test \"`echo '$''{'ftp_cv_have_ai_numerichost'+set}'`\" = set"; then 3588 echo $ac_n "(cached) $ac_c" 1>&6 3589else 3590 3591 cat > conftest.$ac_ext <<EOF 3592#line 3593 "configure" 3593#include "confdefs.h" 3594 3595 #include <sys/types.h> 3596 #include <sys/socket.h> 3597 #include <netdb.h> 3598int main() { 3599 int X = AI_NUMERICHOST ; 3600; return 0; } 3601EOF 3602if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3603 rm -rf conftest* 3604 ftp_cv_have_ai_numerichost=yes 3605else 3606 echo "configure: failed program was:" >&5 3607 cat conftest.$ac_ext >&5 3608 rm -rf conftest* 3609 ftp_cv_have_ai_numerichost=no 3610fi 3611rm -f conftest* 3612 3613fi 3614 3615echo "$ac_t""$ftp_cv_have_ai_numerichost" 1>&6 3616 if test "x$ftp_cv_have_ai_numerichost" = "xyes"; then 3617 have_rfc2553_netdb=yes 3618 else 3619 3620 : 3621 fi 3622 3623fi 3624echo $ac_n "checking for working getaddrinfo()""... $ac_c" 1>&6 3625echo "configure:3626: checking for working getaddrinfo()" >&5 3626if test $have_rfc2553_netdb = yes; then 3627 cat >> confdefs.h <<\EOF 3628#define HAVE_RFC2553_NETDB 1 3629EOF 3630 3631 echo "$ac_t""yes" 1>&6 3632else 3633 if test $ac_cv_func_getaddrinfo = yes; then 3634 LIBOBJS="$LIBOBJS getaddrinfo.o" 3635 echo "$ac_t""no - using local version" 1>&6 3636 else 3637 echo "$ac_t""using local version" 1>&6 3638 fi 3639fi 3640 3641if test $ac_cv_func_sl_init = yes; then 3642 3643 echo $ac_n "checking if sl_add() returns int""... $ac_c" 1>&6 3644echo "configure:3645: checking if sl_add() returns int" >&5 3645if eval "test \"`echo '$''{'ftp_cv_INT_SL_ADD'+set}'`\" = set"; then 3646 echo $ac_n "(cached) $ac_c" 1>&6 3647else 3648 3649 cat > conftest.$ac_ext <<EOF 3650#line 3651 "configure" 3651#include "confdefs.h" 3652 3653 #include <stringlist.h> 3654int main() { 3655 int f = sl_add((StringList *)0, "foo") ; 3656; return 0; } 3657EOF 3658if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3659 rm -rf conftest* 3660 ftp_cv_INT_SL_ADD=yes 3661else 3662 echo "configure: failed program was:" >&5 3663 cat conftest.$ac_ext >&5 3664 rm -rf conftest* 3665 ftp_cv_INT_SL_ADD=no 3666fi 3667rm -f conftest* 3668 3669fi 3670 3671echo "$ac_t""$ftp_cv_INT_SL_ADD" 1>&6 3672 if test "x$ftp_cv_INT_SL_ADD" = "xyes"; then 3673 : 3674 else 3675 LIBOBJS="$LIBOBJS sl_init.o" 3676 : 3677 fi 3678 3679fi 3680 3681 3682 3683if test $opt_builtinls = yes; then 3684 for ac_func in fts_open strmode user_from_uid 3685do 3686echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3687echo "configure:3688: checking for $ac_func" >&5 3688if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3689 echo $ac_n "(cached) $ac_c" 1>&6 3690else 3691 cat > conftest.$ac_ext <<EOF 3692#line 3693 "configure" 3693#include "confdefs.h" 3694/* System header to define __stub macros and hopefully few prototypes, 3695 which can conflict with char $ac_func(); below. */ 3696#include <assert.h> 3697/* Override any gcc2 internal prototype to avoid an error. */ 3698/* We use char because int might match the return type of a gcc2 3699 builtin and then its argument prototype would still apply. */ 3700char $ac_func(); 3701 3702int main() { 3703 3704/* The GNU C library defines this for functions which it implements 3705 to always fail with ENOSYS. Some functions are actually named 3706 something starting with __ and the normal name is an alias. */ 3707#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3708choke me 3709#else 3710$ac_func(); 3711#endif 3712 3713; return 0; } 3714EOF 3715if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3716 rm -rf conftest* 3717 eval "ac_cv_func_$ac_func=yes" 3718else 3719 echo "configure: failed program was:" >&5 3720 cat conftest.$ac_ext >&5 3721 rm -rf conftest* 3722 eval "ac_cv_func_$ac_func=no" 3723fi 3724rm -f conftest* 3725fi 3726 3727if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3728 echo "$ac_t""yes" 1>&6 3729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3730 cat >> confdefs.h <<EOF 3731#define $ac_tr_func 1 3732EOF 3733 3734else 3735 echo "$ac_t""no" 1>&6 3736LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 3737fi 3738done 3739 3740 3741 LSOBJS="cmp.o ls.o print.o util.o" 3742else 3743 cat >> confdefs.h <<\EOF 3744#define NO_INTERNAL_LS 1 3745EOF 3746 3747fi 3748 3749 3750 3751if test -n "$LIBOBJS"; then 3752 INCLUDES="$INCLUDES -I\${srcdir}/../libukem" 3753 LDFLAGS="$LDFLAGS -L../libukem" 3754 LIBS="$LIBS -lukem" 3755 LIBUKEM=libukem.a 3756 LIBDEPENDS="$LIBDEPENDS ../libukem/libukem.a" 3757fi 3758 3759 3760 3761 3762 3763 3764 3765 3766trap '' 1 2 15 3767cat > confcache <<\EOF 3768# This file is a shell script that caches the results of configure 3769# tests run on this system so they can be shared between configure 3770# scripts and configure runs. It is not useful on other systems. 3771# If it contains results you don't want to keep, you may remove or edit it. 3772# 3773# By default, configure uses ./config.cache as the cache file, 3774# creating it if it does not exist already. You can give configure 3775# the --cache-file=FILE option to use a different cache file; that is 3776# what configure does when it calls configure scripts in 3777# subdirectories, so they share the cache. 3778# Giving --cache-file=/dev/null disables caching, for debugging configure. 3779# config.status only pays attention to the cache file if you give it the 3780# --recheck option to rerun configure. 3781# 3782EOF 3783# The following way of writing the cache mishandles newlines in values, 3784# but we know of no workaround that is simple, portable, and efficient. 3785# So, don't put newlines in cache variables' values. 3786# Ultrix sh set writes to stderr and can't be redirected directly, 3787# and sets the high bit in the cache file unless we assign to the vars. 3788(set) 2>&1 | 3789 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3790 *ac_space=\ *) 3791 # `set' does not quote correctly, so add quotes (double-quote substitution 3792 # turns \\\\ into \\, and sed turns \\ into \). 3793 sed -n \ 3794 -e "s/'/'\\\\''/g" \ 3795 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3796 ;; 3797 *) 3798 # `set' quotes correctly as required by POSIX, so do not add quotes. 3799 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3800 ;; 3801 esac >> confcache 3802if cmp -s $cache_file confcache; then 3803 : 3804else 3805 if test -w $cache_file; then 3806 echo "updating cache $cache_file" 3807 cat confcache > $cache_file 3808 else 3809 echo "not updating unwritable cache $cache_file" 3810 fi 3811fi 3812rm -f confcache 3813 3814trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 3815 3816test "x$prefix" = xNONE && prefix=$ac_default_prefix 3817# Let make expand exec_prefix. 3818test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3819 3820# Any assignment to VPATH causes Sun make to only execute 3821# the first set of double-colon rules, so remove it if not needed. 3822# If there is a colon in the path, we need to keep it. 3823if test "x$srcdir" = x.; then 3824 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3825fi 3826 3827trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 3828 3829DEFS=-DHAVE_CONFIG_H 3830 3831# Without the "./", some shells look in PATH for config.status. 3832: ${CONFIG_STATUS=./config.status} 3833 3834echo creating $CONFIG_STATUS 3835rm -f $CONFIG_STATUS 3836cat > $CONFIG_STATUS <<EOF 3837#! /bin/sh 3838# Generated automatically by configure. 3839# Run this file to recreate the current configuration. 3840# This directory was configured as follows, 3841# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3842# 3843# $0 $ac_configure_args 3844# 3845# Compiler output produced by configure, useful for debugging 3846# configure, is in ./config.log if it exists. 3847 3848ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3849for ac_option 3850do 3851 case "\$ac_option" in 3852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3853 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3854 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3855 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3856 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3857 exit 0 ;; 3858 -help | --help | --hel | --he | --h) 3859 echo "\$ac_cs_usage"; exit 0 ;; 3860 *) echo "\$ac_cs_usage"; exit 1 ;; 3861 esac 3862done 3863 3864ac_given_srcdir=$srcdir 3865ac_given_INSTALL="$INSTALL" 3866 3867trap 'rm -fr `echo "Makefile libukem/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3868EOF 3869cat >> $CONFIG_STATUS <<EOF 3870 3871# Protect against being on the right side of a sed subst in config.status. 3872sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3873 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3874$ac_vpsub 3875$extrasub 3876s%@SHELL@%$SHELL%g 3877s%@CFLAGS@%$CFLAGS%g 3878s%@CPPFLAGS@%$CPPFLAGS%g 3879s%@CXXFLAGS@%$CXXFLAGS%g 3880s%@FFLAGS@%$FFLAGS%g 3881s%@DEFS@%$DEFS%g 3882s%@LDFLAGS@%$LDFLAGS%g 3883s%@LIBS@%$LIBS%g 3884s%@exec_prefix@%$exec_prefix%g 3885s%@prefix@%$prefix%g 3886s%@program_transform_name@%$program_transform_name%g 3887s%@bindir@%$bindir%g 3888s%@sbindir@%$sbindir%g 3889s%@libexecdir@%$libexecdir%g 3890s%@datadir@%$datadir%g 3891s%@sysconfdir@%$sysconfdir%g 3892s%@sharedstatedir@%$sharedstatedir%g 3893s%@localstatedir@%$localstatedir%g 3894s%@libdir@%$libdir%g 3895s%@includedir@%$includedir%g 3896s%@oldincludedir@%$oldincludedir%g 3897s%@infodir@%$infodir%g 3898s%@mandir@%$mandir%g 3899s%@SET_MAKE@%$SET_MAKE%g 3900s%@CC@%$CC%g 3901s%@AWK@%$AWK%g 3902s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3903s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3904s%@INSTALL_DATA@%$INSTALL_DATA%g 3905s%@RANLIB@%$RANLIB%g 3906s%@YACC@%$YACC%g 3907s%@AR@%$AR%g 3908s%@CPP@%$CPP%g 3909s%@LIBOBJS@%$LIBOBJS%g 3910s%@INCLUDES@%$INCLUDES%g 3911s%@LIBUKEM@%$LIBUKEM%g 3912s%@LIBDEPENDS@%$LIBDEPENDS%g 3913s%@LSOBJS@%$LSOBJS%g 3914 3915CEOF 3916EOF 3917 3918cat >> $CONFIG_STATUS <<\EOF 3919 3920# Split the substitutions into bite-sized pieces for seds with 3921# small command number limits, like on Digital OSF/1 and HP-UX. 3922ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3923ac_file=1 # Number of current file. 3924ac_beg=1 # First line for current file. 3925ac_end=$ac_max_sed_cmds # Line after last line for current file. 3926ac_more_lines=: 3927ac_sed_cmds="" 3928while $ac_more_lines; do 3929 if test $ac_beg -gt 1; then 3930 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3931 else 3932 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3933 fi 3934 if test ! -s conftest.s$ac_file; then 3935 ac_more_lines=false 3936 rm -f conftest.s$ac_file 3937 else 3938 if test -z "$ac_sed_cmds"; then 3939 ac_sed_cmds="sed -f conftest.s$ac_file" 3940 else 3941 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3942 fi 3943 ac_file=`expr $ac_file + 1` 3944 ac_beg=$ac_end 3945 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3946 fi 3947done 3948if test -z "$ac_sed_cmds"; then 3949 ac_sed_cmds=cat 3950fi 3951EOF 3952 3953cat >> $CONFIG_STATUS <<EOF 3954 3955CONFIG_FILES=\${CONFIG_FILES-"Makefile libukem/Makefile src/Makefile"} 3956EOF 3957cat >> $CONFIG_STATUS <<\EOF 3958for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3960 case "$ac_file" in 3961 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3962 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3963 *) ac_file_in="${ac_file}.in" ;; 3964 esac 3965 3966 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3967 3968 # Remove last slash and all that follows it. Not all systems have dirname. 3969 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3971 # The file is in a subdirectory. 3972 test ! -d "$ac_dir" && mkdir "$ac_dir" 3973 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3974 # A "../" for each directory in $ac_dir_suffix. 3975 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3976 else 3977 ac_dir_suffix= ac_dots= 3978 fi 3979 3980 case "$ac_given_srcdir" in 3981 .) srcdir=. 3982 if test -z "$ac_dots"; then top_srcdir=. 3983 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3984 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3985 *) # Relative path. 3986 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3987 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3988 esac 3989 3990 case "$ac_given_INSTALL" in 3991 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3992 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 3993 esac 3994 3995 echo creating "$ac_file" 3996 rm -f "$ac_file" 3997 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3998 case "$ac_file" in 3999 *Makefile*) ac_comsub="1i\\ 4000# $configure_input" ;; 4001 *) ac_comsub= ;; 4002 esac 4003 4004 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4005 sed -e "$ac_comsub 4006s%@configure_input@%$configure_input%g 4007s%@srcdir@%$srcdir%g 4008s%@top_srcdir@%$top_srcdir%g 4009s%@INSTALL@%$INSTALL%g 4010" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4011fi; done 4012rm -f conftest.s* 4013 4014# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4015# NAME is the cpp macro being defined and VALUE is the value it is being given. 4016# 4017# ac_d sets the value in "#define NAME VALUE" lines. 4018ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4019ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4020ac_dC='\3' 4021ac_dD='%g' 4022# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4023ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4024ac_uB='\([ ]\)%\1#\2define\3' 4025ac_uC=' ' 4026ac_uD='\4%g' 4027# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4028ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4029ac_eB='$%\1#\2define\3' 4030ac_eC=' ' 4031ac_eD='%g' 4032 4033if test "${CONFIG_HEADERS+set}" != set; then 4034EOF 4035cat >> $CONFIG_STATUS <<EOF 4036 CONFIG_HEADERS="config.h" 4037EOF 4038cat >> $CONFIG_STATUS <<\EOF 4039fi 4040for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4042 case "$ac_file" in 4043 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4044 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4045 *) ac_file_in="${ac_file}.in" ;; 4046 esac 4047 4048 echo creating $ac_file 4049 4050 rm -f conftest.frag conftest.in conftest.out 4051 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4052 cat $ac_file_inputs > conftest.in 4053 4054EOF 4055 4056# Transform confdefs.h into a sed script conftest.vals that substitutes 4057# the proper values into config.h.in to produce config.h. And first: 4058# Protect against being on the right side of a sed subst in config.status. 4059# Protect against being in an unquoted here document in config.status. 4060rm -f conftest.vals 4061cat > conftest.hdr <<\EOF 4062s/[\\&%]/\\&/g 4063s%[\\$`]%\\&%g 4064s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4065s%ac_d%ac_u%gp 4066s%ac_u%ac_e%gp 4067EOF 4068sed -n -f conftest.hdr confdefs.h > conftest.vals 4069rm -f conftest.hdr 4070 4071# This sed command replaces #undef with comments. This is necessary, for 4072# example, in the case of _POSIX_SOURCE, which is predefined and required 4073# on some systems where configure will not decide to define it. 4074cat >> conftest.vals <<\EOF 4075s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4076EOF 4077 4078# Break up conftest.vals because some shells have a limit on 4079# the size of here documents, and old seds have small limits too. 4080 4081rm -f conftest.tail 4082while : 4083do 4084 ac_lines=`grep -c . conftest.vals` 4085 # grep -c gives empty output for an empty file on some AIX systems. 4086 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4087 # Write a limited-size here document to conftest.frag. 4088 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4089 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4090 echo 'CEOF 4091 sed -f conftest.frag conftest.in > conftest.out 4092 rm -f conftest.in 4093 mv conftest.out conftest.in 4094' >> $CONFIG_STATUS 4095 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4096 rm -f conftest.vals 4097 mv conftest.tail conftest.vals 4098done 4099rm -f conftest.vals 4100 4101cat >> $CONFIG_STATUS <<\EOF 4102 rm -f conftest.frag conftest.h 4103 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4104 cat conftest.in >> conftest.h 4105 rm -f conftest.in 4106 if cmp -s $ac_file conftest.h 2>/dev/null; then 4107 echo "$ac_file is unchanged" 4108 rm -f conftest.h 4109 else 4110 # Remove last slash and all that follows it. Not all systems have dirname. 4111 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4112 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4113 # The file is in a subdirectory. 4114 test ! -d "$ac_dir" && mkdir "$ac_dir" 4115 fi 4116 rm -f $ac_file 4117 mv conftest.h $ac_file 4118 fi 4119fi; done 4120 4121EOF 4122cat >> $CONFIG_STATUS <<EOF 4123 4124EOF 4125cat >> $CONFIG_STATUS <<\EOF 4126 4127exit 0 4128EOF 4129chmod +x $CONFIG_STATUS 4130rm -fr confdefs* $ac_clean_files 4131test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4132 4133