1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="bonnie++.cpp" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653version 654stripping 655debug 656CXX 657CXXFLAGS 658LDFLAGS 659CPPFLAGS 660ac_ct_CXX 661EXEEXT 662OBJEXT 663CXXCPP 664INSTALL_PROGRAM 665INSTALL_SCRIPT 666INSTALL_DATA 667GREP 668EGREP 669semun 670sa_sigaction 671bool 672true_false 673snprintf 674exes 675man8 676aix_mem_size 677LIBOBJS 678LTLIBOBJS' 679ac_subst_files='' 680 ac_precious_vars='build_alias 681host_alias 682target_alias 683CXX 684CXXFLAGS 685LDFLAGS 686LIBS 687CPPFLAGS 688CCC 689CXXCPP' 690 691 692# Initialize some variables set by options. 693ac_init_help= 694ac_init_version=false 695# The variables have the same names as the options, with 696# dashes changed to underlines. 697cache_file=/dev/null 698exec_prefix=NONE 699no_create= 700no_recursion= 701prefix=NONE 702program_prefix=NONE 703program_suffix=NONE 704program_transform_name=s,x,x, 705silent= 706site= 707srcdir= 708verbose= 709x_includes=NONE 710x_libraries=NONE 711 712# Installation directory options. 713# These are left unexpanded so users can "make install exec_prefix=/foo" 714# and all the variables that are supposed to be based on exec_prefix 715# by default will actually change. 716# Use braces instead of parens because sh, perl, etc. also accept them. 717# (The list follows the same order as the GNU Coding Standards.) 718bindir='${exec_prefix}/bin' 719sbindir='${exec_prefix}/sbin' 720libexecdir='${exec_prefix}/libexec' 721datarootdir='${prefix}/share' 722datadir='${datarootdir}' 723sysconfdir='${prefix}/etc' 724sharedstatedir='${prefix}/com' 725localstatedir='${prefix}/var' 726includedir='${prefix}/include' 727oldincludedir='/usr/include' 728docdir='${datarootdir}/doc/${PACKAGE}' 729infodir='${datarootdir}/info' 730htmldir='${docdir}' 731dvidir='${docdir}' 732pdfdir='${docdir}' 733psdir='${docdir}' 734libdir='${exec_prefix}/lib' 735localedir='${datarootdir}/locale' 736mandir='${datarootdir}/man' 737 738ac_prev= 739ac_dashdash= 740for ac_option 741do 742 # If the previous option needs an argument, assign it. 743 if test -n "$ac_prev"; then 744 eval $ac_prev=\$ac_option 745 ac_prev= 746 continue 747 fi 748 749 case $ac_option in 750 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 751 *) ac_optarg=yes ;; 752 esac 753 754 # Accept the important Cygnus configure options, so we can diagnose typos. 755 756 case $ac_dashdash$ac_option in 757 --) 758 ac_dashdash=yes ;; 759 760 -bindir | --bindir | --bindi | --bind | --bin | --bi) 761 ac_prev=bindir ;; 762 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 763 bindir=$ac_optarg ;; 764 765 -build | --build | --buil | --bui | --bu) 766 ac_prev=build_alias ;; 767 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 768 build_alias=$ac_optarg ;; 769 770 -cache-file | --cache-file | --cache-fil | --cache-fi \ 771 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 772 ac_prev=cache_file ;; 773 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 774 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 775 cache_file=$ac_optarg ;; 776 777 --config-cache | -C) 778 cache_file=config.cache ;; 779 780 -datadir | --datadir | --datadi | --datad) 781 ac_prev=datadir ;; 782 -datadir=* | --datadir=* | --datadi=* | --datad=*) 783 datadir=$ac_optarg ;; 784 785 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 786 | --dataroo | --dataro | --datar) 787 ac_prev=datarootdir ;; 788 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 789 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 790 datarootdir=$ac_optarg ;; 791 792 -disable-* | --disable-*) 793 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 794 # Reject names that are not valid shell variable names. 795 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 796 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 797 { (exit 1); exit 1; }; } 798 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 799 eval enable_$ac_feature=no ;; 800 801 -docdir | --docdir | --docdi | --doc | --do) 802 ac_prev=docdir ;; 803 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 804 docdir=$ac_optarg ;; 805 806 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 807 ac_prev=dvidir ;; 808 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 809 dvidir=$ac_optarg ;; 810 811 -enable-* | --enable-*) 812 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 813 # Reject names that are not valid shell variable names. 814 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 815 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 816 { (exit 1); exit 1; }; } 817 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 818 eval enable_$ac_feature=\$ac_optarg ;; 819 820 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 821 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 822 | --exec | --exe | --ex) 823 ac_prev=exec_prefix ;; 824 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 825 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 826 | --exec=* | --exe=* | --ex=*) 827 exec_prefix=$ac_optarg ;; 828 829 -gas | --gas | --ga | --g) 830 # Obsolete; use --with-gas. 831 with_gas=yes ;; 832 833 -help | --help | --hel | --he | -h) 834 ac_init_help=long ;; 835 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 836 ac_init_help=recursive ;; 837 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 838 ac_init_help=short ;; 839 840 -host | --host | --hos | --ho) 841 ac_prev=host_alias ;; 842 -host=* | --host=* | --hos=* | --ho=*) 843 host_alias=$ac_optarg ;; 844 845 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 846 ac_prev=htmldir ;; 847 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 848 | --ht=*) 849 htmldir=$ac_optarg ;; 850 851 -includedir | --includedir | --includedi | --included | --include \ 852 | --includ | --inclu | --incl | --inc) 853 ac_prev=includedir ;; 854 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 855 | --includ=* | --inclu=* | --incl=* | --inc=*) 856 includedir=$ac_optarg ;; 857 858 -infodir | --infodir | --infodi | --infod | --info | --inf) 859 ac_prev=infodir ;; 860 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 861 infodir=$ac_optarg ;; 862 863 -libdir | --libdir | --libdi | --libd) 864 ac_prev=libdir ;; 865 -libdir=* | --libdir=* | --libdi=* | --libd=*) 866 libdir=$ac_optarg ;; 867 868 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 869 | --libexe | --libex | --libe) 870 ac_prev=libexecdir ;; 871 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 872 | --libexe=* | --libex=* | --libe=*) 873 libexecdir=$ac_optarg ;; 874 875 -localedir | --localedir | --localedi | --localed | --locale) 876 ac_prev=localedir ;; 877 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 878 localedir=$ac_optarg ;; 879 880 -localstatedir | --localstatedir | --localstatedi | --localstated \ 881 | --localstate | --localstat | --localsta | --localst | --locals) 882 ac_prev=localstatedir ;; 883 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 884 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 885 localstatedir=$ac_optarg ;; 886 887 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 888 ac_prev=mandir ;; 889 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 890 mandir=$ac_optarg ;; 891 892 -nfp | --nfp | --nf) 893 # Obsolete; use --without-fp. 894 with_fp=no ;; 895 896 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 897 | --no-cr | --no-c | -n) 898 no_create=yes ;; 899 900 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 901 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 902 no_recursion=yes ;; 903 904 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 905 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 906 | --oldin | --oldi | --old | --ol | --o) 907 ac_prev=oldincludedir ;; 908 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 909 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 910 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 911 oldincludedir=$ac_optarg ;; 912 913 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 914 ac_prev=prefix ;; 915 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 916 prefix=$ac_optarg ;; 917 918 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 919 | --program-pre | --program-pr | --program-p) 920 ac_prev=program_prefix ;; 921 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 922 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 923 program_prefix=$ac_optarg ;; 924 925 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 926 | --program-suf | --program-su | --program-s) 927 ac_prev=program_suffix ;; 928 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 929 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 930 program_suffix=$ac_optarg ;; 931 932 -program-transform-name | --program-transform-name \ 933 | --program-transform-nam | --program-transform-na \ 934 | --program-transform-n | --program-transform- \ 935 | --program-transform | --program-transfor \ 936 | --program-transfo | --program-transf \ 937 | --program-trans | --program-tran \ 938 | --progr-tra | --program-tr | --program-t) 939 ac_prev=program_transform_name ;; 940 -program-transform-name=* | --program-transform-name=* \ 941 | --program-transform-nam=* | --program-transform-na=* \ 942 | --program-transform-n=* | --program-transform-=* \ 943 | --program-transform=* | --program-transfor=* \ 944 | --program-transfo=* | --program-transf=* \ 945 | --program-trans=* | --program-tran=* \ 946 | --progr-tra=* | --program-tr=* | --program-t=*) 947 program_transform_name=$ac_optarg ;; 948 949 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 950 ac_prev=pdfdir ;; 951 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 952 pdfdir=$ac_optarg ;; 953 954 -psdir | --psdir | --psdi | --psd | --ps) 955 ac_prev=psdir ;; 956 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 957 psdir=$ac_optarg ;; 958 959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 960 | -silent | --silent | --silen | --sile | --sil) 961 silent=yes ;; 962 963 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 964 ac_prev=sbindir ;; 965 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 966 | --sbi=* | --sb=*) 967 sbindir=$ac_optarg ;; 968 969 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 970 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 971 | --sharedst | --shareds | --shared | --share | --shar \ 972 | --sha | --sh) 973 ac_prev=sharedstatedir ;; 974 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 975 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 976 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 977 | --sha=* | --sh=*) 978 sharedstatedir=$ac_optarg ;; 979 980 -site | --site | --sit) 981 ac_prev=site ;; 982 -site=* | --site=* | --sit=*) 983 site=$ac_optarg ;; 984 985 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 986 ac_prev=srcdir ;; 987 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 988 srcdir=$ac_optarg ;; 989 990 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 991 | --syscon | --sysco | --sysc | --sys | --sy) 992 ac_prev=sysconfdir ;; 993 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 994 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 995 sysconfdir=$ac_optarg ;; 996 997 -target | --target | --targe | --targ | --tar | --ta | --t) 998 ac_prev=target_alias ;; 999 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1000 target_alias=$ac_optarg ;; 1001 1002 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1003 verbose=yes ;; 1004 1005 -version | --version | --versio | --versi | --vers | -V) 1006 ac_init_version=: ;; 1007 1008 -with-* | --with-*) 1009 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1010 # Reject names that are not valid shell variable names. 1011 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1012 { echo "$as_me: error: invalid package name: $ac_package" >&2 1013 { (exit 1); exit 1; }; } 1014 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1015 eval with_$ac_package=\$ac_optarg ;; 1016 1017 -without-* | --without-*) 1018 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1019 # Reject names that are not valid shell variable names. 1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1021 { echo "$as_me: error: invalid package name: $ac_package" >&2 1022 { (exit 1); exit 1; }; } 1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1024 eval with_$ac_package=no ;; 1025 1026 --x) 1027 # Obsolete; use --with-x. 1028 with_x=yes ;; 1029 1030 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1031 | --x-incl | --x-inc | --x-in | --x-i) 1032 ac_prev=x_includes ;; 1033 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1034 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1035 x_includes=$ac_optarg ;; 1036 1037 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1038 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1039 ac_prev=x_libraries ;; 1040 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1041 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1042 x_libraries=$ac_optarg ;; 1043 1044 -*) { echo "$as_me: error: unrecognized option: $ac_option 1045Try \`$0 --help' for more information." >&2 1046 { (exit 1); exit 1; }; } 1047 ;; 1048 1049 *=*) 1050 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1051 # Reject names that are not valid shell variable names. 1052 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1053 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1054 { (exit 1); exit 1; }; } 1055 eval $ac_envvar=\$ac_optarg 1056 export $ac_envvar ;; 1057 1058 *) 1059 # FIXME: should be removed in autoconf 3.0. 1060 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1061 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1062 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1063 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1064 ;; 1065 1066 esac 1067done 1068 1069if test -n "$ac_prev"; then 1070 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1071 { echo "$as_me: error: missing argument to $ac_option" >&2 1072 { (exit 1); exit 1; }; } 1073fi 1074 1075# Be sure to have absolute directory names. 1076for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1077 datadir sysconfdir sharedstatedir localstatedir includedir \ 1078 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1079 libdir localedir mandir 1080do 1081 eval ac_val=\$$ac_var 1082 case $ac_val in 1083 [\\/$]* | ?:[\\/]* ) continue;; 1084 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1085 esac 1086 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1087 { (exit 1); exit 1; }; } 1088done 1089 1090# There might be people who depend on the old broken behavior: `$host' 1091# used to hold the argument of --host etc. 1092# FIXME: To remove some day. 1093build=$build_alias 1094host=$host_alias 1095target=$target_alias 1096 1097# FIXME: To remove some day. 1098if test "x$host_alias" != x; then 1099 if test "x$build_alias" = x; then 1100 cross_compiling=maybe 1101 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1102 If a cross compiler is detected then cross compile mode will be used." >&2 1103 elif test "x$build_alias" != "x$host_alias"; then 1104 cross_compiling=yes 1105 fi 1106fi 1107 1108ac_tool_prefix= 1109test -n "$host_alias" && ac_tool_prefix=$host_alias- 1110 1111test "$silent" = yes && exec 6>/dev/null 1112 1113 1114ac_pwd=`pwd` && test -n "$ac_pwd" && 1115ac_ls_di=`ls -di .` && 1116ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1117 { echo "$as_me: error: Working directory cannot be determined" >&2 1118 { (exit 1); exit 1; }; } 1119test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1120 { echo "$as_me: error: pwd does not report name of working directory" >&2 1121 { (exit 1); exit 1; }; } 1122 1123 1124# Find the source files, if location was not specified. 1125if test -z "$srcdir"; then 1126 ac_srcdir_defaulted=yes 1127 # Try the directory containing this script, then the parent directory. 1128 ac_confdir=`$as_dirname -- "$0" || 1129$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1130 X"$0" : 'X\(//\)[^/]' \| \ 1131 X"$0" : 'X\(//\)$' \| \ 1132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1133echo X"$0" | 1134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1135 s//\1/ 1136 q 1137 } 1138 /^X\(\/\/\)[^/].*/{ 1139 s//\1/ 1140 q 1141 } 1142 /^X\(\/\/\)$/{ 1143 s//\1/ 1144 q 1145 } 1146 /^X\(\/\).*/{ 1147 s//\1/ 1148 q 1149 } 1150 s/.*/./; q'` 1151 srcdir=$ac_confdir 1152 if test ! -r "$srcdir/$ac_unique_file"; then 1153 srcdir=.. 1154 fi 1155else 1156 ac_srcdir_defaulted=no 1157fi 1158if test ! -r "$srcdir/$ac_unique_file"; then 1159 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1160 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1161 { (exit 1); exit 1; }; } 1162fi 1163ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1164ac_abs_confdir=`( 1165 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1166 { (exit 1); exit 1; }; } 1167 pwd)` 1168# When building in place, set srcdir=. 1169if test "$ac_abs_confdir" = "$ac_pwd"; then 1170 srcdir=. 1171fi 1172# Remove unnecessary trailing slashes from srcdir. 1173# Double slashes in file names in object file debugging info 1174# mess up M-x gdb in Emacs. 1175case $srcdir in 1176*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1177esac 1178for ac_var in $ac_precious_vars; do 1179 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1180 eval ac_env_${ac_var}_value=\$${ac_var} 1181 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1182 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1183done 1184 1185# 1186# Report the --help message. 1187# 1188if test "$ac_init_help" = "long"; then 1189 # Omit some internal or obsolete options to make the list less imposing. 1190 # This message is too long to be a string in the A/UX 3.1 sh. 1191 cat <<_ACEOF 1192\`configure' configures this package to adapt to many kinds of systems. 1193 1194Usage: $0 [OPTION]... [VAR=VALUE]... 1195 1196To assign environment variables (e.g., CC, CFLAGS...), specify them as 1197VAR=VALUE. See below for descriptions of some of the useful variables. 1198 1199Defaults for the options are specified in brackets. 1200 1201Configuration: 1202 -h, --help display this help and exit 1203 --help=short display options specific to this package 1204 --help=recursive display the short help of all the included packages 1205 -V, --version display version information and exit 1206 -q, --quiet, --silent do not print \`checking...' messages 1207 --cache-file=FILE cache test results in FILE [disabled] 1208 -C, --config-cache alias for \`--cache-file=config.cache' 1209 -n, --no-create do not create output files 1210 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1211 1212Installation directories: 1213 --prefix=PREFIX install architecture-independent files in PREFIX 1214 [$ac_default_prefix] 1215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1216 [PREFIX] 1217 1218By default, \`make install' will install all the files in 1219\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1220an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1221for instance \`--prefix=\$HOME'. 1222 1223For better control, use the options below. 1224 1225Fine tuning of the installation directories: 1226 --bindir=DIR user executables [EPREFIX/bin] 1227 --sbindir=DIR system admin executables [EPREFIX/sbin] 1228 --libexecdir=DIR program executables [EPREFIX/libexec] 1229 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1230 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1231 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1232 --libdir=DIR object code libraries [EPREFIX/lib] 1233 --includedir=DIR C header files [PREFIX/include] 1234 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1235 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1236 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1237 --infodir=DIR info documentation [DATAROOTDIR/info] 1238 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1239 --mandir=DIR man documentation [DATAROOTDIR/man] 1240 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1241 --htmldir=DIR html documentation [DOCDIR] 1242 --dvidir=DIR dvi documentation [DOCDIR] 1243 --pdfdir=DIR pdf documentation [DOCDIR] 1244 --psdir=DIR ps documentation [DOCDIR] 1245_ACEOF 1246 1247 cat <<\_ACEOF 1248_ACEOF 1249fi 1250 1251if test -n "$ac_init_help"; then 1252 1253 cat <<\_ACEOF 1254 1255Optional Features: 1256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1258 --disable-stripping disables stripping of installed binaries 1259 --with-debug enables debug code generation for binaries 1260 1261Some influential environment variables: 1262 CXX C++ compiler command 1263 CXXFLAGS C++ compiler flags 1264 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1265 nonstandard directory <lib dir> 1266 LIBS libraries to pass to the linker, e.g. -l<library> 1267 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1268 you have headers in a nonstandard directory <include dir> 1269 CXXCPP C++ preprocessor 1270 1271Use these variables to override the choices made by `configure' or to help 1272it to find libraries and programs with nonstandard names/locations. 1273 1274_ACEOF 1275ac_status=$? 1276fi 1277 1278if test "$ac_init_help" = "recursive"; then 1279 # If there are subdirs, report their specific --help. 1280 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1281 test -d "$ac_dir" || continue 1282 ac_builddir=. 1283 1284case "$ac_dir" in 1285.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1286*) 1287 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1288 # A ".." for each directory in $ac_dir_suffix. 1289 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1290 case $ac_top_builddir_sub in 1291 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1292 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1293 esac ;; 1294esac 1295ac_abs_top_builddir=$ac_pwd 1296ac_abs_builddir=$ac_pwd$ac_dir_suffix 1297# for backward compatibility: 1298ac_top_builddir=$ac_top_build_prefix 1299 1300case $srcdir in 1301 .) # We are building in place. 1302 ac_srcdir=. 1303 ac_top_srcdir=$ac_top_builddir_sub 1304 ac_abs_top_srcdir=$ac_pwd ;; 1305 [\\/]* | ?:[\\/]* ) # Absolute name. 1306 ac_srcdir=$srcdir$ac_dir_suffix; 1307 ac_top_srcdir=$srcdir 1308 ac_abs_top_srcdir=$srcdir ;; 1309 *) # Relative name. 1310 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1311 ac_top_srcdir=$ac_top_build_prefix$srcdir 1312 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1313esac 1314ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1315 1316 cd "$ac_dir" || { ac_status=$?; continue; } 1317 # Check for guested configure. 1318 if test -f "$ac_srcdir/configure.gnu"; then 1319 echo && 1320 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1321 elif test -f "$ac_srcdir/configure"; then 1322 echo && 1323 $SHELL "$ac_srcdir/configure" --help=recursive 1324 else 1325 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1326 fi || ac_status=$? 1327 cd "$ac_pwd" || { ac_status=$?; break; } 1328 done 1329fi 1330 1331test -n "$ac_init_help" && exit $ac_status 1332if $ac_init_version; then 1333 cat <<\_ACEOF 1334configure 1335generated by GNU Autoconf 2.61 1336 1337Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1339This configure script is free software; the Free Software Foundation 1340gives unlimited permission to copy, distribute and modify it. 1341_ACEOF 1342 exit 1343fi 1344cat >config.log <<_ACEOF 1345This file contains any messages produced by compilers while 1346running configure, to aid debugging if configure makes a mistake. 1347 1348It was created by $as_me, which was 1349generated by GNU Autoconf 2.61. Invocation command line was 1350 1351 $ $0 $@ 1352 1353_ACEOF 1354exec 5>>config.log 1355{ 1356cat <<_ASUNAME 1357## --------- ## 1358## Platform. ## 1359## --------- ## 1360 1361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1362uname -m = `(uname -m) 2>/dev/null || echo unknown` 1363uname -r = `(uname -r) 2>/dev/null || echo unknown` 1364uname -s = `(uname -s) 2>/dev/null || echo unknown` 1365uname -v = `(uname -v) 2>/dev/null || echo unknown` 1366 1367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1368/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1369 1370/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1371/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1373/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1374/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1375/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1376/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1377 1378_ASUNAME 1379 1380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1381for as_dir in $PATH 1382do 1383 IFS=$as_save_IFS 1384 test -z "$as_dir" && as_dir=. 1385 echo "PATH: $as_dir" 1386done 1387IFS=$as_save_IFS 1388 1389} >&5 1390 1391cat >&5 <<_ACEOF 1392 1393 1394## ----------- ## 1395## Core tests. ## 1396## ----------- ## 1397 1398_ACEOF 1399 1400 1401# Keep a trace of the command line. 1402# Strip out --no-create and --no-recursion so they do not pile up. 1403# Strip out --silent because we don't want to record it for future runs. 1404# Also quote any args containing shell meta-characters. 1405# Make two passes to allow for proper duplicate-argument suppression. 1406ac_configure_args= 1407ac_configure_args0= 1408ac_configure_args1= 1409ac_must_keep_next=false 1410for ac_pass in 1 2 1411do 1412 for ac_arg 1413 do 1414 case $ac_arg in 1415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1417 | -silent | --silent | --silen | --sile | --sil) 1418 continue ;; 1419 *\'*) 1420 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1421 esac 1422 case $ac_pass in 1423 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1424 2) 1425 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1426 if test $ac_must_keep_next = true; then 1427 ac_must_keep_next=false # Got value, back to normal. 1428 else 1429 case $ac_arg in 1430 *=* | --config-cache | -C | -disable-* | --disable-* \ 1431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1433 | -with-* | --with-* | -without-* | --without-* | --x) 1434 case "$ac_configure_args0 " in 1435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1436 esac 1437 ;; 1438 -* ) ac_must_keep_next=true ;; 1439 esac 1440 fi 1441 ac_configure_args="$ac_configure_args '$ac_arg'" 1442 ;; 1443 esac 1444 done 1445done 1446$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1447$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1448 1449# When interrupted or exit'd, cleanup temporary files, and complete 1450# config.log. We remove comments because anyway the quotes in there 1451# would cause problems or look ugly. 1452# WARNING: Use '\'' to represent an apostrophe within the trap. 1453# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1454trap 'exit_status=$? 1455 # Save into config.log some information that might help in debugging. 1456 { 1457 echo 1458 1459 cat <<\_ASBOX 1460## ---------------- ## 1461## Cache variables. ## 1462## ---------------- ## 1463_ASBOX 1464 echo 1465 # The following way of writing the cache mishandles newlines in values, 1466( 1467 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1468 eval ac_val=\$$ac_var 1469 case $ac_val in #( 1470 *${as_nl}*) 1471 case $ac_var in #( 1472 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1473echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1474 esac 1475 case $ac_var in #( 1476 _ | IFS | as_nl) ;; #( 1477 *) $as_unset $ac_var ;; 1478 esac ;; 1479 esac 1480 done 1481 (set) 2>&1 | 1482 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1483 *${as_nl}ac_space=\ *) 1484 sed -n \ 1485 "s/'\''/'\''\\\\'\'''\''/g; 1486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1487 ;; #( 1488 *) 1489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1490 ;; 1491 esac | 1492 sort 1493) 1494 echo 1495 1496 cat <<\_ASBOX 1497## ----------------- ## 1498## Output variables. ## 1499## ----------------- ## 1500_ASBOX 1501 echo 1502 for ac_var in $ac_subst_vars 1503 do 1504 eval ac_val=\$$ac_var 1505 case $ac_val in 1506 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1507 esac 1508 echo "$ac_var='\''$ac_val'\''" 1509 done | sort 1510 echo 1511 1512 if test -n "$ac_subst_files"; then 1513 cat <<\_ASBOX 1514## ------------------- ## 1515## File substitutions. ## 1516## ------------------- ## 1517_ASBOX 1518 echo 1519 for ac_var in $ac_subst_files 1520 do 1521 eval ac_val=\$$ac_var 1522 case $ac_val in 1523 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1524 esac 1525 echo "$ac_var='\''$ac_val'\''" 1526 done | sort 1527 echo 1528 fi 1529 1530 if test -s confdefs.h; then 1531 cat <<\_ASBOX 1532## ----------- ## 1533## confdefs.h. ## 1534## ----------- ## 1535_ASBOX 1536 echo 1537 cat confdefs.h 1538 echo 1539 fi 1540 test "$ac_signal" != 0 && 1541 echo "$as_me: caught signal $ac_signal" 1542 echo "$as_me: exit $exit_status" 1543 } >&5 1544 rm -f core *.core core.conftest.* && 1545 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1546 exit $exit_status 1547' 0 1548for ac_signal in 1 2 13 15; do 1549 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1550done 1551ac_signal=0 1552 1553# confdefs.h avoids OS command line length limits that DEFS can exceed. 1554rm -f -r conftest* confdefs.h 1555 1556# Predefined preprocessor variables. 1557 1558cat >>confdefs.h <<_ACEOF 1559#define PACKAGE_NAME "$PACKAGE_NAME" 1560_ACEOF 1561 1562 1563cat >>confdefs.h <<_ACEOF 1564#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1565_ACEOF 1566 1567 1568cat >>confdefs.h <<_ACEOF 1569#define PACKAGE_VERSION "$PACKAGE_VERSION" 1570_ACEOF 1571 1572 1573cat >>confdefs.h <<_ACEOF 1574#define PACKAGE_STRING "$PACKAGE_STRING" 1575_ACEOF 1576 1577 1578cat >>confdefs.h <<_ACEOF 1579#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1580_ACEOF 1581 1582 1583# Let the site file select an alternate cache file if it wants to. 1584# Prefer explicitly selected file to automatically selected ones. 1585if test -n "$CONFIG_SITE"; then 1586 set x "$CONFIG_SITE" 1587elif test "x$prefix" != xNONE; then 1588 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1589else 1590 set x "$ac_default_prefix/share/config.site" \ 1591 "$ac_default_prefix/etc/config.site" 1592fi 1593shift 1594for ac_site_file 1595do 1596 if test -r "$ac_site_file"; then 1597 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1598echo "$as_me: loading site script $ac_site_file" >&6;} 1599 sed 's/^/| /' "$ac_site_file" >&5 1600 . "$ac_site_file" 1601 fi 1602done 1603 1604if test -r "$cache_file"; then 1605 # Some versions of bash will fail to source /dev/null (special 1606 # files actually), so we avoid doing that. 1607 if test -f "$cache_file"; then 1608 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1609echo "$as_me: loading cache $cache_file" >&6;} 1610 case $cache_file in 1611 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1612 *) . "./$cache_file";; 1613 esac 1614 fi 1615else 1616 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1617echo "$as_me: creating cache $cache_file" >&6;} 1618 >$cache_file 1619fi 1620 1621# Check that the precious variables saved in the cache have kept the same 1622# value. 1623ac_cache_corrupted=false 1624for ac_var in $ac_precious_vars; do 1625 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1626 eval ac_new_set=\$ac_env_${ac_var}_set 1627 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1628 eval ac_new_val=\$ac_env_${ac_var}_value 1629 case $ac_old_set,$ac_new_set in 1630 set,) 1631 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1632echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1633 ac_cache_corrupted=: ;; 1634 ,set) 1635 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1636echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1637 ac_cache_corrupted=: ;; 1638 ,);; 1639 *) 1640 if test "x$ac_old_val" != "x$ac_new_val"; then 1641 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1642echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1643 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1644echo "$as_me: former value: $ac_old_val" >&2;} 1645 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1646echo "$as_me: current value: $ac_new_val" >&2;} 1647 ac_cache_corrupted=: 1648 fi;; 1649 esac 1650 # Pass precious variables to config.status. 1651 if test "$ac_new_set" = set; then 1652 case $ac_new_val in 1653 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1654 *) ac_arg=$ac_var=$ac_new_val ;; 1655 esac 1656 case " $ac_configure_args " in 1657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1658 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1659 esac 1660 fi 1661done 1662if $ac_cache_corrupted; then 1663 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1664echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1665 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1666echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1667 { (exit 1); exit 1; }; } 1668fi 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686ac_ext=c 1687ac_cpp='$CPP $CPPFLAGS' 1688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1690ac_compiler_gnu=$ac_cv_c_compiler_gnu 1691 1692 1693ac_config_headers="$ac_config_headers conf.h" 1694 1695 1696version="1.03d" 1697 1698 1699# Check whether --enable-stripping was given. 1700if test "${enable_stripping+set}" = set; then 1701 enableval=$enable_stripping; STRIPPING=$strippingval 1702else 1703 STRIPPING=no 1704fi 1705 1706if [ ! "$STRIPPING" = "no" ]; then 1707 stripping="" 1708else 1709 stripping="-s" 1710fi 1711echo $DEB_BUILD_OPTIONS | grep -q nostrip 1712if [ "$?" = "0" ]; then 1713 stripping="" 1714fi 1715 1716 1717# Check whether --enable-debug was given. 1718if test "${enable_debug+set}" = set; then 1719 enableval=$enable_debug; debug=-g 1720else 1721 debug="" 1722fi 1723 1724echo $DEB_BUILD_OPTIONS | grep -q debug 1725if [ "$?" = "0" ]; then 1726 debug=-g 1727fi 1728 1729ac_ext=cpp 1730ac_cpp='$CXXCPP $CPPFLAGS' 1731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1734 1735ac_ext=cpp 1736ac_cpp='$CXXCPP $CPPFLAGS' 1737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1740if test -z "$CXX"; then 1741 if test -n "$CCC"; then 1742 CXX=$CCC 1743 else 1744 if test -n "$ac_tool_prefix"; then 1745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 1746 do 1747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1748set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1749{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1751if test "${ac_cv_prog_CXX+set}" = set; then 1752 echo $ECHO_N "(cached) $ECHO_C" >&6 1753else 1754 if test -n "$CXX"; then 1755 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1756else 1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1758for as_dir in $PATH 1759do 1760 IFS=$as_save_IFS 1761 test -z "$as_dir" && as_dir=. 1762 for ac_exec_ext in '' $ac_executable_extensions; do 1763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1766 break 2 1767 fi 1768done 1769done 1770IFS=$as_save_IFS 1771 1772fi 1773fi 1774CXX=$ac_cv_prog_CXX 1775if test -n "$CXX"; then 1776 { echo "$as_me:$LINENO: result: $CXX" >&5 1777echo "${ECHO_T}$CXX" >&6; } 1778else 1779 { echo "$as_me:$LINENO: result: no" >&5 1780echo "${ECHO_T}no" >&6; } 1781fi 1782 1783 1784 test -n "$CXX" && break 1785 done 1786fi 1787if test -z "$CXX"; then 1788 ac_ct_CXX=$CXX 1789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 1790do 1791 # Extract the first word of "$ac_prog", so it can be a program name with args. 1792set dummy $ac_prog; ac_word=$2 1793{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1795if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1796 echo $ECHO_N "(cached) $ECHO_C" >&6 1797else 1798 if test -n "$ac_ct_CXX"; then 1799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1800else 1801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1802for as_dir in $PATH 1803do 1804 IFS=$as_save_IFS 1805 test -z "$as_dir" && as_dir=. 1806 for ac_exec_ext in '' $ac_executable_extensions; do 1807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1808 ac_cv_prog_ac_ct_CXX="$ac_prog" 1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1810 break 2 1811 fi 1812done 1813done 1814IFS=$as_save_IFS 1815 1816fi 1817fi 1818ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1819if test -n "$ac_ct_CXX"; then 1820 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1821echo "${ECHO_T}$ac_ct_CXX" >&6; } 1822else 1823 { echo "$as_me:$LINENO: result: no" >&5 1824echo "${ECHO_T}no" >&6; } 1825fi 1826 1827 1828 test -n "$ac_ct_CXX" && break 1829done 1830 1831 if test "x$ac_ct_CXX" = x; then 1832 CXX="g++" 1833 else 1834 case $cross_compiling:$ac_tool_warned in 1835yes:) 1836{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1837whose name does not start with the host triplet. If you think this 1838configuration is useful to you, please write to autoconf@gnu.org." >&5 1839echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1840whose name does not start with the host triplet. If you think this 1841configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1842ac_tool_warned=yes ;; 1843esac 1844 CXX=$ac_ct_CXX 1845 fi 1846fi 1847 1848 fi 1849fi 1850# Provide some information about the compiler. 1851echo "$as_me:$LINENO: checking for C++ compiler version" >&5 1852ac_compiler=`set X $ac_compile; echo $2` 1853{ (ac_try="$ac_compiler --version >&5" 1854case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1859 (eval "$ac_compiler --version >&5") 2>&5 1860 ac_status=$? 1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1862 (exit $ac_status); } 1863{ (ac_try="$ac_compiler -v >&5" 1864case "(($ac_try" in 1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1866 *) ac_try_echo=$ac_try;; 1867esac 1868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1869 (eval "$ac_compiler -v >&5") 2>&5 1870 ac_status=$? 1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1872 (exit $ac_status); } 1873{ (ac_try="$ac_compiler -V >&5" 1874case "(($ac_try" in 1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1876 *) ac_try_echo=$ac_try;; 1877esac 1878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1879 (eval "$ac_compiler -V >&5") 2>&5 1880 ac_status=$? 1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1882 (exit $ac_status); } 1883 1884cat >conftest.$ac_ext <<_ACEOF 1885/* confdefs.h. */ 1886_ACEOF 1887cat confdefs.h >>conftest.$ac_ext 1888cat >>conftest.$ac_ext <<_ACEOF 1889/* end confdefs.h. */ 1890 1891int 1892main () 1893{ 1894 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899ac_clean_files_save=$ac_clean_files 1900ac_clean_files="$ac_clean_files a.out a.exe b.out" 1901# Try to create an executable without -o first, disregard a.out. 1902# It will help us diagnose broken compilers, and finding out an intuition 1903# of exeext. 1904{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1905echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 1906ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1907# 1908# List of possible output files, starting from the most likely. 1909# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 1910# only as a last resort. b.out is created by i960 compilers. 1911ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 1912# 1913# The IRIX 6 linker writes into existing files which may not be 1914# executable, retaining their permissions. Remove them first so a 1915# subsequent execution test works. 1916ac_rmfiles= 1917for ac_file in $ac_files 1918do 1919 case $ac_file in 1920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1921 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 1922 esac 1923done 1924rm -f $ac_rmfiles 1925 1926if { (ac_try="$ac_link_default" 1927case "(($ac_try" in 1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1929 *) ac_try_echo=$ac_try;; 1930esac 1931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1932 (eval "$ac_link_default") 2>&5 1933 ac_status=$? 1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1935 (exit $ac_status); }; then 1936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 1937# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 1938# in a Makefile. We should not override ac_cv_exeext if it was cached, 1939# so that the user can short-circuit this test for compilers unknown to 1940# Autoconf. 1941for ac_file in $ac_files '' 1942do 1943 test -f "$ac_file" || continue 1944 case $ac_file in 1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 1946 ;; 1947 [ab].out ) 1948 # We found the default executable, but exeext='' is most 1949 # certainly right. 1950 break;; 1951 *.* ) 1952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 1953 then :; else 1954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1955 fi 1956 # We set ac_cv_exeext here because the later test for it is not 1957 # safe: cross compilers may not add the suffix if given an `-o' 1958 # argument, so we may need to know it at that point already. 1959 # Even if this section looks crufty: it has the advantage of 1960 # actually working. 1961 break;; 1962 * ) 1963 break;; 1964 esac 1965done 1966test "$ac_cv_exeext" = no && ac_cv_exeext= 1967 1968else 1969 ac_file='' 1970fi 1971 1972{ echo "$as_me:$LINENO: result: $ac_file" >&5 1973echo "${ECHO_T}$ac_file" >&6; } 1974if test -z "$ac_file"; then 1975 echo "$as_me: failed program was:" >&5 1976sed 's/^/| /' conftest.$ac_ext >&5 1977 1978{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1979See \`config.log' for more details." >&5 1980echo "$as_me: error: C++ compiler cannot create executables 1981See \`config.log' for more details." >&2;} 1982 { (exit 77); exit 77; }; } 1983fi 1984 1985ac_exeext=$ac_cv_exeext 1986 1987# Check that the compiler produces executables we can run. If not, either 1988# the compiler is broken, or we cross compile. 1989{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1990echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 1991# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1992# If not cross compiling, check that we can run a simple program. 1993if test "$cross_compiling" != yes; then 1994 if { ac_try='./$ac_file' 1995 { (case "(($ac_try" in 1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1997 *) ac_try_echo=$ac_try;; 1998esac 1999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2000 (eval "$ac_try") 2>&5 2001 ac_status=$? 2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2003 (exit $ac_status); }; }; then 2004 cross_compiling=no 2005 else 2006 if test "$cross_compiling" = maybe; then 2007 cross_compiling=yes 2008 else 2009 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2010If you meant to cross compile, use \`--host'. 2011See \`config.log' for more details." >&5 2012echo "$as_me: error: cannot run C++ compiled programs. 2013If you meant to cross compile, use \`--host'. 2014See \`config.log' for more details." >&2;} 2015 { (exit 1); exit 1; }; } 2016 fi 2017 fi 2018fi 2019{ echo "$as_me:$LINENO: result: yes" >&5 2020echo "${ECHO_T}yes" >&6; } 2021 2022rm -f a.out a.exe conftest$ac_cv_exeext b.out 2023ac_clean_files=$ac_clean_files_save 2024# Check that the compiler produces executables we can run. If not, either 2025# the compiler is broken, or we cross compile. 2026{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2027echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2028{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2029echo "${ECHO_T}$cross_compiling" >&6; } 2030 2031{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2032echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2033if { (ac_try="$ac_link" 2034case "(($ac_try" in 2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2036 *) ac_try_echo=$ac_try;; 2037esac 2038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2039 (eval "$ac_link") 2>&5 2040 ac_status=$? 2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042 (exit $ac_status); }; then 2043 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2044# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2045# work properly (i.e., refer to `conftest.exe'), while it won't with 2046# `rm'. 2047for ac_file in conftest.exe conftest conftest.*; do 2048 test -f "$ac_file" || continue 2049 case $ac_file in 2050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2052 break;; 2053 * ) break;; 2054 esac 2055done 2056else 2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2058See \`config.log' for more details." >&5 2059echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2060See \`config.log' for more details." >&2;} 2061 { (exit 1); exit 1; }; } 2062fi 2063 2064rm -f conftest$ac_cv_exeext 2065{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2066echo "${ECHO_T}$ac_cv_exeext" >&6; } 2067 2068rm -f conftest.$ac_ext 2069EXEEXT=$ac_cv_exeext 2070ac_exeext=$EXEEXT 2071{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2072echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2073if test "${ac_cv_objext+set}" = set; then 2074 echo $ECHO_N "(cached) $ECHO_C" >&6 2075else 2076 cat >conftest.$ac_ext <<_ACEOF 2077/* confdefs.h. */ 2078_ACEOF 2079cat confdefs.h >>conftest.$ac_ext 2080cat >>conftest.$ac_ext <<_ACEOF 2081/* end confdefs.h. */ 2082 2083int 2084main () 2085{ 2086 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091rm -f conftest.o conftest.obj 2092if { (ac_try="$ac_compile" 2093case "(($ac_try" in 2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2095 *) ac_try_echo=$ac_try;; 2096esac 2097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2098 (eval "$ac_compile") 2>&5 2099 ac_status=$? 2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2101 (exit $ac_status); }; then 2102 for ac_file in conftest.o conftest.obj conftest.*; do 2103 test -f "$ac_file" || continue; 2104 case $ac_file in 2105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2107 break;; 2108 esac 2109done 2110else 2111 echo "$as_me: failed program was:" >&5 2112sed 's/^/| /' conftest.$ac_ext >&5 2113 2114{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2115See \`config.log' for more details." >&5 2116echo "$as_me: error: cannot compute suffix of object files: cannot compile 2117See \`config.log' for more details." >&2;} 2118 { (exit 1); exit 1; }; } 2119fi 2120 2121rm -f conftest.$ac_cv_objext conftest.$ac_ext 2122fi 2123{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2124echo "${ECHO_T}$ac_cv_objext" >&6; } 2125OBJEXT=$ac_cv_objext 2126ac_objext=$OBJEXT 2127{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2128echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2129if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2130 echo $ECHO_N "(cached) $ECHO_C" >&6 2131else 2132 cat >conftest.$ac_ext <<_ACEOF 2133/* confdefs.h. */ 2134_ACEOF 2135cat confdefs.h >>conftest.$ac_ext 2136cat >>conftest.$ac_ext <<_ACEOF 2137/* end confdefs.h. */ 2138 2139int 2140main () 2141{ 2142#ifndef __GNUC__ 2143 choke me 2144#endif 2145 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150rm -f conftest.$ac_objext 2151if { (ac_try="$ac_compile" 2152case "(($ac_try" in 2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2154 *) ac_try_echo=$ac_try;; 2155esac 2156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2157 (eval "$ac_compile") 2>conftest.er1 2158 ac_status=$? 2159 grep -v '^ *+' conftest.er1 >conftest.err 2160 rm -f conftest.er1 2161 cat conftest.err >&5 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); } && { 2164 test -z "$ac_cxx_werror_flag" || 2165 test ! -s conftest.err 2166 } && test -s conftest.$ac_objext; then 2167 ac_compiler_gnu=yes 2168else 2169 echo "$as_me: failed program was:" >&5 2170sed 's/^/| /' conftest.$ac_ext >&5 2171 2172 ac_compiler_gnu=no 2173fi 2174 2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2176ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2177 2178fi 2179{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2180echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2181GXX=`test $ac_compiler_gnu = yes && echo yes` 2182ac_test_CXXFLAGS=${CXXFLAGS+set} 2183ac_save_CXXFLAGS=$CXXFLAGS 2184{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2185echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2186if test "${ac_cv_prog_cxx_g+set}" = set; then 2187 echo $ECHO_N "(cached) $ECHO_C" >&6 2188else 2189 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2190 ac_cxx_werror_flag=yes 2191 ac_cv_prog_cxx_g=no 2192 CXXFLAGS="-g" 2193 cat >conftest.$ac_ext <<_ACEOF 2194/* confdefs.h. */ 2195_ACEOF 2196cat confdefs.h >>conftest.$ac_ext 2197cat >>conftest.$ac_ext <<_ACEOF 2198/* end confdefs.h. */ 2199 2200int 2201main () 2202{ 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208rm -f conftest.$ac_objext 2209if { (ac_try="$ac_compile" 2210case "(($ac_try" in 2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2212 *) ac_try_echo=$ac_try;; 2213esac 2214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2215 (eval "$ac_compile") 2>conftest.er1 2216 ac_status=$? 2217 grep -v '^ *+' conftest.er1 >conftest.err 2218 rm -f conftest.er1 2219 cat conftest.err >&5 2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2221 (exit $ac_status); } && { 2222 test -z "$ac_cxx_werror_flag" || 2223 test ! -s conftest.err 2224 } && test -s conftest.$ac_objext; then 2225 ac_cv_prog_cxx_g=yes 2226else 2227 echo "$as_me: failed program was:" >&5 2228sed 's/^/| /' conftest.$ac_ext >&5 2229 2230 CXXFLAGS="" 2231 cat >conftest.$ac_ext <<_ACEOF 2232/* confdefs.h. */ 2233_ACEOF 2234cat confdefs.h >>conftest.$ac_ext 2235cat >>conftest.$ac_ext <<_ACEOF 2236/* end confdefs.h. */ 2237 2238int 2239main () 2240{ 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246rm -f conftest.$ac_objext 2247if { (ac_try="$ac_compile" 2248case "(($ac_try" in 2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2250 *) ac_try_echo=$ac_try;; 2251esac 2252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2253 (eval "$ac_compile") 2>conftest.er1 2254 ac_status=$? 2255 grep -v '^ *+' conftest.er1 >conftest.err 2256 rm -f conftest.er1 2257 cat conftest.err >&5 2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2259 (exit $ac_status); } && { 2260 test -z "$ac_cxx_werror_flag" || 2261 test ! -s conftest.err 2262 } && test -s conftest.$ac_objext; then 2263 : 2264else 2265 echo "$as_me: failed program was:" >&5 2266sed 's/^/| /' conftest.$ac_ext >&5 2267 2268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2269 CXXFLAGS="-g" 2270 cat >conftest.$ac_ext <<_ACEOF 2271/* confdefs.h. */ 2272_ACEOF 2273cat confdefs.h >>conftest.$ac_ext 2274cat >>conftest.$ac_ext <<_ACEOF 2275/* end confdefs.h. */ 2276 2277int 2278main () 2279{ 2280 2281 ; 2282 return 0; 2283} 2284_ACEOF 2285rm -f conftest.$ac_objext 2286if { (ac_try="$ac_compile" 2287case "(($ac_try" in 2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2289 *) ac_try_echo=$ac_try;; 2290esac 2291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2292 (eval "$ac_compile") 2>conftest.er1 2293 ac_status=$? 2294 grep -v '^ *+' conftest.er1 >conftest.err 2295 rm -f conftest.er1 2296 cat conftest.err >&5 2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2298 (exit $ac_status); } && { 2299 test -z "$ac_cxx_werror_flag" || 2300 test ! -s conftest.err 2301 } && test -s conftest.$ac_objext; then 2302 ac_cv_prog_cxx_g=yes 2303else 2304 echo "$as_me: failed program was:" >&5 2305sed 's/^/| /' conftest.$ac_ext >&5 2306 2307 2308fi 2309 2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2311fi 2312 2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2314fi 2315 2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2317 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2318fi 2319{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2320echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 2321if test "$ac_test_CXXFLAGS" = set; then 2322 CXXFLAGS=$ac_save_CXXFLAGS 2323elif test $ac_cv_prog_cxx_g = yes; then 2324 if test "$GXX" = yes; then 2325 CXXFLAGS="-g -O2" 2326 else 2327 CXXFLAGS="-g" 2328 fi 2329else 2330 if test "$GXX" = yes; then 2331 CXXFLAGS="-O2" 2332 else 2333 CXXFLAGS= 2334 fi 2335fi 2336ac_ext=cpp 2337ac_cpp='$CXXCPP $CPPFLAGS' 2338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2341 2342ac_ext=cpp 2343ac_cpp='$CXXCPP $CPPFLAGS' 2344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2347{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 2348echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 2349if test -z "$CXXCPP"; then 2350 if test "${ac_cv_prog_CXXCPP+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 # Double quotes because CXXCPP needs to be expanded 2354 for CXXCPP in "$CXX -E" "/lib/cpp" 2355 do 2356 ac_preproc_ok=false 2357for ac_cxx_preproc_warn_flag in '' yes 2358do 2359 # Use a header file that comes with gcc, so configuring glibc 2360 # with a fresh cross-compiler works. 2361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2362 # <limits.h> exists even on freestanding compilers. 2363 # On the NeXT, cc -E runs the code through the compiler's parser, 2364 # not just through cpp. "Syntax error" is here to catch this case. 2365 cat >conftest.$ac_ext <<_ACEOF 2366/* confdefs.h. */ 2367_ACEOF 2368cat confdefs.h >>conftest.$ac_ext 2369cat >>conftest.$ac_ext <<_ACEOF 2370/* end confdefs.h. */ 2371#ifdef __STDC__ 2372# include <limits.h> 2373#else 2374# include <assert.h> 2375#endif 2376 Syntax error 2377_ACEOF 2378if { (ac_try="$ac_cpp conftest.$ac_ext" 2379case "(($ac_try" in 2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2381 *) ac_try_echo=$ac_try;; 2382esac 2383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2385 ac_status=$? 2386 grep -v '^ *+' conftest.er1 >conftest.err 2387 rm -f conftest.er1 2388 cat conftest.err >&5 2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2390 (exit $ac_status); } >/dev/null && { 2391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2392 test ! -s conftest.err 2393 }; then 2394 : 2395else 2396 echo "$as_me: failed program was:" >&5 2397sed 's/^/| /' conftest.$ac_ext >&5 2398 2399 # Broken: fails on valid input. 2400continue 2401fi 2402 2403rm -f conftest.err conftest.$ac_ext 2404 2405 # OK, works on sane cases. Now check whether nonexistent headers 2406 # can be detected and how. 2407 cat >conftest.$ac_ext <<_ACEOF 2408/* confdefs.h. */ 2409_ACEOF 2410cat confdefs.h >>conftest.$ac_ext 2411cat >>conftest.$ac_ext <<_ACEOF 2412/* end confdefs.h. */ 2413#include <ac_nonexistent.h> 2414_ACEOF 2415if { (ac_try="$ac_cpp conftest.$ac_ext" 2416case "(($ac_try" in 2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2418 *) ac_try_echo=$ac_try;; 2419esac 2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2422 ac_status=$? 2423 grep -v '^ *+' conftest.er1 >conftest.err 2424 rm -f conftest.er1 2425 cat conftest.err >&5 2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2427 (exit $ac_status); } >/dev/null && { 2428 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2429 test ! -s conftest.err 2430 }; then 2431 # Broken: success on invalid input. 2432continue 2433else 2434 echo "$as_me: failed program was:" >&5 2435sed 's/^/| /' conftest.$ac_ext >&5 2436 2437 # Passes both tests. 2438ac_preproc_ok=: 2439break 2440fi 2441 2442rm -f conftest.err conftest.$ac_ext 2443 2444done 2445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2446rm -f conftest.err conftest.$ac_ext 2447if $ac_preproc_ok; then 2448 break 2449fi 2450 2451 done 2452 ac_cv_prog_CXXCPP=$CXXCPP 2453 2454fi 2455 CXXCPP=$ac_cv_prog_CXXCPP 2456else 2457 ac_cv_prog_CXXCPP=$CXXCPP 2458fi 2459{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 2460echo "${ECHO_T}$CXXCPP" >&6; } 2461ac_preproc_ok=false 2462for ac_cxx_preproc_warn_flag in '' yes 2463do 2464 # Use a header file that comes with gcc, so configuring glibc 2465 # with a fresh cross-compiler works. 2466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2467 # <limits.h> exists even on freestanding compilers. 2468 # On the NeXT, cc -E runs the code through the compiler's parser, 2469 # not just through cpp. "Syntax error" is here to catch this case. 2470 cat >conftest.$ac_ext <<_ACEOF 2471/* confdefs.h. */ 2472_ACEOF 2473cat confdefs.h >>conftest.$ac_ext 2474cat >>conftest.$ac_ext <<_ACEOF 2475/* end confdefs.h. */ 2476#ifdef __STDC__ 2477# include <limits.h> 2478#else 2479# include <assert.h> 2480#endif 2481 Syntax error 2482_ACEOF 2483if { (ac_try="$ac_cpp conftest.$ac_ext" 2484case "(($ac_try" in 2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2486 *) ac_try_echo=$ac_try;; 2487esac 2488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2490 ac_status=$? 2491 grep -v '^ *+' conftest.er1 >conftest.err 2492 rm -f conftest.er1 2493 cat conftest.err >&5 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); } >/dev/null && { 2496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2497 test ! -s conftest.err 2498 }; then 2499 : 2500else 2501 echo "$as_me: failed program was:" >&5 2502sed 's/^/| /' conftest.$ac_ext >&5 2503 2504 # Broken: fails on valid input. 2505continue 2506fi 2507 2508rm -f conftest.err conftest.$ac_ext 2509 2510 # OK, works on sane cases. Now check whether nonexistent headers 2511 # can be detected and how. 2512 cat >conftest.$ac_ext <<_ACEOF 2513/* confdefs.h. */ 2514_ACEOF 2515cat confdefs.h >>conftest.$ac_ext 2516cat >>conftest.$ac_ext <<_ACEOF 2517/* end confdefs.h. */ 2518#include <ac_nonexistent.h> 2519_ACEOF 2520if { (ac_try="$ac_cpp conftest.$ac_ext" 2521case "(($ac_try" in 2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2523 *) ac_try_echo=$ac_try;; 2524esac 2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2527 ac_status=$? 2528 grep -v '^ *+' conftest.er1 >conftest.err 2529 rm -f conftest.er1 2530 cat conftest.err >&5 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); } >/dev/null && { 2533 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2534 test ! -s conftest.err 2535 }; then 2536 # Broken: success on invalid input. 2537continue 2538else 2539 echo "$as_me: failed program was:" >&5 2540sed 's/^/| /' conftest.$ac_ext >&5 2541 2542 # Passes both tests. 2543ac_preproc_ok=: 2544break 2545fi 2546 2547rm -f conftest.err conftest.$ac_ext 2548 2549done 2550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2551rm -f conftest.err conftest.$ac_ext 2552if $ac_preproc_ok; then 2553 : 2554else 2555 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 2556See \`config.log' for more details." >&5 2557echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 2558See \`config.log' for more details." >&2;} 2559 { (exit 1); exit 1; }; } 2560fi 2561 2562ac_ext=cpp 2563ac_cpp='$CXXCPP $CPPFLAGS' 2564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2567 2568ac_aux_dir= 2569for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2570 if test -f "$ac_dir/install-sh"; then 2571 ac_aux_dir=$ac_dir 2572 ac_install_sh="$ac_aux_dir/install-sh -c" 2573 break 2574 elif test -f "$ac_dir/install.sh"; then 2575 ac_aux_dir=$ac_dir 2576 ac_install_sh="$ac_aux_dir/install.sh -c" 2577 break 2578 elif test -f "$ac_dir/shtool"; then 2579 ac_aux_dir=$ac_dir 2580 ac_install_sh="$ac_aux_dir/shtool install -c" 2581 break 2582 fi 2583done 2584if test -z "$ac_aux_dir"; then 2585 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2586echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2587 { (exit 1); exit 1; }; } 2588fi 2589 2590# These three variables are undocumented and unsupported, 2591# and are intended to be withdrawn in a future Autoconf release. 2592# They can cause serious problems if a builder's source tree is in a directory 2593# whose full name contains unusual characters. 2594ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2595ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2596ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2597 2598 2599# Find a good install program. We prefer a C program (faster), 2600# so one script is as good as another. But avoid the broken or 2601# incompatible versions: 2602# SysV /etc/install, /usr/sbin/install 2603# SunOS /usr/etc/install 2604# IRIX /sbin/install 2605# AIX /bin/install 2606# AmigaOS /C/install, which installs bootblocks on floppy discs 2607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2608# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2610# OS/2's system install, which has a completely different semantic 2611# ./install, which can be erroneously created by make from ./install.sh. 2612{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2613echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2614if test -z "$INSTALL"; then 2615if test "${ac_cv_path_install+set}" = set; then 2616 echo $ECHO_N "(cached) $ECHO_C" >&6 2617else 2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 # Account for people who put trailing slashes in PATH elements. 2624case $as_dir/ in 2625 ./ | .// | /cC/* | \ 2626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2627 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2628 /usr/ucb/* ) ;; 2629 *) 2630 # OSF1 and SCO ODT 3.0 have their own names for install. 2631 # Don't use installbsd from OSF since it installs stuff as root 2632 # by default. 2633 for ac_prog in ginstall scoinst install; do 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2636 if test $ac_prog = install && 2637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2638 # AIX install. It has an incompatible calling convention. 2639 : 2640 elif test $ac_prog = install && 2641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2642 # program-specific install script used by HP pwplus--don't use. 2643 : 2644 else 2645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2646 break 3 2647 fi 2648 fi 2649 done 2650 done 2651 ;; 2652esac 2653done 2654IFS=$as_save_IFS 2655 2656 2657fi 2658 if test "${ac_cv_path_install+set}" = set; then 2659 INSTALL=$ac_cv_path_install 2660 else 2661 # As a last resort, use the slow shell script. Don't cache a 2662 # value for INSTALL within a source directory, because that will 2663 # break other packages using the cache if that directory is 2664 # removed, or if the value is a relative name. 2665 INSTALL=$ac_install_sh 2666 fi 2667fi 2668{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2669echo "${ECHO_T}$INSTALL" >&6; } 2670 2671# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2672# It thinks the first close brace ends the variable substitution. 2673test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2674 2675test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2676 2677test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2678 2679 2680 2681{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 2682echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 2683if test "${ac_cv_c_const+set}" = set; then 2684 echo $ECHO_N "(cached) $ECHO_C" >&6 2685else 2686 cat >conftest.$ac_ext <<_ACEOF 2687/* confdefs.h. */ 2688_ACEOF 2689cat confdefs.h >>conftest.$ac_ext 2690cat >>conftest.$ac_ext <<_ACEOF 2691/* end confdefs.h. */ 2692 2693int 2694main () 2695{ 2696/* FIXME: Include the comments suggested by Paul. */ 2697#ifndef __cplusplus 2698 /* Ultrix mips cc rejects this. */ 2699 typedef int charset[2]; 2700 const charset cs; 2701 /* SunOS 4.1.1 cc rejects this. */ 2702 char const *const *pcpcc; 2703 char **ppc; 2704 /* NEC SVR4.0.2 mips cc rejects this. */ 2705 struct point {int x, y;}; 2706 static struct point const zero = {0,0}; 2707 /* AIX XL C 1.02.0.0 rejects this. 2708 It does not let you subtract one const X* pointer from another in 2709 an arm of an if-expression whose if-part is not a constant 2710 expression */ 2711 const char *g = "string"; 2712 pcpcc = &g + (g ? g-g : 0); 2713 /* HPUX 7.0 cc rejects these. */ 2714 ++pcpcc; 2715 ppc = (char**) pcpcc; 2716 pcpcc = (char const *const *) ppc; 2717 { /* SCO 3.2v4 cc rejects this. */ 2718 char *t; 2719 char const *s = 0 ? (char *) 0 : (char const *) 0; 2720 2721 *t++ = 0; 2722 if (s) return 0; 2723 } 2724 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2725 int x[] = {25, 17}; 2726 const int *foo = &x[0]; 2727 ++foo; 2728 } 2729 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2730 typedef const int *iptr; 2731 iptr p = 0; 2732 ++p; 2733 } 2734 { /* AIX XL C 1.02.0.0 rejects this saying 2735 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2736 struct s { int j; const int *ap[3]; }; 2737 struct s *b; b->j = 5; 2738 } 2739 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2740 const int foo = 10; 2741 if (!foo) return 0; 2742 } 2743 return !cs[0] && !zero.x; 2744#endif 2745 2746 ; 2747 return 0; 2748} 2749_ACEOF 2750rm -f conftest.$ac_objext 2751if { (ac_try="$ac_compile" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_compile") 2>conftest.er1 2758 ac_status=$? 2759 grep -v '^ *+' conftest.er1 >conftest.err 2760 rm -f conftest.er1 2761 cat conftest.err >&5 2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2763 (exit $ac_status); } && { 2764 test -z "$ac_cxx_werror_flag" || 2765 test ! -s conftest.err 2766 } && test -s conftest.$ac_objext; then 2767 ac_cv_c_const=yes 2768else 2769 echo "$as_me: failed program was:" >&5 2770sed 's/^/| /' conftest.$ac_ext >&5 2771 2772 ac_cv_c_const=no 2773fi 2774 2775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2776fi 2777{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 2778echo "${ECHO_T}$ac_cv_c_const" >&6; } 2779if test $ac_cv_c_const = no; then 2780 2781cat >>confdefs.h <<\_ACEOF 2782#define const 2783_ACEOF 2784 2785fi 2786 2787 2788{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 2789echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 2790if test "${ac_cv_path_GREP+set}" = set; then 2791 echo $ECHO_N "(cached) $ECHO_C" >&6 2792else 2793 # Extract the first word of "grep ggrep" to use in msg output 2794if test -z "$GREP"; then 2795set dummy grep ggrep; ac_prog_name=$2 2796if test "${ac_cv_path_GREP+set}" = set; then 2797 echo $ECHO_N "(cached) $ECHO_C" >&6 2798else 2799 ac_path_GREP_found=false 2800# Loop through the user's path and test for each of PROGNAME-LIST 2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2803do 2804 IFS=$as_save_IFS 2805 test -z "$as_dir" && as_dir=. 2806 for ac_prog in grep ggrep; do 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 2809 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 2810 # Check for GNU ac_path_GREP and select it if it is found. 2811 # Check for GNU $ac_path_GREP 2812case `"$ac_path_GREP" --version 2>&1` in 2813*GNU*) 2814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 2815*) 2816 ac_count=0 2817 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2818 while : 2819 do 2820 cat "conftest.in" "conftest.in" >"conftest.tmp" 2821 mv "conftest.tmp" "conftest.in" 2822 cp "conftest.in" "conftest.nl" 2823 echo 'GREP' >> "conftest.nl" 2824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2826 ac_count=`expr $ac_count + 1` 2827 if test $ac_count -gt ${ac_path_GREP_max-0}; then 2828 # Best one so far, save it but keep looking for a better one 2829 ac_cv_path_GREP="$ac_path_GREP" 2830 ac_path_GREP_max=$ac_count 2831 fi 2832 # 10*(2^10) chars as input seems more than enough 2833 test $ac_count -gt 10 && break 2834 done 2835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2836esac 2837 2838 2839 $ac_path_GREP_found && break 3 2840 done 2841done 2842 2843done 2844IFS=$as_save_IFS 2845 2846 2847fi 2848 2849GREP="$ac_cv_path_GREP" 2850if test -z "$GREP"; then 2851 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2852echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2853 { (exit 1); exit 1; }; } 2854fi 2855 2856else 2857 ac_cv_path_GREP=$GREP 2858fi 2859 2860 2861fi 2862{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 2863echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 2864 GREP="$ac_cv_path_GREP" 2865 2866 2867{ echo "$as_me:$LINENO: checking for egrep" >&5 2868echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 2869if test "${ac_cv_path_EGREP+set}" = set; then 2870 echo $ECHO_N "(cached) $ECHO_C" >&6 2871else 2872 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2873 then ac_cv_path_EGREP="$GREP -E" 2874 else 2875 # Extract the first word of "egrep" to use in msg output 2876if test -z "$EGREP"; then 2877set dummy egrep; ac_prog_name=$2 2878if test "${ac_cv_path_EGREP+set}" = set; then 2879 echo $ECHO_N "(cached) $ECHO_C" >&6 2880else 2881 ac_path_EGREP_found=false 2882# Loop through the user's path and test for each of PROGNAME-LIST 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_prog in egrep; do 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 2891 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 2892 # Check for GNU ac_path_EGREP and select it if it is found. 2893 # Check for GNU $ac_path_EGREP 2894case `"$ac_path_EGREP" --version 2>&1` in 2895*GNU*) 2896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 2897*) 2898 ac_count=0 2899 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2900 while : 2901 do 2902 cat "conftest.in" "conftest.in" >"conftest.tmp" 2903 mv "conftest.tmp" "conftest.in" 2904 cp "conftest.in" "conftest.nl" 2905 echo 'EGREP' >> "conftest.nl" 2906 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2908 ac_count=`expr $ac_count + 1` 2909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 2910 # Best one so far, save it but keep looking for a better one 2911 ac_cv_path_EGREP="$ac_path_EGREP" 2912 ac_path_EGREP_max=$ac_count 2913 fi 2914 # 10*(2^10) chars as input seems more than enough 2915 test $ac_count -gt 10 && break 2916 done 2917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2918esac 2919 2920 2921 $ac_path_EGREP_found && break 3 2922 done 2923done 2924 2925done 2926IFS=$as_save_IFS 2927 2928 2929fi 2930 2931EGREP="$ac_cv_path_EGREP" 2932if test -z "$EGREP"; then 2933 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2934echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2935 { (exit 1); exit 1; }; } 2936fi 2937 2938else 2939 ac_cv_path_EGREP=$EGREP 2940fi 2941 2942 2943 fi 2944fi 2945{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 2946echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 2947 EGREP="$ac_cv_path_EGREP" 2948 2949 2950{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 2952if test "${ac_cv_header_stdc+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954else 2955 cat >conftest.$ac_ext <<_ACEOF 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961#include <stdlib.h> 2962#include <stdarg.h> 2963#include <string.h> 2964#include <float.h> 2965 2966int 2967main () 2968{ 2969 2970 ; 2971 return 0; 2972} 2973_ACEOF 2974rm -f conftest.$ac_objext 2975if { (ac_try="$ac_compile" 2976case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2981 (eval "$ac_compile") 2>conftest.er1 2982 ac_status=$? 2983 grep -v '^ *+' conftest.er1 >conftest.err 2984 rm -f conftest.er1 2985 cat conftest.err >&5 2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2987 (exit $ac_status); } && { 2988 test -z "$ac_cxx_werror_flag" || 2989 test ! -s conftest.err 2990 } && test -s conftest.$ac_objext; then 2991 ac_cv_header_stdc=yes 2992else 2993 echo "$as_me: failed program was:" >&5 2994sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 ac_cv_header_stdc=no 2997fi 2998 2999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3000 3001if test $ac_cv_header_stdc = yes; then 3002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3003 cat >conftest.$ac_ext <<_ACEOF 3004/* confdefs.h. */ 3005_ACEOF 3006cat confdefs.h >>conftest.$ac_ext 3007cat >>conftest.$ac_ext <<_ACEOF 3008/* end confdefs.h. */ 3009#include <string.h> 3010 3011_ACEOF 3012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3013 $EGREP "memchr" >/dev/null 2>&1; then 3014 : 3015else 3016 ac_cv_header_stdc=no 3017fi 3018rm -f conftest* 3019 3020fi 3021 3022if test $ac_cv_header_stdc = yes; then 3023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3024 cat >conftest.$ac_ext <<_ACEOF 3025/* confdefs.h. */ 3026_ACEOF 3027cat confdefs.h >>conftest.$ac_ext 3028cat >>conftest.$ac_ext <<_ACEOF 3029/* end confdefs.h. */ 3030#include <stdlib.h> 3031 3032_ACEOF 3033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3034 $EGREP "free" >/dev/null 2>&1; then 3035 : 3036else 3037 ac_cv_header_stdc=no 3038fi 3039rm -f conftest* 3040 3041fi 3042 3043if test $ac_cv_header_stdc = yes; then 3044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3045 if test "$cross_compiling" = yes; then 3046 : 3047else 3048 cat >conftest.$ac_ext <<_ACEOF 3049/* confdefs.h. */ 3050_ACEOF 3051cat confdefs.h >>conftest.$ac_ext 3052cat >>conftest.$ac_ext <<_ACEOF 3053/* end confdefs.h. */ 3054#include <ctype.h> 3055#include <stdlib.h> 3056#if ((' ' & 0x0FF) == 0x020) 3057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3059#else 3060# define ISLOWER(c) \ 3061 (('a' <= (c) && (c) <= 'i') \ 3062 || ('j' <= (c) && (c) <= 'r') \ 3063 || ('s' <= (c) && (c) <= 'z')) 3064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3065#endif 3066 3067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3068int 3069main () 3070{ 3071 int i; 3072 for (i = 0; i < 256; i++) 3073 if (XOR (islower (i), ISLOWER (i)) 3074 || toupper (i) != TOUPPER (i)) 3075 return 2; 3076 return 0; 3077} 3078_ACEOF 3079rm -f conftest$ac_exeext 3080if { (ac_try="$ac_link" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3086 (eval "$ac_link") 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3090 { (case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3095 (eval "$ac_try") 2>&5 3096 ac_status=$? 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); }; }; then 3099 : 3100else 3101 echo "$as_me: program exited with status $ac_status" >&5 3102echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105( exit $ac_status ) 3106ac_cv_header_stdc=no 3107fi 3108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3109fi 3110 3111 3112fi 3113fi 3114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3115echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3116if test $ac_cv_header_stdc = yes; then 3117 3118cat >>confdefs.h <<\_ACEOF 3119#define STDC_HEADERS 1 3120_ACEOF 3121 3122fi 3123 3124# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3135 inttypes.h stdint.h unistd.h 3136do 3137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3138{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3141 echo $ECHO_N "(cached) $ECHO_C" >&6 3142else 3143 cat >conftest.$ac_ext <<_ACEOF 3144/* confdefs.h. */ 3145_ACEOF 3146cat confdefs.h >>conftest.$ac_ext 3147cat >>conftest.$ac_ext <<_ACEOF 3148/* end confdefs.h. */ 3149$ac_includes_default 3150 3151#include <$ac_header> 3152_ACEOF 3153rm -f conftest.$ac_objext 3154if { (ac_try="$ac_compile" 3155case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3160 (eval "$ac_compile") 2>conftest.er1 3161 ac_status=$? 3162 grep -v '^ *+' conftest.er1 >conftest.err 3163 rm -f conftest.er1 3164 cat conftest.err >&5 3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166 (exit $ac_status); } && { 3167 test -z "$ac_cxx_werror_flag" || 3168 test ! -s conftest.err 3169 } && test -s conftest.$ac_objext; then 3170 eval "$as_ac_Header=yes" 3171else 3172 echo "$as_me: failed program was:" >&5 3173sed 's/^/| /' conftest.$ac_ext >&5 3174 3175 eval "$as_ac_Header=no" 3176fi 3177 3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3179fi 3180ac_res=`eval echo '${'$as_ac_Header'}'` 3181 { echo "$as_me:$LINENO: result: $ac_res" >&5 3182echo "${ECHO_T}$ac_res" >&6; } 3183if test `eval echo '${'$as_ac_Header'}'` = yes; then 3184 cat >>confdefs.h <<_ACEOF 3185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3186_ACEOF 3187 3188fi 3189 3190done 3191 3192 3193{ echo "$as_me:$LINENO: checking for size_t" >&5 3194echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 3195if test "${ac_cv_type_size_t+set}" = set; then 3196 echo $ECHO_N "(cached) $ECHO_C" >&6 3197else 3198 cat >conftest.$ac_ext <<_ACEOF 3199/* confdefs.h. */ 3200_ACEOF 3201cat confdefs.h >>conftest.$ac_ext 3202cat >>conftest.$ac_ext <<_ACEOF 3203/* end confdefs.h. */ 3204$ac_includes_default 3205typedef size_t ac__type_new_; 3206int 3207main () 3208{ 3209if ((ac__type_new_ *) 0) 3210 return 0; 3211if (sizeof (ac__type_new_)) 3212 return 0; 3213 ; 3214 return 0; 3215} 3216_ACEOF 3217rm -f conftest.$ac_objext 3218if { (ac_try="$ac_compile" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3224 (eval "$ac_compile") 2>conftest.er1 3225 ac_status=$? 3226 grep -v '^ *+' conftest.er1 >conftest.err 3227 rm -f conftest.er1 3228 cat conftest.err >&5 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } && { 3231 test -z "$ac_cxx_werror_flag" || 3232 test ! -s conftest.err 3233 } && test -s conftest.$ac_objext; then 3234 ac_cv_type_size_t=yes 3235else 3236 echo "$as_me: failed program was:" >&5 3237sed 's/^/| /' conftest.$ac_ext >&5 3238 3239 ac_cv_type_size_t=no 3240fi 3241 3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3243fi 3244{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3245echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 3246if test $ac_cv_type_size_t = yes; then 3247 : 3248else 3249 3250cat >>confdefs.h <<_ACEOF 3251#define size_t unsigned int 3252_ACEOF 3253 3254fi 3255 3256 3257 3258cat >conftest.$ac_ext <<_ACEOF 3259/* confdefs.h. */ 3260_ACEOF 3261cat confdefs.h >>conftest.$ac_ext 3262cat >>conftest.$ac_ext <<_ACEOF 3263/* end confdefs.h. */ 3264#include <sys/types.h> 3265#include <sys/ipc.h> 3266#include <sys/sem.h> 3267 3268int 3269main () 3270{ 3271union semun sem 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276rm -f conftest.$ac_objext 3277if { (ac_try="$ac_compile" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3283 (eval "$ac_compile") 2>conftest.er1 3284 ac_status=$? 3285 grep -v '^ *+' conftest.er1 >conftest.err 3286 rm -f conftest.er1 3287 cat conftest.err >&5 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); } && { 3290 test -z "$ac_cxx_werror_flag" || 3291 test ! -s conftest.err 3292 } && test -s conftest.$ac_objext; then 3293 semun="yes" 3294else 3295 echo "$as_me: failed program was:" >&5 3296sed 's/^/| /' conftest.$ac_ext >&5 3297 3298 3299fi 3300 3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3302if [ -n "$semun" ]; then 3303 semun="#define SEMUN_IN_SEM_H" 3304fi 3305 3306cat >conftest.$ac_ext <<_ACEOF 3307/* confdefs.h. */ 3308_ACEOF 3309cat confdefs.h >>conftest.$ac_ext 3310cat >>conftest.$ac_ext <<_ACEOF 3311/* end confdefs.h. */ 3312#include <signal.h> 3313 3314int 3315main () 3316{ 3317struct sigaction sa; sa.sa_sigaction = 0 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323rm -f conftest.$ac_objext 3324if { (ac_try="$ac_compile" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3330 (eval "$ac_compile") 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } && { 3337 test -z "$ac_cxx_werror_flag" || 3338 test ! -s conftest.err 3339 } && test -s conftest.$ac_objext; then 3340 sa_sigaction=y 3341else 3342 echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345 3346fi 3347 3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3349if [ "$sa_sigaction" = "y" ]; then 3350 sa_sigaction="#define USE_SA_SIGACTION" 3351fi 3352 3353cat >conftest.$ac_ext <<_ACEOF 3354/* confdefs.h. */ 3355_ACEOF 3356cat confdefs.h >>conftest.$ac_ext 3357cat >>conftest.$ac_ext <<_ACEOF 3358/* end confdefs.h. */ 3359 3360int 3361main () 3362{ 3363bool var; 3364 ; 3365 return 0; 3366} 3367_ACEOF 3368rm -f conftest.$ac_objext 3369if { (ac_try="$ac_compile" 3370case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3375 (eval "$ac_compile") 2>conftest.er1 3376 ac_status=$? 3377 grep -v '^ *+' conftest.er1 >conftest.err 3378 rm -f conftest.er1 3379 cat conftest.err >&5 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); } && { 3382 test -z "$ac_cxx_werror_flag" || 3383 test ! -s conftest.err 3384 } && test -s conftest.$ac_objext; then 3385 : 3386else 3387 echo "$as_me: failed program was:" >&5 3388sed 's/^/| /' conftest.$ac_ext >&5 3389 3390 bool="typedef bool char;" 3391fi 3392 3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3394 3395cat >conftest.$ac_ext <<_ACEOF 3396/* confdefs.h. */ 3397_ACEOF 3398cat confdefs.h >>conftest.$ac_ext 3399cat >>conftest.$ac_ext <<_ACEOF 3400/* end confdefs.h. */ 3401 3402int 3403main () 3404{ 3405char c = true; char d = false; 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411rm -f conftest.$ac_objext 3412if { (ac_try="$ac_compile" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3418 (eval "$ac_compile") 2>conftest.er1 3419 ac_status=$? 3420 grep -v '^ *+' conftest.er1 >conftest.err 3421 rm -f conftest.er1 3422 cat conftest.err >&5 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } && { 3425 test -z "$ac_cxx_werror_flag" || 3426 test ! -s conftest.err 3427 } && test -s conftest.$ac_objext; then 3428 true_false="0" 3429else 3430 echo "$as_me: failed program was:" >&5 3431sed 's/^/| /' conftest.$ac_ext >&5 3432 3433 true_false="1" 3434fi 3435 3436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3437 3438cat >conftest.$ac_ext <<_ACEOF 3439/* confdefs.h. */ 3440_ACEOF 3441cat confdefs.h >>conftest.$ac_ext 3442cat >>conftest.$ac_ext <<_ACEOF 3443/* end confdefs.h. */ 3444#include <stdio.h> 3445int 3446main () 3447{ 3448char buf[10]; snprintf(buf, sizeof(buf), "abc"); 3449 ; 3450 return 0; 3451} 3452_ACEOF 3453rm -f conftest.$ac_objext conftest$ac_exeext 3454if { (ac_try="$ac_link" 3455case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458esac 3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3460 (eval "$ac_link") 2>conftest.er1 3461 ac_status=$? 3462 grep -v '^ *+' conftest.er1 >conftest.err 3463 rm -f conftest.er1 3464 cat conftest.err >&5 3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3466 (exit $ac_status); } && { 3467 test -z "$ac_cxx_werror_flag" || 3468 test ! -s conftest.err 3469 } && test -s conftest$ac_exeext && 3470 $as_test_x conftest$ac_exeext; then 3471 : 3472else 3473 echo "$as_me: failed program was:" >&5 3474sed 's/^/| /' conftest.$ac_ext >&5 3475 3476 snprintf="no" 3477fi 3478 3479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3480 conftest$ac_exeext conftest.$ac_ext; 3481if [ -n "$snprintf" ]; then 3482 snprintf="#define NO_SNPRINTF" 3483fi 3484 3485 3486 3487 3488 3489for ac_header in vector.h vector 3490do 3491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3493 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3496 echo $ECHO_N "(cached) $ECHO_C" >&6 3497fi 3498ac_res=`eval echo '${'$as_ac_Header'}'` 3499 { echo "$as_me:$LINENO: result: $ac_res" >&5 3500echo "${ECHO_T}$ac_res" >&6; } 3501else 3502 # Is the header compilable? 3503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 3504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3505cat >conftest.$ac_ext <<_ACEOF 3506/* confdefs.h. */ 3507_ACEOF 3508cat confdefs.h >>conftest.$ac_ext 3509cat >>conftest.$ac_ext <<_ACEOF 3510/* end confdefs.h. */ 3511$ac_includes_default 3512#include <$ac_header> 3513_ACEOF 3514rm -f conftest.$ac_objext 3515if { (ac_try="$ac_compile" 3516case "(($ac_try" in 3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3518 *) ac_try_echo=$ac_try;; 3519esac 3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3521 (eval "$ac_compile") 2>conftest.er1 3522 ac_status=$? 3523 grep -v '^ *+' conftest.er1 >conftest.err 3524 rm -f conftest.er1 3525 cat conftest.err >&5 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); } && { 3528 test -z "$ac_cxx_werror_flag" || 3529 test ! -s conftest.err 3530 } && test -s conftest.$ac_objext; then 3531 ac_header_compiler=yes 3532else 3533 echo "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536 ac_header_compiler=no 3537fi 3538 3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3541echo "${ECHO_T}$ac_header_compiler" >&6; } 3542 3543# Is the header present? 3544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 3545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3546cat >conftest.$ac_ext <<_ACEOF 3547/* confdefs.h. */ 3548_ACEOF 3549cat confdefs.h >>conftest.$ac_ext 3550cat >>conftest.$ac_ext <<_ACEOF 3551/* end confdefs.h. */ 3552#include <$ac_header> 3553_ACEOF 3554if { (ac_try="$ac_cpp conftest.$ac_ext" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3561 ac_status=$? 3562 grep -v '^ *+' conftest.er1 >conftest.err 3563 rm -f conftest.er1 3564 cat conftest.err >&5 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); } >/dev/null && { 3567 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3568 test ! -s conftest.err 3569 }; then 3570 ac_header_preproc=yes 3571else 3572 echo "$as_me: failed program was:" >&5 3573sed 's/^/| /' conftest.$ac_ext >&5 3574 3575 ac_header_preproc=no 3576fi 3577 3578rm -f conftest.err conftest.$ac_ext 3579{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3580echo "${ECHO_T}$ac_header_preproc" >&6; } 3581 3582# So? What about this header? 3583case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 3584 yes:no: ) 3585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3589 ac_header_preproc=yes 3590 ;; 3591 no:yes:* ) 3592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3604 3605 ;; 3606esac 3607{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3610 echo $ECHO_N "(cached) $ECHO_C" >&6 3611else 3612 eval "$as_ac_Header=\$ac_header_preproc" 3613fi 3614ac_res=`eval echo '${'$as_ac_Header'}'` 3615 { echo "$as_me:$LINENO: result: $ac_res" >&5 3616echo "${ECHO_T}$ac_res" >&6; } 3617 3618fi 3619if test `eval echo '${'$as_ac_Header'}'` = yes; then 3620 cat >>confdefs.h <<_ACEOF 3621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3622_ACEOF 3623 vec_exes="zcav" vec_man8="zcav.8" 3624else 3625 echo "STL not installed so no ZCAV!" 3626fi 3627 3628done 3629 3630exes="bonnie++ $vec_exes" 3631man8="bonnie++.8 $vec_man8" 3632 3633 3634 3635for ac_header in algorithm algo.h algo 3636do 3637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3639 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3642 echo $ECHO_N "(cached) $ECHO_C" >&6 3643fi 3644ac_res=`eval echo '${'$as_ac_Header'}'` 3645 { echo "$as_me:$LINENO: result: $ac_res" >&5 3646echo "${ECHO_T}$ac_res" >&6; } 3647else 3648 # Is the header compilable? 3649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 3650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3651cat >conftest.$ac_ext <<_ACEOF 3652/* confdefs.h. */ 3653_ACEOF 3654cat confdefs.h >>conftest.$ac_ext 3655cat >>conftest.$ac_ext <<_ACEOF 3656/* end confdefs.h. */ 3657$ac_includes_default 3658#include <$ac_header> 3659_ACEOF 3660rm -f conftest.$ac_objext 3661if { (ac_try="$ac_compile" 3662case "(($ac_try" in 3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3664 *) ac_try_echo=$ac_try;; 3665esac 3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3667 (eval "$ac_compile") 2>conftest.er1 3668 ac_status=$? 3669 grep -v '^ *+' conftest.er1 >conftest.err 3670 rm -f conftest.er1 3671 cat conftest.err >&5 3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 (exit $ac_status); } && { 3674 test -z "$ac_cxx_werror_flag" || 3675 test ! -s conftest.err 3676 } && test -s conftest.$ac_objext; then 3677 ac_header_compiler=yes 3678else 3679 echo "$as_me: failed program was:" >&5 3680sed 's/^/| /' conftest.$ac_ext >&5 3681 3682 ac_header_compiler=no 3683fi 3684 3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3687echo "${ECHO_T}$ac_header_compiler" >&6; } 3688 3689# Is the header present? 3690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 3691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3692cat >conftest.$ac_ext <<_ACEOF 3693/* confdefs.h. */ 3694_ACEOF 3695cat confdefs.h >>conftest.$ac_ext 3696cat >>conftest.$ac_ext <<_ACEOF 3697/* end confdefs.h. */ 3698#include <$ac_header> 3699_ACEOF 3700if { (ac_try="$ac_cpp conftest.$ac_ext" 3701case "(($ac_try" in 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703 *) ac_try_echo=$ac_try;; 3704esac 3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3707 ac_status=$? 3708 grep -v '^ *+' conftest.er1 >conftest.err 3709 rm -f conftest.er1 3710 cat conftest.err >&5 3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3712 (exit $ac_status); } >/dev/null && { 3713 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3714 test ! -s conftest.err 3715 }; then 3716 ac_header_preproc=yes 3717else 3718 echo "$as_me: failed program was:" >&5 3719sed 's/^/| /' conftest.$ac_ext >&5 3720 3721 ac_header_preproc=no 3722fi 3723 3724rm -f conftest.err conftest.$ac_ext 3725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3726echo "${ECHO_T}$ac_header_preproc" >&6; } 3727 3728# So? What about this header? 3729case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 3730 yes:no: ) 3731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3735 ac_header_preproc=yes 3736 ;; 3737 no:yes:* ) 3738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3750 3751 ;; 3752esac 3753{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3756 echo $ECHO_N "(cached) $ECHO_C" >&6 3757else 3758 eval "$as_ac_Header=\$ac_header_preproc" 3759fi 3760ac_res=`eval echo '${'$as_ac_Header'}'` 3761 { echo "$as_me:$LINENO: result: $ac_res" >&5 3762echo "${ECHO_T}$ac_res" >&6; } 3763 3764fi 3765if test `eval echo '${'$as_ac_Header'}'` = yes; then 3766 cat >>confdefs.h <<_ACEOF 3767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3768_ACEOF 3769 3770fi 3771 3772done 3773 3774 3775 3776if [ -f /etc/objrepos ]; then 3777 aix_mem_size="#define AIX_MEM_SIZE 1" 3778fi 3779 3780ac_config_files="$ac_config_files Makefile bonnie.h port.h bonnie++.spec bon_csv2html bon_csv2txt sun/pkginfo" 3781 3782cat >confcache <<\_ACEOF 3783# This file is a shell script that caches the results of configure 3784# tests run on this system so they can be shared between configure 3785# scripts and configure runs, see configure's option --config-cache. 3786# It is not useful on other systems. If it contains results you don't 3787# want to keep, you may remove or edit it. 3788# 3789# config.status only pays attention to the cache file if you give it 3790# the --recheck option to rerun configure. 3791# 3792# `ac_cv_env_foo' variables (set or unset) will be overridden when 3793# loading this file, other *unset* `ac_cv_foo' will be assigned the 3794# following values. 3795 3796_ACEOF 3797 3798# The following way of writing the cache mishandles newlines in values, 3799# but we know of no workaround that is simple, portable, and efficient. 3800# So, we kill variables containing newlines. 3801# Ultrix sh set writes to stderr and can't be redirected directly, 3802# and sets the high bit in the cache file unless we assign to the vars. 3803( 3804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 3805 eval ac_val=\$$ac_var 3806 case $ac_val in #( 3807 *${as_nl}*) 3808 case $ac_var in #( 3809 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 3810echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 3811 esac 3812 case $ac_var in #( 3813 _ | IFS | as_nl) ;; #( 3814 *) $as_unset $ac_var ;; 3815 esac ;; 3816 esac 3817 done 3818 3819 (set) 2>&1 | 3820 case $as_nl`(ac_space=' '; set) 2>&1` in #( 3821 *${as_nl}ac_space=\ *) 3822 # `set' does not quote correctly, so add quotes (double-quote 3823 # substitution turns \\\\ into \\, and sed turns \\ into \). 3824 sed -n \ 3825 "s/'/'\\\\''/g; 3826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3827 ;; #( 3828 *) 3829 # `set' quotes correctly as required by POSIX, so do not add quotes. 3830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3831 ;; 3832 esac | 3833 sort 3834) | 3835 sed ' 3836 /^ac_cv_env_/b end 3837 t clear 3838 :clear 3839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3840 t end 3841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3842 :end' >>confcache 3843if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 3844 if test -w "$cache_file"; then 3845 test "x$cache_file" != "x/dev/null" && 3846 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 3847echo "$as_me: updating cache $cache_file" >&6;} 3848 cat confcache >$cache_file 3849 else 3850 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 3851echo "$as_me: not updating unwritable cache $cache_file" >&6;} 3852 fi 3853fi 3854rm -f confcache 3855 3856test "x$prefix" = xNONE && prefix=$ac_default_prefix 3857# Let make expand exec_prefix. 3858test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3859 3860DEFS=-DHAVE_CONFIG_H 3861 3862ac_libobjs= 3863ac_ltlibobjs= 3864for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3865 # 1. Remove the extension, and $U if already installed. 3866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 3867 ac_i=`echo "$ac_i" | sed "$ac_script"` 3868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 3869 # will be set to the directory where LIBOBJS objects are built. 3870 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 3871 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 3872done 3873LIBOBJS=$ac_libobjs 3874 3875LTLIBOBJS=$ac_ltlibobjs 3876 3877 3878 3879: ${CONFIG_STATUS=./config.status} 3880ac_clean_files_save=$ac_clean_files 3881ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3882{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3883echo "$as_me: creating $CONFIG_STATUS" >&6;} 3884cat >$CONFIG_STATUS <<_ACEOF 3885#! $SHELL 3886# Generated by $as_me. 3887# Run this file to recreate the current configuration. 3888# Compiler output produced by configure, useful for debugging 3889# configure, is in config.log if it exists. 3890 3891debug=false 3892ac_cs_recheck=false 3893ac_cs_silent=false 3894SHELL=\${CONFIG_SHELL-$SHELL} 3895_ACEOF 3896 3897cat >>$CONFIG_STATUS <<\_ACEOF 3898## --------------------- ## 3899## M4sh Initialization. ## 3900## --------------------- ## 3901 3902# Be more Bourne compatible 3903DUALCASE=1; export DUALCASE # for MKS sh 3904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3905 emulate sh 3906 NULLCMD=: 3907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3908 # is contrary to our usage. Disable this feature. 3909 alias -g '${1+"$@"}'='"$@"' 3910 setopt NO_GLOB_SUBST 3911else 3912 case `(set -o) 2>/dev/null` in 3913 *posix*) set -o posix ;; 3914esac 3915 3916fi 3917 3918 3919 3920 3921# PATH needs CR 3922# Avoid depending upon Character Ranges. 3923as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3925as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3926as_cr_digits='0123456789' 3927as_cr_alnum=$as_cr_Letters$as_cr_digits 3928 3929# The user is always right. 3930if test "${PATH_SEPARATOR+set}" != set; then 3931 echo "#! /bin/sh" >conf$$.sh 3932 echo "exit 0" >>conf$$.sh 3933 chmod +x conf$$.sh 3934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3935 PATH_SEPARATOR=';' 3936 else 3937 PATH_SEPARATOR=: 3938 fi 3939 rm -f conf$$.sh 3940fi 3941 3942# Support unset when possible. 3943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3944 as_unset=unset 3945else 3946 as_unset=false 3947fi 3948 3949 3950# IFS 3951# We need space, tab and new line, in precisely that order. Quoting is 3952# there to prevent editors from complaining about space-tab. 3953# (If _AS_PATH_WALK were called with IFS unset, it would disable word 3954# splitting by setting IFS to empty value.) 3955as_nl=' 3956' 3957IFS=" "" $as_nl" 3958 3959# Find who we are. Look in the path if we contain no directory separator. 3960case $0 in 3961 *[\\/]* ) as_myself=$0 ;; 3962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3963for as_dir in $PATH 3964do 3965 IFS=$as_save_IFS 3966 test -z "$as_dir" && as_dir=. 3967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3968done 3969IFS=$as_save_IFS 3970 3971 ;; 3972esac 3973# We did not find ourselves, most probably we were run as `sh COMMAND' 3974# in which case we are not to be found in the path. 3975if test "x$as_myself" = x; then 3976 as_myself=$0 3977fi 3978if test ! -f "$as_myself"; then 3979 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 3980 { (exit 1); exit 1; } 3981fi 3982 3983# Work around bugs in pre-3.0 UWIN ksh. 3984for as_var in ENV MAIL MAILPATH 3985do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 3986done 3987PS1='$ ' 3988PS2='> ' 3989PS4='+ ' 3990 3991# NLS nuisances. 3992for as_var in \ 3993 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3994 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3995 LC_TELEPHONE LC_TIME 3996do 3997 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 3998 eval $as_var=C; export $as_var 3999 else 4000 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 4001 fi 4002done 4003 4004# Required to use basename. 4005if expr a : '\(a\)' >/dev/null 2>&1 && 4006 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4007 as_expr=expr 4008else 4009 as_expr=false 4010fi 4011 4012if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4013 as_basename=basename 4014else 4015 as_basename=false 4016fi 4017 4018 4019# Name of the executable. 4020as_me=`$as_basename -- "$0" || 4021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4022 X"$0" : 'X\(//\)$' \| \ 4023 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4024echo X/"$0" | 4025 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4026 s//\1/ 4027 q 4028 } 4029 /^X\/\(\/\/\)$/{ 4030 s//\1/ 4031 q 4032 } 4033 /^X\/\(\/\).*/{ 4034 s//\1/ 4035 q 4036 } 4037 s/.*/./; q'` 4038 4039# CDPATH. 4040$as_unset CDPATH 4041 4042 4043 4044 as_lineno_1=$LINENO 4045 as_lineno_2=$LINENO 4046 test "x$as_lineno_1" != "x$as_lineno_2" && 4047 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 4048 4049 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4050 # uniformly replaced by the line number. The first 'sed' inserts a 4051 # line-number line after each line using $LINENO; the second 'sed' 4052 # does the real work. The second script uses 'N' to pair each 4053 # line-number line with the line containing $LINENO, and appends 4054 # trailing '-' during substitution so that $LINENO is not a special 4055 # case at line end. 4056 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4057 # scripts with optimization help from Paolo Bonzini. Blame Lee 4058 # E. McMahon (1931-1989) for sed's syntax. :-) 4059 sed -n ' 4060 p 4061 /[$]LINENO/= 4062 ' <$as_myself | 4063 sed ' 4064 s/[$]LINENO.*/&-/ 4065 t lineno 4066 b 4067 :lineno 4068 N 4069 :loop 4070 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4071 t loop 4072 s/-\n.*// 4073 ' >$as_me.lineno && 4074 chmod +x "$as_me.lineno" || 4075 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 4076 { (exit 1); exit 1; }; } 4077 4078 # Don't try to exec as it changes $[0], causing all sort of problems 4079 # (the dirname of $[0] is not the place where we might find the 4080 # original and so on. Autoconf is especially sensitive to this). 4081 . "./$as_me.lineno" 4082 # Exit status is that of the last command. 4083 exit 4084} 4085 4086 4087if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4088 as_dirname=dirname 4089else 4090 as_dirname=false 4091fi 4092 4093ECHO_C= ECHO_N= ECHO_T= 4094case `echo -n x` in 4095-n*) 4096 case `echo 'x\c'` in 4097 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4098 *) ECHO_C='\c';; 4099 esac;; 4100*) 4101 ECHO_N='-n';; 4102esac 4103 4104if expr a : '\(a\)' >/dev/null 2>&1 && 4105 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4106 as_expr=expr 4107else 4108 as_expr=false 4109fi 4110 4111rm -f conf$$ conf$$.exe conf$$.file 4112if test -d conf$$.dir; then 4113 rm -f conf$$.dir/conf$$.file 4114else 4115 rm -f conf$$.dir 4116 mkdir conf$$.dir 4117fi 4118echo >conf$$.file 4119if ln -s conf$$.file conf$$ 2>/dev/null; then 4120 as_ln_s='ln -s' 4121 # ... but there are two gotchas: 4122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4124 # In both cases, we have to default to `cp -p'. 4125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4126 as_ln_s='cp -p' 4127elif ln conf$$.file conf$$ 2>/dev/null; then 4128 as_ln_s=ln 4129else 4130 as_ln_s='cp -p' 4131fi 4132rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4133rmdir conf$$.dir 2>/dev/null 4134 4135if mkdir -p . 2>/dev/null; then 4136 as_mkdir_p=: 4137else 4138 test -d ./-p && rmdir ./-p 4139 as_mkdir_p=false 4140fi 4141 4142if test -x / >/dev/null 2>&1; then 4143 as_test_x='test -x' 4144else 4145 if ls -dL / >/dev/null 2>&1; then 4146 as_ls_L_option=L 4147 else 4148 as_ls_L_option= 4149 fi 4150 as_test_x=' 4151 eval sh -c '\'' 4152 if test -d "$1"; then 4153 test -d "$1/."; 4154 else 4155 case $1 in 4156 -*)set "./$1";; 4157 esac; 4158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 4159 ???[sx]*):;;*)false;;esac;fi 4160 '\'' sh 4161 ' 4162fi 4163as_executable_p=$as_test_x 4164 4165# Sed expression to map a string onto a valid CPP name. 4166as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4167 4168# Sed expression to map a string onto a valid variable name. 4169as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4170 4171 4172exec 6>&1 4173 4174# Save the log message, to keep $[0] and so on meaningful, and to 4175# report actual input values of CONFIG_FILES etc. instead of their 4176# values after options handling. 4177ac_log=" 4178This file was extended by $as_me, which was 4179generated by GNU Autoconf 2.61. Invocation command line was 4180 4181 CONFIG_FILES = $CONFIG_FILES 4182 CONFIG_HEADERS = $CONFIG_HEADERS 4183 CONFIG_LINKS = $CONFIG_LINKS 4184 CONFIG_COMMANDS = $CONFIG_COMMANDS 4185 $ $0 $@ 4186 4187on `(hostname || uname -n) 2>/dev/null | sed 1q` 4188" 4189 4190_ACEOF 4191 4192cat >>$CONFIG_STATUS <<_ACEOF 4193# Files that config.status was made for. 4194config_files="$ac_config_files" 4195config_headers="$ac_config_headers" 4196 4197_ACEOF 4198 4199cat >>$CONFIG_STATUS <<\_ACEOF 4200ac_cs_usage="\ 4201\`$as_me' instantiates files from templates according to the 4202current configuration. 4203 4204Usage: $0 [OPTIONS] [FILE]... 4205 4206 -h, --help print this help, then exit 4207 -V, --version print version number and configuration settings, then exit 4208 -q, --quiet do not print progress messages 4209 -d, --debug don't remove temporary files 4210 --recheck update $as_me by reconfiguring in the same conditions 4211 --file=FILE[:TEMPLATE] 4212 instantiate the configuration file FILE 4213 --header=FILE[:TEMPLATE] 4214 instantiate the configuration header FILE 4215 4216Configuration files: 4217$config_files 4218 4219Configuration headers: 4220$config_headers 4221 4222Report bugs to <bug-autoconf@gnu.org>." 4223 4224_ACEOF 4225cat >>$CONFIG_STATUS <<_ACEOF 4226ac_cs_version="\\ 4227config.status 4228configured by $0, generated by GNU Autoconf 2.61, 4229 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 4230 4231Copyright (C) 2006 Free Software Foundation, Inc. 4232This config.status script is free software; the Free Software Foundation 4233gives unlimited permission to copy, distribute and modify it." 4234 4235ac_pwd='$ac_pwd' 4236srcdir='$srcdir' 4237INSTALL='$INSTALL' 4238_ACEOF 4239 4240cat >>$CONFIG_STATUS <<\_ACEOF 4241# If no file are specified by the user, then we need to provide default 4242# value. By we need to know if files were specified by the user. 4243ac_need_defaults=: 4244while test $# != 0 4245do 4246 case $1 in 4247 --*=*) 4248 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4250 ac_shift=: 4251 ;; 4252 *) 4253 ac_option=$1 4254 ac_optarg=$2 4255 ac_shift=shift 4256 ;; 4257 esac 4258 4259 case $ac_option in 4260 # Handling of the options. 4261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4262 ac_cs_recheck=: ;; 4263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4264 echo "$ac_cs_version"; exit ;; 4265 --debug | --debu | --deb | --de | --d | -d ) 4266 debug=: ;; 4267 --file | --fil | --fi | --f ) 4268 $ac_shift 4269 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4270 ac_need_defaults=false;; 4271 --header | --heade | --head | --hea ) 4272 $ac_shift 4273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4274 ac_need_defaults=false;; 4275 --he | --h) 4276 # Conflict between --help and --header 4277 { echo "$as_me: error: ambiguous option: $1 4278Try \`$0 --help' for more information." >&2 4279 { (exit 1); exit 1; }; };; 4280 --help | --hel | -h ) 4281 echo "$ac_cs_usage"; exit ;; 4282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4283 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4284 ac_cs_silent=: ;; 4285 4286 # This is an error. 4287 -*) { echo "$as_me: error: unrecognized option: $1 4288Try \`$0 --help' for more information." >&2 4289 { (exit 1); exit 1; }; } ;; 4290 4291 *) ac_config_targets="$ac_config_targets $1" 4292 ac_need_defaults=false ;; 4293 4294 esac 4295 shift 4296done 4297 4298ac_configure_extra_args= 4299 4300if $ac_cs_silent; then 4301 exec 6>/dev/null 4302 ac_configure_extra_args="$ac_configure_extra_args --silent" 4303fi 4304 4305_ACEOF 4306cat >>$CONFIG_STATUS <<_ACEOF 4307if \$ac_cs_recheck; then 4308 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4309 CONFIG_SHELL=$SHELL 4310 export CONFIG_SHELL 4311 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4312fi 4313 4314_ACEOF 4315cat >>$CONFIG_STATUS <<\_ACEOF 4316exec 5>>config.log 4317{ 4318 echo 4319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4320## Running $as_me. ## 4321_ASBOX 4322 echo "$ac_log" 4323} >&5 4324 4325_ACEOF 4326cat >>$CONFIG_STATUS <<_ACEOF 4327_ACEOF 4328 4329cat >>$CONFIG_STATUS <<\_ACEOF 4330 4331# Handling of arguments. 4332for ac_config_target in $ac_config_targets 4333do 4334 case $ac_config_target in 4335 "conf.h") CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;; 4336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4337 "bonnie.h") CONFIG_FILES="$CONFIG_FILES bonnie.h" ;; 4338 "port.h") CONFIG_FILES="$CONFIG_FILES port.h" ;; 4339 "bonnie++.spec") CONFIG_FILES="$CONFIG_FILES bonnie++.spec" ;; 4340 "bon_csv2html") CONFIG_FILES="$CONFIG_FILES bon_csv2html" ;; 4341 "bon_csv2txt") CONFIG_FILES="$CONFIG_FILES bon_csv2txt" ;; 4342 "sun/pkginfo") CONFIG_FILES="$CONFIG_FILES sun/pkginfo" ;; 4343 4344 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4345echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4346 { (exit 1); exit 1; }; };; 4347 esac 4348done 4349 4350 4351# If the user did not use the arguments to specify the items to instantiate, 4352# then the envvar interface is used. Set only those that are not. 4353# We use the long form for the default assignment because of an extremely 4354# bizarre bug on SunOS 4.1.3. 4355if $ac_need_defaults; then 4356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4358fi 4359 4360# Have a temporary directory for convenience. Make it in the build tree 4361# simply because there is no reason against having it here, and in addition, 4362# creating and moving files from /tmp can sometimes cause problems. 4363# Hook for its removal unless debugging. 4364# Note that there is a small window in which the directory will not be cleaned: 4365# after its creation but before its name has been assigned to `$tmp'. 4366$debug || 4367{ 4368 tmp= 4369 trap 'exit_status=$? 4370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 4371' 0 4372 trap '{ (exit 1); exit 1; }' 1 2 13 15 4373} 4374# Create a (secure) tmp directory for tmp files. 4375 4376{ 4377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4378 test -n "$tmp" && test -d "$tmp" 4379} || 4380{ 4381 tmp=./conf$$-$RANDOM 4382 (umask 077 && mkdir "$tmp") 4383} || 4384{ 4385 echo "$me: cannot create a temporary directory in ." >&2 4386 { (exit 1); exit 1; } 4387} 4388 4389# 4390# Set up the sed scripts for CONFIG_FILES section. 4391# 4392 4393# No need to generate the scripts if there are no CONFIG_FILES. 4394# This happens for instance when ./config.status config.h 4395if test -n "$CONFIG_FILES"; then 4396 4397_ACEOF 4398 4399 4400 4401ac_delim='%!_!# ' 4402for ac_last_try in false false false false false :; do 4403 cat >conf$$subs.sed <<_ACEOF 4404SHELL!$SHELL$ac_delim 4405PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 4406PACKAGE_NAME!$PACKAGE_NAME$ac_delim 4407PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 4408PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 4409PACKAGE_STRING!$PACKAGE_STRING$ac_delim 4410PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 4411exec_prefix!$exec_prefix$ac_delim 4412prefix!$prefix$ac_delim 4413program_transform_name!$program_transform_name$ac_delim 4414bindir!$bindir$ac_delim 4415sbindir!$sbindir$ac_delim 4416libexecdir!$libexecdir$ac_delim 4417datarootdir!$datarootdir$ac_delim 4418datadir!$datadir$ac_delim 4419sysconfdir!$sysconfdir$ac_delim 4420sharedstatedir!$sharedstatedir$ac_delim 4421localstatedir!$localstatedir$ac_delim 4422includedir!$includedir$ac_delim 4423oldincludedir!$oldincludedir$ac_delim 4424docdir!$docdir$ac_delim 4425infodir!$infodir$ac_delim 4426htmldir!$htmldir$ac_delim 4427dvidir!$dvidir$ac_delim 4428pdfdir!$pdfdir$ac_delim 4429psdir!$psdir$ac_delim 4430libdir!$libdir$ac_delim 4431localedir!$localedir$ac_delim 4432mandir!$mandir$ac_delim 4433DEFS!$DEFS$ac_delim 4434ECHO_C!$ECHO_C$ac_delim 4435ECHO_N!$ECHO_N$ac_delim 4436ECHO_T!$ECHO_T$ac_delim 4437LIBS!$LIBS$ac_delim 4438build_alias!$build_alias$ac_delim 4439host_alias!$host_alias$ac_delim 4440target_alias!$target_alias$ac_delim 4441version!$version$ac_delim 4442stripping!$stripping$ac_delim 4443debug!$debug$ac_delim 4444CXX!$CXX$ac_delim 4445CXXFLAGS!$CXXFLAGS$ac_delim 4446LDFLAGS!$LDFLAGS$ac_delim 4447CPPFLAGS!$CPPFLAGS$ac_delim 4448ac_ct_CXX!$ac_ct_CXX$ac_delim 4449EXEEXT!$EXEEXT$ac_delim 4450OBJEXT!$OBJEXT$ac_delim 4451CXXCPP!$CXXCPP$ac_delim 4452INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 4453INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 4454INSTALL_DATA!$INSTALL_DATA$ac_delim 4455GREP!$GREP$ac_delim 4456EGREP!$EGREP$ac_delim 4457semun!$semun$ac_delim 4458sa_sigaction!$sa_sigaction$ac_delim 4459bool!$bool$ac_delim 4460true_false!$true_false$ac_delim 4461snprintf!$snprintf$ac_delim 4462exes!$exes$ac_delim 4463man8!$man8$ac_delim 4464aix_mem_size!$aix_mem_size$ac_delim 4465LIBOBJS!$LIBOBJS$ac_delim 4466LTLIBOBJS!$LTLIBOBJS$ac_delim 4467_ACEOF 4468 4469 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then 4470 break 4471 elif $ac_last_try; then 4472 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 4473echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 4474 { (exit 1); exit 1; }; } 4475 else 4476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4477 fi 4478done 4479 4480ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 4481if test -n "$ac_eof"; then 4482 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 4483 ac_eof=`expr $ac_eof + 1` 4484fi 4485 4486cat >>$CONFIG_STATUS <<_ACEOF 4487cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 4488/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 4489_ACEOF 4490sed ' 4491s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 4492s/^/s,@/; s/!/@,|#_!!_#|/ 4493:n 4494t n 4495s/'"$ac_delim"'$/,g/; t 4496s/$/\\/; p 4497N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 4498' >>$CONFIG_STATUS <conf$$subs.sed 4499rm -f conf$$subs.sed 4500cat >>$CONFIG_STATUS <<_ACEOF 4501:end 4502s/|#_!!_#|//g 4503CEOF$ac_eof 4504_ACEOF 4505 4506 4507# VPATH may cause trouble with some makes, so we remove $(srcdir), 4508# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4509# trailing colons and then remove the whole line if VPATH becomes empty 4510# (actually we leave an empty line to preserve line numbers). 4511if test "x$srcdir" = x.; then 4512 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4513s/:*\$(srcdir):*/:/ 4514s/:*\${srcdir}:*/:/ 4515s/:*@srcdir@:*/:/ 4516s/^\([^=]*=[ ]*\):*/\1/ 4517s/:*$// 4518s/^[^=]*=[ ]*$// 4519}' 4520fi 4521 4522cat >>$CONFIG_STATUS <<\_ACEOF 4523fi # test -n "$CONFIG_FILES" 4524 4525 4526for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 4527do 4528 case $ac_tag in 4529 :[FHLC]) ac_mode=$ac_tag; continue;; 4530 esac 4531 case $ac_mode$ac_tag in 4532 :[FHL]*:*);; 4533 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 4534echo "$as_me: error: Invalid tag $ac_tag." >&2;} 4535 { (exit 1); exit 1; }; };; 4536 :[FH]-) ac_tag=-:-;; 4537 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4538 esac 4539 ac_save_IFS=$IFS 4540 IFS=: 4541 set x $ac_tag 4542 IFS=$ac_save_IFS 4543 shift 4544 ac_file=$1 4545 shift 4546 4547 case $ac_mode in 4548 :L) ac_source=$1;; 4549 :[FH]) 4550 ac_file_inputs= 4551 for ac_f 4552 do 4553 case $ac_f in 4554 -) ac_f="$tmp/stdin";; 4555 *) # Look for the file first in the build tree, then in the source tree 4556 # (if the path is not absolute). The absolute path cannot be DOS-style, 4557 # because $ac_f cannot contain `:'. 4558 test -f "$ac_f" || 4559 case $ac_f in 4560 [\\/$]*) false;; 4561 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4562 esac || 4563 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 4564echo "$as_me: error: cannot find input file: $ac_f" >&2;} 4565 { (exit 1); exit 1; }; };; 4566 esac 4567 ac_file_inputs="$ac_file_inputs $ac_f" 4568 done 4569 4570 # Let's still pretend it is `configure' which instantiates (i.e., don't 4571 # use $as_me), people would be surprised to read: 4572 # /* config.h. Generated by config.status. */ 4573 configure_input="Generated from "`IFS=: 4574 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 4575 if test x"$ac_file" != x-; then 4576 configure_input="$ac_file. $configure_input" 4577 { echo "$as_me:$LINENO: creating $ac_file" >&5 4578echo "$as_me: creating $ac_file" >&6;} 4579 fi 4580 4581 case $ac_tag in 4582 *:-:* | *:-) cat >"$tmp/stdin";; 4583 esac 4584 ;; 4585 esac 4586 4587 ac_dir=`$as_dirname -- "$ac_file" || 4588$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4589 X"$ac_file" : 'X\(//\)[^/]' \| \ 4590 X"$ac_file" : 'X\(//\)$' \| \ 4591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4592echo X"$ac_file" | 4593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4594 s//\1/ 4595 q 4596 } 4597 /^X\(\/\/\)[^/].*/{ 4598 s//\1/ 4599 q 4600 } 4601 /^X\(\/\/\)$/{ 4602 s//\1/ 4603 q 4604 } 4605 /^X\(\/\).*/{ 4606 s//\1/ 4607 q 4608 } 4609 s/.*/./; q'` 4610 { as_dir="$ac_dir" 4611 case $as_dir in #( 4612 -*) as_dir=./$as_dir;; 4613 esac 4614 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 4615 as_dirs= 4616 while :; do 4617 case $as_dir in #( 4618 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 4619 *) as_qdir=$as_dir;; 4620 esac 4621 as_dirs="'$as_qdir' $as_dirs" 4622 as_dir=`$as_dirname -- "$as_dir" || 4623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4624 X"$as_dir" : 'X\(//\)[^/]' \| \ 4625 X"$as_dir" : 'X\(//\)$' \| \ 4626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4627echo X"$as_dir" | 4628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4629 s//\1/ 4630 q 4631 } 4632 /^X\(\/\/\)[^/].*/{ 4633 s//\1/ 4634 q 4635 } 4636 /^X\(\/\/\)$/{ 4637 s//\1/ 4638 q 4639 } 4640 /^X\(\/\).*/{ 4641 s//\1/ 4642 q 4643 } 4644 s/.*/./; q'` 4645 test -d "$as_dir" && break 4646 done 4647 test -z "$as_dirs" || eval "mkdir $as_dirs" 4648 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 4649echo "$as_me: error: cannot create directory $as_dir" >&2;} 4650 { (exit 1); exit 1; }; }; } 4651 ac_builddir=. 4652 4653case "$ac_dir" in 4654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4655*) 4656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4657 # A ".." for each directory in $ac_dir_suffix. 4658 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 4659 case $ac_top_builddir_sub in 4660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4662 esac ;; 4663esac 4664ac_abs_top_builddir=$ac_pwd 4665ac_abs_builddir=$ac_pwd$ac_dir_suffix 4666# for backward compatibility: 4667ac_top_builddir=$ac_top_build_prefix 4668 4669case $srcdir in 4670 .) # We are building in place. 4671 ac_srcdir=. 4672 ac_top_srcdir=$ac_top_builddir_sub 4673 ac_abs_top_srcdir=$ac_pwd ;; 4674 [\\/]* | ?:[\\/]* ) # Absolute name. 4675 ac_srcdir=$srcdir$ac_dir_suffix; 4676 ac_top_srcdir=$srcdir 4677 ac_abs_top_srcdir=$srcdir ;; 4678 *) # Relative name. 4679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4680 ac_top_srcdir=$ac_top_build_prefix$srcdir 4681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 4682esac 4683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 4684 4685 4686 case $ac_mode in 4687 :F) 4688 # 4689 # CONFIG_FILE 4690 # 4691 4692 case $INSTALL in 4693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 4694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 4695 esac 4696_ACEOF 4697 4698cat >>$CONFIG_STATUS <<\_ACEOF 4699# If the template does not know about datarootdir, expand it. 4700# FIXME: This hack should be removed a few years after 2.60. 4701ac_datarootdir_hack=; ac_datarootdir_seen= 4702 4703case `sed -n '/datarootdir/ { 4704 p 4705 q 4706} 4707/@datadir@/p 4708/@docdir@/p 4709/@infodir@/p 4710/@localedir@/p 4711/@mandir@/p 4712' $ac_file_inputs` in 4713*datarootdir*) ac_datarootdir_seen=yes;; 4714*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 4715 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 4716echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4717_ACEOF 4718cat >>$CONFIG_STATUS <<_ACEOF 4719 ac_datarootdir_hack=' 4720 s&@datadir@&$datadir&g 4721 s&@docdir@&$docdir&g 4722 s&@infodir@&$infodir&g 4723 s&@localedir@&$localedir&g 4724 s&@mandir@&$mandir&g 4725 s&\\\${datarootdir}&$datarootdir&g' ;; 4726esac 4727_ACEOF 4728 4729# Neutralize VPATH when `$srcdir' = `.'. 4730# Shell code in configure.ac might set extrasub. 4731# FIXME: do we really want to maintain this feature? 4732cat >>$CONFIG_STATUS <<_ACEOF 4733 sed "$ac_vpsub 4734$extrasub 4735_ACEOF 4736cat >>$CONFIG_STATUS <<\_ACEOF 4737:t 4738/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4739s&@configure_input@&$configure_input&;t t 4740s&@top_builddir@&$ac_top_builddir_sub&;t t 4741s&@srcdir@&$ac_srcdir&;t t 4742s&@abs_srcdir@&$ac_abs_srcdir&;t t 4743s&@top_srcdir@&$ac_top_srcdir&;t t 4744s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4745s&@builddir@&$ac_builddir&;t t 4746s&@abs_builddir@&$ac_abs_builddir&;t t 4747s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 4748s&@INSTALL@&$ac_INSTALL&;t t 4749$ac_datarootdir_hack 4750" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 4751 4752test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4753 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 4754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 4755 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4756which seems to be undefined. Please make sure it is defined." >&5 4757echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4758which seems to be undefined. Please make sure it is defined." >&2;} 4759 4760 rm -f "$tmp/stdin" 4761 case $ac_file in 4762 -) cat "$tmp/out"; rm -f "$tmp/out";; 4763 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 4764 esac 4765 ;; 4766 :H) 4767 # 4768 # CONFIG_HEADER 4769 # 4770_ACEOF 4771 4772# Transform confdefs.h into a sed script `conftest.defines', that 4773# substitutes the proper values into config.h.in to produce config.h. 4774rm -f conftest.defines conftest.tail 4775# First, append a space to every undef/define line, to ease matching. 4776echo 's/$/ /' >conftest.defines 4777# Then, protect against being on the right side of a sed subst, or in 4778# an unquoted here document, in config.status. If some macros were 4779# called several times there might be several #defines for the same 4780# symbol, which is useless. But do not sort them, since the last 4781# AC_DEFINE must be honored. 4782ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 4783# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 4784# NAME is the cpp macro being defined, VALUE is the value it is being given. 4785# PARAMS is the parameter list in the macro definition--in most cases, it's 4786# just an empty string. 4787ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 4788ac_dB='\\)[ (].*,\\1define\\2' 4789ac_dC=' ' 4790ac_dD=' ,' 4791 4792uniq confdefs.h | 4793 sed -n ' 4794 t rset 4795 :rset 4796 s/^[ ]*#[ ]*define[ ][ ]*// 4797 t ok 4798 d 4799 :ok 4800 s/[\\&,]/\\&/g 4801 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 4802 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 4803 ' >>conftest.defines 4804 4805# Remove the space that was appended to ease matching. 4806# Then replace #undef with comments. This is necessary, for 4807# example, in the case of _POSIX_SOURCE, which is predefined and required 4808# on some systems where configure will not decide to define it. 4809# (The regexp can be short, since the line contains either #define or #undef.) 4810echo 's/ $// 4811s,^[ #]*u.*,/* & */,' >>conftest.defines 4812 4813# Break up conftest.defines: 4814ac_max_sed_lines=50 4815 4816# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 4817# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 4818# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 4819# et cetera. 4820ac_in='$ac_file_inputs' 4821ac_out='"$tmp/out1"' 4822ac_nxt='"$tmp/out2"' 4823 4824while : 4825do 4826 # Write a here document: 4827 cat >>$CONFIG_STATUS <<_ACEOF 4828 # First, check the format of the line: 4829 cat >"\$tmp/defines.sed" <<\\CEOF 4830/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 4831/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 4832b 4833:def 4834_ACEOF 4835 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 4836 echo 'CEOF 4837 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 4838 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 4839 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 4840 grep . conftest.tail >/dev/null || break 4841 rm -f conftest.defines 4842 mv conftest.tail conftest.defines 4843done 4844rm -f conftest.defines conftest.tail 4845 4846echo "ac_result=$ac_in" >>$CONFIG_STATUS 4847cat >>$CONFIG_STATUS <<\_ACEOF 4848 if test x"$ac_file" != x-; then 4849 echo "/* $configure_input */" >"$tmp/config.h" 4850 cat "$ac_result" >>"$tmp/config.h" 4851 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 4852 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 4853echo "$as_me: $ac_file is unchanged" >&6;} 4854 else 4855 rm -f $ac_file 4856 mv "$tmp/config.h" $ac_file 4857 fi 4858 else 4859 echo "/* $configure_input */" 4860 cat "$ac_result" 4861 fi 4862 rm -f "$tmp/out12" 4863 ;; 4864 4865 4866 esac 4867 4868done # for ac_tag 4869 4870 4871{ (exit 0); exit 0; } 4872_ACEOF 4873chmod +x $CONFIG_STATUS 4874ac_clean_files=$ac_clean_files_save 4875 4876 4877# configure is writing to config.log, and then calls config.status. 4878# config.status does its own redirection, appending to config.log. 4879# Unfortunately, on DOS this fails, as config.log is still kept open 4880# by configure, so config.status won't be able to write to it; its 4881# output is simply discarded. So we exec the FD to /dev/null, 4882# effectively closing config.log, so it can be properly (re)opened and 4883# appended to by config.status. When coming back to configure, we 4884# need to make the FD available again. 4885if test "$no_create" != yes; then 4886 ac_cs_success=: 4887 ac_config_status_args= 4888 test "$silent" = yes && 4889 ac_config_status_args="$ac_config_status_args --quiet" 4890 exec 5>/dev/null 4891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4892 exec 5>>config.log 4893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4894 # would make configure fail if this is the last instruction. 4895 $ac_cs_success || { (exit 1); exit 1; } 4896fi 4897 4898