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_help="$ac_help 15 --with-x use the X Window System" 16ac_help="$ac_help 17 --with-db=DIR use Berkeley DB (with --enable-compat185) in DIR" 18ac_help="$ac_help 19 --with-libpcap=DIR use libpcap in DIR" 20ac_help="$ac_help 21 --with-libnet=DIR use libnet in DIR" 22ac_help="$ac_help 23 --with-libnids=DIR use libnids in DIR" 24ac_help="$ac_help 25 --with-openssl=DIR use OpenSSL in DIR" 26 27# Initialize some variables set by options. 28# The variables have the same names as the options, with 29# dashes changed to underlines. 30build=NONE 31cache_file=./config.cache 32exec_prefix=NONE 33host=NONE 34no_create= 35nonopt=NONE 36no_recursion= 37prefix=NONE 38program_prefix=NONE 39program_suffix=NONE 40program_transform_name=s,x,x, 41silent= 42site= 43srcdir= 44target=NONE 45verbose= 46x_includes=NONE 47x_libraries=NONE 48bindir='${exec_prefix}/bin' 49sbindir='${exec_prefix}/sbin' 50libexecdir='${exec_prefix}/libexec' 51datadir='${prefix}/share' 52sysconfdir='${prefix}/etc' 53sharedstatedir='${prefix}/com' 54localstatedir='${prefix}/var' 55libdir='${exec_prefix}/lib' 56includedir='${prefix}/include' 57oldincludedir='/usr/include' 58infodir='${prefix}/info' 59mandir='${prefix}/man' 60 61# Initialize some other variables. 62subdirs= 63MFLAGS= MAKEFLAGS= 64SHELL=${CONFIG_SHELL-/bin/sh} 65# Maximum number of lines to put in a shell here document. 66ac_max_here_lines=12 67 68ac_prev= 69for ac_option 70do 71 72 # If the previous option needs an argument, assign it. 73 if test -n "$ac_prev"; then 74 eval "$ac_prev=\$ac_option" 75 ac_prev= 76 continue 77 fi 78 79 case "$ac_option" in 80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 81 *) ac_optarg= ;; 82 esac 83 84 # Accept the important Cygnus configure options, so we can diagnose typos. 85 86 case "$ac_option" in 87 88 -bindir | --bindir | --bindi | --bind | --bin | --bi) 89 ac_prev=bindir ;; 90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 91 bindir="$ac_optarg" ;; 92 93 -build | --build | --buil | --bui | --bu) 94 ac_prev=build ;; 95 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 96 build="$ac_optarg" ;; 97 98 -cache-file | --cache-file | --cache-fil | --cache-fi \ 99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 100 ac_prev=cache_file ;; 101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 103 cache_file="$ac_optarg" ;; 104 105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 106 ac_prev=datadir ;; 107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 108 | --da=*) 109 datadir="$ac_optarg" ;; 110 111 -disable-* | --disable-*) 112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 113 # Reject names that are not valid shell variable names. 114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 116 fi 117 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 118 eval "enable_${ac_feature}=no" ;; 119 120 -enable-* | --enable-*) 121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 122 # Reject names that are not valid shell variable names. 123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 125 fi 126 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 127 case "$ac_option" in 128 *=*) ;; 129 *) ac_optarg=yes ;; 130 esac 131 eval "enable_${ac_feature}='$ac_optarg'" ;; 132 133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 135 | --exec | --exe | --ex) 136 ac_prev=exec_prefix ;; 137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 139 | --exec=* | --exe=* | --ex=*) 140 exec_prefix="$ac_optarg" ;; 141 142 -gas | --gas | --ga | --g) 143 # Obsolete; use --with-gas. 144 with_gas=yes ;; 145 146 -help | --help | --hel | --he) 147 # Omit some internal or obsolete options to make the list less imposing. 148 # This message is too long to be a string in the A/UX 3.1 sh. 149 cat << EOF 150Usage: configure [options] [host] 151Options: [defaults in brackets after descriptions] 152Configuration: 153 --cache-file=FILE cache test results in FILE 154 --help print this message 155 --no-create do not create output files 156 --quiet, --silent do not print \`checking...' messages 157 --version print the version of autoconf that created configure 158Directory and file names: 159 --prefix=PREFIX install architecture-independent files in PREFIX 160 [$ac_default_prefix] 161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 162 [same as prefix] 163 --bindir=DIR user executables in DIR [EPREFIX/bin] 164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 166 --datadir=DIR read-only architecture-independent data in DIR 167 [PREFIX/share] 168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 169 --sharedstatedir=DIR modifiable architecture-independent data in DIR 170 [PREFIX/com] 171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 172 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 173 --includedir=DIR C header files in DIR [PREFIX/include] 174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 175 --infodir=DIR info documentation in DIR [PREFIX/info] 176 --mandir=DIR man documentation in DIR [PREFIX/man] 177 --srcdir=DIR find the sources in DIR [configure dir or ..] 178 --program-prefix=PREFIX prepend PREFIX to installed program names 179 --program-suffix=SUFFIX append SUFFIX to installed program names 180 --program-transform-name=PROGRAM 181 run sed PROGRAM on installed program names 182EOF 183 cat << EOF 184Host type: 185 --build=BUILD configure for building on BUILD [BUILD=HOST] 186 --host=HOST configure for HOST [guessed] 187 --target=TARGET configure for TARGET [TARGET=HOST] 188Features and packages: 189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 193 --x-includes=DIR X include files are in DIR 194 --x-libraries=DIR X library files are in DIR 195EOF 196 if test -n "$ac_help"; then 197 echo "--enable and --with options recognized:$ac_help" 198 fi 199 exit 0 ;; 200 201 -host | --host | --hos | --ho) 202 ac_prev=host ;; 203 -host=* | --host=* | --hos=* | --ho=*) 204 host="$ac_optarg" ;; 205 206 -includedir | --includedir | --includedi | --included | --include \ 207 | --includ | --inclu | --incl | --inc) 208 ac_prev=includedir ;; 209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 210 | --includ=* | --inclu=* | --incl=* | --inc=*) 211 includedir="$ac_optarg" ;; 212 213 -infodir | --infodir | --infodi | --infod | --info | --inf) 214 ac_prev=infodir ;; 215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 216 infodir="$ac_optarg" ;; 217 218 -libdir | --libdir | --libdi | --libd) 219 ac_prev=libdir ;; 220 -libdir=* | --libdir=* | --libdi=* | --libd=*) 221 libdir="$ac_optarg" ;; 222 223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 224 | --libexe | --libex | --libe) 225 ac_prev=libexecdir ;; 226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 227 | --libexe=* | --libex=* | --libe=*) 228 libexecdir="$ac_optarg" ;; 229 230 -localstatedir | --localstatedir | --localstatedi | --localstated \ 231 | --localstate | --localstat | --localsta | --localst \ 232 | --locals | --local | --loca | --loc | --lo) 233 ac_prev=localstatedir ;; 234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 237 localstatedir="$ac_optarg" ;; 238 239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 240 ac_prev=mandir ;; 241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 242 mandir="$ac_optarg" ;; 243 244 -nfp | --nfp | --nf) 245 # Obsolete; use --without-fp. 246 with_fp=no ;; 247 248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 249 | --no-cr | --no-c) 250 no_create=yes ;; 251 252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 254 no_recursion=yes ;; 255 256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 258 | --oldin | --oldi | --old | --ol | --o) 259 ac_prev=oldincludedir ;; 260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 263 oldincludedir="$ac_optarg" ;; 264 265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 266 ac_prev=prefix ;; 267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 268 prefix="$ac_optarg" ;; 269 270 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 271 | --program-pre | --program-pr | --program-p) 272 ac_prev=program_prefix ;; 273 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 275 program_prefix="$ac_optarg" ;; 276 277 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 278 | --program-suf | --program-su | --program-s) 279 ac_prev=program_suffix ;; 280 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 282 program_suffix="$ac_optarg" ;; 283 284 -program-transform-name | --program-transform-name \ 285 | --program-transform-nam | --program-transform-na \ 286 | --program-transform-n | --program-transform- \ 287 | --program-transform | --program-transfor \ 288 | --program-transfo | --program-transf \ 289 | --program-trans | --program-tran \ 290 | --progr-tra | --program-tr | --program-t) 291 ac_prev=program_transform_name ;; 292 -program-transform-name=* | --program-transform-name=* \ 293 | --program-transform-nam=* | --program-transform-na=* \ 294 | --program-transform-n=* | --program-transform-=* \ 295 | --program-transform=* | --program-transfor=* \ 296 | --program-transfo=* | --program-transf=* \ 297 | --program-trans=* | --program-tran=* \ 298 | --progr-tra=* | --program-tr=* | --program-t=*) 299 program_transform_name="$ac_optarg" ;; 300 301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 302 | -silent | --silent | --silen | --sile | --sil) 303 silent=yes ;; 304 305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 306 ac_prev=sbindir ;; 307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 308 | --sbi=* | --sb=*) 309 sbindir="$ac_optarg" ;; 310 311 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 313 | --sharedst | --shareds | --shared | --share | --shar \ 314 | --sha | --sh) 315 ac_prev=sharedstatedir ;; 316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 319 | --sha=* | --sh=*) 320 sharedstatedir="$ac_optarg" ;; 321 322 -site | --site | --sit) 323 ac_prev=site ;; 324 -site=* | --site=* | --sit=*) 325 site="$ac_optarg" ;; 326 327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 328 ac_prev=srcdir ;; 329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 330 srcdir="$ac_optarg" ;; 331 332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 333 | --syscon | --sysco | --sysc | --sys | --sy) 334 ac_prev=sysconfdir ;; 335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 337 sysconfdir="$ac_optarg" ;; 338 339 -target | --target | --targe | --targ | --tar | --ta | --t) 340 ac_prev=target ;; 341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 342 target="$ac_optarg" ;; 343 344 -v | -verbose | --verbose | --verbos | --verbo | --verb) 345 verbose=yes ;; 346 347 -version | --version | --versio | --versi | --vers) 348 echo "configure generated by autoconf version 2.13" 349 exit 0 ;; 350 351 -with-* | --with-*) 352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 353 # Reject names that are not valid shell variable names. 354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 356 fi 357 ac_package=`echo $ac_package| sed 's/-/_/g'` 358 case "$ac_option" in 359 *=*) ;; 360 *) ac_optarg=yes ;; 361 esac 362 eval "with_${ac_package}='$ac_optarg'" ;; 363 364 -without-* | --without-*) 365 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 366 # Reject names that are not valid shell variable names. 367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 369 fi 370 ac_package=`echo $ac_package| sed 's/-/_/g'` 371 eval "with_${ac_package}=no" ;; 372 373 --x) 374 # Obsolete; use --with-x. 375 with_x=yes ;; 376 377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 378 | --x-incl | --x-inc | --x-in | --x-i) 379 ac_prev=x_includes ;; 380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 382 x_includes="$ac_optarg" ;; 383 384 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 386 ac_prev=x_libraries ;; 387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 389 x_libraries="$ac_optarg" ;; 390 391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 392 ;; 393 394 *) 395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 396 echo "configure: warning: $ac_option: invalid host type" 1>&2 397 fi 398 if test "x$nonopt" != xNONE; then 399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 400 fi 401 nonopt="$ac_option" 402 ;; 403 404 esac 405done 406 407if test -n "$ac_prev"; then 408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 409fi 410 411trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 412 413# File descriptor usage: 414# 0 standard input 415# 1 file creation 416# 2 errors and warnings 417# 3 some systems may open it to /dev/tty 418# 4 used on the Kubota Titan 419# 6 checking for... messages and results 420# 5 compiler messages saved in config.log 421if test "$silent" = yes; then 422 exec 6>/dev/null 423else 424 exec 6>&1 425fi 426exec 5>./config.log 427 428echo "\ 429This file contains any messages produced by compilers while 430running configure, to aid debugging if configure makes a mistake. 431" 1>&5 432 433# Strip out --no-create and --no-recursion so they do not pile up. 434# Also quote any args containing shell metacharacters. 435ac_configure_args= 436for ac_arg 437do 438 case "$ac_arg" in 439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 440 | --no-cr | --no-c) ;; 441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 444 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 445 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 446 esac 447done 448 449# NLS nuisances. 450# Only set these to C if already set. These must not be set unconditionally 451# because not all systems understand e.g. LANG=C (notably SCO). 452# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 453# Non-C LC_CTYPE values break the ctype check. 454if test "${LANG+set}" = set; then LANG=C; export LANG; fi 455if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 456if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 457if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 458 459# confdefs.h avoids OS command line length limits that DEFS can exceed. 460rm -rf conftest* confdefs.h 461# AIX cpp loses on an empty file, so make sure it contains at least a newline. 462echo > confdefs.h 463 464# A filename unique to this package, relative to the directory that 465# configure is in, which we can look for to find out if srcdir is correct. 466ac_unique_file=dsniff.c 467 468# Find the source files, if location was not specified. 469if test -z "$srcdir"; then 470 ac_srcdir_defaulted=yes 471 # Try the directory containing this script, then its parent. 472 ac_prog=$0 473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 475 srcdir=$ac_confdir 476 if test ! -r $srcdir/$ac_unique_file; then 477 srcdir=.. 478 fi 479else 480 ac_srcdir_defaulted=no 481fi 482if test ! -r $srcdir/$ac_unique_file; then 483 if test "$ac_srcdir_defaulted" = yes; then 484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 485 else 486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 487 fi 488fi 489srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 490 491# Prefer explicitly selected file to automatically selected ones. 492if test -z "$CONFIG_SITE"; then 493 if test "x$prefix" != xNONE; then 494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 495 else 496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 497 fi 498fi 499for ac_site_file in $CONFIG_SITE; do 500 if test -r "$ac_site_file"; then 501 echo "loading site script $ac_site_file" 502 . "$ac_site_file" 503 fi 504done 505 506if test -r "$cache_file"; then 507 echo "loading cache $cache_file" 508 . $cache_file 509else 510 echo "creating cache $cache_file" 511 > $cache_file 512fi 513 514ac_ext=c 515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 516ac_cpp='$CPP $CPPFLAGS' 517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 519cross_compiling=$ac_cv_prog_cc_cross 520 521ac_exeext= 522ac_objext=o 523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 526 ac_n= ac_c=' 527' ac_t=' ' 528 else 529 ac_n=-n ac_c= ac_t= 530 fi 531else 532 ac_n= ac_c='\c' ac_t= 533fi 534 535 536 537 538 539if test "$prefix" = "NONE"; then 540 prefix="/usr/local" 541fi 542 543# Extract the first word of "gcc", so it can be a program name with args. 544set dummy gcc; ac_word=$2 545echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 546echo "configure:547: checking for $ac_word" >&5 547if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 548 echo $ac_n "(cached) $ac_c" 1>&6 549else 550 if test -n "$CC"; then 551 ac_cv_prog_CC="$CC" # Let the user override the test. 552else 553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 554 ac_dummy="$PATH" 555 for ac_dir in $ac_dummy; do 556 test -z "$ac_dir" && ac_dir=. 557 if test -f $ac_dir/$ac_word; then 558 ac_cv_prog_CC="gcc" 559 break 560 fi 561 done 562 IFS="$ac_save_ifs" 563fi 564fi 565CC="$ac_cv_prog_CC" 566if test -n "$CC"; then 567 echo "$ac_t""$CC" 1>&6 568else 569 echo "$ac_t""no" 1>&6 570fi 571 572if test -z "$CC"; then 573 # Extract the first word of "cc", so it can be a program name with args. 574set dummy cc; ac_word=$2 575echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 576echo "configure:577: checking for $ac_word" >&5 577if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 578 echo $ac_n "(cached) $ac_c" 1>&6 579else 580 if test -n "$CC"; then 581 ac_cv_prog_CC="$CC" # Let the user override the test. 582else 583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 584 ac_prog_rejected=no 585 ac_dummy="$PATH" 586 for ac_dir in $ac_dummy; do 587 test -z "$ac_dir" && ac_dir=. 588 if test -f $ac_dir/$ac_word; then 589 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 590 ac_prog_rejected=yes 591 continue 592 fi 593 ac_cv_prog_CC="cc" 594 break 595 fi 596 done 597 IFS="$ac_save_ifs" 598if test $ac_prog_rejected = yes; then 599 # We found a bogon in the path, so make sure we never use it. 600 set dummy $ac_cv_prog_CC 601 shift 602 if test $# -gt 0; then 603 # We chose a different compiler from the bogus one. 604 # However, it has the same basename, so the bogon will be chosen 605 # first if we set CC to just the basename; use the full file name. 606 shift 607 set dummy "$ac_dir/$ac_word" "$@" 608 shift 609 ac_cv_prog_CC="$@" 610 fi 611fi 612fi 613fi 614CC="$ac_cv_prog_CC" 615if test -n "$CC"; then 616 echo "$ac_t""$CC" 1>&6 617else 618 echo "$ac_t""no" 1>&6 619fi 620 621 if test -z "$CC"; then 622 case "`uname -s`" in 623 *win32* | *WIN32*) 624 # Extract the first word of "cl", so it can be a program name with args. 625set dummy cl; ac_word=$2 626echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 627echo "configure:628: checking for $ac_word" >&5 628if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 629 echo $ac_n "(cached) $ac_c" 1>&6 630else 631 if test -n "$CC"; then 632 ac_cv_prog_CC="$CC" # Let the user override the test. 633else 634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 635 ac_dummy="$PATH" 636 for ac_dir in $ac_dummy; do 637 test -z "$ac_dir" && ac_dir=. 638 if test -f $ac_dir/$ac_word; then 639 ac_cv_prog_CC="cl" 640 break 641 fi 642 done 643 IFS="$ac_save_ifs" 644fi 645fi 646CC="$ac_cv_prog_CC" 647if test -n "$CC"; then 648 echo "$ac_t""$CC" 1>&6 649else 650 echo "$ac_t""no" 1>&6 651fi 652 ;; 653 esac 654 fi 655 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 656fi 657 658echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 659echo "configure:660: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 660 661ac_ext=c 662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 663ac_cpp='$CPP $CPPFLAGS' 664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 666cross_compiling=$ac_cv_prog_cc_cross 667 668cat > conftest.$ac_ext << EOF 669 670#line 671 "configure" 671#include "confdefs.h" 672 673main(){return(0);} 674EOF 675if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 676 ac_cv_prog_cc_works=yes 677 # If we can't run a trivial program, we are probably using a cross compiler. 678 if (./conftest; exit) 2>/dev/null; then 679 ac_cv_prog_cc_cross=no 680 else 681 ac_cv_prog_cc_cross=yes 682 fi 683else 684 echo "configure: failed program was:" >&5 685 cat conftest.$ac_ext >&5 686 ac_cv_prog_cc_works=no 687fi 688rm -fr conftest* 689ac_ext=c 690# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 691ac_cpp='$CPP $CPPFLAGS' 692ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 693ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 694cross_compiling=$ac_cv_prog_cc_cross 695 696echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 697if test $ac_cv_prog_cc_works = no; then 698 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 699fi 700echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 701echo "configure:702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 702echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 703cross_compiling=$ac_cv_prog_cc_cross 704 705echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 706echo "configure:707: checking whether we are using GNU C" >&5 707if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 708 echo $ac_n "(cached) $ac_c" 1>&6 709else 710 cat > conftest.c <<EOF 711#ifdef __GNUC__ 712 yes; 713#endif 714EOF 715if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 716 ac_cv_prog_gcc=yes 717else 718 ac_cv_prog_gcc=no 719fi 720fi 721 722echo "$ac_t""$ac_cv_prog_gcc" 1>&6 723 724if test $ac_cv_prog_gcc = yes; then 725 GCC=yes 726else 727 GCC= 728fi 729 730ac_test_CFLAGS="${CFLAGS+set}" 731ac_save_CFLAGS="$CFLAGS" 732CFLAGS= 733echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 734echo "configure:735: checking whether ${CC-cc} accepts -g" >&5 735if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 736 echo $ac_n "(cached) $ac_c" 1>&6 737else 738 echo 'void f(){}' > conftest.c 739if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 740 ac_cv_prog_cc_g=yes 741else 742 ac_cv_prog_cc_g=no 743fi 744rm -f conftest* 745 746fi 747 748echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 749if test "$ac_test_CFLAGS" = set; then 750 CFLAGS="$ac_save_CFLAGS" 751elif test $ac_cv_prog_cc_g = yes; then 752 if test "$GCC" = yes; then 753 CFLAGS="-g -O2" 754 else 755 CFLAGS="-g" 756 fi 757else 758 if test "$GCC" = yes; then 759 CFLAGS="-O2" 760 else 761 CFLAGS= 762 fi 763fi 764 765ac_aux_dir= 766for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 767 if test -f $ac_dir/install-sh; then 768 ac_aux_dir=$ac_dir 769 ac_install_sh="$ac_aux_dir/install-sh -c" 770 break 771 elif test -f $ac_dir/install.sh; then 772 ac_aux_dir=$ac_dir 773 ac_install_sh="$ac_aux_dir/install.sh -c" 774 break 775 fi 776done 777if test -z "$ac_aux_dir"; then 778 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 779fi 780ac_config_guess=$ac_aux_dir/config.guess 781ac_config_sub=$ac_aux_dir/config.sub 782ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 783 784# Find a good install program. We prefer a C program (faster), 785# so one script is as good as another. But avoid the broken or 786# incompatible versions: 787# SysV /etc/install, /usr/sbin/install 788# SunOS /usr/etc/install 789# IRIX /sbin/install 790# AIX /bin/install 791# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 792# AFS /usr/afsws/bin/install, which mishandles nonexistent args 793# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 794# ./install, which can be erroneously created by make from ./install.sh. 795echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 796echo "configure:797: checking for a BSD compatible install" >&5 797if test -z "$INSTALL"; then 798if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 799 echo $ac_n "(cached) $ac_c" 1>&6 800else 801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 802 for ac_dir in $PATH; do 803 # Account for people who put trailing slashes in PATH elements. 804 case "$ac_dir/" in 805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 806 *) 807 # OSF1 and SCO ODT 3.0 have their own names for install. 808 # Don't use installbsd from OSF since it installs stuff as root 809 # by default. 810 for ac_prog in ginstall scoinst install; do 811 if test -f $ac_dir/$ac_prog; then 812 if test $ac_prog = install && 813 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 814 # AIX install. It has an incompatible calling convention. 815 : 816 else 817 ac_cv_path_install="$ac_dir/$ac_prog -c" 818 break 2 819 fi 820 fi 821 done 822 ;; 823 esac 824 done 825 IFS="$ac_save_IFS" 826 827fi 828 if test "${ac_cv_path_install+set}" = set; then 829 INSTALL="$ac_cv_path_install" 830 else 831 # As a last resort, use the slow shell script. We don't cache a 832 # path for INSTALL within a source directory, because that will 833 # break other packages using the cache if that directory is 834 # removed, or if the path is relative. 835 INSTALL="$ac_install_sh" 836 fi 837fi 838echo "$ac_t""$INSTALL" 1>&6 839 840# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 841# It thinks the first close brace ends the variable substitution. 842test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 843 844test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 845 846test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 847 848# Extract the first word of "ranlib", so it can be a program name with args. 849set dummy ranlib; ac_word=$2 850echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 851echo "configure:852: checking for $ac_word" >&5 852if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 853 echo $ac_n "(cached) $ac_c" 1>&6 854else 855 if test -n "$RANLIB"; then 856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 857else 858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 859 ac_dummy="$PATH" 860 for ac_dir in $ac_dummy; do 861 test -z "$ac_dir" && ac_dir=. 862 if test -f $ac_dir/$ac_word; then 863 ac_cv_prog_RANLIB="ranlib" 864 break 865 fi 866 done 867 IFS="$ac_save_ifs" 868 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 869fi 870fi 871RANLIB="$ac_cv_prog_RANLIB" 872if test -n "$RANLIB"; then 873 echo "$ac_t""$RANLIB" 1>&6 874else 875 echo "$ac_t""no" 1>&6 876fi 877 878 879echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 880echo "configure:881: checking how to run the C preprocessor" >&5 881# On Suns, sometimes $CPP names a directory. 882if test -n "$CPP" && test -d "$CPP"; then 883 CPP= 884fi 885if test -z "$CPP"; then 886if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 887 echo $ac_n "(cached) $ac_c" 1>&6 888else 889 # This must be in double quotes, not single quotes, because CPP may get 890 # substituted into the Makefile and "${CC-cc}" will confuse make. 891 CPP="${CC-cc} -E" 892 # On the NeXT, cc -E runs the code through the compiler's parser, 893 # not just through cpp. 894 cat > conftest.$ac_ext <<EOF 895#line 896 "configure" 896#include "confdefs.h" 897#include <assert.h> 898Syntax Error 899EOF 900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 901{ (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 903if test -z "$ac_err"; then 904 : 905else 906 echo "$ac_err" >&5 907 echo "configure: failed program was:" >&5 908 cat conftest.$ac_ext >&5 909 rm -rf conftest* 910 CPP="${CC-cc} -E -traditional-cpp" 911 cat > conftest.$ac_ext <<EOF 912#line 913 "configure" 913#include "confdefs.h" 914#include <assert.h> 915Syntax Error 916EOF 917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 918{ (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 920if test -z "$ac_err"; then 921 : 922else 923 echo "$ac_err" >&5 924 echo "configure: failed program was:" >&5 925 cat conftest.$ac_ext >&5 926 rm -rf conftest* 927 CPP="${CC-cc} -nologo -E" 928 cat > conftest.$ac_ext <<EOF 929#line 930 "configure" 930#include "confdefs.h" 931#include <assert.h> 932Syntax Error 933EOF 934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 935{ (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 937if test -z "$ac_err"; then 938 : 939else 940 echo "$ac_err" >&5 941 echo "configure: failed program was:" >&5 942 cat conftest.$ac_ext >&5 943 rm -rf conftest* 944 CPP=/lib/cpp 945fi 946rm -f conftest* 947fi 948rm -f conftest* 949fi 950rm -f conftest* 951 ac_cv_prog_CPP="$CPP" 952fi 953 CPP="$ac_cv_prog_CPP" 954else 955 ac_cv_prog_CPP="$CPP" 956fi 957echo "$ac_t""$CPP" 1>&6 958 959# If we find X, set shell vars x_includes and x_libraries to the 960# paths, otherwise set no_x=yes. 961# Uses ac_ vars as temps to allow command line to override cache and checks. 962# --without-x overrides everything else, but does not touch the cache. 963echo $ac_n "checking for X""... $ac_c" 1>&6 964echo "configure:965: checking for X" >&5 965 966# Check whether --with-x or --without-x was given. 967if test "${with_x+set}" = set; then 968 withval="$with_x" 969 : 970fi 971 972# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 973if test "x$with_x" = xno; then 974 # The user explicitly disabled X. 975 have_x=disabled 976else 977 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 978 # Both variables are already set. 979 have_x=yes 980 else 981if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 982 echo $ac_n "(cached) $ac_c" 1>&6 983else 984 # One or both of the vars are not set, and there is no cached value. 985ac_x_includes=NO ac_x_libraries=NO 986rm -fr conftestdir 987if mkdir conftestdir; then 988 cd conftestdir 989 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 990 cat > Imakefile <<'EOF' 991acfindx: 992 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 993EOF 994 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 996 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 997 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 998 for ac_extension in a so sl; do 999 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 1000 test -f $ac_im_libdir/libX11.$ac_extension; then 1001 ac_im_usrlibdir=$ac_im_libdir; break 1002 fi 1003 done 1004 # Screen out bogus values from the imake configuration. They are 1005 # bogus both because they are the default anyway, and because 1006 # using them would break gcc on systems where it needs fixed includes. 1007 case "$ac_im_incroot" in 1008 /usr/include) ;; 1009 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 1010 esac 1011 case "$ac_im_usrlibdir" in 1012 /usr/lib | /lib) ;; 1013 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 1014 esac 1015 fi 1016 cd .. 1017 rm -fr conftestdir 1018fi 1019 1020if test "$ac_x_includes" = NO; then 1021 # Guess where to find include files, by looking for this one X11 .h file. 1022 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 1023 1024 # First, try using that file with no special directory specified. 1025cat > conftest.$ac_ext <<EOF 1026#line 1027 "configure" 1027#include "confdefs.h" 1028#include <$x_direct_test_include> 1029EOF 1030ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1031{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1032ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1033if test -z "$ac_err"; then 1034 rm -rf conftest* 1035 # We can compile using X headers with no special include directory. 1036ac_x_includes= 1037else 1038 echo "$ac_err" >&5 1039 echo "configure: failed program was:" >&5 1040 cat conftest.$ac_ext >&5 1041 rm -rf conftest* 1042 # Look for the header file in a standard set of common directories. 1043# Check X11 before X11Rn because it is often a symlink to the current release. 1044 for ac_dir in \ 1045 /usr/X11/include \ 1046 /usr/X11R6/include \ 1047 /usr/X11R5/include \ 1048 /usr/X11R4/include \ 1049 \ 1050 /usr/include/X11 \ 1051 /usr/include/X11R6 \ 1052 /usr/include/X11R5 \ 1053 /usr/include/X11R4 \ 1054 \ 1055 /usr/local/X11/include \ 1056 /usr/local/X11R6/include \ 1057 /usr/local/X11R5/include \ 1058 /usr/local/X11R4/include \ 1059 \ 1060 /usr/local/include/X11 \ 1061 /usr/local/include/X11R6 \ 1062 /usr/local/include/X11R5 \ 1063 /usr/local/include/X11R4 \ 1064 \ 1065 /usr/X386/include \ 1066 /usr/x386/include \ 1067 /usr/XFree86/include/X11 \ 1068 \ 1069 /usr/include \ 1070 /usr/local/include \ 1071 /usr/unsupported/include \ 1072 /usr/athena/include \ 1073 /usr/local/x11r5/include \ 1074 /usr/lpp/Xamples/include \ 1075 \ 1076 /usr/openwin/include \ 1077 /usr/openwin/share/include \ 1078 ; \ 1079 do 1080 if test -r "$ac_dir/$x_direct_test_include"; then 1081 ac_x_includes=$ac_dir 1082 break 1083 fi 1084 done 1085fi 1086rm -f conftest* 1087fi # $ac_x_includes = NO 1088 1089if test "$ac_x_libraries" = NO; then 1090 # Check for the libraries. 1091 1092 test -z "$x_direct_test_library" && x_direct_test_library=Xt 1093 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 1094 1095 # See if we find them without any special options. 1096 # Don't add to $LIBS permanently. 1097 ac_save_LIBS="$LIBS" 1098 LIBS="-l$x_direct_test_library $LIBS" 1099cat > conftest.$ac_ext <<EOF 1100#line 1101 "configure" 1101#include "confdefs.h" 1102 1103int main() { 1104${x_direct_test_function}() 1105; return 0; } 1106EOF 1107if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1108 rm -rf conftest* 1109 LIBS="$ac_save_LIBS" 1110# We can link X programs with no special library path. 1111ac_x_libraries= 1112else 1113 echo "configure: failed program was:" >&5 1114 cat conftest.$ac_ext >&5 1115 rm -rf conftest* 1116 LIBS="$ac_save_LIBS" 1117# First see if replacing the include by lib works. 1118# Check X11 before X11Rn because it is often a symlink to the current release. 1119for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 1120 /usr/X11/lib \ 1121 /usr/X11R6/lib \ 1122 /usr/X11R5/lib \ 1123 /usr/X11R4/lib \ 1124 \ 1125 /usr/lib/X11 \ 1126 /usr/lib/X11R6 \ 1127 /usr/lib/X11R5 \ 1128 /usr/lib/X11R4 \ 1129 \ 1130 /usr/local/X11/lib \ 1131 /usr/local/X11R6/lib \ 1132 /usr/local/X11R5/lib \ 1133 /usr/local/X11R4/lib \ 1134 \ 1135 /usr/local/lib/X11 \ 1136 /usr/local/lib/X11R6 \ 1137 /usr/local/lib/X11R5 \ 1138 /usr/local/lib/X11R4 \ 1139 \ 1140 /usr/X386/lib \ 1141 /usr/x386/lib \ 1142 /usr/XFree86/lib/X11 \ 1143 \ 1144 /usr/lib \ 1145 /usr/local/lib \ 1146 /usr/unsupported/lib \ 1147 /usr/athena/lib \ 1148 /usr/local/x11r5/lib \ 1149 /usr/lpp/Xamples/lib \ 1150 /lib/usr/lib/X11 \ 1151 \ 1152 /usr/openwin/lib \ 1153 /usr/openwin/share/lib \ 1154 ; \ 1155do 1156 for ac_extension in a so sl; do 1157 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 1158 ac_x_libraries=$ac_dir 1159 break 2 1160 fi 1161 done 1162done 1163fi 1164rm -f conftest* 1165fi # $ac_x_libraries = NO 1166 1167if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 1168 # Didn't find X anywhere. Cache the known absence of X. 1169 ac_cv_have_x="have_x=no" 1170else 1171 # Record where we found X for the cache. 1172 ac_cv_have_x="have_x=yes \ 1173 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 1174fi 1175fi 1176 fi 1177 eval "$ac_cv_have_x" 1178fi # $with_x != no 1179 1180if test "$have_x" != yes; then 1181 echo "$ac_t""$have_x" 1>&6 1182 no_x=yes 1183else 1184 # If each of the values was on the command line, it overrides each guess. 1185 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 1186 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 1187 # Update the cache value to reflect the command line values. 1188 ac_cv_have_x="have_x=yes \ 1189 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 1190 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 1191fi 1192 1193if test "$no_x" = yes; then 1194 # Not all programs may use this symbol, but it does not hurt to define it. 1195 cat >> confdefs.h <<\EOF 1196#define X_DISPLAY_MISSING 1 1197EOF 1198 1199 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 1200else 1201 if test -n "$x_includes"; then 1202 X_CFLAGS="$X_CFLAGS -I$x_includes" 1203 fi 1204 1205 # It would also be nice to do this for all -L options, not just this one. 1206 if test -n "$x_libraries"; then 1207 X_LIBS="$X_LIBS -L$x_libraries" 1208 # For Solaris; some versions of Sun CC require a space after -R and 1209 # others require no space. Words are not sufficient . . . . 1210 case "`(uname -sr) 2>/dev/null`" in 1211 "SunOS 5"*) 1212 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 1213echo "configure:1214: checking whether -R must be followed by a space" >&5 1214 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 1215 cat > conftest.$ac_ext <<EOF 1216#line 1217 "configure" 1217#include "confdefs.h" 1218 1219int main() { 1220 1221; return 0; } 1222EOF 1223if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1224 rm -rf conftest* 1225 ac_R_nospace=yes 1226else 1227 echo "configure: failed program was:" >&5 1228 cat conftest.$ac_ext >&5 1229 rm -rf conftest* 1230 ac_R_nospace=no 1231fi 1232rm -f conftest* 1233 if test $ac_R_nospace = yes; then 1234 echo "$ac_t""no" 1>&6 1235 X_LIBS="$X_LIBS -R$x_libraries" 1236 else 1237 LIBS="$ac_xsave_LIBS -R $x_libraries" 1238 cat > conftest.$ac_ext <<EOF 1239#line 1240 "configure" 1240#include "confdefs.h" 1241 1242int main() { 1243 1244; return 0; } 1245EOF 1246if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1247 rm -rf conftest* 1248 ac_R_space=yes 1249else 1250 echo "configure: failed program was:" >&5 1251 cat conftest.$ac_ext >&5 1252 rm -rf conftest* 1253 ac_R_space=no 1254fi 1255rm -f conftest* 1256 if test $ac_R_space = yes; then 1257 echo "$ac_t""yes" 1>&6 1258 X_LIBS="$X_LIBS -R $x_libraries" 1259 else 1260 echo "$ac_t""neither works" 1>&6 1261 fi 1262 fi 1263 LIBS="$ac_xsave_LIBS" 1264 esac 1265 fi 1266 1267 # Check for system-dependent libraries X programs must link with. 1268 # Do this before checking for the system-independent R6 libraries 1269 # (-lICE), since we may need -lsocket or whatever for X linking. 1270 1271 if test "$ISC" = yes; then 1272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 1273 else 1274 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1275 # libraries were built with DECnet support. And karl@cs.umb.edu says 1276 # the Alpha needs dnet_stub (dnet does not exist). 1277 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 1278echo "configure:1279: checking for dnet_ntoa in -ldnet" >&5 1279ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1280if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1281 echo $ac_n "(cached) $ac_c" 1>&6 1282else 1283 ac_save_LIBS="$LIBS" 1284LIBS="-ldnet $LIBS" 1285cat > conftest.$ac_ext <<EOF 1286#line 1287 "configure" 1287#include "confdefs.h" 1288/* Override any gcc2 internal prototype to avoid an error. */ 1289/* We use char because int might match the return type of a gcc2 1290 builtin and then its argument prototype would still apply. */ 1291char dnet_ntoa(); 1292 1293int main() { 1294dnet_ntoa() 1295; return 0; } 1296EOF 1297if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1298 rm -rf conftest* 1299 eval "ac_cv_lib_$ac_lib_var=yes" 1300else 1301 echo "configure: failed program was:" >&5 1302 cat conftest.$ac_ext >&5 1303 rm -rf conftest* 1304 eval "ac_cv_lib_$ac_lib_var=no" 1305fi 1306rm -f conftest* 1307LIBS="$ac_save_LIBS" 1308 1309fi 1310if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1311 echo "$ac_t""yes" 1>&6 1312 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 1313else 1314 echo "$ac_t""no" 1>&6 1315fi 1316 1317 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 1318 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 1319echo "configure:1320: checking for dnet_ntoa in -ldnet_stub" >&5 1320ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1322 echo $ac_n "(cached) $ac_c" 1>&6 1323else 1324 ac_save_LIBS="$LIBS" 1325LIBS="-ldnet_stub $LIBS" 1326cat > conftest.$ac_ext <<EOF 1327#line 1328 "configure" 1328#include "confdefs.h" 1329/* Override any gcc2 internal prototype to avoid an error. */ 1330/* We use char because int might match the return type of a gcc2 1331 builtin and then its argument prototype would still apply. */ 1332char dnet_ntoa(); 1333 1334int main() { 1335dnet_ntoa() 1336; return 0; } 1337EOF 1338if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1339 rm -rf conftest* 1340 eval "ac_cv_lib_$ac_lib_var=yes" 1341else 1342 echo "configure: failed program was:" >&5 1343 cat conftest.$ac_ext >&5 1344 rm -rf conftest* 1345 eval "ac_cv_lib_$ac_lib_var=no" 1346fi 1347rm -f conftest* 1348LIBS="$ac_save_LIBS" 1349 1350fi 1351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1352 echo "$ac_t""yes" 1>&6 1353 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 1354else 1355 echo "$ac_t""no" 1>&6 1356fi 1357 1358 fi 1359 1360 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 1361 # to get the SysV transport functions. 1362 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 1363 # needs -lnsl. 1364 # The nsl library prevents programs from opening the X display 1365 # on Irix 5.2, according to dickey@clark.net. 1366 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1367echo "configure:1368: checking for gethostbyname" >&5 1368if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1369 echo $ac_n "(cached) $ac_c" 1>&6 1370else 1371 cat > conftest.$ac_ext <<EOF 1372#line 1373 "configure" 1373#include "confdefs.h" 1374/* System header to define __stub macros and hopefully few prototypes, 1375 which can conflict with char gethostbyname(); below. */ 1376#include <assert.h> 1377/* Override any gcc2 internal prototype to avoid an error. */ 1378/* We use char because int might match the return type of a gcc2 1379 builtin and then its argument prototype would still apply. */ 1380char gethostbyname(); 1381 1382int main() { 1383 1384/* The GNU C library defines this for functions which it implements 1385 to always fail with ENOSYS. Some functions are actually named 1386 something starting with __ and the normal name is an alias. */ 1387#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1388choke me 1389#else 1390gethostbyname(); 1391#endif 1392 1393; return 0; } 1394EOF 1395if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1396 rm -rf conftest* 1397 eval "ac_cv_func_gethostbyname=yes" 1398else 1399 echo "configure: failed program was:" >&5 1400 cat conftest.$ac_ext >&5 1401 rm -rf conftest* 1402 eval "ac_cv_func_gethostbyname=no" 1403fi 1404rm -f conftest* 1405fi 1406 1407if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1408 echo "$ac_t""yes" 1>&6 1409 : 1410else 1411 echo "$ac_t""no" 1>&6 1412fi 1413 1414 if test $ac_cv_func_gethostbyname = no; then 1415 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1416echo "configure:1417: checking for gethostbyname in -lnsl" >&5 1417ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1418if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1419 echo $ac_n "(cached) $ac_c" 1>&6 1420else 1421 ac_save_LIBS="$LIBS" 1422LIBS="-lnsl $LIBS" 1423cat > conftest.$ac_ext <<EOF 1424#line 1425 "configure" 1425#include "confdefs.h" 1426/* Override any gcc2 internal prototype to avoid an error. */ 1427/* We use char because int might match the return type of a gcc2 1428 builtin and then its argument prototype would still apply. */ 1429char gethostbyname(); 1430 1431int main() { 1432gethostbyname() 1433; return 0; } 1434EOF 1435if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1436 rm -rf conftest* 1437 eval "ac_cv_lib_$ac_lib_var=yes" 1438else 1439 echo "configure: failed program was:" >&5 1440 cat conftest.$ac_ext >&5 1441 rm -rf conftest* 1442 eval "ac_cv_lib_$ac_lib_var=no" 1443fi 1444rm -f conftest* 1445LIBS="$ac_save_LIBS" 1446 1447fi 1448if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1449 echo "$ac_t""yes" 1>&6 1450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 1451else 1452 echo "$ac_t""no" 1>&6 1453fi 1454 1455 fi 1456 1457 # lieder@skyler.mavd.honeywell.com says without -lsocket, 1458 # socket/setsockopt and other routines are undefined under SCO ODT 1459 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 1460 # on later versions), says simon@lia.di.epfl.ch: it contains 1461 # gethostby* variants that don't use the nameserver (or something). 1462 # -lsocket must be given before -lnsl if both are needed. 1463 # We assume that if connect needs -lnsl, so does gethostbyname. 1464 echo $ac_n "checking for connect""... $ac_c" 1>&6 1465echo "configure:1466: checking for connect" >&5 1466if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 1467 echo $ac_n "(cached) $ac_c" 1>&6 1468else 1469 cat > conftest.$ac_ext <<EOF 1470#line 1471 "configure" 1471#include "confdefs.h" 1472/* System header to define __stub macros and hopefully few prototypes, 1473 which can conflict with char connect(); below. */ 1474#include <assert.h> 1475/* Override any gcc2 internal prototype to avoid an error. */ 1476/* We use char because int might match the return type of a gcc2 1477 builtin and then its argument prototype would still apply. */ 1478char connect(); 1479 1480int main() { 1481 1482/* The GNU C library defines this for functions which it implements 1483 to always fail with ENOSYS. Some functions are actually named 1484 something starting with __ and the normal name is an alias. */ 1485#if defined (__stub_connect) || defined (__stub___connect) 1486choke me 1487#else 1488connect(); 1489#endif 1490 1491; return 0; } 1492EOF 1493if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1494 rm -rf conftest* 1495 eval "ac_cv_func_connect=yes" 1496else 1497 echo "configure: failed program was:" >&5 1498 cat conftest.$ac_ext >&5 1499 rm -rf conftest* 1500 eval "ac_cv_func_connect=no" 1501fi 1502rm -f conftest* 1503fi 1504 1505if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 1506 echo "$ac_t""yes" 1>&6 1507 : 1508else 1509 echo "$ac_t""no" 1>&6 1510fi 1511 1512 if test $ac_cv_func_connect = no; then 1513 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 1514echo "configure:1515: checking for connect in -lsocket" >&5 1515ac_lib_var=`echo socket'_'connect | 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 $X_EXTRA_LIBS $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 connect(); 1528 1529int main() { 1530connect() 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 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 1549else 1550 echo "$ac_t""no" 1>&6 1551fi 1552 1553 fi 1554 1555 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 1556 echo $ac_n "checking for remove""... $ac_c" 1>&6 1557echo "configure:1558: checking for remove" >&5 1558if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 1559 echo $ac_n "(cached) $ac_c" 1>&6 1560else 1561 cat > conftest.$ac_ext <<EOF 1562#line 1563 "configure" 1563#include "confdefs.h" 1564/* System header to define __stub macros and hopefully few prototypes, 1565 which can conflict with char remove(); below. */ 1566#include <assert.h> 1567/* Override any gcc2 internal prototype to avoid an error. */ 1568/* We use char because int might match the return type of a gcc2 1569 builtin and then its argument prototype would still apply. */ 1570char remove(); 1571 1572int main() { 1573 1574/* The GNU C library defines this for functions which it implements 1575 to always fail with ENOSYS. Some functions are actually named 1576 something starting with __ and the normal name is an alias. */ 1577#if defined (__stub_remove) || defined (__stub___remove) 1578choke me 1579#else 1580remove(); 1581#endif 1582 1583; return 0; } 1584EOF 1585if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1586 rm -rf conftest* 1587 eval "ac_cv_func_remove=yes" 1588else 1589 echo "configure: failed program was:" >&5 1590 cat conftest.$ac_ext >&5 1591 rm -rf conftest* 1592 eval "ac_cv_func_remove=no" 1593fi 1594rm -f conftest* 1595fi 1596 1597if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 1598 echo "$ac_t""yes" 1>&6 1599 : 1600else 1601 echo "$ac_t""no" 1>&6 1602fi 1603 1604 if test $ac_cv_func_remove = no; then 1605 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 1606echo "configure:1607: checking for remove in -lposix" >&5 1607ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 1608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1609 echo $ac_n "(cached) $ac_c" 1>&6 1610else 1611 ac_save_LIBS="$LIBS" 1612LIBS="-lposix $LIBS" 1613cat > conftest.$ac_ext <<EOF 1614#line 1615 "configure" 1615#include "confdefs.h" 1616/* Override any gcc2 internal prototype to avoid an error. */ 1617/* We use char because int might match the return type of a gcc2 1618 builtin and then its argument prototype would still apply. */ 1619char remove(); 1620 1621int main() { 1622remove() 1623; return 0; } 1624EOF 1625if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1626 rm -rf conftest* 1627 eval "ac_cv_lib_$ac_lib_var=yes" 1628else 1629 echo "configure: failed program was:" >&5 1630 cat conftest.$ac_ext >&5 1631 rm -rf conftest* 1632 eval "ac_cv_lib_$ac_lib_var=no" 1633fi 1634rm -f conftest* 1635LIBS="$ac_save_LIBS" 1636 1637fi 1638if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1639 echo "$ac_t""yes" 1>&6 1640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 1641else 1642 echo "$ac_t""no" 1>&6 1643fi 1644 1645 fi 1646 1647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 1648 echo $ac_n "checking for shmat""... $ac_c" 1>&6 1649echo "configure:1650: checking for shmat" >&5 1650if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 1651 echo $ac_n "(cached) $ac_c" 1>&6 1652else 1653 cat > conftest.$ac_ext <<EOF 1654#line 1655 "configure" 1655#include "confdefs.h" 1656/* System header to define __stub macros and hopefully few prototypes, 1657 which can conflict with char shmat(); below. */ 1658#include <assert.h> 1659/* Override any gcc2 internal prototype to avoid an error. */ 1660/* We use char because int might match the return type of a gcc2 1661 builtin and then its argument prototype would still apply. */ 1662char shmat(); 1663 1664int main() { 1665 1666/* The GNU C library defines this for functions which it implements 1667 to always fail with ENOSYS. Some functions are actually named 1668 something starting with __ and the normal name is an alias. */ 1669#if defined (__stub_shmat) || defined (__stub___shmat) 1670choke me 1671#else 1672shmat(); 1673#endif 1674 1675; return 0; } 1676EOF 1677if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1678 rm -rf conftest* 1679 eval "ac_cv_func_shmat=yes" 1680else 1681 echo "configure: failed program was:" >&5 1682 cat conftest.$ac_ext >&5 1683 rm -rf conftest* 1684 eval "ac_cv_func_shmat=no" 1685fi 1686rm -f conftest* 1687fi 1688 1689if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 1690 echo "$ac_t""yes" 1>&6 1691 : 1692else 1693 echo "$ac_t""no" 1>&6 1694fi 1695 1696 if test $ac_cv_func_shmat = no; then 1697 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 1698echo "configure:1699: checking for shmat in -lipc" >&5 1699ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 1700if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1701 echo $ac_n "(cached) $ac_c" 1>&6 1702else 1703 ac_save_LIBS="$LIBS" 1704LIBS="-lipc $LIBS" 1705cat > conftest.$ac_ext <<EOF 1706#line 1707 "configure" 1707#include "confdefs.h" 1708/* Override any gcc2 internal prototype to avoid an error. */ 1709/* We use char because int might match the return type of a gcc2 1710 builtin and then its argument prototype would still apply. */ 1711char shmat(); 1712 1713int main() { 1714shmat() 1715; return 0; } 1716EOF 1717if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1718 rm -rf conftest* 1719 eval "ac_cv_lib_$ac_lib_var=yes" 1720else 1721 echo "configure: failed program was:" >&5 1722 cat conftest.$ac_ext >&5 1723 rm -rf conftest* 1724 eval "ac_cv_lib_$ac_lib_var=no" 1725fi 1726rm -f conftest* 1727LIBS="$ac_save_LIBS" 1728 1729fi 1730if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1731 echo "$ac_t""yes" 1>&6 1732 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 1733else 1734 echo "$ac_t""no" 1>&6 1735fi 1736 1737 fi 1738 fi 1739 1740 # Check for libraries that X11R6 Xt/Xaw programs need. 1741 ac_save_LDFLAGS="$LDFLAGS" 1742 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 1743 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 1744 # check for ICE first), but we must link in the order -lSM -lICE or 1745 # we get undefined symbols. So assume we have SM if we have ICE. 1746 # These have to be linked with before -lX11, unlike the other 1747 # libraries we check for below, so use a different variable. 1748 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 1749 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 1750echo "configure:1751: checking for IceConnectionNumber in -lICE" >&5 1751ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 1752if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1753 echo $ac_n "(cached) $ac_c" 1>&6 1754else 1755 ac_save_LIBS="$LIBS" 1756LIBS="-lICE $X_EXTRA_LIBS $LIBS" 1757cat > conftest.$ac_ext <<EOF 1758#line 1759 "configure" 1759#include "confdefs.h" 1760/* Override any gcc2 internal prototype to avoid an error. */ 1761/* We use char because int might match the return type of a gcc2 1762 builtin and then its argument prototype would still apply. */ 1763char IceConnectionNumber(); 1764 1765int main() { 1766IceConnectionNumber() 1767; return 0; } 1768EOF 1769if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1770 rm -rf conftest* 1771 eval "ac_cv_lib_$ac_lib_var=yes" 1772else 1773 echo "configure: failed program was:" >&5 1774 cat conftest.$ac_ext >&5 1775 rm -rf conftest* 1776 eval "ac_cv_lib_$ac_lib_var=no" 1777fi 1778rm -f conftest* 1779LIBS="$ac_save_LIBS" 1780 1781fi 1782if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1783 echo "$ac_t""yes" 1>&6 1784 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 1785else 1786 echo "$ac_t""no" 1>&6 1787fi 1788 1789 LDFLAGS="$ac_save_LDFLAGS" 1790 1791fi 1792 1793echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1794echo "configure:1795: checking for ANSI C header files" >&5 1795if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1796 echo $ac_n "(cached) $ac_c" 1>&6 1797else 1798 cat > conftest.$ac_ext <<EOF 1799#line 1800 "configure" 1800#include "confdefs.h" 1801#include <stdlib.h> 1802#include <stdarg.h> 1803#include <string.h> 1804#include <float.h> 1805EOF 1806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1807{ (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1809if test -z "$ac_err"; then 1810 rm -rf conftest* 1811 ac_cv_header_stdc=yes 1812else 1813 echo "$ac_err" >&5 1814 echo "configure: failed program was:" >&5 1815 cat conftest.$ac_ext >&5 1816 rm -rf conftest* 1817 ac_cv_header_stdc=no 1818fi 1819rm -f conftest* 1820 1821if test $ac_cv_header_stdc = yes; then 1822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1823cat > conftest.$ac_ext <<EOF 1824#line 1825 "configure" 1825#include "confdefs.h" 1826#include <string.h> 1827EOF 1828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1829 egrep "memchr" >/dev/null 2>&1; then 1830 : 1831else 1832 rm -rf conftest* 1833 ac_cv_header_stdc=no 1834fi 1835rm -f conftest* 1836 1837fi 1838 1839if test $ac_cv_header_stdc = yes; then 1840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1841cat > conftest.$ac_ext <<EOF 1842#line 1843 "configure" 1843#include "confdefs.h" 1844#include <stdlib.h> 1845EOF 1846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1847 egrep "free" >/dev/null 2>&1; then 1848 : 1849else 1850 rm -rf conftest* 1851 ac_cv_header_stdc=no 1852fi 1853rm -f conftest* 1854 1855fi 1856 1857if test $ac_cv_header_stdc = yes; then 1858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1859if test "$cross_compiling" = yes; then 1860 : 1861else 1862 cat > conftest.$ac_ext <<EOF 1863#line 1864 "configure" 1864#include "confdefs.h" 1865#include <ctype.h> 1866#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1867#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1869int main () { int i; for (i = 0; i < 256; i++) 1870if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1871exit (0); } 1872 1873EOF 1874if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1875then 1876 : 1877else 1878 echo "configure: failed program was:" >&5 1879 cat conftest.$ac_ext >&5 1880 rm -fr conftest* 1881 ac_cv_header_stdc=no 1882fi 1883rm -fr conftest* 1884fi 1885 1886fi 1887fi 1888 1889echo "$ac_t""$ac_cv_header_stdc" 1>&6 1890if test $ac_cv_header_stdc = yes; then 1891 cat >> confdefs.h <<\EOF 1892#define STDC_HEADERS 1 1893EOF 1894 1895fi 1896 1897for ac_hdr in err.h fcntl.h sys/ioctl.h sys/queue.h unistd.h libgen.h net/if_tun.h 1898do 1899ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1900echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1901echo "configure:1902: checking for $ac_hdr" >&5 1902if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1903 echo $ac_n "(cached) $ac_c" 1>&6 1904else 1905 cat > conftest.$ac_ext <<EOF 1906#line 1907 "configure" 1907#include "confdefs.h" 1908#include <$ac_hdr> 1909EOF 1910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1911{ (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1913if test -z "$ac_err"; then 1914 rm -rf conftest* 1915 eval "ac_cv_header_$ac_safe=yes" 1916else 1917 echo "$ac_err" >&5 1918 echo "configure: failed program was:" >&5 1919 cat conftest.$ac_ext >&5 1920 rm -rf conftest* 1921 eval "ac_cv_header_$ac_safe=no" 1922fi 1923rm -f conftest* 1924fi 1925if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1926 echo "$ac_t""yes" 1>&6 1927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1928 cat >> confdefs.h <<EOF 1929#define $ac_tr_hdr 1 1930EOF 1931 1932else 1933 echo "$ac_t""no" 1>&6 1934fi 1935done 1936 1937echo $ac_n "checking for MIN and MAX in sys/param.h""... $ac_c" 1>&6 1938echo "configure:1939: checking for MIN and MAX in sys/param.h" >&5 1939cat > conftest.$ac_ext <<EOF 1940#line 1941 "configure" 1941#include "confdefs.h" 1942 1943#include <sys/param.h> 1944#if defined(MAX) && defined(MIN) 1945 yes 1946#endif 1947 1948EOF 1949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1950 egrep "yes" >/dev/null 2>&1; then 1951 rm -rf conftest* 1952 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1953#define HAVE_MINMAX 1 1954EOF 1955 1956else 1957 rm -rf conftest* 1958 echo "$ac_t""no" 1>&6 1959 1960fi 1961rm -f conftest* 1962 1963 1964echo $ac_n "checking for working const""... $ac_c" 1>&6 1965echo "configure:1966: checking for working const" >&5 1966if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1967 echo $ac_n "(cached) $ac_c" 1>&6 1968else 1969 cat > conftest.$ac_ext <<EOF 1970#line 1971 "configure" 1971#include "confdefs.h" 1972 1973int main() { 1974 1975/* Ultrix mips cc rejects this. */ 1976typedef int charset[2]; const charset x; 1977/* SunOS 4.1.1 cc rejects this. */ 1978char const *const *ccp; 1979char **p; 1980/* NEC SVR4.0.2 mips cc rejects this. */ 1981struct point {int x, y;}; 1982static struct point const zero = {0,0}; 1983/* AIX XL C 1.02.0.0 rejects this. 1984 It does not let you subtract one const X* pointer from another in an arm 1985 of an if-expression whose if-part is not a constant expression */ 1986const char *g = "string"; 1987ccp = &g + (g ? g-g : 0); 1988/* HPUX 7.0 cc rejects these. */ 1989++ccp; 1990p = (char**) ccp; 1991ccp = (char const *const *) p; 1992{ /* SCO 3.2v4 cc rejects this. */ 1993 char *t; 1994 char const *s = 0 ? (char *) 0 : (char const *) 0; 1995 1996 *t++ = 0; 1997} 1998{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1999 int x[] = {25, 17}; 2000 const int *foo = &x[0]; 2001 ++foo; 2002} 2003{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2004 typedef const int *iptr; 2005 iptr p = 0; 2006 ++p; 2007} 2008{ /* AIX XL C 1.02.0.0 rejects this saying 2009 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2010 struct s { int j; const int *ap[3]; }; 2011 struct s *b; b->j = 5; 2012} 2013{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2014 const int foo = 10; 2015} 2016 2017; return 0; } 2018EOF 2019if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2020 rm -rf conftest* 2021 ac_cv_c_const=yes 2022else 2023 echo "configure: failed program was:" >&5 2024 cat conftest.$ac_ext >&5 2025 rm -rf conftest* 2026 ac_cv_c_const=no 2027fi 2028rm -f conftest* 2029fi 2030 2031echo "$ac_t""$ac_cv_c_const" 1>&6 2032if test $ac_cv_c_const = no; then 2033 cat >> confdefs.h <<\EOF 2034#define const 2035EOF 2036 2037fi 2038 2039echo $ac_n "checking for size_t""... $ac_c" 1>&6 2040echo "configure:2041: checking for size_t" >&5 2041if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2042 echo $ac_n "(cached) $ac_c" 1>&6 2043else 2044 cat > conftest.$ac_ext <<EOF 2045#line 2046 "configure" 2046#include "confdefs.h" 2047#include <sys/types.h> 2048#if STDC_HEADERS 2049#include <stdlib.h> 2050#include <stddef.h> 2051#endif 2052EOF 2053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2054 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2055 rm -rf conftest* 2056 ac_cv_type_size_t=yes 2057else 2058 rm -rf conftest* 2059 ac_cv_type_size_t=no 2060fi 2061rm -f conftest* 2062 2063fi 2064echo "$ac_t""$ac_cv_type_size_t" 1>&6 2065if test $ac_cv_type_size_t = no; then 2066 cat >> confdefs.h <<\EOF 2067#define size_t unsigned 2068EOF 2069 2070fi 2071 2072echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2073echo "configure:2074: checking whether struct tm is in sys/time.h or time.h" >&5 2074if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2075 echo $ac_n "(cached) $ac_c" 1>&6 2076else 2077 cat > conftest.$ac_ext <<EOF 2078#line 2079 "configure" 2079#include "confdefs.h" 2080#include <sys/types.h> 2081#include <time.h> 2082int main() { 2083struct tm *tp; tp->tm_sec; 2084; return 0; } 2085EOF 2086if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2087 rm -rf conftest* 2088 ac_cv_struct_tm=time.h 2089else 2090 echo "configure: failed program was:" >&5 2091 cat conftest.$ac_ext >&5 2092 rm -rf conftest* 2093 ac_cv_struct_tm=sys/time.h 2094fi 2095rm -f conftest* 2096fi 2097 2098echo "$ac_t""$ac_cv_struct_tm" 1>&6 2099if test $ac_cv_struct_tm = sys/time.h; then 2100 cat >> confdefs.h <<\EOF 2101#define TM_IN_SYS_TIME 1 2102EOF 2103 2104fi 2105 2106echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6 2107echo "configure:2108: checking for u_int32_t" >&5 2108if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then 2109 echo $ac_n "(cached) $ac_c" 1>&6 2110else 2111 cat > conftest.$ac_ext <<EOF 2112#line 2113 "configure" 2113#include "confdefs.h" 2114#include <sys/types.h> 2115#if STDC_HEADERS 2116#include <stdlib.h> 2117#include <stddef.h> 2118#endif 2119EOF 2120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2121 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2122 rm -rf conftest* 2123 ac_cv_type_u_int32_t=yes 2124else 2125 rm -rf conftest* 2126 ac_cv_type_u_int32_t=no 2127fi 2128rm -f conftest* 2129 2130fi 2131echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6 2132if test $ac_cv_type_u_int32_t = no; then 2133 cat >> confdefs.h <<\EOF 2134#define u_int32_t uint32_t 2135EOF 2136 2137fi 2138 2139echo $ac_n "checking for u_int64_t""... $ac_c" 1>&6 2140echo "configure:2141: checking for u_int64_t" >&5 2141if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then 2142 echo $ac_n "(cached) $ac_c" 1>&6 2143else 2144 cat > conftest.$ac_ext <<EOF 2145#line 2146 "configure" 2146#include "confdefs.h" 2147#include <sys/types.h> 2148#if STDC_HEADERS 2149#include <stdlib.h> 2150#include <stddef.h> 2151#endif 2152EOF 2153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2154 egrep "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2155 rm -rf conftest* 2156 ac_cv_type_u_int64_t=yes 2157else 2158 rm -rf conftest* 2159 ac_cv_type_u_int64_t=no 2160fi 2161rm -f conftest* 2162 2163fi 2164echo "$ac_t""$ac_cv_type_u_int64_t" 1>&6 2165if test $ac_cv_type_u_int64_t = no; then 2166 cat >> confdefs.h <<\EOF 2167#define u_int64_t uint64_t 2168EOF 2169 2170fi 2171 2172echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6 2173echo "configure:2174: checking for in_addr_t" >&5 2174if eval "test \"`echo '$''{'ac_cv_type_in_addr_t'+set}'`\" = set"; then 2175 echo $ac_n "(cached) $ac_c" 1>&6 2176else 2177 cat > conftest.$ac_ext <<EOF 2178#line 2179 "configure" 2179#include "confdefs.h" 2180#include <sys/types.h> 2181#if STDC_HEADERS 2182#include <stdlib.h> 2183#include <stddef.h> 2184#endif 2185EOF 2186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2187 egrep "(^|[^a-zA-Z_0-9])in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2188 rm -rf conftest* 2189 ac_cv_type_in_addr_t=yes 2190else 2191 rm -rf conftest* 2192 ac_cv_type_in_addr_t=no 2193fi 2194rm -f conftest* 2195 2196fi 2197echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6 2198if test $ac_cv_type_in_addr_t = no; then 2199 cat >> confdefs.h <<\EOF 2200#define in_addr_t u_int32_t 2201EOF 2202 2203fi 2204 2205CFLAGS="$CFLAGS -D_BSD_SOURCE" 2206 2207if test $ac_cv_prog_gcc = yes; then 2208 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2209echo "configure:2210: checking whether ${CC-cc} needs -traditional" >&5 2210if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2211 echo $ac_n "(cached) $ac_c" 1>&6 2212else 2213 ac_pattern="Autoconf.*'x'" 2214 cat > conftest.$ac_ext <<EOF 2215#line 2216 "configure" 2216#include "confdefs.h" 2217#include <sgtty.h> 2218Autoconf TIOCGETP 2219EOF 2220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2221 egrep "$ac_pattern" >/dev/null 2>&1; then 2222 rm -rf conftest* 2223 ac_cv_prog_gcc_traditional=yes 2224else 2225 rm -rf conftest* 2226 ac_cv_prog_gcc_traditional=no 2227fi 2228rm -f conftest* 2229 2230 2231 if test $ac_cv_prog_gcc_traditional = no; then 2232 cat > conftest.$ac_ext <<EOF 2233#line 2234 "configure" 2234#include "confdefs.h" 2235#include <termio.h> 2236Autoconf TCGETA 2237EOF 2238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2239 egrep "$ac_pattern" >/dev/null 2>&1; then 2240 rm -rf conftest* 2241 ac_cv_prog_gcc_traditional=yes 2242fi 2243rm -f conftest* 2244 2245 fi 2246fi 2247 2248echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 2249 if test $ac_cv_prog_gcc_traditional = yes; then 2250 CC="$CC -traditional" 2251 fi 2252fi 2253 2254echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 2255echo "configure:2256: checking for 8-bit clean memcmp" >&5 2256if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then 2257 echo $ac_n "(cached) $ac_c" 1>&6 2258else 2259 if test "$cross_compiling" = yes; then 2260 ac_cv_func_memcmp_clean=no 2261else 2262 cat > conftest.$ac_ext <<EOF 2263#line 2264 "configure" 2264#include "confdefs.h" 2265 2266main() 2267{ 2268 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 2269 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); 2270} 2271 2272EOF 2273if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2274then 2275 ac_cv_func_memcmp_clean=yes 2276else 2277 echo "configure: failed program was:" >&5 2278 cat conftest.$ac_ext >&5 2279 rm -fr conftest* 2280 ac_cv_func_memcmp_clean=no 2281fi 2282rm -fr conftest* 2283fi 2284 2285fi 2286 2287echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 2288test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" 2289 2290echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2291echo "configure:2292: checking return type of signal handlers" >&5 2292if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2293 echo $ac_n "(cached) $ac_c" 1>&6 2294else 2295 cat > conftest.$ac_ext <<EOF 2296#line 2297 "configure" 2297#include "confdefs.h" 2298#include <sys/types.h> 2299#include <signal.h> 2300#ifdef signal 2301#undef signal 2302#endif 2303#ifdef __cplusplus 2304extern "C" void (*signal (int, void (*)(int)))(int); 2305#else 2306void (*signal ()) (); 2307#endif 2308 2309int main() { 2310int i; 2311; return 0; } 2312EOF 2313if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2314 rm -rf conftest* 2315 ac_cv_type_signal=void 2316else 2317 echo "configure: failed program was:" >&5 2318 cat conftest.$ac_ext >&5 2319 rm -rf conftest* 2320 ac_cv_type_signal=int 2321fi 2322rm -f conftest* 2323fi 2324 2325echo "$ac_t""$ac_cv_type_signal" 1>&6 2326cat >> confdefs.h <<EOF 2327#define RETSIGTYPE $ac_cv_type_signal 2328EOF 2329 2330 2331echo $ac_n "checking for strftime""... $ac_c" 1>&6 2332echo "configure:2333: checking for strftime" >&5 2333if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then 2334 echo $ac_n "(cached) $ac_c" 1>&6 2335else 2336 cat > conftest.$ac_ext <<EOF 2337#line 2338 "configure" 2338#include "confdefs.h" 2339/* System header to define __stub macros and hopefully few prototypes, 2340 which can conflict with char strftime(); below. */ 2341#include <assert.h> 2342/* Override any gcc2 internal prototype to avoid an error. */ 2343/* We use char because int might match the return type of a gcc2 2344 builtin and then its argument prototype would still apply. */ 2345char strftime(); 2346 2347int main() { 2348 2349/* The GNU C library defines this for functions which it implements 2350 to always fail with ENOSYS. Some functions are actually named 2351 something starting with __ and the normal name is an alias. */ 2352#if defined (__stub_strftime) || defined (__stub___strftime) 2353choke me 2354#else 2355strftime(); 2356#endif 2357 2358; return 0; } 2359EOF 2360if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2361 rm -rf conftest* 2362 eval "ac_cv_func_strftime=yes" 2363else 2364 echo "configure: failed program was:" >&5 2365 cat conftest.$ac_ext >&5 2366 rm -rf conftest* 2367 eval "ac_cv_func_strftime=no" 2368fi 2369rm -f conftest* 2370fi 2371 2372if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then 2373 echo "$ac_t""yes" 1>&6 2374 cat >> confdefs.h <<\EOF 2375#define HAVE_STRFTIME 1 2376EOF 2377 2378else 2379 echo "$ac_t""no" 1>&6 2380# strftime is in -lintl on SCO UNIX. 2381echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 2382echo "configure:2383: checking for strftime in -lintl" >&5 2383ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` 2384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2385 echo $ac_n "(cached) $ac_c" 1>&6 2386else 2387 ac_save_LIBS="$LIBS" 2388LIBS="-lintl $LIBS" 2389cat > conftest.$ac_ext <<EOF 2390#line 2391 "configure" 2391#include "confdefs.h" 2392/* Override any gcc2 internal prototype to avoid an error. */ 2393/* We use char because int might match the return type of a gcc2 2394 builtin and then its argument prototype would still apply. */ 2395char strftime(); 2396 2397int main() { 2398strftime() 2399; return 0; } 2400EOF 2401if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2402 rm -rf conftest* 2403 eval "ac_cv_lib_$ac_lib_var=yes" 2404else 2405 echo "configure: failed program was:" >&5 2406 cat conftest.$ac_ext >&5 2407 rm -rf conftest* 2408 eval "ac_cv_lib_$ac_lib_var=no" 2409fi 2410rm -f conftest* 2411LIBS="$ac_save_LIBS" 2412 2413fi 2414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2415 echo "$ac_t""yes" 1>&6 2416 cat >> confdefs.h <<\EOF 2417#define HAVE_STRFTIME 1 2418EOF 2419 2420LIBS="-lintl $LIBS" 2421else 2422 echo "$ac_t""no" 1>&6 2423fi 2424 2425fi 2426 2427for ac_func in gethostname socket strdup strstr 2428do 2429echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2430echo "configure:2431: checking for $ac_func" >&5 2431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2432 echo $ac_n "(cached) $ac_c" 1>&6 2433else 2434 cat > conftest.$ac_ext <<EOF 2435#line 2436 "configure" 2436#include "confdefs.h" 2437/* System header to define __stub macros and hopefully few prototypes, 2438 which can conflict with char $ac_func(); below. */ 2439#include <assert.h> 2440/* Override any gcc2 internal prototype to avoid an error. */ 2441/* We use char because int might match the return type of a gcc2 2442 builtin and then its argument prototype would still apply. */ 2443char $ac_func(); 2444 2445int main() { 2446 2447/* The GNU C library defines this for functions which it implements 2448 to always fail with ENOSYS. Some functions are actually named 2449 something starting with __ and the normal name is an alias. */ 2450#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2451choke me 2452#else 2453$ac_func(); 2454#endif 2455 2456; return 0; } 2457EOF 2458if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2459 rm -rf conftest* 2460 eval "ac_cv_func_$ac_func=yes" 2461else 2462 echo "configure: failed program was:" >&5 2463 cat conftest.$ac_ext >&5 2464 rm -rf conftest* 2465 eval "ac_cv_func_$ac_func=no" 2466fi 2467rm -f conftest* 2468fi 2469 2470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2471 echo "$ac_t""yes" 1>&6 2472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2473 cat >> confdefs.h <<EOF 2474#define $ac_tr_func 1 2475EOF 2476 2477else 2478 echo "$ac_t""no" 1>&6 2479fi 2480done 2481 2482echo $ac_n "checking for xdr_fhstatus in -lrpcsvc""... $ac_c" 1>&6 2483echo "configure:2484: checking for xdr_fhstatus in -lrpcsvc" >&5 2484ac_lib_var=`echo rpcsvc'_'xdr_fhstatus | sed 'y%./+-%__p_%'` 2485if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2486 echo $ac_n "(cached) $ac_c" 1>&6 2487else 2488 ac_save_LIBS="$LIBS" 2489LIBS="-lrpcsvc $LIBS" 2490cat > conftest.$ac_ext <<EOF 2491#line 2492 "configure" 2492#include "confdefs.h" 2493/* Override any gcc2 internal prototype to avoid an error. */ 2494/* We use char because int might match the return type of a gcc2 2495 builtin and then its argument prototype would still apply. */ 2496char xdr_fhstatus(); 2497 2498int main() { 2499xdr_fhstatus() 2500; return 0; } 2501EOF 2502if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2503 rm -rf conftest* 2504 eval "ac_cv_lib_$ac_lib_var=yes" 2505else 2506 echo "configure: failed program was:" >&5 2507 cat conftest.$ac_ext >&5 2508 rm -rf conftest* 2509 eval "ac_cv_lib_$ac_lib_var=no" 2510fi 2511rm -f conftest* 2512LIBS="$ac_save_LIBS" 2513 2514fi 2515if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2516 echo "$ac_t""yes" 1>&6 2517 ac_tr_lib=HAVE_LIB`echo rpcsvc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2519 cat >> confdefs.h <<EOF 2520#define $ac_tr_lib 1 2521EOF 2522 2523 LIBS="-lrpcsvc $LIBS" 2524 2525else 2526 echo "$ac_t""no" 1>&6 2527fi 2528 2529echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 2530echo "configure:2531: checking for socket in -lsocket" >&5 2531ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 2532if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2533 echo $ac_n "(cached) $ac_c" 1>&6 2534else 2535 ac_save_LIBS="$LIBS" 2536LIBS="-lsocket $LIBS" 2537cat > conftest.$ac_ext <<EOF 2538#line 2539 "configure" 2539#include "confdefs.h" 2540/* Override any gcc2 internal prototype to avoid an error. */ 2541/* We use char because int might match the return type of a gcc2 2542 builtin and then its argument prototype would still apply. */ 2543char socket(); 2544 2545int main() { 2546socket() 2547; return 0; } 2548EOF 2549if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2550 rm -rf conftest* 2551 eval "ac_cv_lib_$ac_lib_var=yes" 2552else 2553 echo "configure: failed program was:" >&5 2554 cat conftest.$ac_ext >&5 2555 rm -rf conftest* 2556 eval "ac_cv_lib_$ac_lib_var=no" 2557fi 2558rm -f conftest* 2559LIBS="$ac_save_LIBS" 2560 2561fi 2562if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2563 echo "$ac_t""yes" 1>&6 2564 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2566 cat >> confdefs.h <<EOF 2567#define $ac_tr_lib 1 2568EOF 2569 2570 LIBS="-lsocket $LIBS" 2571 2572else 2573 echo "$ac_t""no" 1>&6 2574fi 2575 2576echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 2577echo "configure:2578: checking for gethostbyname in -lnsl" >&5 2578ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 2579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2580 echo $ac_n "(cached) $ac_c" 1>&6 2581else 2582 ac_save_LIBS="$LIBS" 2583LIBS="-lnsl $LIBS" 2584cat > conftest.$ac_ext <<EOF 2585#line 2586 "configure" 2586#include "confdefs.h" 2587/* Override any gcc2 internal prototype to avoid an error. */ 2588/* We use char because int might match the return type of a gcc2 2589 builtin and then its argument prototype would still apply. */ 2590char gethostbyname(); 2591 2592int main() { 2593gethostbyname() 2594; return 0; } 2595EOF 2596if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2597 rm -rf conftest* 2598 eval "ac_cv_lib_$ac_lib_var=yes" 2599else 2600 echo "configure: failed program was:" >&5 2601 cat conftest.$ac_ext >&5 2602 rm -rf conftest* 2603 eval "ac_cv_lib_$ac_lib_var=no" 2604fi 2605rm -f conftest* 2606LIBS="$ac_save_LIBS" 2607 2608fi 2609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2610 echo "$ac_t""yes" 1>&6 2611 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2612 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2613 cat >> confdefs.h <<EOF 2614#define $ac_tr_lib 1 2615EOF 2616 2617 LIBS="-lnsl $LIBS" 2618 2619else 2620 echo "$ac_t""no" 1>&6 2621fi 2622 2623echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6 2624echo "configure:2625: checking for dn_expand in -lresolv" >&5 2625ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'` 2626if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2627 echo $ac_n "(cached) $ac_c" 1>&6 2628else 2629 ac_save_LIBS="$LIBS" 2630LIBS="-lresolv $LIBS" 2631cat > conftest.$ac_ext <<EOF 2632#line 2633 "configure" 2633#include "confdefs.h" 2634/* Override any gcc2 internal prototype to avoid an error. */ 2635/* We use char because int might match the return type of a gcc2 2636 builtin and then its argument prototype would still apply. */ 2637char dn_expand(); 2638 2639int main() { 2640dn_expand() 2641; return 0; } 2642EOF 2643if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2644 rm -rf conftest* 2645 eval "ac_cv_lib_$ac_lib_var=yes" 2646else 2647 echo "configure: failed program was:" >&5 2648 cat conftest.$ac_ext >&5 2649 rm -rf conftest* 2650 eval "ac_cv_lib_$ac_lib_var=no" 2651fi 2652rm -f conftest* 2653LIBS="$ac_save_LIBS" 2654 2655fi 2656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2657 echo "$ac_t""yes" 1>&6 2658 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2660 cat >> confdefs.h <<EOF 2661#define $ac_tr_lib 1 2662EOF 2663 2664 LIBS="-lresolv $LIBS" 2665 2666else 2667 echo "$ac_t""no" 1>&6 2668fi 2669 2670for ac_func in dirname strlcpy strlcat strsep 2671do 2672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2673echo "configure:2674: checking for $ac_func" >&5 2674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2675 echo $ac_n "(cached) $ac_c" 1>&6 2676else 2677 cat > conftest.$ac_ext <<EOF 2678#line 2679 "configure" 2679#include "confdefs.h" 2680/* System header to define __stub macros and hopefully few prototypes, 2681 which can conflict with char $ac_func(); below. */ 2682#include <assert.h> 2683/* Override any gcc2 internal prototype to avoid an error. */ 2684/* We use char because int might match the return type of a gcc2 2685 builtin and then its argument prototype would still apply. */ 2686char $ac_func(); 2687 2688int main() { 2689 2690/* The GNU C library defines this for functions which it implements 2691 to always fail with ENOSYS. Some functions are actually named 2692 something starting with __ and the normal name is an alias. */ 2693#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2694choke me 2695#else 2696$ac_func(); 2697#endif 2698 2699; return 0; } 2700EOF 2701if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2702 rm -rf conftest* 2703 eval "ac_cv_func_$ac_func=yes" 2704else 2705 echo "configure: failed program was:" >&5 2706 cat conftest.$ac_ext >&5 2707 rm -rf conftest* 2708 eval "ac_cv_func_$ac_func=no" 2709fi 2710rm -f conftest* 2711fi 2712 2713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2714 echo "$ac_t""yes" 1>&6 2715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2716 cat >> confdefs.h <<EOF 2717#define $ac_tr_func 1 2718EOF 2719 2720else 2721 echo "$ac_t""no" 1>&6 2722LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2723fi 2724done 2725 2726 2727needmd5=no 2728for ac_func in MD5Update 2729do 2730echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2731echo "configure:2732: checking for $ac_func" >&5 2732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2733 echo $ac_n "(cached) $ac_c" 1>&6 2734else 2735 cat > conftest.$ac_ext <<EOF 2736#line 2737 "configure" 2737#include "confdefs.h" 2738/* System header to define __stub macros and hopefully few prototypes, 2739 which can conflict with char $ac_func(); below. */ 2740#include <assert.h> 2741/* Override any gcc2 internal prototype to avoid an error. */ 2742/* We use char because int might match the return type of a gcc2 2743 builtin and then its argument prototype would still apply. */ 2744char $ac_func(); 2745 2746int main() { 2747 2748/* The GNU C library defines this for functions which it implements 2749 to always fail with ENOSYS. Some functions are actually named 2750 something starting with __ and the normal name is an alias. */ 2751#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2752choke me 2753#else 2754$ac_func(); 2755#endif 2756 2757; return 0; } 2758EOF 2759if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2760 rm -rf conftest* 2761 eval "ac_cv_func_$ac_func=yes" 2762else 2763 echo "configure: failed program was:" >&5 2764 cat conftest.$ac_ext >&5 2765 rm -rf conftest* 2766 eval "ac_cv_func_$ac_func=no" 2767fi 2768rm -f conftest* 2769fi 2770 2771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2772 echo "$ac_t""yes" 1>&6 2773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2774 cat >> confdefs.h <<EOF 2775#define $ac_tr_func 1 2776EOF 2777 2778else 2779 echo "$ac_t""no" 1>&6 2780needmd5=yes 2781fi 2782done 2783 2784if test $needmd5 = yes; then 2785 LIBOBJS="$LIBOBJS md5.o" 2786fi 2787neederr=no 2788for ac_func in warnx 2789do 2790echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2791echo "configure:2792: checking for $ac_func" >&5 2792if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2793 echo $ac_n "(cached) $ac_c" 1>&6 2794else 2795 cat > conftest.$ac_ext <<EOF 2796#line 2797 "configure" 2797#include "confdefs.h" 2798/* System header to define __stub macros and hopefully few prototypes, 2799 which can conflict with char $ac_func(); below. */ 2800#include <assert.h> 2801/* Override any gcc2 internal prototype to avoid an error. */ 2802/* We use char because int might match the return type of a gcc2 2803 builtin and then its argument prototype would still apply. */ 2804char $ac_func(); 2805 2806int main() { 2807 2808/* The GNU C library defines this for functions which it implements 2809 to always fail with ENOSYS. Some functions are actually named 2810 something starting with __ and the normal name is an alias. */ 2811#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2812choke me 2813#else 2814$ac_func(); 2815#endif 2816 2817; return 0; } 2818EOF 2819if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2820 rm -rf conftest* 2821 eval "ac_cv_func_$ac_func=yes" 2822else 2823 echo "configure: failed program was:" >&5 2824 cat conftest.$ac_ext >&5 2825 rm -rf conftest* 2826 eval "ac_cv_func_$ac_func=no" 2827fi 2828rm -f conftest* 2829fi 2830 2831if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2832 echo "$ac_t""yes" 1>&6 2833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2834 cat >> confdefs.h <<EOF 2835#define $ac_tr_func 1 2836EOF 2837 2838else 2839 echo "$ac_t""no" 1>&6 2840neederr=yes 2841fi 2842done 2843 2844if test $neederr = yes; then 2845 LIBOBJS="$LIBOBJS err.o" 2846fi 2847needethers=no 2848for ac_func in ether_ntoa 2849do 2850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2851echo "configure:2852: checking for $ac_func" >&5 2852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2853 echo $ac_n "(cached) $ac_c" 1>&6 2854else 2855 cat > conftest.$ac_ext <<EOF 2856#line 2857 "configure" 2857#include "confdefs.h" 2858/* System header to define __stub macros and hopefully few prototypes, 2859 which can conflict with char $ac_func(); below. */ 2860#include <assert.h> 2861/* Override any gcc2 internal prototype to avoid an error. */ 2862/* We use char because int might match the return type of a gcc2 2863 builtin and then its argument prototype would still apply. */ 2864char $ac_func(); 2865 2866int main() { 2867 2868/* The GNU C library defines this for functions which it implements 2869 to always fail with ENOSYS. Some functions are actually named 2870 something starting with __ and the normal name is an alias. */ 2871#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2872choke me 2873#else 2874$ac_func(); 2875#endif 2876 2877; return 0; } 2878EOF 2879if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2880 rm -rf conftest* 2881 eval "ac_cv_func_$ac_func=yes" 2882else 2883 echo "configure: failed program was:" >&5 2884 cat conftest.$ac_ext >&5 2885 rm -rf conftest* 2886 eval "ac_cv_func_$ac_func=no" 2887fi 2888rm -f conftest* 2889fi 2890 2891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2892 echo "$ac_t""yes" 1>&6 2893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2894 cat >> confdefs.h <<EOF 2895#define $ac_tr_func 1 2896EOF 2897 2898else 2899 echo "$ac_t""no" 1>&6 2900needethers=yes 2901fi 2902done 2903 2904if test $needethers = yes; then 2905 LIBOBJS="$LIBOBJS ethers.o" 2906fi 2907 2908 2909 2910if test "x$no_x" = "x"; then 2911 WEBSPY="webspy"; 2912fi 2913 2914echo $ac_n "checking for Berkeley DB with 1.85 compatibility""... $ac_c" 1>&6 2915echo "configure:2916: checking for Berkeley DB with 1.85 compatibility" >&5 2916# Check whether --with-db or --without-db was given. 2917if test "${with_db+set}" = set; then 2918 withval="$with_db" 2919 case "$withval" in 2920 yes|no) 2921 echo "$ac_t""no" 1>&6 2922 ;; 2923 *) 2924 echo "$ac_t""$withval" 1>&6 2925 if test -f $withval/build_unix/db_185.h -a \ 2926 -f $withval/build_unix/libdb.a; then 2927 owd=`pwd` 2928 if cd $withval; then withval=`pwd`; cd $owd; fi 2929 cat >> confdefs.h <<\EOF 2930#define HAVE_DB_185_H 1 2931EOF 2932 2933 DBINC="-I$withval/build_unix" 2934 DBLIB="-L$withval/build_unix -ldb" 2935 elif test -f $withval/dist/db_185.h -a \ 2936 -f $withval/dist/libdb.a; then 2937 owd=`pwd` 2938 if cd $withval; then withval=`pwd`; cd $owd; fi 2939 cat >> confdefs.h <<\EOF 2940#define HAVE_DB_185_H 1 2941EOF 2942 2943 DBINC="-I$withval/dist" 2944 DBLIB="-L$withval/dist -ldb" 2945 elif test -f $withval/include/db_185.h -a \ 2946 -f $withval/lib/libdb.a; then 2947 owd=`pwd` 2948 if cd $withval; then withval=`pwd`; cd $owd; fi 2949 cat >> confdefs.h <<\EOF 2950#define HAVE_DB_185_H 1 2951EOF 2952 2953 DBINC="-I$withval/include" 2954 DBLIB="-L$withval/lib -ldb" 2955 else 2956 { echo "configure: error: db_185.h or libdb.a not found in $withval or not configured with --enable-compat185" 1>&2; exit 1; } 2957 fi 2958 ;; 2959 esac 2960else 2961 for dir in ${prefix}/BerkeleyDB.3.1 ${prefix}/BerkeleyDB.3.0 \ 2962 ${prefix}/BerkeleyDB ${prefix}/db ${prefix}; do 2963 if test -f ${dir}/include/db_185.h; then 2964 cat >> confdefs.h <<\EOF 2965#define HAVE_DB_185_H 1 2966EOF 2967 2968 DBINC="-I${dir}/include" 2969 DBLIB="-L${dir}/lib -ldb" 2970 have_db=yes 2971 break 2972 elif test -f ${dir}/include/db.h; then 2973 cat >> confdefs.h <<\EOF 2974#define HAVE_DB_H 1 2975EOF 2976 2977 DBINC="-I${dir}/include" 2978 DBLIB="-L${dir}/lib -ldb" 2979 have_db=yes 2980 break 2981 fi 2982 done 2983 if test "x$have_db" = "x"; then 2984 if test -f /usr/include/db2/db_185.h; then 2985 cat >> confdefs.h <<\EOF 2986#define HAVE_DB_185_H 1 2987EOF 2988 2989 DBINC="-I/usr/include/db2" 2990 DBLIB="-ldb2" 2991 have_db=yes 2992 elif test -f /usr/include/db_185.h; then 2993 cat >> confdefs.h <<\EOF 2994#define HAVE_DB_185_H 1 2995EOF 2996 2997 DBLIB="-ldb" 2998 have_db=yes 2999 elif test -f /usr/include/db.h; then 3000 cat >> confdefs.h <<\EOF 3001#define HAVE_DB_H 1 3002EOF 3003 3004 have_db=yes 3005 fi 3006 fi 3007 if test "x$have_db" = "x"; then 3008 { echo "configure: error: Berkeley DB with 1.85 compatibility not found" 1>&2; exit 1; } 3009 fi 3010 echo "$ac_t""yes" 1>&6 3011 3012fi 3013 3014 3015 3016 3017echo $ac_n "checking for libpcap""... $ac_c" 1>&6 3018echo "configure:3019: checking for libpcap" >&5 3019# Check whether --with-libpcap or --without-libpcap was given. 3020if test "${with_libpcap+set}" = set; then 3021 withval="$with_libpcap" 3022 case "$withval" in 3023 yes|no) 3024 echo "$ac_t""no" 1>&6 3025 ;; 3026 *) 3027 echo "$ac_t""$withval" 1>&6 3028 if test -f $withval/pcap.h -a -f $withval/libpcap.a; then 3029 owd=`pwd` 3030 if cd $withval; then withval=`pwd`; cd $owd; fi 3031 PCAPINC="-I$withval -I$withval/bpf" 3032 PCAPLIB="-L$withval -lpcap" 3033 elif test -f $withval/include/pcap.h -a \ 3034 -f $withval/include/net/bpf.h -a \ 3035 -f $withval/lib/libpcap.a; then 3036 owd=`pwd` 3037 if cd $withval; then withval=`pwd`; cd $owd; fi 3038 PCAPINC="-I$withval/include" 3039 PCAPLIB="-L$withval/lib -lpcap" 3040 else 3041 { echo "configure: error: pcap.h" 1>&2; exit 1; } 3042 fi 3043 ;; 3044 esac 3045else 3046 if test -f ${prefix}/include/pcap.h; then 3047 PCAPINC="-I${prefix}/include" 3048 PCAPLIB="-L${prefix}/lib -lpcap" 3049 elif test -f /usr/include/pcap/pcap.h; then 3050 PCAPINC="-I/usr/include/pcap" 3051 PCAPLIB="-lpcap" 3052 elif test -f /usr/include/pcap.h; then 3053 PCAPLIB="-lpcap" 3054 else 3055 echo "$ac_t""no" 1>&6 3056 { echo "configure: error: libpcap not found" 1>&2; exit 1; } 3057 fi 3058 echo "$ac_t""yes" 1>&6 3059 3060fi 3061 3062 3063 3064 3065echo $ac_n "checking for libnet""... $ac_c" 1>&6 3066echo "configure:3067: checking for libnet" >&5 3067# Check whether --with-libnet or --without-libnet was given. 3068if test "${with_libnet+set}" = set; then 3069 withval="$with_libnet" 3070 case "$withval" in 3071 yes|no) 3072 echo "$ac_t""no" 1>&6 3073 ;; 3074 *) 3075 echo "$ac_t""$withval" 1>&6 3076 if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then 3077 owd=`pwd` 3078 if cd $withval; then withval=`pwd`; cd $owd; fi 3079 if test -f $withval/bin/libnet-config; then 3080 CFLAGS="$CFLAGS `$withval/bin/libnet-config --defines`" 3081 elif test -f $withval/libnet-config; then 3082 CFLAGS="$CFLAGS `$withval/libnet-config --defines`" 3083 else 3084 CFLAGS="$CFLAGS `libnet-config --defines`" 3085 fi 3086 LNETINC="-I$withval/include" 3087 LNETLIB="-L$withval/lib -lnet" 3088 else 3089 { echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; } 3090 fi 3091 ;; 3092 esac 3093else 3094 if test -f ${prefix}/include/libnet.h; then 3095 CFLAGS="$CFLAGS `${prefix}/bin/libnet-config --defines`" 3096 LNETINC="-I${prefix}/include" 3097 LNETLIB="-L${prefix}/lib -lnet" 3098 elif test -f /usr/include/libnet.h; then 3099 CFLAGS="$CFLAGS `libnet-config --defines`" 3100 LNETLIB="-lnet" 3101 else 3102 echo "$ac_t""no" 1>&6 3103 { echo "configure: error: libnet not found" 1>&2; exit 1; } 3104 fi 3105 echo "$ac_t""yes" 1>&6 3106 3107fi 3108 3109 3110 3111 3112echo $ac_n "checking for libnids""... $ac_c" 1>&6 3113echo "configure:3114: checking for libnids" >&5 3114# Check whether --with-libnids or --without-libnids was given. 3115if test "${with_libnids+set}" = set; then 3116 withval="$with_libnids" 3117 case "$withval" in 3118 yes|no) 3119 echo "$ac_t""no" 1>&6 3120 ;; 3121 *) 3122 echo "$ac_t""$withval" 1>&6 3123 if test -f $withval/src/nids.h -a -f $withval/src/libnids.a; then 3124 owd=`pwd` 3125 if cd $withval; then withval=`pwd`; cd $owd; fi 3126 NIDSINC="-I$withval/src" 3127 NIDSLIB="-L$withval/src -lnids" 3128 elif test -f $withval/include/nids.h -a -f $withval/lib/libnids.a; then 3129 owd=`pwd` 3130 if cd $withval; then withval=`pwd`; cd $owd; fi 3131 NIDSINC="-I$withval/include" 3132 NIDSLIB="-L$withval/lib -lnids" 3133 else 3134 { echo "configure: error: nids.h or libnids.a not found in $withval" 1>&2; exit 1; } 3135 fi 3136 ;; 3137 esac 3138else 3139 if test -f ${prefix}/include/nids.h; then 3140 NIDSINC="-I${prefix}/include" 3141 NIDSLIB="-L${prefix}/lib -lnids" 3142 elif test -f /usr/include/nids.h; then 3143 NIDSLIB="-lnids" 3144 else 3145 echo "$ac_t""no" 1>&6 3146 { echo "configure: error: libnids not found" 1>&2; exit 1; } 3147 fi 3148 echo "$ac_t""yes" 1>&6 3149 3150fi 3151 3152save_cppflags="$CPPFLAGS" 3153CPPFLAGS="$NIDSINC" 3154echo $ac_n "checking whether libnids version is good""... $ac_c" 1>&6 3155echo "configure:3156: checking whether libnids version is good" >&5 3156cat > conftest.$ac_ext <<EOF 3157#line 3158 "configure" 3158#include "confdefs.h" 3159#include <nids.h> 3160EOF 3161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3162 egrep "pcap_filter" >/dev/null 2>&1; then 3163 rm -rf conftest* 3164 echo "$ac_t""yes" 1>&6 3165else 3166 rm -rf conftest* 3167 echo "$ac_t""no" 1>&6; { echo "configure: error: libnids version 1.13 or greater required" 1>&2; exit 1; } 3168fi 3169rm -f conftest* 3170 3171CPPFLAGS="$save_cppflags" 3172 3173 3174 3175echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 3176echo "configure:3177: checking for OpenSSL" >&5 3177# Check whether --with-openssl or --without-openssl was given. 3178if test "${with_openssl+set}" = set; then 3179 withval="$with_openssl" 3180 case "$withval" in 3181 yes|no) 3182 echo "$ac_t""no" 1>&6 3183 ;; 3184 *) 3185 echo "$ac_t""$withval" 1>&6 3186 if test -f $withval/include/openssl/ssl.h -a -f $withval/libssl.a; then 3187 owd=`pwd` 3188 if cd $withval; then withval=`pwd`; cd $owd; fi 3189 SSLINC="-I$withval/include" 3190 SSLLIB="-L$withval -lssl -lcrypto" 3191 elif test -f $withval/include/openssl/ssl.h -a \ 3192 -f $withval/lib/libssl.a; then 3193 owd=`pwd` 3194 if cd $withval; then withval=`pwd`; cd $owd; fi 3195 SSLINC="-I$withval/include" 3196 SSLLIB="-L$withval/lib -lssl -lcrypto" 3197 else 3198 { echo "configure: error: ssl.h or libssl.a not found in $withval" 1>&2; exit 1; } 3199 fi 3200 WEBMITM="webmitm" 3201 ;; 3202 esac 3203else 3204 if test -f ${prefix}/include/openssl/ssl.h; then 3205 SSLINC="-I${prefix}/include" 3206 SSLLIB="-L${prefix}/lib -lssl -lcrypto" 3207 elif test -f ${prefix}/ssl/include/openssl/ssl.h; then 3208 SSLINC="-I${prefix}/ssl/include" 3209 SSLLIB="-L${prefix}/ssl/lib -lssl -lcrypto" 3210 elif test -f /usr/include/openssl/ssl.h; then 3211 SSLLIB="-lssl -lcrypto" 3212 else 3213 echo "$ac_t""no" 1>&6 3214 { echo "configure: error: OpenSSL not found" 1>&2; exit 1; } 3215 fi 3216 echo "$ac_t""yes" 1>&6 3217 3218 3219fi 3220 3221 3222 3223 3224trap '' 1 2 15 3225cat > confcache <<\EOF 3226# This file is a shell script that caches the results of configure 3227# tests run on this system so they can be shared between configure 3228# scripts and configure runs. It is not useful on other systems. 3229# If it contains results you don't want to keep, you may remove or edit it. 3230# 3231# By default, configure uses ./config.cache as the cache file, 3232# creating it if it does not exist already. You can give configure 3233# the --cache-file=FILE option to use a different cache file; that is 3234# what configure does when it calls configure scripts in 3235# subdirectories, so they share the cache. 3236# Giving --cache-file=/dev/null disables caching, for debugging configure. 3237# config.status only pays attention to the cache file if you give it the 3238# --recheck option to rerun configure. 3239# 3240EOF 3241# The following way of writing the cache mishandles newlines in values, 3242# but we know of no workaround that is simple, portable, and efficient. 3243# So, don't put newlines in cache variables' values. 3244# Ultrix sh set writes to stderr and can't be redirected directly, 3245# and sets the high bit in the cache file unless we assign to the vars. 3246(set) 2>&1 | 3247 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3248 *ac_space=\ *) 3249 # `set' does not quote correctly, so add quotes (double-quote substitution 3250 # turns \\\\ into \\, and sed turns \\ into \). 3251 sed -n \ 3252 -e "s/'/'\\\\''/g" \ 3253 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3254 ;; 3255 *) 3256 # `set' quotes correctly as required by POSIX, so do not add quotes. 3257 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3258 ;; 3259 esac >> confcache 3260if cmp -s $cache_file confcache; then 3261 : 3262else 3263 if test -w $cache_file; then 3264 echo "updating cache $cache_file" 3265 cat confcache > $cache_file 3266 else 3267 echo "not updating unwritable cache $cache_file" 3268 fi 3269fi 3270rm -f confcache 3271 3272trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 3273 3274test "x$prefix" = xNONE && prefix=$ac_default_prefix 3275# Let make expand exec_prefix. 3276test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3277 3278# Any assignment to VPATH causes Sun make to only execute 3279# the first set of double-colon rules, so remove it if not needed. 3280# If there is a colon in the path, we need to keep it. 3281if test "x$srcdir" = x.; then 3282 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3283fi 3284 3285trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 3286 3287DEFS=-DHAVE_CONFIG_H 3288 3289# Without the "./", some shells look in PATH for config.status. 3290: ${CONFIG_STATUS=./config.status} 3291 3292echo creating $CONFIG_STATUS 3293rm -f $CONFIG_STATUS 3294cat > $CONFIG_STATUS <<EOF 3295#! /bin/sh 3296# Generated automatically by configure. 3297# Run this file to recreate the current configuration. 3298# This directory was configured as follows, 3299# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3300# 3301# $0 $ac_configure_args 3302# 3303# Compiler output produced by configure, useful for debugging 3304# configure, is in ./config.log if it exists. 3305 3306ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3307for ac_option 3308do 3309 case "\$ac_option" in 3310 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3311 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3312 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3313 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3314 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3315 exit 0 ;; 3316 -help | --help | --hel | --he | --h) 3317 echo "\$ac_cs_usage"; exit 0 ;; 3318 *) echo "\$ac_cs_usage"; exit 1 ;; 3319 esac 3320done 3321 3322ac_given_srcdir=$srcdir 3323ac_given_INSTALL="$INSTALL" 3324 3325trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3326EOF 3327cat >> $CONFIG_STATUS <<EOF 3328 3329# Protect against being on the right side of a sed subst in config.status. 3330sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3331 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3332$ac_vpsub 3333$extrasub 3334s%@SHELL@%$SHELL%g 3335s%@CFLAGS@%$CFLAGS%g 3336s%@CPPFLAGS@%$CPPFLAGS%g 3337s%@CXXFLAGS@%$CXXFLAGS%g 3338s%@FFLAGS@%$FFLAGS%g 3339s%@DEFS@%$DEFS%g 3340s%@LDFLAGS@%$LDFLAGS%g 3341s%@LIBS@%$LIBS%g 3342s%@exec_prefix@%$exec_prefix%g 3343s%@prefix@%$prefix%g 3344s%@program_transform_name@%$program_transform_name%g 3345s%@bindir@%$bindir%g 3346s%@sbindir@%$sbindir%g 3347s%@libexecdir@%$libexecdir%g 3348s%@datadir@%$datadir%g 3349s%@sysconfdir@%$sysconfdir%g 3350s%@sharedstatedir@%$sharedstatedir%g 3351s%@localstatedir@%$localstatedir%g 3352s%@libdir@%$libdir%g 3353s%@includedir@%$includedir%g 3354s%@oldincludedir@%$oldincludedir%g 3355s%@infodir@%$infodir%g 3356s%@mandir@%$mandir%g 3357s%@CC@%$CC%g 3358s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3359s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3360s%@INSTALL_DATA@%$INSTALL_DATA%g 3361s%@RANLIB@%$RANLIB%g 3362s%@CPP@%$CPP%g 3363s%@X_CFLAGS@%$X_CFLAGS%g 3364s%@X_PRE_LIBS@%$X_PRE_LIBS%g 3365s%@X_LIBS@%$X_LIBS%g 3366s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 3367s%@LIBOBJS@%$LIBOBJS%g 3368s%@TCPHIJACK@%$TCPHIJACK%g 3369s%@WEBSPY@%$WEBSPY%g 3370s%@DBINC@%$DBINC%g 3371s%@DBLIB@%$DBLIB%g 3372s%@PCAPINC@%$PCAPINC%g 3373s%@PCAPLIB@%$PCAPLIB%g 3374s%@LNETINC@%$LNETINC%g 3375s%@LNETLIB@%$LNETLIB%g 3376s%@NIDSINC@%$NIDSINC%g 3377s%@NIDSLIB@%$NIDSLIB%g 3378s%@SSLINC@%$SSLINC%g 3379s%@SSLLIB@%$SSLLIB%g 3380 3381CEOF 3382EOF 3383 3384cat >> $CONFIG_STATUS <<\EOF 3385 3386# Split the substitutions into bite-sized pieces for seds with 3387# small command number limits, like on Digital OSF/1 and HP-UX. 3388ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3389ac_file=1 # Number of current file. 3390ac_beg=1 # First line for current file. 3391ac_end=$ac_max_sed_cmds # Line after last line for current file. 3392ac_more_lines=: 3393ac_sed_cmds="" 3394while $ac_more_lines; do 3395 if test $ac_beg -gt 1; then 3396 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3397 else 3398 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3399 fi 3400 if test ! -s conftest.s$ac_file; then 3401 ac_more_lines=false 3402 rm -f conftest.s$ac_file 3403 else 3404 if test -z "$ac_sed_cmds"; then 3405 ac_sed_cmds="sed -f conftest.s$ac_file" 3406 else 3407 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3408 fi 3409 ac_file=`expr $ac_file + 1` 3410 ac_beg=$ac_end 3411 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3412 fi 3413done 3414if test -z "$ac_sed_cmds"; then 3415 ac_sed_cmds=cat 3416fi 3417EOF 3418 3419cat >> $CONFIG_STATUS <<EOF 3420 3421CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 3422EOF 3423cat >> $CONFIG_STATUS <<\EOF 3424for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3426 case "$ac_file" in 3427 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3428 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3429 *) ac_file_in="${ac_file}.in" ;; 3430 esac 3431 3432 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3433 3434 # Remove last slash and all that follows it. Not all systems have dirname. 3435 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3436 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3437 # The file is in a subdirectory. 3438 test ! -d "$ac_dir" && mkdir "$ac_dir" 3439 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3440 # A "../" for each directory in $ac_dir_suffix. 3441 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3442 else 3443 ac_dir_suffix= ac_dots= 3444 fi 3445 3446 case "$ac_given_srcdir" in 3447 .) srcdir=. 3448 if test -z "$ac_dots"; then top_srcdir=. 3449 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3450 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3451 *) # Relative path. 3452 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3453 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3454 esac 3455 3456 case "$ac_given_INSTALL" in 3457 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3458 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 3459 esac 3460 3461 echo creating "$ac_file" 3462 rm -f "$ac_file" 3463 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3464 case "$ac_file" in 3465 *Makefile*) ac_comsub="1i\\ 3466# $configure_input" ;; 3467 *) ac_comsub= ;; 3468 esac 3469 3470 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3471 sed -e "$ac_comsub 3472s%@configure_input@%$configure_input%g 3473s%@srcdir@%$srcdir%g 3474s%@top_srcdir@%$top_srcdir%g 3475s%@INSTALL@%$INSTALL%g 3476" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3477fi; done 3478rm -f conftest.s* 3479 3480# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 3481# NAME is the cpp macro being defined and VALUE is the value it is being given. 3482# 3483# ac_d sets the value in "#define NAME VALUE" lines. 3484ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3485ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 3486ac_dC='\3' 3487ac_dD='%g' 3488# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 3489ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3490ac_uB='\([ ]\)%\1#\2define\3' 3491ac_uC=' ' 3492ac_uD='\4%g' 3493# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3494ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3495ac_eB='$%\1#\2define\3' 3496ac_eC=' ' 3497ac_eD='%g' 3498 3499if test "${CONFIG_HEADERS+set}" != set; then 3500EOF 3501cat >> $CONFIG_STATUS <<EOF 3502 CONFIG_HEADERS="config.h" 3503EOF 3504cat >> $CONFIG_STATUS <<\EOF 3505fi 3506for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 3507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3508 case "$ac_file" in 3509 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3510 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3511 *) ac_file_in="${ac_file}.in" ;; 3512 esac 3513 3514 echo creating $ac_file 3515 3516 rm -f conftest.frag conftest.in conftest.out 3517 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3518 cat $ac_file_inputs > conftest.in 3519 3520EOF 3521 3522# Transform confdefs.h into a sed script conftest.vals that substitutes 3523# the proper values into config.h.in to produce config.h. And first: 3524# Protect against being on the right side of a sed subst in config.status. 3525# Protect against being in an unquoted here document in config.status. 3526rm -f conftest.vals 3527cat > conftest.hdr <<\EOF 3528s/[\\&%]/\\&/g 3529s%[\\$`]%\\&%g 3530s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3531s%ac_d%ac_u%gp 3532s%ac_u%ac_e%gp 3533EOF 3534sed -n -f conftest.hdr confdefs.h > conftest.vals 3535rm -f conftest.hdr 3536 3537# This sed command replaces #undef with comments. This is necessary, for 3538# example, in the case of _POSIX_SOURCE, which is predefined and required 3539# on some systems where configure will not decide to define it. 3540cat >> conftest.vals <<\EOF 3541s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3542EOF 3543 3544# Break up conftest.vals because some shells have a limit on 3545# the size of here documents, and old seds have small limits too. 3546 3547rm -f conftest.tail 3548while : 3549do 3550 ac_lines=`grep -c . conftest.vals` 3551 # grep -c gives empty output for an empty file on some AIX systems. 3552 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3553 # Write a limited-size here document to conftest.frag. 3554 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3555 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 3556 echo 'CEOF 3557 sed -f conftest.frag conftest.in > conftest.out 3558 rm -f conftest.in 3559 mv conftest.out conftest.in 3560' >> $CONFIG_STATUS 3561 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 3562 rm -f conftest.vals 3563 mv conftest.tail conftest.vals 3564done 3565rm -f conftest.vals 3566 3567cat >> $CONFIG_STATUS <<\EOF 3568 rm -f conftest.frag conftest.h 3569 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3570 cat conftest.in >> conftest.h 3571 rm -f conftest.in 3572 if cmp -s $ac_file conftest.h 2>/dev/null; then 3573 echo "$ac_file is unchanged" 3574 rm -f conftest.h 3575 else 3576 # Remove last slash and all that follows it. Not all systems have dirname. 3577 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3578 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3579 # The file is in a subdirectory. 3580 test ! -d "$ac_dir" && mkdir "$ac_dir" 3581 fi 3582 rm -f $ac_file 3583 mv conftest.h $ac_file 3584 fi 3585fi; done 3586 3587EOF 3588cat >> $CONFIG_STATUS <<EOF 3589 3590EOF 3591cat >> $CONFIG_STATUS <<\EOF 3592 3593exit 0 3594EOF 3595chmod +x $CONFIG_STATUS 3596rm -fr confdefs* $ac_clean_files 3597test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3598 3599