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 stdint.h sys/file.h \ 2326 sys/param.h sys/select.h sys/time.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 mkstemp \ 2846 mktemp \ 2847 putenv \ 2848 readlink \ 2849 sigaction \ 2850 sigblock \ 2851 sigprocmask \ 2852 sigsetmask \ 2853 sigvec \ 2854 tempnam \ 2855 timezone \ 2856 tzset \ 2857 vprintf \ 2858 wait3 \ 2859 2860do 2861echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2862echo "configure:2863: checking for $ac_func" >&5 2863if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2864 echo $ac_n "(cached) $ac_c" 1>&6 2865else 2866 cat > conftest.$ac_ext <<EOF 2867#line 2868 "configure" 2868#include "confdefs.h" 2869/* System header to define __stub macros and hopefully few prototypes, 2870 which can conflict with char $ac_func(); below. */ 2871#include <assert.h> 2872/* Override any gcc2 internal prototype to avoid an error. */ 2873/* We use char because int might match the return type of a gcc2 2874 builtin and then its argument prototype would still apply. */ 2875char $ac_func(); 2876 2877int main() { 2878 2879/* The GNU C library defines this for functions which it implements 2880 to always fail with ENOSYS. Some functions are actually named 2881 something starting with __ and the normal name is an alias. */ 2882#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2883choke me 2884#else 2885$ac_func(); 2886#endif 2887 2888; return 0; } 2889EOF 2890if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2891 rm -rf conftest* 2892 eval "ac_cv_func_$ac_func=yes" 2893else 2894 echo "configure: failed program was:" >&5 2895 cat conftest.$ac_ext >&5 2896 rm -rf conftest* 2897 eval "ac_cv_func_$ac_func=no" 2898fi 2899rm -f conftest* 2900fi 2901 2902if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2903 echo "$ac_t""yes" 1>&6 2904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2905 cat >> confdefs.h <<EOF 2906#define $ac_tr_func 1 2907EOF 2908 2909else 2910 echo "$ac_t""no" 1>&6 2911fi 2912done 2913 2914# we only need one of the following 2915for ac_func in \ 2916 nanosleep \ 2917 usleep \ 2918 select \ 2919 2920do 2921echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2922echo "configure:2923: checking for $ac_func" >&5 2923if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2924 echo $ac_n "(cached) $ac_c" 1>&6 2925else 2926 cat > conftest.$ac_ext <<EOF 2927#line 2928 "configure" 2928#include "confdefs.h" 2929/* System header to define __stub macros and hopefully few prototypes, 2930 which can conflict with char $ac_func(); below. */ 2931#include <assert.h> 2932/* Override any gcc2 internal prototype to avoid an error. */ 2933/* We use char because int might match the return type of a gcc2 2934 builtin and then its argument prototype would still apply. */ 2935char $ac_func(); 2936 2937int main() { 2938 2939/* The GNU C library defines this for functions which it implements 2940 to always fail with ENOSYS. Some functions are actually named 2941 something starting with __ and the normal name is an alias. */ 2942#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2943choke me 2944#else 2945$ac_func(); 2946#endif 2947 2948; return 0; } 2949EOF 2950if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2951 rm -rf conftest* 2952 eval "ac_cv_func_$ac_func=yes" 2953else 2954 echo "configure: failed program was:" >&5 2955 cat conftest.$ac_ext >&5 2956 rm -rf conftest* 2957 eval "ac_cv_func_$ac_func=no" 2958fi 2959rm -f conftest* 2960fi 2961 2962if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2963 echo "$ac_t""yes" 1>&6 2964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2965 cat >> confdefs.h <<EOF 2966#define $ac_tr_func 1 2967EOF 2968 break 2969else 2970 echo "$ac_t""no" 1>&6 2971fi 2972done 2973 2974 2975cat >> confdefs.h <<\EOF 2976#define HAVE_STRCHR 1 2977EOF 2978 2979cat >> confdefs.h <<\EOF 2980#define HAVE_MEMCHR 1 2981EOF 2982 2983 2984cat >> confdefs.h <<\EOF 2985#define REGEX_MALLOC 1 2986EOF 2987 2988cat >> confdefs.h <<\EOF 2989#define _REGEX_RE_COMP 1 2990EOF 2991 2992ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2993echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2994echo "configure:2995: checking for vfork.h" >&5 2995if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2996 echo $ac_n "(cached) $ac_c" 1>&6 2997else 2998 cat > conftest.$ac_ext <<EOF 2999#line 3000 "configure" 3000#include "confdefs.h" 3001#include <vfork.h> 3002EOF 3003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3004{ (eval echo configure:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3005ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3006if test -z "$ac_err"; then 3007 rm -rf conftest* 3008 eval "ac_cv_header_$ac_safe=yes" 3009else 3010 echo "$ac_err" >&5 3011 echo "configure: failed program was:" >&5 3012 cat conftest.$ac_ext >&5 3013 rm -rf conftest* 3014 eval "ac_cv_header_$ac_safe=no" 3015fi 3016rm -f conftest* 3017fi 3018if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3019 echo "$ac_t""yes" 1>&6 3020 cat >> confdefs.h <<\EOF 3021#define HAVE_VFORK_H 1 3022EOF 3023 3024else 3025 echo "$ac_t""no" 1>&6 3026fi 3027 3028echo $ac_n "checking for working vfork""... $ac_c" 1>&6 3029echo "configure:3030: checking for working vfork" >&5 3030if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 3031 echo $ac_n "(cached) $ac_c" 1>&6 3032else 3033 if test "$cross_compiling" = yes; then 3034 echo $ac_n "checking for vfork""... $ac_c" 1>&6 3035echo "configure:3036: checking for vfork" >&5 3036if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 3037 echo $ac_n "(cached) $ac_c" 1>&6 3038else 3039 cat > conftest.$ac_ext <<EOF 3040#line 3041 "configure" 3041#include "confdefs.h" 3042/* System header to define __stub macros and hopefully few prototypes, 3043 which can conflict with char vfork(); below. */ 3044#include <assert.h> 3045/* Override any gcc2 internal prototype to avoid an error. */ 3046/* We use char because int might match the return type of a gcc2 3047 builtin and then its argument prototype would still apply. */ 3048char vfork(); 3049 3050int main() { 3051 3052/* The GNU C library defines this for functions which it implements 3053 to always fail with ENOSYS. Some functions are actually named 3054 something starting with __ and the normal name is an alias. */ 3055#if defined (__stub_vfork) || defined (__stub___vfork) 3056choke me 3057#else 3058vfork(); 3059#endif 3060 3061; return 0; } 3062EOF 3063if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3064 rm -rf conftest* 3065 eval "ac_cv_func_vfork=yes" 3066else 3067 echo "configure: failed program was:" >&5 3068 cat conftest.$ac_ext >&5 3069 rm -rf conftest* 3070 eval "ac_cv_func_vfork=no" 3071fi 3072rm -f conftest* 3073fi 3074 3075if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then 3076 echo "$ac_t""yes" 1>&6 3077 : 3078else 3079 echo "$ac_t""no" 1>&6 3080fi 3081 3082ac_cv_func_vfork_works=$ac_cv_func_vfork 3083else 3084 cat > conftest.$ac_ext <<EOF 3085#line 3086 "configure" 3086#include "confdefs.h" 3087/* Thanks to Paul Eggert for this test. */ 3088#include <stdio.h> 3089#include <sys/types.h> 3090#include <sys/stat.h> 3091#ifdef HAVE_UNISTD_H 3092#include <unistd.h> 3093#endif 3094#ifdef HAVE_VFORK_H 3095#include <vfork.h> 3096#endif 3097/* On some sparc systems, changes by the child to local and incoming 3098 argument registers are propagated back to the parent. 3099 The compiler is told about this with #include <vfork.h>, 3100 but some compilers (e.g. gcc -O) don't grok <vfork.h>. 3101 Test for this by using a static variable whose address 3102 is put into a register that is clobbered by the vfork. */ 3103static 3104#ifdef __cplusplus 3105sparc_address_test (int arg) 3106#else 3107sparc_address_test (arg) int arg; 3108#endif 3109{ 3110 static pid_t child; 3111 if (!child) { 3112 child = vfork (); 3113 if (child < 0) { 3114 perror ("vfork"); 3115 _exit(2); 3116 } 3117 if (!child) { 3118 arg = getpid(); 3119 write(-1, "", 0); 3120 _exit (arg); 3121 } 3122 } 3123} 3124main() { 3125 pid_t parent = getpid (); 3126 pid_t child; 3127 3128 sparc_address_test (); 3129 3130 child = vfork (); 3131 3132 if (child == 0) { 3133 /* Here is another test for sparc vfork register problems. 3134 This test uses lots of local variables, at least 3135 as many local variables as main has allocated so far 3136 including compiler temporaries. 4 locals are enough for 3137 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. 3138 A buggy compiler should reuse the register of parent 3139 for one of the local variables, since it will think that 3140 parent can't possibly be used any more in this routine. 3141 Assigning to the local variable will thus munge parent 3142 in the parent process. */ 3143 pid_t 3144 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 3145 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 3146 /* Convince the compiler that p..p7 are live; otherwise, it might 3147 use the same hardware register for all 8 local variables. */ 3148 if (p != p1 || p != p2 || p != p3 || p != p4 3149 || p != p5 || p != p6 || p != p7) 3150 _exit(1); 3151 3152 /* On some systems (e.g. IRIX 3.3), 3153 vfork doesn't separate parent from child file descriptors. 3154 If the child closes a descriptor before it execs or exits, 3155 this munges the parent's descriptor as well. 3156 Test for this by closing stdout in the child. */ 3157 _exit(close(fileno(stdout)) != 0); 3158 } else { 3159 int status; 3160 struct stat st; 3161 3162 while (wait(&status) != child) 3163 ; 3164 exit( 3165 /* Was there some problem with vforking? */ 3166 child < 0 3167 3168 /* Did the child fail? (This shouldn't happen.) */ 3169 || status 3170 3171 /* Did the vfork/compiler bug occur? */ 3172 || parent != getpid() 3173 3174 /* Did the file descriptor bug occur? */ 3175 || fstat(fileno(stdout), &st) != 0 3176 ); 3177 } 3178} 3179EOF 3180if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3181then 3182 ac_cv_func_vfork_works=yes 3183else 3184 echo "configure: failed program was:" >&5 3185 cat conftest.$ac_ext >&5 3186 rm -fr conftest* 3187 ac_cv_func_vfork_works=no 3188fi 3189rm -fr conftest* 3190fi 3191 3192fi 3193 3194echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 3195if test $ac_cv_func_vfork_works = no; then 3196 cat >> confdefs.h <<\EOF 3197#define vfork fork 3198EOF 3199 3200fi 3201 3202echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6 3203echo "configure:3204: checking whether closedir returns void" >&5 3204if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then 3205 echo $ac_n "(cached) $ac_c" 1>&6 3206else 3207 if test "$cross_compiling" = yes; then 3208 ac_cv_func_closedir_void=yes 3209else 3210 cat > conftest.$ac_ext <<EOF 3211#line 3212 "configure" 3212#include "confdefs.h" 3213#include <sys/types.h> 3214#include <$ac_header_dirent> 3215int closedir(); main() { exit(closedir(opendir(".")) != 0); } 3216EOF 3217if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3218then 3219 ac_cv_func_closedir_void=no 3220else 3221 echo "configure: failed program was:" >&5 3222 cat conftest.$ac_ext >&5 3223 rm -fr conftest* 3224 ac_cv_func_closedir_void=yes 3225fi 3226rm -fr conftest* 3227fi 3228 3229fi 3230 3231echo "$ac_t""$ac_cv_func_closedir_void" 1>&6 3232if test $ac_cv_func_closedir_void = yes; then 3233 cat >> confdefs.h <<\EOF 3234#define CLOSEDIR_VOID 1 3235EOF 3236 3237fi 3238 3239 3240 3241echo $ac_n "checking for library containing getspnam""... $ac_c" 1>&6 3242echo "configure:3243: checking for library containing getspnam" >&5 3243if eval "test \"`echo '$''{'ac_cv_search_getspnam'+set}'`\" = set"; then 3244 echo $ac_n "(cached) $ac_c" 1>&6 3245else 3246 ac_func_search_save_LIBS="$LIBS" 3247ac_cv_search_getspnam="no" 3248cat > conftest.$ac_ext <<EOF 3249#line 3250 "configure" 3250#include "confdefs.h" 3251/* Override any gcc2 internal prototype to avoid an error. */ 3252/* We use char because int might match the return type of a gcc2 3253 builtin and then its argument prototype would still apply. */ 3254char getspnam(); 3255 3256int main() { 3257getspnam() 3258; return 0; } 3259EOF 3260if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3261 rm -rf conftest* 3262 ac_cv_search_getspnam="none required" 3263else 3264 echo "configure: failed program was:" >&5 3265 cat conftest.$ac_ext >&5 3266fi 3267rm -f conftest* 3268test "$ac_cv_search_getspnam" = "no" && for i in sec gen; do 3269LIBS="-l$i $ac_func_search_save_LIBS" 3270cat > conftest.$ac_ext <<EOF 3271#line 3272 "configure" 3272#include "confdefs.h" 3273/* Override any gcc2 internal prototype to avoid an error. */ 3274/* We use char because int might match the return type of a gcc2 3275 builtin and then its argument prototype would still apply. */ 3276char getspnam(); 3277 3278int main() { 3279getspnam() 3280; return 0; } 3281EOF 3282if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3283 rm -rf conftest* 3284 ac_cv_search_getspnam="-l$i" 3285break 3286else 3287 echo "configure: failed program was:" >&5 3288 cat conftest.$ac_ext >&5 3289fi 3290rm -f conftest* 3291done 3292LIBS="$ac_func_search_save_LIBS" 3293fi 3294 3295echo "$ac_t""$ac_cv_search_getspnam" 1>&6 3296if test "$ac_cv_search_getspnam" != "no"; then 3297 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS" 3298 cat >> confdefs.h <<\EOF 3299#define HAVE_GETSPNAM 1 3300EOF 3301 3302else : 3303 3304fi 3305 3306echo $ac_n "checking for zlibVersion in -lz""... $ac_c" 1>&6 3307echo "configure:3308: checking for zlibVersion in -lz" >&5 3308ac_lib_var=`echo z'_'zlibVersion | sed 'y%./+-%__p_%'` 3309if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3310 echo $ac_n "(cached) $ac_c" 1>&6 3311else 3312 ac_save_LIBS="$LIBS" 3313LIBS="-lz $LIBS" 3314cat > conftest.$ac_ext <<EOF 3315#line 3316 "configure" 3316#include "confdefs.h" 3317/* Override any gcc2 internal prototype to avoid an error. */ 3318/* We use char because int might match the return type of a gcc2 3319 builtin and then its argument prototype would still apply. */ 3320char zlibVersion(); 3321 3322int main() { 3323zlibVersion() 3324; return 0; } 3325EOF 3326if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3327 rm -rf conftest* 3328 eval "ac_cv_lib_$ac_lib_var=yes" 3329else 3330 echo "configure: failed program was:" >&5 3331 cat conftest.$ac_ext >&5 3332 rm -rf conftest* 3333 eval "ac_cv_lib_$ac_lib_var=no" 3334fi 3335rm -f conftest* 3336LIBS="$ac_save_LIBS" 3337 3338fi 3339if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3340 echo "$ac_t""yes" 1>&6 3341 ZLIB=-lz ZLIB_DEPEND=/usr/lib/libz.a 3342else 3343 echo "$ac_t""no" 1>&6 3344ZLIBSUBDIRS=zlib ZLIB=$srcdir/zlib/libz.a ZLIB_DEPEND=$srcdir/zlib/libz.a ZLIB_INCLUDES=-I$srcdir/zlib 3345fi 3346 3347 3348 3349 3350 3351 3352echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6 3353echo "configure:3354: checking whether utime accepts a null argument" >&5 3354if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then 3355 echo $ac_n "(cached) $ac_c" 1>&6 3356else 3357 rm -f conftestdata; > conftestdata 3358# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 3359if test "$cross_compiling" = yes; then 3360 ac_cv_func_utime_null=no 3361else 3362 cat > conftest.$ac_ext <<EOF 3363#line 3364 "configure" 3364#include "confdefs.h" 3365#include <sys/types.h> 3366#include <sys/stat.h> 3367main() { 3368struct stat s, t; 3369exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0 3370&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime 3371&& t.st_mtime - s.st_mtime < 120)); 3372} 3373EOF 3374if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3375then 3376 ac_cv_func_utime_null=yes 3377else 3378 echo "configure: failed program was:" >&5 3379 cat conftest.$ac_ext >&5 3380 rm -fr conftest* 3381 ac_cv_func_utime_null=no 3382fi 3383rm -fr conftest* 3384fi 3385 3386rm -f core core.* *.core 3387fi 3388 3389echo "$ac_t""$ac_cv_func_utime_null" 1>&6 3390if test $ac_cv_func_utime_null = yes; then 3391 cat >> confdefs.h <<\EOF 3392#define HAVE_UTIME_NULL 1 3393EOF 3394 3395fi 3396 3397echo $ac_n "checking for long file names""... $ac_c" 1>&6 3398echo "configure:3399: checking for long file names" >&5 3399if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3400 echo $ac_n "(cached) $ac_c" 1>&6 3401else 3402 ac_cv_sys_long_file_names=yes 3403# Test for long file names in all the places we know might matter: 3404# . the current directory, where building will happen 3405# $prefix/lib where we will be installing things 3406# $exec_prefix/lib likewise 3407# eval it to expand exec_prefix. 3408# $TMPDIR if set, where it might want to write temporary files 3409# if $TMPDIR is not set: 3410# /tmp where it might want to write temporary files 3411# /var/tmp likewise 3412# /usr/tmp likewise 3413if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 3414 ac_tmpdirs="$TMPDIR" 3415else 3416 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 3417fi 3418for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 3419 test -d $ac_dir || continue 3420 test -w $ac_dir || continue # It is less confusing to not echo anything here. 3421 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null 3422 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null 3423 val=`cat $ac_dir/conftest9012345 2>/dev/null` 3424 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then 3425 ac_cv_sys_long_file_names=no 3426 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 3427 break 3428 fi 3429 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 3430done 3431fi 3432 3433echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 3434if test $ac_cv_sys_long_file_names = yes; then 3435 cat >> confdefs.h <<\EOF 3436#define HAVE_LONG_FILE_NAMES 1 3437EOF 3438 3439fi 3440 3441 3442echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 3443echo "configure:3444: checking for working fnmatch" >&5 3444if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then 3445 echo $ac_n "(cached) $ac_c" 1>&6 3446else 3447 # Some versions of Solaris or SCO have a broken fnmatch function. 3448# So we run a test program. If we are cross-compiling, take no chance. 3449# Thanks to John Oleynick and Franc,ois Pinard for this test. 3450if test "$cross_compiling" = yes; then 3451 ac_cv_func_fnmatch_works=no 3452else 3453 cat > conftest.$ac_ext <<EOF 3454#line 3455 "configure" 3455#include "confdefs.h" 3456main() { exit (fnmatch ("a*", "abc", 0) != 0); } 3457EOF 3458if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3459then 3460 ac_cv_func_fnmatch_works=yes 3461else 3462 echo "configure: failed program was:" >&5 3463 cat conftest.$ac_ext >&5 3464 rm -fr conftest* 3465 ac_cv_func_fnmatch_works=no 3466fi 3467rm -fr conftest* 3468fi 3469 3470fi 3471 3472echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6 3473if test $ac_cv_func_fnmatch_works = yes; then 3474 cat >> confdefs.h <<\EOF 3475#define HAVE_FNMATCH 1 3476EOF 3477 3478fi 3479 3480if test "$ac_cv_func_fnmatch_works" = no; then 3481 LIBOBJS="$LIBOBJS fnmatch.o" 3482fi 3483 3484# Try to find connect and gethostbyname. 3485echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 3486echo "configure:3487: checking for main in -lnsl" >&5 3487ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` 3488if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3489 echo $ac_n "(cached) $ac_c" 1>&6 3490else 3491 ac_save_LIBS="$LIBS" 3492LIBS="-lnsl $LIBS" 3493cat > conftest.$ac_ext <<EOF 3494#line 3495 "configure" 3495#include "confdefs.h" 3496 3497int main() { 3498main() 3499; return 0; } 3500EOF 3501if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3502 rm -rf conftest* 3503 eval "ac_cv_lib_$ac_lib_var=yes" 3504else 3505 echo "configure: failed program was:" >&5 3506 cat conftest.$ac_ext >&5 3507 rm -rf conftest* 3508 eval "ac_cv_lib_$ac_lib_var=no" 3509fi 3510rm -f conftest* 3511LIBS="$ac_save_LIBS" 3512 3513fi 3514if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3515 echo "$ac_t""yes" 1>&6 3516 3517echo $ac_n "checking for library containing connect""... $ac_c" 1>&6 3518echo "configure:3519: checking for library containing connect" >&5 3519if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then 3520 echo $ac_n "(cached) $ac_c" 1>&6 3521else 3522 ac_func_search_save_LIBS="$LIBS" 3523ac_cv_search_connect="no" 3524cat > conftest.$ac_ext <<EOF 3525#line 3526 "configure" 3526#include "confdefs.h" 3527/* Override any gcc2 internal prototype to avoid an error. */ 3528/* We use char because int might match the return type of a gcc2 3529 builtin and then its argument prototype would still apply. */ 3530char connect(); 3531 3532int main() { 3533connect() 3534; return 0; } 3535EOF 3536if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3537 rm -rf conftest* 3538 ac_cv_search_connect="none required" 3539else 3540 echo "configure: failed program was:" >&5 3541 cat conftest.$ac_ext >&5 3542fi 3543rm -f conftest* 3544test "$ac_cv_search_connect" = "no" && for i in xnet socket inet; do 3545LIBS="-l$i -lnsl $ac_func_search_save_LIBS" 3546cat > conftest.$ac_ext <<EOF 3547#line 3548 "configure" 3548#include "confdefs.h" 3549/* Override any gcc2 internal prototype to avoid an error. */ 3550/* We use char because int might match the return type of a gcc2 3551 builtin and then its argument prototype would still apply. */ 3552char connect(); 3553 3554int main() { 3555connect() 3556; return 0; } 3557EOF 3558if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3559 rm -rf conftest* 3560 ac_cv_search_connect="-l$i" 3561break 3562else 3563 echo "configure: failed program was:" >&5 3564 cat conftest.$ac_ext >&5 3565fi 3566rm -f conftest* 3567done 3568LIBS="$ac_func_search_save_LIBS" 3569fi 3570 3571echo "$ac_t""$ac_cv_search_connect" 1>&6 3572if test "$ac_cv_search_connect" != "no"; then 3573 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 3574 cat >> confdefs.h <<\EOF 3575#define HAVE_CONNECT 1 3576EOF 3577 3578else : 3579 3580fi 3581else 3582 echo "$ac_t""no" 1>&6 3583 3584echo $ac_n "checking for library containing connect""... $ac_c" 1>&6 3585echo "configure:3586: checking for library containing connect" >&5 3586if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then 3587 echo $ac_n "(cached) $ac_c" 1>&6 3588else 3589 ac_func_search_save_LIBS="$LIBS" 3590ac_cv_search_connect="no" 3591cat > conftest.$ac_ext <<EOF 3592#line 3593 "configure" 3593#include "confdefs.h" 3594/* Override any gcc2 internal prototype to avoid an error. */ 3595/* We use char because int might match the return type of a gcc2 3596 builtin and then its argument prototype would still apply. */ 3597char connect(); 3598 3599int main() { 3600connect() 3601; return 0; } 3602EOF 3603if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3604 rm -rf conftest* 3605 ac_cv_search_connect="none required" 3606else 3607 echo "configure: failed program was:" >&5 3608 cat conftest.$ac_ext >&5 3609fi 3610rm -f conftest* 3611test "$ac_cv_search_connect" = "no" && for i in xnet socket inet; do 3612LIBS="-l$i $ac_func_search_save_LIBS" 3613cat > conftest.$ac_ext <<EOF 3614#line 3615 "configure" 3615#include "confdefs.h" 3616/* Override any gcc2 internal prototype to avoid an error. */ 3617/* We use char because int might match the return type of a gcc2 3618 builtin and then its argument prototype would still apply. */ 3619char connect(); 3620 3621int main() { 3622connect() 3623; return 0; } 3624EOF 3625if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3626 rm -rf conftest* 3627 ac_cv_search_connect="-l$i" 3628break 3629else 3630 echo "configure: failed program was:" >&5 3631 cat conftest.$ac_ext >&5 3632fi 3633rm -f conftest* 3634done 3635LIBS="$ac_func_search_save_LIBS" 3636fi 3637 3638echo "$ac_t""$ac_cv_search_connect" 1>&6 3639if test "$ac_cv_search_connect" != "no"; then 3640 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" 3641 cat >> confdefs.h <<\EOF 3642#define HAVE_CONNECT 1 3643EOF 3644 3645else : 3646 3647fi 3648fi 3649 3650 3651echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 3652echo "configure:3653: checking for library containing gethostbyname" >&5 3653if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then 3654 echo $ac_n "(cached) $ac_c" 1>&6 3655else 3656 ac_func_search_save_LIBS="$LIBS" 3657ac_cv_search_gethostbyname="no" 3658cat > conftest.$ac_ext <<EOF 3659#line 3660 "configure" 3660#include "confdefs.h" 3661/* Override any gcc2 internal prototype to avoid an error. */ 3662/* We use char because int might match the return type of a gcc2 3663 builtin and then its argument prototype would still apply. */ 3664char gethostbyname(); 3665 3666int main() { 3667gethostbyname() 3668; return 0; } 3669EOF 3670if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3671 rm -rf conftest* 3672 ac_cv_search_gethostbyname="none required" 3673else 3674 echo "configure: failed program was:" >&5 3675 cat conftest.$ac_ext >&5 3676fi 3677rm -f conftest* 3678test "$ac_cv_search_gethostbyname" = "no" && for i in netinet nsl; do 3679LIBS="-l$i $ac_func_search_save_LIBS" 3680cat > conftest.$ac_ext <<EOF 3681#line 3682 "configure" 3682#include "confdefs.h" 3683/* Override any gcc2 internal prototype to avoid an error. */ 3684/* We use char because int might match the return type of a gcc2 3685 builtin and then its argument prototype would still apply. */ 3686char gethostbyname(); 3687 3688int main() { 3689gethostbyname() 3690; return 0; } 3691EOF 3692if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3693 rm -rf conftest* 3694 ac_cv_search_gethostbyname="-l$i" 3695break 3696else 3697 echo "configure: failed program was:" >&5 3698 cat conftest.$ac_ext >&5 3699fi 3700rm -f conftest* 3701done 3702LIBS="$ac_func_search_save_LIBS" 3703fi 3704 3705echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 3706if test "$ac_cv_search_gethostbyname" != "no"; then 3707 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 3708 3709else : 3710 3711fi 3712 3713KRB4=/usr/kerberos 3714 3715# Check whether --with-krb4 or --without-krb4 was given. 3716if test "${with_krb4+set}" = set; then 3717 withval="$with_krb4" 3718 KRB4=$withval 3719fi 3720echo "default place for krb4 is $KRB4" 3721 3722 3723krb_h= 3724echo $ac_n "checking for krb.h""... $ac_c" 1>&6 3725echo "configure:3726: checking for krb.h" >&5 3726if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then 3727 hold_cflags=$CFLAGS 3728 CFLAGS="$CFLAGS -I$KRB4/include" 3729 cat > conftest.$ac_ext <<EOF 3730#line 3731 "configure" 3731#include "confdefs.h" 3732#include <krb.h> 3733int main() { 3734int i; 3735; return 0; } 3736EOF 3737if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3738 rm -rf conftest* 3739 krb_h=yes krb_incdir=$KRB4/include 3740else 3741 echo "configure: failed program was:" >&5 3742 cat conftest.$ac_ext >&5 3743 rm -rf conftest* 3744 CFLAGS=$hold_cflags 3745 cat > conftest.$ac_ext <<EOF 3746#line 3747 "configure" 3747#include "confdefs.h" 3748#include <krb.h> 3749int main() { 3750int i; 3751; return 0; } 3752EOF 3753if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3754 rm -rf conftest* 3755 krb_h=yes krb_incdir= 3756else 3757 echo "configure: failed program was:" >&5 3758 cat conftest.$ac_ext >&5 3759fi 3760rm -f conftest* 3761fi 3762rm -f conftest* 3763 CFLAGS=$hold_cflags 3764else 3765 cat > conftest.$ac_ext <<EOF 3766#line 3767 "configure" 3767#include "confdefs.h" 3768#include <krb.h> 3769int main() { 3770int i; 3771; return 0; } 3772EOF 3773if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3774 rm -rf conftest* 3775 krb_h=yes krb_incdir= 3776else 3777 echo "configure: failed program was:" >&5 3778 cat conftest.$ac_ext >&5 3779fi 3780rm -f conftest* 3781fi 3782if test -z "$krb_h"; then 3783 cat > conftest.$ac_ext <<EOF 3784#line 3785 "configure" 3785#include "confdefs.h" 3786#include <krb.h> 3787int main() { 3788int i; 3789; return 0; } 3790EOF 3791if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3792 rm -rf conftest* 3793 krb_h=yes krb_incdir= 3794else 3795 echo "configure: failed program was:" >&5 3796 cat conftest.$ac_ext >&5 3797 rm -rf conftest* 3798 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then 3799 hold_cflags=$CFLAGS 3800 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV" 3801 cat > conftest.$ac_ext <<EOF 3802#line 3803 "configure" 3803#include "confdefs.h" 3804#include <krb.h> 3805int main() { 3806int i; 3807; return 0; } 3808EOF 3809if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3810 rm -rf conftest* 3811 krb_h=yes krb_incdir=$KRB4/include/kerberosIV 3812else 3813 echo "configure: failed program was:" >&5 3814 cat conftest.$ac_ext >&5 3815fi 3816rm -f conftest* 3817 CFLAGS=$hold_cflags 3818 fi 3819fi 3820rm -f conftest* 3821fi 3822echo "$ac_t""$krb_h" 1>&6 3823 3824includeopt= 3825 3826if test -n "$krb_h"; then 3827 krb_lib= 3828 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then 3829 hold_ldflags=$LDFLAGS 3830 LDFLAGS="-L${KRB4}/lib $LDFLAGS" 3831 echo $ac_n "checking for printf in -lkrb""... $ac_c" 1>&6 3832echo "configure:3833: checking for printf in -lkrb" >&5 3833ac_lib_var=`echo krb'_'printf | sed 'y%./+-%__p_%'` 3834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3835 echo $ac_n "(cached) $ac_c" 1>&6 3836else 3837 ac_save_LIBS="$LIBS" 3838LIBS="-lkrb $LIBS" 3839cat > conftest.$ac_ext <<EOF 3840#line 3841 "configure" 3841#include "confdefs.h" 3842/* Override any gcc2 internal prototype to avoid an error. */ 3843/* We use char because int might match the return type of a gcc2 3844 builtin and then its argument prototype would still apply. */ 3845char printf(); 3846 3847int main() { 3848printf() 3849; return 0; } 3850EOF 3851if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3852 rm -rf conftest* 3853 eval "ac_cv_lib_$ac_lib_var=yes" 3854else 3855 echo "configure: failed program was:" >&5 3856 cat conftest.$ac_ext >&5 3857 rm -rf conftest* 3858 eval "ac_cv_lib_$ac_lib_var=no" 3859fi 3860rm -f conftest* 3861LIBS="$ac_save_LIBS" 3862 3863fi 3864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3865 echo "$ac_t""yes" 1>&6 3866 krb_lib=yes krb_libdir=${KRB4}/lib 3867else 3868 echo "$ac_t""no" 1>&6 3869LDFLAGS=$hold_ldflags 3870 # Using open here instead of printf so we don't 3871 # get confused by the cached value for printf from above. 3872 echo $ac_n "checking for open in -lkrb""... $ac_c" 1>&6 3873echo "configure:3874: checking for open in -lkrb" >&5 3874ac_lib_var=`echo krb'_'open | sed 'y%./+-%__p_%'` 3875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3876 echo $ac_n "(cached) $ac_c" 1>&6 3877else 3878 ac_save_LIBS="$LIBS" 3879LIBS="-lkrb $LIBS" 3880cat > conftest.$ac_ext <<EOF 3881#line 3882 "configure" 3882#include "confdefs.h" 3883/* Override any gcc2 internal prototype to avoid an error. */ 3884/* We use char because int might match the return type of a gcc2 3885 builtin and then its argument prototype would still apply. */ 3886char open(); 3887 3888int main() { 3889open() 3890; return 0; } 3891EOF 3892if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3893 rm -rf conftest* 3894 eval "ac_cv_lib_$ac_lib_var=yes" 3895else 3896 echo "configure: failed program was:" >&5 3897 cat conftest.$ac_ext >&5 3898 rm -rf conftest* 3899 eval "ac_cv_lib_$ac_lib_var=no" 3900fi 3901rm -f conftest* 3902LIBS="$ac_save_LIBS" 3903 3904fi 3905if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3906 echo "$ac_t""yes" 1>&6 3907 krb_lib=yes krb_libdir= 3908else 3909 echo "$ac_t""no" 1>&6 3910fi 3911 3912fi 3913 3914 LDFLAGS=$hold_ldflags 3915 else 3916 echo $ac_n "checking for printf in -lkrb""... $ac_c" 1>&6 3917echo "configure:3918: checking for printf in -lkrb" >&5 3918ac_lib_var=`echo krb'_'printf | sed 'y%./+-%__p_%'` 3919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3920 echo $ac_n "(cached) $ac_c" 1>&6 3921else 3922 ac_save_LIBS="$LIBS" 3923LIBS="-lkrb $LIBS" 3924cat > conftest.$ac_ext <<EOF 3925#line 3926 "configure" 3926#include "confdefs.h" 3927/* Override any gcc2 internal prototype to avoid an error. */ 3928/* We use char because int might match the return type of a gcc2 3929 builtin and then its argument prototype would still apply. */ 3930char printf(); 3931 3932int main() { 3933printf() 3934; return 0; } 3935EOF 3936if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3937 rm -rf conftest* 3938 eval "ac_cv_lib_$ac_lib_var=yes" 3939else 3940 echo "configure: failed program was:" >&5 3941 cat conftest.$ac_ext >&5 3942 rm -rf conftest* 3943 eval "ac_cv_lib_$ac_lib_var=no" 3944fi 3945rm -f conftest* 3946LIBS="$ac_save_LIBS" 3947 3948fi 3949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3950 echo "$ac_t""yes" 1>&6 3951 krb_lib=yes krb_libdir= 3952else 3953 echo "$ac_t""no" 1>&6 3954fi 3955 3956 fi 3957fi 3958 3959GSSAPI=/usr/cygnus/kerbnet 3960 3961# Check whether --with-gssapi or --without-gssapi was given. 3962if test "${with_gssapi+set}" = set; then 3963 withval="$with_gssapi" 3964 GSSAPI=$withval 3965fi 3966echo "default place for GSSAPI is $GSSAPI" 3967 3968 3969hold_cppflags=$CPPFLAGS 3970CPPFLAGS="$CPPFLAGS -I$GSSAPI/include/kerberosV " 3971for ac_hdr in krb5.h gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h 3972do 3973ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3974echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3975echo "configure:3976: checking for $ac_hdr" >&5 3976if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3977 echo $ac_n "(cached) $ac_c" 1>&6 3978else 3979 cat > conftest.$ac_ext <<EOF 3980#line 3981 "configure" 3981#include "confdefs.h" 3982#include <$ac_hdr> 3983EOF 3984ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3985{ (eval echo configure:3986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3986ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3987if test -z "$ac_err"; then 3988 rm -rf conftest* 3989 eval "ac_cv_header_$ac_safe=yes" 3990else 3991 echo "$ac_err" >&5 3992 echo "configure: failed program was:" >&5 3993 cat conftest.$ac_ext >&5 3994 rm -rf conftest* 3995 eval "ac_cv_header_$ac_safe=no" 3996fi 3997rm -f conftest* 3998fi 3999if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4000 echo "$ac_t""yes" 1>&6 4001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4002 cat >> confdefs.h <<EOF 4003#define $ac_tr_hdr 1 4004EOF 4005 4006else 4007 echo "$ac_t""no" 1>&6 4008fi 4009done 4010 4011CPPFLAGS=$hold_cppflags 4012 4013if test "$ac_cv_header_krb5_h" = "yes" && 4014 (test "$ac_cv_header_gssapi_h" = "yes" || 4015 test "$ac_cv_header_gssapi_gssapi_h" = "yes"); then 4016 cat >> confdefs.h <<\EOF 4017#define HAVE_GSSAPI 1 4018EOF 4019 4020 includeopt="${includeopt} -I$GSSAPI/include/kerberosV" 4021 # FIXME: This is ugly, but these things don't seem to be standardized. 4022 if test "$ac_cv_header_gssapi_h" = "yes"; then 4023 LIBS="$LIBS -L$GSSAPI/lib -lgssapi -lkrb5 -lcrypto" 4024 else 4025 LIBS="$LIBS -L$GSSAPI/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err" 4026 fi 4027 save_CPPFLAGS=$CPPFLAGS 4028 CPPFLAGS="-I$GSSAPI/include/kerberosV $CPPFLAGS" 4029 if test "$ac_cv_header_gssapi_h" = "yes"; then 4030 cat > conftest.$ac_ext <<EOF 4031#line 4032 "configure" 4032#include "confdefs.h" 4033#include <gssapi.h> 4034EOF 4035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4036 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 4037 rm -rf conftest* 4038 cat >> confdefs.h <<\EOF 4039#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1 4040EOF 4041 4042fi 4043rm -f conftest* 4044 4045 else 4046 cat > conftest.$ac_ext <<EOF 4047#line 4048 "configure" 4048#include "confdefs.h" 4049#include <gssapi/gssapi.h> 4050EOF 4051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4052 egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 4053 rm -rf conftest* 4054 cat >> confdefs.h <<\EOF 4055#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1 4056EOF 4057 4058fi 4059rm -f conftest* 4060 4061 fi 4062 CPPFLAGS=$save_CPPFLAGS 4063 # This is necessary on Irix 5.3, in order to link against libkrb5 -- 4064 # there, an_to_ln.o refers to things defined only in -lgen. 4065 echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6 4066echo "configure:4067: checking for compile in -lgen" >&5 4067ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'` 4068if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4069 echo $ac_n "(cached) $ac_c" 1>&6 4070else 4071 ac_save_LIBS="$LIBS" 4072LIBS="-lgen $LIBS" 4073cat > conftest.$ac_ext <<EOF 4074#line 4075 "configure" 4075#include "confdefs.h" 4076/* Override any gcc2 internal prototype to avoid an error. */ 4077/* We use char because int might match the return type of a gcc2 4078 builtin and then its argument prototype would still apply. */ 4079char compile(); 4080 4081int main() { 4082compile() 4083; return 0; } 4084EOF 4085if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4086 rm -rf conftest* 4087 eval "ac_cv_lib_$ac_lib_var=yes" 4088else 4089 echo "configure: failed program was:" >&5 4090 cat conftest.$ac_ext >&5 4091 rm -rf conftest* 4092 eval "ac_cv_lib_$ac_lib_var=no" 4093fi 4094rm -f conftest* 4095LIBS="$ac_save_LIBS" 4096 4097fi 4098if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4099 echo "$ac_t""yes" 1>&6 4100 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4102 cat >> confdefs.h <<EOF 4103#define $ac_tr_lib 1 4104EOF 4105 4106 LIBS="-lgen $LIBS" 4107 4108else 4109 echo "$ac_t""no" 1>&6 4110fi 4111 4112fi 4113 4114if test -n "$krb_h"; then 4115 if test -n "$krb_lib"; then 4116 cat >> confdefs.h <<\EOF 4117#define HAVE_KERBEROS 1 4118EOF 4119 4120 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}" 4121 LIBS="${LIBS} -lkrb" 4122 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before 4123 # -ldes in the command line. Don't do it permanently so that we honor 4124 # the user's setting for LDFLAGS 4125 hold_ldflags=$LDFLAGS 4126 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}" 4127 echo $ac_n "checking for printf in -ldes""... $ac_c" 1>&6 4128echo "configure:4129: checking for printf in -ldes" >&5 4129ac_lib_var=`echo des'_'printf | sed 'y%./+-%__p_%'` 4130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4131 echo $ac_n "(cached) $ac_c" 1>&6 4132else 4133 ac_save_LIBS="$LIBS" 4134LIBS="-ldes $LIBS" 4135cat > conftest.$ac_ext <<EOF 4136#line 4137 "configure" 4137#include "confdefs.h" 4138/* Override any gcc2 internal prototype to avoid an error. */ 4139/* We use char because int might match the return type of a gcc2 4140 builtin and then its argument prototype would still apply. */ 4141char printf(); 4142 4143int main() { 4144printf() 4145; return 0; } 4146EOF 4147if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4148 rm -rf conftest* 4149 eval "ac_cv_lib_$ac_lib_var=yes" 4150else 4151 echo "configure: failed program was:" >&5 4152 cat conftest.$ac_ext >&5 4153 rm -rf conftest* 4154 eval "ac_cv_lib_$ac_lib_var=no" 4155fi 4156rm -f conftest* 4157LIBS="$ac_save_LIBS" 4158 4159fi 4160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4161 echo "$ac_t""yes" 1>&6 4162 LIBS="${LIBS} -ldes" 4163else 4164 echo "$ac_t""no" 1>&6 4165fi 4166 4167 LDFLAGS=$hold_ldflags 4168 if test -n "$krb_incdir"; then 4169 includeopt="${includeopt} -I$krb_incdir" 4170 fi 4171 fi 4172fi 4173for ac_func in krb_get_err_text 4174do 4175echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4176echo "configure:4177: checking for $ac_func" >&5 4177if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4178 echo $ac_n "(cached) $ac_c" 1>&6 4179else 4180 cat > conftest.$ac_ext <<EOF 4181#line 4182 "configure" 4182#include "confdefs.h" 4183/* System header to define __stub macros and hopefully few prototypes, 4184 which can conflict with char $ac_func(); below. */ 4185#include <assert.h> 4186/* Override any gcc2 internal prototype to avoid an error. */ 4187/* We use char because int might match the return type of a gcc2 4188 builtin and then its argument prototype would still apply. */ 4189char $ac_func(); 4190 4191int main() { 4192 4193/* The GNU C library defines this for functions which it implements 4194 to always fail with ENOSYS. Some functions are actually named 4195 something starting with __ and the normal name is an alias. */ 4196#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4197choke me 4198#else 4199$ac_func(); 4200#endif 4201 4202; return 0; } 4203EOF 4204if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4205 rm -rf conftest* 4206 eval "ac_cv_func_$ac_func=yes" 4207else 4208 echo "configure: failed program was:" >&5 4209 cat conftest.$ac_ext >&5 4210 rm -rf conftest* 4211 eval "ac_cv_func_$ac_func=no" 4212fi 4213rm -f conftest* 4214fi 4215 4216if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4217 echo "$ac_t""yes" 1>&6 4218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4219 cat >> confdefs.h <<EOF 4220#define $ac_tr_func 1 4221EOF 4222 4223else 4224 echo "$ac_t""no" 1>&6 4225fi 4226done 4227 4228 4229# Check whether --enable-encryption or --disable-encryption was given. 4230if test "${enable_encryption+set}" = set; then 4231 enableval="$enable_encryption" 4232 case "${enableval}" in 4233 yes) encryption=true ;; 4234 no) encryption=false ;; 4235 *) { echo "configure: error: bad value ${enableval} for encryption option" 1>&2; exit 1; } ;; 4236 esac 4237else 4238 encryption=false 4239fi 4240 4241if test "$encryption" = "true"; then 4242 cat >> confdefs.h <<\EOF 4243#define ENCRYPTION 1 4244EOF 4245 4246fi 4247 4248echo $ac_n "checking for gethostname""... $ac_c" 1>&6 4249echo "configure:4250: checking for gethostname" >&5 4250if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then 4251 echo $ac_n "(cached) $ac_c" 1>&6 4252else 4253 cat > conftest.$ac_ext <<EOF 4254#line 4255 "configure" 4255#include "confdefs.h" 4256/* System header to define __stub macros and hopefully few prototypes, 4257 which can conflict with char gethostname(); below. */ 4258#include <assert.h> 4259/* Override any gcc2 internal prototype to avoid an error. */ 4260/* We use char because int might match the return type of a gcc2 4261 builtin and then its argument prototype would still apply. */ 4262char gethostname(); 4263 4264int main() { 4265 4266/* The GNU C library defines this for functions which it implements 4267 to always fail with ENOSYS. Some functions are actually named 4268 something starting with __ and the normal name is an alias. */ 4269#if defined (__stub_gethostname) || defined (__stub___gethostname) 4270choke me 4271#else 4272gethostname(); 4273#endif 4274 4275; return 0; } 4276EOF 4277if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4278 rm -rf conftest* 4279 eval "ac_cv_func_gethostname=yes" 4280else 4281 echo "configure: failed program was:" >&5 4282 cat conftest.$ac_ext >&5 4283 rm -rf conftest* 4284 eval "ac_cv_func_gethostname=no" 4285fi 4286rm -f conftest* 4287fi 4288 4289if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then 4290 echo "$ac_t""yes" 1>&6 4291 : 4292else 4293 echo "$ac_t""no" 1>&6 4294LIBOBJS="$LIBOBJS hostname.o" 4295fi 4296 4297 4298# Check for options requesting client and server feature. If none are 4299# given and we have connect(), we want the full client & server arrangement. 4300# Check whether --enable-client or --disable-client was given. 4301if test "${enable_client+set}" = set; then 4302 enableval="$enable_client" 4303 if test "$enable_client" = yes; then 4304 cat >> confdefs.h <<\EOF 4305#define CLIENT_SUPPORT 1 4306EOF 4307 4308fi 4309else 4310 if test "$ac_cv_search_connect" != no; then 4311 cat >> confdefs.h <<\EOF 4312#define CLIENT_SUPPORT 1 4313EOF 4314 4315fi 4316fi 4317 4318# Check whether --enable-server or --disable-server was given. 4319if test "${enable_server+set}" = set; then 4320 enableval="$enable_server" 4321 if test "$enable_server" = yes; then 4322 cat >> confdefs.h <<\EOF 4323#define SERVER_SUPPORT 1 4324EOF 4325 4326fi 4327else 4328 if test "$ac_cv_search_connect" != no; then 4329 cat >> confdefs.h <<\EOF 4330#define SERVER_SUPPORT 1 4331EOF 4332 4333 enable_server=yes 4334fi 4335fi 4336 4337 4338 4339echo $ac_n "checking for cygwin32""... $ac_c" 1>&6 4340echo "configure:4341: checking for cygwin32" >&5 4341if eval "test \"`echo '$''{'ccvs_cv_sys_cygwin32'+set}'`\" = set"; then 4342 echo $ac_n "(cached) $ac_c" 1>&6 4343else 4344 cat > conftest.$ac_ext <<EOF 4345#line 4346 "configure" 4346#include "confdefs.h" 4347 4348int main() { 4349return __CYGWIN32__; 4350; return 0; } 4351EOF 4352if { (eval echo configure:4353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4353 rm -rf conftest* 4354 ccvs_cv_sys_cygwin32=yes 4355else 4356 echo "configure: failed program was:" >&5 4357 cat conftest.$ac_ext >&5 4358 rm -rf conftest* 4359 ccvs_cv_sys_cygwin32=no 4360fi 4361rm -f conftest* 4362fi 4363 4364echo "$ac_t""$ccvs_cv_sys_cygwin32" 1>&6 4365if test $ccvs_cv_sys_cygwin32 = yes; then 4366 LIBOBJS="$LIBOBJS fncase.o" 4367 LIBS="$LIBS -ladvapi32" 4368 4369 cat >> confdefs.h <<\EOF 4370#define UTIME_EXPECTS_WRITABLE 1 4371EOF 4372 4373 4374 cat >> confdefs.h <<\EOF 4375#define USE_SETMODE_STDOUT 1 4376EOF 4377 4378 cat >> confdefs.h <<\EOF 4379#define HAVE_SETMODE 1 4380EOF 4381 4382fi 4383 4384test -f src/options.h && ( 4385 echo "configure: warning: saving ./src/options.h in ./src/options.h-SAVED" 1>&2 4386 echo "configure: warning: You may wish to check that local options have not been lost." 1>&2 4387 echo "configure: warning: Do not re-run ./configure or ./config.status until you have...." 1>&2 4388 cp ./src/options.h ./src/options.h-SAVED 4389) 4390 4391trap '' 1 2 15 4392cat > confcache <<\EOF 4393# This file is a shell script that caches the results of configure 4394# tests run on this system so they can be shared between configure 4395# scripts and configure runs. It is not useful on other systems. 4396# If it contains results you don't want to keep, you may remove or edit it. 4397# 4398# By default, configure uses ./config.cache as the cache file, 4399# creating it if it does not exist already. You can give configure 4400# the --cache-file=FILE option to use a different cache file; that is 4401# what configure does when it calls configure scripts in 4402# subdirectories, so they share the cache. 4403# Giving --cache-file=/dev/null disables caching, for debugging configure. 4404# config.status only pays attention to the cache file if you give it the 4405# --recheck option to rerun configure. 4406# 4407EOF 4408# The following way of writing the cache mishandles newlines in values, 4409# but we know of no workaround that is simple, portable, and efficient. 4410# So, don't put newlines in cache variables' values. 4411# Ultrix sh set writes to stderr and can't be redirected directly, 4412# and sets the high bit in the cache file unless we assign to the vars. 4413(set) 2>&1 | 4414 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4415 *ac_space=\ *) 4416 # `set' does not quote correctly, so add quotes (double-quote substitution 4417 # turns \\\\ into \\, and sed turns \\ into \). 4418 sed -n \ 4419 -e "s/'/'\\\\''/g" \ 4420 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4421 ;; 4422 *) 4423 # `set' quotes correctly as required by POSIX, so do not add quotes. 4424 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4425 ;; 4426 esac >> confcache 4427if cmp -s $cache_file confcache; then 4428 : 4429else 4430 if test -w $cache_file; then 4431 echo "updating cache $cache_file" 4432 cat confcache > $cache_file 4433 else 4434 echo "not updating unwritable cache $cache_file" 4435 fi 4436fi 4437rm -f confcache 4438 4439trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4440 4441test "x$prefix" = xNONE && prefix=$ac_default_prefix 4442# Let make expand exec_prefix. 4443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4444 4445# Any assignment to VPATH causes Sun make to only execute 4446# the first set of double-colon rules, so remove it if not needed. 4447# If there is a colon in the path, we need to keep it. 4448if test "x$srcdir" = x.; then 4449 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4450fi 4451 4452trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4453 4454DEFS=-DHAVE_CONFIG_H 4455 4456# Without the "./", some shells look in PATH for config.status. 4457: ${CONFIG_STATUS=./config.status} 4458 4459echo creating $CONFIG_STATUS 4460rm -f $CONFIG_STATUS 4461cat > $CONFIG_STATUS <<EOF 4462#! /bin/sh 4463# Generated automatically by configure. 4464# Run this file to recreate the current configuration. 4465# This directory was configured as follows, 4466# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4467# 4468# $0 $ac_configure_args 4469# 4470# Compiler output produced by configure, useful for debugging 4471# configure, is in ./config.log if it exists. 4472 4473ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4474for ac_option 4475do 4476 case "\$ac_option" in 4477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4478 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4479 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4480 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4481 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4482 exit 0 ;; 4483 -help | --help | --hel | --he | --h) 4484 echo "\$ac_cs_usage"; exit 0 ;; 4485 *) echo "\$ac_cs_usage"; exit 1 ;; 4486 esac 4487done 4488 4489ac_given_srcdir=$srcdir 4490ac_given_INSTALL="$INSTALL" 4491 4492trap 'rm -fr `echo "Makefile \ 4493 contrib/Makefile \ 4494 contrib/clmerge \ 4495 contrib/cln_hist \ 4496 contrib/commit_prep \ 4497 contrib/cvs_acls \ 4498 contrib/log \ 4499 contrib/log_accum \ 4500 contrib/mfpipe \ 4501 contrib/rcslock \ 4502 contrib/sccs2rcs \ 4503 diff/Makefile \ 4504 doc/Makefile \ 4505 emx/Makefile \ 4506 lib/Makefile \ 4507 man/Makefile \ 4508 os2/Makefile \ 4509 src/Makefile \ 4510 src/cvsbug \ 4511 tools/Makefile \ 4512 vms/Makefile \ 4513 windows-NT/Makefile \ 4514 windows-NT/SCC/Makefile \ 4515 zlib/Makefile config.h src/options.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4516EOF 4517cat >> $CONFIG_STATUS <<EOF 4518 4519# Protect against being on the right side of a sed subst in config.status. 4520sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4521 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4522$ac_vpsub 4523$extrasub 4524s%@SHELL@%$SHELL%g 4525s%@CFLAGS@%$CFLAGS%g 4526s%@CPPFLAGS@%$CPPFLAGS%g 4527s%@CXXFLAGS@%$CXXFLAGS%g 4528s%@FFLAGS@%$FFLAGS%g 4529s%@DEFS@%$DEFS%g 4530s%@LDFLAGS@%$LDFLAGS%g 4531s%@LIBS@%$LIBS%g 4532s%@exec_prefix@%$exec_prefix%g 4533s%@prefix@%$prefix%g 4534s%@program_transform_name@%$program_transform_name%g 4535s%@bindir@%$bindir%g 4536s%@sbindir@%$sbindir%g 4537s%@libexecdir@%$libexecdir%g 4538s%@datadir@%$datadir%g 4539s%@sysconfdir@%$sysconfdir%g 4540s%@sharedstatedir@%$sharedstatedir%g 4541s%@localstatedir@%$localstatedir%g 4542s%@libdir@%$libdir%g 4543s%@includedir@%$includedir%g 4544s%@oldincludedir@%$oldincludedir%g 4545s%@infodir@%$infodir%g 4546s%@mandir@%$mandir%g 4547s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4548s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4549s%@INSTALL_DATA@%$INSTALL_DATA%g 4550s%@PACKAGE@%$PACKAGE%g 4551s%@VERSION@%$VERSION%g 4552s%@ACLOCAL@%$ACLOCAL%g 4553s%@AUTOCONF@%$AUTOCONF%g 4554s%@AUTOMAKE@%$AUTOMAKE%g 4555s%@AUTOHEADER@%$AUTOHEADER%g 4556s%@MAKEINFO@%$MAKEINFO%g 4557s%@AMTAR@%$AMTAR%g 4558s%@install_sh@%$install_sh%g 4559s%@STRIP@%$STRIP%g 4560s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g 4561s%@INSTALL_STRIP_PROGRAM_ENV@%$INSTALL_STRIP_PROGRAM_ENV%g 4562s%@AWK@%$AWK%g 4563s%@SET_MAKE@%$SET_MAKE%g 4564s%@ETAGS@%$ETAGS%g 4565s%@ETAGS_INCLUDE_OPTION@%$ETAGS_INCLUDE_OPTION%g 4566s%@AMDEP_TRUE@%$AMDEP_TRUE%g 4567s%@AMDEP_FALSE@%$AMDEP_FALSE%g 4568s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g 4569s%@DEPDIR@%$DEPDIR%g 4570s%@CVS@%$CVS%g 4571s%@CC@%$CC%g 4572s%@CPP@%$CPP%g 4573s%@_am_include@%$_am_include%g 4574s%@_am_quote@%$_am_quote%g 4575s%@CCDEPMODE@%$CCDEPMODE%g 4576s%@RANLIB@%$RANLIB%g 4577s%@YACC@%$YACC%g 4578s%@LN_S@%$LN_S%g 4579s%@PERL@%$PERL%g 4580s%@CSH@%$CSH%g 4581s%@PR@%$PR%g 4582s%@ROFF@%$ROFF%g 4583s%@PS2PDF@%$PS2PDF%g 4584s%@TEXI2DVI@%$TEXI2DVI%g 4585s%@MAKE_TARGETS_IN_VPATH_TRUE@%$MAKE_TARGETS_IN_VPATH_TRUE%g 4586s%@MAKE_TARGETS_IN_VPATH_FALSE@%$MAKE_TARGETS_IN_VPATH_FALSE%g 4587s%@LIBOBJS@%$LIBOBJS%g 4588s%@ZLIB@%$ZLIB%g 4589s%@ZLIBSUBDIRS@%$ZLIBSUBDIRS%g 4590s%@ZLIB_INCLUDES@%$ZLIB_INCLUDES%g 4591s%@ZLIB_DEPEND@%$ZLIB_DEPEND%g 4592s%@KRB4@%$KRB4%g 4593s%@includeopt@%$includeopt%g 4594s%@GSSAPI@%$GSSAPI%g 4595 4596CEOF 4597EOF 4598 4599cat >> $CONFIG_STATUS <<\EOF 4600 4601# Split the substitutions into bite-sized pieces for seds with 4602# small command number limits, like on Digital OSF/1 and HP-UX. 4603ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4604ac_file=1 # Number of current file. 4605ac_beg=1 # First line for current file. 4606ac_end=$ac_max_sed_cmds # Line after last line for current file. 4607ac_more_lines=: 4608ac_sed_cmds="" 4609while $ac_more_lines; do 4610 if test $ac_beg -gt 1; then 4611 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4612 else 4613 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4614 fi 4615 if test ! -s conftest.s$ac_file; then 4616 ac_more_lines=false 4617 rm -f conftest.s$ac_file 4618 else 4619 if test -z "$ac_sed_cmds"; then 4620 ac_sed_cmds="sed -f conftest.s$ac_file" 4621 else 4622 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4623 fi 4624 ac_file=`expr $ac_file + 1` 4625 ac_beg=$ac_end 4626 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4627 fi 4628done 4629if test -z "$ac_sed_cmds"; then 4630 ac_sed_cmds=cat 4631fi 4632EOF 4633 4634cat >> $CONFIG_STATUS <<EOF 4635 4636CONFIG_FILES=\${CONFIG_FILES-"Makefile \ 4637 contrib/Makefile \ 4638 contrib/clmerge \ 4639 contrib/cln_hist \ 4640 contrib/commit_prep \ 4641 contrib/cvs_acls \ 4642 contrib/log \ 4643 contrib/log_accum \ 4644 contrib/mfpipe \ 4645 contrib/rcslock \ 4646 contrib/sccs2rcs \ 4647 diff/Makefile \ 4648 doc/Makefile \ 4649 emx/Makefile \ 4650 lib/Makefile \ 4651 man/Makefile \ 4652 os2/Makefile \ 4653 src/Makefile \ 4654 src/cvsbug \ 4655 tools/Makefile \ 4656 vms/Makefile \ 4657 windows-NT/Makefile \ 4658 windows-NT/SCC/Makefile \ 4659 zlib/Makefile"} 4660EOF 4661cat >> $CONFIG_STATUS <<\EOF 4662for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4664 case "$ac_file" in 4665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4667 *) ac_file_in="${ac_file}.in" ;; 4668 esac 4669 4670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4671 4672 # Remove last slash and all that follows it. Not all systems have dirname. 4673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4675 # The file is in a subdirectory. 4676 test ! -d "$ac_dir" && mkdir "$ac_dir" 4677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4678 # A "../" for each directory in $ac_dir_suffix. 4679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4680 else 4681 ac_dir_suffix= ac_dots= 4682 fi 4683 4684 case "$ac_given_srcdir" in 4685 .) srcdir=. 4686 if test -z "$ac_dots"; then top_srcdir=. 4687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4689 *) # Relative path. 4690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4691 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4692 esac 4693 4694 case "$ac_given_INSTALL" in 4695 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4696 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4697 esac 4698 4699 echo creating "$ac_file" 4700 rm -f "$ac_file" 4701 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4702 case "$ac_file" in 4703 *Makefile*) ac_comsub="1i\\ 4704# $configure_input" ;; 4705 *) ac_comsub= ;; 4706 esac 4707 4708 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4709 sed -e "$ac_comsub 4710s%@configure_input@%$configure_input%g 4711s%@srcdir@%$srcdir%g 4712s%@top_srcdir@%$top_srcdir%g 4713s%@INSTALL@%$INSTALL%g 4714" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4715fi; done 4716rm -f conftest.s* 4717 4718# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4719# NAME is the cpp macro being defined and VALUE is the value it is being given. 4720# 4721# ac_d sets the value in "#define NAME VALUE" lines. 4722ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4723ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4724ac_dC='\3' 4725ac_dD='%g' 4726# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4727ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4728ac_uB='\([ ]\)%\1#\2define\3' 4729ac_uC=' ' 4730ac_uD='\4%g' 4731# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4732ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4733ac_eB='$%\1#\2define\3' 4734ac_eC=' ' 4735ac_eD='%g' 4736 4737if test "${CONFIG_HEADERS+set}" != set; then 4738EOF 4739cat >> $CONFIG_STATUS <<EOF 4740 CONFIG_HEADERS="config.h src/options.h" 4741EOF 4742cat >> $CONFIG_STATUS <<\EOF 4743fi 4744for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4746 case "$ac_file" in 4747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4749 *) ac_file_in="${ac_file}.in" ;; 4750 esac 4751 4752 echo creating $ac_file 4753 4754 rm -f conftest.frag conftest.in conftest.out 4755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4756 cat $ac_file_inputs > conftest.in 4757 4758EOF 4759 4760# Transform confdefs.h into a sed script conftest.vals that substitutes 4761# the proper values into config.h.in to produce config.h. And first: 4762# Protect against being on the right side of a sed subst in config.status. 4763# Protect against being in an unquoted here document in config.status. 4764rm -f conftest.vals 4765cat > conftest.hdr <<\EOF 4766s/[\\&%]/\\&/g 4767s%[\\$`]%\\&%g 4768s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4769s%ac_d%ac_u%gp 4770s%ac_u%ac_e%gp 4771EOF 4772sed -n -f conftest.hdr confdefs.h > conftest.vals 4773rm -f conftest.hdr 4774 4775# This sed command replaces #undef with comments. This is necessary, for 4776# example, in the case of _POSIX_SOURCE, which is predefined and required 4777# on some systems where configure will not decide to define it. 4778cat >> conftest.vals <<\EOF 4779s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4780EOF 4781 4782# Break up conftest.vals because some shells have a limit on 4783# the size of here documents, and old seds have small limits too. 4784 4785rm -f conftest.tail 4786while : 4787do 4788 ac_lines=`grep -c . conftest.vals` 4789 # grep -c gives empty output for an empty file on some AIX systems. 4790 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4791 # Write a limited-size here document to conftest.frag. 4792 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4793 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4794 echo 'CEOF 4795 sed -f conftest.frag conftest.in > conftest.out 4796 rm -f conftest.in 4797 mv conftest.out conftest.in 4798' >> $CONFIG_STATUS 4799 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4800 rm -f conftest.vals 4801 mv conftest.tail conftest.vals 4802done 4803rm -f conftest.vals 4804 4805cat >> $CONFIG_STATUS <<\EOF 4806 rm -f conftest.frag conftest.h 4807 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4808 cat conftest.in >> conftest.h 4809 rm -f conftest.in 4810 if cmp -s $ac_file conftest.h 2>/dev/null; then 4811 echo "$ac_file is unchanged" 4812 rm -f conftest.h 4813 else 4814 # Remove last slash and all that follows it. Not all systems have dirname. 4815 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4816 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4817 # The file is in a subdirectory. 4818 test ! -d "$ac_dir" && mkdir "$ac_dir" 4819 fi 4820 rm -f $ac_file 4821 mv conftest.h $ac_file 4822 fi 4823fi; done 4824 4825EOF 4826cat >> $CONFIG_STATUS <<EOF 4827am_indx=1 4828for am_file in config.h src/options.h; do 4829 case " \$CONFIG_HEADERS " in 4830 *" \$am_file "*) 4831 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 4832 if test -n "\$am_dir"; then 4833 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 4834 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 4835 am_tmpdir=\$am_tmpdir\$am_subdir/ 4836 if test ! -d \$am_tmpdir; then 4837 mkdir \$am_tmpdir 4838 fi 4839 done 4840 fi 4841 echo timestamp > "\$am_dir"stamp-h\$am_indx 4842 ;; 4843 esac 4844 am_indx=\`expr \$am_indx + 1\` 4845done 4846AMDEP="$AMDEP" 4847ac_aux_dir="$ac_aux_dir" 4848 4849EOF 4850cat >> $CONFIG_STATUS <<\EOF 4851 4852 4853test x"$AMDEP" != x"" || 4854for mf in $CONFIG_FILES; do 4855 case "$mf" in 4856 Makefile) dirpart=.;; 4857 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 4858 *) continue;; 4859 esac 4860 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 4861 # Extract the definition of DEP_FILES from the Makefile without 4862 # running `make'. 4863 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 4864 test -z "$DEPDIR" && continue 4865 # When using ansi2knr, U may be empty or an underscore; expand it 4866 U=`sed -n -e '/^U = / s///p' < "$mf"` 4867 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 4868 # We invoke sed twice because it is the simplest approach to 4869 # changing $(DEPDIR) to its actual value in the expansion. 4870 for file in `sed -n -e ' 4871 /^DEP_FILES = .*\\\\$/ { 4872 s/^DEP_FILES = // 4873 :loop 4874 s/\\\\$// 4875 p 4876 n 4877 /\\\\$/ b loop 4878 p 4879 } 4880 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 4881 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 4882 # Make sure the directory exists. 4883 test -f "$dirpart/$file" && continue 4884 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 4885 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 4886 # echo "creating $dirpart/$file" 4887 echo '# dummy' > "$dirpart/$file" 4888 done 4889done 4890 4891chmod -f +x \ 4892 contrib/clmerge \ 4893 contrib/cln_hist \ 4894 contrib/commit_prep \ 4895 contrib/cvs_acls \ 4896 contrib/log \ 4897 contrib/log_accum \ 4898 contrib/mfpipe \ 4899 contrib/rcslock \ 4900 contrib/sccs2rcs \ 4901 src/cvsbug 4902exit 0 4903EOF 4904chmod +x $CONFIG_STATUS 4905rm -fr confdefs* $ac_clean_files 4906test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4907 4908