1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.7 5# Copyright (C) 1992, 1993, 1994 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 53ac_prev= 54for ac_option 55do 56 57 # If the previous option needs an argument, assign it. 58 if test -n "$ac_prev"; then 59 eval "$ac_prev=\$ac_option" 60 ac_prev= 61 continue 62 fi 63 64 case "$ac_option" in 65 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 66 *) ac_optarg= ;; 67 esac 68 69 # Accept the important Cygnus configure options, so we can diagnose typos. 70 71 case "$ac_option" in 72 73 -bindir | --bindir | --bindi | --bind | --bin | --bi) 74 ac_prev=bindir ;; 75 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 76 bindir="$ac_optarg" ;; 77 78 -build | --build | --buil | --bui | --bu) 79 ac_prev=build ;; 80 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 81 build="$ac_optarg" ;; 82 83 -cache-file | --cache-file | --cache-fil | --cache-fi \ 84 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 85 ac_prev=cache_file ;; 86 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 87 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 88 cache_file="$ac_optarg" ;; 89 90 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 91 ac_prev=datadir ;; 92 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 93 | --da=*) 94 datadir="$ac_optarg" ;; 95 96 -disable-* | --disable-*) 97 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 98 # Reject names that are not valid shell variable names. 99 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 100 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 101 fi 102 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 103 eval "enable_${ac_feature}=no" ;; 104 105 -enable-* | --enable-*) 106 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 107 # Reject names that are not valid shell variable names. 108 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 110 fi 111 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 112 case "$ac_option" in 113 *=*) ;; 114 *) ac_optarg=yes ;; 115 esac 116 eval "enable_${ac_feature}='$ac_optarg'" ;; 117 118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 120 | --exec | --exe | --ex) 121 ac_prev=exec_prefix ;; 122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 124 | --exec=* | --exe=* | --ex=*) 125 exec_prefix="$ac_optarg" ;; 126 127 -gas | --gas | --ga | --g) 128 # Obsolete; use --with-gas. 129 with_gas=yes ;; 130 131 -help | --help | --hel | --he) 132 # Omit some internal or obsolete options to make the list less imposing. 133 # This message is too long to be a string in the A/UX 3.1 sh. 134 cat << EOF 135Usage: configure [options] [host] 136Options: [defaults in brackets after descriptions] 137Configuration: 138 --cache-file=FILE cache test results in FILE 139 --help print this message 140 --no-create do not create output files 141 --quiet, --silent do not print \`checking...' messages 142 --version print the version of autoconf that created configure 143Directory and file names: 144 --prefix=PREFIX install architecture-independent files in PREFIX 145 [$ac_default_prefix] 146 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 147 [same as prefix] 148 --bindir=DIR user executables in DIR [EPREFIX/bin] 149 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 150 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 151 --datadir=DIR read-only architecture-independent data in DIR 152 [PREFIX/share] 153 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 154 --sharedstatedir=DIR modifiable architecture-independent data in DIR 155 [PREFIX/com] 156 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 157 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 158 --includedir=DIR C header files in DIR [PREFIX/include] 159 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 160 --infodir=DIR info documentation in DIR [PREFIX/info] 161 --mandir=DIR man documentation in DIR [PREFIX/man] 162 --srcdir=DIR find the sources in DIR [configure dir or ..] 163 --program-prefix=PREFIX prepend PREFIX to installed program names 164 --program-suffix=SUFFIX append SUFFIX to installed program names 165 --program-transform-name=PROGRAM 166 run sed PROGRAM on installed program names 167EOF 168 cat << EOF 169Host type: 170 --build=BUILD configure for building on BUILD [BUILD=HOST] 171 --host=HOST configure for HOST [guessed] 172 --target=TARGET configure for TARGET [TARGET=HOST] 173Features and packages: 174 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 175 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 176 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 177 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 178 --x-includes=DIR X include files are in DIR 179 --x-libraries=DIR X library files are in DIR 180EOF 181 if test -n "$ac_help"; then 182 echo "--enable and --with options recognized:$ac_help" 183 fi 184 exit 0 ;; 185 186 -host | --host | --hos | --ho) 187 ac_prev=host ;; 188 -host=* | --host=* | --hos=* | --ho=*) 189 host="$ac_optarg" ;; 190 191 -includedir | --includedir | --includedi | --included | --include \ 192 | --includ | --inclu | --incl | --inc) 193 ac_prev=includedir ;; 194 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 195 | --includ=* | --inclu=* | --incl=* | --inc=*) 196 includedir="$ac_optarg" ;; 197 198 -infodir | --infodir | --infodi | --infod | --info | --inf) 199 ac_prev=infodir ;; 200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 201 infodir="$ac_optarg" ;; 202 203 -libdir | --libdir | --libdi | --libd) 204 ac_prev=libdir ;; 205 -libdir=* | --libdir=* | --libdi=* | --libd=*) 206 libdir="$ac_optarg" ;; 207 208 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 209 | --libexe | --libex | --libe) 210 ac_prev=libexecdir ;; 211 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 212 | --libexe=* | --libex=* | --libe=*) 213 libexecdir="$ac_optarg" ;; 214 215 -localstatedir | --localstatedir | --localstatedi | --localstated \ 216 | --localstate | --localstat | --localsta | --localst \ 217 | --locals | --local | --loca | --loc | --lo) 218 ac_prev=localstatedir ;; 219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 220 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 221 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 222 localstatedir="$ac_optarg" ;; 223 224 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 225 ac_prev=mandir ;; 226 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 227 mandir="$ac_optarg" ;; 228 229 -nfp | --nfp | --nf) 230 # Obsolete; use --without-fp. 231 with_fp=no ;; 232 233 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 234 | --no-cr | --no-c) 235 no_create=yes ;; 236 237 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 238 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 239 no_recursion=yes ;; 240 241 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 242 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 243 | --oldin | --oldi | --old | --ol | --o) 244 ac_prev=oldincludedir ;; 245 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 246 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 247 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 248 oldincludedir="$ac_optarg" ;; 249 250 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 251 ac_prev=prefix ;; 252 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 253 prefix="$ac_optarg" ;; 254 255 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 256 | --program-pre | --program-pr | --program-p) 257 ac_prev=program_prefix ;; 258 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 259 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 260 program_prefix="$ac_optarg" ;; 261 262 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 263 | --program-suf | --program-su | --program-s) 264 ac_prev=program_suffix ;; 265 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 266 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 267 program_suffix="$ac_optarg" ;; 268 269 -program-transform-name | --program-transform-name \ 270 | --program-transform-nam | --program-transform-na \ 271 | --program-transform-n | --program-transform- \ 272 | --program-transform | --program-transfor \ 273 | --program-transfo | --program-transf \ 274 | --program-trans | --program-tran \ 275 | --progr-tra | --program-tr | --program-t) 276 ac_prev=program_transform_name ;; 277 -program-transform-name=* | --program-transform-name=* \ 278 | --program-transform-nam=* | --program-transform-na=* \ 279 | --program-transform-n=* | --program-transform-=* \ 280 | --program-transform=* | --program-transfor=* \ 281 | --program-transfo=* | --program-transf=* \ 282 | --program-trans=* | --program-tran=* \ 283 | --progr-tra=* | --program-tr=* | --program-t=*) 284 program_transform_name="$ac_optarg" ;; 285 286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 287 | -silent | --silent | --silen | --sile | --sil) 288 silent=yes ;; 289 290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 291 ac_prev=sbindir ;; 292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 293 | --sbi=* | --sb=*) 294 sbindir="$ac_optarg" ;; 295 296 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 298 | --sharedst | --shareds | --shared | --share | --shar \ 299 | --sha | --sh) 300 ac_prev=sharedstatedir ;; 301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 304 | --sha=* | --sh=*) 305 sharedstatedir="$ac_optarg" ;; 306 307 -site | --site | --sit) 308 ac_prev=site ;; 309 -site=* | --site=* | --sit=*) 310 site="$ac_optarg" ;; 311 312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 313 ac_prev=srcdir ;; 314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 315 srcdir="$ac_optarg" ;; 316 317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 318 | --syscon | --sysco | --sysc | --sys | --sy) 319 ac_prev=sysconfdir ;; 320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 322 sysconfdir="$ac_optarg" ;; 323 324 -target | --target | --targe | --targ | --tar | --ta | --t) 325 ac_prev=target ;; 326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 327 target="$ac_optarg" ;; 328 329 -v | -verbose | --verbose | --verbos | --verbo | --verb) 330 verbose=yes ;; 331 332 -version | --version | --versio | --versi | --vers) 333 echo "configure generated by autoconf version 2.7" 334 exit 0 ;; 335 336 -with-* | --with-*) 337 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 338 # Reject names that are not valid shell variable names. 339 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 340 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 341 fi 342 ac_package=`echo $ac_package| sed 's/-/_/g'` 343 case "$ac_option" in 344 *=*) ;; 345 *) ac_optarg=yes ;; 346 esac 347 eval "with_${ac_package}='$ac_optarg'" ;; 348 349 -without-* | --without-*) 350 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 351 # Reject names that are not valid shell variable names. 352 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 354 fi 355 ac_package=`echo $ac_package| sed 's/-/_/g'` 356 eval "with_${ac_package}=no" ;; 357 358 --x) 359 # Obsolete; use --with-x. 360 with_x=yes ;; 361 362 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 363 | --x-incl | --x-inc | --x-in | --x-i) 364 ac_prev=x_includes ;; 365 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 366 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 367 x_includes="$ac_optarg" ;; 368 369 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 370 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 371 ac_prev=x_libraries ;; 372 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 373 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 374 x_libraries="$ac_optarg" ;; 375 376 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 377 ;; 378 379 *) 380 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 381 echo "configure: warning: $ac_option: invalid host type" 1>&2 382 fi 383 if test "x$nonopt" != xNONE; then 384 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 385 fi 386 nonopt="$ac_option" 387 ;; 388 389 esac 390done 391 392if test -n "$ac_prev"; then 393 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 394fi 395 396trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 397 398# File descriptor usage: 399# 0 standard input 400# 1 file creation 401# 2 errors and warnings 402# 3 some systems may open it to /dev/tty 403# 4 used on the Kubota Titan 404# 6 checking for... messages and results 405# 5 compiler messages saved in config.log 406if test "$silent" = yes; then 407 exec 6>/dev/null 408else 409 exec 6>&1 410fi 411exec 5>./config.log 412 413echo "\ 414This file contains any messages produced by compilers while 415running configure, to aid debugging if configure makes a mistake. 416" 1>&5 417 418# Strip out --no-create and --no-recursion so they do not pile up. 419# Also quote any args containing shell metacharacters. 420ac_configure_args= 421for ac_arg 422do 423 case "$ac_arg" in 424 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 425 | --no-cr | --no-c) ;; 426 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 427 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 428 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 429 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 430 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 431 esac 432done 433 434# NLS nuisances. 435# Only set LANG and LC_ALL to C if already set. 436# These must not be set unconditionally because not all systems understand 437# e.g. LANG=C (notably SCO). 438if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 439if test "${LANG+set}" = set; then LANG=C; export LANG; fi 440 441# confdefs.h avoids OS command line length limits that DEFS can exceed. 442rm -rf conftest* confdefs.h 443# AIX cpp loses on an empty file, so make sure it contains at least a newline. 444echo > confdefs.h 445 446# A filename unique to this package, relative to the directory that 447# configure is in, which we can look for to find out if srcdir is correct. 448ac_unique_file=texindex.c 449 450# Find the source files, if location was not specified. 451if test -z "$srcdir"; then 452 ac_srcdir_defaulted=yes 453 # Try the directory containing this script, then its parent. 454 ac_prog=$0 455 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 456 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 457 srcdir=$ac_confdir 458 if test ! -r $srcdir/$ac_unique_file; then 459 srcdir=.. 460 fi 461else 462 ac_srcdir_defaulted=no 463fi 464if test ! -r $srcdir/$ac_unique_file; then 465 if test "$ac_srcdir_defaulted" = yes; then 466 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 467 else 468 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 469 fi 470fi 471srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 472 473# Prefer explicitly selected file to automatically selected ones. 474if test -z "$CONFIG_SITE"; then 475 if test "x$prefix" != xNONE; then 476 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 477 else 478 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 479 fi 480fi 481for ac_site_file in $CONFIG_SITE; do 482 if test -r "$ac_site_file"; then 483 echo "loading site script $ac_site_file" 484 . "$ac_site_file" 485 fi 486done 487 488if test -r "$cache_file"; then 489 echo "loading cache $cache_file" 490 . $cache_file 491else 492 echo "creating cache $cache_file" 493 > $cache_file 494fi 495 496ac_ext=c 497# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 498ac_cpp='echo $CPP $CPPFLAGS 1>&5; 499$CPP $CPPFLAGS' 500ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5; 501${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 502ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5; 503${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 504 505if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 506 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 507 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 508 ac_n= ac_c=' 509' ac_t=' ' 510 else 511 ac_n=-n ac_c= ac_t= 512 fi 513else 514 ac_n= ac_c='\c' ac_t= 515fi 516 517 518 519# Extract the first word of "gcc", so it can be a program name with args. 520set dummy gcc; ac_word=$2 521echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 522if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 523 echo $ac_n "(cached) $ac_c" 1>&6 524else 525 if test -n "$CC"; then 526 ac_cv_prog_CC="$CC" # Let the user override the test. 527else 528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 529 for ac_dir in $PATH; do 530 test -z "$ac_dir" && ac_dir=. 531 if test -f $ac_dir/$ac_word; then 532 ac_cv_prog_CC="gcc" 533 break 534 fi 535 done 536 IFS="$ac_save_ifs" 537 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" 538fi 539fi 540CC="$ac_cv_prog_CC" 541if test -n "$CC"; then 542 echo "$ac_t""$CC" 1>&6 543else 544 echo "$ac_t""no" 1>&6 545fi 546 547 548echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 549if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 550 echo $ac_n "(cached) $ac_c" 1>&6 551else 552 cat > conftest.c <<EOF 553#ifdef __GNUC__ 554 yes; 555#endif 556EOF 557if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then 558 ac_cv_prog_gcc=yes 559else 560 ac_cv_prog_gcc=no 561fi 562fi 563 564echo "$ac_t""$ac_cv_prog_gcc" 1>&6 565if test $ac_cv_prog_gcc = yes; then 566 GCC=yes 567 if test "${CFLAGS+set}" != set; then 568 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 569if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then 570 echo $ac_n "(cached) $ac_c" 1>&6 571else 572 echo 'void f(){}' > conftest.c 573if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 574 ac_cv_prog_gcc_g=yes 575else 576 ac_cv_prog_gcc_g=no 577fi 578rm -f conftest* 579 580fi 581 582echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 583 if test $ac_cv_prog_gcc_g = yes; then 584 CFLAGS="-g -O" 585 else 586 CFLAGS="-O" 587 fi 588 fi 589else 590 GCC= 591 test "${CFLAGS+set}" = set || CFLAGS="-g" 592fi 593 594echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 595# On Suns, sometimes $CPP names a directory. 596if test -n "$CPP" && test -d "$CPP"; then 597 CPP= 598fi 599if test -z "$CPP"; then 600if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 601 echo $ac_n "(cached) $ac_c" 1>&6 602else 603 # This must be in double quotes, not single quotes, because CPP may get 604 # substituted into the Makefile and "${CC-cc}" will confuse make. 605 CPP="${CC-cc} -E" 606 # On the NeXT, cc -E runs the code through the compiler's parser, 607 # not just through cpp. 608 cat > conftest.$ac_ext <<EOF 609#line 610 "configure" 610#include "confdefs.h" 611#include <assert.h> 612Syntax Error 613EOF 614eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 615ac_err=`grep -v '^ *+' conftest.out` 616if test -z "$ac_err"; then 617 : 618else 619 echo "$ac_err" >&5 620 rm -rf conftest* 621 CPP="${CC-cc} -E -traditional-cpp" 622 cat > conftest.$ac_ext <<EOF 623#line 624 "configure" 624#include "confdefs.h" 625#include <assert.h> 626Syntax Error 627EOF 628eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 629ac_err=`grep -v '^ *+' conftest.out` 630if test -z "$ac_err"; then 631 : 632else 633 echo "$ac_err" >&5 634 rm -rf conftest* 635 CPP=/lib/cpp 636fi 637rm -f conftest* 638fi 639rm -f conftest* 640 ac_cv_prog_CPP="$CPP" 641fi 642 CPP="$ac_cv_prog_CPP" 643else 644 ac_cv_prog_CPP="$CPP" 645fi 646echo "$ac_t""$CPP" 1>&6 647 648if test $ac_cv_prog_gcc = yes; then 649 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 650if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 651 echo $ac_n "(cached) $ac_c" 1>&6 652else 653 ac_pattern="Autoconf.*'x'" 654 cat > conftest.$ac_ext <<EOF 655#line 656 "configure" 656#include "confdefs.h" 657#include <sgtty.h> 658Autoconf TIOCGETP 659EOF 660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 661 egrep "$ac_pattern" >/dev/null 2>&1; then 662 rm -rf conftest* 663 ac_cv_prog_gcc_traditional=yes 664else 665 rm -rf conftest* 666 ac_cv_prog_gcc_traditional=no 667fi 668rm -f conftest* 669 670 671 if test $ac_cv_prog_gcc_traditional = no; then 672 cat > conftest.$ac_ext <<EOF 673#line 674 "configure" 674#include "confdefs.h" 675#include <termio.h> 676Autoconf TCGETA 677EOF 678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 679 egrep "$ac_pattern" >/dev/null 2>&1; then 680 rm -rf conftest* 681 ac_cv_prog_gcc_traditional=yes 682fi 683rm -f conftest* 684 685 fi 686fi 687 688echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 689 if test $ac_cv_prog_gcc_traditional = yes; then 690 CC="$CC -traditional" 691 fi 692fi 693 694ac_aux_dir= 695for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 696 if test -f $ac_dir/install-sh; then 697 ac_aux_dir=$ac_dir 698 ac_install_sh="$ac_aux_dir/install-sh -c" 699 break 700 elif test -f $ac_dir/install.sh; then 701 ac_aux_dir=$ac_dir 702 ac_install_sh="$ac_aux_dir/install.sh -c" 703 break 704 fi 705done 706if test -z "$ac_aux_dir"; then 707 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 708fi 709ac_config_guess=$ac_aux_dir/config.guess 710ac_config_sub=$ac_aux_dir/config.sub 711ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 712 713# Find a good install program. We prefer a C program (faster), 714# so one script is as good as another. But avoid the broken or 715# incompatible versions: 716# SysV /etc/install, /usr/sbin/install 717# SunOS /usr/etc/install 718# IRIX /sbin/install 719# AIX /bin/install 720# AFS /usr/afsws/bin/install, which mishandles nonexistent args 721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 722# ./install, which can be erroneously created by make from ./install.sh. 723echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 724if test -z "$INSTALL"; then 725if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 726 echo $ac_n "(cached) $ac_c" 1>&6 727else 728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 729 for ac_dir in $PATH; do 730 # Account for people who put trailing slashes in PATH elements. 731 case "$ac_dir/" in 732 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 733 *) 734 # OSF1 and SCO ODT 3.0 have their own names for install. 735 for ac_prog in ginstall installbsd scoinst install; do 736 if test -f $ac_dir/$ac_prog; then 737 if test $ac_prog = install && 738 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 739 # AIX install. It has an incompatible calling convention. 740 # OSF/1 installbsd also uses dspmsg, but is usable. 741 : 742 else 743 ac_cv_path_install="$ac_dir/$ac_prog -c" 744 break 2 745 fi 746 fi 747 done 748 ;; 749 esac 750 done 751 IFS="$ac_save_ifs" 752 753fi 754 if test "${ac_cv_path_install+set}" = set; then 755 INSTALL="$ac_cv_path_install" 756 else 757 # As a last resort, use the slow shell script. We don't cache a 758 # path for INSTALL within a source directory, because that will 759 # break other packages using the cache if that directory is 760 # removed, or if the path is relative. 761 INSTALL="$ac_install_sh" 762 fi 763fi 764echo "$ac_t""$INSTALL" 1>&6 765 766# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 767# It thinks the first close brace ends the variable substitution. 768test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 769 770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 771 772# Extract the first word of "ranlib", so it can be a program name with args. 773set dummy ranlib; ac_word=$2 774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 775if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 776 echo $ac_n "(cached) $ac_c" 1>&6 777else 778 if test -n "$RANLIB"; then 779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 780else 781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 782 for ac_dir in $PATH; do 783 test -z "$ac_dir" && ac_dir=. 784 if test -f $ac_dir/$ac_word; then 785 ac_cv_prog_RANLIB="ranlib" 786 break 787 fi 788 done 789 IFS="$ac_save_ifs" 790 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 791fi 792fi 793RANLIB="$ac_cv_prog_RANLIB" 794if test -n "$RANLIB"; then 795 echo "$ac_t""$RANLIB" 1>&6 796else 797 echo "$ac_t""no" 1>&6 798fi 799 800 801echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 802if test -d /etc/conf/kconfig.d && 803 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 804then 805 echo "$ac_t""yes" 1>&6 806 ISC=yes # If later tests want to check for ISC. 807 cat >> confdefs.h <<\EOF 808#define _POSIX_SOURCE 1 809EOF 810 811 if test "$GCC" = yes; then 812 CC="$CC -posix" 813 else 814 CC="$CC -Xp" 815 fi 816else 817 echo "$ac_t""no" 1>&6 818 ISC= 819fi 820 821ac_safe=`echo "minix/config.h" | tr './\055' '___'` 822echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 824 echo $ac_n "(cached) $ac_c" 1>&6 825else 826 cat > conftest.$ac_ext <<EOF 827#line 828 "configure" 828#include "confdefs.h" 829#include <minix/config.h> 830EOF 831eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 832ac_err=`grep -v '^ *+' conftest.out` 833if test -z "$ac_err"; then 834 rm -rf conftest* 835 eval "ac_cv_header_$ac_safe=yes" 836else 837 echo "$ac_err" >&5 838 rm -rf conftest* 839 eval "ac_cv_header_$ac_safe=no" 840fi 841rm -f conftest* 842fi 843if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 844 echo "$ac_t""yes" 1>&6 845 MINIX=yes 846else 847 echo "$ac_t""no" 1>&6 848MINIX= 849fi 850 851if test "$MINIX" = yes; then 852 cat >> confdefs.h <<\EOF 853#define _POSIX_SOURCE 1 854EOF 855 856 cat >> confdefs.h <<\EOF 857#define _POSIX_1_SOURCE 2 858EOF 859 860 cat >> confdefs.h <<\EOF 861#define _MINIX 1 862EOF 863 864fi 865 866 867# Needed on sysV68 for sigblock, sigsetmask. 868echo $ac_n "checking for -lbsd""... $ac_c" 1>&6 869ac_lib_var=`echo bsd | tr '.-/+' '___p'` 870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 871 echo $ac_n "(cached) $ac_c" 1>&6 872else 873 ac_save_LIBS="$LIBS" 874LIBS="-lbsd $LIBS" 875cat > conftest.$ac_ext <<EOF 876#line 877 "configure" 877#include "confdefs.h" 878 879int main() { return 0; } 880int t() { 881sigblock() 882; return 0; } 883EOF 884if eval $ac_link; then 885 rm -rf conftest* 886 eval "ac_cv_lib_$ac_lib_var=yes" 887else 888 rm -rf conftest* 889 eval "ac_cv_lib_$ac_lib_var=no" 890fi 891rm -f conftest* 892LIBS="$ac_save_LIBS" 893 894fi 895if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 896 echo "$ac_t""yes" 1>&6 897 ac_tr_lib=HAVE_LIB`echo bsd | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 898 cat >> confdefs.h <<EOF 899#define $ac_tr_lib 1 900EOF 901 902 LIBS="-lbsd $LIBS" 903 904else 905 echo "$ac_t""no" 1>&6 906fi 907 908 909TERMLIBS= 910for termlib in curses termcap terminfo termlib ; do 911 echo $ac_n "checking for -l${termlib}""... $ac_c" 1>&6 912ac_lib_var=`echo ${termlib} | tr '.-/+' '___p'` 913if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 914 echo $ac_n "(cached) $ac_c" 1>&6 915else 916 ac_save_LIBS="$LIBS" 917LIBS="-l${termlib} $LIBS" 918cat > conftest.$ac_ext <<EOF 919#line 920 "configure" 920#include "confdefs.h" 921 922int main() { return 0; } 923int t() { 924tputs() 925; return 0; } 926EOF 927if eval $ac_link; then 928 rm -rf conftest* 929 eval "ac_cv_lib_$ac_lib_var=yes" 930else 931 rm -rf conftest* 932 eval "ac_cv_lib_$ac_lib_var=no" 933fi 934rm -f conftest* 935LIBS="$ac_save_LIBS" 936 937fi 938if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 939 echo "$ac_t""yes" 1>&6 940 TERMLIBS="${TERMLIBS} -l${termlib}"; break 941else 942 echo "$ac_t""no" 1>&6 943fi 944 945done 946 947 948# If we cannot run a trivial program, we must be cross compiling. 949echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 950if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then 951 echo $ac_n "(cached) $ac_c" 1>&6 952else 953 if test "$cross_compiling" = yes; then 954 ac_cv_c_cross=yes 955else 956cat > conftest.$ac_ext <<EOF 957#line 958 "configure" 958#include "confdefs.h" 959main(){return(0);} 960EOF 961eval $ac_link 962if test -s conftest && (./conftest; exit) 2>/dev/null; then 963 ac_cv_c_cross=no 964else 965 ac_cv_c_cross=yes 966fi 967fi 968rm -fr conftest* 969fi 970 971echo "$ac_t""$ac_cv_c_cross" 1>&6 972cross_compiling=$ac_cv_c_cross 973 974echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 975if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977else 978 cat > conftest.$ac_ext <<EOF 979#line 980 "configure" 980#include "confdefs.h" 981#include <stdlib.h> 982#include <stdarg.h> 983#include <string.h> 984#include <float.h> 985EOF 986eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 987ac_err=`grep -v '^ *+' conftest.out` 988if test -z "$ac_err"; then 989 rm -rf conftest* 990 ac_cv_header_stdc=yes 991else 992 echo "$ac_err" >&5 993 rm -rf conftest* 994 ac_cv_header_stdc=no 995fi 996rm -f conftest* 997 998if test $ac_cv_header_stdc = yes; then 999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1000cat > conftest.$ac_ext <<EOF 1001#line 1002 "configure" 1002#include "confdefs.h" 1003#include <string.h> 1004EOF 1005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1006 egrep "memchr" >/dev/null 2>&1; then 1007 : 1008else 1009 rm -rf conftest* 1010 ac_cv_header_stdc=no 1011fi 1012rm -f conftest* 1013 1014fi 1015 1016if test $ac_cv_header_stdc = yes; then 1017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1018cat > conftest.$ac_ext <<EOF 1019#line 1020 "configure" 1020#include "confdefs.h" 1021#include <stdlib.h> 1022EOF 1023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1024 egrep "free" >/dev/null 2>&1; then 1025 : 1026else 1027 rm -rf conftest* 1028 ac_cv_header_stdc=no 1029fi 1030rm -f conftest* 1031 1032fi 1033 1034if test $ac_cv_header_stdc = yes; then 1035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1036if test "$cross_compiling" = yes; then 1037 : 1038else 1039cat > conftest.$ac_ext <<EOF 1040#line 1041 "configure" 1041#include "confdefs.h" 1042#include <ctype.h> 1043#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1044#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1046int main () { int i; for (i = 0; i < 256; i++) 1047if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1048exit (0); } 1049 1050EOF 1051eval $ac_link 1052if test -s conftest && (./conftest; exit) 2>/dev/null; then 1053 : 1054else 1055 ac_cv_header_stdc=no 1056fi 1057fi 1058rm -fr conftest* 1059fi 1060fi 1061 1062echo "$ac_t""$ac_cv_header_stdc" 1>&6 1063if test $ac_cv_header_stdc = yes; then 1064 cat >> confdefs.h <<\EOF 1065#define STDC_HEADERS 1 1066EOF 1067 1068fi 1069 1070for ac_hdr in unistd.h termio.h string.h varargs.h \ 1071 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h 1072do 1073ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 1074echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1075if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1076 echo $ac_n "(cached) $ac_c" 1>&6 1077else 1078 cat > conftest.$ac_ext <<EOF 1079#line 1080 "configure" 1080#include "confdefs.h" 1081#include <$ac_hdr> 1082EOF 1083eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1084ac_err=`grep -v '^ *+' conftest.out` 1085if test -z "$ac_err"; then 1086 rm -rf conftest* 1087 eval "ac_cv_header_$ac_safe=yes" 1088else 1089 echo "$ac_err" >&5 1090 rm -rf conftest* 1091 eval "ac_cv_header_$ac_safe=no" 1092fi 1093rm -f conftest* 1094fi 1095if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1096 echo "$ac_t""yes" 1>&6 1097 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 1098 cat >> confdefs.h <<EOF 1099#define $ac_tr_hdr 1 1100EOF 1101 1102else 1103 echo "$ac_t""no" 1>&6 1104fi 1105done 1106 1107 1108echo $ac_n "checking for off_t""... $ac_c" 1>&6 1109if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1110 echo $ac_n "(cached) $ac_c" 1>&6 1111else 1112 cat > conftest.$ac_ext <<EOF 1113#line 1114 "configure" 1114#include "confdefs.h" 1115#include <sys/types.h> 1116#if STDC_HEADERS 1117#include <stdlib.h> 1118#endif 1119EOF 1120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1121 egrep "off_t" >/dev/null 2>&1; then 1122 rm -rf conftest* 1123 ac_cv_type_off_t=yes 1124else 1125 rm -rf conftest* 1126 ac_cv_type_off_t=no 1127fi 1128rm -f conftest* 1129 1130fi 1131echo "$ac_t""$ac_cv_type_off_t" 1>&6 1132if test $ac_cv_type_off_t = no; then 1133 cat >> confdefs.h <<\EOF 1134#define off_t long 1135EOF 1136 1137fi 1138 1139echo $ac_n "checking for working const""... $ac_c" 1>&6 1140if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1141 echo $ac_n "(cached) $ac_c" 1>&6 1142else 1143 cat > conftest.$ac_ext <<EOF 1144#line 1145 "configure" 1145#include "confdefs.h" 1146 1147int main() { return 0; } 1148int t() { 1149 1150/* Ultrix mips cc rejects this. */ 1151typedef int charset[2]; const charset x; 1152/* SunOS 4.1.1 cc rejects this. */ 1153char const *const *ccp; 1154char **p; 1155/* NEC SVR4.0.2 mips cc rejects this. */ 1156struct point {int x, y;}; 1157static struct point const zero = {0,0}; 1158/* AIX XL C 1.02.0.0 rejects this. 1159 It does not let you subtract one const X* pointer from another in an arm 1160 of an if-expression whose if-part is not a constant expression */ 1161const char *g = "string"; 1162ccp = &g + (g ? g-g : 0); 1163/* HPUX 7.0 cc rejects these. */ 1164++ccp; 1165p = (char**) ccp; 1166ccp = (char const *const *) p; 1167{ /* SCO 3.2v4 cc rejects this. */ 1168 char *t; 1169 char const *s = 0 ? (char *) 0 : (char const *) 0; 1170 1171 *t++ = 0; 1172} 1173{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1174 int x[] = {25, 17}; 1175 const int *foo = &x[0]; 1176 ++foo; 1177} 1178{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1179 typedef const int *iptr; 1180 iptr p = 0; 1181 ++p; 1182} 1183{ /* AIX XL C 1.02.0.0 rejects this saying 1184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1185 struct s { int j; const int *ap[3]; }; 1186 struct s *b; b->j = 5; 1187} 1188{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1189 const int foo = 10; 1190} 1191 1192; return 0; } 1193EOF 1194if eval $ac_compile; then 1195 rm -rf conftest* 1196 ac_cv_c_const=yes 1197else 1198 rm -rf conftest* 1199 ac_cv_c_const=no 1200fi 1201rm -f conftest* 1202 1203fi 1204 1205echo "$ac_t""$ac_cv_c_const" 1>&6 1206if test $ac_cv_c_const = no; then 1207 cat >> confdefs.h <<\EOF 1208#define const 1209EOF 1210 1211fi 1212 1213echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1214if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1215 echo $ac_n "(cached) $ac_c" 1>&6 1216else 1217 cat > conftest.$ac_ext <<EOF 1218#line 1219 "configure" 1219#include "confdefs.h" 1220#include <sys/types.h> 1221#include <time.h> 1222int main() { return 0; } 1223int t() { 1224struct tm *tp; tp->tm_sec; 1225; return 0; } 1226EOF 1227if eval $ac_compile; then 1228 rm -rf conftest* 1229 ac_cv_struct_tm=time.h 1230else 1231 rm -rf conftest* 1232 ac_cv_struct_tm=sys/time.h 1233fi 1234rm -f conftest* 1235 1236fi 1237 1238echo "$ac_t""$ac_cv_struct_tm" 1>&6 1239if test $ac_cv_struct_tm = sys/time.h; then 1240 cat >> confdefs.h <<\EOF 1241#define TM_IN_SYS_TIME 1 1242EOF 1243 1244fi 1245 1246 1247# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 1248# for constant arguments. Useless! 1249echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 1250if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+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 <alloca.h> 1257int main() { return 0; } 1258int t() { 1259char *p = alloca(2 * sizeof(int)); 1260; return 0; } 1261EOF 1262if eval $ac_link; then 1263 rm -rf conftest* 1264 ac_cv_header_alloca_h=yes 1265else 1266 rm -rf conftest* 1267 ac_cv_header_alloca_h=no 1268fi 1269rm -f conftest* 1270 1271fi 1272 1273echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 1274if test $ac_cv_header_alloca_h = yes; then 1275 cat >> confdefs.h <<\EOF 1276#define HAVE_ALLOCA_H 1 1277EOF 1278 1279fi 1280 1281echo $ac_n "checking for alloca""... $ac_c" 1>&6 1282if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then 1283 echo $ac_n "(cached) $ac_c" 1>&6 1284else 1285 cat > conftest.$ac_ext <<EOF 1286#line 1287 "configure" 1287#include "confdefs.h" 1288 1289#ifdef __GNUC__ 1290# define alloca __builtin_alloca 1291#else 1292# if HAVE_ALLOCA_H 1293# include <alloca.h> 1294# else 1295# ifdef _AIX 1296 #pragma alloca 1297# else 1298# ifndef alloca /* predefined by HP cc +Olibcalls */ 1299char *alloca (); 1300# endif 1301# endif 1302# endif 1303#endif 1304 1305int main() { return 0; } 1306int t() { 1307char *p = (char *) alloca(1); 1308; return 0; } 1309EOF 1310if eval $ac_link; then 1311 rm -rf conftest* 1312 ac_cv_func_alloca=yes 1313else 1314 rm -rf conftest* 1315 ac_cv_func_alloca=no 1316fi 1317rm -f conftest* 1318 1319fi 1320 1321echo "$ac_t""$ac_cv_func_alloca" 1>&6 1322if test $ac_cv_func_alloca = yes; then 1323 cat >> confdefs.h <<\EOF 1324#define HAVE_ALLOCA 1 1325EOF 1326 1327fi 1328 1329if test $ac_cv_func_alloca = no; then 1330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 1331 # that cause trouble. Some versions do not even contain alloca or 1332 # contain a buggy version. If you still want to use their alloca, 1333 # use ar to extract alloca.o from them instead of compiling alloca.c. 1334 ALLOCA=alloca.o 1335 cat >> confdefs.h <<\EOF 1336#define C_ALLOCA 1 1337EOF 1338 1339 1340echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 1341if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 1342 echo $ac_n "(cached) $ac_c" 1>&6 1343else 1344 cat > conftest.$ac_ext <<EOF 1345#line 1346 "configure" 1346#include "confdefs.h" 1347#if defined(CRAY) && ! defined(CRAY2) 1348webecray 1349#else 1350wenotbecray 1351#endif 1352 1353EOF 1354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1355 egrep "webecray" >/dev/null 2>&1; then 1356 rm -rf conftest* 1357 ac_cv_os_cray=yes 1358else 1359 rm -rf conftest* 1360 ac_cv_os_cray=no 1361fi 1362rm -f conftest* 1363 1364fi 1365 1366echo "$ac_t""$ac_cv_os_cray" 1>&6 1367if test $ac_cv_os_cray = yes; then 1368for ac_func in _getb67 GETB67 getb67; do 1369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1370if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1371 echo $ac_n "(cached) $ac_c" 1>&6 1372else 1373 cat > conftest.$ac_ext <<EOF 1374#line 1375 "configure" 1375#include "confdefs.h" 1376/* System header to define __stub macros and hopefully few prototypes, 1377 which can conflict with char $ac_func(); below. */ 1378#include <assert.h> 1379/* Override any gcc2 internal prototype to avoid an error. */ 1380char $ac_func(); 1381 1382int main() { return 0; } 1383int t() { 1384 1385/* The GNU C library defines this for functions which it implements 1386 to always fail with ENOSYS. Some functions are actually named 1387 something starting with __ and the normal name is an alias. */ 1388#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1389choke me 1390#else 1391$ac_func(); 1392#endif 1393 1394; return 0; } 1395EOF 1396if eval $ac_link; then 1397 rm -rf conftest* 1398 eval "ac_cv_func_$ac_func=yes" 1399else 1400 rm -rf conftest* 1401 eval "ac_cv_func_$ac_func=no" 1402fi 1403rm -f conftest* 1404 1405fi 1406if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1407 echo "$ac_t""yes" 1>&6 1408 cat >> confdefs.h <<EOF 1409#define CRAY_STACKSEG_END $ac_func 1410EOF 1411 1412 break 1413else 1414 echo "$ac_t""no" 1>&6 1415fi 1416 1417done 1418fi 1419 1420echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 1421if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 1422 echo $ac_n "(cached) $ac_c" 1>&6 1423else 1424 if test "$cross_compiling" = yes; then 1425 ac_cv_c_stack_direction=0 1426else 1427cat > conftest.$ac_ext <<EOF 1428#line 1429 "configure" 1429#include "confdefs.h" 1430find_stack_direction () 1431{ 1432 static char *addr = 0; 1433 auto char dummy; 1434 if (addr == 0) 1435 { 1436 addr = &dummy; 1437 return find_stack_direction (); 1438 } 1439 else 1440 return (&dummy > addr) ? 1 : -1; 1441} 1442main () 1443{ 1444 exit (find_stack_direction() < 0); 1445} 1446EOF 1447eval $ac_link 1448if test -s conftest && (./conftest; exit) 2>/dev/null; then 1449 ac_cv_c_stack_direction=1 1450else 1451 ac_cv_c_stack_direction=-1 1452fi 1453fi 1454rm -fr conftest* 1455fi 1456 1457echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 1458cat >> confdefs.h <<EOF 1459#define STACK_DIRECTION $ac_cv_c_stack_direction 1460EOF 1461 1462fi 1463 1464echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 1465if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then 1466 echo $ac_n "(cached) $ac_c" 1>&6 1467else 1468 if test "$cross_compiling" = yes; then 1469 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1470else 1471cat > conftest.$ac_ext <<EOF 1472#line 1473 "configure" 1473#include "confdefs.h" 1474#include <stdio.h> 1475/* If setvbuf has the reversed format, exit 0. */ 1476main () { 1477 /* This call has the arguments reversed. 1478 A reversed system may check and see that the address of main 1479 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 1480 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 1481 exit(1); 1482 putc('\r', stdout); 1483 exit(0); /* Non-reversed systems segv here. */ 1484} 1485EOF 1486eval $ac_link 1487if test -s conftest && (./conftest; exit) 2>/dev/null; then 1488 ac_cv_func_setvbuf_reversed=yes 1489else 1490 ac_cv_func_setvbuf_reversed=no 1491fi 1492fi 1493rm -fr conftest* 1494rm -f core core.* *.core 1495fi 1496 1497echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 1498if test $ac_cv_func_setvbuf_reversed = yes; then 1499 cat >> confdefs.h <<\EOF 1500#define SETVBUF_REVERSED 1 1501EOF 1502 1503fi 1504 1505for ac_func in setvbuf getcwd bzero bcopy memset memcpy memmove strchr \ 1506 strcasecmp strdup vfprintf vsprintf strerror sigprocmask \ 1507 sigsetmask 1508do 1509echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1510if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1511 echo $ac_n "(cached) $ac_c" 1>&6 1512else 1513 cat > conftest.$ac_ext <<EOF 1514#line 1515 "configure" 1515#include "confdefs.h" 1516/* System header to define __stub macros and hopefully few prototypes, 1517 which can conflict with char $ac_func(); below. */ 1518#include <assert.h> 1519/* Override any gcc2 internal prototype to avoid an error. */ 1520char $ac_func(); 1521 1522int main() { return 0; } 1523int t() { 1524 1525/* The GNU C library defines this for functions which it implements 1526 to always fail with ENOSYS. Some functions are actually named 1527 something starting with __ and the normal name is an alias. */ 1528#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1529choke me 1530#else 1531$ac_func(); 1532#endif 1533 1534; return 0; } 1535EOF 1536if eval $ac_link; then 1537 rm -rf conftest* 1538 eval "ac_cv_func_$ac_func=yes" 1539else 1540 rm -rf conftest* 1541 eval "ac_cv_func_$ac_func=no" 1542fi 1543rm -f conftest* 1544 1545fi 1546if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1547 echo "$ac_t""yes" 1>&6 1548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1549 cat >> confdefs.h <<EOF 1550#define $ac_tr_func 1 1551EOF 1552 1553else 1554 echo "$ac_t""no" 1>&6 1555fi 1556done 1557 1558 1559trap '' 1 2 15 1560cat > confcache <<\EOF 1561# This file is a shell script that caches the results of configure 1562# tests run on this system so they can be shared between configure 1563# scripts and configure runs. It is not useful on other systems. 1564# If it contains results you don't want to keep, you may remove or edit it. 1565# 1566# By default, configure uses ./config.cache as the cache file, 1567# creating it if it does not exist already. You can give configure 1568# the --cache-file=FILE option to use a different cache file; that is 1569# what configure does when it calls configure scripts in 1570# subdirectories, so they share the cache. 1571# Giving --cache-file=/dev/null disables caching, for debugging configure. 1572# config.status only pays attention to the cache file if you give it the 1573# --recheck option to rerun configure. 1574# 1575EOF 1576# Ultrix sh set writes to stderr and can't be redirected directly, 1577# and sets the high bit in the cache file unless we assign to the vars. 1578(set) 2>&1 | 1579 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 1580 >> confcache 1581if cmp -s $cache_file confcache; then 1582 : 1583else 1584 if test -w $cache_file; then 1585 echo "updating cache $cache_file" 1586 cat confcache > $cache_file 1587 else 1588 echo "not updating unwritable cache $cache_file" 1589 fi 1590fi 1591rm -f confcache 1592 1593trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1594 1595test "x$prefix" = xNONE && prefix=$ac_default_prefix 1596# Let make expand exec_prefix. 1597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1598 1599# Any assignment to VPATH causes Sun make to only execute 1600# the first set of double-colon rules, so remove it if not needed. 1601# If there is a colon in the path, we need to keep it. 1602if test "x$srcdir" = x.; then 1603 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1604fi 1605 1606trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1607 1608# Transform confdefs.h into DEFS. 1609# Protect against shell expansion while executing Makefile rules. 1610# Protect against Makefile macro expansion. 1611cat > conftest.defs <<\EOF 1612s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g 1613s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1614s%\[%\\&%g 1615s%\]%\\&%g 1616s%\$%$$%g 1617EOF 1618DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1619rm -f conftest.defs 1620 1621 1622# Without the "./", some shells look in PATH for config.status. 1623: ${CONFIG_STATUS=./config.status} 1624 1625echo creating $CONFIG_STATUS 1626rm -f $CONFIG_STATUS 1627cat > $CONFIG_STATUS <<EOF 1628#! /bin/sh 1629# Generated automatically by configure. 1630# Run this file to recreate the current configuration. 1631# This directory was configured as follows, 1632# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1633# 1634# $0 $ac_configure_args 1635# 1636# Compiler output produced by configure, useful for debugging 1637# configure, is in ./config.log if it exists. 1638 1639ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1640for ac_option 1641do 1642 case "\$ac_option" in 1643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1644 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1645 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1646 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1647 echo "$CONFIG_STATUS generated by autoconf version 2.7" 1648 exit 0 ;; 1649 -help | --help | --hel | --he | --h) 1650 echo "\$ac_cs_usage"; exit 0 ;; 1651 *) echo "\$ac_cs_usage"; exit 1 ;; 1652 esac 1653done 1654 1655ac_given_srcdir=$srcdir 1656ac_given_INSTALL="$INSTALL" 1657 1658trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1659EOF 1660cat >> $CONFIG_STATUS <<EOF 1661 1662# Protect against being on the right side of a sed subst in config.status. 1663sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1664 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1665$ac_vpsub 1666$extrasub 1667s%@CFLAGS@%$CFLAGS%g 1668s%@CPPFLAGS@%$CPPFLAGS%g 1669s%@CXXFLAGS@%$CXXFLAGS%g 1670s%@DEFS@%$DEFS%g 1671s%@LDFLAGS@%$LDFLAGS%g 1672s%@LIBS@%$LIBS%g 1673s%@exec_prefix@%$exec_prefix%g 1674s%@prefix@%$prefix%g 1675s%@program_transform_name@%$program_transform_name%g 1676s%@bindir@%$bindir%g 1677s%@sbindir@%$sbindir%g 1678s%@libexecdir@%$libexecdir%g 1679s%@datadir@%$datadir%g 1680s%@sysconfdir@%$sysconfdir%g 1681s%@sharedstatedir@%$sharedstatedir%g 1682s%@localstatedir@%$localstatedir%g 1683s%@libdir@%$libdir%g 1684s%@includedir@%$includedir%g 1685s%@oldincludedir@%$oldincludedir%g 1686s%@infodir@%$infodir%g 1687s%@mandir@%$mandir%g 1688s%@CC@%$CC%g 1689s%@CPP@%$CPP%g 1690s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1691s%@INSTALL_DATA@%$INSTALL_DATA%g 1692s%@RANLIB@%$RANLIB%g 1693s%@TERMLIBS@%$TERMLIBS%g 1694s%@ALLOCA@%$ALLOCA%g 1695 1696CEOF 1697EOF 1698cat >> $CONFIG_STATUS <<EOF 1699 1700CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1701EOF 1702cat >> $CONFIG_STATUS <<\EOF 1703for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1704 # Support "outfile[:infile]", defaulting infile="outfile.in". 1705 case "$ac_file" in 1706 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 1707 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1708 *) ac_file_in="${ac_file}.in" ;; 1709 esac 1710 1711 # Adjust relative srcdir, etc. for subdirectories. 1712 1713 # Remove last slash and all that follows it. Not all systems have dirname. 1714 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1715 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1716 # The file is in a subdirectory. 1717 test ! -d "$ac_dir" && mkdir "$ac_dir" 1718 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1719 # A "../" for each directory in $ac_dir_suffix. 1720 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1721 else 1722 ac_dir_suffix= ac_dots= 1723 fi 1724 1725 case "$ac_given_srcdir" in 1726 .) srcdir=. 1727 if test -z "$ac_dots"; then top_srcdir=. 1728 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1729 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1730 *) # Relative path. 1731 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1732 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1733 esac 1734 1735 case "$ac_given_INSTALL" in 1736 [/$]*) INSTALL="$ac_given_INSTALL" ;; 1737 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1738 esac 1739 echo creating "$ac_file" 1740 rm -f "$ac_file" 1741 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1742 case "$ac_file" in 1743 *Makefile*) ac_comsub="1i\\ 1744# $configure_input" ;; 1745 *) ac_comsub= ;; 1746 esac 1747 sed -e "$ac_comsub 1748s%@configure_input@%$configure_input%g 1749s%@srcdir@%$srcdir%g 1750s%@top_srcdir@%$top_srcdir%g 1751s%@INSTALL@%$INSTALL%g 1752" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file 1753fi; done 1754rm -f conftest.subs 1755 1756 1757 1758exit 0 1759EOF 1760chmod +x $CONFIG_STATUS 1761rm -fr confdefs* $ac_clean_files 1762test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1763 1764