1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 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= 52SHELL=${CONFIG_SHELL-/bin/sh} 53# Maximum number of lines to put in a shell here document. 54ac_max_here_lines=12 55 56ac_prev= 57for ac_option 58do 59 60 # If the previous option needs an argument, assign it. 61 if test -n "$ac_prev"; then 62 eval "$ac_prev=\$ac_option" 63 ac_prev= 64 continue 65 fi 66 67 case "$ac_option" in 68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 69 *) ac_optarg= ;; 70 esac 71 72 # Accept the important Cygnus configure options, so we can diagnose typos. 73 74 case "$ac_option" in 75 76 -bindir | --bindir | --bindi | --bind | --bin | --bi) 77 ac_prev=bindir ;; 78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 79 bindir="$ac_optarg" ;; 80 81 -build | --build | --buil | --bui | --bu) 82 ac_prev=build ;; 83 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 84 build="$ac_optarg" ;; 85 86 -cache-file | --cache-file | --cache-fil | --cache-fi \ 87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88 ac_prev=cache_file ;; 89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 91 cache_file="$ac_optarg" ;; 92 93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 94 ac_prev=datadir ;; 95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 96 | --da=*) 97 datadir="$ac_optarg" ;; 98 99 -disable-* | --disable-*) 100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 101 # Reject names that are not valid shell variable names. 102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 104 fi 105 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 106 eval "enable_${ac_feature}=no" ;; 107 108 -enable-* | --enable-*) 109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 110 # Reject names that are not valid shell variable names. 111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 113 fi 114 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 115 case "$ac_option" in 116 *=*) ;; 117 *) ac_optarg=yes ;; 118 esac 119 eval "enable_${ac_feature}='$ac_optarg'" ;; 120 121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 123 | --exec | --exe | --ex) 124 ac_prev=exec_prefix ;; 125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 127 | --exec=* | --exe=* | --ex=*) 128 exec_prefix="$ac_optarg" ;; 129 130 -gas | --gas | --ga | --g) 131 # Obsolete; use --with-gas. 132 with_gas=yes ;; 133 134 -help | --help | --hel | --he) 135 # Omit some internal or obsolete options to make the list less imposing. 136 # This message is too long to be a string in the A/UX 3.1 sh. 137 cat << EOF 138Usage: configure [options] [host] 139Options: [defaults in brackets after descriptions] 140Configuration: 141 --cache-file=FILE cache test results in FILE 142 --help print this message 143 --no-create do not create output files 144 --quiet, --silent do not print \`checking...' messages 145 --version print the version of autoconf that created configure 146Directory and file names: 147 --prefix=PREFIX install architecture-independent files in PREFIX 148 [$ac_default_prefix] 149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 150 [same as prefix] 151 --bindir=DIR user executables in DIR [EPREFIX/bin] 152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 154 --datadir=DIR read-only architecture-independent data in DIR 155 [PREFIX/share] 156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 157 --sharedstatedir=DIR modifiable architecture-independent data in DIR 158 [PREFIX/com] 159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 160 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 161 --includedir=DIR C header files in DIR [PREFIX/include] 162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 163 --infodir=DIR info documentation in DIR [PREFIX/info] 164 --mandir=DIR man documentation in DIR [PREFIX/man] 165 --srcdir=DIR find the sources in DIR [configure dir or ..] 166 --program-prefix=PREFIX prepend PREFIX to installed program names 167 --program-suffix=SUFFIX append SUFFIX to installed program names 168 --program-transform-name=PROGRAM 169 run sed PROGRAM on installed program names 170EOF 171 cat << EOF 172Host type: 173 --build=BUILD configure for building on BUILD [BUILD=HOST] 174 --host=HOST configure for HOST [guessed] 175 --target=TARGET configure for TARGET [TARGET=HOST] 176Features and packages: 177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 181 --x-includes=DIR X include files are in DIR 182 --x-libraries=DIR X library files are in DIR 183EOF 184 if test -n "$ac_help"; then 185 echo "--enable and --with options recognized:$ac_help" 186 fi 187 exit 0 ;; 188 189 -host | --host | --hos | --ho) 190 ac_prev=host ;; 191 -host=* | --host=* | --hos=* | --ho=*) 192 host="$ac_optarg" ;; 193 194 -includedir | --includedir | --includedi | --included | --include \ 195 | --includ | --inclu | --incl | --inc) 196 ac_prev=includedir ;; 197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 198 | --includ=* | --inclu=* | --incl=* | --inc=*) 199 includedir="$ac_optarg" ;; 200 201 -infodir | --infodir | --infodi | --infod | --info | --inf) 202 ac_prev=infodir ;; 203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 204 infodir="$ac_optarg" ;; 205 206 -libdir | --libdir | --libdi | --libd) 207 ac_prev=libdir ;; 208 -libdir=* | --libdir=* | --libdi=* | --libd=*) 209 libdir="$ac_optarg" ;; 210 211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 212 | --libexe | --libex | --libe) 213 ac_prev=libexecdir ;; 214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 215 | --libexe=* | --libex=* | --libe=*) 216 libexecdir="$ac_optarg" ;; 217 218 -localstatedir | --localstatedir | --localstatedi | --localstated \ 219 | --localstate | --localstat | --localsta | --localst \ 220 | --locals | --local | --loca | --loc | --lo) 221 ac_prev=localstatedir ;; 222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 225 localstatedir="$ac_optarg" ;; 226 227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 228 ac_prev=mandir ;; 229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 230 mandir="$ac_optarg" ;; 231 232 -nfp | --nfp | --nf) 233 # Obsolete; use --without-fp. 234 with_fp=no ;; 235 236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 237 | --no-cr | --no-c) 238 no_create=yes ;; 239 240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 242 no_recursion=yes ;; 243 244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 246 | --oldin | --oldi | --old | --ol | --o) 247 ac_prev=oldincludedir ;; 248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 251 oldincludedir="$ac_optarg" ;; 252 253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 254 ac_prev=prefix ;; 255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 256 prefix="$ac_optarg" ;; 257 258 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 259 | --program-pre | --program-pr | --program-p) 260 ac_prev=program_prefix ;; 261 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 263 program_prefix="$ac_optarg" ;; 264 265 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 266 | --program-suf | --program-su | --program-s) 267 ac_prev=program_suffix ;; 268 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 270 program_suffix="$ac_optarg" ;; 271 272 -program-transform-name | --program-transform-name \ 273 | --program-transform-nam | --program-transform-na \ 274 | --program-transform-n | --program-transform- \ 275 | --program-transform | --program-transfor \ 276 | --program-transfo | --program-transf \ 277 | --program-trans | --program-tran \ 278 | --progr-tra | --program-tr | --program-t) 279 ac_prev=program_transform_name ;; 280 -program-transform-name=* | --program-transform-name=* \ 281 | --program-transform-nam=* | --program-transform-na=* \ 282 | --program-transform-n=* | --program-transform-=* \ 283 | --program-transform=* | --program-transfor=* \ 284 | --program-transfo=* | --program-transf=* \ 285 | --program-trans=* | --program-tran=* \ 286 | --progr-tra=* | --program-tr=* | --program-t=*) 287 program_transform_name="$ac_optarg" ;; 288 289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 290 | -silent | --silent | --silen | --sile | --sil) 291 silent=yes ;; 292 293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 294 ac_prev=sbindir ;; 295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 296 | --sbi=* | --sb=*) 297 sbindir="$ac_optarg" ;; 298 299 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 301 | --sharedst | --shareds | --shared | --share | --shar \ 302 | --sha | --sh) 303 ac_prev=sharedstatedir ;; 304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 307 | --sha=* | --sh=*) 308 sharedstatedir="$ac_optarg" ;; 309 310 -site | --site | --sit) 311 ac_prev=site ;; 312 -site=* | --site=* | --sit=*) 313 site="$ac_optarg" ;; 314 315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 316 ac_prev=srcdir ;; 317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 318 srcdir="$ac_optarg" ;; 319 320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 321 | --syscon | --sysco | --sysc | --sys | --sy) 322 ac_prev=sysconfdir ;; 323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 325 sysconfdir="$ac_optarg" ;; 326 327 -target | --target | --targe | --targ | --tar | --ta | --t) 328 ac_prev=target ;; 329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 330 target="$ac_optarg" ;; 331 332 -v | -verbose | --verbose | --verbos | --verbo | --verb) 333 verbose=yes ;; 334 335 -version | --version | --versio | --versi | --vers) 336 echo "configure generated by autoconf version 2.13" 337 exit 0 ;; 338 339 -with-* | --with-*) 340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 341 # Reject names that are not valid shell variable names. 342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 344 fi 345 ac_package=`echo $ac_package| sed 's/-/_/g'` 346 case "$ac_option" in 347 *=*) ;; 348 *) ac_optarg=yes ;; 349 esac 350 eval "with_${ac_package}='$ac_optarg'" ;; 351 352 -without-* | --without-*) 353 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 354 # Reject names that are not valid shell variable names. 355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 357 fi 358 ac_package=`echo $ac_package| sed 's/-/_/g'` 359 eval "with_${ac_package}=no" ;; 360 361 --x) 362 # Obsolete; use --with-x. 363 with_x=yes ;; 364 365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 366 | --x-incl | --x-inc | --x-in | --x-i) 367 ac_prev=x_includes ;; 368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 370 x_includes="$ac_optarg" ;; 371 372 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 374 ac_prev=x_libraries ;; 375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 377 x_libraries="$ac_optarg" ;; 378 379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 380 ;; 381 382 *) 383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 384 echo "configure: warning: $ac_option: invalid host type" 1>&2 385 fi 386 if test "x$nonopt" != xNONE; then 387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 388 fi 389 nonopt="$ac_option" 390 ;; 391 392 esac 393done 394 395if test -n "$ac_prev"; then 396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 397fi 398 399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 400 401# File descriptor usage: 402# 0 standard input 403# 1 file creation 404# 2 errors and warnings 405# 3 some systems may open it to /dev/tty 406# 4 used on the Kubota Titan 407# 6 checking for... messages and results 408# 5 compiler messages saved in config.log 409if test "$silent" = yes; then 410 exec 6>/dev/null 411else 412 exec 6>&1 413fi 414exec 5>./config.log 415 416echo "\ 417This file contains any messages produced by compilers while 418running configure, to aid debugging if configure makes a mistake. 419" 1>&5 420 421# Strip out --no-create and --no-recursion so they do not pile up. 422# Also quote any args containing shell metacharacters. 423ac_configure_args= 424for ac_arg 425do 426 case "$ac_arg" in 427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 428 | --no-cr | --no-c) ;; 429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 432 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 433 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 434 esac 435done 436 437# NLS nuisances. 438# Only set these to C if already set. These must not be set unconditionally 439# because not all systems understand e.g. LANG=C (notably SCO). 440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 441# Non-C LC_CTYPE values break the ctype check. 442if test "${LANG+set}" = set; then LANG=C; export LANG; fi 443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 445if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 446 447# confdefs.h avoids OS command line length limits that DEFS can exceed. 448rm -rf conftest* confdefs.h 449# AIX cpp loses on an empty file, so make sure it contains at least a newline. 450echo > confdefs.h 451 452# A filename unique to this package, relative to the directory that 453# configure is in, which we can look for to find out if srcdir is correct. 454ac_unique_file=sjeng.c 455 456# Find the source files, if location was not specified. 457if test -z "$srcdir"; then 458 ac_srcdir_defaulted=yes 459 # Try the directory containing this script, then its parent. 460 ac_prog=$0 461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 463 srcdir=$ac_confdir 464 if test ! -r $srcdir/$ac_unique_file; then 465 srcdir=.. 466 fi 467else 468 ac_srcdir_defaulted=no 469fi 470if test ! -r $srcdir/$ac_unique_file; then 471 if test "$ac_srcdir_defaulted" = yes; then 472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 473 else 474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 475 fi 476fi 477srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 478 479# Prefer explicitly selected file to automatically selected ones. 480if test -z "$CONFIG_SITE"; then 481 if test "x$prefix" != xNONE; then 482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 483 else 484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 485 fi 486fi 487for ac_site_file in $CONFIG_SITE; do 488 if test -r "$ac_site_file"; then 489 echo "loading site script $ac_site_file" 490 . "$ac_site_file" 491 fi 492done 493 494if test -r "$cache_file"; then 495 echo "loading cache $cache_file" 496 . $cache_file 497else 498 echo "creating cache $cache_file" 499 > $cache_file 500fi 501 502ac_ext=c 503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 504ac_cpp='$CPP $CPPFLAGS' 505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 506ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 507cross_compiling=$ac_cv_prog_cc_cross 508 509ac_exeext= 510ac_objext=o 511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 514 ac_n= ac_c=' 515' ac_t=' ' 516 else 517 ac_n=-n ac_c= ac_t= 518 fi 519else 520 ac_n= ac_c='\c' ac_t= 521fi 522 523 524 525ac_aux_dir= 526for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 527 if test -f $ac_dir/install-sh; then 528 ac_aux_dir=$ac_dir 529 ac_install_sh="$ac_aux_dir/install-sh -c" 530 break 531 elif test -f $ac_dir/install.sh; then 532 ac_aux_dir=$ac_dir 533 ac_install_sh="$ac_aux_dir/install.sh -c" 534 break 535 fi 536done 537if test -z "$ac_aux_dir"; then 538 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 539fi 540ac_config_guess=$ac_aux_dir/config.guess 541ac_config_sub=$ac_aux_dir/config.sub 542ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 543 544# Find a good install program. We prefer a C program (faster), 545# so one script is as good as another. But avoid the broken or 546# incompatible versions: 547# SysV /etc/install, /usr/sbin/install 548# SunOS /usr/etc/install 549# IRIX /sbin/install 550# AIX /bin/install 551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 552# AFS /usr/afsws/bin/install, which mishandles nonexistent args 553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 554# ./install, which can be erroneously created by make from ./install.sh. 555echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 556echo "configure:557: checking for a BSD compatible install" >&5 557if test -z "$INSTALL"; then 558if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 559 echo $ac_n "(cached) $ac_c" 1>&6 560else 561 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 562 for ac_dir in $PATH; do 563 # Account for people who put trailing slashes in PATH elements. 564 case "$ac_dir/" in 565 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 566 *) 567 # OSF1 and SCO ODT 3.0 have their own names for install. 568 # Don't use installbsd from OSF since it installs stuff as root 569 # by default. 570 for ac_prog in ginstall scoinst install; do 571 if test -f $ac_dir/$ac_prog; then 572 if test $ac_prog = install && 573 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 574 # AIX install. It has an incompatible calling convention. 575 : 576 else 577 ac_cv_path_install="$ac_dir/$ac_prog -c" 578 break 2 579 fi 580 fi 581 done 582 ;; 583 esac 584 done 585 IFS="$ac_save_IFS" 586 587fi 588 if test "${ac_cv_path_install+set}" = set; then 589 INSTALL="$ac_cv_path_install" 590 else 591 # As a last resort, use the slow shell script. We don't cache a 592 # path for INSTALL within a source directory, because that will 593 # break other packages using the cache if that directory is 594 # removed, or if the path is relative. 595 INSTALL="$ac_install_sh" 596 fi 597fi 598echo "$ac_t""$INSTALL" 1>&6 599 600# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 601# It thinks the first close brace ends the variable substitution. 602test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 603 604test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 605 606test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 607 608echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 609echo "configure:610: checking whether build environment is sane" >&5 610# Just in case 611sleep 1 612echo timestamp > conftestfile 613# Do `set' in a subshell so we don't clobber the current shell's 614# arguments. Must try -L first in case configure is actually a 615# symlink; some systems play weird games with the mod time of symlinks 616# (eg FreeBSD returns the mod time of the symlink's containing 617# directory). 618if ( 619 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 620 if test "$*" = "X"; then 621 # -L didn't work. 622 set X `ls -t $srcdir/configure conftestfile` 623 fi 624 if test "$*" != "X $srcdir/configure conftestfile" \ 625 && test "$*" != "X conftestfile $srcdir/configure"; then 626 627 # If neither matched, then we have a broken ls. This can happen 628 # if, for instance, CONFIG_SHELL is bash and it inherits a 629 # broken ls alias from the environment. This has actually 630 # happened. Such a system could not be considered "sane". 631 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 632alias in your environment" 1>&2; exit 1; } 633 fi 634 635 test "$2" = conftestfile 636 ) 637then 638 # Ok. 639 : 640else 641 { echo "configure: error: newly created file is older than distributed files! 642Check your system clock" 1>&2; exit 1; } 643fi 644rm -f conftest* 645echo "$ac_t""yes" 1>&6 646if test "$program_transform_name" = s,x,x,; then 647 program_transform_name= 648else 649 # Double any \ or $. echo might interpret backslashes. 650 cat <<\EOF_SED > conftestsed 651s,\\,\\\\,g; s,\$,$$,g 652EOF_SED 653 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 654 rm -f conftestsed 655fi 656test "$program_prefix" != NONE && 657 program_transform_name="s,^,${program_prefix},; $program_transform_name" 658# Use a double $ so make ignores it. 659test "$program_suffix" != NONE && 660 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 661 662# sed with no file args requires a program. 663test "$program_transform_name" = "" && program_transform_name="s,x,x," 664 665echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 666echo "configure:667: checking whether ${MAKE-make} sets \${MAKE}" >&5 667set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 668if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 669 echo $ac_n "(cached) $ac_c" 1>&6 670else 671 cat > conftestmake <<\EOF 672all: 673 @echo 'ac_maketemp="${MAKE}"' 674EOF 675# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 676eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 677if test -n "$ac_maketemp"; then 678 eval ac_cv_prog_make_${ac_make}_set=yes 679else 680 eval ac_cv_prog_make_${ac_make}_set=no 681fi 682rm -f conftestmake 683fi 684if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 685 echo "$ac_t""yes" 1>&6 686 SET_MAKE= 687else 688 echo "$ac_t""no" 1>&6 689 SET_MAKE="MAKE=${MAKE-make}" 690fi 691 692 693PACKAGE=Sjeng-Free 694 695VERSION=11.2 696 697if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 698 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 699fi 700cat >> confdefs.h <<EOF 701#define PACKAGE "$PACKAGE" 702EOF 703 704cat >> confdefs.h <<EOF 705#define VERSION "$VERSION" 706EOF 707 708 709 710missing_dir=`cd $ac_aux_dir && pwd` 711echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 712echo "configure:713: checking for working aclocal" >&5 713# Run test in a subshell; some versions of sh will print an error if 714# an executable is not found, even if stderr is redirected. 715# Redirect stdin to placate older versions of autoconf. Sigh. 716if (aclocal --version) < /dev/null > /dev/null 2>&1; then 717 ACLOCAL=aclocal 718 echo "$ac_t""found" 1>&6 719else 720 ACLOCAL="$missing_dir/missing aclocal" 721 echo "$ac_t""missing" 1>&6 722fi 723 724echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 725echo "configure:726: checking for working autoconf" >&5 726# Run test in a subshell; some versions of sh will print an error if 727# an executable is not found, even if stderr is redirected. 728# Redirect stdin to placate older versions of autoconf. Sigh. 729if (autoconf --version) < /dev/null > /dev/null 2>&1; then 730 AUTOCONF=autoconf 731 echo "$ac_t""found" 1>&6 732else 733 AUTOCONF="$missing_dir/missing autoconf" 734 echo "$ac_t""missing" 1>&6 735fi 736 737echo $ac_n "checking for working automake""... $ac_c" 1>&6 738echo "configure:739: checking for working automake" >&5 739# Run test in a subshell; some versions of sh will print an error if 740# an executable is not found, even if stderr is redirected. 741# Redirect stdin to placate older versions of autoconf. Sigh. 742if (automake --version) < /dev/null > /dev/null 2>&1; then 743 AUTOMAKE=automake 744 echo "$ac_t""found" 1>&6 745else 746 AUTOMAKE="$missing_dir/missing automake" 747 echo "$ac_t""missing" 1>&6 748fi 749 750echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 751echo "configure:752: checking for working autoheader" >&5 752# Run test in a subshell; some versions of sh will print an error if 753# an executable is not found, even if stderr is redirected. 754# Redirect stdin to placate older versions of autoconf. Sigh. 755if (autoheader --version) < /dev/null > /dev/null 2>&1; then 756 AUTOHEADER=autoheader 757 echo "$ac_t""found" 1>&6 758else 759 AUTOHEADER="$missing_dir/missing autoheader" 760 echo "$ac_t""missing" 1>&6 761fi 762 763echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 764echo "configure:765: checking for working makeinfo" >&5 765# Run test in a subshell; some versions of sh will print an error if 766# an executable is not found, even if stderr is redirected. 767# Redirect stdin to placate older versions of autoconf. Sigh. 768if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 769 MAKEINFO=makeinfo 770 echo "$ac_t""found" 1>&6 771else 772 MAKEINFO="$missing_dir/missing makeinfo" 773 echo "$ac_t""missing" 1>&6 774fi 775 776 777 778 779 780 781# Extract the first word of "gcc", so it can be a program name with args. 782set dummy gcc; ac_word=$2 783echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 784echo "configure:785: checking for $ac_word" >&5 785if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 786 echo $ac_n "(cached) $ac_c" 1>&6 787else 788 if test -n "$CC"; then 789 ac_cv_prog_CC="$CC" # Let the user override the test. 790else 791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 792 ac_dummy="$PATH" 793 for ac_dir in $ac_dummy; do 794 test -z "$ac_dir" && ac_dir=. 795 if test -f $ac_dir/$ac_word; then 796 ac_cv_prog_CC="gcc" 797 break 798 fi 799 done 800 IFS="$ac_save_ifs" 801fi 802fi 803CC="$ac_cv_prog_CC" 804if test -n "$CC"; then 805 echo "$ac_t""$CC" 1>&6 806else 807 echo "$ac_t""no" 1>&6 808fi 809 810if test -z "$CC"; then 811 # Extract the first word of "cc", so it can be a program name with args. 812set dummy cc; ac_word=$2 813echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 814echo "configure:815: checking for $ac_word" >&5 815if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 816 echo $ac_n "(cached) $ac_c" 1>&6 817else 818 if test -n "$CC"; then 819 ac_cv_prog_CC="$CC" # Let the user override the test. 820else 821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 822 ac_prog_rejected=no 823 ac_dummy="$PATH" 824 for ac_dir in $ac_dummy; do 825 test -z "$ac_dir" && ac_dir=. 826 if test -f $ac_dir/$ac_word; then 827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 828 ac_prog_rejected=yes 829 continue 830 fi 831 ac_cv_prog_CC="cc" 832 break 833 fi 834 done 835 IFS="$ac_save_ifs" 836if test $ac_prog_rejected = yes; then 837 # We found a bogon in the path, so make sure we never use it. 838 set dummy $ac_cv_prog_CC 839 shift 840 if test $# -gt 0; then 841 # We chose a different compiler from the bogus one. 842 # However, it has the same basename, so the bogon will be chosen 843 # first if we set CC to just the basename; use the full file name. 844 shift 845 set dummy "$ac_dir/$ac_word" "$@" 846 shift 847 ac_cv_prog_CC="$@" 848 fi 849fi 850fi 851fi 852CC="$ac_cv_prog_CC" 853if test -n "$CC"; then 854 echo "$ac_t""$CC" 1>&6 855else 856 echo "$ac_t""no" 1>&6 857fi 858 859 if test -z "$CC"; then 860 case "`uname -s`" in 861 *win32* | *WIN32*) 862 # Extract the first word of "cl", so it can be a program name with args. 863set dummy cl; ac_word=$2 864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 865echo "configure:866: checking for $ac_word" >&5 866if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 867 echo $ac_n "(cached) $ac_c" 1>&6 868else 869 if test -n "$CC"; then 870 ac_cv_prog_CC="$CC" # Let the user override the test. 871else 872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 873 ac_dummy="$PATH" 874 for ac_dir in $ac_dummy; do 875 test -z "$ac_dir" && ac_dir=. 876 if test -f $ac_dir/$ac_word; then 877 ac_cv_prog_CC="cl" 878 break 879 fi 880 done 881 IFS="$ac_save_ifs" 882fi 883fi 884CC="$ac_cv_prog_CC" 885if test -n "$CC"; then 886 echo "$ac_t""$CC" 1>&6 887else 888 echo "$ac_t""no" 1>&6 889fi 890 ;; 891 esac 892 fi 893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 894fi 895 896echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 897echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 898 899ac_ext=c 900# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 901ac_cpp='$CPP $CPPFLAGS' 902ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 903ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 904cross_compiling=$ac_cv_prog_cc_cross 905 906cat > conftest.$ac_ext << EOF 907 908#line 909 "configure" 909#include "confdefs.h" 910 911main(){return(0);} 912EOF 913if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 914 ac_cv_prog_cc_works=yes 915 # If we can't run a trivial program, we are probably using a cross compiler. 916 if (./conftest; exit) 2>/dev/null; then 917 ac_cv_prog_cc_cross=no 918 else 919 ac_cv_prog_cc_cross=yes 920 fi 921else 922 echo "configure: failed program was:" >&5 923 cat conftest.$ac_ext >&5 924 ac_cv_prog_cc_works=no 925fi 926rm -fr conftest* 927ac_ext=c 928# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 929ac_cpp='$CPP $CPPFLAGS' 930ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 931ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 932cross_compiling=$ac_cv_prog_cc_cross 933 934echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 935if test $ac_cv_prog_cc_works = no; then 936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 937fi 938echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 939echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 940echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 941cross_compiling=$ac_cv_prog_cc_cross 942 943echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 944echo "configure:945: checking whether we are using GNU C" >&5 945if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 946 echo $ac_n "(cached) $ac_c" 1>&6 947else 948 cat > conftest.c <<EOF 949#ifdef __GNUC__ 950 yes; 951#endif 952EOF 953if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 954 ac_cv_prog_gcc=yes 955else 956 ac_cv_prog_gcc=no 957fi 958fi 959 960echo "$ac_t""$ac_cv_prog_gcc" 1>&6 961 962if test $ac_cv_prog_gcc = yes; then 963 GCC=yes 964else 965 GCC= 966fi 967 968ac_test_CFLAGS="${CFLAGS+set}" 969ac_save_CFLAGS="$CFLAGS" 970CFLAGS= 971echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 972echo "configure:973: checking whether ${CC-cc} accepts -g" >&5 973if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 974 echo $ac_n "(cached) $ac_c" 1>&6 975else 976 echo 'void f(){}' > conftest.c 977if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 978 ac_cv_prog_cc_g=yes 979else 980 ac_cv_prog_cc_g=no 981fi 982rm -f conftest* 983 984fi 985 986echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 987if test "$ac_test_CFLAGS" = set; then 988 CFLAGS="$ac_save_CFLAGS" 989elif test $ac_cv_prog_cc_g = yes; then 990 if test "$GCC" = yes; then 991 CFLAGS="-g -O2" 992 else 993 CFLAGS="-g" 994 fi 995else 996 if test "$GCC" = yes; then 997 CFLAGS="-O2" 998 else 999 CFLAGS= 1000 fi 1001fi 1002 1003for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1004do 1005# Extract the first word of "$ac_prog", so it can be a program name with args. 1006set dummy $ac_prog; ac_word=$2 1007echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1008echo "configure:1009: checking for $ac_word" >&5 1009if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1010 echo $ac_n "(cached) $ac_c" 1>&6 1011else 1012 if test -n "$CXX"; then 1013 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1014else 1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1016 ac_dummy="$PATH" 1017 for ac_dir in $ac_dummy; do 1018 test -z "$ac_dir" && ac_dir=. 1019 if test -f $ac_dir/$ac_word; then 1020 ac_cv_prog_CXX="$ac_prog" 1021 break 1022 fi 1023 done 1024 IFS="$ac_save_ifs" 1025fi 1026fi 1027CXX="$ac_cv_prog_CXX" 1028if test -n "$CXX"; then 1029 echo "$ac_t""$CXX" 1>&6 1030else 1031 echo "$ac_t""no" 1>&6 1032fi 1033 1034test -n "$CXX" && break 1035done 1036test -n "$CXX" || CXX="gcc" 1037 1038 1039echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1040echo "configure:1041: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1041 1042ac_ext=C 1043# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1044ac_cpp='$CXXCPP $CPPFLAGS' 1045ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1046ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1047cross_compiling=$ac_cv_prog_cxx_cross 1048 1049cat > conftest.$ac_ext << EOF 1050 1051#line 1052 "configure" 1052#include "confdefs.h" 1053 1054int main(){return(0);} 1055EOF 1056if { (eval echo configure:1057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1057 ac_cv_prog_cxx_works=yes 1058 # If we can't run a trivial program, we are probably using a cross compiler. 1059 if (./conftest; exit) 2>/dev/null; then 1060 ac_cv_prog_cxx_cross=no 1061 else 1062 ac_cv_prog_cxx_cross=yes 1063 fi 1064else 1065 echo "configure: failed program was:" >&5 1066 cat conftest.$ac_ext >&5 1067 ac_cv_prog_cxx_works=no 1068fi 1069rm -fr conftest* 1070ac_ext=c 1071# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1072ac_cpp='$CPP $CPPFLAGS' 1073ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1074ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1075cross_compiling=$ac_cv_prog_cc_cross 1076 1077echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1078if test $ac_cv_prog_cxx_works = no; then 1079 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1080fi 1081echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1082echo "configure:1083: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1083echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1084cross_compiling=$ac_cv_prog_cxx_cross 1085 1086echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1087echo "configure:1088: checking whether we are using GNU C++" >&5 1088if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1089 echo $ac_n "(cached) $ac_c" 1>&6 1090else 1091 cat > conftest.C <<EOF 1092#ifdef __GNUC__ 1093 yes; 1094#endif 1095EOF 1096if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1097 ac_cv_prog_gxx=yes 1098else 1099 ac_cv_prog_gxx=no 1100fi 1101fi 1102 1103echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1104 1105if test $ac_cv_prog_gxx = yes; then 1106 GXX=yes 1107else 1108 GXX= 1109fi 1110 1111ac_test_CXXFLAGS="${CXXFLAGS+set}" 1112ac_save_CXXFLAGS="$CXXFLAGS" 1113CXXFLAGS= 1114echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1115echo "configure:1116: checking whether ${CXX-g++} accepts -g" >&5 1116if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1117 echo $ac_n "(cached) $ac_c" 1>&6 1118else 1119 echo 'void f(){}' > conftest.cc 1120if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1121 ac_cv_prog_cxx_g=yes 1122else 1123 ac_cv_prog_cxx_g=no 1124fi 1125rm -f conftest* 1126 1127fi 1128 1129echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1130if test "$ac_test_CXXFLAGS" = set; then 1131 CXXFLAGS="$ac_save_CXXFLAGS" 1132elif test $ac_cv_prog_cxx_g = yes; then 1133 if test "$GXX" = yes; then 1134 CXXFLAGS="-g -O2" 1135 else 1136 CXXFLAGS="-g" 1137 fi 1138else 1139 if test "$GXX" = yes; then 1140 CXXFLAGS="-O2" 1141 else 1142 CXXFLAGS= 1143 fi 1144fi 1145 1146 1147echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 1148echo "configure:1149: checking for gdbm_open in -lgdbm" >&5 1149ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` 1150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1151 echo $ac_n "(cached) $ac_c" 1>&6 1152else 1153 ac_save_LIBS="$LIBS" 1154LIBS="-lgdbm $LIBS" 1155cat > conftest.$ac_ext <<EOF 1156#line 1157 "configure" 1157#include "confdefs.h" 1158/* Override any gcc2 internal prototype to avoid an error. */ 1159/* We use char because int might match the return type of a gcc2 1160 builtin and then its argument prototype would still apply. */ 1161char gdbm_open(); 1162 1163int main() { 1164gdbm_open() 1165; return 0; } 1166EOF 1167if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1168 rm -rf conftest* 1169 eval "ac_cv_lib_$ac_lib_var=yes" 1170else 1171 echo "configure: failed program was:" >&5 1172 cat conftest.$ac_ext >&5 1173 rm -rf conftest* 1174 eval "ac_cv_lib_$ac_lib_var=no" 1175fi 1176rm -f conftest* 1177LIBS="$ac_save_LIBS" 1178 1179fi 1180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1181 echo "$ac_t""yes" 1>&6 1182 ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1184 cat >> confdefs.h <<EOF 1185#define $ac_tr_lib 1 1186EOF 1187 1188 LIBS="-lgdbm $LIBS" 1189 1190else 1191 echo "$ac_t""no" 1>&6 1192fi 1193 1194 1195echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 1196echo "configure:1197: checking for floor in -lm" >&5 1197ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'` 1198if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1199 echo $ac_n "(cached) $ac_c" 1>&6 1200else 1201 ac_save_LIBS="$LIBS" 1202LIBS="-lm $LIBS" 1203cat > conftest.$ac_ext <<EOF 1204#line 1205 "configure" 1205#include "confdefs.h" 1206/* Override any gcc2 internal prototype to avoid an error. */ 1207/* We use char because int might match the return type of a gcc2 1208 builtin and then its argument prototype would still apply. */ 1209char floor(); 1210 1211int main() { 1212floor() 1213; return 0; } 1214EOF 1215if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1216 rm -rf conftest* 1217 eval "ac_cv_lib_$ac_lib_var=yes" 1218else 1219 echo "configure: failed program was:" >&5 1220 cat conftest.$ac_ext >&5 1221 rm -rf conftest* 1222 eval "ac_cv_lib_$ac_lib_var=no" 1223fi 1224rm -f conftest* 1225LIBS="$ac_save_LIBS" 1226 1227fi 1228if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1229 echo "$ac_t""yes" 1>&6 1230 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1232 cat >> confdefs.h <<EOF 1233#define $ac_tr_lib 1 1234EOF 1235 1236 LIBS="-lm $LIBS" 1237 1238else 1239 echo "$ac_t""no" 1>&6 1240fi 1241 1242 1243echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1244echo "configure:1245: checking how to run the C preprocessor" >&5 1245# On Suns, sometimes $CPP names a directory. 1246if test -n "$CPP" && test -d "$CPP"; then 1247 CPP= 1248fi 1249if test -z "$CPP"; then 1250if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1251 echo $ac_n "(cached) $ac_c" 1>&6 1252else 1253 # This must be in double quotes, not single quotes, because CPP may get 1254 # substituted into the Makefile and "${CC-cc}" will confuse make. 1255 CPP="${CC-cc} -E" 1256 # On the NeXT, cc -E runs the code through the compiler's parser, 1257 # not just through cpp. 1258 cat > conftest.$ac_ext <<EOF 1259#line 1260 "configure" 1260#include "confdefs.h" 1261#include <assert.h> 1262Syntax Error 1263EOF 1264ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1265{ (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1266ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1267if test -z "$ac_err"; then 1268 : 1269else 1270 echo "$ac_err" >&5 1271 echo "configure: failed program was:" >&5 1272 cat conftest.$ac_ext >&5 1273 rm -rf conftest* 1274 CPP="${CC-cc} -E -traditional-cpp" 1275 cat > conftest.$ac_ext <<EOF 1276#line 1277 "configure" 1277#include "confdefs.h" 1278#include <assert.h> 1279Syntax Error 1280EOF 1281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1282{ (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1284if test -z "$ac_err"; then 1285 : 1286else 1287 echo "$ac_err" >&5 1288 echo "configure: failed program was:" >&5 1289 cat conftest.$ac_ext >&5 1290 rm -rf conftest* 1291 CPP="${CC-cc} -nologo -E" 1292 cat > conftest.$ac_ext <<EOF 1293#line 1294 "configure" 1294#include "confdefs.h" 1295#include <assert.h> 1296Syntax Error 1297EOF 1298ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1299{ (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1300ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1301if test -z "$ac_err"; then 1302 : 1303else 1304 echo "$ac_err" >&5 1305 echo "configure: failed program was:" >&5 1306 cat conftest.$ac_ext >&5 1307 rm -rf conftest* 1308 CPP=/lib/cpp 1309fi 1310rm -f conftest* 1311fi 1312rm -f conftest* 1313fi 1314rm -f conftest* 1315 ac_cv_prog_CPP="$CPP" 1316fi 1317 CPP="$ac_cv_prog_CPP" 1318else 1319 ac_cv_prog_CPP="$CPP" 1320fi 1321echo "$ac_t""$CPP" 1>&6 1322 1323echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1324echo "configure:1325: checking for ANSI C header files" >&5 1325if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1326 echo $ac_n "(cached) $ac_c" 1>&6 1327else 1328 cat > conftest.$ac_ext <<EOF 1329#line 1330 "configure" 1330#include "confdefs.h" 1331#include <stdlib.h> 1332#include <stdarg.h> 1333#include <string.h> 1334#include <float.h> 1335EOF 1336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1337{ (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1338ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1339if test -z "$ac_err"; then 1340 rm -rf conftest* 1341 ac_cv_header_stdc=yes 1342else 1343 echo "$ac_err" >&5 1344 echo "configure: failed program was:" >&5 1345 cat conftest.$ac_ext >&5 1346 rm -rf conftest* 1347 ac_cv_header_stdc=no 1348fi 1349rm -f conftest* 1350 1351if test $ac_cv_header_stdc = yes; then 1352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1353cat > conftest.$ac_ext <<EOF 1354#line 1355 "configure" 1355#include "confdefs.h" 1356#include <string.h> 1357EOF 1358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1359 egrep "memchr" >/dev/null 2>&1; then 1360 : 1361else 1362 rm -rf conftest* 1363 ac_cv_header_stdc=no 1364fi 1365rm -f conftest* 1366 1367fi 1368 1369if test $ac_cv_header_stdc = yes; then 1370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1371cat > conftest.$ac_ext <<EOF 1372#line 1373 "configure" 1373#include "confdefs.h" 1374#include <stdlib.h> 1375EOF 1376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1377 egrep "free" >/dev/null 2>&1; then 1378 : 1379else 1380 rm -rf conftest* 1381 ac_cv_header_stdc=no 1382fi 1383rm -f conftest* 1384 1385fi 1386 1387if test $ac_cv_header_stdc = yes; then 1388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1389if test "$cross_compiling" = yes; then 1390 : 1391else 1392 cat > conftest.$ac_ext <<EOF 1393#line 1394 "configure" 1394#include "confdefs.h" 1395#include <ctype.h> 1396#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1397#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1398#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1399int main () { int i; for (i = 0; i < 256; i++) 1400if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1401exit (0); } 1402 1403EOF 1404if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1405then 1406 : 1407else 1408 echo "configure: failed program was:" >&5 1409 cat conftest.$ac_ext >&5 1410 rm -fr conftest* 1411 ac_cv_header_stdc=no 1412fi 1413rm -fr conftest* 1414fi 1415 1416fi 1417fi 1418 1419echo "$ac_t""$ac_cv_header_stdc" 1>&6 1420if test $ac_cv_header_stdc = yes; then 1421 cat >> confdefs.h <<\EOF 1422#define STDC_HEADERS 1 1423EOF 1424 1425fi 1426 1427for ac_hdr in sys/time.h sys/timeb.h unistd.h 1428do 1429ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1430echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1431echo "configure:1432: checking for $ac_hdr" >&5 1432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1433 echo $ac_n "(cached) $ac_c" 1>&6 1434else 1435 cat > conftest.$ac_ext <<EOF 1436#line 1437 "configure" 1437#include "confdefs.h" 1438#include <$ac_hdr> 1439EOF 1440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1441{ (eval echo configure:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1443if test -z "$ac_err"; then 1444 rm -rf conftest* 1445 eval "ac_cv_header_$ac_safe=yes" 1446else 1447 echo "$ac_err" >&5 1448 echo "configure: failed program was:" >&5 1449 cat conftest.$ac_ext >&5 1450 rm -rf conftest* 1451 eval "ac_cv_header_$ac_safe=no" 1452fi 1453rm -f conftest* 1454fi 1455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1456 echo "$ac_t""yes" 1>&6 1457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1458 cat >> confdefs.h <<EOF 1459#define $ac_tr_hdr 1 1460EOF 1461 1462else 1463 echo "$ac_t""no" 1>&6 1464fi 1465done 1466 1467 1468echo $ac_n "checking for working const""... $ac_c" 1>&6 1469echo "configure:1470: checking for working const" >&5 1470if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1471 echo $ac_n "(cached) $ac_c" 1>&6 1472else 1473 cat > conftest.$ac_ext <<EOF 1474#line 1475 "configure" 1475#include "confdefs.h" 1476 1477int main() { 1478 1479/* Ultrix mips cc rejects this. */ 1480typedef int charset[2]; const charset x; 1481/* SunOS 4.1.1 cc rejects this. */ 1482char const *const *ccp; 1483char **p; 1484/* NEC SVR4.0.2 mips cc rejects this. */ 1485struct point {int x, y;}; 1486static struct point const zero = {0,0}; 1487/* AIX XL C 1.02.0.0 rejects this. 1488 It does not let you subtract one const X* pointer from another in an arm 1489 of an if-expression whose if-part is not a constant expression */ 1490const char *g = "string"; 1491ccp = &g + (g ? g-g : 0); 1492/* HPUX 7.0 cc rejects these. */ 1493++ccp; 1494p = (char**) ccp; 1495ccp = (char const *const *) p; 1496{ /* SCO 3.2v4 cc rejects this. */ 1497 char *t; 1498 char const *s = 0 ? (char *) 0 : (char const *) 0; 1499 1500 *t++ = 0; 1501} 1502{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1503 int x[] = {25, 17}; 1504 const int *foo = &x[0]; 1505 ++foo; 1506} 1507{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1508 typedef const int *iptr; 1509 iptr p = 0; 1510 ++p; 1511} 1512{ /* AIX XL C 1.02.0.0 rejects this saying 1513 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1514 struct s { int j; const int *ap[3]; }; 1515 struct s *b; b->j = 5; 1516} 1517{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1518 const int foo = 10; 1519} 1520 1521; return 0; } 1522EOF 1523if { (eval echo configure:1524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1524 rm -rf conftest* 1525 ac_cv_c_const=yes 1526else 1527 echo "configure: failed program was:" >&5 1528 cat conftest.$ac_ext >&5 1529 rm -rf conftest* 1530 ac_cv_c_const=no 1531fi 1532rm -f conftest* 1533fi 1534 1535echo "$ac_t""$ac_cv_c_const" 1>&6 1536if test $ac_cv_c_const = no; then 1537 cat >> confdefs.h <<\EOF 1538#define const 1539EOF 1540 1541fi 1542 1543echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1544echo "configure:1545: checking whether time.h and sys/time.h may both be included" >&5 1545if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1546 echo $ac_n "(cached) $ac_c" 1>&6 1547else 1548 cat > conftest.$ac_ext <<EOF 1549#line 1550 "configure" 1550#include "confdefs.h" 1551#include <sys/types.h> 1552#include <sys/time.h> 1553#include <time.h> 1554int main() { 1555struct tm *tp; 1556; return 0; } 1557EOF 1558if { (eval echo configure:1559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1559 rm -rf conftest* 1560 ac_cv_header_time=yes 1561else 1562 echo "configure: failed program was:" >&5 1563 cat conftest.$ac_ext >&5 1564 rm -rf conftest* 1565 ac_cv_header_time=no 1566fi 1567rm -f conftest* 1568fi 1569 1570echo "$ac_t""$ac_cv_header_time" 1>&6 1571if test $ac_cv_header_time = yes; then 1572 cat >> confdefs.h <<\EOF 1573#define TIME_WITH_SYS_TIME 1 1574EOF 1575 1576fi 1577 1578 1579echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 1580echo "configure:1581: checking return type of signal handlers" >&5 1581if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1582 echo $ac_n "(cached) $ac_c" 1>&6 1583else 1584 cat > conftest.$ac_ext <<EOF 1585#line 1586 "configure" 1586#include "confdefs.h" 1587#include <sys/types.h> 1588#include <signal.h> 1589#ifdef signal 1590#undef signal 1591#endif 1592#ifdef __cplusplus 1593extern "C" void (*signal (int, void (*)(int)))(int); 1594#else 1595void (*signal ()) (); 1596#endif 1597 1598int main() { 1599int i; 1600; return 0; } 1601EOF 1602if { (eval echo configure:1603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1603 rm -rf conftest* 1604 ac_cv_type_signal=void 1605else 1606 echo "configure: failed program was:" >&5 1607 cat conftest.$ac_ext >&5 1608 rm -rf conftest* 1609 ac_cv_type_signal=int 1610fi 1611rm -f conftest* 1612fi 1613 1614echo "$ac_t""$ac_cv_type_signal" 1>&6 1615cat >> confdefs.h <<EOF 1616#define RETSIGTYPE $ac_cv_type_signal 1617EOF 1618 1619 1620for ac_func in ftime select strstr gettimeofday 1621do 1622echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1623echo "configure:1624: checking for $ac_func" >&5 1624if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1625 echo $ac_n "(cached) $ac_c" 1>&6 1626else 1627 cat > conftest.$ac_ext <<EOF 1628#line 1629 "configure" 1629#include "confdefs.h" 1630/* System header to define __stub macros and hopefully few prototypes, 1631 which can conflict with char $ac_func(); below. */ 1632#include <assert.h> 1633/* Override any gcc2 internal prototype to avoid an error. */ 1634/* We use char because int might match the return type of a gcc2 1635 builtin and then its argument prototype would still apply. */ 1636char $ac_func(); 1637 1638int main() { 1639 1640/* The GNU C library defines this for functions which it implements 1641 to always fail with ENOSYS. Some functions are actually named 1642 something starting with __ and the normal name is an alias. */ 1643#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1644choke me 1645#else 1646$ac_func(); 1647#endif 1648 1649; return 0; } 1650EOF 1651if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1652 rm -rf conftest* 1653 eval "ac_cv_func_$ac_func=yes" 1654else 1655 echo "configure: failed program was:" >&5 1656 cat conftest.$ac_ext >&5 1657 rm -rf conftest* 1658 eval "ac_cv_func_$ac_func=no" 1659fi 1660rm -f conftest* 1661fi 1662 1663if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1664 echo "$ac_t""yes" 1>&6 1665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1666 cat >> confdefs.h <<EOF 1667#define $ac_tr_func 1 1668EOF 1669 1670else 1671 echo "$ac_t""no" 1>&6 1672fi 1673done 1674 1675 1676trap '' 1 2 15 1677cat > confcache <<\EOF 1678# This file is a shell script that caches the results of configure 1679# tests run on this system so they can be shared between configure 1680# scripts and configure runs. It is not useful on other systems. 1681# If it contains results you don't want to keep, you may remove or edit it. 1682# 1683# By default, configure uses ./config.cache as the cache file, 1684# creating it if it does not exist already. You can give configure 1685# the --cache-file=FILE option to use a different cache file; that is 1686# what configure does when it calls configure scripts in 1687# subdirectories, so they share the cache. 1688# Giving --cache-file=/dev/null disables caching, for debugging configure. 1689# config.status only pays attention to the cache file if you give it the 1690# --recheck option to rerun configure. 1691# 1692EOF 1693# The following way of writing the cache mishandles newlines in values, 1694# but we know of no workaround that is simple, portable, and efficient. 1695# So, don't put newlines in cache variables' values. 1696# Ultrix sh set writes to stderr and can't be redirected directly, 1697# and sets the high bit in the cache file unless we assign to the vars. 1698(set) 2>&1 | 1699 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1700 *ac_space=\ *) 1701 # `set' does not quote correctly, so add quotes (double-quote substitution 1702 # turns \\\\ into \\, and sed turns \\ into \). 1703 sed -n \ 1704 -e "s/'/'\\\\''/g" \ 1705 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1706 ;; 1707 *) 1708 # `set' quotes correctly as required by POSIX, so do not add quotes. 1709 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1710 ;; 1711 esac >> confcache 1712if cmp -s $cache_file confcache; then 1713 : 1714else 1715 if test -w $cache_file; then 1716 echo "updating cache $cache_file" 1717 cat confcache > $cache_file 1718 else 1719 echo "not updating unwritable cache $cache_file" 1720 fi 1721fi 1722rm -f confcache 1723 1724trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1725 1726test "x$prefix" = xNONE && prefix=$ac_default_prefix 1727# Let make expand exec_prefix. 1728test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1729 1730# Any assignment to VPATH causes Sun make to only execute 1731# the first set of double-colon rules, so remove it if not needed. 1732# If there is a colon in the path, we need to keep it. 1733if test "x$srcdir" = x.; then 1734 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1735fi 1736 1737trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1738 1739DEFS=-DHAVE_CONFIG_H 1740 1741# Without the "./", some shells look in PATH for config.status. 1742: ${CONFIG_STATUS=./config.status} 1743 1744echo creating $CONFIG_STATUS 1745rm -f $CONFIG_STATUS 1746cat > $CONFIG_STATUS <<EOF 1747#! /bin/sh 1748# Generated automatically by configure. 1749# Run this file to recreate the current configuration. 1750# This directory was configured as follows, 1751# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1752# 1753# $0 $ac_configure_args 1754# 1755# Compiler output produced by configure, useful for debugging 1756# configure, is in ./config.log if it exists. 1757 1758ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1759for ac_option 1760do 1761 case "\$ac_option" in 1762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1763 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1764 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1765 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1766 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1767 exit 0 ;; 1768 -help | --help | --hel | --he | --h) 1769 echo "\$ac_cs_usage"; exit 0 ;; 1770 *) echo "\$ac_cs_usage"; exit 1 ;; 1771 esac 1772done 1773 1774ac_given_srcdir=$srcdir 1775ac_given_INSTALL="$INSTALL" 1776 1777trap 'rm -fr `echo "Makefile tests/Makefile books/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1778EOF 1779cat >> $CONFIG_STATUS <<EOF 1780 1781# Protect against being on the right side of a sed subst in config.status. 1782sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1783 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1784$ac_vpsub 1785$extrasub 1786s%@SHELL@%$SHELL%g 1787s%@CFLAGS@%$CFLAGS%g 1788s%@CPPFLAGS@%$CPPFLAGS%g 1789s%@CXXFLAGS@%$CXXFLAGS%g 1790s%@FFLAGS@%$FFLAGS%g 1791s%@DEFS@%$DEFS%g 1792s%@LDFLAGS@%$LDFLAGS%g 1793s%@LIBS@%$LIBS%g 1794s%@exec_prefix@%$exec_prefix%g 1795s%@prefix@%$prefix%g 1796s%@program_transform_name@%$program_transform_name%g 1797s%@bindir@%$bindir%g 1798s%@sbindir@%$sbindir%g 1799s%@libexecdir@%$libexecdir%g 1800s%@datadir@%$datadir%g 1801s%@sysconfdir@%$sysconfdir%g 1802s%@sharedstatedir@%$sharedstatedir%g 1803s%@localstatedir@%$localstatedir%g 1804s%@libdir@%$libdir%g 1805s%@includedir@%$includedir%g 1806s%@oldincludedir@%$oldincludedir%g 1807s%@infodir@%$infodir%g 1808s%@mandir@%$mandir%g 1809s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1810s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 1811s%@INSTALL_DATA@%$INSTALL_DATA%g 1812s%@PACKAGE@%$PACKAGE%g 1813s%@VERSION@%$VERSION%g 1814s%@ACLOCAL@%$ACLOCAL%g 1815s%@AUTOCONF@%$AUTOCONF%g 1816s%@AUTOMAKE@%$AUTOMAKE%g 1817s%@AUTOHEADER@%$AUTOHEADER%g 1818s%@MAKEINFO@%$MAKEINFO%g 1819s%@SET_MAKE@%$SET_MAKE%g 1820s%@CC@%$CC%g 1821s%@CXX@%$CXX%g 1822s%@CPP@%$CPP%g 1823 1824CEOF 1825EOF 1826 1827cat >> $CONFIG_STATUS <<\EOF 1828 1829# Split the substitutions into bite-sized pieces for seds with 1830# small command number limits, like on Digital OSF/1 and HP-UX. 1831ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1832ac_file=1 # Number of current file. 1833ac_beg=1 # First line for current file. 1834ac_end=$ac_max_sed_cmds # Line after last line for current file. 1835ac_more_lines=: 1836ac_sed_cmds="" 1837while $ac_more_lines; do 1838 if test $ac_beg -gt 1; then 1839 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1840 else 1841 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1842 fi 1843 if test ! -s conftest.s$ac_file; then 1844 ac_more_lines=false 1845 rm -f conftest.s$ac_file 1846 else 1847 if test -z "$ac_sed_cmds"; then 1848 ac_sed_cmds="sed -f conftest.s$ac_file" 1849 else 1850 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1851 fi 1852 ac_file=`expr $ac_file + 1` 1853 ac_beg=$ac_end 1854 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1855 fi 1856done 1857if test -z "$ac_sed_cmds"; then 1858 ac_sed_cmds=cat 1859fi 1860EOF 1861 1862cat >> $CONFIG_STATUS <<EOF 1863 1864CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/Makefile books/Makefile"} 1865EOF 1866cat >> $CONFIG_STATUS <<\EOF 1867for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1869 case "$ac_file" in 1870 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1871 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1872 *) ac_file_in="${ac_file}.in" ;; 1873 esac 1874 1875 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1876 1877 # Remove last slash and all that follows it. Not all systems have dirname. 1878 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1879 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1880 # The file is in a subdirectory. 1881 test ! -d "$ac_dir" && mkdir "$ac_dir" 1882 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1883 # A "../" for each directory in $ac_dir_suffix. 1884 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1885 else 1886 ac_dir_suffix= ac_dots= 1887 fi 1888 1889 case "$ac_given_srcdir" in 1890 .) srcdir=. 1891 if test -z "$ac_dots"; then top_srcdir=. 1892 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1893 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1894 *) # Relative path. 1895 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1896 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1897 esac 1898 1899 case "$ac_given_INSTALL" in 1900 [/$]*) INSTALL="$ac_given_INSTALL" ;; 1901 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1902 esac 1903 1904 echo creating "$ac_file" 1905 rm -f "$ac_file" 1906 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1907 case "$ac_file" in 1908 *Makefile*) ac_comsub="1i\\ 1909# $configure_input" ;; 1910 *) ac_comsub= ;; 1911 esac 1912 1913 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1914 sed -e "$ac_comsub 1915s%@configure_input@%$configure_input%g 1916s%@srcdir@%$srcdir%g 1917s%@top_srcdir@%$top_srcdir%g 1918s%@INSTALL@%$INSTALL%g 1919" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1920fi; done 1921rm -f conftest.s* 1922 1923# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1924# NAME is the cpp macro being defined and VALUE is the value it is being given. 1925# 1926# ac_d sets the value in "#define NAME VALUE" lines. 1927ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1928ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1929ac_dC='\3' 1930ac_dD='%g' 1931# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1932ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1933ac_uB='\([ ]\)%\1#\2define\3' 1934ac_uC=' ' 1935ac_uD='\4%g' 1936# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1937ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1938ac_eB='$%\1#\2define\3' 1939ac_eC=' ' 1940ac_eD='%g' 1941 1942if test "${CONFIG_HEADERS+set}" != set; then 1943EOF 1944cat >> $CONFIG_STATUS <<EOF 1945 CONFIG_HEADERS="config.h" 1946EOF 1947cat >> $CONFIG_STATUS <<\EOF 1948fi 1949for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1951 case "$ac_file" in 1952 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1953 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1954 *) ac_file_in="${ac_file}.in" ;; 1955 esac 1956 1957 echo creating $ac_file 1958 1959 rm -f conftest.frag conftest.in conftest.out 1960 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1961 cat $ac_file_inputs > conftest.in 1962 1963EOF 1964 1965# Transform confdefs.h into a sed script conftest.vals that substitutes 1966# the proper values into config.h.in to produce config.h. And first: 1967# Protect against being on the right side of a sed subst in config.status. 1968# Protect against being in an unquoted here document in config.status. 1969rm -f conftest.vals 1970cat > conftest.hdr <<\EOF 1971s/[\\&%]/\\&/g 1972s%[\\$`]%\\&%g 1973s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1974s%ac_d%ac_u%gp 1975s%ac_u%ac_e%gp 1976EOF 1977sed -n -f conftest.hdr confdefs.h > conftest.vals 1978rm -f conftest.hdr 1979 1980# This sed command replaces #undef with comments. This is necessary, for 1981# example, in the case of _POSIX_SOURCE, which is predefined and required 1982# on some systems where configure will not decide to define it. 1983cat >> conftest.vals <<\EOF 1984s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1985EOF 1986 1987# Break up conftest.vals because some shells have a limit on 1988# the size of here documents, and old seds have small limits too. 1989 1990rm -f conftest.tail 1991while : 1992do 1993 ac_lines=`grep -c . conftest.vals` 1994 # grep -c gives empty output for an empty file on some AIX systems. 1995 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1996 # Write a limited-size here document to conftest.frag. 1997 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1998 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1999 echo 'CEOF 2000 sed -f conftest.frag conftest.in > conftest.out 2001 rm -f conftest.in 2002 mv conftest.out conftest.in 2003' >> $CONFIG_STATUS 2004 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2005 rm -f conftest.vals 2006 mv conftest.tail conftest.vals 2007done 2008rm -f conftest.vals 2009 2010cat >> $CONFIG_STATUS <<\EOF 2011 rm -f conftest.frag conftest.h 2012 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2013 cat conftest.in >> conftest.h 2014 rm -f conftest.in 2015 if cmp -s $ac_file conftest.h 2>/dev/null; then 2016 echo "$ac_file is unchanged" 2017 rm -f conftest.h 2018 else 2019 # Remove last slash and all that follows it. Not all systems have dirname. 2020 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2021 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2022 # The file is in a subdirectory. 2023 test ! -d "$ac_dir" && mkdir "$ac_dir" 2024 fi 2025 rm -f $ac_file 2026 mv conftest.h $ac_file 2027 fi 2028fi; done 2029 2030EOF 2031cat >> $CONFIG_STATUS <<EOF 2032 2033 2034EOF 2035cat >> $CONFIG_STATUS <<\EOF 2036test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 2037 2038exit 0 2039EOF 2040chmod +x $CONFIG_STATUS 2041rm -fr confdefs* $ac_clean_files 2042test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2043 2044