1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_default_prefix=/usr 15ac_help="$ac_help 16 --enable-pam Enable PAM (pluggable authentication modules) support" 17ac_help="$ac_help 18 --enable-libz Link against libz so that gzip on the fly is supported" 19ac_help="$ac_help 20 --enable-pax Specify path to PAX sources" 21ac_help="$ac_help 22 --enable-debug Enable debugging" 23 24# Initialize some variables set by options. 25# The variables have the same names as the options, with 26# dashes changed to underlines. 27build=NONE 28cache_file=./config.cache 29exec_prefix=NONE 30host=NONE 31no_create= 32nonopt=NONE 33no_recursion= 34prefix=NONE 35program_prefix=NONE 36program_suffix=NONE 37program_transform_name=s,x,x, 38silent= 39site= 40srcdir= 41target=NONE 42verbose= 43x_includes=NONE 44x_libraries=NONE 45bindir='${exec_prefix}/bin' 46sbindir='${exec_prefix}/sbin' 47libexecdir='${exec_prefix}/libexec' 48datadir='${prefix}/share' 49sysconfdir='${prefix}/etc' 50sharedstatedir='${prefix}/com' 51localstatedir='${prefix}/var' 52libdir='${exec_prefix}/lib' 53includedir='${prefix}/include' 54oldincludedir='/usr/include' 55infodir='${prefix}/info' 56mandir='${prefix}/man' 57 58# Initialize some other variables. 59subdirs= 60MFLAGS= MAKEFLAGS= 61SHELL=${CONFIG_SHELL-/bin/sh} 62# Maximum number of lines to put in a shell here document. 63ac_max_here_lines=12 64 65ac_prev= 66for ac_option 67do 68 69 # If the previous option needs an argument, assign it. 70 if test -n "$ac_prev"; then 71 eval "$ac_prev=\$ac_option" 72 ac_prev= 73 continue 74 fi 75 76 case "$ac_option" in 77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 78 *) ac_optarg= ;; 79 esac 80 81 # Accept the important Cygnus configure options, so we can diagnose typos. 82 83 case "$ac_option" in 84 85 -bindir | --bindir | --bindi | --bind | --bin | --bi) 86 ac_prev=bindir ;; 87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 88 bindir="$ac_optarg" ;; 89 90 -build | --build | --buil | --bui | --bu) 91 ac_prev=build ;; 92 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 93 build="$ac_optarg" ;; 94 95 -cache-file | --cache-file | --cache-fil | --cache-fi \ 96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 97 ac_prev=cache_file ;; 98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 100 cache_file="$ac_optarg" ;; 101 102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 103 ac_prev=datadir ;; 104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 105 | --da=*) 106 datadir="$ac_optarg" ;; 107 108 -disable-* | --disable-*) 109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 110 # Reject names that are not valid shell variable names. 111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 113 fi 114 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 115 eval "enable_${ac_feature}=no" ;; 116 117 -enable-* | --enable-*) 118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 119 # Reject names that are not valid shell variable names. 120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 122 fi 123 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 124 case "$ac_option" in 125 *=*) ;; 126 *) ac_optarg=yes ;; 127 esac 128 eval "enable_${ac_feature}='$ac_optarg'" ;; 129 130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 132 | --exec | --exe | --ex) 133 ac_prev=exec_prefix ;; 134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 136 | --exec=* | --exe=* | --ex=*) 137 exec_prefix="$ac_optarg" ;; 138 139 -gas | --gas | --ga | --g) 140 # Obsolete; use --with-gas. 141 with_gas=yes ;; 142 143 -help | --help | --hel | --he) 144 # Omit some internal or obsolete options to make the list less imposing. 145 # This message is too long to be a string in the A/UX 3.1 sh. 146 cat << EOF 147Usage: configure [options] [host] 148Options: [defaults in brackets after descriptions] 149Configuration: 150 --cache-file=FILE cache test results in FILE 151 --help print this message 152 --no-create do not create output files 153 --quiet, --silent do not print \`checking...' messages 154 --version print the version of autoconf that created configure 155Directory and file names: 156 --prefix=PREFIX install architecture-independent files in PREFIX 157 [$ac_default_prefix] 158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 159 [same as prefix] 160 --bindir=DIR user executables in DIR [EPREFIX/bin] 161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 163 --datadir=DIR read-only architecture-independent data in DIR 164 [PREFIX/share] 165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 166 --sharedstatedir=DIR modifiable architecture-independent data in DIR 167 [PREFIX/com] 168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 169 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 170 --includedir=DIR C header files in DIR [PREFIX/include] 171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 172 --infodir=DIR info documentation in DIR [PREFIX/info] 173 --mandir=DIR man documentation in DIR [PREFIX/man] 174 --srcdir=DIR find the sources in DIR [configure dir or ..] 175 --program-prefix=PREFIX prepend PREFIX to installed program names 176 --program-suffix=SUFFIX append SUFFIX to installed program names 177 --program-transform-name=PROGRAM 178 run sed PROGRAM on installed program names 179EOF 180 cat << EOF 181Host type: 182 --build=BUILD configure for building on BUILD [BUILD=HOST] 183 --host=HOST configure for HOST [guessed] 184 --target=TARGET configure for TARGET [TARGET=HOST] 185Features and packages: 186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 190 --x-includes=DIR X include files are in DIR 191 --x-libraries=DIR X library files are in DIR 192EOF 193 if test -n "$ac_help"; then 194 echo "--enable and --with options recognized:$ac_help" 195 fi 196 exit 0 ;; 197 198 -host | --host | --hos | --ho) 199 ac_prev=host ;; 200 -host=* | --host=* | --hos=* | --ho=*) 201 host="$ac_optarg" ;; 202 203 -includedir | --includedir | --includedi | --included | --include \ 204 | --includ | --inclu | --incl | --inc) 205 ac_prev=includedir ;; 206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 207 | --includ=* | --inclu=* | --incl=* | --inc=*) 208 includedir="$ac_optarg" ;; 209 210 -infodir | --infodir | --infodi | --infod | --info | --inf) 211 ac_prev=infodir ;; 212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 213 infodir="$ac_optarg" ;; 214 215 -libdir | --libdir | --libdi | --libd) 216 ac_prev=libdir ;; 217 -libdir=* | --libdir=* | --libdi=* | --libd=*) 218 libdir="$ac_optarg" ;; 219 220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 221 | --libexe | --libex | --libe) 222 ac_prev=libexecdir ;; 223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 224 | --libexe=* | --libex=* | --libe=*) 225 libexecdir="$ac_optarg" ;; 226 227 -localstatedir | --localstatedir | --localstatedi | --localstated \ 228 | --localstate | --localstat | --localsta | --localst \ 229 | --locals | --local | --loca | --loc | --lo) 230 ac_prev=localstatedir ;; 231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 234 localstatedir="$ac_optarg" ;; 235 236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 237 ac_prev=mandir ;; 238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 239 mandir="$ac_optarg" ;; 240 241 -nfp | --nfp | --nf) 242 # Obsolete; use --without-fp. 243 with_fp=no ;; 244 245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 246 | --no-cr | --no-c) 247 no_create=yes ;; 248 249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 251 no_recursion=yes ;; 252 253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 255 | --oldin | --oldi | --old | --ol | --o) 256 ac_prev=oldincludedir ;; 257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 260 oldincludedir="$ac_optarg" ;; 261 262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 263 ac_prev=prefix ;; 264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 265 prefix="$ac_optarg" ;; 266 267 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 268 | --program-pre | --program-pr | --program-p) 269 ac_prev=program_prefix ;; 270 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 272 program_prefix="$ac_optarg" ;; 273 274 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 275 | --program-suf | --program-su | --program-s) 276 ac_prev=program_suffix ;; 277 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 279 program_suffix="$ac_optarg" ;; 280 281 -program-transform-name | --program-transform-name \ 282 | --program-transform-nam | --program-transform-na \ 283 | --program-transform-n | --program-transform- \ 284 | --program-transform | --program-transfor \ 285 | --program-transfo | --program-transf \ 286 | --program-trans | --program-tran \ 287 | --progr-tra | --program-tr | --program-t) 288 ac_prev=program_transform_name ;; 289 -program-transform-name=* | --program-transform-name=* \ 290 | --program-transform-nam=* | --program-transform-na=* \ 291 | --program-transform-n=* | --program-transform-=* \ 292 | --program-transform=* | --program-transfor=* \ 293 | --program-transfo=* | --program-transf=* \ 294 | --program-trans=* | --program-tran=* \ 295 | --progr-tra=* | --program-tr=* | --program-t=*) 296 program_transform_name="$ac_optarg" ;; 297 298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 299 | -silent | --silent | --silen | --sile | --sil) 300 silent=yes ;; 301 302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 303 ac_prev=sbindir ;; 304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 305 | --sbi=* | --sb=*) 306 sbindir="$ac_optarg" ;; 307 308 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 310 | --sharedst | --shareds | --shared | --share | --shar \ 311 | --sha | --sh) 312 ac_prev=sharedstatedir ;; 313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 316 | --sha=* | --sh=*) 317 sharedstatedir="$ac_optarg" ;; 318 319 -site | --site | --sit) 320 ac_prev=site ;; 321 -site=* | --site=* | --sit=*) 322 site="$ac_optarg" ;; 323 324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 325 ac_prev=srcdir ;; 326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 327 srcdir="$ac_optarg" ;; 328 329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 330 | --syscon | --sysco | --sysc | --sys | --sy) 331 ac_prev=sysconfdir ;; 332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 334 sysconfdir="$ac_optarg" ;; 335 336 -target | --target | --targe | --targ | --tar | --ta | --t) 337 ac_prev=target ;; 338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 339 target="$ac_optarg" ;; 340 341 -v | -verbose | --verbose | --verbos | --verbo | --verb) 342 verbose=yes ;; 343 344 -version | --version | --versio | --versi | --vers) 345 echo "configure generated by autoconf version 2.13" 346 exit 0 ;; 347 348 -with-* | --with-*) 349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 350 # Reject names that are not valid shell variable names. 351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 353 fi 354 ac_package=`echo $ac_package| sed 's/-/_/g'` 355 case "$ac_option" in 356 *=*) ;; 357 *) ac_optarg=yes ;; 358 esac 359 eval "with_${ac_package}='$ac_optarg'" ;; 360 361 -without-* | --without-*) 362 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 363 # Reject names that are not valid shell variable names. 364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 366 fi 367 ac_package=`echo $ac_package| sed 's/-/_/g'` 368 eval "with_${ac_package}=no" ;; 369 370 --x) 371 # Obsolete; use --with-x. 372 with_x=yes ;; 373 374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 375 | --x-incl | --x-inc | --x-in | --x-i) 376 ac_prev=x_includes ;; 377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 379 x_includes="$ac_optarg" ;; 380 381 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 383 ac_prev=x_libraries ;; 384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 386 x_libraries="$ac_optarg" ;; 387 388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 389 ;; 390 391 *) 392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 393 echo "configure: warning: $ac_option: invalid host type" 1>&2 394 fi 395 if test "x$nonopt" != xNONE; then 396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 397 fi 398 nonopt="$ac_option" 399 ;; 400 401 esac 402done 403 404if test -n "$ac_prev"; then 405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 406fi 407 408trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 409 410# File descriptor usage: 411# 0 standard input 412# 1 file creation 413# 2 errors and warnings 414# 3 some systems may open it to /dev/tty 415# 4 used on the Kubota Titan 416# 6 checking for... messages and results 417# 5 compiler messages saved in config.log 418if test "$silent" = yes; then 419 exec 6>/dev/null 420else 421 exec 6>&1 422fi 423exec 5>./config.log 424 425echo "\ 426This file contains any messages produced by compilers while 427running configure, to aid debugging if configure makes a mistake. 428" 1>&5 429 430# Strip out --no-create and --no-recursion so they do not pile up. 431# Also quote any args containing shell metacharacters. 432ac_configure_args= 433for ac_arg 434do 435 case "$ac_arg" in 436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 437 | --no-cr | --no-c) ;; 438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 441 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 442 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 443 esac 444done 445 446# NLS nuisances. 447# Only set these to C if already set. These must not be set unconditionally 448# because not all systems understand e.g. LANG=C (notably SCO). 449# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 450# Non-C LC_CTYPE values break the ctype check. 451if test "${LANG+set}" = set; then LANG=C; export LANG; fi 452if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 453if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 454if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 455 456# confdefs.h avoids OS command line length limits that DEFS can exceed. 457rm -rf conftest* confdefs.h 458# AIX cpp loses on an empty file, so make sure it contains at least a newline. 459echo > confdefs.h 460 461# A filename unique to this package, relative to the directory that 462# configure is in, which we can look for to find out if srcdir is correct. 463ac_unique_file= 464 465# Find the source files, if location was not specified. 466if test -z "$srcdir"; then 467 ac_srcdir_defaulted=yes 468 # Try the directory containing this script, then its parent. 469 ac_prog=$0 470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 472 srcdir=$ac_confdir 473 if test ! -r $srcdir/$ac_unique_file; then 474 srcdir=.. 475 fi 476else 477 ac_srcdir_defaulted=no 478fi 479if test ! -r $srcdir/$ac_unique_file; then 480 if test "$ac_srcdir_defaulted" = yes; then 481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 482 else 483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 484 fi 485fi 486srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 487 488# Prefer explicitly selected file to automatically selected ones. 489if test -z "$CONFIG_SITE"; then 490 if test "x$prefix" != xNONE; then 491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 492 else 493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 494 fi 495fi 496for ac_site_file in $CONFIG_SITE; do 497 if test -r "$ac_site_file"; then 498 echo "loading site script $ac_site_file" 499 . "$ac_site_file" 500 fi 501done 502 503if test -r "$cache_file"; then 504 echo "loading cache $cache_file" 505 . $cache_file 506else 507 echo "creating cache $cache_file" 508 > $cache_file 509fi 510 511ac_ext=c 512# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 513ac_cpp='$CPP $CPPFLAGS' 514ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 515ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 516cross_compiling=$ac_cv_prog_cc_cross 517 518ac_exeext= 519ac_objext=o 520if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 523 ac_n= ac_c=' 524' ac_t=' ' 525 else 526 ac_n=-n ac_c= ac_t= 527 fi 528else 529 ac_n= ac_c='\c' ac_t= 530fi 531 532 533 534# Extract the first word of "gcc", so it can be a program name with args. 535set dummy gcc; ac_word=$2 536echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 537echo "configure:538: checking for $ac_word" >&5 538if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 539 echo $ac_n "(cached) $ac_c" 1>&6 540else 541 if test -n "$CC"; then 542 ac_cv_prog_CC="$CC" # Let the user override the test. 543else 544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 545 ac_dummy="$PATH" 546 for ac_dir in $ac_dummy; do 547 test -z "$ac_dir" && ac_dir=. 548 if test -f $ac_dir/$ac_word; then 549 ac_cv_prog_CC="gcc" 550 break 551 fi 552 done 553 IFS="$ac_save_ifs" 554fi 555fi 556CC="$ac_cv_prog_CC" 557if test -n "$CC"; then 558 echo "$ac_t""$CC" 1>&6 559else 560 echo "$ac_t""no" 1>&6 561fi 562 563if test -z "$CC"; then 564 # Extract the first word of "cc", so it can be a program name with args. 565set dummy cc; ac_word=$2 566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 567echo "configure:568: checking for $ac_word" >&5 568if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 569 echo $ac_n "(cached) $ac_c" 1>&6 570else 571 if test -n "$CC"; then 572 ac_cv_prog_CC="$CC" # Let the user override the test. 573else 574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 575 ac_prog_rejected=no 576 ac_dummy="$PATH" 577 for ac_dir in $ac_dummy; do 578 test -z "$ac_dir" && ac_dir=. 579 if test -f $ac_dir/$ac_word; then 580 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 581 ac_prog_rejected=yes 582 continue 583 fi 584 ac_cv_prog_CC="cc" 585 break 586 fi 587 done 588 IFS="$ac_save_ifs" 589if test $ac_prog_rejected = yes; then 590 # We found a bogon in the path, so make sure we never use it. 591 set dummy $ac_cv_prog_CC 592 shift 593 if test $# -gt 0; then 594 # We chose a different compiler from the bogus one. 595 # However, it has the same basename, so the bogon will be chosen 596 # first if we set CC to just the basename; use the full file name. 597 shift 598 set dummy "$ac_dir/$ac_word" "$@" 599 shift 600 ac_cv_prog_CC="$@" 601 fi 602fi 603fi 604fi 605CC="$ac_cv_prog_CC" 606if test -n "$CC"; then 607 echo "$ac_t""$CC" 1>&6 608else 609 echo "$ac_t""no" 1>&6 610fi 611 612 if test -z "$CC"; then 613 case "`uname -s`" in 614 *win32* | *WIN32*) 615 # Extract the first word of "cl", so it can be a program name with args. 616set dummy cl; ac_word=$2 617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 618echo "configure:619: checking for $ac_word" >&5 619if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 620 echo $ac_n "(cached) $ac_c" 1>&6 621else 622 if test -n "$CC"; then 623 ac_cv_prog_CC="$CC" # Let the user override the test. 624else 625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 626 ac_dummy="$PATH" 627 for ac_dir in $ac_dummy; do 628 test -z "$ac_dir" && ac_dir=. 629 if test -f $ac_dir/$ac_word; then 630 ac_cv_prog_CC="cl" 631 break 632 fi 633 done 634 IFS="$ac_save_ifs" 635fi 636fi 637CC="$ac_cv_prog_CC" 638if test -n "$CC"; then 639 echo "$ac_t""$CC" 1>&6 640else 641 echo "$ac_t""no" 1>&6 642fi 643 ;; 644 esac 645 fi 646 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 647fi 648 649echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 650echo "configure:651: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 651 652ac_ext=c 653# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 654ac_cpp='$CPP $CPPFLAGS' 655ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 656ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 657cross_compiling=$ac_cv_prog_cc_cross 658 659cat > conftest.$ac_ext << EOF 660 661#line 662 "configure" 662#include "confdefs.h" 663 664main(){return(0);} 665EOF 666if { (eval echo configure:667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 667 ac_cv_prog_cc_works=yes 668 # If we can't run a trivial program, we are probably using a cross compiler. 669 if (./conftest; exit) 2>/dev/null; then 670 ac_cv_prog_cc_cross=no 671 else 672 ac_cv_prog_cc_cross=yes 673 fi 674else 675 echo "configure: failed program was:" >&5 676 cat conftest.$ac_ext >&5 677 ac_cv_prog_cc_works=no 678fi 679rm -fr conftest* 680ac_ext=c 681# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 682ac_cpp='$CPP $CPPFLAGS' 683ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 684ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 685cross_compiling=$ac_cv_prog_cc_cross 686 687echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 688if test $ac_cv_prog_cc_works = no; then 689 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 690fi 691echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 692echo "configure:693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 693echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 694cross_compiling=$ac_cv_prog_cc_cross 695 696echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 697echo "configure:698: checking whether we are using GNU C" >&5 698if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 699 echo $ac_n "(cached) $ac_c" 1>&6 700else 701 cat > conftest.c <<EOF 702#ifdef __GNUC__ 703 yes; 704#endif 705EOF 706if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 707 ac_cv_prog_gcc=yes 708else 709 ac_cv_prog_gcc=no 710fi 711fi 712 713echo "$ac_t""$ac_cv_prog_gcc" 1>&6 714 715if test $ac_cv_prog_gcc = yes; then 716 GCC=yes 717else 718 GCC= 719fi 720 721ac_test_CFLAGS="${CFLAGS+set}" 722ac_save_CFLAGS="$CFLAGS" 723CFLAGS= 724echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 725echo "configure:726: checking whether ${CC-cc} accepts -g" >&5 726if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 727 echo $ac_n "(cached) $ac_c" 1>&6 728else 729 echo 'void f(){}' > conftest.c 730if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 731 ac_cv_prog_cc_g=yes 732else 733 ac_cv_prog_cc_g=no 734fi 735rm -f conftest* 736 737fi 738 739echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 740if test "$ac_test_CFLAGS" = set; then 741 CFLAGS="$ac_save_CFLAGS" 742elif test $ac_cv_prog_cc_g = yes; then 743 if test "$GCC" = yes; then 744 CFLAGS="-g -O2" 745 else 746 CFLAGS="-g" 747 fi 748else 749 if test "$GCC" = yes; then 750 CFLAGS="-O2" 751 else 752 CFLAGS= 753 fi 754fi 755 756echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 757echo "configure:758: checking how to run the C preprocessor" >&5 758# On Suns, sometimes $CPP names a directory. 759if test -n "$CPP" && test -d "$CPP"; then 760 CPP= 761fi 762if test -z "$CPP"; then 763if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 764 echo $ac_n "(cached) $ac_c" 1>&6 765else 766 # This must be in double quotes, not single quotes, because CPP may get 767 # substituted into the Makefile and "${CC-cc}" will confuse make. 768 CPP="${CC-cc} -E" 769 # On the NeXT, cc -E runs the code through the compiler's parser, 770 # not just through cpp. 771 cat > conftest.$ac_ext <<EOF 772#line 773 "configure" 773#include "confdefs.h" 774#include <assert.h> 775Syntax Error 776EOF 777ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 778{ (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 779ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 780if test -z "$ac_err"; then 781 : 782else 783 echo "$ac_err" >&5 784 echo "configure: failed program was:" >&5 785 cat conftest.$ac_ext >&5 786 rm -rf conftest* 787 CPP="${CC-cc} -E -traditional-cpp" 788 cat > conftest.$ac_ext <<EOF 789#line 790 "configure" 790#include "confdefs.h" 791#include <assert.h> 792Syntax Error 793EOF 794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 795{ (eval echo configure:796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 797if test -z "$ac_err"; then 798 : 799else 800 echo "$ac_err" >&5 801 echo "configure: failed program was:" >&5 802 cat conftest.$ac_ext >&5 803 rm -rf conftest* 804 CPP="${CC-cc} -nologo -E" 805 cat > conftest.$ac_ext <<EOF 806#line 807 "configure" 807#include "confdefs.h" 808#include <assert.h> 809Syntax Error 810EOF 811ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 812{ (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 813ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 814if test -z "$ac_err"; then 815 : 816else 817 echo "$ac_err" >&5 818 echo "configure: failed program was:" >&5 819 cat conftest.$ac_ext >&5 820 rm -rf conftest* 821 CPP=/lib/cpp 822fi 823rm -f conftest* 824fi 825rm -f conftest* 826fi 827rm -f conftest* 828 ac_cv_prog_CPP="$CPP" 829fi 830 CPP="$ac_cv_prog_CPP" 831else 832 ac_cv_prog_CPP="$CPP" 833fi 834echo "$ac_t""$CPP" 1>&6 835 836echo $ac_n "checking for AIX""... $ac_c" 1>&6 837echo "configure:838: checking for AIX" >&5 838cat > conftest.$ac_ext <<EOF 839#line 840 "configure" 840#include "confdefs.h" 841#ifdef _AIX 842 yes 843#endif 844 845EOF 846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 847 egrep "yes" >/dev/null 2>&1; then 848 rm -rf conftest* 849 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 850#define _ALL_SOURCE 1 851EOF 852 853else 854 rm -rf conftest* 855 echo "$ac_t""no" 1>&6 856fi 857rm -f conftest* 858 859 860ac_aux_dir= 861for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 862 if test -f $ac_dir/install-sh; then 863 ac_aux_dir=$ac_dir 864 ac_install_sh="$ac_aux_dir/install-sh -c" 865 break 866 elif test -f $ac_dir/install.sh; then 867 ac_aux_dir=$ac_dir 868 ac_install_sh="$ac_aux_dir/install.sh -c" 869 break 870 fi 871done 872if test -z "$ac_aux_dir"; then 873 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 874fi 875ac_config_guess=$ac_aux_dir/config.guess 876ac_config_sub=$ac_aux_dir/config.sub 877ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 878 879# Find a good install program. We prefer a C program (faster), 880# so one script is as good as another. But avoid the broken or 881# incompatible versions: 882# SysV /etc/install, /usr/sbin/install 883# SunOS /usr/etc/install 884# IRIX /sbin/install 885# AIX /bin/install 886# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 887# AFS /usr/afsws/bin/install, which mishandles nonexistent args 888# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 889# ./install, which can be erroneously created by make from ./install.sh. 890echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 891echo "configure:892: checking for a BSD compatible install" >&5 892if test -z "$INSTALL"; then 893if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 894 echo $ac_n "(cached) $ac_c" 1>&6 895else 896 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 897 for ac_dir in $PATH; do 898 # Account for people who put trailing slashes in PATH elements. 899 case "$ac_dir/" in 900 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 901 *) 902 # OSF1 and SCO ODT 3.0 have their own names for install. 903 # Don't use installbsd from OSF since it installs stuff as root 904 # by default. 905 for ac_prog in ginstall scoinst install; do 906 if test -f $ac_dir/$ac_prog; then 907 if test $ac_prog = install && 908 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 909 # AIX install. It has an incompatible calling convention. 910 : 911 else 912 ac_cv_path_install="$ac_dir/$ac_prog -c" 913 break 2 914 fi 915 fi 916 done 917 ;; 918 esac 919 done 920 IFS="$ac_save_IFS" 921 922fi 923 if test "${ac_cv_path_install+set}" = set; then 924 INSTALL="$ac_cv_path_install" 925 else 926 # As a last resort, use the slow shell script. We don't cache a 927 # path for INSTALL within a source directory, because that will 928 # break other packages using the cache if that directory is 929 # removed, or if the path is relative. 930 INSTALL="$ac_install_sh" 931 fi 932fi 933echo "$ac_t""$INSTALL" 1>&6 934 935# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 936# It thinks the first close brace ends the variable substitution. 937test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 938 939test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 940 941test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 942 943 944 945LIBS="" 946 947echo $ac_n "checking for getusershell in -lc""... $ac_c" 1>&6 948echo "configure:949: checking for getusershell in -lc" >&5 949ac_lib_var=`echo c'_'getusershell | sed 'y%./+-%__p_%'` 950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 951 echo $ac_n "(cached) $ac_c" 1>&6 952else 953 ac_save_LIBS="$LIBS" 954LIBS="-lc $LIBS" 955cat > conftest.$ac_ext <<EOF 956#line 957 "configure" 957#include "confdefs.h" 958/* Override any gcc2 internal prototype to avoid an error. */ 959/* We use char because int might match the return type of a gcc2 960 builtin and then its argument prototype would still apply. */ 961char getusershell(); 962 963int main() { 964getusershell() 965; return 0; } 966EOF 967if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 968 rm -rf conftest* 969 eval "ac_cv_lib_$ac_lib_var=yes" 970else 971 echo "configure: failed program was:" >&5 972 cat conftest.$ac_ext >&5 973 rm -rf conftest* 974 eval "ac_cv_lib_$ac_lib_var=no" 975fi 976rm -f conftest* 977LIBS="$ac_save_LIBS" 978 979fi 980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 981 echo "$ac_t""yes" 1>&6 982 result=yes 983else 984 echo "$ac_t""no" 1>&6 985result=no 986fi 987 988if test "$result" = "yes"; then 989 cat >> confdefs.h <<\EOF 990#define HAVE_GETUSERSHELL 1 991EOF 992 993fi 994 995echo $ac_n "checking for inet_ntoa in -lc""... $ac_c" 1>&6 996echo "configure:997: checking for inet_ntoa in -lc" >&5 997ac_lib_var=`echo c'_'inet_ntoa | sed 'y%./+-%__p_%'` 998if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 999 echo $ac_n "(cached) $ac_c" 1>&6 1000else 1001 ac_save_LIBS="$LIBS" 1002LIBS="-lc $LIBS" 1003cat > conftest.$ac_ext <<EOF 1004#line 1005 "configure" 1005#include "confdefs.h" 1006/* Override any gcc2 internal prototype to avoid an error. */ 1007/* We use char because int might match the return type of a gcc2 1008 builtin and then its argument prototype would still apply. */ 1009char inet_ntoa(); 1010 1011int main() { 1012inet_ntoa() 1013; return 0; } 1014EOF 1015if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1016 rm -rf conftest* 1017 eval "ac_cv_lib_$ac_lib_var=yes" 1018else 1019 echo "configure: failed program was:" >&5 1020 cat conftest.$ac_ext >&5 1021 rm -rf conftest* 1022 eval "ac_cv_lib_$ac_lib_var=no" 1023fi 1024rm -f conftest* 1025LIBS="$ac_save_LIBS" 1026 1027fi 1028if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1029 echo "$ac_t""yes" 1>&6 1030 result=yes 1031else 1032 echo "$ac_t""no" 1>&6 1033result=no 1034fi 1035 1036if test "$result" = "no"; then 1037echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 1038echo "configure:1039: checking for inet_ntoa in -lnsl" >&5 1039ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` 1040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1041 echo $ac_n "(cached) $ac_c" 1>&6 1042else 1043 ac_save_LIBS="$LIBS" 1044LIBS="-lnsl $LIBS" 1045cat > conftest.$ac_ext <<EOF 1046#line 1047 "configure" 1047#include "confdefs.h" 1048/* Override any gcc2 internal prototype to avoid an error. */ 1049/* We use char because int might match the return type of a gcc2 1050 builtin and then its argument prototype would still apply. */ 1051char inet_ntoa(); 1052 1053int main() { 1054inet_ntoa() 1055; return 0; } 1056EOF 1057if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1058 rm -rf conftest* 1059 eval "ac_cv_lib_$ac_lib_var=yes" 1060else 1061 echo "configure: failed program was:" >&5 1062 cat conftest.$ac_ext >&5 1063 rm -rf conftest* 1064 eval "ac_cv_lib_$ac_lib_var=no" 1065fi 1066rm -f conftest* 1067LIBS="$ac_save_LIBS" 1068 1069fi 1070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1071 echo "$ac_t""yes" 1>&6 1072 result=yes 1073else 1074 echo "$ac_t""no" 1>&6 1075result=no 1076fi 1077 1078if test "$result" = "yes"; then 1079 LIBS="$LIBS -lnsl" 1080fi 1081fi 1082echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 1083echo "configure:1084: checking for socket in -lsocket" >&5 1084ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 1085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1086 echo $ac_n "(cached) $ac_c" 1>&6 1087else 1088 ac_save_LIBS="$LIBS" 1089LIBS="-lsocket $LIBS" 1090cat > conftest.$ac_ext <<EOF 1091#line 1092 "configure" 1092#include "confdefs.h" 1093/* Override any gcc2 internal prototype to avoid an error. */ 1094/* We use char because int might match the return type of a gcc2 1095 builtin and then its argument prototype would still apply. */ 1096char socket(); 1097 1098int main() { 1099socket() 1100; return 0; } 1101EOF 1102if { (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1103 rm -rf conftest* 1104 eval "ac_cv_lib_$ac_lib_var=yes" 1105else 1106 echo "configure: failed program was:" >&5 1107 cat conftest.$ac_ext >&5 1108 rm -rf conftest* 1109 eval "ac_cv_lib_$ac_lib_var=no" 1110fi 1111rm -f conftest* 1112LIBS="$ac_save_LIBS" 1113 1114fi 1115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1116 echo "$ac_t""yes" 1>&6 1117 result=yes 1118else 1119 echo "$ac_t""no" 1>&6 1120result=no 1121fi 1122 1123if test "$result" = "yes"; then 1124 LIBS="$LIBS -lsocket" 1125else 1126 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 1127echo "configure:1128: checking for connect in -lsocket" >&5 1128ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 1129if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1130 echo $ac_n "(cached) $ac_c" 1>&6 1131else 1132 ac_save_LIBS="$LIBS" 1133LIBS="-lsocket $LIBS" 1134cat > conftest.$ac_ext <<EOF 1135#line 1136 "configure" 1136#include "confdefs.h" 1137/* Override any gcc2 internal prototype to avoid an error. */ 1138/* We use char because int might match the return type of a gcc2 1139 builtin and then its argument prototype would still apply. */ 1140char connect(); 1141 1142int main() { 1143connect() 1144; return 0; } 1145EOF 1146if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1147 rm -rf conftest* 1148 eval "ac_cv_lib_$ac_lib_var=yes" 1149else 1150 echo "configure: failed program was:" >&5 1151 cat conftest.$ac_ext >&5 1152 rm -rf conftest* 1153 eval "ac_cv_lib_$ac_lib_var=no" 1154fi 1155rm -f conftest* 1156LIBS="$ac_save_LIBS" 1157 1158fi 1159if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1160 echo "$ac_t""yes" 1>&6 1161 result=yes 1162else 1163 echo "$ac_t""no" 1>&6 1164result=no 1165fi 1166 1167 if test "$result" = "yes"; then 1168 LIBS="$LIBS -lsocket" 1169 fi 1170fi 1171 1172echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 1173echo "configure:1174: checking for crypt in -lcrypt" >&5 1174ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 1175if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1176 echo $ac_n "(cached) $ac_c" 1>&6 1177else 1178 ac_save_LIBS="$LIBS" 1179LIBS="-lcrypt $LIBS" 1180cat > conftest.$ac_ext <<EOF 1181#line 1182 "configure" 1182#include "confdefs.h" 1183/* Override any gcc2 internal prototype to avoid an error. */ 1184/* We use char because int might match the return type of a gcc2 1185 builtin and then its argument prototype would still apply. */ 1186char crypt(); 1187 1188int main() { 1189crypt() 1190; return 0; } 1191EOF 1192if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1193 rm -rf conftest* 1194 eval "ac_cv_lib_$ac_lib_var=yes" 1195else 1196 echo "configure: failed program was:" >&5 1197 cat conftest.$ac_ext >&5 1198 rm -rf conftest* 1199 eval "ac_cv_lib_$ac_lib_var=no" 1200fi 1201rm -f conftest* 1202LIBS="$ac_save_LIBS" 1203 1204fi 1205if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1206 echo "$ac_t""yes" 1>&6 1207 result=yes 1208else 1209 echo "$ac_t""no" 1>&6 1210result=no 1211fi 1212 1213if test "$result" = "yes"; then 1214 LIBS="$LIBS -lcrypt" 1215fi 1216 1217ac_header_dirent=no 1218for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1219do 1220ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1221echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1222echo "configure:1223: checking for $ac_hdr that defines DIR" >&5 1223if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1224 echo $ac_n "(cached) $ac_c" 1>&6 1225else 1226 cat > conftest.$ac_ext <<EOF 1227#line 1228 "configure" 1228#include "confdefs.h" 1229#include <sys/types.h> 1230#include <$ac_hdr> 1231int main() { 1232DIR *dirp = 0; 1233; return 0; } 1234EOF 1235if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1236 rm -rf conftest* 1237 eval "ac_cv_header_dirent_$ac_safe=yes" 1238else 1239 echo "configure: failed program was:" >&5 1240 cat conftest.$ac_ext >&5 1241 rm -rf conftest* 1242 eval "ac_cv_header_dirent_$ac_safe=no" 1243fi 1244rm -f conftest* 1245fi 1246if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1247 echo "$ac_t""yes" 1>&6 1248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1249 cat >> confdefs.h <<EOF 1250#define $ac_tr_hdr 1 1251EOF 1252 ac_header_dirent=$ac_hdr; break 1253else 1254 echo "$ac_t""no" 1>&6 1255fi 1256done 1257# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1258if test $ac_header_dirent = dirent.h; then 1259echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1260echo "configure:1261: checking for opendir in -ldir" >&5 1261ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1262if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1263 echo $ac_n "(cached) $ac_c" 1>&6 1264else 1265 ac_save_LIBS="$LIBS" 1266LIBS="-ldir $LIBS" 1267cat > conftest.$ac_ext <<EOF 1268#line 1269 "configure" 1269#include "confdefs.h" 1270/* Override any gcc2 internal prototype to avoid an error. */ 1271/* We use char because int might match the return type of a gcc2 1272 builtin and then its argument prototype would still apply. */ 1273char opendir(); 1274 1275int main() { 1276opendir() 1277; return 0; } 1278EOF 1279if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1280 rm -rf conftest* 1281 eval "ac_cv_lib_$ac_lib_var=yes" 1282else 1283 echo "configure: failed program was:" >&5 1284 cat conftest.$ac_ext >&5 1285 rm -rf conftest* 1286 eval "ac_cv_lib_$ac_lib_var=no" 1287fi 1288rm -f conftest* 1289LIBS="$ac_save_LIBS" 1290 1291fi 1292if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1293 echo "$ac_t""yes" 1>&6 1294 LIBS="$LIBS -ldir" 1295else 1296 echo "$ac_t""no" 1>&6 1297fi 1298 1299else 1300echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1301echo "configure:1302: checking for opendir in -lx" >&5 1302ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1304 echo $ac_n "(cached) $ac_c" 1>&6 1305else 1306 ac_save_LIBS="$LIBS" 1307LIBS="-lx $LIBS" 1308cat > conftest.$ac_ext <<EOF 1309#line 1310 "configure" 1310#include "confdefs.h" 1311/* Override any gcc2 internal prototype to avoid an error. */ 1312/* We use char because int might match the return type of a gcc2 1313 builtin and then its argument prototype would still apply. */ 1314char opendir(); 1315 1316int main() { 1317opendir() 1318; return 0; } 1319EOF 1320if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1321 rm -rf conftest* 1322 eval "ac_cv_lib_$ac_lib_var=yes" 1323else 1324 echo "configure: failed program was:" >&5 1325 cat conftest.$ac_ext >&5 1326 rm -rf conftest* 1327 eval "ac_cv_lib_$ac_lib_var=no" 1328fi 1329rm -f conftest* 1330LIBS="$ac_save_LIBS" 1331 1332fi 1333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1334 echo "$ac_t""yes" 1>&6 1335 LIBS="$LIBS -lx" 1336else 1337 echo "$ac_t""no" 1>&6 1338fi 1339 1340fi 1341 1342for ac_hdr in paths.h 1343do 1344ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1345echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1346echo "configure:1347: checking for $ac_hdr" >&5 1347if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1348 echo $ac_n "(cached) $ac_c" 1>&6 1349else 1350 cat > conftest.$ac_ext <<EOF 1351#line 1352 "configure" 1352#include "confdefs.h" 1353#include <$ac_hdr> 1354EOF 1355ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1356{ (eval echo configure:1357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1357ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1358if test -z "$ac_err"; then 1359 rm -rf conftest* 1360 eval "ac_cv_header_$ac_safe=yes" 1361else 1362 echo "$ac_err" >&5 1363 echo "configure: failed program was:" >&5 1364 cat conftest.$ac_ext >&5 1365 rm -rf conftest* 1366 eval "ac_cv_header_$ac_safe=no" 1367fi 1368rm -f conftest* 1369fi 1370if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1371 echo "$ac_t""yes" 1>&6 1372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1373 cat >> confdefs.h <<EOF 1374#define $ac_tr_hdr 1 1375EOF 1376 1377else 1378 echo "$ac_t""no" 1>&6 1379fi 1380done 1381 1382for ac_hdr in netinet/in.h 1383do 1384ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1385echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1386echo "configure:1387: checking for $ac_hdr" >&5 1387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1388 echo $ac_n "(cached) $ac_c" 1>&6 1389else 1390 cat > conftest.$ac_ext <<EOF 1391#line 1392 "configure" 1392#include "confdefs.h" 1393#include <$ac_hdr> 1394EOF 1395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1396{ (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1398if test -z "$ac_err"; then 1399 rm -rf conftest* 1400 eval "ac_cv_header_$ac_safe=yes" 1401else 1402 echo "$ac_err" >&5 1403 echo "configure: failed program was:" >&5 1404 cat conftest.$ac_ext >&5 1405 rm -rf conftest* 1406 eval "ac_cv_header_$ac_safe=no" 1407fi 1408rm -f conftest* 1409fi 1410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1411 echo "$ac_t""yes" 1>&6 1412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1413 cat >> confdefs.h <<EOF 1414#define $ac_tr_hdr 1 1415EOF 1416 1417else 1418 echo "$ac_t""no" 1>&6 1419fi 1420done 1421 1422for ac_hdr in sys/time.h 1423do 1424ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1425echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1426echo "configure:1427: checking for $ac_hdr" >&5 1427if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1428 echo $ac_n "(cached) $ac_c" 1>&6 1429else 1430 cat > conftest.$ac_ext <<EOF 1431#line 1432 "configure" 1432#include "confdefs.h" 1433#include <$ac_hdr> 1434EOF 1435ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1436{ (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1437ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1438if test -z "$ac_err"; then 1439 rm -rf conftest* 1440 eval "ac_cv_header_$ac_safe=yes" 1441else 1442 echo "$ac_err" >&5 1443 echo "configure: failed program was:" >&5 1444 cat conftest.$ac_ext >&5 1445 rm -rf conftest* 1446 eval "ac_cv_header_$ac_safe=no" 1447fi 1448rm -f conftest* 1449fi 1450if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1451 echo "$ac_t""yes" 1>&6 1452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1453 cat >> confdefs.h <<EOF 1454#define $ac_tr_hdr 1 1455EOF 1456 1457else 1458 echo "$ac_t""no" 1>&6 1459fi 1460done 1461 1462for ac_hdr in time.h 1463do 1464ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1465echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1466echo "configure:1467: checking for $ac_hdr" >&5 1467if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1468 echo $ac_n "(cached) $ac_c" 1>&6 1469else 1470 cat > conftest.$ac_ext <<EOF 1471#line 1472 "configure" 1472#include "confdefs.h" 1473#include <$ac_hdr> 1474EOF 1475ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1476{ (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1477ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1478if test -z "$ac_err"; then 1479 rm -rf conftest* 1480 eval "ac_cv_header_$ac_safe=yes" 1481else 1482 echo "$ac_err" >&5 1483 echo "configure: failed program was:" >&5 1484 cat conftest.$ac_ext >&5 1485 rm -rf conftest* 1486 eval "ac_cv_header_$ac_safe=no" 1487fi 1488rm -f conftest* 1489fi 1490if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1491 echo "$ac_t""yes" 1>&6 1492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1493 cat >> confdefs.h <<EOF 1494#define $ac_tr_hdr 1 1495EOF 1496 1497else 1498 echo "$ac_t""no" 1>&6 1499fi 1500done 1501 1502for ac_hdr in sys/types.h 1503do 1504ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1505echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1506echo "configure:1507: checking for $ac_hdr" >&5 1507if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1508 echo $ac_n "(cached) $ac_c" 1>&6 1509else 1510 cat > conftest.$ac_ext <<EOF 1511#line 1512 "configure" 1512#include "confdefs.h" 1513#include <$ac_hdr> 1514EOF 1515ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1516{ (eval echo configure:1517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1517ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1518if test -z "$ac_err"; then 1519 rm -rf conftest* 1520 eval "ac_cv_header_$ac_safe=yes" 1521else 1522 echo "$ac_err" >&5 1523 echo "configure: failed program was:" >&5 1524 cat conftest.$ac_ext >&5 1525 rm -rf conftest* 1526 eval "ac_cv_header_$ac_safe=no" 1527fi 1528rm -f conftest* 1529fi 1530if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1531 echo "$ac_t""yes" 1>&6 1532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1533 cat >> confdefs.h <<EOF 1534#define $ac_tr_hdr 1 1535EOF 1536 1537else 1538 echo "$ac_t""no" 1>&6 1539fi 1540done 1541 1542for ac_hdr in sys/stat.h 1543do 1544ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1545echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1546echo "configure:1547: checking for $ac_hdr" >&5 1547if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1548 echo $ac_n "(cached) $ac_c" 1>&6 1549else 1550 cat > conftest.$ac_ext <<EOF 1551#line 1552 "configure" 1552#include "confdefs.h" 1553#include <$ac_hdr> 1554EOF 1555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1556{ (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1557ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1558if test -z "$ac_err"; then 1559 rm -rf conftest* 1560 eval "ac_cv_header_$ac_safe=yes" 1561else 1562 echo "$ac_err" >&5 1563 echo "configure: failed program was:" >&5 1564 cat conftest.$ac_ext >&5 1565 rm -rf conftest* 1566 eval "ac_cv_header_$ac_safe=no" 1567fi 1568rm -f conftest* 1569fi 1570if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1571 echo "$ac_t""yes" 1>&6 1572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1573 cat >> confdefs.h <<EOF 1574#define $ac_tr_hdr 1 1575EOF 1576 1577else 1578 echo "$ac_t""no" 1>&6 1579fi 1580done 1581 1582for ac_hdr in sys/socket.h 1583do 1584ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1585echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1586echo "configure:1587: checking for $ac_hdr" >&5 1587if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1588 echo $ac_n "(cached) $ac_c" 1>&6 1589else 1590 cat > conftest.$ac_ext <<EOF 1591#line 1592 "configure" 1592#include "confdefs.h" 1593#include <$ac_hdr> 1594EOF 1595ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1596{ (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1597ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1598if test -z "$ac_err"; then 1599 rm -rf conftest* 1600 eval "ac_cv_header_$ac_safe=yes" 1601else 1602 echo "$ac_err" >&5 1603 echo "configure: failed program was:" >&5 1604 cat conftest.$ac_ext >&5 1605 rm -rf conftest* 1606 eval "ac_cv_header_$ac_safe=no" 1607fi 1608rm -f conftest* 1609fi 1610if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1611 echo "$ac_t""yes" 1>&6 1612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1613 cat >> confdefs.h <<EOF 1614#define $ac_tr_hdr 1 1615EOF 1616 1617else 1618 echo "$ac_t""no" 1>&6 1619fi 1620done 1621 1622for ac_hdr in asm/socket.h 1623do 1624ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1625echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1626echo "configure:1627: checking for $ac_hdr" >&5 1627if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1628 echo $ac_n "(cached) $ac_c" 1>&6 1629else 1630 cat > conftest.$ac_ext <<EOF 1631#line 1632 "configure" 1632#include "confdefs.h" 1633#include <$ac_hdr> 1634EOF 1635ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1636{ (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1637ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1638if test -z "$ac_err"; then 1639 rm -rf conftest* 1640 eval "ac_cv_header_$ac_safe=yes" 1641else 1642 echo "$ac_err" >&5 1643 echo "configure: failed program was:" >&5 1644 cat conftest.$ac_ext >&5 1645 rm -rf conftest* 1646 eval "ac_cv_header_$ac_safe=no" 1647fi 1648rm -f conftest* 1649fi 1650if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1651 echo "$ac_t""yes" 1>&6 1652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1653 cat >> confdefs.h <<EOF 1654#define $ac_tr_hdr 1 1655EOF 1656 1657else 1658 echo "$ac_t""no" 1>&6 1659fi 1660done 1661 1662for ac_hdr in wait.h 1663do 1664ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1665echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1666echo "configure:1667: checking for $ac_hdr" >&5 1667if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1668 echo $ac_n "(cached) $ac_c" 1>&6 1669else 1670 cat > conftest.$ac_ext <<EOF 1671#line 1672 "configure" 1672#include "confdefs.h" 1673#include <$ac_hdr> 1674EOF 1675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1676{ (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1678if test -z "$ac_err"; then 1679 rm -rf conftest* 1680 eval "ac_cv_header_$ac_safe=yes" 1681else 1682 echo "$ac_err" >&5 1683 echo "configure: failed program was:" >&5 1684 cat conftest.$ac_ext >&5 1685 rm -rf conftest* 1686 eval "ac_cv_header_$ac_safe=no" 1687fi 1688rm -f conftest* 1689fi 1690if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1691 echo "$ac_t""yes" 1>&6 1692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1693 cat >> confdefs.h <<EOF 1694#define $ac_tr_hdr 1 1695EOF 1696 1697else 1698 echo "$ac_t""no" 1>&6 1699fi 1700done 1701 1702for ac_hdr in sys/wait.h 1703do 1704ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1705echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1706echo "configure:1707: checking for $ac_hdr" >&5 1707if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1708 echo $ac_n "(cached) $ac_c" 1>&6 1709else 1710 cat > conftest.$ac_ext <<EOF 1711#line 1712 "configure" 1712#include "confdefs.h" 1713#include <$ac_hdr> 1714EOF 1715ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1716{ (eval echo configure:1717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1717ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1718if test -z "$ac_err"; then 1719 rm -rf conftest* 1720 eval "ac_cv_header_$ac_safe=yes" 1721else 1722 echo "$ac_err" >&5 1723 echo "configure: failed program was:" >&5 1724 cat conftest.$ac_ext >&5 1725 rm -rf conftest* 1726 eval "ac_cv_header_$ac_safe=no" 1727fi 1728rm -f conftest* 1729fi 1730if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1731 echo "$ac_t""yes" 1>&6 1732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1733 cat >> confdefs.h <<EOF 1734#define $ac_tr_hdr 1 1735EOF 1736 1737else 1738 echo "$ac_t""no" 1>&6 1739fi 1740done 1741 1742for ac_hdr in shadow.h 1743do 1744ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1745echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1746echo "configure:1747: checking for $ac_hdr" >&5 1747if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1748 echo $ac_n "(cached) $ac_c" 1>&6 1749else 1750 cat > conftest.$ac_ext <<EOF 1751#line 1752 "configure" 1752#include "confdefs.h" 1753#include <$ac_hdr> 1754EOF 1755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1756{ (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1757ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1758if test -z "$ac_err"; then 1759 rm -rf conftest* 1760 eval "ac_cv_header_$ac_safe=yes" 1761else 1762 echo "$ac_err" >&5 1763 echo "configure: failed program was:" >&5 1764 cat conftest.$ac_ext >&5 1765 rm -rf conftest* 1766 eval "ac_cv_header_$ac_safe=no" 1767fi 1768rm -f conftest* 1769fi 1770if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1771 echo "$ac_t""yes" 1>&6 1772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1773 cat >> confdefs.h <<EOF 1774#define $ac_tr_hdr 1 1775EOF 1776 1777else 1778 echo "$ac_t""no" 1>&6 1779fi 1780done 1781 1782for ac_hdr in arpa/inet.h 1783do 1784ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1785echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1786echo "configure:1787: checking for $ac_hdr" >&5 1787if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1788 echo $ac_n "(cached) $ac_c" 1>&6 1789else 1790 cat > conftest.$ac_ext <<EOF 1791#line 1792 "configure" 1792#include "confdefs.h" 1793#include <$ac_hdr> 1794EOF 1795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1796{ (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1798if test -z "$ac_err"; then 1799 rm -rf conftest* 1800 eval "ac_cv_header_$ac_safe=yes" 1801else 1802 echo "$ac_err" >&5 1803 echo "configure: failed program was:" >&5 1804 cat conftest.$ac_ext >&5 1805 rm -rf conftest* 1806 eval "ac_cv_header_$ac_safe=no" 1807fi 1808rm -f conftest* 1809fi 1810if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1811 echo "$ac_t""yes" 1>&6 1812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1813 cat >> confdefs.h <<EOF 1814#define $ac_tr_hdr 1 1815EOF 1816 1817else 1818 echo "$ac_t""no" 1>&6 1819fi 1820done 1821 1822for ac_hdr in syslog.h 1823do 1824ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1825echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1826echo "configure:1827: checking for $ac_hdr" >&5 1827if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1828 echo $ac_n "(cached) $ac_c" 1>&6 1829else 1830 cat > conftest.$ac_ext <<EOF 1831#line 1832 "configure" 1832#include "confdefs.h" 1833#include <$ac_hdr> 1834EOF 1835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1836{ (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1838if test -z "$ac_err"; then 1839 rm -rf conftest* 1840 eval "ac_cv_header_$ac_safe=yes" 1841else 1842 echo "$ac_err" >&5 1843 echo "configure: failed program was:" >&5 1844 cat conftest.$ac_ext >&5 1845 rm -rf conftest* 1846 eval "ac_cv_header_$ac_safe=no" 1847fi 1848rm -f conftest* 1849fi 1850if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1851 echo "$ac_t""yes" 1>&6 1852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1853 cat >> confdefs.h <<EOF 1854#define $ac_tr_hdr 1 1855EOF 1856 1857else 1858 echo "$ac_t""no" 1>&6 1859fi 1860done 1861 1862for ac_hdr in crypt.h 1863do 1864ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1865echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1866echo "configure:1867: checking for $ac_hdr" >&5 1867if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1868 echo $ac_n "(cached) $ac_c" 1>&6 1869else 1870 cat > conftest.$ac_ext <<EOF 1871#line 1872 "configure" 1872#include "confdefs.h" 1873#include <$ac_hdr> 1874EOF 1875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1876{ (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1877ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1878if test -z "$ac_err"; then 1879 rm -rf conftest* 1880 eval "ac_cv_header_$ac_safe=yes" 1881else 1882 echo "$ac_err" >&5 1883 echo "configure: failed program was:" >&5 1884 cat conftest.$ac_ext >&5 1885 rm -rf conftest* 1886 eval "ac_cv_header_$ac_safe=no" 1887fi 1888rm -f conftest* 1889fi 1890if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1891 echo "$ac_t""yes" 1>&6 1892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1893 cat >> confdefs.h <<EOF 1894#define $ac_tr_hdr 1 1895EOF 1896 1897else 1898 echo "$ac_t""no" 1>&6 1899fi 1900done 1901 1902for ac_hdr in utmp.h 1903do 1904ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1905echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1906echo "configure:1907: checking for $ac_hdr" >&5 1907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1908 echo $ac_n "(cached) $ac_c" 1>&6 1909else 1910 cat > conftest.$ac_ext <<EOF 1911#line 1912 "configure" 1912#include "confdefs.h" 1913#include <$ac_hdr> 1914EOF 1915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1916{ (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1918if test -z "$ac_err"; then 1919 rm -rf conftest* 1920 eval "ac_cv_header_$ac_safe=yes" 1921else 1922 echo "$ac_err" >&5 1923 echo "configure: failed program was:" >&5 1924 cat conftest.$ac_ext >&5 1925 rm -rf conftest* 1926 eval "ac_cv_header_$ac_safe=no" 1927fi 1928rm -f conftest* 1929fi 1930if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1931 echo "$ac_t""yes" 1>&6 1932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1933 cat >> confdefs.h <<EOF 1934#define $ac_tr_hdr 1 1935EOF 1936 1937else 1938 echo "$ac_t""no" 1>&6 1939fi 1940done 1941 1942for ac_hdr in sys/sendfile.h 1943do 1944ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1945echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1946echo "configure:1947: checking for $ac_hdr" >&5 1947if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1948 echo $ac_n "(cached) $ac_c" 1>&6 1949else 1950 cat > conftest.$ac_ext <<EOF 1951#line 1952 "configure" 1952#include "confdefs.h" 1953#include <$ac_hdr> 1954EOF 1955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1956{ (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1958if test -z "$ac_err"; then 1959 rm -rf conftest* 1960 eval "ac_cv_header_$ac_safe=yes" 1961else 1962 echo "$ac_err" >&5 1963 echo "configure: failed program was:" >&5 1964 cat conftest.$ac_ext >&5 1965 rm -rf conftest* 1966 eval "ac_cv_header_$ac_safe=no" 1967fi 1968rm -f conftest* 1969fi 1970if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1971 echo "$ac_t""yes" 1>&6 1972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1973 cat >> confdefs.h <<EOF 1974#define $ac_tr_hdr 1 1975EOF 1976 1977else 1978 echo "$ac_t""no" 1>&6 1979fi 1980done 1981 1982 1983 1984 1985 1986 1987 1988echo $ac_n "checking whether to enable pam""... $ac_c" 1>&6 1989echo "configure:1990: checking whether to enable pam" >&5 1990# Check whether --enable-pam or --disable-pam was given. 1991if test "${enable_pam+set}" = set; then 1992 enableval="$enable_pam" 1993 result=yes 1994else 1995 result=no 1996fi 1997 1998if test "$result" = "yes"; then 1999 cat >> confdefs.h <<\EOF 2000#define WANT_PAM 1 2001EOF 2002 2003fi 2004echo "$ac_t""$result" 1>&6 2005 2006if test "$result" = "yes"; then 2007 LIBS="$LIBS -lpam -ldl" 2008 for ac_hdr in security/pam_appl.h 2009do 2010ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2011echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2012echo "configure:2013: checking for $ac_hdr" >&5 2013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2014 echo $ac_n "(cached) $ac_c" 1>&6 2015else 2016 cat > conftest.$ac_ext <<EOF 2017#line 2018 "configure" 2018#include "confdefs.h" 2019#include <$ac_hdr> 2020EOF 2021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2022{ (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2024if test -z "$ac_err"; then 2025 rm -rf conftest* 2026 eval "ac_cv_header_$ac_safe=yes" 2027else 2028 echo "$ac_err" >&5 2029 echo "configure: failed program was:" >&5 2030 cat conftest.$ac_ext >&5 2031 rm -rf conftest* 2032 eval "ac_cv_header_$ac_safe=no" 2033fi 2034rm -f conftest* 2035fi 2036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2037 echo "$ac_t""yes" 1>&6 2038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2039 cat >> confdefs.h <<EOF 2040#define $ac_tr_hdr 1 2041EOF 2042 result=yes 2043else 2044 echo "$ac_t""no" 1>&6 2045result=no 2046fi 2047done 2048 2049 if test "$result" = "no"; then 2050 echo "Error: PAM header files not found. Install PAM or don't compile" 2051 echo " bftpd with PAM support." 2052 exit 1 2053 fi 2054fi 2055 2056 2057echo $ac_n "checking whether to enable libz""... $ac_c" 1>&6 2058echo "configure:2059: checking whether to enable libz" >&5 2059# Check whether --enable-libz or --disable-libz was given. 2060if test "${enable_libz+set}" = set; then 2061 enableval="$enable_libz" 2062 result=yes 2063else 2064 result=no 2065fi 2066 2067if test "$result" = "yes"; then 2068 true 2069fi 2070echo "$ac_t""$result" 1>&6 2071 2072if test "$result" = "yes"; then 2073 for ac_hdr in zlib.h 2074do 2075ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2076echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2077echo "configure:2078: checking for $ac_hdr" >&5 2078if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2079 echo $ac_n "(cached) $ac_c" 1>&6 2080else 2081 cat > conftest.$ac_ext <<EOF 2082#line 2083 "configure" 2083#include "confdefs.h" 2084#include <$ac_hdr> 2085EOF 2086ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2087{ (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2088ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2089if test -z "$ac_err"; then 2090 rm -rf conftest* 2091 eval "ac_cv_header_$ac_safe=yes" 2092else 2093 echo "$ac_err" >&5 2094 echo "configure: failed program was:" >&5 2095 cat conftest.$ac_ext >&5 2096 rm -rf conftest* 2097 eval "ac_cv_header_$ac_safe=no" 2098fi 2099rm -f conftest* 2100fi 2101if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2102 echo "$ac_t""yes" 1>&6 2103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2104 cat >> confdefs.h <<EOF 2105#define $ac_tr_hdr 1 2106EOF 2107 result=yes 2108else 2109 echo "$ac_t""no" 1>&6 2110result=no 2111fi 2112done 2113 2114 if test "$result" = "yes"; then 2115 cat >> confdefs.h <<\EOF 2116#define WANT_GZIP 1 2117EOF 2118 2119 LIBS="$LIBS -lz" 2120 else 2121 echo "Error: zlib header file not found. Install it or don't compile" 2122 echo " bftpd with zlib support." 2123 exit 1 2124 fi 2125fi 2126 2127# Check whether --enable-pax or --disable-pax was given. 2128if test "${enable_pax+set}" = set; then 2129 enableval="$enable_pax" 2130 result=$enableval 2131else 2132 result="" 2133fi 2134 2135if test ! "$result" = ""; then 2136 if test -d $result; then 2137 DIRPAX=$result 2138 2139 PAX='$(DIRPAX)/append.o $(DIRPAX)/buffer.o $(DIRPAX)/cpio.o $(DIRPAX)/create.o $(DIRPAX)/extract.o $(DIRPAX)/fileio.o $(DIRPAX)/link.o $(DIRPAX)/list.o $(DIRPAX)/mem.o $(DIRPAX)/namelist.o $(DIRPAX)/names.o $(DIRPAX)/pass.o $(DIRPAX)/pathname.o $(DIRPAX)/pax.o $(DIRPAX)/port.o $(DIRPAX)/regexp.o $(DIRPAX)/replace.o $(DIRPAX)/tar.o $(DIRPAX)/ttyio.o $(DIRPAX)/warn.o $(DIRPAX)/wildmat.o' 2140 2141 cat >> confdefs.h <<\EOF 2142#define WANT_TAR 1 2143EOF 2144 2145 else 2146 echo "Error: The PAX path you specified was not found." 2147 exit 1 2148 fi 2149fi 2150 2151 2152echo $ac_n "checking whether to enable debug""... $ac_c" 1>&6 2153echo "configure:2154: checking whether to enable debug" >&5 2154# Check whether --enable-debug or --disable-debug was given. 2155if test "${enable_debug+set}" = set; then 2156 enableval="$enable_debug" 2157 result=yes 2158else 2159 result=no 2160fi 2161 2162if test "$result" = "yes"; then 2163 true 2164fi 2165echo "$ac_t""$result" 1>&6 2166 2167if test "$result" = "yes"; then 2168 DEBUG="-DDEBUG=1" 2169 2170fi 2171 2172trap '' 1 2 15 2173cat > confcache <<\EOF 2174# This file is a shell script that caches the results of configure 2175# tests run on this system so they can be shared between configure 2176# scripts and configure runs. It is not useful on other systems. 2177# If it contains results you don't want to keep, you may remove or edit it. 2178# 2179# By default, configure uses ./config.cache as the cache file, 2180# creating it if it does not exist already. You can give configure 2181# the --cache-file=FILE option to use a different cache file; that is 2182# what configure does when it calls configure scripts in 2183# subdirectories, so they share the cache. 2184# Giving --cache-file=/dev/null disables caching, for debugging configure. 2185# config.status only pays attention to the cache file if you give it the 2186# --recheck option to rerun configure. 2187# 2188EOF 2189# The following way of writing the cache mishandles newlines in values, 2190# but we know of no workaround that is simple, portable, and efficient. 2191# So, don't put newlines in cache variables' values. 2192# Ultrix sh set writes to stderr and can't be redirected directly, 2193# and sets the high bit in the cache file unless we assign to the vars. 2194(set) 2>&1 | 2195 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2196 *ac_space=\ *) 2197 # `set' does not quote correctly, so add quotes (double-quote substitution 2198 # turns \\\\ into \\, and sed turns \\ into \). 2199 sed -n \ 2200 -e "s/'/'\\\\''/g" \ 2201 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2202 ;; 2203 *) 2204 # `set' quotes correctly as required by POSIX, so do not add quotes. 2205 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2206 ;; 2207 esac >> confcache 2208if cmp -s $cache_file confcache; then 2209 : 2210else 2211 if test -w $cache_file; then 2212 echo "updating cache $cache_file" 2213 cat confcache > $cache_file 2214 else 2215 echo "not updating unwritable cache $cache_file" 2216 fi 2217fi 2218rm -f confcache 2219 2220trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2221 2222test "x$prefix" = xNONE && prefix=$ac_default_prefix 2223# Let make expand exec_prefix. 2224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2225 2226# Any assignment to VPATH causes Sun make to only execute 2227# the first set of double-colon rules, so remove it if not needed. 2228# If there is a colon in the path, we need to keep it. 2229if test "x$srcdir" = x.; then 2230 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2231fi 2232 2233trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2234 2235DEFS=-DHAVE_CONFIG_H 2236 2237# Without the "./", some shells look in PATH for config.status. 2238: ${CONFIG_STATUS=./config.status} 2239 2240echo creating $CONFIG_STATUS 2241rm -f $CONFIG_STATUS 2242cat > $CONFIG_STATUS <<EOF 2243#! /bin/sh 2244# Generated automatically by configure. 2245# Run this file to recreate the current configuration. 2246# This directory was configured as follows, 2247# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2248# 2249# $0 $ac_configure_args 2250# 2251# Compiler output produced by configure, useful for debugging 2252# configure, is in ./config.log if it exists. 2253 2254ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2255for ac_option 2256do 2257 case "\$ac_option" in 2258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2259 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2260 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2261 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2262 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2263 exit 0 ;; 2264 -help | --help | --hel | --he | --h) 2265 echo "\$ac_cs_usage"; exit 0 ;; 2266 *) echo "\$ac_cs_usage"; exit 1 ;; 2267 esac 2268done 2269 2270ac_given_srcdir=$srcdir 2271ac_given_INSTALL="$INSTALL" 2272 2273trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2274EOF 2275cat >> $CONFIG_STATUS <<EOF 2276 2277# Protect against being on the right side of a sed subst in config.status. 2278sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2279 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2280$ac_vpsub 2281$extrasub 2282s%@SHELL@%$SHELL%g 2283s%@CFLAGS@%$CFLAGS%g 2284s%@CPPFLAGS@%$CPPFLAGS%g 2285s%@CXXFLAGS@%$CXXFLAGS%g 2286s%@FFLAGS@%$FFLAGS%g 2287s%@DEFS@%$DEFS%g 2288s%@LDFLAGS@%$LDFLAGS%g 2289s%@LIBS@%$LIBS%g 2290s%@exec_prefix@%$exec_prefix%g 2291s%@prefix@%$prefix%g 2292s%@program_transform_name@%$program_transform_name%g 2293s%@bindir@%$bindir%g 2294s%@sbindir@%$sbindir%g 2295s%@libexecdir@%$libexecdir%g 2296s%@datadir@%$datadir%g 2297s%@sysconfdir@%$sysconfdir%g 2298s%@sharedstatedir@%$sharedstatedir%g 2299s%@localstatedir@%$localstatedir%g 2300s%@libdir@%$libdir%g 2301s%@includedir@%$includedir%g 2302s%@oldincludedir@%$oldincludedir%g 2303s%@infodir@%$infodir%g 2304s%@mandir@%$mandir%g 2305s%@CC@%$CC%g 2306s%@CPP@%$CPP%g 2307s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2308s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2309s%@INSTALL_DATA@%$INSTALL_DATA%g 2310s%@DIRPAX@%$DIRPAX%g 2311s%@PAX@%$PAX%g 2312s%@DEBUG@%$DEBUG%g 2313 2314CEOF 2315EOF 2316 2317cat >> $CONFIG_STATUS <<\EOF 2318 2319# Split the substitutions into bite-sized pieces for seds with 2320# small command number limits, like on Digital OSF/1 and HP-UX. 2321ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2322ac_file=1 # Number of current file. 2323ac_beg=1 # First line for current file. 2324ac_end=$ac_max_sed_cmds # Line after last line for current file. 2325ac_more_lines=: 2326ac_sed_cmds="" 2327while $ac_more_lines; do 2328 if test $ac_beg -gt 1; then 2329 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2330 else 2331 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2332 fi 2333 if test ! -s conftest.s$ac_file; then 2334 ac_more_lines=false 2335 rm -f conftest.s$ac_file 2336 else 2337 if test -z "$ac_sed_cmds"; then 2338 ac_sed_cmds="sed -f conftest.s$ac_file" 2339 else 2340 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2341 fi 2342 ac_file=`expr $ac_file + 1` 2343 ac_beg=$ac_end 2344 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2345 fi 2346done 2347if test -z "$ac_sed_cmds"; then 2348 ac_sed_cmds=cat 2349fi 2350EOF 2351 2352cat >> $CONFIG_STATUS <<EOF 2353 2354CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2355EOF 2356cat >> $CONFIG_STATUS <<\EOF 2357for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2358 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2359 case "$ac_file" in 2360 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2361 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2362 *) ac_file_in="${ac_file}.in" ;; 2363 esac 2364 2365 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2366 2367 # Remove last slash and all that follows it. Not all systems have dirname. 2368 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2369 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2370 # The file is in a subdirectory. 2371 test ! -d "$ac_dir" && mkdir "$ac_dir" 2372 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2373 # A "../" for each directory in $ac_dir_suffix. 2374 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2375 else 2376 ac_dir_suffix= ac_dots= 2377 fi 2378 2379 case "$ac_given_srcdir" in 2380 .) srcdir=. 2381 if test -z "$ac_dots"; then top_srcdir=. 2382 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2383 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2384 *) # Relative path. 2385 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2386 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2387 esac 2388 2389 case "$ac_given_INSTALL" in 2390 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2391 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2392 esac 2393 2394 echo creating "$ac_file" 2395 rm -f "$ac_file" 2396 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2397 case "$ac_file" in 2398 *Makefile*) ac_comsub="1i\\ 2399# $configure_input" ;; 2400 *) ac_comsub= ;; 2401 esac 2402 2403 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2404 sed -e "$ac_comsub 2405s%@configure_input@%$configure_input%g 2406s%@srcdir@%$srcdir%g 2407s%@top_srcdir@%$top_srcdir%g 2408s%@INSTALL@%$INSTALL%g 2409" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2410fi; done 2411rm -f conftest.s* 2412 2413# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2414# NAME is the cpp macro being defined and VALUE is the value it is being given. 2415# 2416# ac_d sets the value in "#define NAME VALUE" lines. 2417ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2418ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2419ac_dC='\3' 2420ac_dD='%g' 2421# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2422ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2423ac_uB='\([ ]\)%\1#\2define\3' 2424ac_uC=' ' 2425ac_uD='\4%g' 2426# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2427ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2428ac_eB='$%\1#\2define\3' 2429ac_eC=' ' 2430ac_eD='%g' 2431 2432if test "${CONFIG_HEADERS+set}" != set; then 2433EOF 2434cat >> $CONFIG_STATUS <<EOF 2435 CONFIG_HEADERS="config.h" 2436EOF 2437cat >> $CONFIG_STATUS <<\EOF 2438fi 2439for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2441 case "$ac_file" in 2442 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2443 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2444 *) ac_file_in="${ac_file}.in" ;; 2445 esac 2446 2447 echo creating $ac_file 2448 2449 rm -f conftest.frag conftest.in conftest.out 2450 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2451 cat $ac_file_inputs > conftest.in 2452 2453EOF 2454 2455# Transform confdefs.h into a sed script conftest.vals that substitutes 2456# the proper values into config.h.in to produce config.h. And first: 2457# Protect against being on the right side of a sed subst in config.status. 2458# Protect against being in an unquoted here document in config.status. 2459rm -f conftest.vals 2460cat > conftest.hdr <<\EOF 2461s/[\\&%]/\\&/g 2462s%[\\$`]%\\&%g 2463s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2464s%ac_d%ac_u%gp 2465s%ac_u%ac_e%gp 2466EOF 2467sed -n -f conftest.hdr confdefs.h > conftest.vals 2468rm -f conftest.hdr 2469 2470# This sed command replaces #undef with comments. This is necessary, for 2471# example, in the case of _POSIX_SOURCE, which is predefined and required 2472# on some systems where configure will not decide to define it. 2473cat >> conftest.vals <<\EOF 2474s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2475EOF 2476 2477# Break up conftest.vals because some shells have a limit on 2478# the size of here documents, and old seds have small limits too. 2479 2480rm -f conftest.tail 2481while : 2482do 2483 ac_lines=`grep -c . conftest.vals` 2484 # grep -c gives empty output for an empty file on some AIX systems. 2485 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2486 # Write a limited-size here document to conftest.frag. 2487 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2488 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2489 echo 'CEOF 2490 sed -f conftest.frag conftest.in > conftest.out 2491 rm -f conftest.in 2492 mv conftest.out conftest.in 2493' >> $CONFIG_STATUS 2494 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2495 rm -f conftest.vals 2496 mv conftest.tail conftest.vals 2497done 2498rm -f conftest.vals 2499 2500cat >> $CONFIG_STATUS <<\EOF 2501 rm -f conftest.frag conftest.h 2502 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2503 cat conftest.in >> conftest.h 2504 rm -f conftest.in 2505 if cmp -s $ac_file conftest.h 2>/dev/null; then 2506 echo "$ac_file is unchanged" 2507 rm -f conftest.h 2508 else 2509 # Remove last slash and all that follows it. Not all systems have dirname. 2510 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2511 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2512 # The file is in a subdirectory. 2513 test ! -d "$ac_dir" && mkdir "$ac_dir" 2514 fi 2515 rm -f $ac_file 2516 mv conftest.h $ac_file 2517 fi 2518fi; done 2519 2520EOF 2521cat >> $CONFIG_STATUS <<EOF 2522 2523EOF 2524cat >> $CONFIG_STATUS <<\EOF 2525 2526exit 0 2527EOF 2528chmod +x $CONFIG_STATUS 2529rm -fr confdefs* $ac_clean_files 2530test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2531 2532