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