1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for qdbm 1.8.77. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME='qdbm' 269PACKAGE_TARNAME='qdbm' 270PACKAGE_VERSION='1.8.77' 271PACKAGE_STRING='qdbm 1.8.77' 272PACKAGE_BUGREPORT='' 273 274ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIBVER LIBREV TARGETS MYDEFS MYOPTS MGWLIBS LD AR LIBOBJS LTLIBOBJS' 275ac_subst_files='' 276 277# Initialize some variables set by options. 278ac_init_help= 279ac_init_version=false 280# The variables have the same names as the options, with 281# dashes changed to underlines. 282cache_file=/dev/null 283exec_prefix=NONE 284no_create= 285no_recursion= 286prefix=NONE 287program_prefix=NONE 288program_suffix=NONE 289program_transform_name=s,x,x, 290silent= 291site= 292srcdir= 293verbose= 294x_includes=NONE 295x_libraries=NONE 296 297# Installation directory options. 298# These are left unexpanded so users can "make install exec_prefix=/foo" 299# and all the variables that are supposed to be based on exec_prefix 300# by default will actually change. 301# Use braces instead of parens because sh, perl, etc. also accept them. 302bindir='${exec_prefix}/bin' 303sbindir='${exec_prefix}/sbin' 304libexecdir='${exec_prefix}/libexec' 305datadir='${prefix}/share' 306sysconfdir='${prefix}/etc' 307sharedstatedir='${prefix}/com' 308localstatedir='${prefix}/var' 309libdir='${exec_prefix}/lib' 310includedir='${prefix}/include' 311oldincludedir='/usr/include' 312infodir='${prefix}/info' 313mandir='${prefix}/man' 314 315ac_prev= 316for ac_option 317do 318 # If the previous option needs an argument, assign it. 319 if test -n "$ac_prev"; then 320 eval "$ac_prev=\$ac_option" 321 ac_prev= 322 continue 323 fi 324 325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 326 327 # Accept the important Cygnus configure options, so we can diagnose typos. 328 329 case $ac_option in 330 331 -bindir | --bindir | --bindi | --bind | --bin | --bi) 332 ac_prev=bindir ;; 333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 334 bindir=$ac_optarg ;; 335 336 -build | --build | --buil | --bui | --bu) 337 ac_prev=build_alias ;; 338 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 339 build_alias=$ac_optarg ;; 340 341 -cache-file | --cache-file | --cache-fil | --cache-fi \ 342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 343 ac_prev=cache_file ;; 344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 346 cache_file=$ac_optarg ;; 347 348 --config-cache | -C) 349 cache_file=config.cache ;; 350 351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 352 ac_prev=datadir ;; 353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 354 | --da=*) 355 datadir=$ac_optarg ;; 356 357 -disable-* | --disable-*) 358 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 359 # Reject names that are not valid shell variable names. 360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 361 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 362 { (exit 1); exit 1; }; } 363 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 364 eval "enable_$ac_feature=no" ;; 365 366 -enable-* | --enable-*) 367 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 368 # Reject names that are not valid shell variable names. 369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 370 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 371 { (exit 1); exit 1; }; } 372 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 373 case $ac_option in 374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 375 *) ac_optarg=yes ;; 376 esac 377 eval "enable_$ac_feature='$ac_optarg'" ;; 378 379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 381 | --exec | --exe | --ex) 382 ac_prev=exec_prefix ;; 383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 385 | --exec=* | --exe=* | --ex=*) 386 exec_prefix=$ac_optarg ;; 387 388 -gas | --gas | --ga | --g) 389 # Obsolete; use --with-gas. 390 with_gas=yes ;; 391 392 -help | --help | --hel | --he | -h) 393 ac_init_help=long ;; 394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 395 ac_init_help=recursive ;; 396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 397 ac_init_help=short ;; 398 399 -host | --host | --hos | --ho) 400 ac_prev=host_alias ;; 401 -host=* | --host=* | --hos=* | --ho=*) 402 host_alias=$ac_optarg ;; 403 404 -includedir | --includedir | --includedi | --included | --include \ 405 | --includ | --inclu | --incl | --inc) 406 ac_prev=includedir ;; 407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 408 | --includ=* | --inclu=* | --incl=* | --inc=*) 409 includedir=$ac_optarg ;; 410 411 -infodir | --infodir | --infodi | --infod | --info | --inf) 412 ac_prev=infodir ;; 413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 414 infodir=$ac_optarg ;; 415 416 -libdir | --libdir | --libdi | --libd) 417 ac_prev=libdir ;; 418 -libdir=* | --libdir=* | --libdi=* | --libd=*) 419 libdir=$ac_optarg ;; 420 421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 422 | --libexe | --libex | --libe) 423 ac_prev=libexecdir ;; 424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 425 | --libexe=* | --libex=* | --libe=*) 426 libexecdir=$ac_optarg ;; 427 428 -localstatedir | --localstatedir | --localstatedi | --localstated \ 429 | --localstate | --localstat | --localsta | --localst \ 430 | --locals | --local | --loca | --loc | --lo) 431 ac_prev=localstatedir ;; 432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 435 localstatedir=$ac_optarg ;; 436 437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 438 ac_prev=mandir ;; 439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 440 mandir=$ac_optarg ;; 441 442 -nfp | --nfp | --nf) 443 # Obsolete; use --without-fp. 444 with_fp=no ;; 445 446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 447 | --no-cr | --no-c | -n) 448 no_create=yes ;; 449 450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 452 no_recursion=yes ;; 453 454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 456 | --oldin | --oldi | --old | --ol | --o) 457 ac_prev=oldincludedir ;; 458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 461 oldincludedir=$ac_optarg ;; 462 463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 464 ac_prev=prefix ;; 465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 466 prefix=$ac_optarg ;; 467 468 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 469 | --program-pre | --program-pr | --program-p) 470 ac_prev=program_prefix ;; 471 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 473 program_prefix=$ac_optarg ;; 474 475 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 476 | --program-suf | --program-su | --program-s) 477 ac_prev=program_suffix ;; 478 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 480 program_suffix=$ac_optarg ;; 481 482 -program-transform-name | --program-transform-name \ 483 | --program-transform-nam | --program-transform-na \ 484 | --program-transform-n | --program-transform- \ 485 | --program-transform | --program-transfor \ 486 | --program-transfo | --program-transf \ 487 | --program-trans | --program-tran \ 488 | --progr-tra | --program-tr | --program-t) 489 ac_prev=program_transform_name ;; 490 -program-transform-name=* | --program-transform-name=* \ 491 | --program-transform-nam=* | --program-transform-na=* \ 492 | --program-transform-n=* | --program-transform-=* \ 493 | --program-transform=* | --program-transfor=* \ 494 | --program-transfo=* | --program-transf=* \ 495 | --program-trans=* | --program-tran=* \ 496 | --progr-tra=* | --program-tr=* | --program-t=*) 497 program_transform_name=$ac_optarg ;; 498 499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 500 | -silent | --silent | --silen | --sile | --sil) 501 silent=yes ;; 502 503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 504 ac_prev=sbindir ;; 505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 506 | --sbi=* | --sb=*) 507 sbindir=$ac_optarg ;; 508 509 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 511 | --sharedst | --shareds | --shared | --share | --shar \ 512 | --sha | --sh) 513 ac_prev=sharedstatedir ;; 514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 517 | --sha=* | --sh=*) 518 sharedstatedir=$ac_optarg ;; 519 520 -site | --site | --sit) 521 ac_prev=site ;; 522 -site=* | --site=* | --sit=*) 523 site=$ac_optarg ;; 524 525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 526 ac_prev=srcdir ;; 527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 528 srcdir=$ac_optarg ;; 529 530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 531 | --syscon | --sysco | --sysc | --sys | --sy) 532 ac_prev=sysconfdir ;; 533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 535 sysconfdir=$ac_optarg ;; 536 537 -target | --target | --targe | --targ | --tar | --ta | --t) 538 ac_prev=target_alias ;; 539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 540 target_alias=$ac_optarg ;; 541 542 -v | -verbose | --verbose | --verbos | --verbo | --verb) 543 verbose=yes ;; 544 545 -version | --version | --versio | --versi | --vers | -V) 546 ac_init_version=: ;; 547 548 -with-* | --with-*) 549 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 550 # Reject names that are not valid shell variable names. 551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 552 { echo "$as_me: error: invalid package name: $ac_package" >&2 553 { (exit 1); exit 1; }; } 554 ac_package=`echo $ac_package| sed 's/-/_/g'` 555 case $ac_option in 556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 557 *) ac_optarg=yes ;; 558 esac 559 eval "with_$ac_package='$ac_optarg'" ;; 560 561 -without-* | --without-*) 562 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 563 # Reject names that are not valid shell variable names. 564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 565 { echo "$as_me: error: invalid package name: $ac_package" >&2 566 { (exit 1); exit 1; }; } 567 ac_package=`echo $ac_package | sed 's/-/_/g'` 568 eval "with_$ac_package=no" ;; 569 570 --x) 571 # Obsolete; use --with-x. 572 with_x=yes ;; 573 574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 575 | --x-incl | --x-inc | --x-in | --x-i) 576 ac_prev=x_includes ;; 577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 579 x_includes=$ac_optarg ;; 580 581 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 583 ac_prev=x_libraries ;; 584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 586 x_libraries=$ac_optarg ;; 587 588 -*) { echo "$as_me: error: unrecognized option: $ac_option 589Try \`$0 --help' for more information." >&2 590 { (exit 1); exit 1; }; } 591 ;; 592 593 *=*) 594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 595 # Reject names that are not valid shell variable names. 596 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 597 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 598 { (exit 1); exit 1; }; } 599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 600 eval "$ac_envvar='$ac_optarg'" 601 export $ac_envvar ;; 602 603 *) 604 # FIXME: should be removed in autoconf 3.0. 605 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 607 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 608 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 609 ;; 610 611 esac 612done 613 614if test -n "$ac_prev"; then 615 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 616 { echo "$as_me: error: missing argument to $ac_option" >&2 617 { (exit 1); exit 1; }; } 618fi 619 620# Be sure to have absolute paths. 621for ac_var in exec_prefix prefix 622do 623 eval ac_val=$`echo $ac_var` 624 case $ac_val in 625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 627 { (exit 1); exit 1; }; };; 628 esac 629done 630 631# Be sure to have absolute paths. 632for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 633 localstatedir libdir includedir oldincludedir infodir mandir 634do 635 eval ac_val=$`echo $ac_var` 636 case $ac_val in 637 [\\/$]* | ?:[\\/]* ) ;; 638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 639 { (exit 1); exit 1; }; };; 640 esac 641done 642 643# There might be people who depend on the old broken behavior: `$host' 644# used to hold the argument of --host etc. 645# FIXME: To remove some day. 646build=$build_alias 647host=$host_alias 648target=$target_alias 649 650# FIXME: To remove some day. 651if test "x$host_alias" != x; then 652 if test "x$build_alias" = x; then 653 cross_compiling=maybe 654 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 655 If a cross compiler is detected then cross compile mode will be used." >&2 656 elif test "x$build_alias" != "x$host_alias"; then 657 cross_compiling=yes 658 fi 659fi 660 661ac_tool_prefix= 662test -n "$host_alias" && ac_tool_prefix=$host_alias- 663 664test "$silent" = yes && exec 6>/dev/null 665 666 667# Find the source files, if location was not specified. 668if test -z "$srcdir"; then 669 ac_srcdir_defaulted=yes 670 # Try the directory containing this script, then its parent. 671 ac_confdir=`(dirname "$0") 2>/dev/null || 672$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 673 X"$0" : 'X\(//\)[^/]' \| \ 674 X"$0" : 'X\(//\)$' \| \ 675 X"$0" : 'X\(/\)' \| \ 676 . : '\(.\)' 2>/dev/null || 677echo X"$0" | 678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 679 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 680 /^X\(\/\/\)$/{ s//\1/; q; } 681 /^X\(\/\).*/{ s//\1/; q; } 682 s/.*/./; q'` 683 srcdir=$ac_confdir 684 if test ! -r $srcdir/$ac_unique_file; then 685 srcdir=.. 686 fi 687else 688 ac_srcdir_defaulted=no 689fi 690if test ! -r $srcdir/$ac_unique_file; then 691 if test "$ac_srcdir_defaulted" = yes; then 692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 693 { (exit 1); exit 1; }; } 694 else 695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 696 { (exit 1); exit 1; }; } 697 fi 698fi 699(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 701 { (exit 1); exit 1; }; } 702srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 703ac_env_build_alias_set=${build_alias+set} 704ac_env_build_alias_value=$build_alias 705ac_cv_env_build_alias_set=${build_alias+set} 706ac_cv_env_build_alias_value=$build_alias 707ac_env_host_alias_set=${host_alias+set} 708ac_env_host_alias_value=$host_alias 709ac_cv_env_host_alias_set=${host_alias+set} 710ac_cv_env_host_alias_value=$host_alias 711ac_env_target_alias_set=${target_alias+set} 712ac_env_target_alias_value=$target_alias 713ac_cv_env_target_alias_set=${target_alias+set} 714ac_cv_env_target_alias_value=$target_alias 715ac_env_CC_set=${CC+set} 716ac_env_CC_value=$CC 717ac_cv_env_CC_set=${CC+set} 718ac_cv_env_CC_value=$CC 719ac_env_CFLAGS_set=${CFLAGS+set} 720ac_env_CFLAGS_value=$CFLAGS 721ac_cv_env_CFLAGS_set=${CFLAGS+set} 722ac_cv_env_CFLAGS_value=$CFLAGS 723ac_env_LDFLAGS_set=${LDFLAGS+set} 724ac_env_LDFLAGS_value=$LDFLAGS 725ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 726ac_cv_env_LDFLAGS_value=$LDFLAGS 727ac_env_CPPFLAGS_set=${CPPFLAGS+set} 728ac_env_CPPFLAGS_value=$CPPFLAGS 729ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 730ac_cv_env_CPPFLAGS_value=$CPPFLAGS 731 732# 733# Report the --help message. 734# 735if test "$ac_init_help" = "long"; then 736 # Omit some internal or obsolete options to make the list less imposing. 737 # This message is too long to be a string in the A/UX 3.1 sh. 738 cat <<_ACEOF 739\`configure' configures qdbm 1.8.77 to adapt to many kinds of systems. 740 741Usage: $0 [OPTION]... [VAR=VALUE]... 742 743To assign environment variables (e.g., CC, CFLAGS...), specify them as 744VAR=VALUE. See below for descriptions of some of the useful variables. 745 746Defaults for the options are specified in brackets. 747 748Configuration: 749 -h, --help display this help and exit 750 --help=short display options specific to this package 751 --help=recursive display the short help of all the included packages 752 -V, --version display version information and exit 753 -q, --quiet, --silent do not print \`checking...' messages 754 --cache-file=FILE cache test results in FILE [disabled] 755 -C, --config-cache alias for \`--cache-file=config.cache' 756 -n, --no-create do not create output files 757 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 758 759_ACEOF 760 761 cat <<_ACEOF 762Installation directories: 763 --prefix=PREFIX install architecture-independent files in PREFIX 764 [$ac_default_prefix] 765 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 766 [PREFIX] 767 768By default, \`make install' will install all the files in 769\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 770an installation prefix other than \`$ac_default_prefix' using \`--prefix', 771for instance \`--prefix=\$HOME'. 772 773For better control, use the options below. 774 775Fine tuning of the installation directories: 776 --bindir=DIR user executables [EPREFIX/bin] 777 --sbindir=DIR system admin executables [EPREFIX/sbin] 778 --libexecdir=DIR program executables [EPREFIX/libexec] 779 --datadir=DIR read-only architecture-independent data [PREFIX/share] 780 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 781 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 782 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 783 --libdir=DIR object code libraries [EPREFIX/lib] 784 --includedir=DIR C header files [PREFIX/include] 785 --oldincludedir=DIR C header files for non-gcc [/usr/include] 786 --infodir=DIR info documentation [PREFIX/info] 787 --mandir=DIR man documentation [PREFIX/man] 788_ACEOF 789 790 cat <<\_ACEOF 791_ACEOF 792fi 793 794if test -n "$ac_init_help"; then 795 case $ac_init_help in 796 short | recursive ) echo "Configuration of qdbm 1.8.77:";; 797 esac 798 cat <<\_ACEOF 799 800Optional Features: 801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 803 --enable-debug build for debugging 804 --enable-devel build for development 805 --enable-stable build for stable release 806 --enable-pthread use POSIX thread and make APIs thread-safe 807 --disable-lock build for environments without file locking 808 --disable-mmap build for environments without memory mapping 809 --enable-zlib feature ZLIB for B+ tree and inverted index 810 --enable-lzo feature LZO for B+ tree and inverted index 811 --enable-bzip feature BZIP2 for B+ tree and inverted index 812 --enable-iconv feature ICONV utilities 813 --disable-warn hide warnings in the configuration 814 815Some influential environment variables: 816 CC C compiler command 817 CFLAGS C compiler flags 818 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 819 nonstandard directory <lib dir> 820 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 821 headers in a nonstandard directory <include dir> 822 823Use these variables to override the choices made by `configure' or to help 824it to find libraries and programs with nonstandard names/locations. 825 826_ACEOF 827fi 828 829if test "$ac_init_help" = "recursive"; then 830 # If there are subdirs, report their specific --help. 831 ac_popdir=`pwd` 832 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 833 test -d $ac_dir || continue 834 ac_builddir=. 835 836if test "$ac_dir" != .; then 837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 838 # A "../" for each directory in $ac_dir_suffix. 839 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 840else 841 ac_dir_suffix= ac_top_builddir= 842fi 843 844case $srcdir in 845 .) # No --srcdir option. We are building in place. 846 ac_srcdir=. 847 if test -z "$ac_top_builddir"; then 848 ac_top_srcdir=. 849 else 850 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 851 fi ;; 852 [\\/]* | ?:[\\/]* ) # Absolute path. 853 ac_srcdir=$srcdir$ac_dir_suffix; 854 ac_top_srcdir=$srcdir ;; 855 *) # Relative path. 856 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 857 ac_top_srcdir=$ac_top_builddir$srcdir ;; 858esac 859 860# Do not use `cd foo && pwd` to compute absolute paths, because 861# the directories may not exist. 862case `pwd` in 863.) ac_abs_builddir="$ac_dir";; 864*) 865 case "$ac_dir" in 866 .) ac_abs_builddir=`pwd`;; 867 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 868 *) ac_abs_builddir=`pwd`/"$ac_dir";; 869 esac;; 870esac 871case $ac_abs_builddir in 872.) ac_abs_top_builddir=${ac_top_builddir}.;; 873*) 874 case ${ac_top_builddir}. in 875 .) ac_abs_top_builddir=$ac_abs_builddir;; 876 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 877 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 878 esac;; 879esac 880case $ac_abs_builddir in 881.) ac_abs_srcdir=$ac_srcdir;; 882*) 883 case $ac_srcdir in 884 .) ac_abs_srcdir=$ac_abs_builddir;; 885 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 886 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 887 esac;; 888esac 889case $ac_abs_builddir in 890.) ac_abs_top_srcdir=$ac_top_srcdir;; 891*) 892 case $ac_top_srcdir in 893 .) ac_abs_top_srcdir=$ac_abs_builddir;; 894 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 895 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 896 esac;; 897esac 898 899 cd $ac_dir 900 # Check for guested configure; otherwise get Cygnus style configure. 901 if test -f $ac_srcdir/configure.gnu; then 902 echo 903 $SHELL $ac_srcdir/configure.gnu --help=recursive 904 elif test -f $ac_srcdir/configure; then 905 echo 906 $SHELL $ac_srcdir/configure --help=recursive 907 elif test -f $ac_srcdir/configure.ac || 908 test -f $ac_srcdir/configure.in; then 909 echo 910 $ac_configure --help 911 else 912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 913 fi 914 cd $ac_popdir 915 done 916fi 917 918test -n "$ac_init_help" && exit 0 919if $ac_init_version; then 920 cat <<\_ACEOF 921qdbm configure 1.8.77 922generated by GNU Autoconf 2.59 923 924Copyright (C) 2003 Free Software Foundation, Inc. 925This configure script is free software; the Free Software Foundation 926gives unlimited permission to copy, distribute and modify it. 927_ACEOF 928 exit 0 929fi 930exec 5>config.log 931cat >&5 <<_ACEOF 932This file contains any messages produced by compilers while 933running configure, to aid debugging if configure makes a mistake. 934 935It was created by qdbm $as_me 1.8.77, which was 936generated by GNU Autoconf 2.59. Invocation command line was 937 938 $ $0 $@ 939 940_ACEOF 941{ 942cat <<_ASUNAME 943## --------- ## 944## Platform. ## 945## --------- ## 946 947hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 948uname -m = `(uname -m) 2>/dev/null || echo unknown` 949uname -r = `(uname -r) 2>/dev/null || echo unknown` 950uname -s = `(uname -s) 2>/dev/null || echo unknown` 951uname -v = `(uname -v) 2>/dev/null || echo unknown` 952 953/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 954/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 955 956/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 957/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 958/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 959hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 960/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 961/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 962/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 963 964_ASUNAME 965 966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 967for as_dir in $PATH 968do 969 IFS=$as_save_IFS 970 test -z "$as_dir" && as_dir=. 971 echo "PATH: $as_dir" 972done 973 974} >&5 975 976cat >&5 <<_ACEOF 977 978 979## ----------- ## 980## Core tests. ## 981## ----------- ## 982 983_ACEOF 984 985 986# Keep a trace of the command line. 987# Strip out --no-create and --no-recursion so they do not pile up. 988# Strip out --silent because we don't want to record it for future runs. 989# Also quote any args containing shell meta-characters. 990# Make two passes to allow for proper duplicate-argument suppression. 991ac_configure_args= 992ac_configure_args0= 993ac_configure_args1= 994ac_sep= 995ac_must_keep_next=false 996for ac_pass in 1 2 997do 998 for ac_arg 999 do 1000 case $ac_arg in 1001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1003 | -silent | --silent | --silen | --sile | --sil) 1004 continue ;; 1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1006 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1007 esac 1008 case $ac_pass in 1009 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1010 2) 1011 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1012 if test $ac_must_keep_next = true; then 1013 ac_must_keep_next=false # Got value, back to normal. 1014 else 1015 case $ac_arg in 1016 *=* | --config-cache | -C | -disable-* | --disable-* \ 1017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1019 | -with-* | --with-* | -without-* | --without-* | --x) 1020 case "$ac_configure_args0 " in 1021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1022 esac 1023 ;; 1024 -* ) ac_must_keep_next=true ;; 1025 esac 1026 fi 1027 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1028 # Get rid of the leading space. 1029 ac_sep=" " 1030 ;; 1031 esac 1032 done 1033done 1034$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1035$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1036 1037# When interrupted or exit'd, cleanup temporary files, and complete 1038# config.log. We remove comments because anyway the quotes in there 1039# would cause problems or look ugly. 1040# WARNING: Be sure not to use single quotes in there, as some shells, 1041# such as our DU 5.0 friend, will then `close' the trap. 1042trap 'exit_status=$? 1043 # Save into config.log some information that might help in debugging. 1044 { 1045 echo 1046 1047 cat <<\_ASBOX 1048## ---------------- ## 1049## Cache variables. ## 1050## ---------------- ## 1051_ASBOX 1052 echo 1053 # The following way of writing the cache mishandles newlines in values, 1054{ 1055 (set) 2>&1 | 1056 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1057 *ac_space=\ *) 1058 sed -n \ 1059 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1061 ;; 1062 *) 1063 sed -n \ 1064 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1065 ;; 1066 esac; 1067} 1068 echo 1069 1070 cat <<\_ASBOX 1071## ----------------- ## 1072## Output variables. ## 1073## ----------------- ## 1074_ASBOX 1075 echo 1076 for ac_var in $ac_subst_vars 1077 do 1078 eval ac_val=$`echo $ac_var` 1079 echo "$ac_var='"'"'$ac_val'"'"'" 1080 done | sort 1081 echo 1082 1083 if test -n "$ac_subst_files"; then 1084 cat <<\_ASBOX 1085## ------------- ## 1086## Output files. ## 1087## ------------- ## 1088_ASBOX 1089 echo 1090 for ac_var in $ac_subst_files 1091 do 1092 eval ac_val=$`echo $ac_var` 1093 echo "$ac_var='"'"'$ac_val'"'"'" 1094 done | sort 1095 echo 1096 fi 1097 1098 if test -s confdefs.h; then 1099 cat <<\_ASBOX 1100## ----------- ## 1101## confdefs.h. ## 1102## ----------- ## 1103_ASBOX 1104 echo 1105 sed "/^$/d" confdefs.h | sort 1106 echo 1107 fi 1108 test "$ac_signal" != 0 && 1109 echo "$as_me: caught signal $ac_signal" 1110 echo "$as_me: exit $exit_status" 1111 } >&5 1112 rm -f core *.core && 1113 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1114 exit $exit_status 1115 ' 0 1116for ac_signal in 1 2 13 15; do 1117 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1118done 1119ac_signal=0 1120 1121# confdefs.h avoids OS command line length limits that DEFS can exceed. 1122rm -rf conftest* confdefs.h 1123# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1124echo >confdefs.h 1125 1126# Predefined preprocessor variables. 1127 1128cat >>confdefs.h <<_ACEOF 1129#define PACKAGE_NAME "$PACKAGE_NAME" 1130_ACEOF 1131 1132 1133cat >>confdefs.h <<_ACEOF 1134#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1135_ACEOF 1136 1137 1138cat >>confdefs.h <<_ACEOF 1139#define PACKAGE_VERSION "$PACKAGE_VERSION" 1140_ACEOF 1141 1142 1143cat >>confdefs.h <<_ACEOF 1144#define PACKAGE_STRING "$PACKAGE_STRING" 1145_ACEOF 1146 1147 1148cat >>confdefs.h <<_ACEOF 1149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1150_ACEOF 1151 1152 1153# Let the site file select an alternate cache file if it wants to. 1154# Prefer explicitly selected file to automatically selected ones. 1155if test -z "$CONFIG_SITE"; then 1156 if test "x$prefix" != xNONE; then 1157 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1158 else 1159 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1160 fi 1161fi 1162for ac_site_file in $CONFIG_SITE; do 1163 if test -r "$ac_site_file"; then 1164 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1165echo "$as_me: loading site script $ac_site_file" >&6;} 1166 sed 's/^/| /' "$ac_site_file" >&5 1167 . "$ac_site_file" 1168 fi 1169done 1170 1171if test -r "$cache_file"; then 1172 # Some versions of bash will fail to source /dev/null (special 1173 # files actually), so we avoid doing that. 1174 if test -f "$cache_file"; then 1175 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1176echo "$as_me: loading cache $cache_file" >&6;} 1177 case $cache_file in 1178 [\\/]* | ?:[\\/]* ) . $cache_file;; 1179 *) . ./$cache_file;; 1180 esac 1181 fi 1182else 1183 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1184echo "$as_me: creating cache $cache_file" >&6;} 1185 >$cache_file 1186fi 1187 1188# Check that the precious variables saved in the cache have kept the same 1189# value. 1190ac_cache_corrupted=false 1191for ac_var in `(set) 2>&1 | 1192 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1193 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1194 eval ac_new_set=\$ac_env_${ac_var}_set 1195 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1196 eval ac_new_val="\$ac_env_${ac_var}_value" 1197 case $ac_old_set,$ac_new_set in 1198 set,) 1199 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1200echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1201 ac_cache_corrupted=: ;; 1202 ,set) 1203 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1204echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1205 ac_cache_corrupted=: ;; 1206 ,);; 1207 *) 1208 if test "x$ac_old_val" != "x$ac_new_val"; then 1209 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1210echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1211 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1212echo "$as_me: former value: $ac_old_val" >&2;} 1213 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1214echo "$as_me: current value: $ac_new_val" >&2;} 1215 ac_cache_corrupted=: 1216 fi;; 1217 esac 1218 # Pass precious variables to config.status. 1219 if test "$ac_new_set" = set; then 1220 case $ac_new_val in 1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1222 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1223 *) ac_arg=$ac_var=$ac_new_val ;; 1224 esac 1225 case " $ac_configure_args " in 1226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1227 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1228 esac 1229 fi 1230done 1231if $ac_cache_corrupted; then 1232 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1233echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1234 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1235echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1236 { (exit 1); exit 1; }; } 1237fi 1238 1239ac_ext=c 1240ac_cpp='$CPP $CPPFLAGS' 1241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1243ac_compiler_gnu=$ac_cv_c_compiler_gnu 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272# Export variables 1273LIBVER=14 1274LIBREV=13 1275TARGETS="all" 1276MYDEFS="" 1277MYOPTS="" 1278MGWLIBS="" 1279LD="ld" 1280AR="ar" 1281 1282# Building paths 1283pathtmp="$PATH" 1284PATH="$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" 1285PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp" 1286LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH" 1287LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH" 1288CPATH="$HOME/include:/usr/local/include:$CPATH" 1289export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH 1290 1291 1292 1293#================================================================ 1294# Options 1295#================================================================ 1296 1297 1298# Internal variables 1299enables="" 1300ispthread="" 1301iszlib="" 1302isiconv="" 1303isnowarn="" 1304 1305# Debug mode 1306# Check whether --enable-debug or --disable-debug was given. 1307if test "${enable_debug+set}" = set; then 1308 enableval="$enable_debug" 1309 1310fi; 1311if test "$enable_debug" = "yes" 1312then 1313 TARGETS="debug" 1314 enables="$enables (debug)" 1315fi 1316 1317# Developping mode 1318# Check whether --enable-devel or --disable-devel was given. 1319if test "${enable_devel+set}" = set; then 1320 enableval="$enable_devel" 1321 1322fi; 1323if test "$enable_devel" = "yes" 1324then 1325 TARGETS="devel" 1326 enables="$enables (devel)" 1327fi 1328 1329# Stable mode 1330# Check whether --enable-stable or --disable-stable was given. 1331if test "${enable_stable+set}" = set; then 1332 enableval="$enable_stable" 1333 1334fi; 1335if test "$enable_stable" = "yes" 1336then 1337 TARGETS="stable" 1338 enables="$enables (stable)" 1339fi 1340 1341# Enable POSIX thread 1342# Check whether --enable-pthread or --disable-pthread was given. 1343if test "${enable_pthread+set}" = set; then 1344 enableval="$enable_pthread" 1345 1346fi; 1347if test "$enable_pthread" = "yes" 1348then 1349 MYDEFS="$MYDEFS -DMYPTHREAD" 1350 enables="$enables (pthread)" 1351 ispthread="yes" 1352fi 1353 1354# Disable file locking 1355# Check whether --enable-lock or --disable-lock was given. 1356if test "${enable_lock+set}" = set; then 1357 enableval="$enable_lock" 1358 1359fi; 1360if test "$enable_lock" = "no" 1361then 1362 MYDEFS="$MYDEFS -DMYNOLOCK" 1363 enables="$enables (no-lock)" 1364fi 1365 1366# Disable memory mapping 1367# Check whether --enable-mmap or --disable-mmap was given. 1368if test "${enable_mmap+set}" = set; then 1369 enableval="$enable_mmap" 1370 1371fi; 1372if test "$enable_mmap" = "no" 1373then 1374 MYDEFS="$MYDEFS -DMYNOMMAP" 1375 enables="$enables (no-mmap)" 1376fi 1377 1378# Enable ZLIB compression 1379# Check whether --enable-zlib or --disable-zlib was given. 1380if test "${enable_zlib+set}" = set; then 1381 enableval="$enable_zlib" 1382 1383fi; 1384if test "$enable_zlib" = "yes" 1385then 1386 MYDEFS="$MYDEFS -DMYZLIB" 1387 MGWLIBS="-lz $MGWLIBS" 1388 enables="$enables (zlib)" 1389 iszlib="yes" 1390fi 1391 1392# Enable LZO compression 1393# Check whether --enable-lzo or --disable-lzo was given. 1394if test "${enable_lzo+set}" = set; then 1395 enableval="$enable_lzo" 1396 1397fi; 1398if test "$enable_lzo" = "yes" 1399then 1400 MYDEFS="$MYDEFS -DMYLZO" 1401 MGWLIBS="-llzo2 $MGWLIBS" 1402 enables="$enables (lzo)" 1403 islzo="yes" 1404fi 1405 1406# Enable BZIP2 compression 1407# Check whether --enable-bzip or --disable-bzip was given. 1408if test "${enable_bzip+set}" = set; then 1409 enableval="$enable_bzip" 1410 1411fi; 1412if test "$enable_bzip" = "yes" 1413then 1414 MYDEFS="$MYDEFS -DMYBZIP" 1415 MGWLIBS="-lbz2 $MGWLIBS" 1416 enables="$enables (bzip)" 1417 isbzip="yes" 1418fi 1419 1420# Enable ICONV utilities 1421# Check whether --enable-iconv or --disable-iconv was given. 1422if test "${enable_iconv+set}" = set; then 1423 enableval="$enable_iconv" 1424 1425fi; 1426if test "$enable_iconv" = "yes" 1427then 1428 MYDEFS="$MYDEFS -DMYICONV" 1429 MGWLIBS="-liconv $MGWLIBS" 1430 enables="$enables (iconv)" 1431 isiconv="yes" 1432fi 1433 1434# No warning configuration 1435# Check whether --enable-warn or --disable-warn was given. 1436if test "${enable_warn+set}" = set; then 1437 enableval="$enable_warn" 1438 1439fi; 1440if test "$enable_warn" = "no" 1441then 1442 isnowarn="yes" 1443fi 1444 1445# Messages 1446printf '#================================================================\n' 1447printf '# Configuring QDBM version %s%s.\n' "$PACKAGE_VERSION" "$enables" 1448printf '#================================================================\n' 1449 1450 1451 1452#================================================================ 1453# Checking Commands to Build with 1454#================================================================ 1455 1456 1457# C compiler 1458ac_ext=c 1459ac_cpp='$CPP $CPPFLAGS' 1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1462ac_compiler_gnu=$ac_cv_c_compiler_gnu 1463if test -n "$ac_tool_prefix"; then 1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1465set dummy ${ac_tool_prefix}gcc; ac_word=$2 1466echo "$as_me:$LINENO: checking for $ac_word" >&5 1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1468if test "${ac_cv_prog_CC+set}" = set; then 1469 echo $ECHO_N "(cached) $ECHO_C" >&6 1470else 1471 if test -n "$CC"; then 1472 ac_cv_prog_CC="$CC" # Let the user override the test. 1473else 1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1475for as_dir in $PATH 1476do 1477 IFS=$as_save_IFS 1478 test -z "$as_dir" && as_dir=. 1479 for ac_exec_ext in '' $ac_executable_extensions; do 1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1481 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1483 break 2 1484 fi 1485done 1486done 1487 1488fi 1489fi 1490CC=$ac_cv_prog_CC 1491if test -n "$CC"; then 1492 echo "$as_me:$LINENO: result: $CC" >&5 1493echo "${ECHO_T}$CC" >&6 1494else 1495 echo "$as_me:$LINENO: result: no" >&5 1496echo "${ECHO_T}no" >&6 1497fi 1498 1499fi 1500if test -z "$ac_cv_prog_CC"; then 1501 ac_ct_CC=$CC 1502 # Extract the first word of "gcc", so it can be a program name with args. 1503set dummy gcc; ac_word=$2 1504echo "$as_me:$LINENO: checking for $ac_word" >&5 1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1507 echo $ECHO_N "(cached) $ECHO_C" >&6 1508else 1509 if test -n "$ac_ct_CC"; then 1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1511else 1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1513for as_dir in $PATH 1514do 1515 IFS=$as_save_IFS 1516 test -z "$as_dir" && as_dir=. 1517 for ac_exec_ext in '' $ac_executable_extensions; do 1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1519 ac_cv_prog_ac_ct_CC="gcc" 1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1521 break 2 1522 fi 1523done 1524done 1525 1526fi 1527fi 1528ac_ct_CC=$ac_cv_prog_ac_ct_CC 1529if test -n "$ac_ct_CC"; then 1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1531echo "${ECHO_T}$ac_ct_CC" >&6 1532else 1533 echo "$as_me:$LINENO: result: no" >&5 1534echo "${ECHO_T}no" >&6 1535fi 1536 1537 CC=$ac_ct_CC 1538else 1539 CC="$ac_cv_prog_CC" 1540fi 1541 1542if test -z "$CC"; then 1543 if test -n "$ac_tool_prefix"; then 1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1545set dummy ${ac_tool_prefix}cc; ac_word=$2 1546echo "$as_me:$LINENO: checking for $ac_word" >&5 1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1548if test "${ac_cv_prog_CC+set}" = set; then 1549 echo $ECHO_N "(cached) $ECHO_C" >&6 1550else 1551 if test -n "$CC"; then 1552 ac_cv_prog_CC="$CC" # Let the user override the test. 1553else 1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1555for as_dir in $PATH 1556do 1557 IFS=$as_save_IFS 1558 test -z "$as_dir" && as_dir=. 1559 for ac_exec_ext in '' $ac_executable_extensions; do 1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1561 ac_cv_prog_CC="${ac_tool_prefix}cc" 1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1563 break 2 1564 fi 1565done 1566done 1567 1568fi 1569fi 1570CC=$ac_cv_prog_CC 1571if test -n "$CC"; then 1572 echo "$as_me:$LINENO: result: $CC" >&5 1573echo "${ECHO_T}$CC" >&6 1574else 1575 echo "$as_me:$LINENO: result: no" >&5 1576echo "${ECHO_T}no" >&6 1577fi 1578 1579fi 1580if test -z "$ac_cv_prog_CC"; then 1581 ac_ct_CC=$CC 1582 # Extract the first word of "cc", so it can be a program name with args. 1583set dummy cc; ac_word=$2 1584echo "$as_me:$LINENO: checking for $ac_word" >&5 1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1587 echo $ECHO_N "(cached) $ECHO_C" >&6 1588else 1589 if test -n "$ac_ct_CC"; then 1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1591else 1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1593for as_dir in $PATH 1594do 1595 IFS=$as_save_IFS 1596 test -z "$as_dir" && as_dir=. 1597 for ac_exec_ext in '' $ac_executable_extensions; do 1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1599 ac_cv_prog_ac_ct_CC="cc" 1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1601 break 2 1602 fi 1603done 1604done 1605 1606fi 1607fi 1608ac_ct_CC=$ac_cv_prog_ac_ct_CC 1609if test -n "$ac_ct_CC"; then 1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1611echo "${ECHO_T}$ac_ct_CC" >&6 1612else 1613 echo "$as_me:$LINENO: result: no" >&5 1614echo "${ECHO_T}no" >&6 1615fi 1616 1617 CC=$ac_ct_CC 1618else 1619 CC="$ac_cv_prog_CC" 1620fi 1621 1622fi 1623if test -z "$CC"; then 1624 # Extract the first word of "cc", so it can be a program name with args. 1625set dummy cc; ac_word=$2 1626echo "$as_me:$LINENO: checking for $ac_word" >&5 1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1628if test "${ac_cv_prog_CC+set}" = set; then 1629 echo $ECHO_N "(cached) $ECHO_C" >&6 1630else 1631 if test -n "$CC"; then 1632 ac_cv_prog_CC="$CC" # Let the user override the test. 1633else 1634 ac_prog_rejected=no 1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1636for as_dir in $PATH 1637do 1638 IFS=$as_save_IFS 1639 test -z "$as_dir" && as_dir=. 1640 for ac_exec_ext in '' $ac_executable_extensions; do 1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1643 ac_prog_rejected=yes 1644 continue 1645 fi 1646 ac_cv_prog_CC="cc" 1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1648 break 2 1649 fi 1650done 1651done 1652 1653if test $ac_prog_rejected = yes; then 1654 # We found a bogon in the path, so make sure we never use it. 1655 set dummy $ac_cv_prog_CC 1656 shift 1657 if test $# != 0; then 1658 # We chose a different compiler from the bogus one. 1659 # However, it has the same basename, so the bogon will be chosen 1660 # first if we set CC to just the basename; use the full file name. 1661 shift 1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1663 fi 1664fi 1665fi 1666fi 1667CC=$ac_cv_prog_CC 1668if test -n "$CC"; then 1669 echo "$as_me:$LINENO: result: $CC" >&5 1670echo "${ECHO_T}$CC" >&6 1671else 1672 echo "$as_me:$LINENO: result: no" >&5 1673echo "${ECHO_T}no" >&6 1674fi 1675 1676fi 1677if test -z "$CC"; then 1678 if test -n "$ac_tool_prefix"; then 1679 for ac_prog in cl 1680 do 1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1682set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1683echo "$as_me:$LINENO: checking for $ac_word" >&5 1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1685if test "${ac_cv_prog_CC+set}" = set; then 1686 echo $ECHO_N "(cached) $ECHO_C" >&6 1687else 1688 if test -n "$CC"; then 1689 ac_cv_prog_CC="$CC" # Let the user override the test. 1690else 1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1692for as_dir in $PATH 1693do 1694 IFS=$as_save_IFS 1695 test -z "$as_dir" && as_dir=. 1696 for ac_exec_ext in '' $ac_executable_extensions; do 1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1700 break 2 1701 fi 1702done 1703done 1704 1705fi 1706fi 1707CC=$ac_cv_prog_CC 1708if test -n "$CC"; then 1709 echo "$as_me:$LINENO: result: $CC" >&5 1710echo "${ECHO_T}$CC" >&6 1711else 1712 echo "$as_me:$LINENO: result: no" >&5 1713echo "${ECHO_T}no" >&6 1714fi 1715 1716 test -n "$CC" && break 1717 done 1718fi 1719if test -z "$CC"; then 1720 ac_ct_CC=$CC 1721 for ac_prog in cl 1722do 1723 # Extract the first word of "$ac_prog", so it can be a program name with args. 1724set dummy $ac_prog; ac_word=$2 1725echo "$as_me:$LINENO: checking for $ac_word" >&5 1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1728 echo $ECHO_N "(cached) $ECHO_C" >&6 1729else 1730 if test -n "$ac_ct_CC"; then 1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1732else 1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1734for as_dir in $PATH 1735do 1736 IFS=$as_save_IFS 1737 test -z "$as_dir" && as_dir=. 1738 for ac_exec_ext in '' $ac_executable_extensions; do 1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1740 ac_cv_prog_ac_ct_CC="$ac_prog" 1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1742 break 2 1743 fi 1744done 1745done 1746 1747fi 1748fi 1749ac_ct_CC=$ac_cv_prog_ac_ct_CC 1750if test -n "$ac_ct_CC"; then 1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1752echo "${ECHO_T}$ac_ct_CC" >&6 1753else 1754 echo "$as_me:$LINENO: result: no" >&5 1755echo "${ECHO_T}no" >&6 1756fi 1757 1758 test -n "$ac_ct_CC" && break 1759done 1760 1761 CC=$ac_ct_CC 1762fi 1763 1764fi 1765 1766 1767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1768See \`config.log' for more details." >&5 1769echo "$as_me: error: no acceptable C compiler found in \$PATH 1770See \`config.log' for more details." >&2;} 1771 { (exit 1); exit 1; }; } 1772 1773# Provide some information about the compiler. 1774echo "$as_me:$LINENO:" \ 1775 "checking for C compiler version" >&5 1776ac_compiler=`set X $ac_compile; echo $2` 1777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1778 (eval $ac_compiler --version </dev/null >&5) 2>&5 1779 ac_status=$? 1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1781 (exit $ac_status); } 1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1783 (eval $ac_compiler -v </dev/null >&5) 2>&5 1784 ac_status=$? 1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1786 (exit $ac_status); } 1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1788 (eval $ac_compiler -V </dev/null >&5) 2>&5 1789 ac_status=$? 1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1791 (exit $ac_status); } 1792 1793cat >conftest.$ac_ext <<_ACEOF 1794/* confdefs.h. */ 1795_ACEOF 1796cat confdefs.h >>conftest.$ac_ext 1797cat >>conftest.$ac_ext <<_ACEOF 1798/* end confdefs.h. */ 1799 1800int 1801main () 1802{ 1803 1804 ; 1805 return 0; 1806} 1807_ACEOF 1808ac_clean_files_save=$ac_clean_files 1809ac_clean_files="$ac_clean_files a.out a.exe b.out" 1810# Try to create an executable without -o first, disregard a.out. 1811# It will help us diagnose broken compilers, and finding out an intuition 1812# of exeext. 1813echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1814echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1816if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1817 (eval $ac_link_default) 2>&5 1818 ac_status=$? 1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1820 (exit $ac_status); }; then 1821 # Find the output, starting from the most likely. This scheme is 1822# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1823# resort. 1824 1825# Be careful to initialize this variable, since it used to be cached. 1826# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1827ac_cv_exeext= 1828# b.out is created by i960 compilers. 1829for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1830do 1831 test -f "$ac_file" || continue 1832 case $ac_file in 1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1834 ;; 1835 conftest.$ac_ext ) 1836 # This is the source file. 1837 ;; 1838 [ab].out ) 1839 # We found the default executable, but exeext='' is most 1840 # certainly right. 1841 break;; 1842 *.* ) 1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1844 # FIXME: I believe we export ac_cv_exeext for Libtool, 1845 # but it would be cool to find out if it's true. Does anybody 1846 # maintain Libtool? --akim. 1847 export ac_cv_exeext 1848 break;; 1849 * ) 1850 break;; 1851 esac 1852done 1853else 1854 echo "$as_me: failed program was:" >&5 1855sed 's/^/| /' conftest.$ac_ext >&5 1856 1857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1858See \`config.log' for more details." >&5 1859echo "$as_me: error: C compiler cannot create executables 1860See \`config.log' for more details." >&2;} 1861 { (exit 77); exit 77; }; } 1862fi 1863 1864ac_exeext=$ac_cv_exeext 1865echo "$as_me:$LINENO: result: $ac_file" >&5 1866echo "${ECHO_T}$ac_file" >&6 1867 1868# Check the compiler produces executables we can run. If not, either 1869# the compiler is broken, or we cross compile. 1870echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1873# If not cross compiling, check that we can run a simple program. 1874if test "$cross_compiling" != yes; then 1875 if { ac_try='./$ac_file' 1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1877 (eval $ac_try) 2>&5 1878 ac_status=$? 1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1880 (exit $ac_status); }; }; then 1881 cross_compiling=no 1882 else 1883 if test "$cross_compiling" = maybe; then 1884 cross_compiling=yes 1885 else 1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1887If you meant to cross compile, use \`--host'. 1888See \`config.log' for more details." >&5 1889echo "$as_me: error: cannot run C compiled programs. 1890If you meant to cross compile, use \`--host'. 1891See \`config.log' for more details." >&2;} 1892 { (exit 1); exit 1; }; } 1893 fi 1894 fi 1895fi 1896echo "$as_me:$LINENO: result: yes" >&5 1897echo "${ECHO_T}yes" >&6 1898 1899rm -f a.out a.exe conftest$ac_cv_exeext b.out 1900ac_clean_files=$ac_clean_files_save 1901# Check the compiler produces executables we can run. If not, either 1902# the compiler is broken, or we cross compile. 1903echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1904echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1905echo "$as_me:$LINENO: result: $cross_compiling" >&5 1906echo "${ECHO_T}$cross_compiling" >&6 1907 1908echo "$as_me:$LINENO: checking for suffix of executables" >&5 1909echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1911 (eval $ac_link) 2>&5 1912 ac_status=$? 1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1914 (exit $ac_status); }; then 1915 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1917# work properly (i.e., refer to `conftest.exe'), while it won't with 1918# `rm'. 1919for ac_file in conftest.exe conftest conftest.*; do 1920 test -f "$ac_file" || continue 1921 case $ac_file in 1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1924 export ac_cv_exeext 1925 break;; 1926 * ) break;; 1927 esac 1928done 1929else 1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1931See \`config.log' for more details." >&5 1932echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1933See \`config.log' for more details." >&2;} 1934 { (exit 1); exit 1; }; } 1935fi 1936 1937rm -f conftest$ac_cv_exeext 1938echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1939echo "${ECHO_T}$ac_cv_exeext" >&6 1940 1941rm -f conftest.$ac_ext 1942EXEEXT=$ac_cv_exeext 1943ac_exeext=$EXEEXT 1944echo "$as_me:$LINENO: checking for suffix of object files" >&5 1945echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1946if test "${ac_cv_objext+set}" = set; then 1947 echo $ECHO_N "(cached) $ECHO_C" >&6 1948else 1949 cat >conftest.$ac_ext <<_ACEOF 1950/* confdefs.h. */ 1951_ACEOF 1952cat confdefs.h >>conftest.$ac_ext 1953cat >>conftest.$ac_ext <<_ACEOF 1954/* end confdefs.h. */ 1955 1956int 1957main () 1958{ 1959 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964rm -f conftest.o conftest.obj 1965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1966 (eval $ac_compile) 2>&5 1967 ac_status=$? 1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1969 (exit $ac_status); }; then 1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1971 case $ac_file in 1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1974 break;; 1975 esac 1976done 1977else 1978 echo "$as_me: failed program was:" >&5 1979sed 's/^/| /' conftest.$ac_ext >&5 1980 1981{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1982See \`config.log' for more details." >&5 1983echo "$as_me: error: cannot compute suffix of object files: cannot compile 1984See \`config.log' for more details." >&2;} 1985 { (exit 1); exit 1; }; } 1986fi 1987 1988rm -f conftest.$ac_cv_objext conftest.$ac_ext 1989fi 1990echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1991echo "${ECHO_T}$ac_cv_objext" >&6 1992OBJEXT=$ac_cv_objext 1993ac_objext=$OBJEXT 1994echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1995echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1996if test "${ac_cv_c_compiler_gnu+set}" = set; then 1997 echo $ECHO_N "(cached) $ECHO_C" >&6 1998else 1999 cat >conftest.$ac_ext <<_ACEOF 2000/* confdefs.h. */ 2001_ACEOF 2002cat confdefs.h >>conftest.$ac_ext 2003cat >>conftest.$ac_ext <<_ACEOF 2004/* end confdefs.h. */ 2005 2006int 2007main () 2008{ 2009#ifndef __GNUC__ 2010 choke me 2011#endif 2012 2013 ; 2014 return 0; 2015} 2016_ACEOF 2017rm -f conftest.$ac_objext 2018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2019 (eval $ac_compile) 2>conftest.er1 2020 ac_status=$? 2021 grep -v '^ *+' conftest.er1 >conftest.err 2022 rm -f conftest.er1 2023 cat conftest.err >&5 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2025 (exit $ac_status); } && 2026 { ac_try='test -z "$ac_c_werror_flag" 2027 || test ! -s conftest.err' 2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2029 (eval $ac_try) 2>&5 2030 ac_status=$? 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2032 (exit $ac_status); }; } && 2033 { ac_try='test -s conftest.$ac_objext' 2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 (eval $ac_try) 2>&5 2036 ac_status=$? 2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 (exit $ac_status); }; }; then 2039 ac_compiler_gnu=yes 2040else 2041 echo "$as_me: failed program was:" >&5 2042sed 's/^/| /' conftest.$ac_ext >&5 2043 2044ac_compiler_gnu=no 2045fi 2046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2047ac_cv_c_compiler_gnu=$ac_compiler_gnu 2048 2049fi 2050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2052GCC=`test $ac_compiler_gnu = yes && echo yes` 2053ac_test_CFLAGS=${CFLAGS+set} 2054ac_save_CFLAGS=$CFLAGS 2055CFLAGS="-g" 2056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2058if test "${ac_cv_prog_cc_g+set}" = set; then 2059 echo $ECHO_N "(cached) $ECHO_C" >&6 2060else 2061 cat >conftest.$ac_ext <<_ACEOF 2062/* confdefs.h. */ 2063_ACEOF 2064cat confdefs.h >>conftest.$ac_ext 2065cat >>conftest.$ac_ext <<_ACEOF 2066/* end confdefs.h. */ 2067 2068int 2069main () 2070{ 2071 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076rm -f conftest.$ac_objext 2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2078 (eval $ac_compile) 2>conftest.er1 2079 ac_status=$? 2080 grep -v '^ *+' conftest.er1 >conftest.err 2081 rm -f conftest.er1 2082 cat conftest.err >&5 2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2084 (exit $ac_status); } && 2085 { ac_try='test -z "$ac_c_werror_flag" 2086 || test ! -s conftest.err' 2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2088 (eval $ac_try) 2>&5 2089 ac_status=$? 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2091 (exit $ac_status); }; } && 2092 { ac_try='test -s conftest.$ac_objext' 2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 (eval $ac_try) 2>&5 2095 ac_status=$? 2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 (exit $ac_status); }; }; then 2098 ac_cv_prog_cc_g=yes 2099else 2100 echo "$as_me: failed program was:" >&5 2101sed 's/^/| /' conftest.$ac_ext >&5 2102 2103ac_cv_prog_cc_g=no 2104fi 2105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2106fi 2107echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2108echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2109if test "$ac_test_CFLAGS" = set; then 2110 CFLAGS=$ac_save_CFLAGS 2111elif test $ac_cv_prog_cc_g = yes; then 2112 if test "$GCC" = yes; then 2113 CFLAGS="-g -O2" 2114 else 2115 CFLAGS="-g" 2116 fi 2117else 2118 if test "$GCC" = yes; then 2119 CFLAGS="-O2" 2120 else 2121 CFLAGS= 2122 fi 2123fi 2124echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2125echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2126if test "${ac_cv_prog_cc_stdc+set}" = set; then 2127 echo $ECHO_N "(cached) $ECHO_C" >&6 2128else 2129 ac_cv_prog_cc_stdc=no 2130ac_save_CC=$CC 2131cat >conftest.$ac_ext <<_ACEOF 2132/* confdefs.h. */ 2133_ACEOF 2134cat confdefs.h >>conftest.$ac_ext 2135cat >>conftest.$ac_ext <<_ACEOF 2136/* end confdefs.h. */ 2137#include <stdarg.h> 2138#include <stdio.h> 2139#include <sys/types.h> 2140#include <sys/stat.h> 2141/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2142struct buf { int x; }; 2143FILE * (*rcsopen) (struct buf *, struct stat *, int); 2144static char *e (p, i) 2145 char **p; 2146 int i; 2147{ 2148 return p[i]; 2149} 2150static char *f (char * (*g) (char **, int), char **p, ...) 2151{ 2152 char *s; 2153 va_list v; 2154 va_start (v,p); 2155 s = g (p, va_arg (v,int)); 2156 va_end (v); 2157 return s; 2158} 2159 2160/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2161 function prototypes and stuff, but not '\xHH' hex character constants. 2162 These don't provoke an error unfortunately, instead are silently treated 2163 as 'x'. The following induces an error, until -std1 is added to get 2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2165 array size at least. It's necessary to write '\x00'==0 to get something 2166 that's true only with -std1. */ 2167int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2168 2169int test (int i, double x); 2170struct s1 {int (*f) (int a);}; 2171struct s2 {int (*f) (double a);}; 2172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2173int argc; 2174char **argv; 2175int 2176main () 2177{ 2178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2179 ; 2180 return 0; 2181} 2182_ACEOF 2183# Don't try gcc -ansi; that turns off useful extensions and 2184# breaks some systems' header files. 2185# AIX -qlanglvl=ansi 2186# Ultrix and OSF/1 -std1 2187# HP-UX 10.20 and later -Ae 2188# HP-UX older versions -Aa -D_HPUX_SOURCE 2189# SVR4 -Xc -D__EXTENSIONS__ 2190for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2191do 2192 CC="$ac_save_CC $ac_arg" 2193 rm -f conftest.$ac_objext 2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2195 (eval $ac_compile) 2>conftest.er1 2196 ac_status=$? 2197 grep -v '^ *+' conftest.er1 >conftest.err 2198 rm -f conftest.er1 2199 cat conftest.err >&5 2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2201 (exit $ac_status); } && 2202 { ac_try='test -z "$ac_c_werror_flag" 2203 || test ! -s conftest.err' 2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2205 (eval $ac_try) 2>&5 2206 ac_status=$? 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2208 (exit $ac_status); }; } && 2209 { ac_try='test -s conftest.$ac_objext' 2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 (eval $ac_try) 2>&5 2212 ac_status=$? 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 (exit $ac_status); }; }; then 2215 ac_cv_prog_cc_stdc=$ac_arg 2216break 2217else 2218 echo "$as_me: failed program was:" >&5 2219sed 's/^/| /' conftest.$ac_ext >&5 2220 2221fi 2222rm -f conftest.err conftest.$ac_objext 2223done 2224rm -f conftest.$ac_ext conftest.$ac_objext 2225CC=$ac_save_CC 2226 2227fi 2228 2229case "x$ac_cv_prog_cc_stdc" in 2230 x|xno) 2231 echo "$as_me:$LINENO: result: none needed" >&5 2232echo "${ECHO_T}none needed" >&6 ;; 2233 *) 2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2235echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2236 CC="$CC $ac_cv_prog_cc_stdc" ;; 2237esac 2238 2239# Some people use a C++ compiler to compile C. Since we use `exit', 2240# in C++ we need to declare it. In case someone uses the same compiler 2241# for both compiling C and C++ we need to have the C++ compiler decide 2242# the declaration of exit, since it's the most demanding environment. 2243cat >conftest.$ac_ext <<_ACEOF 2244#ifndef __cplusplus 2245 choke me 2246#endif 2247_ACEOF 2248rm -f conftest.$ac_objext 2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2250 (eval $ac_compile) 2>conftest.er1 2251 ac_status=$? 2252 grep -v '^ *+' conftest.er1 >conftest.err 2253 rm -f conftest.er1 2254 cat conftest.err >&5 2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2256 (exit $ac_status); } && 2257 { ac_try='test -z "$ac_c_werror_flag" 2258 || test ! -s conftest.err' 2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2260 (eval $ac_try) 2>&5 2261 ac_status=$? 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2263 (exit $ac_status); }; } && 2264 { ac_try='test -s conftest.$ac_objext' 2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 (eval $ac_try) 2>&5 2267 ac_status=$? 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); }; }; then 2270 for ac_declaration in \ 2271 '' \ 2272 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2273 'extern "C" void std::exit (int); using std::exit;' \ 2274 'extern "C" void exit (int) throw ();' \ 2275 'extern "C" void exit (int);' \ 2276 'void exit (int);' 2277do 2278 cat >conftest.$ac_ext <<_ACEOF 2279/* confdefs.h. */ 2280_ACEOF 2281cat confdefs.h >>conftest.$ac_ext 2282cat >>conftest.$ac_ext <<_ACEOF 2283/* end confdefs.h. */ 2284$ac_declaration 2285#include <stdlib.h> 2286int 2287main () 2288{ 2289exit (42); 2290 ; 2291 return 0; 2292} 2293_ACEOF 2294rm -f conftest.$ac_objext 2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2296 (eval $ac_compile) 2>conftest.er1 2297 ac_status=$? 2298 grep -v '^ *+' conftest.er1 >conftest.err 2299 rm -f conftest.er1 2300 cat conftest.err >&5 2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2302 (exit $ac_status); } && 2303 { ac_try='test -z "$ac_c_werror_flag" 2304 || test ! -s conftest.err' 2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2306 (eval $ac_try) 2>&5 2307 ac_status=$? 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2309 (exit $ac_status); }; } && 2310 { ac_try='test -s conftest.$ac_objext' 2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 (eval $ac_try) 2>&5 2313 ac_status=$? 2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 (exit $ac_status); }; }; then 2316 : 2317else 2318 echo "$as_me: failed program was:" >&5 2319sed 's/^/| /' conftest.$ac_ext >&5 2320 2321continue 2322fi 2323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2324 cat >conftest.$ac_ext <<_ACEOF 2325/* confdefs.h. */ 2326_ACEOF 2327cat confdefs.h >>conftest.$ac_ext 2328cat >>conftest.$ac_ext <<_ACEOF 2329/* end confdefs.h. */ 2330$ac_declaration 2331int 2332main () 2333{ 2334exit (42); 2335 ; 2336 return 0; 2337} 2338_ACEOF 2339rm -f conftest.$ac_objext 2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2341 (eval $ac_compile) 2>conftest.er1 2342 ac_status=$? 2343 grep -v '^ *+' conftest.er1 >conftest.err 2344 rm -f conftest.er1 2345 cat conftest.err >&5 2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2347 (exit $ac_status); } && 2348 { ac_try='test -z "$ac_c_werror_flag" 2349 || test ! -s conftest.err' 2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2351 (eval $ac_try) 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); }; } && 2355 { ac_try='test -s conftest.$ac_objext' 2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 (eval $ac_try) 2>&5 2358 ac_status=$? 2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 (exit $ac_status); }; }; then 2361 break 2362else 2363 echo "$as_me: failed program was:" >&5 2364sed 's/^/| /' conftest.$ac_ext >&5 2365 2366fi 2367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2368done 2369rm -f conftest* 2370if test -n "$ac_declaration"; then 2371 echo '#ifdef __cplusplus' >>confdefs.h 2372 echo $ac_declaration >>confdefs.h 2373 echo '#endif' >>confdefs.h 2374fi 2375 2376else 2377 echo "$as_me: failed program was:" >&5 2378sed 's/^/| /' conftest.$ac_ext >&5 2379 2380fi 2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2382ac_ext=c 2383ac_cpp='$CPP $CPPFLAGS' 2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2386ac_compiler_gnu=$ac_cv_c_compiler_gnu 2387 2388if test "$GCC" != "yes" 2389then 2390 if test "$isnowarn" != "yes" 2391 then 2392 printf '#================================================================\n' 1>&2 2393 printf '# WARNING: GCC is required to build this package.\n' 1>&2 2394 printf '#================================================================\n' 1>&2 2395 fi 2396fi 2397if uname | egrep -i 'Linux' > /dev/null 2>&1 && 2398 uname -m | egrep '(x|i)(3|4|5|6|7|8|9)?86' > /dev/null 2>&1 2399then 2400 MYOPTS="-minline-all-stringops" 2401fi 2402if uname | egrep -i 'SunOS' > /dev/null 2>&1 2403then 2404 MYOPTS="-O1 -fno-omit-frame-pointer" 2405fi 2406if uname | egrep -i 'BSD' > /dev/null 2>&1 2407then 2408 MYOPTS="-O1 -fno-omit-frame-pointer" 2409fi 2410if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1 2411then 2412 MYOPTS="-O1 -fno-omit-frame-pointer" 2413fi 2414 2415# Linker 2416printf 'checking for ld... ' 2417if which ld | grep '/ld$' > /dev/null 2>&1 2418then 2419 LD=`which ld` 2420 printf '%s\n' "$LD" 2421else 2422 printf 'no\n' 2423 if test "$isnowarn" != "yes" 2424 then 2425 printf '#================================================================\n' 1>&2 2426 printf '# WARNING: ld is not found in PATH.\n' 1>&2 2427 printf '#================================================================\n' 1>&2 2428 fi 2429fi 2430 2431# Archiver 2432printf 'checking for ar... ' 2433if which ar | grep '/ar$' > /dev/null 2>&1 2434then 2435 AR=`which ar` 2436 printf '%s\n' "$AR" 2437else 2438 printf 'no\n' 2439 if test "$isnowarn" != "yes" 2440 then 2441 printf '#================================================================\n' 1>&2 2442 printf '# WARNING: ar is not found in PATH.\n' 1>&2 2443 printf '#================================================================\n' 1>&2 2444 fi 2445fi 2446 2447 2448 2449#================================================================ 2450# Checking Libraries 2451#================================================================ 2452 2453 2454# Underlying libraries 2455 2456 2457echo "$as_me:$LINENO: checking for main in -lc" >&5 2458echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6 2459if test "${ac_cv_lib_c_main+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461else 2462 ac_check_lib_save_LIBS=$LIBS 2463LIBS="-lc $LIBS" 2464cat >conftest.$ac_ext <<_ACEOF 2465/* confdefs.h. */ 2466_ACEOF 2467cat confdefs.h >>conftest.$ac_ext 2468cat >>conftest.$ac_ext <<_ACEOF 2469/* end confdefs.h. */ 2470 2471 2472int 2473main () 2474{ 2475main (); 2476 ; 2477 return 0; 2478} 2479_ACEOF 2480rm -f conftest.$ac_objext conftest$ac_exeext 2481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2482 (eval $ac_link) 2>conftest.er1 2483 ac_status=$? 2484 grep -v '^ *+' conftest.er1 >conftest.err 2485 rm -f conftest.er1 2486 cat conftest.err >&5 2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2488 (exit $ac_status); } && 2489 { ac_try='test -z "$ac_c_werror_flag" 2490 || test ! -s conftest.err' 2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2492 (eval $ac_try) 2>&5 2493 ac_status=$? 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); }; } && 2496 { ac_try='test -s conftest$ac_exeext' 2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2498 (eval $ac_try) 2>&5 2499 ac_status=$? 2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2501 (exit $ac_status); }; }; then 2502 ac_cv_lib_c_main=yes 2503else 2504 echo "$as_me: failed program was:" >&5 2505sed 's/^/| /' conftest.$ac_ext >&5 2506 2507ac_cv_lib_c_main=no 2508fi 2509rm -f conftest.err conftest.$ac_objext \ 2510 conftest$ac_exeext conftest.$ac_ext 2511LIBS=$ac_check_lib_save_LIBS 2512fi 2513echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5 2514echo "${ECHO_T}$ac_cv_lib_c_main" >&6 2515if test $ac_cv_lib_c_main = yes; then 2516 cat >>confdefs.h <<_ACEOF 2517#define HAVE_LIBC 1 2518_ACEOF 2519 2520 LIBS="-lc $LIBS" 2521 2522fi 2523 2524 2525# for pthread 2526if test "$ispthread" = "yes" 2527then 2528 2529echo "$as_me:$LINENO: checking for main in -lpthread" >&5 2530echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 2531if test "${ac_cv_lib_pthread_main+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 ac_check_lib_save_LIBS=$LIBS 2535LIBS="-lpthread $LIBS" 2536cat >conftest.$ac_ext <<_ACEOF 2537/* confdefs.h. */ 2538_ACEOF 2539cat confdefs.h >>conftest.$ac_ext 2540cat >>conftest.$ac_ext <<_ACEOF 2541/* end confdefs.h. */ 2542 2543 2544int 2545main () 2546{ 2547main (); 2548 ; 2549 return 0; 2550} 2551_ACEOF 2552rm -f conftest.$ac_objext conftest$ac_exeext 2553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2554 (eval $ac_link) 2>conftest.er1 2555 ac_status=$? 2556 grep -v '^ *+' conftest.er1 >conftest.err 2557 rm -f conftest.er1 2558 cat conftest.err >&5 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); } && 2561 { ac_try='test -z "$ac_c_werror_flag" 2562 || test ! -s conftest.err' 2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2564 (eval $ac_try) 2>&5 2565 ac_status=$? 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); }; } && 2568 { ac_try='test -s conftest$ac_exeext' 2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2570 (eval $ac_try) 2>&5 2571 ac_status=$? 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); }; }; then 2574 ac_cv_lib_pthread_main=yes 2575else 2576 echo "$as_me: failed program was:" >&5 2577sed 's/^/| /' conftest.$ac_ext >&5 2578 2579ac_cv_lib_pthread_main=no 2580fi 2581rm -f conftest.err conftest.$ac_objext \ 2582 conftest$ac_exeext conftest.$ac_ext 2583LIBS=$ac_check_lib_save_LIBS 2584fi 2585echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 2586echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 2587if test $ac_cv_lib_pthread_main = yes; then 2588 cat >>confdefs.h <<_ACEOF 2589#define HAVE_LIBPTHREAD 1 2590_ACEOF 2591 2592 LIBS="-lpthread $LIBS" 2593 2594fi 2595 2596fi 2597 2598# for zlib 2599if test "$iszlib" = "yes" 2600then 2601 2602echo "$as_me:$LINENO: checking for main in -lz" >&5 2603echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6 2604if test "${ac_cv_lib_z_main+set}" = set; then 2605 echo $ECHO_N "(cached) $ECHO_C" >&6 2606else 2607 ac_check_lib_save_LIBS=$LIBS 2608LIBS="-lz $LIBS" 2609cat >conftest.$ac_ext <<_ACEOF 2610/* confdefs.h. */ 2611_ACEOF 2612cat confdefs.h >>conftest.$ac_ext 2613cat >>conftest.$ac_ext <<_ACEOF 2614/* end confdefs.h. */ 2615 2616 2617int 2618main () 2619{ 2620main (); 2621 ; 2622 return 0; 2623} 2624_ACEOF 2625rm -f conftest.$ac_objext conftest$ac_exeext 2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2627 (eval $ac_link) 2>conftest.er1 2628 ac_status=$? 2629 grep -v '^ *+' conftest.er1 >conftest.err 2630 rm -f conftest.er1 2631 cat conftest.err >&5 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); } && 2634 { ac_try='test -z "$ac_c_werror_flag" 2635 || test ! -s conftest.err' 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); }; } && 2641 { ac_try='test -s conftest$ac_exeext' 2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2643 (eval $ac_try) 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; }; then 2647 ac_cv_lib_z_main=yes 2648else 2649 echo "$as_me: failed program was:" >&5 2650sed 's/^/| /' conftest.$ac_ext >&5 2651 2652ac_cv_lib_z_main=no 2653fi 2654rm -f conftest.err conftest.$ac_objext \ 2655 conftest$ac_exeext conftest.$ac_ext 2656LIBS=$ac_check_lib_save_LIBS 2657fi 2658echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5 2659echo "${ECHO_T}$ac_cv_lib_z_main" >&6 2660if test $ac_cv_lib_z_main = yes; then 2661 cat >>confdefs.h <<_ACEOF 2662#define HAVE_LIBZ 1 2663_ACEOF 2664 2665 LIBS="-lz $LIBS" 2666 2667fi 2668 2669fi 2670 2671# for lzo 2672if test "$islzo" = "yes" 2673then 2674 2675echo "$as_me:$LINENO: checking for main in -llzo2" >&5 2676echo $ECHO_N "checking for main in -llzo2... $ECHO_C" >&6 2677if test "${ac_cv_lib_lzo2_main+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 ac_check_lib_save_LIBS=$LIBS 2681LIBS="-llzo2 $LIBS" 2682cat >conftest.$ac_ext <<_ACEOF 2683/* confdefs.h. */ 2684_ACEOF 2685cat confdefs.h >>conftest.$ac_ext 2686cat >>conftest.$ac_ext <<_ACEOF 2687/* end confdefs.h. */ 2688 2689 2690int 2691main () 2692{ 2693main (); 2694 ; 2695 return 0; 2696} 2697_ACEOF 2698rm -f conftest.$ac_objext conftest$ac_exeext 2699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2700 (eval $ac_link) 2>conftest.er1 2701 ac_status=$? 2702 grep -v '^ *+' conftest.er1 >conftest.err 2703 rm -f conftest.er1 2704 cat conftest.err >&5 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); } && 2707 { ac_try='test -z "$ac_c_werror_flag" 2708 || test ! -s conftest.err' 2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2710 (eval $ac_try) 2>&5 2711 ac_status=$? 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); }; } && 2714 { ac_try='test -s conftest$ac_exeext' 2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2716 (eval $ac_try) 2>&5 2717 ac_status=$? 2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2719 (exit $ac_status); }; }; then 2720 ac_cv_lib_lzo2_main=yes 2721else 2722 echo "$as_me: failed program was:" >&5 2723sed 's/^/| /' conftest.$ac_ext >&5 2724 2725ac_cv_lib_lzo2_main=no 2726fi 2727rm -f conftest.err conftest.$ac_objext \ 2728 conftest$ac_exeext conftest.$ac_ext 2729LIBS=$ac_check_lib_save_LIBS 2730fi 2731echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2_main" >&5 2732echo "${ECHO_T}$ac_cv_lib_lzo2_main" >&6 2733if test $ac_cv_lib_lzo2_main = yes; then 2734 cat >>confdefs.h <<_ACEOF 2735#define HAVE_LIBLZO2 1 2736_ACEOF 2737 2738 LIBS="-llzo2 $LIBS" 2739 2740fi 2741 2742fi 2743 2744# for bzip 2745if test "$isbzip" = "yes" 2746then 2747 2748echo "$as_me:$LINENO: checking for main in -lbz2" >&5 2749echo $ECHO_N "checking for main in -lbz2... $ECHO_C" >&6 2750if test "${ac_cv_lib_bz2_main+set}" = set; then 2751 echo $ECHO_N "(cached) $ECHO_C" >&6 2752else 2753 ac_check_lib_save_LIBS=$LIBS 2754LIBS="-lbz2 $LIBS" 2755cat >conftest.$ac_ext <<_ACEOF 2756/* confdefs.h. */ 2757_ACEOF 2758cat confdefs.h >>conftest.$ac_ext 2759cat >>conftest.$ac_ext <<_ACEOF 2760/* end confdefs.h. */ 2761 2762 2763int 2764main () 2765{ 2766main (); 2767 ; 2768 return 0; 2769} 2770_ACEOF 2771rm -f conftest.$ac_objext conftest$ac_exeext 2772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2773 (eval $ac_link) 2>conftest.er1 2774 ac_status=$? 2775 grep -v '^ *+' conftest.er1 >conftest.err 2776 rm -f conftest.er1 2777 cat conftest.err >&5 2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2779 (exit $ac_status); } && 2780 { ac_try='test -z "$ac_c_werror_flag" 2781 || test ! -s conftest.err' 2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2783 (eval $ac_try) 2>&5 2784 ac_status=$? 2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2786 (exit $ac_status); }; } && 2787 { ac_try='test -s conftest$ac_exeext' 2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2789 (eval $ac_try) 2>&5 2790 ac_status=$? 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); }; }; then 2793 ac_cv_lib_bz2_main=yes 2794else 2795 echo "$as_me: failed program was:" >&5 2796sed 's/^/| /' conftest.$ac_ext >&5 2797 2798ac_cv_lib_bz2_main=no 2799fi 2800rm -f conftest.err conftest.$ac_objext \ 2801 conftest$ac_exeext conftest.$ac_ext 2802LIBS=$ac_check_lib_save_LIBS 2803fi 2804echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_main" >&5 2805echo "${ECHO_T}$ac_cv_lib_bz2_main" >&6 2806if test $ac_cv_lib_bz2_main = yes; then 2807 cat >>confdefs.h <<_ACEOF 2808#define HAVE_LIBBZ2 1 2809_ACEOF 2810 2811 LIBS="-lbz2 $LIBS" 2812 2813fi 2814 2815fi 2816 2817# for iconv 2818if test "$isiconv" = "yes" 2819then 2820 2821echo "$as_me:$LINENO: checking for main in -liconv" >&5 2822echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6 2823if test "${ac_cv_lib_iconv_main+set}" = set; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825else 2826 ac_check_lib_save_LIBS=$LIBS 2827LIBS="-liconv $LIBS" 2828cat >conftest.$ac_ext <<_ACEOF 2829/* confdefs.h. */ 2830_ACEOF 2831cat confdefs.h >>conftest.$ac_ext 2832cat >>conftest.$ac_ext <<_ACEOF 2833/* end confdefs.h. */ 2834 2835 2836int 2837main () 2838{ 2839main (); 2840 ; 2841 return 0; 2842} 2843_ACEOF 2844rm -f conftest.$ac_objext conftest$ac_exeext 2845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2846 (eval $ac_link) 2>conftest.er1 2847 ac_status=$? 2848 grep -v '^ *+' conftest.er1 >conftest.err 2849 rm -f conftest.er1 2850 cat conftest.err >&5 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); } && 2853 { ac_try='test -z "$ac_c_werror_flag" 2854 || test ! -s conftest.err' 2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2856 (eval $ac_try) 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); }; } && 2860 { ac_try='test -s conftest$ac_exeext' 2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2862 (eval $ac_try) 2>&5 2863 ac_status=$? 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); }; }; then 2866 ac_cv_lib_iconv_main=yes 2867else 2868 echo "$as_me: failed program was:" >&5 2869sed 's/^/| /' conftest.$ac_ext >&5 2870 2871ac_cv_lib_iconv_main=no 2872fi 2873rm -f conftest.err conftest.$ac_objext \ 2874 conftest$ac_exeext conftest.$ac_ext 2875LIBS=$ac_check_lib_save_LIBS 2876fi 2877echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5 2878echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6 2879if test $ac_cv_lib_iconv_main = yes; then 2880 cat >>confdefs.h <<_ACEOF 2881#define HAVE_LIBICONV 1 2882_ACEOF 2883 2884 LIBS="-liconv $LIBS" 2885 2886fi 2887 2888fi 2889 2890# For old BSDs 2891if test "$ispthread" = "yes" && uname -a | grep BSD > /dev/null && 2892 test -f /usr/lib/libc_r.a && test ! -f /usr/lib/libpthread.a 2893then 2894 LIBS=`printf '%s' "$LIBS" | sed 's/-lc/-lc_r/g'` 2895fi 2896 2897# Duplication of QDBM for C 2898echo "$as_me:$LINENO: checking for main in -lqdbm" >&5 2899echo $ECHO_N "checking for main in -lqdbm... $ECHO_C" >&6 2900if test "${ac_cv_lib_qdbm_main+set}" = set; then 2901 echo $ECHO_N "(cached) $ECHO_C" >&6 2902else 2903 ac_check_lib_save_LIBS=$LIBS 2904LIBS="-lqdbm $LIBS" 2905cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911 2912 2913int 2914main () 2915{ 2916main (); 2917 ; 2918 return 0; 2919} 2920_ACEOF 2921rm -f conftest.$ac_objext conftest$ac_exeext 2922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2923 (eval $ac_link) 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } && 2930 { ac_try='test -z "$ac_c_werror_flag" 2931 || test ! -s conftest.err' 2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2933 (eval $ac_try) 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); }; } && 2937 { ac_try='test -s conftest$ac_exeext' 2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2939 (eval $ac_try) 2>&5 2940 ac_status=$? 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); }; }; then 2943 ac_cv_lib_qdbm_main=yes 2944else 2945 echo "$as_me: failed program was:" >&5 2946sed 's/^/| /' conftest.$ac_ext >&5 2947 2948ac_cv_lib_qdbm_main=no 2949fi 2950rm -f conftest.err conftest.$ac_objext \ 2951 conftest$ac_exeext conftest.$ac_ext 2952LIBS=$ac_check_lib_save_LIBS 2953fi 2954echo "$as_me:$LINENO: result: $ac_cv_lib_qdbm_main" >&5 2955echo "${ECHO_T}$ac_cv_lib_qdbm_main" >&6 2956if test $ac_cv_lib_qdbm_main = yes; then 2957 if test "$isnowarn" != "yes" 2958 then 2959 printf '#================================================================\n' 1>&2 2960 printf '# WARNING: The existing library was detected.\n' 1>&2 2961 printf '#================================================================\n' 1>&2 2962 fi 2963 2964fi 2965 2966 2967 2968 2969#================================================================ 2970# Generic Settings 2971#================================================================ 2972 2973 2974# Export variables 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986# Targets 2987 ac_config_files="$ac_config_files Makefile LTmakefile qdbm.spec qdbm.pc" 2988cat >confcache <<\_ACEOF 2989# This file is a shell script that caches the results of configure 2990# tests run on this system so they can be shared between configure 2991# scripts and configure runs, see configure's option --config-cache. 2992# It is not useful on other systems. If it contains results you don't 2993# want to keep, you may remove or edit it. 2994# 2995# config.status only pays attention to the cache file if you give it 2996# the --recheck option to rerun configure. 2997# 2998# `ac_cv_env_foo' variables (set or unset) will be overridden when 2999# loading this file, other *unset* `ac_cv_foo' will be assigned the 3000# following values. 3001 3002_ACEOF 3003 3004# The following way of writing the cache mishandles newlines in values, 3005# but we know of no workaround that is simple, portable, and efficient. 3006# So, don't put newlines in cache variables' values. 3007# Ultrix sh set writes to stderr and can't be redirected directly, 3008# and sets the high bit in the cache file unless we assign to the vars. 3009{ 3010 (set) 2>&1 | 3011 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3012 *ac_space=\ *) 3013 # `set' does not quote correctly, so add quotes (double-quote 3014 # substitution turns \\\\ into \\, and sed turns \\ into \). 3015 sed -n \ 3016 "s/'/'\\\\''/g; 3017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3018 ;; 3019 *) 3020 # `set' quotes correctly as required by POSIX, so do not add quotes. 3021 sed -n \ 3022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3023 ;; 3024 esac; 3025} | 3026 sed ' 3027 t clear 3028 : clear 3029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3030 t end 3031 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3032 : end' >>confcache 3033if diff $cache_file confcache >/dev/null 2>&1; then :; else 3034 if test -w $cache_file; then 3035 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3036 cat confcache >$cache_file 3037 else 3038 echo "not updating unwritable cache $cache_file" 3039 fi 3040fi 3041rm -f confcache 3042 3043test "x$prefix" = xNONE && prefix=$ac_default_prefix 3044# Let make expand exec_prefix. 3045test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3046 3047# VPATH may cause trouble with some makes, so we remove $(srcdir), 3048# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3049# trailing colons and then remove the whole line if VPATH becomes empty 3050# (actually we leave an empty line to preserve line numbers). 3051if test "x$srcdir" = x.; then 3052 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3053s/:*\$(srcdir):*/:/; 3054s/:*\${srcdir}:*/:/; 3055s/:*@srcdir@:*/:/; 3056s/^\([^=]*=[ ]*\):*/\1/; 3057s/:*$//; 3058s/^[^=]*=[ ]*$//; 3059}' 3060fi 3061 3062# Transform confdefs.h into DEFS. 3063# Protect against shell expansion while executing Makefile rules. 3064# Protect against Makefile macro expansion. 3065# 3066# If the first sed substitution is executed (which looks for macros that 3067# take arguments), then we branch to the quote section. Otherwise, 3068# look for a macro that doesn't take arguments. 3069cat >confdef2opt.sed <<\_ACEOF 3070t clear 3071: clear 3072s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 3073t quote 3074s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 3075t quote 3076d 3077: quote 3078s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 3079s,\[,\\&,g 3080s,\],\\&,g 3081s,\$,$$,g 3082p 3083_ACEOF 3084# We use echo to avoid assuming a particular line-breaking character. 3085# The extra dot is to prevent the shell from consuming trailing 3086# line-breaks from the sub-command output. A line-break within 3087# single-quotes doesn't work because, if this script is created in a 3088# platform that uses two characters for line-breaks (e.g., DOS), tr 3089# would break. 3090ac_LF_and_DOT=`echo; echo .` 3091DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 3092rm -f confdef2opt.sed 3093 3094 3095ac_libobjs= 3096ac_ltlibobjs= 3097for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3098 # 1. Remove the extension, and $U if already installed. 3099 ac_i=`echo "$ac_i" | 3100 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3101 # 2. Add them. 3102 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3103 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 3104done 3105LIBOBJS=$ac_libobjs 3106 3107LTLIBOBJS=$ac_ltlibobjs 3108 3109 3110 3111: ${CONFIG_STATUS=./config.status} 3112ac_clean_files_save=$ac_clean_files 3113ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3114{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3115echo "$as_me: creating $CONFIG_STATUS" >&6;} 3116cat >$CONFIG_STATUS <<_ACEOF 3117#! $SHELL 3118# Generated by $as_me. 3119# Run this file to recreate the current configuration. 3120# Compiler output produced by configure, useful for debugging 3121# configure, is in config.log if it exists. 3122 3123debug=false 3124ac_cs_recheck=false 3125ac_cs_silent=false 3126SHELL=\${CONFIG_SHELL-$SHELL} 3127_ACEOF 3128 3129cat >>$CONFIG_STATUS <<\_ACEOF 3130## --------------------- ## 3131## M4sh Initialization. ## 3132## --------------------- ## 3133 3134# Be Bourne compatible 3135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3136 emulate sh 3137 NULLCMD=: 3138 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3139 # is contrary to our usage. Disable this feature. 3140 alias -g '${1+"$@"}'='"$@"' 3141elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3142 set -o posix 3143fi 3144DUALCASE=1; export DUALCASE # for MKS sh 3145 3146# Support unset when possible. 3147if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3148 as_unset=unset 3149else 3150 as_unset=false 3151fi 3152 3153 3154# Work around bugs in pre-3.0 UWIN ksh. 3155$as_unset ENV MAIL MAILPATH 3156PS1='$ ' 3157PS2='> ' 3158PS4='+ ' 3159 3160# NLS nuisances. 3161for as_var in \ 3162 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3163 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3164 LC_TELEPHONE LC_TIME 3165do 3166 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 3167 eval $as_var=C; export $as_var 3168 else 3169 $as_unset $as_var 3170 fi 3171done 3172 3173# Required to use basename. 3174if expr a : '\(a\)' >/dev/null 2>&1; then 3175 as_expr=expr 3176else 3177 as_expr=false 3178fi 3179 3180if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 3181 as_basename=basename 3182else 3183 as_basename=false 3184fi 3185 3186 3187# Name of the executable. 3188as_me=`$as_basename "$0" || 3189$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3190 X"$0" : 'X\(//\)$' \| \ 3191 X"$0" : 'X\(/\)$' \| \ 3192 . : '\(.\)' 2>/dev/null || 3193echo X/"$0" | 3194 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3195 /^X\/\(\/\/\)$/{ s//\1/; q; } 3196 /^X\/\(\/\).*/{ s//\1/; q; } 3197 s/.*/./; q'` 3198 3199 3200# PATH needs CR, and LINENO needs CR and PATH. 3201# Avoid depending upon Character Ranges. 3202as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3203as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3204as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3205as_cr_digits='0123456789' 3206as_cr_alnum=$as_cr_Letters$as_cr_digits 3207 3208# The user is always right. 3209if test "${PATH_SEPARATOR+set}" != set; then 3210 echo "#! /bin/sh" >conf$$.sh 3211 echo "exit 0" >>conf$$.sh 3212 chmod +x conf$$.sh 3213 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3214 PATH_SEPARATOR=';' 3215 else 3216 PATH_SEPARATOR=: 3217 fi 3218 rm -f conf$$.sh 3219fi 3220 3221 3222 as_lineno_1=$LINENO 3223 as_lineno_2=$LINENO 3224 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3225 test "x$as_lineno_1" != "x$as_lineno_2" && 3226 test "x$as_lineno_3" = "x$as_lineno_2" || { 3227 # Find who we are. Look in the path if we contain no path at all 3228 # relative or not. 3229 case $0 in 3230 *[\\/]* ) as_myself=$0 ;; 3231 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH 3233do 3234 IFS=$as_save_IFS 3235 test -z "$as_dir" && as_dir=. 3236 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3237done 3238 3239 ;; 3240 esac 3241 # We did not find ourselves, most probably we were run as `sh COMMAND' 3242 # in which case we are not to be found in the path. 3243 if test "x$as_myself" = x; then 3244 as_myself=$0 3245 fi 3246 if test ! -f "$as_myself"; then 3247 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3248echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3249 { (exit 1); exit 1; }; } 3250 fi 3251 case $CONFIG_SHELL in 3252 '') 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3255do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for as_base in sh bash ksh sh5; do 3259 case $as_dir in 3260 /*) 3261 if ("$as_dir/$as_base" -c ' 3262 as_lineno_1=$LINENO 3263 as_lineno_2=$LINENO 3264 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3265 test "x$as_lineno_1" != "x$as_lineno_2" && 3266 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3267 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3268 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3269 CONFIG_SHELL=$as_dir/$as_base 3270 export CONFIG_SHELL 3271 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3272 fi;; 3273 esac 3274 done 3275done 3276;; 3277 esac 3278 3279 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3280 # uniformly replaced by the line number. The first 'sed' inserts a 3281 # line-number line before each line; the second 'sed' does the real 3282 # work. The second script uses 'N' to pair each line-number line 3283 # with the numbered line, and appends trailing '-' during 3284 # substitution so that $LINENO is not a special case at line end. 3285 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3286 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3287 sed '=' <$as_myself | 3288 sed ' 3289 N 3290 s,$,-, 3291 : loop 3292 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3293 t loop 3294 s,-$,, 3295 s,^['$as_cr_digits']*\n,, 3296 ' >$as_me.lineno && 3297 chmod +x $as_me.lineno || 3298 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3299echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3300 { (exit 1); exit 1; }; } 3301 3302 # Don't try to exec as it changes $[0], causing all sort of problems 3303 # (the dirname of $[0] is not the place where we might find the 3304 # original and so on. Autoconf is especially sensible to this). 3305 . ./$as_me.lineno 3306 # Exit status is that of the last command. 3307 exit 3308} 3309 3310 3311case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3312 *c*,-n*) ECHO_N= ECHO_C=' 3313' ECHO_T=' ' ;; 3314 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3315 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3316esac 3317 3318if expr a : '\(a\)' >/dev/null 2>&1; then 3319 as_expr=expr 3320else 3321 as_expr=false 3322fi 3323 3324rm -f conf$$ conf$$.exe conf$$.file 3325echo >conf$$.file 3326if ln -s conf$$.file conf$$ 2>/dev/null; then 3327 # We could just check for DJGPP; but this test a) works b) is more generic 3328 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3329 if test -f conf$$.exe; then 3330 # Don't use ln at all; we don't have any links 3331 as_ln_s='cp -p' 3332 else 3333 as_ln_s='ln -s' 3334 fi 3335elif ln conf$$.file conf$$ 2>/dev/null; then 3336 as_ln_s=ln 3337else 3338 as_ln_s='cp -p' 3339fi 3340rm -f conf$$ conf$$.exe conf$$.file 3341 3342if mkdir -p . 2>/dev/null; then 3343 as_mkdir_p=: 3344else 3345 test -d ./-p && rmdir ./-p 3346 as_mkdir_p=false 3347fi 3348 3349as_executable_p="test -f" 3350 3351# Sed expression to map a string onto a valid CPP name. 3352as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3353 3354# Sed expression to map a string onto a valid variable name. 3355as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3356 3357 3358# IFS 3359# We need space, tab and new line, in precisely that order. 3360as_nl=' 3361' 3362IFS=" $as_nl" 3363 3364# CDPATH. 3365$as_unset CDPATH 3366 3367exec 6>&1 3368 3369# Open the log real soon, to keep \$[0] and so on meaningful, and to 3370# report actual input values of CONFIG_FILES etc. instead of their 3371# values after options handling. Logging --version etc. is OK. 3372exec 5>>config.log 3373{ 3374 echo 3375 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3376## Running $as_me. ## 3377_ASBOX 3378} >&5 3379cat >&5 <<_CSEOF 3380 3381This file was extended by qdbm $as_me 1.8.77, which was 3382generated by GNU Autoconf 2.59. Invocation command line was 3383 3384 CONFIG_FILES = $CONFIG_FILES 3385 CONFIG_HEADERS = $CONFIG_HEADERS 3386 CONFIG_LINKS = $CONFIG_LINKS 3387 CONFIG_COMMANDS = $CONFIG_COMMANDS 3388 $ $0 $@ 3389 3390_CSEOF 3391echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3392echo >&5 3393_ACEOF 3394 3395# Files that config.status was made for. 3396if test -n "$ac_config_files"; then 3397 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3398fi 3399 3400if test -n "$ac_config_headers"; then 3401 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3402fi 3403 3404if test -n "$ac_config_links"; then 3405 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3406fi 3407 3408if test -n "$ac_config_commands"; then 3409 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3410fi 3411 3412cat >>$CONFIG_STATUS <<\_ACEOF 3413 3414ac_cs_usage="\ 3415\`$as_me' instantiates files from templates according to the 3416current configuration. 3417 3418Usage: $0 [OPTIONS] [FILE]... 3419 3420 -h, --help print this help, then exit 3421 -V, --version print version number, then exit 3422 -q, --quiet do not print progress messages 3423 -d, --debug don't remove temporary files 3424 --recheck update $as_me by reconfiguring in the same conditions 3425 --file=FILE[:TEMPLATE] 3426 instantiate the configuration file FILE 3427 3428Configuration files: 3429$config_files 3430 3431Report bugs to <bug-autoconf@gnu.org>." 3432_ACEOF 3433 3434cat >>$CONFIG_STATUS <<_ACEOF 3435ac_cs_version="\\ 3436qdbm config.status 1.8.77 3437configured by $0, generated by GNU Autoconf 2.59, 3438 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3439 3440Copyright (C) 2003 Free Software Foundation, Inc. 3441This config.status script is free software; the Free Software Foundation 3442gives unlimited permission to copy, distribute and modify it." 3443srcdir=$srcdir 3444_ACEOF 3445 3446cat >>$CONFIG_STATUS <<\_ACEOF 3447# If no file are specified by the user, then we need to provide default 3448# value. By we need to know if files were specified by the user. 3449ac_need_defaults=: 3450while test $# != 0 3451do 3452 case $1 in 3453 --*=*) 3454 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3455 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3456 ac_shift=: 3457 ;; 3458 -*) 3459 ac_option=$1 3460 ac_optarg=$2 3461 ac_shift=shift 3462 ;; 3463 *) # This is not an option, so the user has probably given explicit 3464 # arguments. 3465 ac_option=$1 3466 ac_need_defaults=false;; 3467 esac 3468 3469 case $ac_option in 3470 # Handling of the options. 3471_ACEOF 3472cat >>$CONFIG_STATUS <<\_ACEOF 3473 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3474 ac_cs_recheck=: ;; 3475 --version | --vers* | -V ) 3476 echo "$ac_cs_version"; exit 0 ;; 3477 --he | --h) 3478 # Conflict between --help and --header 3479 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3480Try \`$0 --help' for more information." >&5 3481echo "$as_me: error: ambiguous option: $1 3482Try \`$0 --help' for more information." >&2;} 3483 { (exit 1); exit 1; }; };; 3484 --help | --hel | -h ) 3485 echo "$ac_cs_usage"; exit 0 ;; 3486 --debug | --d* | -d ) 3487 debug=: ;; 3488 --file | --fil | --fi | --f ) 3489 $ac_shift 3490 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3491 ac_need_defaults=false;; 3492 --header | --heade | --head | --hea ) 3493 $ac_shift 3494 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3495 ac_need_defaults=false;; 3496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3497 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3498 ac_cs_silent=: ;; 3499 3500 # This is an error. 3501 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3502Try \`$0 --help' for more information." >&5 3503echo "$as_me: error: unrecognized option: $1 3504Try \`$0 --help' for more information." >&2;} 3505 { (exit 1); exit 1; }; } ;; 3506 3507 *) ac_config_targets="$ac_config_targets $1" ;; 3508 3509 esac 3510 shift 3511done 3512 3513ac_configure_extra_args= 3514 3515if $ac_cs_silent; then 3516 exec 6>/dev/null 3517 ac_configure_extra_args="$ac_configure_extra_args --silent" 3518fi 3519 3520_ACEOF 3521cat >>$CONFIG_STATUS <<_ACEOF 3522if \$ac_cs_recheck; then 3523 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3524 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3525fi 3526 3527_ACEOF 3528 3529 3530 3531 3532 3533cat >>$CONFIG_STATUS <<\_ACEOF 3534for ac_config_target in $ac_config_targets 3535do 3536 case "$ac_config_target" in 3537 # Handling of arguments. 3538 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3539 "LTmakefile" ) CONFIG_FILES="$CONFIG_FILES LTmakefile" ;; 3540 "qdbm.spec" ) CONFIG_FILES="$CONFIG_FILES qdbm.spec" ;; 3541 "qdbm.pc" ) CONFIG_FILES="$CONFIG_FILES qdbm.pc" ;; 3542 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3543echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3544 { (exit 1); exit 1; }; };; 3545 esac 3546done 3547 3548# If the user did not use the arguments to specify the items to instantiate, 3549# then the envvar interface is used. Set only those that are not. 3550# We use the long form for the default assignment because of an extremely 3551# bizarre bug on SunOS 4.1.3. 3552if $ac_need_defaults; then 3553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3554fi 3555 3556# Have a temporary directory for convenience. Make it in the build tree 3557# simply because there is no reason to put it here, and in addition, 3558# creating and moving files from /tmp can sometimes cause problems. 3559# Create a temporary directory, and hook for its removal unless debugging. 3560$debug || 3561{ 3562 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3563 trap '{ (exit 1); exit 1; }' 1 2 13 15 3564} 3565 3566# Create a (secure) tmp directory for tmp files. 3567 3568{ 3569 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3570 test -n "$tmp" && test -d "$tmp" 3571} || 3572{ 3573 tmp=./confstat$$-$RANDOM 3574 (umask 077 && mkdir $tmp) 3575} || 3576{ 3577 echo "$me: cannot create a temporary directory in ." >&2 3578 { (exit 1); exit 1; } 3579} 3580 3581_ACEOF 3582 3583cat >>$CONFIG_STATUS <<_ACEOF 3584 3585# 3586# CONFIG_FILES section. 3587# 3588 3589# No need to generate the scripts if there are no CONFIG_FILES. 3590# This happens for instance when ./config.status config.h 3591if test -n "\$CONFIG_FILES"; then 3592 # Protect against being on the right side of a sed subst in config.status. 3593 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3594 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3595s,@SHELL@,$SHELL,;t t 3596s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3597s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3598s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3599s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3600s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3601s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3602s,@exec_prefix@,$exec_prefix,;t t 3603s,@prefix@,$prefix,;t t 3604s,@program_transform_name@,$program_transform_name,;t t 3605s,@bindir@,$bindir,;t t 3606s,@sbindir@,$sbindir,;t t 3607s,@libexecdir@,$libexecdir,;t t 3608s,@datadir@,$datadir,;t t 3609s,@sysconfdir@,$sysconfdir,;t t 3610s,@sharedstatedir@,$sharedstatedir,;t t 3611s,@localstatedir@,$localstatedir,;t t 3612s,@libdir@,$libdir,;t t 3613s,@includedir@,$includedir,;t t 3614s,@oldincludedir@,$oldincludedir,;t t 3615s,@infodir@,$infodir,;t t 3616s,@mandir@,$mandir,;t t 3617s,@build_alias@,$build_alias,;t t 3618s,@host_alias@,$host_alias,;t t 3619s,@target_alias@,$target_alias,;t t 3620s,@DEFS@,$DEFS,;t t 3621s,@ECHO_C@,$ECHO_C,;t t 3622s,@ECHO_N@,$ECHO_N,;t t 3623s,@ECHO_T@,$ECHO_T,;t t 3624s,@LIBS@,$LIBS,;t t 3625s,@CC@,$CC,;t t 3626s,@CFLAGS@,$CFLAGS,;t t 3627s,@LDFLAGS@,$LDFLAGS,;t t 3628s,@CPPFLAGS@,$CPPFLAGS,;t t 3629s,@ac_ct_CC@,$ac_ct_CC,;t t 3630s,@EXEEXT@,$EXEEXT,;t t 3631s,@OBJEXT@,$OBJEXT,;t t 3632s,@LIBVER@,$LIBVER,;t t 3633s,@LIBREV@,$LIBREV,;t t 3634s,@TARGETS@,$TARGETS,;t t 3635s,@MYDEFS@,$MYDEFS,;t t 3636s,@MYOPTS@,$MYOPTS,;t t 3637s,@MGWLIBS@,$MGWLIBS,;t t 3638s,@LD@,$LD,;t t 3639s,@AR@,$AR,;t t 3640s,@LIBOBJS@,$LIBOBJS,;t t 3641s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3642CEOF 3643 3644_ACEOF 3645 3646 cat >>$CONFIG_STATUS <<\_ACEOF 3647 # Split the substitutions into bite-sized pieces for seds with 3648 # small command number limits, like on Digital OSF/1 and HP-UX. 3649 ac_max_sed_lines=48 3650 ac_sed_frag=1 # Number of current file. 3651 ac_beg=1 # First line for current file. 3652 ac_end=$ac_max_sed_lines # Line after last line for current file. 3653 ac_more_lines=: 3654 ac_sed_cmds= 3655 while $ac_more_lines; do 3656 if test $ac_beg -gt 1; then 3657 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3658 else 3659 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3660 fi 3661 if test ! -s $tmp/subs.frag; then 3662 ac_more_lines=false 3663 else 3664 # The purpose of the label and of the branching condition is to 3665 # speed up the sed processing (if there are no `@' at all, there 3666 # is no need to browse any of the substitutions). 3667 # These are the two extra sed commands mentioned above. 3668 (echo ':t 3669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3670 if test -z "$ac_sed_cmds"; then 3671 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3672 else 3673 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3674 fi 3675 ac_sed_frag=`expr $ac_sed_frag + 1` 3676 ac_beg=$ac_end 3677 ac_end=`expr $ac_end + $ac_max_sed_lines` 3678 fi 3679 done 3680 if test -z "$ac_sed_cmds"; then 3681 ac_sed_cmds=cat 3682 fi 3683fi # test -n "$CONFIG_FILES" 3684 3685_ACEOF 3686cat >>$CONFIG_STATUS <<\_ACEOF 3687for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3689 case $ac_file in 3690 - | *:- | *:-:* ) # input from stdin 3691 cat >$tmp/stdin 3692 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3693 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3694 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3696 * ) ac_file_in=$ac_file.in ;; 3697 esac 3698 3699 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3700 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3701$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3702 X"$ac_file" : 'X\(//\)[^/]' \| \ 3703 X"$ac_file" : 'X\(//\)$' \| \ 3704 X"$ac_file" : 'X\(/\)' \| \ 3705 . : '\(.\)' 2>/dev/null || 3706echo X"$ac_file" | 3707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3708 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3709 /^X\(\/\/\)$/{ s//\1/; q; } 3710 /^X\(\/\).*/{ s//\1/; q; } 3711 s/.*/./; q'` 3712 { if $as_mkdir_p; then 3713 mkdir -p "$ac_dir" 3714 else 3715 as_dir="$ac_dir" 3716 as_dirs= 3717 while test ! -d "$as_dir"; do 3718 as_dirs="$as_dir $as_dirs" 3719 as_dir=`(dirname "$as_dir") 2>/dev/null || 3720$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3721 X"$as_dir" : 'X\(//\)[^/]' \| \ 3722 X"$as_dir" : 'X\(//\)$' \| \ 3723 X"$as_dir" : 'X\(/\)' \| \ 3724 . : '\(.\)' 2>/dev/null || 3725echo X"$as_dir" | 3726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3727 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3728 /^X\(\/\/\)$/{ s//\1/; q; } 3729 /^X\(\/\).*/{ s//\1/; q; } 3730 s/.*/./; q'` 3731 done 3732 test ! -n "$as_dirs" || mkdir $as_dirs 3733 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3734echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3735 { (exit 1); exit 1; }; }; } 3736 3737 ac_builddir=. 3738 3739if test "$ac_dir" != .; then 3740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3741 # A "../" for each directory in $ac_dir_suffix. 3742 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3743else 3744 ac_dir_suffix= ac_top_builddir= 3745fi 3746 3747case $srcdir in 3748 .) # No --srcdir option. We are building in place. 3749 ac_srcdir=. 3750 if test -z "$ac_top_builddir"; then 3751 ac_top_srcdir=. 3752 else 3753 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3754 fi ;; 3755 [\\/]* | ?:[\\/]* ) # Absolute path. 3756 ac_srcdir=$srcdir$ac_dir_suffix; 3757 ac_top_srcdir=$srcdir ;; 3758 *) # Relative path. 3759 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3760 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3761esac 3762 3763# Do not use `cd foo && pwd` to compute absolute paths, because 3764# the directories may not exist. 3765case `pwd` in 3766.) ac_abs_builddir="$ac_dir";; 3767*) 3768 case "$ac_dir" in 3769 .) ac_abs_builddir=`pwd`;; 3770 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3771 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3772 esac;; 3773esac 3774case $ac_abs_builddir in 3775.) ac_abs_top_builddir=${ac_top_builddir}.;; 3776*) 3777 case ${ac_top_builddir}. in 3778 .) ac_abs_top_builddir=$ac_abs_builddir;; 3779 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3780 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3781 esac;; 3782esac 3783case $ac_abs_builddir in 3784.) ac_abs_srcdir=$ac_srcdir;; 3785*) 3786 case $ac_srcdir in 3787 .) ac_abs_srcdir=$ac_abs_builddir;; 3788 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3789 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3790 esac;; 3791esac 3792case $ac_abs_builddir in 3793.) ac_abs_top_srcdir=$ac_top_srcdir;; 3794*) 3795 case $ac_top_srcdir in 3796 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3797 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3798 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3799 esac;; 3800esac 3801 3802 3803 3804 if test x"$ac_file" != x-; then 3805 { echo "$as_me:$LINENO: creating $ac_file" >&5 3806echo "$as_me: creating $ac_file" >&6;} 3807 rm -f "$ac_file" 3808 fi 3809 # Let's still pretend it is `configure' which instantiates (i.e., don't 3810 # use $as_me), people would be surprised to read: 3811 # /* config.h. Generated by config.status. */ 3812 if test x"$ac_file" = x-; then 3813 configure_input= 3814 else 3815 configure_input="$ac_file. " 3816 fi 3817 configure_input=$configure_input"Generated from `echo $ac_file_in | 3818 sed 's,.*/,,'` by configure." 3819 3820 # First look for the input files in the build tree, otherwise in the 3821 # src tree. 3822 ac_file_inputs=`IFS=: 3823 for f in $ac_file_in; do 3824 case $f in 3825 -) echo $tmp/stdin ;; 3826 [\\/$]*) 3827 # Absolute (can't be DOS-style, as IFS=:) 3828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3829echo "$as_me: error: cannot find input file: $f" >&2;} 3830 { (exit 1); exit 1; }; } 3831 echo "$f";; 3832 *) # Relative 3833 if test -f "$f"; then 3834 # Build tree 3835 echo "$f" 3836 elif test -f "$srcdir/$f"; then 3837 # Source tree 3838 echo "$srcdir/$f" 3839 else 3840 # /dev/null tree 3841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3842echo "$as_me: error: cannot find input file: $f" >&2;} 3843 { (exit 1); exit 1; }; } 3844 fi;; 3845 esac 3846 done` || { (exit 1); exit 1; } 3847_ACEOF 3848cat >>$CONFIG_STATUS <<_ACEOF 3849 sed "$ac_vpsub 3850$extrasub 3851_ACEOF 3852cat >>$CONFIG_STATUS <<\_ACEOF 3853:t 3854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3855s,@configure_input@,$configure_input,;t t 3856s,@srcdir@,$ac_srcdir,;t t 3857s,@abs_srcdir@,$ac_abs_srcdir,;t t 3858s,@top_srcdir@,$ac_top_srcdir,;t t 3859s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3860s,@builddir@,$ac_builddir,;t t 3861s,@abs_builddir@,$ac_abs_builddir,;t t 3862s,@top_builddir@,$ac_top_builddir,;t t 3863s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3864" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3865 rm -f $tmp/stdin 3866 if test x"$ac_file" != x-; then 3867 mv $tmp/out $ac_file 3868 else 3869 cat $tmp/out 3870 rm -f $tmp/out 3871 fi 3872 3873done 3874_ACEOF 3875 3876cat >>$CONFIG_STATUS <<\_ACEOF 3877 3878{ (exit 0); exit 0; } 3879_ACEOF 3880chmod +x $CONFIG_STATUS 3881ac_clean_files=$ac_clean_files_save 3882 3883 3884# configure is writing to config.log, and then calls config.status. 3885# config.status does its own redirection, appending to config.log. 3886# Unfortunately, on DOS this fails, as config.log is still kept open 3887# by configure, so config.status won't be able to write to it; its 3888# output is simply discarded. So we exec the FD to /dev/null, 3889# effectively closing config.log, so it can be properly (re)opened and 3890# appended to by config.status. When coming back to configure, we 3891# need to make the FD available again. 3892if test "$no_create" != yes; then 3893 ac_cs_success=: 3894 ac_config_status_args= 3895 test "$silent" = yes && 3896 ac_config_status_args="$ac_config_status_args --quiet" 3897 exec 5>/dev/null 3898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3899 exec 5>>config.log 3900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3901 # would make configure fail if this is the last instruction. 3902 $ac_cs_success || { (exit 1); exit 1; } 3903fi 3904 3905 3906# Messages 3907printf '#================================================================\n' 3908printf '# Ready to make.\n' 3909printf '#================================================================\n' 3910 3911 3912 3913# END OF FILE 3914