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 --disable-dependency-tracking Speeds up one-time builds 16 --enable-dependency-tracking Do not reject slow dependency extractors" 17ac_help="$ac_help 18 --with-krb4=value set default \$(KRB4) from value" 19ac_help="$ac_help 20 --with-gssapi=value GSSAPI directory" 21ac_help="$ac_help 22 --enable-encryption enable encryption support" 23ac_help="$ac_help 24 --enable-client include code for running as a remote client (default) 25 --disable-client don't include remote client code" 26ac_help="$ac_help 27 --enable-server include code for running as a server (default) 28 --disable-server don't include server code" 29 30# Initialize some variables set by options. 31# The variables have the same names as the options, with 32# dashes changed to underlines. 33build=NONE 34cache_file=./config.cache 35exec_prefix=NONE 36host=NONE 37no_create= 38nonopt=NONE 39no_recursion= 40prefix=NONE 41program_prefix=NONE 42program_suffix=NONE 43program_transform_name=s,x,x, 44silent= 45site= 46srcdir= 47target=NONE 48verbose= 49x_includes=NONE 50x_libraries=NONE 51bindir='${exec_prefix}/bin' 52sbindir='${exec_prefix}/sbin' 53libexecdir='${exec_prefix}/libexec' 54datadir='${prefix}/share' 55sysconfdir='${prefix}/etc' 56sharedstatedir='${prefix}/com' 57localstatedir='${prefix}/var' 58libdir='${exec_prefix}/lib' 59includedir='${prefix}/include' 60oldincludedir='/usr/include' 61infodir='${prefix}/info' 62mandir='${prefix}/man' 63 64# Initialize some other variables. 65subdirs= 66MFLAGS= MAKEFLAGS= 67SHELL=${CONFIG_SHELL-/bin/sh} 68# Maximum number of lines to put in a shell here document. 69ac_max_here_lines=12 70 71ac_prev= 72for ac_option 73do 74 75 # If the previous option needs an argument, assign it. 76 if test -n "$ac_prev"; then 77 eval "$ac_prev=\$ac_option" 78 ac_prev= 79 continue 80 fi 81 82 case "$ac_option" in 83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 84 *) ac_optarg= ;; 85 esac 86 87 # Accept the important Cygnus configure options, so we can diagnose typos. 88 89 case "$ac_option" in 90 91 -bindir | --bindir | --bindi | --bind | --bin | --bi) 92 ac_prev=bindir ;; 93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 94 bindir="$ac_optarg" ;; 95 96 -build | --build | --buil | --bui | --bu) 97 ac_prev=build ;; 98 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 99 build="$ac_optarg" ;; 100 101 -cache-file | --cache-file | --cache-fil | --cache-fi \ 102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 103 ac_prev=cache_file ;; 104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 106 cache_file="$ac_optarg" ;; 107 108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 109 ac_prev=datadir ;; 110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 111 | --da=*) 112 datadir="$ac_optarg" ;; 113 114 -disable-* | --disable-*) 115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 116 # Reject names that are not valid shell variable names. 117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 119 fi 120 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 121 eval "enable_${ac_feature}=no" ;; 122 123 -enable-* | --enable-*) 124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 125 # Reject names that are not valid shell variable names. 126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 128 fi 129 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 130 case "$ac_option" in 131 *=*) ;; 132 *) ac_optarg=yes ;; 133 esac 134 eval "enable_${ac_feature}='$ac_optarg'" ;; 135 136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 138 | --exec | --exe | --ex) 139 ac_prev=exec_prefix ;; 140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 142 | --exec=* | --exe=* | --ex=*) 143 exec_prefix="$ac_optarg" ;; 144 145 -gas | --gas | --ga | --g) 146 # Obsolete; use --with-gas. 147 with_gas=yes ;; 148 149 -help | --help | --hel | --he) 150 # Omit some internal or obsolete options to make the list less imposing. 151 # This message is too long to be a string in the A/UX 3.1 sh. 152 cat << EOF 153Usage: configure [options] [host] 154Options: [defaults in brackets after descriptions] 155Configuration: 156 --cache-file=FILE cache test results in FILE 157 --help print this message 158 --no-create do not create output files 159 --quiet, --silent do not print \`checking...' messages 160 --version print the version of autoconf that created configure 161Directory and file names: 162 --prefix=PREFIX install architecture-independent files in PREFIX 163 [$ac_default_prefix] 164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 165 [same as prefix] 166 --bindir=DIR user executables in DIR [EPREFIX/bin] 167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 169 --datadir=DIR read-only architecture-independent data in DIR 170 [PREFIX/share] 171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 172 --sharedstatedir=DIR modifiable architecture-independent data in DIR 173 [PREFIX/com] 174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 175 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 176 --includedir=DIR C header files in DIR [PREFIX/include] 177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 178 --infodir=DIR info documentation in DIR [PREFIX/info] 179 --mandir=DIR man documentation in DIR [PREFIX/man] 180 --srcdir=DIR find the sources in DIR [configure dir or ..] 181 --program-prefix=PREFIX prepend PREFIX to installed program names 182 --program-suffix=SUFFIX append SUFFIX to installed program names 183 --program-transform-name=PROGRAM 184 run sed PROGRAM on installed program names 185EOF 186 cat << EOF 187Host type: 188 --build=BUILD configure for building on BUILD [BUILD=HOST] 189 --host=HOST configure for HOST [guessed] 190 --target=TARGET configure for TARGET [TARGET=HOST] 191Features and packages: 192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 196 --x-includes=DIR X include files are in DIR 197 --x-libraries=DIR X library files are in DIR 198EOF 199 if test -n "$ac_help"; then 200 echo "--enable and --with options recognized:$ac_help" 201 fi 202 exit 0 ;; 203 204 -host | --host | --hos | --ho) 205 ac_prev=host ;; 206 -host=* | --host=* | --hos=* | --ho=*) 207 host="$ac_optarg" ;; 208 209 -includedir | --includedir | --includedi | --included | --include \ 210 | --includ | --inclu | --incl | --inc) 211 ac_prev=includedir ;; 212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 213 | --includ=* | --inclu=* | --incl=* | --inc=*) 214 includedir="$ac_optarg" ;; 215 216 -infodir | --infodir | --infodi | --infod | --info | --inf) 217 ac_prev=infodir ;; 218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 219 infodir="$ac_optarg" ;; 220 221 -libdir | --libdir | --libdi | --libd) 222 ac_prev=libdir ;; 223 -libdir=* | --libdir=* | --libdi=* | --libd=*) 224 libdir="$ac_optarg" ;; 225 226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 227 | --libexe | --libex | --libe) 228 ac_prev=libexecdir ;; 229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 230 | --libexe=* | --libex=* | --libe=*) 231 libexecdir="$ac_optarg" ;; 232 233 -localstatedir | --localstatedir | --localstatedi | --localstated \ 234 | --localstate | --localstat | --localsta | --localst \ 235 | --locals | --local | --loca | --loc | --lo) 236 ac_prev=localstatedir ;; 237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 240 localstatedir="$ac_optarg" ;; 241 242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 243 ac_prev=mandir ;; 244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 245 mandir="$ac_optarg" ;; 246 247 -nfp | --nfp | --nf) 248 # Obsolete; use --without-fp. 249 with_fp=no ;; 250 251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 252 | --no-cr | --no-c) 253 no_create=yes ;; 254 255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 257 no_recursion=yes ;; 258 259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 261 | --oldin | --oldi | --old | --ol | --o) 262 ac_prev=oldincludedir ;; 263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 266 oldincludedir="$ac_optarg" ;; 267 268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 269 ac_prev=prefix ;; 270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 271 prefix="$ac_optarg" ;; 272 273 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 274 | --program-pre | --program-pr | --program-p) 275 ac_prev=program_prefix ;; 276 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 278 program_prefix="$ac_optarg" ;; 279 280 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 281 | --program-suf | --program-su | --program-s) 282 ac_prev=program_suffix ;; 283 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 285 program_suffix="$ac_optarg" ;; 286 287 -program-transform-name | --program-transform-name \ 288 | --program-transform-nam | --program-transform-na \ 289 | --program-transform-n | --program-transform- \ 290 | --program-transform | --program-transfor \ 291 | --program-transfo | --program-transf \ 292 | --program-trans | --program-tran \ 293 | --progr-tra | --program-tr | --program-t) 294 ac_prev=program_transform_name ;; 295 -program-transform-name=* | --program-transform-name=* \ 296 | --program-transform-nam=* | --program-transform-na=* \ 297 | --program-transform-n=* | --program-transform-=* \ 298 | --program-transform=* | --program-transfor=* \ 299 | --program-transfo=* | --program-transf=* \ 300 | --program-trans=* | --program-tran=* \ 301 | --progr-tra=* | --program-tr=* | --program-t=*) 302 program_transform_name="$ac_optarg" ;; 303 304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 305 | -silent | --silent | --silen | --sile | --sil) 306 silent=yes ;; 307 308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 309 ac_prev=sbindir ;; 310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 311 | --sbi=* | --sb=*) 312 sbindir="$ac_optarg" ;; 313 314 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 316 | --sharedst | --shareds | --shared | --share | --shar \ 317 | --sha | --sh) 318 ac_prev=sharedstatedir ;; 319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 322 | --sha=* | --sh=*) 323 sharedstatedir="$ac_optarg" ;; 324 325 -site | --site | --sit) 326 ac_prev=site ;; 327 -site=* | --site=* | --sit=*) 328 site="$ac_optarg" ;; 329 330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 331 ac_prev=srcdir ;; 332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 333 srcdir="$ac_optarg" ;; 334 335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 336 | --syscon | --sysco | --sysc | --sys | --sy) 337 ac_prev=sysconfdir ;; 338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 340 sysconfdir="$ac_optarg" ;; 341 342 -target | --target | --targe | --targ | --tar | --ta | --t) 343 ac_prev=target ;; 344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 345 target="$ac_optarg" ;; 346 347 -v | -verbose | --verbose | --verbos | --verbo | --verb) 348 verbose=yes ;; 349 350 -version | --version | --versio | --versi | --vers) 351 echo "configure generated by autoconf version 2.13" 352 exit 0 ;; 353 354 -with-* | --with-*) 355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 case "$ac_option" in 362 *=*) ;; 363 *) ac_optarg=yes ;; 364 esac 365 eval "with_${ac_package}='$ac_optarg'" ;; 366 367 -without-* | --without-*) 368 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 369 # Reject names that are not valid shell variable names. 370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 372 fi 373 ac_package=`echo $ac_package| sed 's/-/_/g'` 374 eval "with_${ac_package}=no" ;; 375 376 --x) 377 # Obsolete; use --with-x. 378 with_x=yes ;; 379 380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 381 | --x-incl | --x-inc | --x-in | --x-i) 382 ac_prev=x_includes ;; 383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 385 x_includes="$ac_optarg" ;; 386 387 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 389 ac_prev=x_libraries ;; 390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 392 x_libraries="$ac_optarg" ;; 393 394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 395 ;; 396 397 *) 398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 399 echo "configure: warning: $ac_option: invalid host type" 1>&2 400 fi 401 if test "x$nonopt" != xNONE; then 402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 403 fi 404 nonopt="$ac_option" 405 ;; 406 407 esac 408done 409 410if test -n "$ac_prev"; then 411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 412fi 413 414trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 415 416# File descriptor usage: 417# 0 standard input 418# 1 file creation 419# 2 errors and warnings 420# 3 some systems may open it to /dev/tty 421# 4 used on the Kubota Titan 422# 6 checking for... messages and results 423# 5 compiler messages saved in config.log 424if test "$silent" = yes; then 425 exec 6>/dev/null 426else 427 exec 6>&1 428fi 429exec 5>./config.log 430 431echo "\ 432This file contains any messages produced by compilers while 433running configure, to aid debugging if configure makes a mistake. 434" 1>&5 435 436# Strip out --no-create and --no-recursion so they do not pile up. 437# Also quote any args containing shell metacharacters. 438ac_configure_args= 439for ac_arg 440do 441 case "$ac_arg" in 442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 443 | --no-cr | --no-c) ;; 444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 447 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 448 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 449 esac 450done 451 452# NLS nuisances. 453# Only set these to C if already set. These must not be set unconditionally 454# because not all systems understand e.g. LANG=C (notably SCO). 455# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 456# Non-C LC_CTYPE values break the ctype check. 457if test "${LANG+set}" = set; then LANG=C; export LANG; fi 458if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 459if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 460if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 461 462# confdefs.h avoids OS command line length limits that DEFS can exceed. 463rm -rf conftest* confdefs.h 464# AIX cpp loses on an empty file, so make sure it contains at least a newline. 465echo > confdefs.h 466 467# A filename unique to this package, relative to the directory that 468# configure is in, which we can look for to find out if srcdir is correct. 469ac_unique_file=src/cvs.h 470 471# Find the source files, if location was not specified. 472if test -z "$srcdir"; then 473 ac_srcdir_defaulted=yes 474 # Try the directory containing this script, then its parent. 475 ac_prog=$0 476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 478 srcdir=$ac_confdir 479 if test ! -r $srcdir/$ac_unique_file; then 480 srcdir=.. 481 fi 482else 483 ac_srcdir_defaulted=no 484fi 485if test ! -r $srcdir/$ac_unique_file; then 486 if test "$ac_srcdir_defaulted" = yes; then 487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 488 else 489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 490 fi 491fi 492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 493 494# Prefer explicitly selected file to automatically selected ones. 495if test -z "$CONFIG_SITE"; then 496 if test "x$prefix" != xNONE; then 497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 498 else 499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 500 fi 501fi 502for ac_site_file in $CONFIG_SITE; do 503 if test -r "$ac_site_file"; then 504 echo "loading site script $ac_site_file" 505 . "$ac_site_file" 506 fi 507done 508 509if test -r "$cache_file"; then 510 echo "loading cache $cache_file" 511 . $cache_file 512else 513 echo "creating cache $cache_file" 514 > $cache_file 515fi 516 517ac_ext=c 518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 519ac_cpp='$CPP $CPPFLAGS' 520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 522cross_compiling=$ac_cv_prog_cc_cross 523 524ac_exeext= 525ac_objext=o 526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 529 ac_n= ac_c=' 530' ac_t=' ' 531 else 532 ac_n=-n ac_c= ac_t= 533 fi 534else 535 ac_n= ac_c='\c' ac_t= 536fi 537 538 539ac_aux_dir= 540for ac_dir in ${GNUSYSTEM_AUX_DIR} $srcdir $srcdir/.. $srcdir/../..; do 541 if test -f $ac_dir/install-sh; then 542 ac_aux_dir=$ac_dir 543 ac_install_sh="$ac_aux_dir/install-sh -c" 544 break 545 elif test -f $ac_dir/install.sh; then 546 ac_aux_dir=$ac_dir 547 ac_install_sh="$ac_aux_dir/install.sh -c" 548 break 549 fi 550done 551if test -z "$ac_aux_dir"; then 552 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 553fi 554ac_config_guess=$ac_aux_dir/config.guess 555ac_config_sub=$ac_aux_dir/config.sub 556ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 557 558# Find a good install program. We prefer a C program (faster), 559# so one script is as good as another. But avoid the broken or 560# incompatible versions: 561# SysV /etc/install, /usr/sbin/install 562# SunOS /usr/etc/install 563# IRIX /sbin/install 564# AIX /bin/install 565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 566# AFS /usr/afsws/bin/install, which mishandles nonexistent args 567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 568# ./install, which can be erroneously created by make from ./install.sh. 569echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 570echo "configure:571: checking for a BSD compatible install" >&5 571if test -z "$INSTALL"; then 572if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 573 echo $ac_n "(cached) $ac_c" 1>&6 574else 575 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 576 for ac_dir in $PATH; do 577 # Account for people who put trailing slashes in PATH elements. 578 case "$ac_dir/" in 579 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 580 *) 581 # OSF1 and SCO ODT 3.0 have their own names for install. 582 # Don't use installbsd from OSF since it installs stuff as root 583 # by default. 584 for ac_prog in ginstall scoinst install; do 585 if test -f $ac_dir/$ac_prog; then 586 if test $ac_prog = install && 587 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 588 # AIX install. It has an incompatible calling convention. 589 : 590 else 591 ac_cv_path_install="$ac_dir/$ac_prog -c" 592 break 2 593 fi 594 fi 595 done 596 ;; 597 esac 598 done 599 IFS="$ac_save_IFS" 600 601fi 602 if test "${ac_cv_path_install+set}" = set; then 603 INSTALL="$ac_cv_path_install" 604 else 605 # As a last resort, use the slow shell script. We don't cache a 606 # path for INSTALL within a source directory, because that will 607 # break other packages using the cache if that directory is 608 # removed, or if the path is relative. 609 INSTALL="$ac_install_sh" 610 fi 611fi 612echo "$ac_t""$INSTALL" 1>&6 613 614# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 615# It thinks the first close brace ends the variable substitution. 616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 617 618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 619 620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 621 622echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 623echo "configure:624: checking whether build environment is sane" >&5 624# Just in case 625sleep 1 626echo timestamp > conftest.file 627# Do `set' in a subshell so we don't clobber the current shell's 628# arguments. Must try -L first in case configure is actually a 629# symlink; some systems play weird games with the mod time of symlinks 630# (eg FreeBSD returns the mod time of the symlink's containing 631# directory). 632if ( 633 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 634 if test "$*" = "X"; then 635 # -L didn't work. 636 set X `ls -t $srcdir/configure conftest.file` 637 fi 638 if test "$*" != "X $srcdir/configure conftest.file" \ 639 && test "$*" != "X conftest.file $srcdir/configure"; then 640 641 # If neither matched, then we have a broken ls. This can happen 642 # if, for instance, CONFIG_SHELL is bash and it inherits a 643 # broken ls alias from the environment. This has actually 644 # happened. Such a system could not be considered "sane". 645 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 646alias in your environment" 1>&2; exit 1; } 647 fi 648 649 test "$2" = conftest.file 650 ) 651then 652 # Ok. 653 : 654else 655 { echo "configure: error: newly created file is older than distributed files! 656Check your system clock" 1>&2; exit 1; } 657fi 658rm -f conftest* 659echo "$ac_t""yes" 1>&6 660if test "$program_transform_name" = s,x,x,; then 661 program_transform_name= 662else 663 # Double any \ or $. echo might interpret backslashes. 664 cat <<\EOF_SED > conftestsed 665s,\\,\\\\,g; s,\$,$$,g 666EOF_SED 667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 668 rm -f conftestsed 669fi 670test "$program_prefix" != NONE && 671 program_transform_name="s,^,${program_prefix},; $program_transform_name" 672# Use a double $ so make ignores it. 673test "$program_suffix" != NONE && 674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 675 676# sed with no file args requires a program. 677test "$program_transform_name" = "" && program_transform_name="s,x,x," 678 679test x"${MISSING+set}" = xset || 680 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing" 681# Use eval to expand $SHELL 682if eval "$MISSING --run true"; then 683 am_missing_run="$MISSING --run " 684else 685 am_missing_run= 686 am_backtick='`' 687 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2 688fi 689 690for ac_prog in mawk gawk nawk awk 691do 692# Extract the first word of "$ac_prog", so it can be a program name with args. 693set dummy $ac_prog; ac_word=$2 694echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 695echo "configure:696: checking for $ac_word" >&5 696if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 697 echo $ac_n "(cached) $ac_c" 1>&6 698else 699 if test -n "$AWK"; then 700 ac_cv_prog_AWK="$AWK" # Let the user override the test. 701else 702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 703 ac_dummy="$PATH" 704 for ac_dir in $ac_dummy; do 705 test -z "$ac_dir" && ac_dir=. 706 if test -f $ac_dir/$ac_word; then 707 ac_cv_prog_AWK="$ac_prog" 708 break 709 fi 710 done 711 IFS="$ac_save_ifs" 712fi 713fi 714AWK="$ac_cv_prog_AWK" 715if test -n "$AWK"; then 716 echo "$ac_t""$AWK" 1>&6 717else 718 echo "$ac_t""no" 1>&6 719fi 720 721test -n "$AWK" && break 722done 723 724echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 725echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5 726set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 727if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 728 echo $ac_n "(cached) $ac_c" 1>&6 729else 730 cat > conftestmake <<\EOF 731all: 732 @echo 'ac_maketemp="${MAKE}"' 733EOF 734# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 735eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 736if test -n "$ac_maketemp"; then 737 eval ac_cv_prog_make_${ac_make}_set=yes 738else 739 eval ac_cv_prog_make_${ac_make}_set=no 740fi 741rm -f conftestmake 742fi 743if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 744 echo "$ac_t""yes" 1>&6 745 SET_MAKE= 746else 747 echo "$ac_t""no" 1>&6 748 SET_MAKE="MAKE=${MAKE-make}" 749fi 750 751# Extract the first word of "etags", so it can be a program name with args. 752set dummy etags; ac_word=$2 753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 754echo "configure:755: checking for $ac_word" >&5 755if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then 756 echo $ac_n "(cached) $ac_c" 1>&6 757else 758 if test -n "$ETAGS"; then 759 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 760else 761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 762 ac_dummy="$PATH" 763 for ac_dir in $ac_dummy; do 764 test -z "$ac_dir" && ac_dir=. 765 if test -f $ac_dir/$ac_word; then 766 ac_cv_prog_ETAGS="etags" 767 break 768 fi 769 done 770 IFS="$ac_save_ifs" 771fi 772fi 773ETAGS="$ac_cv_prog_ETAGS" 774if test -n "$ETAGS"; then 775 echo "$ac_t""$ETAGS" 1>&6 776else 777 echo "$ac_t""no" 1>&6 778fi 779 780if test -z "$ETAGS"; then 781 # Extract the first word of "ctags", so it can be a program name with args. 782set dummy ctags; ac_word=$2 783echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 784echo "configure:785: checking for $ac_word" >&5 785if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then 786 echo $ac_n "(cached) $ac_c" 1>&6 787else 788 if test -n "$ETAGS"; then 789 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 790else 791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 792 ac_dummy="$PATH" 793 for ac_dir in $ac_dummy; do 794 test -z "$ac_dir" && ac_dir=. 795 if test -f $ac_dir/$ac_word; then 796 ac_cv_prog_ETAGS="ctags -e" 797 break 798 fi 799 done 800 IFS="$ac_save_ifs" 801fi 802fi 803ETAGS="$ac_cv_prog_ETAGS" 804if test -n "$ETAGS"; then 805 echo "$ac_t""$ETAGS" 1>&6 806else 807 echo "$ac_t""no" 1>&6 808fi 809 810fi 811if test -n "$ETAGS"; then 812 echo $ac_n "checking whether ${ETAGS-etags} works""... $ac_c" 1>&6 813echo "configure:814: checking whether ${ETAGS-etags} works" >&5 814if eval "test \"`echo '$''{'am_cv_prog_etags_works'+set}'`\" = set"; then 815 echo $ac_n "(cached) $ac_c" 1>&6 816else 817 cat >conftest.c <<EOF 818int globalvar; 819EOF 820if { ac_try='${ETAGS-etags} -f - conftest.c |egrep ^int\ globalvar\; >&2'; { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 821 am_cv_prog_etags_works=yes 822else 823 am_cv_prog_etags_works=no 824fi 825rm -f conftest.c 826fi 827 828echo "$ac_t""$am_cv_prog_etags_works" 1>&6 829 if test "$am_cv_prog_etags_works" = yes ; then 830 if test "$am_cv_prog_etags_works" = yes ; then 831 echo $ac_n "checking for etags include option""... $ac_c" 1>&6 832echo "configure:833: checking for etags include option" >&5 833if eval "test \"`echo '$''{'am_cv_prog_etags_include_option'+set}'`\" = set"; then 834 echo $ac_n "(cached) $ac_c" 1>&6 835else 836 cat >conftest.c <<EOF 837int globalvar; 838EOF 839 if { ac_try='${ETAGS-etags} --etags-include=TAGS.inc -f - conftest.c |egrep ^TAGS.inc,include\$ >&2'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 840 am_cv_prog_etags_include_option=--etags-include= 841 elif { ac_try='${ETAGS-etags} -i TAGS.inc -f - conftest.c |egrep ^TAGS.inc,include\$ >&2'; { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 842 am_cv_prog_etags_include_option='"-i "' 843 else : 844 # AC_MSG_ERROR(unfamiliar etags implementation) 845 fi 846 rm -f conftest.c 847fi 848 849echo "$ac_t""$am_cv_prog_etags_include_option" 1>&6 850else 851 : 852fi 853ETAGS_INCLUDE_OPTION="$am_cv_prog_etags_include_option" 854 855 else 856 857ETAGS=${ETAGS-"${am_missing_run}etags"} 858 859 fi 860else 861 862ETAGS=${ETAGS-"${am_missing_run}etags"} 863 864fi 865# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 866if test "${enable_dependency_tracking+set}" = set; then 867 enableval="$enable_dependency_tracking" 868 : 869fi 870 871if test "x$enable_dependency_tracking" != xno; then 872 am_depcomp="$ac_aux_dir/depcomp" 873 AMDEPBACKSLASH='\' 874fi 875 876 877if test "x$enable_dependency_tracking" != xno; then 878 AMDEP_TRUE= 879 AMDEP_FALSE='#' 880else 881 AMDEP_TRUE='#' 882 AMDEP_FALSE= 883fi 884 885 886 887 888if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then 889 DEPDIR=.deps 890 # We redirect because .deps might already exist and be populated. 891 # In this situation we don't want to see an error. 892 rmdir .deps > /dev/null 2>&1 893else 894 DEPDIR=_deps 895fi 896 897 898# test to see if srcdir already configured 899if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 900 test -f $srcdir/config.status; then 901 { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; } 902fi 903 904# Define the identity of the package. 905PACKAGE=cvs 906VERSION=1.11.1p1 907cat >> confdefs.h <<EOF 908#define PACKAGE "$PACKAGE" 909EOF 910 911cat >> confdefs.h <<EOF 912#define VERSION "$VERSION" 913EOF 914 915 916# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 917# the ones we care about. 918 919# Some tools Automake needs. 920 921ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 922 923 924AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 925 926 927AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 928 929 930AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 931 932 933MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 934 935 936AMTAR=${AMTAR-"${am_missing_run}tar"} 937 938 939if test -z "$install_sh"; then 940 for install_sh in "$ac_aux_dir/install-sh" \ 941 "$ac_aux_dir/install.sh" \ 942 "${am_missing_run}${ac_auxdir}/install-sh"; 943 do 944 test -f "$install_sh" && break 945 done 946 # FIXME: an evil hack: we remove the SHELL invocation from 947 # install_sh because automake adds it back in. Sigh. 948 install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'` 949fi 950 951 952# We'd like to do this but we can't because it will unconditionally 953# require config.guess. One way would be if autoconf had the capability 954# to let us compile in this code only when config.guess was already 955# a possibility. 956#if test "$cross_compiling" != no; then 957# # since we are cross-compiling, we need to check for a suitable `strip' 958# AM_PROG_STRIP 959# if test -z "$STRIP"; then 960# AC_MSG_WARN([strip missing, install-strip will not strip binaries]) 961# fi 962#fi 963 964# If $STRIP is defined (either by the user, or by AM_PROG_STRIP), 965# instruct install-strip to use install-sh and the given $STRIP program. 966# Otherwise, just use ${INSTALL}: the idea is to use the vendor install 967# as much as possible, because it's faster. 968if test -z "$STRIP"; then 969 # The top level make will set INSTALL_PROGRAM=$(INSTALL_STRIP_PROGRAM) 970 # and the double dolard below is there to make sure that ${INSTALL} 971 # is substitued in the sub-makes, not at the top-level; this is 972 # needed if ${INSTALL} is a relative path (ajusted in each subdirectory 973 # by config.status). 974 INSTALL_STRIP_PROGRAM='$${INSTALL} -s' 975 INSTALL_STRIP_PROGRAM_ENV='' 976else 977 _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`" 978 INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s" 979 INSTALL_STRIP_PROGRAM_ENV="STRIPPROG='\$(STRIP)'" 980fi 981 982 983 984# We need awk for the "check" target. The system "awk" is bad on 985# some platforms. 986 987 988if test "x$prefix" = xNONE; then 989echo $ac_n "checking for prefix by $ac_c" 1>&6 990# Extract the first word of "cvs", so it can be a program name with args. 991set dummy cvs; ac_word=$2 992echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 993echo "configure:994: checking for $ac_word" >&5 994if eval "test \"`echo '$''{'ac_cv_path_CVS'+set}'`\" = set"; then 995 echo $ac_n "(cached) $ac_c" 1>&6 996else 997 case "$CVS" in 998 /*) 999 ac_cv_path_CVS="$CVS" # Let the user override the test with a path. 1000 ;; 1001 ?:/*) 1002 ac_cv_path_CVS="$CVS" # Let the user override the test with a dos path. 1003 ;; 1004 *) 1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1006 ac_dummy="$PATH" 1007 for ac_dir in $ac_dummy; do 1008 test -z "$ac_dir" && ac_dir=. 1009 if test -f $ac_dir/$ac_word; then 1010 ac_cv_path_CVS="$ac_dir/$ac_word" 1011 break 1012 fi 1013 done 1014 IFS="$ac_save_ifs" 1015 ;; 1016esac 1017fi 1018CVS="$ac_cv_path_CVS" 1019if test -n "$CVS"; then 1020 echo "$ac_t""$CVS" 1>&6 1021else 1022 echo "$ac_t""no" 1>&6 1023fi 1024 1025 if test -n "$ac_cv_path_CVS"; then 1026 prefix=`echo $ac_cv_path_CVS|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` 1027 fi 1028fi 1029 1030 1031 1032 1033 1034for ac_prog in mawk gawk nawk awk 1035do 1036# Extract the first word of "$ac_prog", so it can be a program name with args. 1037set dummy $ac_prog; ac_word=$2 1038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1039echo "configure:1040: checking for $ac_word" >&5 1040if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 1041 echo $ac_n "(cached) $ac_c" 1>&6 1042else 1043 if test -n "$AWK"; then 1044 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1045else 1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1047 ac_dummy="$PATH" 1048 for ac_dir in $ac_dummy; do 1049 test -z "$ac_dir" && ac_dir=. 1050 if test -f $ac_dir/$ac_word; then 1051 ac_cv_prog_AWK="$ac_prog" 1052 break 1053 fi 1054 done 1055 IFS="$ac_save_ifs" 1056fi 1057fi 1058AWK="$ac_cv_prog_AWK" 1059if test -n "$AWK"; then 1060 echo "$ac_t""$AWK" 1>&6 1061else 1062 echo "$ac_t""no" 1>&6 1063fi 1064 1065test -n "$AWK" && break 1066done 1067 1068# Extract the first word of "gcc", so it can be a program name with args. 1069set dummy gcc; ac_word=$2 1070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1071echo "configure:1072: checking for $ac_word" >&5 1072if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1073 echo $ac_n "(cached) $ac_c" 1>&6 1074else 1075 if test -n "$CC"; then 1076 ac_cv_prog_CC="$CC" # Let the user override the test. 1077else 1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1079 ac_dummy="$PATH" 1080 for ac_dir in $ac_dummy; do 1081 test -z "$ac_dir" && ac_dir=. 1082 if test -f $ac_dir/$ac_word; then 1083 ac_cv_prog_CC="gcc" 1084 break 1085 fi 1086 done 1087 IFS="$ac_save_ifs" 1088fi 1089fi 1090CC="$ac_cv_prog_CC" 1091if test -n "$CC"; then 1092 echo "$ac_t""$CC" 1>&6 1093else 1094 echo "$ac_t""no" 1>&6 1095fi 1096 1097if test -z "$CC"; then 1098 # Extract the first word of "cc", so it can be a program name with args. 1099set dummy cc; ac_word=$2 1100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1101echo "configure:1102: checking for $ac_word" >&5 1102if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1103 echo $ac_n "(cached) $ac_c" 1>&6 1104else 1105 if test -n "$CC"; then 1106 ac_cv_prog_CC="$CC" # Let the user override the test. 1107else 1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1109 ac_prog_rejected=no 1110 ac_dummy="$PATH" 1111 for ac_dir in $ac_dummy; do 1112 test -z "$ac_dir" && ac_dir=. 1113 if test -f $ac_dir/$ac_word; then 1114 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1115 ac_prog_rejected=yes 1116 continue 1117 fi 1118 ac_cv_prog_CC="cc" 1119 break 1120 fi 1121 done 1122 IFS="$ac_save_ifs" 1123if test $ac_prog_rejected = yes; then 1124 # We found a bogon in the path, so make sure we never use it. 1125 set dummy $ac_cv_prog_CC 1126 shift 1127 if test $# -gt 0; then 1128 # We chose a different compiler from the bogus one. 1129 # However, it has the same basename, so the bogon will be chosen 1130 # first if we set CC to just the basename; use the full file name. 1131 shift 1132 set dummy "$ac_dir/$ac_word" "$@" 1133 shift 1134 ac_cv_prog_CC="$@" 1135 fi 1136fi 1137fi 1138fi 1139CC="$ac_cv_prog_CC" 1140if test -n "$CC"; then 1141 echo "$ac_t""$CC" 1>&6 1142else 1143 echo "$ac_t""no" 1>&6 1144fi 1145 1146 if test -z "$CC"; then 1147 case "`uname -s`" in 1148 *win32* | *WIN32*) 1149 # Extract the first word of "cl", so it can be a program name with args. 1150set dummy cl; ac_word=$2 1151echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1152echo "configure:1153: checking for $ac_word" >&5 1153if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1154 echo $ac_n "(cached) $ac_c" 1>&6 1155else 1156 if test -n "$CC"; then 1157 ac_cv_prog_CC="$CC" # Let the user override the test. 1158else 1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1160 ac_dummy="$PATH" 1161 for ac_dir in $ac_dummy; do 1162 test -z "$ac_dir" && ac_dir=. 1163 if test -f $ac_dir/$ac_word; then 1164 ac_cv_prog_CC="cl" 1165 break 1166 fi 1167 done 1168 IFS="$ac_save_ifs" 1169fi 1170fi 1171CC="$ac_cv_prog_CC" 1172if test -n "$CC"; then 1173 echo "$ac_t""$CC" 1>&6 1174else 1175 echo "$ac_t""no" 1>&6 1176fi 1177 ;; 1178 esac 1179 fi 1180 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1181fi 1182 1183echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1184echo "configure:1185: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1185 1186ac_ext=c 1187# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1188ac_cpp='$CPP $CPPFLAGS' 1189ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1190ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1191cross_compiling=$ac_cv_prog_cc_cross 1192 1193cat > conftest.$ac_ext << EOF 1194 1195#line 1196 "configure" 1196#include "confdefs.h" 1197 1198main(){return(0);} 1199EOF 1200if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1201 ac_cv_prog_cc_works=yes 1202 # If we can't run a trivial program, we are probably using a cross compiler. 1203 if (./conftest; exit) 2>/dev/null; then 1204 ac_cv_prog_cc_cross=no 1205 else 1206 ac_cv_prog_cc_cross=yes 1207 fi 1208else 1209 echo "configure: failed program was:" >&5 1210 cat conftest.$ac_ext >&5 1211 ac_cv_prog_cc_works=no 1212fi 1213rm -fr conftest* 1214ac_ext=c 1215# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1216ac_cpp='$CPP $CPPFLAGS' 1217ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1218ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1219cross_compiling=$ac_cv_prog_cc_cross 1220 1221echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1222if test $ac_cv_prog_cc_works = no; then 1223 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1224fi 1225echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1226echo "configure:1227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1227echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1228cross_compiling=$ac_cv_prog_cc_cross 1229 1230echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1231echo "configure:1232: checking whether we are using GNU C" >&5 1232if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1233 echo $ac_n "(cached) $ac_c" 1>&6 1234else 1235 cat > conftest.c <<EOF 1236#ifdef __GNUC__ 1237 yes; 1238#endif 1239EOF 1240if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1241 ac_cv_prog_gcc=yes 1242else 1243 ac_cv_prog_gcc=no 1244fi 1245fi 1246 1247echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1248 1249if test $ac_cv_prog_gcc = yes; then 1250 GCC=yes 1251else 1252 GCC= 1253fi 1254 1255ac_test_CFLAGS="${CFLAGS+set}" 1256ac_save_CFLAGS="$CFLAGS" 1257CFLAGS= 1258echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1259echo "configure:1260: checking whether ${CC-cc} accepts -g" >&5 1260if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1261 echo $ac_n "(cached) $ac_c" 1>&6 1262else 1263 echo 'void f(){}' > conftest.c 1264if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1265 ac_cv_prog_cc_g=yes 1266else 1267 ac_cv_prog_cc_g=no 1268fi 1269rm -f conftest* 1270 1271fi 1272 1273echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1274if test "$ac_test_CFLAGS" = set; then 1275 CFLAGS="$ac_save_CFLAGS" 1276elif test $ac_cv_prog_cc_g = yes; then 1277 if test "$GCC" = yes; then 1278 CFLAGS="-g -O2" 1279 else 1280 CFLAGS="-g" 1281 fi 1282else 1283 if test "$GCC" = yes; then 1284 CFLAGS="-O2" 1285 else 1286 CFLAGS= 1287 fi 1288fi 1289 1290 1291echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1292echo "configure:1293: checking how to run the C preprocessor" >&5 1293# On Suns, sometimes $CPP names a directory. 1294if test -n "$CPP" && test -d "$CPP"; then 1295 CPP= 1296fi 1297if test -z "$CPP"; then 1298if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1299 echo $ac_n "(cached) $ac_c" 1>&6 1300else 1301 # This must be in double quotes, not single quotes, because CPP may get 1302 # substituted into the Makefile and "${CC-cc}" will confuse make. 1303 CPP="${CC-cc} -E" 1304 # On the NeXT, cc -E runs the code through the compiler's parser, 1305 # not just through cpp. 1306 cat > conftest.$ac_ext <<EOF 1307#line 1308 "configure" 1308#include "confdefs.h" 1309#include <assert.h> 1310Syntax Error 1311EOF 1312ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1313{ (eval echo configure:1314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1314ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1315if test -z "$ac_err"; then 1316 : 1317else 1318 echo "$ac_err" >&5 1319 echo "configure: failed program was:" >&5 1320 cat conftest.$ac_ext >&5 1321 rm -rf conftest* 1322 CPP="${CC-cc} -E -traditional-cpp" 1323 cat > conftest.$ac_ext <<EOF 1324#line 1325 "configure" 1325#include "confdefs.h" 1326#include <assert.h> 1327Syntax Error 1328EOF 1329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1330{ (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1332if test -z "$ac_err"; then 1333 : 1334else 1335 echo "$ac_err" >&5 1336 echo "configure: failed program was:" >&5 1337 cat conftest.$ac_ext >&5 1338 rm -rf conftest* 1339 CPP="${CC-cc} -nologo -E" 1340 cat > conftest.$ac_ext <<EOF 1341#line 1342 "configure" 1342#include "confdefs.h" 1343#include <assert.h> 1344Syntax Error 1345EOF 1346ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1347{ (eval echo configure:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1348ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1349if test -z "$ac_err"; then 1350 : 1351else 1352 echo "$ac_err" >&5 1353 echo "configure: failed program was:" >&5 1354 cat conftest.$ac_ext >&5 1355 rm -rf conftest* 1356 CPP=/lib/cpp 1357fi 1358rm -f conftest* 1359fi 1360rm -f conftest* 1361fi 1362rm -f conftest* 1363 ac_cv_prog_CPP="$CPP" 1364fi 1365 CPP="$ac_cv_prog_CPP" 1366else 1367 ac_cv_prog_CPP="$CPP" 1368fi 1369echo "$ac_t""$CPP" 1>&6 1370 1371am_make=${MAKE-make} 1372cat > confinc << 'END' 1373doit: 1374 @echo done 1375END 1376# If we don't find an include directive, just comment out the code. 1377echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6 1378echo "configure:1379: checking for style of include used by $am_make" >&5 1379_am_include='#' 1380_am_quote= 1381_am_result=none 1382# First try GNU make style include. 1383echo "include confinc" > confmf 1384if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1385 _am_include=include 1386 _am_quote= 1387 _am_result=GNU 1388fi 1389# Now try BSD make style include. 1390if test "$_am_include" = "#"; then 1391 echo '.include "confinc"' > confmf 1392 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1393 _am_include=.include 1394 _am_quote='"' 1395 _am_result=BSD 1396 fi 1397fi 1398 1399 1400echo "$ac_t""$_am_result" 1>&6 1401rm -f confinc confmf 1402 1403 1404depcc="$CC" 1405depcpp="$CPP" 1406 1407 1408 1409echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 1410echo "configure:1411: checking dependency style of $depcc" >&5 1411if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then 1412 echo $ac_n "(cached) $ac_c" 1>&6 1413else 1414 if test -z "$AMDEP"; then 1415 # We make a subdir and do the tests there. Otherwise we can end up 1416 # making bogus files that we don't know about and never remove. For 1417 # instance it was reported that on HP-UX the gcc test will end up 1418 # making a dummy file named `D' -- because `-MD' means `put the output 1419 # in D'. 1420 mkdir confdir 1421 # Copy depcomp to subdir because otherwise we won't find it if we're 1422 # using a relative directory. 1423 cp "$am_depcomp" confdir 1424 cd confdir 1425 1426 am_cv_CC_dependencies_compiler_type=none 1427 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "./depcomp"`; do 1428 # We need to recreate these files for each test, as the compiler may 1429 # overwrite some of them when testing with obscure command lines. 1430 # This happens at least with the AIX C compiler. 1431 echo '#include "conftest.h"' > conftest.c 1432 echo 'int i;' > conftest.h 1433 1434 case "$depmode" in 1435 nosideeffect) 1436 # after this tag, mechanisms are not by side-effect, so they'll 1437 # only be used when explicitly requested 1438 if test "x$enable_dependency_tracking" = xyes; then 1439 continue 1440 else 1441 break 1442 fi 1443 ;; 1444 none) break ;; 1445 esac 1446 # We check with `-c' and `-o' for the sake of the "dashmstdout" 1447 # mode. It turns out that the SunPro C++ compiler does not properly 1448 # handle `-M -o', and we need to detect this. 1449 if depmode="$depmode" \ 1450 source=conftest.c object=conftest.o \ 1451 depfile=conftest.Po tmpdepfile=conftest.TPo \ 1452 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 1453 grep conftest.h conftest.Po > /dev/null 2>&1; then 1454 am_cv_CC_dependencies_compiler_type="$depmode" 1455 break 1456 fi 1457 done 1458 1459 cd .. 1460 rm -rf confdir 1461else 1462 am_cv_CC_dependencies_compiler_type=none 1463fi 1464 1465fi 1466 1467echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6 1468CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 1469 1470 1471# Find a good install program. We prefer a C program (faster), 1472# so one script is as good as another. But avoid the broken or 1473# incompatible versions: 1474# SysV /etc/install, /usr/sbin/install 1475# SunOS /usr/etc/install 1476# IRIX /sbin/install 1477# AIX /bin/install 1478# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1479# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1480# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1481# ./install, which can be erroneously created by make from ./install.sh. 1482echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1483echo "configure:1484: checking for a BSD compatible install" >&5 1484if test -z "$INSTALL"; then 1485if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1486 echo $ac_n "(cached) $ac_c" 1>&6 1487else 1488 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1489 for ac_dir in $PATH; do 1490 # Account for people who put trailing slashes in PATH elements. 1491 case "$ac_dir/" in 1492 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1493 *) 1494 # OSF1 and SCO ODT 3.0 have their own names for install. 1495 # Don't use installbsd from OSF since it installs stuff as root 1496 # by default. 1497 for ac_prog in ginstall scoinst install; do 1498 if test -f $ac_dir/$ac_prog; then 1499 if test $ac_prog = install && 1500 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1501 # AIX install. It has an incompatible calling convention. 1502 : 1503 else 1504 ac_cv_path_install="$ac_dir/$ac_prog -c" 1505 break 2 1506 fi 1507 fi 1508 done 1509 ;; 1510 esac 1511 done 1512 IFS="$ac_save_IFS" 1513 1514fi 1515 if test "${ac_cv_path_install+set}" = set; then 1516 INSTALL="$ac_cv_path_install" 1517 else 1518 # As a last resort, use the slow shell script. We don't cache a 1519 # path for INSTALL within a source directory, because that will 1520 # break other packages using the cache if that directory is 1521 # removed, or if the path is relative. 1522 INSTALL="$ac_install_sh" 1523 fi 1524fi 1525echo "$ac_t""$INSTALL" 1>&6 1526 1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1528# It thinks the first close brace ends the variable substitution. 1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1530 1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1532 1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1534 1535echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1536echo "configure:1537: checking whether ${MAKE-make} sets \${MAKE}" >&5 1537set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1538if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1539 echo $ac_n "(cached) $ac_c" 1>&6 1540else 1541 cat > conftestmake <<\EOF 1542all: 1543 @echo 'ac_maketemp="${MAKE}"' 1544EOF 1545# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1546eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1547if test -n "$ac_maketemp"; then 1548 eval ac_cv_prog_make_${ac_make}_set=yes 1549else 1550 eval ac_cv_prog_make_${ac_make}_set=no 1551fi 1552rm -f conftestmake 1553fi 1554if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1555 echo "$ac_t""yes" 1>&6 1556 SET_MAKE= 1557else 1558 echo "$ac_t""no" 1>&6 1559 SET_MAKE="MAKE=${MAKE-make}" 1560fi 1561 1562# Automake's more advanced version of AC_PROG_RANLIB 1563# Extract the first word of "ranlib", so it can be a program name with args. 1564set dummy ranlib; ac_word=$2 1565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1566echo "configure:1567: checking for $ac_word" >&5 1567if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1568 echo $ac_n "(cached) $ac_c" 1>&6 1569else 1570 if test -n "$RANLIB"; then 1571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1572else 1573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1574 ac_dummy="$PATH" 1575 for ac_dir in $ac_dummy; do 1576 test -z "$ac_dir" && ac_dir=. 1577 if test -f $ac_dir/$ac_word; then 1578 ac_cv_prog_RANLIB="ranlib" 1579 break 1580 fi 1581 done 1582 IFS="$ac_save_ifs" 1583 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1584fi 1585fi 1586RANLIB="$ac_cv_prog_RANLIB" 1587if test -n "$RANLIB"; then 1588 echo "$ac_t""$RANLIB" 1>&6 1589else 1590 echo "$ac_t""no" 1>&6 1591fi 1592 1593for ac_prog in 'bison -y' byacc 1594do 1595# Extract the first word of "$ac_prog", so it can be a program name with args. 1596set dummy $ac_prog; ac_word=$2 1597echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1598echo "configure:1599: checking for $ac_word" >&5 1599if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1600 echo $ac_n "(cached) $ac_c" 1>&6 1601else 1602 if test -n "$YACC"; then 1603 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1604else 1605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1606 ac_dummy="$PATH" 1607 for ac_dir in $ac_dummy; do 1608 test -z "$ac_dir" && ac_dir=. 1609 if test -f $ac_dir/$ac_word; then 1610 ac_cv_prog_YACC="$ac_prog" 1611 break 1612 fi 1613 done 1614 IFS="$ac_save_ifs" 1615fi 1616fi 1617YACC="$ac_cv_prog_YACC" 1618if test -n "$YACC"; then 1619 echo "$ac_t""$YACC" 1>&6 1620else 1621 echo "$ac_t""no" 1>&6 1622fi 1623 1624test -n "$YACC" && break 1625done 1626test -n "$YACC" || YACC="yacc" 1627 1628echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1629echo "configure:1630: checking whether ln -s works" >&5 1630if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1631 echo $ac_n "(cached) $ac_c" 1>&6 1632else 1633 rm -f conftestdata 1634if ln -s X conftestdata 2>/dev/null 1635then 1636 rm -f conftestdata 1637 ac_cv_prog_LN_S="ln -s" 1638else 1639 ac_cv_prog_LN_S=ln 1640fi 1641fi 1642LN_S="$ac_cv_prog_LN_S" 1643if test "$ac_cv_prog_LN_S" = "ln -s"; then 1644 echo "$ac_t""yes" 1>&6 1645else 1646 echo "$ac_t""no" 1>&6 1647fi 1648 1649 1650# Extract the first word of "perl", so it can be a program name with args. 1651set dummy perl; ac_word=$2 1652echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1653echo "configure:1654: checking for $ac_word" >&5 1654if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then 1655 echo $ac_n "(cached) $ac_c" 1>&6 1656else 1657 case "$PERL" in 1658 /*) 1659 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 1660 ;; 1661 ?:/*) 1662 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. 1663 ;; 1664 *) 1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1666 ac_dummy="$PATH" 1667 for ac_dir in $ac_dummy; do 1668 test -z "$ac_dir" && ac_dir=. 1669 if test -f $ac_dir/$ac_word; then 1670 ac_cv_path_PERL="$ac_dir/$ac_word" 1671 break 1672 fi 1673 done 1674 IFS="$ac_save_ifs" 1675 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" 1676 ;; 1677esac 1678fi 1679PERL="$ac_cv_path_PERL" 1680if test -n "$PERL"; then 1681 echo "$ac_t""$PERL" 1>&6 1682else 1683 echo "$ac_t""no" 1>&6 1684fi 1685 1686# Extract the first word of "csh", so it can be a program name with args. 1687set dummy csh; ac_word=$2 1688echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1689echo "configure:1690: checking for $ac_word" >&5 1690if eval "test \"`echo '$''{'ac_cv_path_CSH'+set}'`\" = set"; then 1691 echo $ac_n "(cached) $ac_c" 1>&6 1692else 1693 case "$CSH" in 1694 /*) 1695 ac_cv_path_CSH="$CSH" # Let the user override the test with a path. 1696 ;; 1697 ?:/*) 1698 ac_cv_path_CSH="$CSH" # Let the user override the test with a dos path. 1699 ;; 1700 *) 1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1702 ac_dummy="$PATH" 1703 for ac_dir in $ac_dummy; do 1704 test -z "$ac_dir" && ac_dir=. 1705 if test -f $ac_dir/$ac_word; then 1706 ac_cv_path_CSH="$ac_dir/$ac_word" 1707 break 1708 fi 1709 done 1710 IFS="$ac_save_ifs" 1711 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no" 1712 ;; 1713esac 1714fi 1715CSH="$ac_cv_path_CSH" 1716if test -n "$CSH"; then 1717 echo "$ac_t""$CSH" 1>&6 1718else 1719 echo "$ac_t""no" 1>&6 1720fi 1721 1722# Extract the first word of "pr", so it can be a program name with args. 1723set dummy pr; ac_word=$2 1724echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1725echo "configure:1726: checking for $ac_word" >&5 1726if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then 1727 echo $ac_n "(cached) $ac_c" 1>&6 1728else 1729 case "$PR" in 1730 /*) 1731 ac_cv_path_PR="$PR" # Let the user override the test with a path. 1732 ;; 1733 ?:/*) 1734 ac_cv_path_PR="$PR" # Let the user override the test with a dos path. 1735 ;; 1736 *) 1737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1738 ac_dummy="$PATH" 1739 for ac_dir in $ac_dummy; do 1740 test -z "$ac_dir" && ac_dir=. 1741 if test -f $ac_dir/$ac_word; then 1742 ac_cv_path_PR="$ac_dir/$ac_word" 1743 break 1744 fi 1745 done 1746 IFS="$ac_save_ifs" 1747 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no" 1748 ;; 1749esac 1750fi 1751PR="$ac_cv_path_PR" 1752if test -n "$PR"; then 1753 echo "$ac_t""$PR" 1>&6 1754else 1755 echo "$ac_t""no" 1>&6 1756fi 1757 1758# For diff/util.c 1759if test x"$PR" != xno; then 1760 cat >> confdefs.h <<EOF 1761#define PR_PROGRAM "$PR" 1762EOF 1763 1764fi 1765 1766missing_dir=`cd $ac_aux_dir && pwd` 1767glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin" 1768for ac_prog in groff roff 1769do 1770# Extract the first word of "$ac_prog", so it can be a program name with args. 1771set dummy $ac_prog; ac_word=$2 1772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1773echo "configure:1774: checking for $ac_word" >&5 1774if eval "test \"`echo '$''{'ac_cv_path_ROFF'+set}'`\" = set"; then 1775 echo $ac_n "(cached) $ac_c" 1>&6 1776else 1777 case "$ROFF" in 1778 /*) 1779 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path. 1780 ;; 1781 ?:/*) 1782 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a dos path. 1783 ;; 1784 *) 1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1786 ac_dummy="$glocs" 1787 for ac_dir in $ac_dummy; do 1788 test -z "$ac_dir" && ac_dir=. 1789 if test -f $ac_dir/$ac_word; then 1790 ac_cv_path_ROFF="$ac_dir/$ac_word" 1791 break 1792 fi 1793 done 1794 IFS="$ac_save_ifs" 1795 ;; 1796esac 1797fi 1798ROFF="$ac_cv_path_ROFF" 1799if test -n "$ROFF"; then 1800 echo "$ac_t""$ROFF" 1>&6 1801else 1802 echo "$ac_t""no" 1>&6 1803fi 1804 1805test -n "$ROFF" && break 1806done 1807test -n "$ROFF" || ROFF="$missing_dir/missing roff" 1808 1809# Extract the first word of "ps2pdf", so it can be a program name with args. 1810set dummy ps2pdf; ac_word=$2 1811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1812echo "configure:1813: checking for $ac_word" >&5 1813if eval "test \"`echo '$''{'ac_cv_path_PS2PDF'+set}'`\" = set"; then 1814 echo $ac_n "(cached) $ac_c" 1>&6 1815else 1816 case "$PS2PDF" in 1817 /*) 1818 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 1819 ;; 1820 ?:/*) 1821 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a dos path. 1822 ;; 1823 *) 1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1825 ac_dummy="$PATH" 1826 for ac_dir in $ac_dummy; do 1827 test -z "$ac_dir" && ac_dir=. 1828 if test -f $ac_dir/$ac_word; then 1829 ac_cv_path_PS2PDF="$ac_dir/$ac_word" 1830 break 1831 fi 1832 done 1833 IFS="$ac_save_ifs" 1834 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf" 1835 ;; 1836esac 1837fi 1838PS2PDF="$ac_cv_path_PS2PDF" 1839if test -n "$PS2PDF"; then 1840 echo "$ac_t""$PS2PDF" 1>&6 1841else 1842 echo "$ac_t""no" 1>&6 1843fi 1844 1845# Extract the first word of "texi2dvi", so it can be a program name with args. 1846set dummy texi2dvi; ac_word=$2 1847echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1848echo "configure:1849: checking for $ac_word" >&5 1849if eval "test \"`echo '$''{'ac_cv_path_TEXI2DVI'+set}'`\" = set"; then 1850 echo $ac_n "(cached) $ac_c" 1>&6 1851else 1852 case "$TEXI2DVI" in 1853 /*) 1854 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path. 1855 ;; 1856 ?:/*) 1857 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a dos path. 1858 ;; 1859 *) 1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1861 ac_dummy="$PATH" 1862 for ac_dir in $ac_dummy; do 1863 test -z "$ac_dir" && ac_dir=. 1864 if test -f $ac_dir/$ac_word; then 1865 ac_cv_path_TEXI2DVI="$ac_dir/$ac_word" 1866 break 1867 fi 1868 done 1869 IFS="$ac_save_ifs" 1870 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi" 1871 ;; 1872esac 1873fi 1874TEXI2DVI="$ac_cv_path_TEXI2DVI" 1875if test -n "$TEXI2DVI"; then 1876 echo "$ac_t""$TEXI2DVI" 1>&6 1877else 1878 echo "$ac_t""no" 1>&6 1879fi 1880 1881 1882# Pull the hash mark out of the macro call to avoid m4 problems. 1883ac_msg="whether #! works in shell scripts" 1884echo $ac_n "checking $ac_msg""... $ac_c" 1>&6 1885echo "configure:1886: checking $ac_msg" >&5 1886if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then 1887 echo $ac_n "(cached) $ac_c" 1>&6 1888else 1889 echo '#! /bin/cat 1890exit 69 1891' > conftest 1892chmod u+x conftest 1893(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) 1894if test $? -ne 69; then 1895 ac_cv_sys_interpreter=yes 1896else 1897 ac_cv_sys_interpreter=no 1898fi 1899rm -f conftest 1900fi 1901 1902echo "$ac_t""$ac_cv_sys_interpreter" 1>&6 1903interpval="$ac_cv_sys_interpreter" 1904 1905if test X"$ac_cv_sys_interpreter" != X"yes" ; then 1906 # silly trick to avoid problems in AC macros... 1907 ac_msg='perl scripts using #! may not be invoked properly' 1908 echo "configure: warning: $ac_msg" 1>&2 1909fi 1910 1911# BSD's logo is a devil for a reason, hey? 1912echo $ac_n "checking for BSD VPATH bug in make""... $ac_c" 1>&6 1913echo "configure:1914: checking for BSD VPATH bug in make" >&5 1914if eval "test \"`echo '$''{'ccvs_cv_bsd_make_vpath_bug'+set}'`\" = set"; then 1915 echo $ac_n "(cached) $ac_c" 1>&6 1916else 1917 if test ! -d ac_test_dir ; then 1918 { ac_try='mkdir ac_test_dir'; { (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } 1919fi 1920cat >conftestmake <<EOF 1921VPATH = ac_test_dir 1922ac_test_target: ac_test_dep 1923 echo BSD VPATH bug present >&2 1924ac_test_dep: ac_test_dep_dep 1925EOF 1926touch ac_test_dir/ac_test_dep_dep 1927touch ac_test_dir/ac_test_dep 1928touch ac_test_target 1929# Don't know why, but the following test doesn't work under FreeBSD 4.2 1930# without this sleep command 1931sleep 1 1932if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'; { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then 1933 ccvs_cv_bsd_make_vpath_bug=yes 1934else 1935 ccvs_cv_bsd_make_vpath_bug=no 1936fi 1937{ ac_try='rm -rf ac_test_dir ac_test_target conftestmake'; { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } 1938fi 1939 1940echo "$ac_t""$ccvs_cv_bsd_make_vpath_bug" 1>&6 1941# We also don't need to worry about the bug when $srcdir = $builddir 1942 1943 1944if \ 1945 test $ccvs_cv_bsd_make_vpath_bug = no \ 1946 || test $srcdir = .; then 1947 MAKE_TARGETS_IN_VPATH_TRUE= 1948 MAKE_TARGETS_IN_VPATH_FALSE='#' 1949else 1950 MAKE_TARGETS_IN_VPATH_TRUE='#' 1951 MAKE_TARGETS_IN_VPATH_FALSE= 1952fi 1953 1954echo $ac_n "checking for AIX""... $ac_c" 1>&6 1955echo "configure:1956: checking for AIX" >&5 1956cat > conftest.$ac_ext <<EOF 1957#line 1958 "configure" 1958#include "confdefs.h" 1959#ifdef _AIX 1960 yes 1961#endif 1962 1963EOF 1964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1965 egrep "yes" >/dev/null 2>&1; then 1966 rm -rf conftest* 1967 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1968#define _ALL_SOURCE 1 1969EOF 1970 1971else 1972 rm -rf conftest* 1973 echo "$ac_t""no" 1>&6 1974fi 1975rm -f conftest* 1976 1977 1978ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1979echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1980echo "configure:1981: checking for minix/config.h" >&5 1981if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1982 echo $ac_n "(cached) $ac_c" 1>&6 1983else 1984 cat > conftest.$ac_ext <<EOF 1985#line 1986 "configure" 1986#include "confdefs.h" 1987#include <minix/config.h> 1988EOF 1989ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1990{ (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1991ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1992if test -z "$ac_err"; then 1993 rm -rf conftest* 1994 eval "ac_cv_header_$ac_safe=yes" 1995else 1996 echo "$ac_err" >&5 1997 echo "configure: failed program was:" >&5 1998 cat conftest.$ac_ext >&5 1999 rm -rf conftest* 2000 eval "ac_cv_header_$ac_safe=no" 2001fi 2002rm -f conftest* 2003fi 2004if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2005 echo "$ac_t""yes" 1>&6 2006 MINIX=yes 2007else 2008 echo "$ac_t""no" 1>&6 2009MINIX= 2010fi 2011 2012if test "$MINIX" = yes; then 2013 cat >> confdefs.h <<\EOF 2014#define _POSIX_SOURCE 1 2015EOF 2016 2017 cat >> confdefs.h <<\EOF 2018#define _POSIX_1_SOURCE 2 2019EOF 2020 2021 cat >> confdefs.h <<\EOF 2022#define _MINIX 1 2023EOF 2024 2025fi 2026 2027echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 2028echo "configure:2029: checking for POSIXized ISC" >&5 2029if test -d /etc/conf/kconfig.d && 2030 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2031then 2032 echo "$ac_t""yes" 1>&6 2033 ISC=yes # If later tests want to check for ISC. 2034 cat >> confdefs.h <<\EOF 2035#define _POSIX_SOURCE 1 2036EOF 2037 2038 if test "$GCC" = yes; then 2039 CC="$CC -posix" 2040 else 2041 CC="$CC -Xp" 2042 fi 2043else 2044 echo "$ac_t""no" 1>&6 2045 ISC= 2046fi 2047 2048if test "$ISC" = yes; then 2049CFLAGS="$CFLAGS -D_SYSV3" 2050LIBS="-lcrypt $LIBS" 2051fi 2052 2053ac_header_dirent=no 2054for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 2055do 2056ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2057echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 2058echo "configure:2059: checking for $ac_hdr that defines DIR" >&5 2059if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 2060 echo $ac_n "(cached) $ac_c" 1>&6 2061else 2062 cat > conftest.$ac_ext <<EOF 2063#line 2064 "configure" 2064#include "confdefs.h" 2065#include <sys/types.h> 2066#include <$ac_hdr> 2067int main() { 2068DIR *dirp = 0; 2069; return 0; } 2070EOF 2071if { (eval echo configure:2072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2072 rm -rf conftest* 2073 eval "ac_cv_header_dirent_$ac_safe=yes" 2074else 2075 echo "configure: failed program was:" >&5 2076 cat conftest.$ac_ext >&5 2077 rm -rf conftest* 2078 eval "ac_cv_header_dirent_$ac_safe=no" 2079fi 2080rm -f conftest* 2081fi 2082if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 2083 echo "$ac_t""yes" 1>&6 2084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2085 cat >> confdefs.h <<EOF 2086#define $ac_tr_hdr 1 2087EOF 2088 ac_header_dirent=$ac_hdr; break 2089else 2090 echo "$ac_t""no" 1>&6 2091fi 2092done 2093# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 2094if test $ac_header_dirent = dirent.h; then 2095echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 2096echo "configure:2097: checking for opendir in -ldir" >&5 2097ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 2098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2099 echo $ac_n "(cached) $ac_c" 1>&6 2100else 2101 ac_save_LIBS="$LIBS" 2102LIBS="-ldir $LIBS" 2103cat > conftest.$ac_ext <<EOF 2104#line 2105 "configure" 2105#include "confdefs.h" 2106/* Override any gcc2 internal prototype to avoid an error. */ 2107/* We use char because int might match the return type of a gcc2 2108 builtin and then its argument prototype would still apply. */ 2109char opendir(); 2110 2111int main() { 2112opendir() 2113; return 0; } 2114EOF 2115if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2116 rm -rf conftest* 2117 eval "ac_cv_lib_$ac_lib_var=yes" 2118else 2119 echo "configure: failed program was:" >&5 2120 cat conftest.$ac_ext >&5 2121 rm -rf conftest* 2122 eval "ac_cv_lib_$ac_lib_var=no" 2123fi 2124rm -f conftest* 2125LIBS="$ac_save_LIBS" 2126 2127fi 2128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2129 echo "$ac_t""yes" 1>&6 2130 LIBS="$LIBS -ldir" 2131else 2132 echo "$ac_t""no" 1>&6 2133fi 2134 2135else 2136echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 2137echo "configure:2138: checking for opendir in -lx" >&5 2138ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2140 echo $ac_n "(cached) $ac_c" 1>&6 2141else 2142 ac_save_LIBS="$LIBS" 2143LIBS="-lx $LIBS" 2144cat > conftest.$ac_ext <<EOF 2145#line 2146 "configure" 2146#include "confdefs.h" 2147/* Override any gcc2 internal prototype to avoid an error. */ 2148/* We use char because int might match the return type of a gcc2 2149 builtin and then its argument prototype would still apply. */ 2150char opendir(); 2151 2152int main() { 2153opendir() 2154; return 0; } 2155EOF 2156if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2157 rm -rf conftest* 2158 eval "ac_cv_lib_$ac_lib_var=yes" 2159else 2160 echo "configure: failed program was:" >&5 2161 cat conftest.$ac_ext >&5 2162 rm -rf conftest* 2163 eval "ac_cv_lib_$ac_lib_var=no" 2164fi 2165rm -f conftest* 2166LIBS="$ac_save_LIBS" 2167 2168fi 2169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2170 echo "$ac_t""yes" 1>&6 2171 LIBS="$LIBS -lx" 2172else 2173 echo "$ac_t""no" 1>&6 2174fi 2175 2176fi 2177 2178echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2179echo "configure:2180: checking for ANSI C header files" >&5 2180if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2181 echo $ac_n "(cached) $ac_c" 1>&6 2182else 2183 cat > conftest.$ac_ext <<EOF 2184#line 2185 "configure" 2185#include "confdefs.h" 2186#include <stdlib.h> 2187#include <stdarg.h> 2188#include <string.h> 2189#include <float.h> 2190EOF 2191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2192{ (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2193ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2194if test -z "$ac_err"; then 2195 rm -rf conftest* 2196 ac_cv_header_stdc=yes 2197else 2198 echo "$ac_err" >&5 2199 echo "configure: failed program was:" >&5 2200 cat conftest.$ac_ext >&5 2201 rm -rf conftest* 2202 ac_cv_header_stdc=no 2203fi 2204rm -f conftest* 2205 2206if test $ac_cv_header_stdc = yes; then 2207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2208cat > conftest.$ac_ext <<EOF 2209#line 2210 "configure" 2210#include "confdefs.h" 2211#include <string.h> 2212EOF 2213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2214 egrep "memchr" >/dev/null 2>&1; then 2215 : 2216else 2217 rm -rf conftest* 2218 ac_cv_header_stdc=no 2219fi 2220rm -f conftest* 2221 2222fi 2223 2224if test $ac_cv_header_stdc = yes; then 2225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2226cat > conftest.$ac_ext <<EOF 2227#line 2228 "configure" 2228#include "confdefs.h" 2229#include <stdlib.h> 2230EOF 2231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2232 egrep "free" >/dev/null 2>&1; then 2233 : 2234else 2235 rm -rf conftest* 2236 ac_cv_header_stdc=no 2237fi 2238rm -f conftest* 2239 2240fi 2241 2242if test $ac_cv_header_stdc = yes; then 2243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2244if test "$cross_compiling" = yes; then 2245 : 2246else 2247 cat > conftest.$ac_ext <<EOF 2248#line 2249 "configure" 2249#include "confdefs.h" 2250#include <ctype.h> 2251#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2252#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2254int main () { int i; for (i = 0; i < 256; i++) 2255if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2256exit (0); } 2257 2258EOF 2259if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2260then 2261 : 2262else 2263 echo "configure: failed program was:" >&5 2264 cat conftest.$ac_ext >&5 2265 rm -fr conftest* 2266 ac_cv_header_stdc=no 2267fi 2268rm -fr conftest* 2269fi 2270 2271fi 2272fi 2273 2274echo "$ac_t""$ac_cv_header_stdc" 1>&6 2275if test $ac_cv_header_stdc = yes; then 2276 cat >> confdefs.h <<\EOF 2277#define STDC_HEADERS 1 2278EOF 2279 2280fi 2281 2282echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2283echo "configure:2284: checking for sys/wait.h that is POSIX.1 compatible" >&5 2284if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2285 echo $ac_n "(cached) $ac_c" 1>&6 2286else 2287 cat > conftest.$ac_ext <<EOF 2288#line 2289 "configure" 2289#include "confdefs.h" 2290#include <sys/types.h> 2291#include <sys/wait.h> 2292#ifndef WEXITSTATUS 2293#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2294#endif 2295#ifndef WIFEXITED 2296#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 2297#endif 2298int main() { 2299int s; 2300wait (&s); 2301s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2302; return 0; } 2303EOF 2304if { (eval echo configure:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2305 rm -rf conftest* 2306 ac_cv_header_sys_wait_h=yes 2307else 2308 echo "configure: failed program was:" >&5 2309 cat conftest.$ac_ext >&5 2310 rm -rf conftest* 2311 ac_cv_header_sys_wait_h=no 2312fi 2313rm -f conftest* 2314fi 2315 2316echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 2317if test $ac_cv_header_sys_wait_h = yes; then 2318 cat >> confdefs.h <<\EOF 2319#define HAVE_SYS_WAIT_H 1 2320EOF 2321 2322fi 2323 2324for ac_hdr in errno.h unistd.h string.h memory.h utime.h fcntl.h ndbm.h \ 2325 limits.h sys/file.h \ 2326 sys/param.h sys/select.h sys/time.h sys/timeb.h \ 2327 io.h direct.h sys/bsdtypes.h sys/resource.h syslog.h 2328do 2329ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2330echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2331echo "configure:2332: checking for $ac_hdr" >&5 2332if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2333 echo $ac_n "(cached) $ac_c" 1>&6 2334else 2335 cat > conftest.$ac_ext <<EOF 2336#line 2337 "configure" 2337#include "confdefs.h" 2338#include <$ac_hdr> 2339EOF 2340ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2341{ (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2342ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2343if test -z "$ac_err"; then 2344 rm -rf conftest* 2345 eval "ac_cv_header_$ac_safe=yes" 2346else 2347 echo "$ac_err" >&5 2348 echo "configure: failed program was:" >&5 2349 cat conftest.$ac_ext >&5 2350 rm -rf conftest* 2351 eval "ac_cv_header_$ac_safe=no" 2352fi 2353rm -f conftest* 2354fi 2355if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2356 echo "$ac_t""yes" 1>&6 2357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2358 cat >> confdefs.h <<EOF 2359#define $ac_tr_hdr 1 2360EOF 2361 2362else 2363 echo "$ac_t""no" 1>&6 2364fi 2365done 2366 2367echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 2368echo "configure:2369: checking whether stat file-mode macros are broken" >&5 2369if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then 2370 echo $ac_n "(cached) $ac_c" 1>&6 2371else 2372 cat > conftest.$ac_ext <<EOF 2373#line 2374 "configure" 2374#include "confdefs.h" 2375#include <sys/types.h> 2376#include <sys/stat.h> 2377 2378#if defined(S_ISBLK) && defined(S_IFDIR) 2379# if S_ISBLK (S_IFDIR) 2380You lose. 2381# endif 2382#endif 2383 2384#if defined(S_ISBLK) && defined(S_IFCHR) 2385# if S_ISBLK (S_IFCHR) 2386You lose. 2387# endif 2388#endif 2389 2390#if defined(S_ISLNK) && defined(S_IFREG) 2391# if S_ISLNK (S_IFREG) 2392You lose. 2393# endif 2394#endif 2395 2396#if defined(S_ISSOCK) && defined(S_IFREG) 2397# if S_ISSOCK (S_IFREG) 2398You lose. 2399# endif 2400#endif 2401 2402EOF 2403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2404 egrep "You lose" >/dev/null 2>&1; then 2405 rm -rf conftest* 2406 ac_cv_header_stat_broken=yes 2407else 2408 rm -rf conftest* 2409 ac_cv_header_stat_broken=no 2410fi 2411rm -f conftest* 2412 2413fi 2414 2415echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 2416if test $ac_cv_header_stat_broken = yes; then 2417 cat >> confdefs.h <<\EOF 2418#define STAT_MACROS_BROKEN 1 2419EOF 2420 2421fi 2422 2423echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2424echo "configure:2425: checking whether time.h and sys/time.h may both be included" >&5 2425if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2426 echo $ac_n "(cached) $ac_c" 1>&6 2427else 2428 cat > conftest.$ac_ext <<EOF 2429#line 2430 "configure" 2430#include "confdefs.h" 2431#include <sys/types.h> 2432#include <sys/time.h> 2433#include <time.h> 2434int main() { 2435struct tm *tp; 2436; return 0; } 2437EOF 2438if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2439 rm -rf conftest* 2440 ac_cv_header_time=yes 2441else 2442 echo "configure: failed program was:" >&5 2443 cat conftest.$ac_ext >&5 2444 rm -rf conftest* 2445 ac_cv_header_time=no 2446fi 2447rm -f conftest* 2448fi 2449 2450echo "$ac_t""$ac_cv_header_time" 1>&6 2451if test $ac_cv_header_time = yes; then 2452 cat >> confdefs.h <<\EOF 2453#define TIME_WITH_SYS_TIME 1 2454EOF 2455 2456fi 2457 2458 2459echo $ac_n "checking for working const""... $ac_c" 1>&6 2460echo "configure:2461: checking for working const" >&5 2461if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2462 echo $ac_n "(cached) $ac_c" 1>&6 2463else 2464 cat > conftest.$ac_ext <<EOF 2465#line 2466 "configure" 2466#include "confdefs.h" 2467 2468int main() { 2469 2470/* Ultrix mips cc rejects this. */ 2471typedef int charset[2]; const charset x; 2472/* SunOS 4.1.1 cc rejects this. */ 2473char const *const *ccp; 2474char **p; 2475/* NEC SVR4.0.2 mips cc rejects this. */ 2476struct point {int x, y;}; 2477static struct point const zero = {0,0}; 2478/* AIX XL C 1.02.0.0 rejects this. 2479 It does not let you subtract one const X* pointer from another in an arm 2480 of an if-expression whose if-part is not a constant expression */ 2481const char *g = "string"; 2482ccp = &g + (g ? g-g : 0); 2483/* HPUX 7.0 cc rejects these. */ 2484++ccp; 2485p = (char**) ccp; 2486ccp = (char const *const *) p; 2487{ /* SCO 3.2v4 cc rejects this. */ 2488 char *t; 2489 char const *s = 0 ? (char *) 0 : (char const *) 0; 2490 2491 *t++ = 0; 2492} 2493{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2494 int x[] = {25, 17}; 2495 const int *foo = &x[0]; 2496 ++foo; 2497} 2498{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2499 typedef const int *iptr; 2500 iptr p = 0; 2501 ++p; 2502} 2503{ /* AIX XL C 1.02.0.0 rejects this saying 2504 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2505 struct s { int j; const int *ap[3]; }; 2506 struct s *b; b->j = 5; 2507} 2508{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2509 const int foo = 10; 2510} 2511 2512; return 0; } 2513EOF 2514if { (eval echo configure:2515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2515 rm -rf conftest* 2516 ac_cv_c_const=yes 2517else 2518 echo "configure: failed program was:" >&5 2519 cat conftest.$ac_ext >&5 2520 rm -rf conftest* 2521 ac_cv_c_const=no 2522fi 2523rm -f conftest* 2524fi 2525 2526echo "$ac_t""$ac_cv_c_const" 1>&6 2527if test $ac_cv_c_const = no; then 2528 cat >> confdefs.h <<\EOF 2529#define const 2530EOF 2531 2532fi 2533 2534echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 2535echo "configure:2536: checking for uid_t in sys/types.h" >&5 2536if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 2537 echo $ac_n "(cached) $ac_c" 1>&6 2538else 2539 cat > conftest.$ac_ext <<EOF 2540#line 2541 "configure" 2541#include "confdefs.h" 2542#include <sys/types.h> 2543EOF 2544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2545 egrep "uid_t" >/dev/null 2>&1; then 2546 rm -rf conftest* 2547 ac_cv_type_uid_t=yes 2548else 2549 rm -rf conftest* 2550 ac_cv_type_uid_t=no 2551fi 2552rm -f conftest* 2553 2554fi 2555 2556echo "$ac_t""$ac_cv_type_uid_t" 1>&6 2557if test $ac_cv_type_uid_t = no; then 2558 cat >> confdefs.h <<\EOF 2559#define uid_t int 2560EOF 2561 2562 cat >> confdefs.h <<\EOF 2563#define gid_t int 2564EOF 2565 2566fi 2567 2568echo $ac_n "checking for mode_t""... $ac_c" 1>&6 2569echo "configure:2570: checking for mode_t" >&5 2570if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then 2571 echo $ac_n "(cached) $ac_c" 1>&6 2572else 2573 cat > conftest.$ac_ext <<EOF 2574#line 2575 "configure" 2575#include "confdefs.h" 2576#include <sys/types.h> 2577#if STDC_HEADERS 2578#include <stdlib.h> 2579#include <stddef.h> 2580#endif 2581EOF 2582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2583 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2584 rm -rf conftest* 2585 ac_cv_type_mode_t=yes 2586else 2587 rm -rf conftest* 2588 ac_cv_type_mode_t=no 2589fi 2590rm -f conftest* 2591 2592fi 2593echo "$ac_t""$ac_cv_type_mode_t" 1>&6 2594if test $ac_cv_type_mode_t = no; then 2595 cat >> confdefs.h <<\EOF 2596#define mode_t int 2597EOF 2598 2599fi 2600 2601echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2602echo "configure:2603: checking for pid_t" >&5 2603if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 2604 echo $ac_n "(cached) $ac_c" 1>&6 2605else 2606 cat > conftest.$ac_ext <<EOF 2607#line 2608 "configure" 2608#include "confdefs.h" 2609#include <sys/types.h> 2610#if STDC_HEADERS 2611#include <stdlib.h> 2612#include <stddef.h> 2613#endif 2614EOF 2615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2616 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2617 rm -rf conftest* 2618 ac_cv_type_pid_t=yes 2619else 2620 rm -rf conftest* 2621 ac_cv_type_pid_t=no 2622fi 2623rm -f conftest* 2624 2625fi 2626echo "$ac_t""$ac_cv_type_pid_t" 1>&6 2627if test $ac_cv_type_pid_t = no; then 2628 cat >> confdefs.h <<\EOF 2629#define pid_t int 2630EOF 2631 2632fi 2633 2634echo $ac_n "checking for size_t""... $ac_c" 1>&6 2635echo "configure:2636: checking for size_t" >&5 2636if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2637 echo $ac_n "(cached) $ac_c" 1>&6 2638else 2639 cat > conftest.$ac_ext <<EOF 2640#line 2641 "configure" 2641#include "confdefs.h" 2642#include <sys/types.h> 2643#if STDC_HEADERS 2644#include <stdlib.h> 2645#include <stddef.h> 2646#endif 2647EOF 2648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2649 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2650 rm -rf conftest* 2651 ac_cv_type_size_t=yes 2652else 2653 rm -rf conftest* 2654 ac_cv_type_size_t=no 2655fi 2656rm -f conftest* 2657 2658fi 2659echo "$ac_t""$ac_cv_type_size_t" 1>&6 2660if test $ac_cv_type_size_t = no; then 2661 cat >> confdefs.h <<\EOF 2662#define size_t unsigned 2663EOF 2664 2665fi 2666 2667echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2668echo "configure:2669: checking return type of signal handlers" >&5 2669if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2670 echo $ac_n "(cached) $ac_c" 1>&6 2671else 2672 cat > conftest.$ac_ext <<EOF 2673#line 2674 "configure" 2674#include "confdefs.h" 2675#include <sys/types.h> 2676#include <signal.h> 2677#ifdef signal 2678#undef signal 2679#endif 2680#ifdef __cplusplus 2681extern "C" void (*signal (int, void (*)(int)))(int); 2682#else 2683void (*signal ()) (); 2684#endif 2685 2686int main() { 2687int i; 2688; return 0; } 2689EOF 2690if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2691 rm -rf conftest* 2692 ac_cv_type_signal=void 2693else 2694 echo "configure: failed program was:" >&5 2695 cat conftest.$ac_ext >&5 2696 rm -rf conftest* 2697 ac_cv_type_signal=int 2698fi 2699rm -f conftest* 2700fi 2701 2702echo "$ac_t""$ac_cv_type_signal" 1>&6 2703cat >> confdefs.h <<EOF 2704#define RETSIGTYPE $ac_cv_type_signal 2705EOF 2706 2707 2708 2709echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 2710echo "configure:2711: checking for st_blksize in struct stat" >&5 2711if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then 2712 echo $ac_n "(cached) $ac_c" 1>&6 2713else 2714 cat > conftest.$ac_ext <<EOF 2715#line 2716 "configure" 2716#include "confdefs.h" 2717#include <sys/types.h> 2718#include <sys/stat.h> 2719int main() { 2720struct stat s; s.st_blksize; 2721; return 0; } 2722EOF 2723if { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2724 rm -rf conftest* 2725 ac_cv_struct_st_blksize=yes 2726else 2727 echo "configure: failed program was:" >&5 2728 cat conftest.$ac_ext >&5 2729 rm -rf conftest* 2730 ac_cv_struct_st_blksize=no 2731fi 2732rm -f conftest* 2733fi 2734 2735echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 2736if test $ac_cv_struct_st_blksize = yes; then 2737 cat >> confdefs.h <<\EOF 2738#define HAVE_ST_BLKSIZE 1 2739EOF 2740 2741fi 2742 2743echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 2744echo "configure:2745: checking for st_rdev in struct stat" >&5 2745if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then 2746 echo $ac_n "(cached) $ac_c" 1>&6 2747else 2748 cat > conftest.$ac_ext <<EOF 2749#line 2750 "configure" 2750#include "confdefs.h" 2751#include <sys/types.h> 2752#include <sys/stat.h> 2753int main() { 2754struct stat s; s.st_rdev; 2755; return 0; } 2756EOF 2757if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2758 rm -rf conftest* 2759 ac_cv_struct_st_rdev=yes 2760else 2761 echo "configure: failed program was:" >&5 2762 cat conftest.$ac_ext >&5 2763 rm -rf conftest* 2764 ac_cv_struct_st_rdev=no 2765fi 2766rm -f conftest* 2767fi 2768 2769echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 2770if test $ac_cv_struct_st_rdev = yes; then 2771 cat >> confdefs.h <<\EOF 2772#define HAVE_ST_RDEV 1 2773EOF 2774 2775fi 2776 2777for ac_func in mkdir rename strstr dup2 strerror valloc waitpid memmove strtoul 2778do 2779echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2780echo "configure:2781: checking for $ac_func" >&5 2781if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2782 echo $ac_n "(cached) $ac_c" 1>&6 2783else 2784 cat > conftest.$ac_ext <<EOF 2785#line 2786 "configure" 2786#include "confdefs.h" 2787/* System header to define __stub macros and hopefully few prototypes, 2788 which can conflict with char $ac_func(); below. */ 2789#include <assert.h> 2790/* Override any gcc2 internal prototype to avoid an error. */ 2791/* We use char because int might match the return type of a gcc2 2792 builtin and then its argument prototype would still apply. */ 2793char $ac_func(); 2794 2795int main() { 2796 2797/* The GNU C library defines this for functions which it implements 2798 to always fail with ENOSYS. Some functions are actually named 2799 something starting with __ and the normal name is an alias. */ 2800#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2801choke me 2802#else 2803$ac_func(); 2804#endif 2805 2806; return 0; } 2807EOF 2808if { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2809 rm -rf conftest* 2810 eval "ac_cv_func_$ac_func=yes" 2811else 2812 echo "configure: failed program was:" >&5 2813 cat conftest.$ac_ext >&5 2814 rm -rf conftest* 2815 eval "ac_cv_func_$ac_func=no" 2816fi 2817rm -f conftest* 2818fi 2819 2820if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2821 echo "$ac_t""yes" 1>&6 2822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2823 cat >> confdefs.h <<EOF 2824#define $ac_tr_func 1 2825EOF 2826 2827else 2828 echo "$ac_t""no" 1>&6 2829LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2830fi 2831done 2832 2833 2834for ac_func in \ 2835 fchdir \ 2836 fchmod \ 2837 fsync \ 2838 ftime \ 2839 ftruncate \ 2840 getgroups \ 2841 getpagesize \ 2842 getpassphrase \ 2843 gettimeofday \ 2844 initgroups \ 2845 mknod \ 2846 mkstemp \ 2847 mktemp \ 2848 putenv \ 2849 readlink \ 2850 sigaction \ 2851 sigblock \ 2852 sigprocmask \ 2853 sigsetmask \ 2854 sigvec \ 2855 tempnam \ 2856 timezone \ 2857 tzset \ 2858 vprintf \ 2859 wait3 \ 2860 2861do 2862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2863echo "configure:2864: checking for $ac_func" >&5 2864if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2865 echo $ac_n "(cached) $ac_c" 1>&6 2866else 2867 cat > conftest.$ac_ext <<EOF 2868#line 2869 "configure" 2869#include "confdefs.h" 2870/* System header to define __stub macros and hopefully few prototypes, 2871 which can conflict with char $ac_func(); below. */ 2872#include <assert.h> 2873/* Override any gcc2 internal prototype to avoid an error. */ 2874/* We use char because int might match the return type of a gcc2 2875 builtin and then its argument prototype would still apply. */ 2876char $ac_func(); 2877 2878int main() { 2879 2880/* The GNU C library defines this for functions which it implements 2881 to always fail with ENOSYS. Some functions are actually named 2882 something starting with __ and the normal name is an alias. */ 2883#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2884choke me 2885#else 2886$ac_func(); 2887#endif 2888 2889; return 0; } 2890EOF 2891if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2892 rm -rf conftest* 2893 eval "ac_cv_func_$ac_func=yes" 2894else 2895 echo "configure: failed program was:" >&5 2896 cat conftest.$ac_ext >&5 2897 rm -rf conftest* 2898 eval "ac_cv_func_$ac_func=no" 2899fi 2900rm -f conftest* 2901fi 2902 2903if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2904 echo "$ac_t""yes" 1>&6 2905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2906 cat >> confdefs.h <<EOF 2907#define $ac_tr_func 1 2908EOF 2909 2910else 2911 echo "$ac_t""no" 1>&6 2912fi 2913done 2914 2915# we only need one of the following 2916for ac_func in \ 2917 nanosleep \ 2918 usleep \ 2919 select \ 2920 2921do 2922echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2923echo "configure:2924: checking for $ac_func" >&5 2924if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2925 echo $ac_n "(cached) $ac_c" 1>&6 2926else 2927 cat > conftest.$ac_ext <<EOF 2928#line 2929 "configure" 2929#include "confdefs.h" 2930/* System header to define __stub macros and hopefully few prototypes, 2931 which can conflict with char $ac_func(); below. */ 2932#include <assert.h> 2933/* Override any gcc2 internal prototype to avoid an error. */ 2934/* We use char because int might match the return type of a gcc2 2935 builtin and then its argument prototype would still apply. */ 2936char $ac_func(); 2937 2938int main() { 2939 2940/* The GNU C library defines this for functions which it implements 2941 to always fail with ENOSYS. Some functions are actually named 2942 something starting with __ and the normal name is an alias. */ 2943#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2944choke me 2945#else 2946$ac_func(); 2947#endif 2948 2949; return 0; } 2950EOF 2951if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2952 rm -rf conftest* 2953 eval "ac_cv_func_$ac_func=yes" 2954else 2955 echo "configure: failed program was:" >&5 2956 cat conftest.$ac_ext >&5 2957 rm -rf conftest* 2958 eval "ac_cv_func_$ac_func=no" 2959fi 2960rm -f conftest* 2961fi 2962 2963if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2964 echo "$ac_t""yes" 1>&6 2965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2966 cat >> confdefs.h <<EOF 2967#define $ac_tr_func 1 2968EOF 2969 break 2970else 2971 echo "$ac_t""no" 1>&6 2972fi 2973done 2974 2975 2976cat >> confdefs.h <<\EOF 2977#define HAVE_STRCHR 1 2978EOF 2979 2980cat >> confdefs.h <<\EOF 2981#define HAVE_MEMCHR 1 2982EOF 2983 2984 2985cat >> confdefs.h <<\EOF 2986#define REGEX_MALLOC 1 2987EOF 2988 2989cat >> confdefs.h <<\EOF 2990#define _REGEX_RE_COMP 1 2991EOF 2992 2993ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2994echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2995echo "configure:2996: checking for vfork.h" >&5 2996if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2997 echo $ac_n "(cached) $ac_c" 1>&6 2998else 2999 cat > conftest.$ac_ext <<EOF 3000#line 3001 "configure" 3001#include "confdefs.h" 3002#include <vfork.h> 3003EOF 3004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3005{ (eval echo configure:3006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3007if test -z "$ac_err"; then 3008 rm -rf conftest* 3009 eval "ac_cv_header_$ac_safe=yes" 3010else 3011 echo "$ac_err" >&5 3012 echo "configure: failed program was:" >&5 3013 cat conftest.$ac_ext >&5 3014 rm -rf conftest* 3015 eval "ac_cv_header_$ac_safe=no" 3016fi 3017rm -f conftest* 3018fi 3019if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3020 echo "$ac_t""yes" 1>&6 3021 cat >> confdefs.h <<\EOF 3022#define HAVE_VFORK_H 1 3023EOF 3024 3025else 3026 echo "$ac_t""no" 1>&6 3027fi 3028 3029echo $ac_n "checking for working vfork""... $ac_c" 1>&6 3030echo "configure:3031: checking for working vfork" >&5 3031if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 3032 echo $ac_n "(cached) $ac_c" 1>&6 3033else 3034 if test "$cross_compiling" = yes; then 3035 echo $ac_n "checking for vfork""... $ac_c" 1>&6 3036echo "configure:3037: checking for vfork" >&5 3037if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 3038 echo $ac_n "(cached) $ac_c" 1>&6 3039else 3040 cat > conftest.$ac_ext <<EOF 3041#line 3042 "configure" 3042#include "confdefs.h" 3043/* System header to define __stub macros and hopefully few prototypes, 3044 which can conflict with char vfork(); below. */ 3045#include <assert.h> 3046/* Override any gcc2 internal prototype to avoid an error. */ 3047/* We use char because int might match the return type of a gcc2 3048 builtin and then its argument prototype would still apply. */ 3049char vfork(); 3050 3051int main() { 3052 3053/* The GNU C library defines this for functions which it implements 3054 to always fail with ENOSYS. Some functions are actually named 3055 something starting with __ and the normal name is an alias. */ 3056#if defined (__stub_vfork) || defined (__stub___vfork) 3057choke me 3058#else 3059vfork(); 3060#endif 3061 3062; return 0; } 3063EOF 3064if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3065 rm -rf conftest* 3066 eval "ac_cv_func_vfork=yes" 3067else 3068 echo "configure: failed program was:" >&5 3069 cat conftest.$ac_ext >&5 3070 rm -rf conftest* 3071 eval "ac_cv_func_vfork=no" 3072fi 3073rm -f conftest* 3074fi 3075 3076if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then 3077 echo "$ac_t""yes" 1>&6 3078 : 3079else 3080 echo "$ac_t""no" 1>&6 3081fi 3082 3083ac_cv_func_vfork_works=$ac_cv_func_vfork 3084else 3085 cat > conftest.$ac_ext <<EOF 3086#line 3087 "configure" 3087#include "confdefs.h" 3088/* Thanks to Paul Eggert for this test. */ 3089#include <stdio.h> 3090#include <sys/types.h> 3091#include <sys/stat.h> 3092#ifdef HAVE_UNISTD_H 3093#include <unistd.h> 3094#endif 3095#ifdef HAVE_VFORK_H 3096#include <vfork.h> 3097#endif 3098/* On some sparc systems, changes by the child to local and incoming 3099 argument registers are propagated back to the parent. 3100 The compiler is told about this with #include <vfork.h>, 3101 but some compilers (e.g. gcc -O) don't grok <vfork.h>. 3102 Test for this by using a static variable whose address 3103 is put into a register that is clobbered by the vfork. */ 3104static 3105#ifdef __cplusplus 3106sparc_address_test (int arg) 3107#else 3108sparc_address_test (arg) int arg; 3109#endif 3110{ 3111 static pid_t child; 3112 if (!child) { 3113 child = vfork (); 3114 if (child < 0) { 3115 perror ("vfork"); 3116 _exit(2); 3117 } 3118 if (!child) { 3119 arg = getpid(); 3120 write(-1, "", 0); 3121 _exit (arg); 3122 } 3123 } 3124} 3125main() { 3126 pid_t parent = getpid (); 3127 pid_t child; 3128 3129 sparc_address_test (); 3130 3131 child = vfork (); 3132 3133 if (child == 0) { 3134 /* Here is another test for sparc vfork register problems. 3135 This test uses lots of local variables, at least 3136 as many local variables as main has allocated so far 3137 including compiler temporaries. 4 locals are enough for 3138 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. 3139 A buggy compiler should reuse the register of parent 3140 for one of the local variables, since it will think that 3141 parent can't possibly be used any more in this routine. 3142 Assigning to the local variable will thus munge parent 3143 in the parent process. */ 3144 pid_t 3145 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 3146 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 3147 /* Convince the compiler that p..p7 are live; otherwise, it might 3148 use the same hardware register for all 8 local variables. */ 3149 if (p != p1 || p != p2 || p != p3 || p != p4 3150 || p != p5 || p != p6 || p != p7) 3151 _exit(1); 3152 3153 /* On some systems (e.g. IRIX 3.3), 3154 vfork doesn't separate parent from child file descriptors. 3155 If the child closes a descriptor before it execs or exits, 3156 this munges the parent's descriptor as well. 3157 Test for this by closing stdout in the child. */ 3158 _exit(close(fileno(stdout)) != 0); 3159 } else { 3160 int status; 3161 struct stat st; 3162 3163 while (wait(&status) != child) 3164 ; 3165 exit( 3166 /* Was there some problem with vforking? */ 3167 child < 0 3168 3169 /* Did the child fail? (This shouldn't happen.) */ 3170 || status 3171 3172 /* Did the vfork/compiler bug occur? */ 3173 || parent != getpid() 3174 3175 /* Did the file descriptor bug occur? */ 3176 || fstat(fileno(stdout), &st) != 0 3177 ); 3178 } 3179} 3180EOF 3181if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3182then 3183 ac_cv_func_vfork_works=yes 3184else 3185 echo "configure: failed program was:" >&5 3186 cat conftest.$ac_ext >&5 3187 rm -fr conftest* 3188 ac_cv_func_vfork_works=no 3189fi 3190rm -fr conftest* 3191fi 3192 3193fi 3194 3195echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 3196if test $ac_cv_func_vfork_works = no; then 3197 cat >> confdefs.h <<\EOF 3198#define vfork fork 3199EOF 3200 3201fi 3202 3203echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6 3204echo "configure:3205: checking whether closedir returns void" >&5 3205if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then 3206 echo $ac_n "(cached) $ac_c" 1>&6 3207else 3208 if test "$cross_compiling" = yes; then 3209 ac_cv_func_closedir_void=yes 3210else 3211 cat > conftest.$ac_ext <<EOF 3212#line 3213 "configure" 3213#include "confdefs.h" 3214#include <sys/types.h> 3215#include <$ac_header_dirent> 3216int closedir(); main() { exit(closedir(opendir(".")) != 0); } 3217EOF 3218if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3219then 3220 ac_cv_func_closedir_void=no 3221else 3222 echo "configure: failed program was:" >&5 3223 cat conftest.$ac_ext >&5 3224 rm -fr conftest* 3225 ac_cv_func_closedir_void=yes 3226fi 3227rm -fr conftest* 3228fi 3229 3230fi 3231 3232echo "$ac_t""$ac_cv_func_closedir_void" 1>&6 3233if test $ac_cv_func_closedir_void = yes; then 3234 cat >> confdefs.h <<\EOF 3235#define CLOSEDIR_VOID 1 3236EOF 3237 3238fi 3239 3240 3241 3242echo $ac_n "checking for library containing getspnam""... $ac_c" 1>&6 3243echo "configure:3244: checking for library containing getspnam" >&5 3244if eval "test \"`echo '$''{'ac_cv_search_getspnam'+set}'`\" = set"; then 3245 echo $ac_n "(cached) $ac_c" 1>&6 3246else 3247 ac_func_search_save_LIBS="$LIBS" 3248ac_cv_search_getspnam="no" 3249cat > conftest.$ac_ext <<EOF 3250#line 3251 "configure" 3251#include "confdefs.h" 3252/* Override any gcc2 internal prototype to avoid an error. */ 3253/* We use char because int might match the return type of a gcc2 3254 builtin and then its argument prototype would still apply. */ 3255char getspnam(); 3256 3257int main() { 3258getspnam() 3259; return 0; } 3260EOF 3261if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3262 rm -rf conftest* 3263 ac_cv_search_getspnam="none required" 3264else 3265 echo "configure: failed program was:" >&5 3266 cat conftest.$ac_ext >&5 3267fi 3268rm -f conftest* 3269test "$ac_cv_search_getspnam" = "no" && for i in sec gen; do 3270LIBS="-l$i $ac_func_search_save_LIBS" 3271cat > conftest.$ac_ext <<EOF 3272#line 3273 "configure" 3273#include "confdefs.h" 3274/* Override any gcc2 internal prototype to avoid an error. */ 3275/* We use char because int might match the return type of a gcc2 3276 builtin and then its argument prototype would still apply. */ 3277char getspnam(); 3278 3279int main() { 3280getspnam() 3281; return 0; } 3282EOF 3283if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3284 rm -rf conftest* 3285 ac_cv_search_getspnam="-l$i" 3286break 3287else 3288 echo "configure: failed program was:" >&5 3289 cat conftest.$ac_ext >&5 3290fi 3291rm -f conftest* 3292done 3293LIBS="$ac_func_search_save_LIBS" 3294fi 3295 3296echo "$ac_t""$ac_cv_search_getspnam" 1>&6 3297if test "$ac_cv_search_getspnam" != "no"; then 3298 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS" 3299 cat >> confdefs.h <<\EOF 3300#define HAVE_GETSPNAM 1 3301EOF 3302 3303else : 3304 3305fi 3306 3307echo $ac_n "checking for zlibVersion in -lz""... $ac_c" 1>&6 3308echo "configure:3309: checking for zlibVersion in -lz" >&5 3309ac_lib_var=`echo z'_'zlibVersion | sed 'y%./+-%__p_%'` 3310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3311 echo $ac_n "(cached) $ac_c" 1>&6 3312else 3313 ac_save_LIBS="$LIBS" 3314LIBS="-lz $LIBS" 3315cat > conftest.$ac_ext <<EOF 3316#line 3317 "configure" 3317#include "confdefs.h" 3318/* Override any gcc2 internal prototype to avoid an error. */ 3319/* We use char because int might match the return type of a gcc2 3320 builtin and then its argument prototype would still apply. */ 3321char zlibVersion(); 3322 3323int main() { 3324zlibVersion() 3325; return 0; } 3326EOF 3327if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3328 rm -rf conftest* 3329 eval "ac_cv_lib_$ac_lib_var=yes" 3330else 3331 echo "configure: failed program was:" >&5 3332 cat conftest.$ac_ext >&5 3333 rm -rf conftest* 3334 eval "ac_cv_lib_$ac_lib_var=no" 3335fi 3336rm -f conftest* 3337LIBS="$ac_save_LIBS" 3338 3339fi 3340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3341 echo "$ac_t""yes" 1>&6 3342 ZLIB=-lz ZLIB_DEPEND=/usr/lib/libz.a 3343else 3344 echo "$ac_t""no" 1>&6 3345ZLIBSUBDIRS=zlib ZLIB=$srcdir/zlib/libz.a ZLIB_DEPEND=$srcdir/zlib/libz.a ZLIB_INCLUDES=-I$srcdir/zlib 3346fi 3347 3348 3349 3350 3351 3352 3353echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6 3354echo "configure:3355: checking whether utime accepts a null argument" >&5 3355if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then 3356 echo $ac_n "(cached) $ac_c" 1>&6 3357else 3358 rm -f conftestdata; > conftestdata 3359# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 3360if test "$cross_compiling" = yes; then 3361 ac_cv_func_utime_null=no 3362else 3363 cat > conftest.$ac_ext <<EOF 3364#line 3365 "configure" 3365#include "confdefs.h" 3366#include <sys/types.h> 3367#include <sys/stat.h> 3368main() { 3369struct stat s, t; 3370exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0 3371&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime 3372&& t.st_mtime - s.st_mtime < 120)); 3373} 3374EOF 3375if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3376then 3377 ac_cv_func_utime_null=yes 3378else 3379 echo "configure: failed program was:" >&5 3380 cat conftest.$ac_ext >&5 3381 rm -fr conftest* 3382 ac_cv_func_utime_null=no 3383fi 3384rm -fr conftest* 3385fi 3386 3387rm -f core core.* *.core 3388fi 3389 3390echo "$ac_t""$ac_cv_func_utime_null" 1>&6 3391if test $ac_cv_func_utime_null = yes; then 3392 cat >> confdefs.h <<\EOF 3393#define HAVE_UTIME_NULL 1 3394EOF 3395 3396fi 3397 3398echo $ac_n "checking for long file names""... $ac_c" 1>&6 3399echo "configure:3400: checking for long file names" >&5 3400if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3401 echo $ac_n "(cached) $ac_c" 1>&6 3402else 3403 ac_cv_sys_long_file_names=yes 3404# Test for long file names in all the places we know might matter: 3405# . the current directory, where building will happen 3406# $prefix/lib where we will be installing things 3407# $exec_prefix/lib likewise 3408# eval it to expand exec_prefix. 3409# $TMPDIR if set, where it might want to write temporary files 3410# if $TMPDIR is not set: 3411# /tmp where it might want to write temporary files 3412# /var/tmp likewise 3413# /usr/tmp likewise 3414if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 3415 ac_tmpdirs="$TMPDIR" 3416else 3417 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 3418fi 3419for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 3420 test -d $ac_dir || continue 3421 test -w $ac_dir || continue # It is less confusing to not echo anything here. 3422 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null 3423 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null 3424 val=`cat $ac_dir/conftest9012345 2>/dev/null` 3425 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then 3426 ac_cv_sys_long_file_names=no 3427 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 3428 break 3429 fi 3430 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 3431done 3432fi 3433 3434echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 3435if test $ac_cv_sys_long_file_names = yes; then 3436 cat >> confdefs.h <<\EOF 3437#define HAVE_LONG_FILE_NAMES 1 3438EOF 3439 3440fi 3441 3442 3443echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 3444echo "configure:3445: checking for working fnmatch" >&5 3445if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then 3446 echo $ac_n "(cached) $ac_c" 1>&6 3447else 3448 # Some versions of Solaris or SCO have a broken fnmatch function. 3449# So we run a test program. If we are cross-compiling, take no chance. 3450# Thanks to John Oleynick and Franc,ois Pinard for this test. 3451if test "$cross_compiling" = yes; then 3452 ac_cv_func_fnmatch_works=no 3453else 3454 cat > conftest.$ac_ext <<EOF 3455#line 3456 "configure" 3456#include "confdefs.h" 3457main() { exit (fnmatch ("a*", "abc", 0) != 0); } 3458EOF 3459if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3460then 3461 ac_cv_func_fnmatch_works=yes 3462else 3463 echo "configure: failed program was:" >&5 3464 cat conftest.$ac_ext >&5 3465 rm -fr conftest* 3466 ac_cv_func_fnmatch_works=no 3467fi 3468rm -fr conftest* 3469fi 3470 3471fi 3472 3473echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6 3474if test $ac_cv_func_fnmatch_works = yes; then 3475 cat >> confdefs.h <<\EOF 3476#define HAVE_FNMATCH 1 3477EOF 3478 3479fi 3480 3481if test "$ac_cv_func_fnmatch_works" = no; then 3482 LIBOBJS="$LIBOBJS fnmatch.o" 3483fi 3484 3485# Try to find connect and gethostbyname. 3486echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 3487echo "configure:3488: checking for main in -lnsl" >&5 3488ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` 3489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3490 echo $ac_n "(cached) $ac_c" 1>&6 3491else 3492 ac_save_LIBS="$LIBS" 3493LIBS="-lnsl $LIBS" 3494cat > conftest.$ac_ext <<EOF 3495#line 3496 "configure" 3496#include "confdefs.h" 3497 3498int main() { 3499main() 3500; return 0; } 3501EOF 3502if { (eval echo configure:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3503 rm -rf conftest* 3504 eval "ac_cv_lib_$ac_lib_var=yes" 3505else 3506 echo "configure: failed program was:" >&5 3507 cat conftest.$ac_ext >&5 3508 rm -rf conftest* 3509 eval "ac_cv_lib_$ac_lib_var=no" 3510fi 3511rm -f conftest* 3512LIBS="$ac_save_LIBS" 3513 3514fi 3515if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3516 echo "$ac_t""yes" 1>&6 3517 3518echo $ac_n "checking for library containing connect""... $ac_c" 1>&6 3519echo "configure:3520: checking for library containing connect" >&5 3520if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then 3521 echo $ac_n "(cached) $ac_c" 1>&6 3522else 3523 ac_func_search_save_LIBS="$LIBS" 3524ac_cv_search_connect="no" 3525cat > conftest.$ac_ext <<EOF 3526#line 3527 "configure" 3527#include "confdefs.h" 3528/* Override any gcc2 internal prototype to avoid an error. */ 3529/* We use char because int might match the return type of a gcc2 3530 builtin and then its argument prototype would still apply. */ 3531char connect(); 3532 3533int main() { 3534connect() 3535; return 0; } 3536EOF 3537if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3538 rm -rf conftest* 3539 ac_cv_search_connect="none required" 3540else 3541 echo "configure: failed program was:" >&5 3542 cat conftest.$ac_ext >&5 3543fi 3544rm -f conftest* 3545test "$ac_cv_search_connect" = "no" && for i in xnet socket inet; do 3546LIBS="-l$i -lnsl $ac_func_search_save_LIBS" 3547cat > conftest.$ac_ext <<EOF 3548#line 3549 "configure" 3549#include "confdefs.h" 3550/* Override any gcc2 internal prototype to avoid an error. */ 3551/* We use char because int might match the return type of a gcc2 3552 builtin and then its argument prototype would still apply. */ 3553char connect(); 3554 3555int main() { 3556connect() 3557; return 0; } 3558EOF 3559if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3560 rm -rf conftest* 3561 ac_cv_search_connect="-l$i" 3562break 3563else 3564 echo "configure: failed program was:" >&5 3565 cat conftest.$ac_ext >&5 3566fi 3567rm -f conftest* 3568done 3569LIBS="$ac_func_search_save_LIBS" 3570fi 3571 3572echo "$ac_t""$ac_cv_search_connect" 1>&6 3573if test "$ac_cv_search_connect" != "no"; then 3574 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 3575 cat >> confdefs.h <<\EOF 3576#define HAVE_CONNECT 1 3577EOF 3578 3579else : 3580 3581fi 3582else 3583 echo "$ac_t""no" 1>&6 3584 3585echo $ac_n "checking for library containing connect""... $ac_c" 1>&6 3586echo "configure:3587: checking for library containing connect" >&5 3587if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then 3588 echo $ac_n "(cached) $ac_c" 1>&6 3589else 3590 ac_func_search_save_LIBS="$LIBS" 3591ac_cv_search_connect="no" 3592cat > conftest.$ac_ext <<EOF 3593#line 3594 "configure" 3594#include "confdefs.h" 3595/* Override any gcc2 internal prototype to avoid an error. */ 3596/* We use char because int might match the return type of a gcc2 3597 builtin and then its argument prototype would still apply. */ 3598char connect(); 3599 3600int main() { 3601connect() 3602; return 0; } 3603EOF 3604if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3605 rm -rf conftest* 3606 ac_cv_search_connect="none required" 3607else 3608 echo "configure: failed program was:" >&5 3609 cat conftest.$ac_ext >&5 3610fi 3611rm -f conftest* 3612test "$ac_cv_search_connect" = "no" && for i in xnet socket inet; do 3613LIBS="-l$i $ac_func_search_save_LIBS" 3614cat > conftest.$ac_ext <<EOF 3615#line 3616 "configure" 3616#include "confdefs.h" 3617/* Override any gcc2 internal prototype to avoid an error. */ 3618/* We use char because int might match the return type of a gcc2 3619 builtin and then its argument prototype would still apply. */ 3620char connect(); 3621 3622int main() { 3623connect() 3624; return 0; } 3625EOF 3626if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3627 rm -rf conftest* 3628 ac_cv_search_connect="-l$i" 3629break 3630else 3631 echo "configure: failed program was:" >&5 3632 cat conftest.$ac_ext >&5 3633fi 3634rm -f conftest* 3635done 3636LIBS="$ac_func_search_save_LIBS" 3637fi 3638 3639echo "$ac_t""$ac_cv_search_connect" 1>&6 3640if test "$ac_cv_search_connect" != "no"; then 3641 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 3642 cat >> confdefs.h <<\EOF 3643#define HAVE_CONNECT 1 3644EOF 3645 3646else : 3647 3648fi 3649fi 3650 3651 3652echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 3653echo "configure:3654: checking for library containing gethostbyname" >&5 3654if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then 3655 echo $ac_n "(cached) $ac_c" 1>&6 3656else 3657 ac_func_search_save_LIBS="$LIBS" 3658ac_cv_search_gethostbyname="no" 3659cat > conftest.$ac_ext <<EOF 3660#line 3661 "configure" 3661#include "confdefs.h" 3662/* Override any gcc2 internal prototype to avoid an error. */ 3663/* We use char because int might match the return type of a gcc2 3664 builtin and then its argument prototype would still apply. */ 3665char gethostbyname(); 3666 3667int main() { 3668gethostbyname() 3669; return 0; } 3670EOF 3671if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3672 rm -rf conftest* 3673 ac_cv_search_gethostbyname="none required" 3674else 3675 echo "configure: failed program was:" >&5 3676 cat conftest.$ac_ext >&5 3677fi 3678rm -f conftest* 3679test "$ac_cv_search_gethostbyname" = "no" && for i in netinet nsl; do 3680LIBS="-l$i $ac_func_search_save_LIBS" 3681cat > conftest.$ac_ext <<EOF 3682#line 3683 "configure" 3683#include "confdefs.h" 3684/* Override any gcc2 internal prototype to avoid an error. */ 3685/* We use char because int might match the return type of a gcc2 3686 builtin and then its argument prototype would still apply. */ 3687char gethostbyname(); 3688 3689int main() { 3690gethostbyname() 3691; return 0; } 3692EOF 3693if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3694 rm -rf conftest* 3695 ac_cv_search_gethostbyname="-l$i" 3696break 3697else 3698 echo "configure: failed program was:" >&5 3699 cat conftest.$ac_ext >&5 3700fi 3701rm -f conftest* 3702done 3703LIBS="$ac_func_search_save_LIBS" 3704fi 3705 3706echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 3707if test "$ac_cv_search_gethostbyname" != "no"; then 3708 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 3709 3710else : 3711 3712fi 3713 3714KRB4=/usr/kerberos 3715 3716# Check whether --with-krb4 or --without-krb4 was given. 3717if test "${with_krb4+set}" = set; then 3718 withval="$with_krb4" 3719 KRB4=$withval 3720fi 3721echo "default place for krb4 is $KRB4" 3722 3723 3724krb_h= 3725echo $ac_n "checking for krb.h""... $ac_c" 1>&6 3726echo "configure:3727: checking for krb.h" >&5 3727if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then 3728 hold_cflags=$CFLAGS 3729 CFLAGS="$CFLAGS -I$KRB4/include" 3730 cat > conftest.$ac_ext <<EOF 3731#line 3732 "configure" 3732#include "confdefs.h" 3733#include <krb.h> 3734int main() { 3735int i; 3736; return 0; } 3737EOF 3738if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3739 rm -rf conftest* 3740 krb_h=yes krb_incdir=$KRB4/include 3741else 3742 echo "configure: failed program was:" >&5 3743 cat conftest.$ac_ext >&5 3744 rm -rf conftest* 3745 CFLAGS=$hold_cflags 3746 cat > conftest.$ac_ext <<EOF 3747#line 3748 "configure" 3748#include "confdefs.h" 3749#include <krb.h> 3750int main() { 3751int i; 3752; return 0; } 3753EOF 3754if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3755 rm -rf conftest* 3756 krb_h=yes krb_incdir= 3757else 3758 echo "configure: failed program was:" >&5 3759 cat conftest.$ac_ext >&5 3760fi 3761rm -f conftest* 3762fi 3763rm -f conftest* 3764 CFLAGS=$hold_cflags 3765else 3766 cat > conftest.$ac_ext <<EOF 3767#line 3768 "configure" 3768#include "confdefs.h" 3769#include <krb.h> 3770int main() { 3771int i; 3772; return 0; } 3773EOF 3774if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3775 rm -rf conftest* 3776 krb_h=yes krb_incdir= 3777else 3778 echo "configure: failed program was:" >&5 3779 cat conftest.$ac_ext >&5 3780fi 3781rm -f conftest* 3782fi 3783if test -z "$krb_h"; then 3784 cat > conftest.$ac_ext <<EOF 3785#line 3786 "configure" 3786#include "confdefs.h" 3787#include <krb.h> 3788int main() { 3789int i; 3790; return 0; } 3791EOF 3792if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3793 rm -rf conftest* 3794 krb_h=yes krb_incdir= 3795else 3796 echo "configure: failed program was:" >&5 3797 cat conftest.$ac_ext >&5 3798 rm -rf conftest* 3799 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then 3800 hold_cflags=$CFLAGS 3801 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV" 3802 cat > conftest.$ac_ext <<EOF 3803#line 3804 "configure" 3804#include "confdefs.h" 3805#include <krb.h> 3806int main() { 3807int i; 3808; return 0; } 3809EOF 3810if { (eval echo configure:3811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3811 rm -rf conftest* 3812 krb_h=yes krb_incdir=$KRB4/include/kerberosIV 3813else 3814 echo "configure: failed program was:" >&5 3815 cat conftest.$ac_ext >&5 3816fi 3817rm -f conftest* 3818 CFLAGS=$hold_cflags 3819 fi 3820fi 3821rm -f conftest* 3822fi 3823echo "$ac_t""$krb_h" 1>&6 3824 3825includeopt= 3826 3827if test -n "$krb_h"; then 3828 krb_lib= 3829 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then 3830 hold_ldflags=$LDFLAGS 3831 LDFLAGS="-L${KRB4}/lib $LDFLAGS" 3832 echo $ac_n "checking for printf in -lkrb""... $ac_c" 1>&6 3833echo "configure:3834: checking for printf in -lkrb" >&5 3834ac_lib_var=`echo krb'_'printf | sed 'y%./+-%__p_%'` 3835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3836 echo $ac_n "(cached) $ac_c" 1>&6 3837else 3838 ac_save_LIBS="$LIBS" 3839LIBS="-lkrb $LIBS" 3840cat > conftest.$ac_ext <<EOF 3841#line 3842 "configure" 3842#include "confdefs.h" 3843/* Override any gcc2 internal prototype to avoid an error. */ 3844/* We use char because int might match the return type of a gcc2 3845 builtin and then its argument prototype would still apply. */ 3846char printf(); 3847 3848int main() { 3849printf() 3850; return 0; } 3851EOF 3852if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3853 rm -rf conftest* 3854 eval "ac_cv_lib_$ac_lib_var=yes" 3855else 3856 echo "configure: failed program was:" >&5 3857 cat conftest.$ac_ext >&5 3858 rm -rf conftest* 3859 eval "ac_cv_lib_$ac_lib_var=no" 3860fi 3861rm -f conftest* 3862LIBS="$ac_save_LIBS" 3863 3864fi 3865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3866 echo "$ac_t""yes" 1>&6 3867 krb_lib=yes krb_libdir=${KRB4}/lib 3868else 3869 echo "$ac_t""no" 1>&6 3870LDFLAGS=$hold_ldflags 3871 # Using open here instead of printf so we don't 3872 # get confused by the cached value for printf from above. 3873 echo $ac_n "checking for open in -lkrb""... $ac_c" 1>&6 3874echo "configure:3875: checking for open in -lkrb" >&5 3875ac_lib_var=`echo krb'_'open | sed 'y%./+-%__p_%'` 3876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3877 echo $ac_n "(cached) $ac_c" 1>&6 3878else 3879 ac_save_LIBS="$LIBS" 3880LIBS="-lkrb $LIBS" 3881cat > conftest.$ac_ext <<EOF 3882#line 3883 "configure" 3883#include "confdefs.h" 3884/* Override any gcc2 internal prototype to avoid an error. */ 3885/* We use char because int might match the return type of a gcc2 3886 builtin and then its argument prototype would still apply. */ 3887char open(); 3888 3889int main() { 3890open() 3891; return 0; } 3892EOF 3893if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3894 rm -rf conftest* 3895 eval "ac_cv_lib_$ac_lib_var=yes" 3896else 3897 echo "configure: failed program was:" >&5 3898 cat conftest.$ac_ext >&5 3899 rm -rf conftest* 3900 eval "ac_cv_lib_$ac_lib_var=no" 3901fi 3902rm -f conftest* 3903LIBS="$ac_save_LIBS" 3904 3905fi 3906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3907 echo "$ac_t""yes" 1>&6 3908 krb_lib=yes krb_libdir= 3909else 3910 echo "$ac_t""no" 1>&6 3911fi 3912 3913fi 3914 3915 LDFLAGS=$hold_ldflags 3916 else 3917 echo $ac_n "checking for printf in -lkrb""... $ac_c" 1>&6 3918echo "configure:3919: checking for printf in -lkrb" >&5 3919ac_lib_var=`echo krb'_'printf | sed 'y%./+-%__p_%'` 3920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3921 echo $ac_n "(cached) $ac_c" 1>&6 3922else 3923 ac_save_LIBS="$LIBS" 3924LIBS="-lkrb $LIBS" 3925cat > conftest.$ac_ext <<EOF 3926#line 3927 "configure" 3927#include "confdefs.h" 3928/* Override any gcc2 internal prototype to avoid an error. */ 3929/* We use char because int might match the return type of a gcc2 3930 builtin and then its argument prototype would still apply. */ 3931char printf(); 3932 3933int main() { 3934printf() 3935; return 0; } 3936EOF 3937if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3938 rm -rf conftest* 3939 eval "ac_cv_lib_$ac_lib_var=yes" 3940else 3941 echo "configure: failed program was:" >&5 3942 cat conftest.$ac_ext >&5 3943 rm -rf conftest* 3944 eval "ac_cv_lib_$ac_lib_var=no" 3945fi 3946rm -f conftest* 3947LIBS="$ac_save_LIBS" 3948 3949fi 3950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3951 echo "$ac_t""yes" 1>&6 3952 krb_lib=yes krb_libdir= 3953else 3954 echo "$ac_t""no" 1>&6 3955fi 3956 3957 fi 3958fi 3959 3960GSSAPI=/usr/cygnus/kerbnet 3961 3962# Check whether --with-gssapi or --without-gssapi was given. 3963if test "${with_gssapi+set}" = set; then 3964 withval="$with_gssapi" 3965 GSSAPI=$withval 3966fi 3967echo "default place for GSSAPI is $GSSAPI" 3968 3969 3970hold_cppflags=$CPPFLAGS 3971CPPFLAGS="$CPPFLAGS -I$GSSAPI/include/kerberosV " 3972for ac_hdr in krb5.h gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h 3973do 3974ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3975echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3976echo "configure:3977: checking for $ac_hdr" >&5 3977if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3978 echo $ac_n "(cached) $ac_c" 1>&6 3979else 3980 cat > conftest.$ac_ext <<EOF 3981#line 3982 "configure" 3982#include "confdefs.h" 3983#include <$ac_hdr> 3984EOF 3985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3986{ (eval echo configure:3987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3987ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3988if test -z "$ac_err"; then 3989 rm -rf conftest* 3990 eval "ac_cv_header_$ac_safe=yes" 3991else 3992 echo "$ac_err" >&5 3993 echo "configure: failed program was:" >&5 3994 cat conftest.$ac_ext >&5 3995 rm -rf conftest* 3996 eval "ac_cv_header_$ac_safe=no" 3997fi 3998rm -f conftest* 3999fi 4000if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4001 echo "$ac_t""yes" 1>&6 4002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4003 cat >> confdefs.h <<EOF 4004#define $ac_tr_hdr 1 4005EOF 4006 4007else 4008 echo "$ac_t""no" 1>&6 4009fi 4010done 4011 4012CPPFLAGS=$hold_cppflags 4013 4014if test "$ac_cv_header_krb5_h" = "yes" && 4015 (test "$ac_cv_header_gssapi_h" = "yes" || 4016 test "$ac_cv_header_gssapi_gssapi_h" = "yes"); then 4017 cat >> confdefs.h <<\EOF 4018#define HAVE_GSSAPI 1 4019EOF 4020 4021 includeopt="${includeopt} -I$GSSAPI/include/kerberosV" 4022 # FIXME: This is ugly, but these things don't seem to be standardized. 4023 if test "$ac_cv_header_gssapi_h" = "yes"; then 4024 LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lcrypto -ldes" 4025 else 4026 LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -ldes -lcom_err" 4027 fi 4028 save_CPPFLAGS=$CPPFLAGS 4029 CPPFLAGS="-I$GSSAPI/include/kerberosV $CPPFLAGS" 4030 if test "$ac_cv_header_gssapi_h" = "yes"; then 4031 cat > conftest.$ac_ext <<EOF 4032#line 4033 "configure" 4033#include "confdefs.h" 4034#include <gssapi.h> 4035EOF 4036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4037 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 4038 rm -rf conftest* 4039 cat >> confdefs.h <<\EOF 4040#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1 4041EOF 4042 4043fi 4044rm -f conftest* 4045 4046 else 4047 cat > conftest.$ac_ext <<EOF 4048#line 4049 "configure" 4049#include "confdefs.h" 4050#include <gssapi/gssapi.h> 4051EOF 4052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4053 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 4054 rm -rf conftest* 4055 cat >> confdefs.h <<\EOF 4056#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1 4057EOF 4058 4059fi 4060rm -f conftest* 4061 4062 fi 4063 CPPFLAGS=$save_CPPFLAGS 4064 # This is necessary on Irix 5.3, in order to link against libkrb5 -- 4065 # there, an_to_ln.o refers to things defined only in -lgen. 4066 echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6 4067echo "configure:4068: checking for compile in -lgen" >&5 4068ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'` 4069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4070 echo $ac_n "(cached) $ac_c" 1>&6 4071else 4072 ac_save_LIBS="$LIBS" 4073LIBS="-lgen $LIBS" 4074cat > conftest.$ac_ext <<EOF 4075#line 4076 "configure" 4076#include "confdefs.h" 4077/* Override any gcc2 internal prototype to avoid an error. */ 4078/* We use char because int might match the return type of a gcc2 4079 builtin and then its argument prototype would still apply. */ 4080char compile(); 4081 4082int main() { 4083compile() 4084; return 0; } 4085EOF 4086if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4087 rm -rf conftest* 4088 eval "ac_cv_lib_$ac_lib_var=yes" 4089else 4090 echo "configure: failed program was:" >&5 4091 cat conftest.$ac_ext >&5 4092 rm -rf conftest* 4093 eval "ac_cv_lib_$ac_lib_var=no" 4094fi 4095rm -f conftest* 4096LIBS="$ac_save_LIBS" 4097 4098fi 4099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4100 echo "$ac_t""yes" 1>&6 4101 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4103 cat >> confdefs.h <<EOF 4104#define $ac_tr_lib 1 4105EOF 4106 4107 LIBS="-lgen $LIBS" 4108 4109else 4110 echo "$ac_t""no" 1>&6 4111fi 4112 4113fi 4114 4115if test -n "$krb_h"; then 4116 if test -n "$krb_lib"; then 4117 cat >> confdefs.h <<\EOF 4118#define HAVE_KERBEROS 1 4119EOF 4120 4121 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}" 4122 LIBS="${LIBS} -lkrb" 4123 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before 4124 # -ldes in the command line. Don't do it permanently so that we honor 4125 # the user's setting for LDFLAGS 4126 hold_ldflags=$LDFLAGS 4127 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}" 4128 echo $ac_n "checking for printf in -ldes""... $ac_c" 1>&6 4129echo "configure:4130: checking for printf in -ldes" >&5 4130ac_lib_var=`echo des'_'printf | sed 'y%./+-%__p_%'` 4131if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4132 echo $ac_n "(cached) $ac_c" 1>&6 4133else 4134 ac_save_LIBS="$LIBS" 4135LIBS="-ldes $LIBS" 4136cat > conftest.$ac_ext <<EOF 4137#line 4138 "configure" 4138#include "confdefs.h" 4139/* Override any gcc2 internal prototype to avoid an error. */ 4140/* We use char because int might match the return type of a gcc2 4141 builtin and then its argument prototype would still apply. */ 4142char printf(); 4143 4144int main() { 4145printf() 4146; return 0; } 4147EOF 4148if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4149 rm -rf conftest* 4150 eval "ac_cv_lib_$ac_lib_var=yes" 4151else 4152 echo "configure: failed program was:" >&5 4153 cat conftest.$ac_ext >&5 4154 rm -rf conftest* 4155 eval "ac_cv_lib_$ac_lib_var=no" 4156fi 4157rm -f conftest* 4158LIBS="$ac_save_LIBS" 4159 4160fi 4161if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4162 echo "$ac_t""yes" 1>&6 4163 LIBS="${LIBS} -ldes" 4164else 4165 echo "$ac_t""no" 1>&6 4166fi 4167 4168 LDFLAGS=$hold_ldflags 4169 if test -n "$krb_incdir"; then 4170 includeopt="${includeopt} -I$krb_incdir" 4171 fi 4172 fi 4173fi 4174for ac_func in krb_get_err_text 4175do 4176echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4177echo "configure:4178: checking for $ac_func" >&5 4178if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4179 echo $ac_n "(cached) $ac_c" 1>&6 4180else 4181 cat > conftest.$ac_ext <<EOF 4182#line 4183 "configure" 4183#include "confdefs.h" 4184/* System header to define __stub macros and hopefully few prototypes, 4185 which can conflict with char $ac_func(); below. */ 4186#include <assert.h> 4187/* Override any gcc2 internal prototype to avoid an error. */ 4188/* We use char because int might match the return type of a gcc2 4189 builtin and then its argument prototype would still apply. */ 4190char $ac_func(); 4191 4192int main() { 4193 4194/* The GNU C library defines this for functions which it implements 4195 to always fail with ENOSYS. Some functions are actually named 4196 something starting with __ and the normal name is an alias. */ 4197#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4198choke me 4199#else 4200$ac_func(); 4201#endif 4202 4203; return 0; } 4204EOF 4205if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4206 rm -rf conftest* 4207 eval "ac_cv_func_$ac_func=yes" 4208else 4209 echo "configure: failed program was:" >&5 4210 cat conftest.$ac_ext >&5 4211 rm -rf conftest* 4212 eval "ac_cv_func_$ac_func=no" 4213fi 4214rm -f conftest* 4215fi 4216 4217if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4218 echo "$ac_t""yes" 1>&6 4219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4220 cat >> confdefs.h <<EOF 4221#define $ac_tr_func 1 4222EOF 4223 4224else 4225 echo "$ac_t""no" 1>&6 4226fi 4227done 4228 4229 4230# Check whether --enable-encryption or --disable-encryption was given. 4231if test "${enable_encryption+set}" = set; then 4232 enableval="$enable_encryption" 4233 case "${enableval}" in 4234 yes) encryption=true ;; 4235 no) encryption=false ;; 4236 *) { echo "configure: error: bad value ${enableval} for encryption option" 1>&2; exit 1; } ;; 4237 esac 4238else 4239 encryption=false 4240fi 4241 4242if test "$encryption" = "true"; then 4243 cat >> confdefs.h <<\EOF 4244#define ENCRYPTION 1 4245EOF 4246 4247fi 4248 4249echo $ac_n "checking for gethostname""... $ac_c" 1>&6 4250echo "configure:4251: checking for gethostname" >&5 4251if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then 4252 echo $ac_n "(cached) $ac_c" 1>&6 4253else 4254 cat > conftest.$ac_ext <<EOF 4255#line 4256 "configure" 4256#include "confdefs.h" 4257/* System header to define __stub macros and hopefully few prototypes, 4258 which can conflict with char gethostname(); below. */ 4259#include <assert.h> 4260/* Override any gcc2 internal prototype to avoid an error. */ 4261/* We use char because int might match the return type of a gcc2 4262 builtin and then its argument prototype would still apply. */ 4263char gethostname(); 4264 4265int main() { 4266 4267/* The GNU C library defines this for functions which it implements 4268 to always fail with ENOSYS. Some functions are actually named 4269 something starting with __ and the normal name is an alias. */ 4270#if defined (__stub_gethostname) || defined (__stub___gethostname) 4271choke me 4272#else 4273gethostname(); 4274#endif 4275 4276; return 0; } 4277EOF 4278if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4279 rm -rf conftest* 4280 eval "ac_cv_func_gethostname=yes" 4281else 4282 echo "configure: failed program was:" >&5 4283 cat conftest.$ac_ext >&5 4284 rm -rf conftest* 4285 eval "ac_cv_func_gethostname=no" 4286fi 4287rm -f conftest* 4288fi 4289 4290if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then 4291 echo "$ac_t""yes" 1>&6 4292 : 4293else 4294 echo "$ac_t""no" 1>&6 4295LIBOBJS="$LIBOBJS hostname.o" 4296fi 4297 4298 4299# Check for options requesting client and server feature. If none are 4300# given and we have connect(), we want the full client & server arrangement. 4301# Check whether --enable-client or --disable-client was given. 4302if test "${enable_client+set}" = set; then 4303 enableval="$enable_client" 4304 if test "$enable_client" = yes; then 4305 cat >> confdefs.h <<\EOF 4306#define CLIENT_SUPPORT 1 4307EOF 4308 4309fi 4310else 4311 if test "$ac_cv_search_connect" != no; then 4312 cat >> confdefs.h <<\EOF 4313#define CLIENT_SUPPORT 1 4314EOF 4315 4316fi 4317fi 4318 4319# Check whether --enable-server or --disable-server was given. 4320if test "${enable_server+set}" = set; then 4321 enableval="$enable_server" 4322 if test "$enable_server" = yes; then 4323 cat >> confdefs.h <<\EOF 4324#define SERVER_SUPPORT 1 4325EOF 4326 4327fi 4328else 4329 if test "$ac_cv_search_connect" != no; then 4330 cat >> confdefs.h <<\EOF 4331#define SERVER_SUPPORT 1 4332EOF 4333 4334 enable_server=yes 4335fi 4336fi 4337 4338 4339### The auth server needs to be able to check passwords against passwd 4340### file entries, so we only #define AUTH_SERVER_SUPPORT if we can 4341### find the crypt function. 4342### 4343### We used to test for crypt in libc first, and only add -lcrypt if 4344### we couldn't find it, but that interacts badly with the cache 4345### variables, the 'unset' command isn't portable, and I'm not sure 4346### there's any harm in just testing for -lcrypt first. 4347### 4348### XXX OpenBSD has crypt in libc, but don't carry libcrypt. However 4349### XXX it used to have libcrypt which means old systems that hasn't 4350### XXX explicitly removed libcrypt will establish dependencies on the 4351### XXX obsolete library. 4352 4353if test "$enable_server" = yes; then 4354for ac_func in crypt 4355do 4356echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4357echo "configure:4358: checking for $ac_func" >&5 4358if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4359 echo $ac_n "(cached) $ac_c" 1>&6 4360else 4361 cat > conftest.$ac_ext <<EOF 4362#line 4363 "configure" 4363#include "confdefs.h" 4364/* System header to define __stub macros and hopefully few prototypes, 4365 which can conflict with char $ac_func(); below. */ 4366#include <assert.h> 4367/* Override any gcc2 internal prototype to avoid an error. */ 4368/* We use char because int might match the return type of a gcc2 4369 builtin and then its argument prototype would still apply. */ 4370char $ac_func(); 4371 4372int main() { 4373 4374/* The GNU C library defines this for functions which it implements 4375 to always fail with ENOSYS. Some functions are actually named 4376 something starting with __ and the normal name is an alias. */ 4377#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4378choke me 4379#else 4380$ac_func(); 4381#endif 4382 4383; return 0; } 4384EOF 4385if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4386 rm -rf conftest* 4387 eval "ac_cv_func_$ac_func=yes" 4388else 4389 echo "configure: failed program was:" >&5 4390 cat conftest.$ac_ext >&5 4391 rm -rf conftest* 4392 eval "ac_cv_func_$ac_func=no" 4393fi 4394rm -f conftest* 4395fi 4396 4397if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4398 echo "$ac_t""yes" 1>&6 4399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4400 cat >> confdefs.h <<EOF 4401#define $ac_tr_func 1 4402EOF 4403 4404else 4405 echo "$ac_t""no" 1>&6 4406fi 4407done 4408 4409if test "$ac_cv_func_crypt" = no; then 4410echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 4411echo "configure:4412: checking for crypt in -lcrypt" >&5 4412ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 4413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4414 echo $ac_n "(cached) $ac_c" 1>&6 4415else 4416 ac_save_LIBS="$LIBS" 4417LIBS="-lcrypt $LIBS" 4418cat > conftest.$ac_ext <<EOF 4419#line 4420 "configure" 4420#include "confdefs.h" 4421/* Override any gcc2 internal prototype to avoid an error. */ 4422/* We use char because int might match the return type of a gcc2 4423 builtin and then its argument prototype would still apply. */ 4424char crypt(); 4425 4426int main() { 4427crypt() 4428; return 0; } 4429EOF 4430if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4431 rm -rf conftest* 4432 eval "ac_cv_lib_$ac_lib_var=yes" 4433else 4434 echo "configure: failed program was:" >&5 4435 cat conftest.$ac_ext >&5 4436 rm -rf conftest* 4437 eval "ac_cv_lib_$ac_lib_var=no" 4438fi 4439rm -f conftest* 4440LIBS="$ac_save_LIBS" 4441 4442fi 4443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4444 echo "$ac_t""yes" 1>&6 4445 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4446 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4447 cat >> confdefs.h <<EOF 4448#define $ac_tr_lib 1 4449EOF 4450 4451 LIBS="-lcrypt $LIBS" 4452 4453else 4454 echo "$ac_t""no" 1>&6 4455fi 4456 4457for ac_func in crypt 4458do 4459echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4460echo "configure:4461: checking for $ac_func" >&5 4461if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4462 echo $ac_n "(cached) $ac_c" 1>&6 4463else 4464 cat > conftest.$ac_ext <<EOF 4465#line 4466 "configure" 4466#include "confdefs.h" 4467/* System header to define __stub macros and hopefully few prototypes, 4468 which can conflict with char $ac_func(); below. */ 4469#include <assert.h> 4470/* Override any gcc2 internal prototype to avoid an error. */ 4471/* We use char because int might match the return type of a gcc2 4472 builtin and then its argument prototype would still apply. */ 4473char $ac_func(); 4474 4475int main() { 4476 4477/* The GNU C library defines this for functions which it implements 4478 to always fail with ENOSYS. Some functions are actually named 4479 something starting with __ and the normal name is an alias. */ 4480#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4481choke me 4482#else 4483$ac_func(); 4484#endif 4485 4486; return 0; } 4487EOF 4488if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4489 rm -rf conftest* 4490 eval "ac_cv_func_$ac_func=yes" 4491else 4492 echo "configure: failed program was:" >&5 4493 cat conftest.$ac_ext >&5 4494 rm -rf conftest* 4495 eval "ac_cv_func_$ac_func=no" 4496fi 4497rm -f conftest* 4498fi 4499 4500if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4501 echo "$ac_t""yes" 1>&6 4502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4503 cat >> confdefs.h <<EOF 4504#define $ac_tr_func 1 4505EOF 4506 4507else 4508 echo "$ac_t""no" 1>&6 4509fi 4510done 4511 4512fi 4513 4514if test "$ac_cv_func_crypt" = yes; then 4515 cat >> confdefs.h <<\EOF 4516#define AUTH_SERVER_SUPPORT 1 4517EOF 4518 4519fi 4520fi # enable_server 4521 4522 4523echo $ac_n "checking for cygwin32""... $ac_c" 1>&6 4524echo "configure:4525: checking for cygwin32" >&5 4525if eval "test \"`echo '$''{'ccvs_cv_sys_cygwin32'+set}'`\" = set"; then 4526 echo $ac_n "(cached) $ac_c" 1>&6 4527else 4528 cat > conftest.$ac_ext <<EOF 4529#line 4530 "configure" 4530#include "confdefs.h" 4531 4532int main() { 4533return __CYGWIN32__; 4534; return 0; } 4535EOF 4536if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4537 rm -rf conftest* 4538 ccvs_cv_sys_cygwin32=yes 4539else 4540 echo "configure: failed program was:" >&5 4541 cat conftest.$ac_ext >&5 4542 rm -rf conftest* 4543 ccvs_cv_sys_cygwin32=no 4544fi 4545rm -f conftest* 4546fi 4547 4548echo "$ac_t""$ccvs_cv_sys_cygwin32" 1>&6 4549if test $ccvs_cv_sys_cygwin32 = yes; then 4550 LIBOBJS="$LIBOBJS fncase.o" 4551 LIBS="$LIBS -ladvapi32" 4552 4553 cat >> confdefs.h <<\EOF 4554#define UTIME_EXPECTS_WRITABLE 1 4555EOF 4556 4557 4558 cat >> confdefs.h <<\EOF 4559#define USE_SETMODE_STDOUT 1 4560EOF 4561 4562 cat >> confdefs.h <<\EOF 4563#define HAVE_SETMODE 1 4564EOF 4565 4566fi 4567 4568test -f src/options.h && ( 4569 echo "configure: warning: saving ./src/options.h in ./src/options.h-SAVED" 1>&2 4570 echo "configure: warning: You may wish to check that local options have not been lost." 1>&2 4571 echo "configure: warning: Do not re-run ./configure or ./config.status until you have...." 1>&2 4572 cp ./src/options.h ./src/options.h-SAVED 4573) 4574 4575trap '' 1 2 15 4576cat > confcache <<\EOF 4577# This file is a shell script that caches the results of configure 4578# tests run on this system so they can be shared between configure 4579# scripts and configure runs. It is not useful on other systems. 4580# If it contains results you don't want to keep, you may remove or edit it. 4581# 4582# By default, configure uses ./config.cache as the cache file, 4583# creating it if it does not exist already. You can give configure 4584# the --cache-file=FILE option to use a different cache file; that is 4585# what configure does when it calls configure scripts in 4586# subdirectories, so they share the cache. 4587# Giving --cache-file=/dev/null disables caching, for debugging configure. 4588# config.status only pays attention to the cache file if you give it the 4589# --recheck option to rerun configure. 4590# 4591EOF 4592# The following way of writing the cache mishandles newlines in values, 4593# but we know of no workaround that is simple, portable, and efficient. 4594# So, don't put newlines in cache variables' values. 4595# Ultrix sh set writes to stderr and can't be redirected directly, 4596# and sets the high bit in the cache file unless we assign to the vars. 4597(set) 2>&1 | 4598 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4599 *ac_space=\ *) 4600 # `set' does not quote correctly, so add quotes (double-quote substitution 4601 # turns \\\\ into \\, and sed turns \\ into \). 4602 sed -n \ 4603 -e "s/'/'\\\\''/g" \ 4604 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4605 ;; 4606 *) 4607 # `set' quotes correctly as required by POSIX, so do not add quotes. 4608 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4609 ;; 4610 esac >> confcache 4611if cmp -s $cache_file confcache; then 4612 : 4613else 4614 if test -w $cache_file; then 4615 echo "updating cache $cache_file" 4616 cat confcache > $cache_file 4617 else 4618 echo "not updating unwritable cache $cache_file" 4619 fi 4620fi 4621rm -f confcache 4622 4623trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4624 4625test "x$prefix" = xNONE && prefix=$ac_default_prefix 4626# Let make expand exec_prefix. 4627test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4628 4629# Any assignment to VPATH causes Sun make to only execute 4630# the first set of double-colon rules, so remove it if not needed. 4631# If there is a colon in the path, we need to keep it. 4632if test "x$srcdir" = x.; then 4633 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4634fi 4635 4636trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4637 4638DEFS=-DHAVE_CONFIG_H 4639 4640# Without the "./", some shells look in PATH for config.status. 4641: ${CONFIG_STATUS=./config.status} 4642 4643echo creating $CONFIG_STATUS 4644rm -f $CONFIG_STATUS 4645cat > $CONFIG_STATUS <<EOF 4646#! /bin/sh 4647# Generated automatically by configure. 4648# Run this file to recreate the current configuration. 4649# This directory was configured as follows, 4650# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4651# 4652# $0 $ac_configure_args 4653# 4654# Compiler output produced by configure, useful for debugging 4655# configure, is in ./config.log if it exists. 4656 4657ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4658for ac_option 4659do 4660 case "\$ac_option" in 4661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4662 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4663 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4664 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4665 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4666 exit 0 ;; 4667 -help | --help | --hel | --he | --h) 4668 echo "\$ac_cs_usage"; exit 0 ;; 4669 *) echo "\$ac_cs_usage"; exit 1 ;; 4670 esac 4671done 4672 4673ac_given_srcdir=$srcdir 4674ac_given_INSTALL="$INSTALL" 4675 4676trap 'rm -fr `echo "Makefile \ 4677 contrib/Makefile \ 4678 contrib/clmerge \ 4679 contrib/cln_hist \ 4680 contrib/commit_prep \ 4681 contrib/cvs_acls \ 4682 contrib/log \ 4683 contrib/log_accum \ 4684 contrib/mfpipe \ 4685 contrib/rcslock \ 4686 contrib/sccs2rcs \ 4687 diff/Makefile \ 4688 doc/Makefile \ 4689 emx/Makefile \ 4690 lib/Makefile \ 4691 man/Makefile \ 4692 os2/Makefile \ 4693 src/Makefile \ 4694 src/cvsbug \ 4695 tools/Makefile \ 4696 vms/Makefile \ 4697 windows-NT/Makefile \ 4698 windows-NT/SCC/Makefile \ 4699 zlib/Makefile config.h src/options.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4700EOF 4701cat >> $CONFIG_STATUS <<EOF 4702 4703# Protect against being on the right side of a sed subst in config.status. 4704sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4705 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4706$ac_vpsub 4707$extrasub 4708s%@SHELL@%$SHELL%g 4709s%@CFLAGS@%$CFLAGS%g 4710s%@CPPFLAGS@%$CPPFLAGS%g 4711s%@CXXFLAGS@%$CXXFLAGS%g 4712s%@FFLAGS@%$FFLAGS%g 4713s%@DEFS@%$DEFS%g 4714s%@LDFLAGS@%$LDFLAGS%g 4715s%@LIBS@%$LIBS%g 4716s%@exec_prefix@%$exec_prefix%g 4717s%@prefix@%$prefix%g 4718s%@program_transform_name@%$program_transform_name%g 4719s%@bindir@%$bindir%g 4720s%@sbindir@%$sbindir%g 4721s%@libexecdir@%$libexecdir%g 4722s%@datadir@%$datadir%g 4723s%@sysconfdir@%$sysconfdir%g 4724s%@sharedstatedir@%$sharedstatedir%g 4725s%@localstatedir@%$localstatedir%g 4726s%@libdir@%$libdir%g 4727s%@includedir@%$includedir%g 4728s%@oldincludedir@%$oldincludedir%g 4729s%@infodir@%$infodir%g 4730s%@mandir@%$mandir%g 4731s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4732s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4733s%@INSTALL_DATA@%$INSTALL_DATA%g 4734s%@PACKAGE@%$PACKAGE%g 4735s%@VERSION@%$VERSION%g 4736s%@ACLOCAL@%$ACLOCAL%g 4737s%@AUTOCONF@%$AUTOCONF%g 4738s%@AUTOMAKE@%$AUTOMAKE%g 4739s%@AUTOHEADER@%$AUTOHEADER%g 4740s%@MAKEINFO@%$MAKEINFO%g 4741s%@AMTAR@%$AMTAR%g 4742s%@install_sh@%$install_sh%g 4743s%@STRIP@%$STRIP%g 4744s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g 4745s%@INSTALL_STRIP_PROGRAM_ENV@%$INSTALL_STRIP_PROGRAM_ENV%g 4746s%@AWK@%$AWK%g 4747s%@SET_MAKE@%$SET_MAKE%g 4748s%@ETAGS@%$ETAGS%g 4749s%@ETAGS_INCLUDE_OPTION@%$ETAGS_INCLUDE_OPTION%g 4750s%@AMDEP_TRUE@%$AMDEP_TRUE%g 4751s%@AMDEP_FALSE@%$AMDEP_FALSE%g 4752s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g 4753s%@DEPDIR@%$DEPDIR%g 4754s%@CVS@%$CVS%g 4755s%@CC@%$CC%g 4756s%@CPP@%$CPP%g 4757s%@_am_include@%$_am_include%g 4758s%@_am_quote@%$_am_quote%g 4759s%@CCDEPMODE@%$CCDEPMODE%g 4760s%@RANLIB@%$RANLIB%g 4761s%@YACC@%$YACC%g 4762s%@LN_S@%$LN_S%g 4763s%@PERL@%$PERL%g 4764s%@CSH@%$CSH%g 4765s%@PR@%$PR%g 4766s%@ROFF@%$ROFF%g 4767s%@PS2PDF@%$PS2PDF%g 4768s%@TEXI2DVI@%$TEXI2DVI%g 4769s%@MAKE_TARGETS_IN_VPATH_TRUE@%$MAKE_TARGETS_IN_VPATH_TRUE%g 4770s%@MAKE_TARGETS_IN_VPATH_FALSE@%$MAKE_TARGETS_IN_VPATH_FALSE%g 4771s%@LIBOBJS@%$LIBOBJS%g 4772s%@ZLIB@%$ZLIB%g 4773s%@ZLIBSUBDIRS@%$ZLIBSUBDIRS%g 4774s%@ZLIB_INCLUDES@%$ZLIB_INCLUDES%g 4775s%@ZLIB_DEPEND@%$ZLIB_DEPEND%g 4776s%@KRB4@%$KRB4%g 4777s%@includeopt@%$includeopt%g 4778s%@GSSAPI@%$GSSAPI%g 4779 4780CEOF 4781EOF 4782 4783cat >> $CONFIG_STATUS <<\EOF 4784 4785# Split the substitutions into bite-sized pieces for seds with 4786# small command number limits, like on Digital OSF/1 and HP-UX. 4787ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4788ac_file=1 # Number of current file. 4789ac_beg=1 # First line for current file. 4790ac_end=$ac_max_sed_cmds # Line after last line for current file. 4791ac_more_lines=: 4792ac_sed_cmds="" 4793while $ac_more_lines; do 4794 if test $ac_beg -gt 1; then 4795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4796 else 4797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4798 fi 4799 if test ! -s conftest.s$ac_file; then 4800 ac_more_lines=false 4801 rm -f conftest.s$ac_file 4802 else 4803 if test -z "$ac_sed_cmds"; then 4804 ac_sed_cmds="sed -f conftest.s$ac_file" 4805 else 4806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4807 fi 4808 ac_file=`expr $ac_file + 1` 4809 ac_beg=$ac_end 4810 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4811 fi 4812done 4813if test -z "$ac_sed_cmds"; then 4814 ac_sed_cmds=cat 4815fi 4816EOF 4817 4818cat >> $CONFIG_STATUS <<EOF 4819 4820CONFIG_FILES=\${CONFIG_FILES-"Makefile \ 4821 contrib/Makefile \ 4822 contrib/clmerge \ 4823 contrib/cln_hist \ 4824 contrib/commit_prep \ 4825 contrib/cvs_acls \ 4826 contrib/log \ 4827 contrib/log_accum \ 4828 contrib/mfpipe \ 4829 contrib/rcslock \ 4830 contrib/sccs2rcs \ 4831 diff/Makefile \ 4832 doc/Makefile \ 4833 emx/Makefile \ 4834 lib/Makefile \ 4835 man/Makefile \ 4836 os2/Makefile \ 4837 src/Makefile \ 4838 src/cvsbug \ 4839 tools/Makefile \ 4840 vms/Makefile \ 4841 windows-NT/Makefile \ 4842 windows-NT/SCC/Makefile \ 4843 zlib/Makefile"} 4844EOF 4845cat >> $CONFIG_STATUS <<\EOF 4846for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4848 case "$ac_file" in 4849 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4850 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4851 *) ac_file_in="${ac_file}.in" ;; 4852 esac 4853 4854 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4855 4856 # Remove last slash and all that follows it. Not all systems have dirname. 4857 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4858 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4859 # The file is in a subdirectory. 4860 test ! -d "$ac_dir" && mkdir "$ac_dir" 4861 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4862 # A "../" for each directory in $ac_dir_suffix. 4863 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4864 else 4865 ac_dir_suffix= ac_dots= 4866 fi 4867 4868 case "$ac_given_srcdir" in 4869 .) srcdir=. 4870 if test -z "$ac_dots"; then top_srcdir=. 4871 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4872 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4873 *) # Relative path. 4874 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4875 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4876 esac 4877 4878 case "$ac_given_INSTALL" in 4879 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4880 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4881 esac 4882 4883 echo creating "$ac_file" 4884 rm -f "$ac_file" 4885 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4886 case "$ac_file" in 4887 *Makefile*) ac_comsub="1i\\ 4888# $configure_input" ;; 4889 *) ac_comsub= ;; 4890 esac 4891 4892 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4893 sed -e "$ac_comsub 4894s%@configure_input@%$configure_input%g 4895s%@srcdir@%$srcdir%g 4896s%@top_srcdir@%$top_srcdir%g 4897s%@INSTALL@%$INSTALL%g 4898" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4899fi; done 4900rm -f conftest.s* 4901 4902# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4903# NAME is the cpp macro being defined and VALUE is the value it is being given. 4904# 4905# ac_d sets the value in "#define NAME VALUE" lines. 4906ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4907ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4908ac_dC='\3' 4909ac_dD='%g' 4910# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4911ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4912ac_uB='\([ ]\)%\1#\2define\3' 4913ac_uC=' ' 4914ac_uD='\4%g' 4915# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4916ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4917ac_eB='$%\1#\2define\3' 4918ac_eC=' ' 4919ac_eD='%g' 4920 4921if test "${CONFIG_HEADERS+set}" != set; then 4922EOF 4923cat >> $CONFIG_STATUS <<EOF 4924 CONFIG_HEADERS="config.h src/options.h" 4925EOF 4926cat >> $CONFIG_STATUS <<\EOF 4927fi 4928for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4930 case "$ac_file" in 4931 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4932 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4933 *) ac_file_in="${ac_file}.in" ;; 4934 esac 4935 4936 echo creating $ac_file 4937 4938 rm -f conftest.frag conftest.in conftest.out 4939 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4940 cat $ac_file_inputs > conftest.in 4941 4942EOF 4943 4944# Transform confdefs.h into a sed script conftest.vals that substitutes 4945# the proper values into config.h.in to produce config.h. And first: 4946# Protect against being on the right side of a sed subst in config.status. 4947# Protect against being in an unquoted here document in config.status. 4948rm -f conftest.vals 4949cat > conftest.hdr <<\EOF 4950s/[\\&%]/\\&/g 4951s%[\\$`]%\\&%g 4952s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4953s%ac_d%ac_u%gp 4954s%ac_u%ac_e%gp 4955EOF 4956sed -n -f conftest.hdr confdefs.h > conftest.vals 4957rm -f conftest.hdr 4958 4959# This sed command replaces #undef with comments. This is necessary, for 4960# example, in the case of _POSIX_SOURCE, which is predefined and required 4961# on some systems where configure will not decide to define it. 4962cat >> conftest.vals <<\EOF 4963s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4964EOF 4965 4966# Break up conftest.vals because some shells have a limit on 4967# the size of here documents, and old seds have small limits too. 4968 4969rm -f conftest.tail 4970while : 4971do 4972 ac_lines=`grep -c . conftest.vals` 4973 # grep -c gives empty output for an empty file on some AIX systems. 4974 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4975 # Write a limited-size here document to conftest.frag. 4976 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4977 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4978 echo 'CEOF 4979 sed -f conftest.frag conftest.in > conftest.out 4980 rm -f conftest.in 4981 mv conftest.out conftest.in 4982' >> $CONFIG_STATUS 4983 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4984 rm -f conftest.vals 4985 mv conftest.tail conftest.vals 4986done 4987rm -f conftest.vals 4988 4989cat >> $CONFIG_STATUS <<\EOF 4990 rm -f conftest.frag conftest.h 4991 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4992 cat conftest.in >> conftest.h 4993 rm -f conftest.in 4994 if cmp -s $ac_file conftest.h 2>/dev/null; then 4995 echo "$ac_file is unchanged" 4996 rm -f conftest.h 4997 else 4998 # Remove last slash and all that follows it. Not all systems have dirname. 4999 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5000 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5001 # The file is in a subdirectory. 5002 test ! -d "$ac_dir" && mkdir "$ac_dir" 5003 fi 5004 rm -f $ac_file 5005 mv conftest.h $ac_file 5006 fi 5007fi; done 5008 5009EOF 5010cat >> $CONFIG_STATUS <<EOF 5011am_indx=1 5012for am_file in config.h src/options.h; do 5013 case " \$CONFIG_HEADERS " in 5014 *" \$am_file "*) 5015 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 5016 if test -n "\$am_dir"; then 5017 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 5018 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 5019 am_tmpdir=\$am_tmpdir\$am_subdir/ 5020 if test ! -d \$am_tmpdir; then 5021 mkdir \$am_tmpdir 5022 fi 5023 done 5024 fi 5025 echo timestamp > "\$am_dir"stamp-h\$am_indx 5026 ;; 5027 esac 5028 am_indx=\`expr \$am_indx + 1\` 5029done 5030AMDEP="$AMDEP" 5031ac_aux_dir="$ac_aux_dir" 5032 5033EOF 5034cat >> $CONFIG_STATUS <<\EOF 5035 5036 5037test x"$AMDEP" != x"" || 5038for mf in $CONFIG_FILES; do 5039 case "$mf" in 5040 Makefile) dirpart=.;; 5041 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 5042 *) continue;; 5043 esac 5044 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 5045 # Extract the definition of DEP_FILES from the Makefile without 5046 # running `make'. 5047 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 5048 test -z "$DEPDIR" && continue 5049 # When using ansi2knr, U may be empty or an underscore; expand it 5050 U=`sed -n -e '/^U = / s///p' < "$mf"` 5051 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 5052 # We invoke sed twice because it is the simplest approach to 5053 # changing $(DEPDIR) to its actual value in the expansion. 5054 for file in `sed -n -e ' 5055 /^DEP_FILES = .*\\\\$/ { 5056 s/^DEP_FILES = // 5057 :loop 5058 s/\\\\$// 5059 p 5060 n 5061 /\\\\$/ b loop 5062 p 5063 } 5064 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 5065 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 5066 # Make sure the directory exists. 5067 test -f "$dirpart/$file" && continue 5068 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 5069 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 5070 # echo "creating $dirpart/$file" 5071 echo '# dummy' > "$dirpart/$file" 5072 done 5073done 5074 5075chmod -f +x \ 5076 contrib/clmerge \ 5077 contrib/cln_hist \ 5078 contrib/commit_prep \ 5079 contrib/cvs_acls \ 5080 contrib/log \ 5081 contrib/log_accum \ 5082 contrib/mfpipe \ 5083 contrib/rcslock \ 5084 contrib/sccs2rcs \ 5085 src/cvsbug 5086exit 0 5087EOF 5088chmod +x $CONFIG_STATUS 5089rm -fr confdefs* $ac_clean_files 5090test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5091 5092