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="main.c" 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 653INSTALL_PROGRAM 654INSTALL_SCRIPT 655INSTALL_DATA 656am__isrc 657CYGPATH_W 658PACKAGE 659VERSION 660ACLOCAL 661AUTOCONF 662AUTOMAKE 663AUTOHEADER 664MAKEINFO 665install_sh 666STRIP 667INSTALL_STRIP_PROGRAM 668mkdir_p 669AWK 670SET_MAKE 671am__leading_dot 672AMTAR 673am__tar 674am__untar 675build 676build_cpu 677build_vendor 678build_os 679host 680host_cpu 681host_vendor 682host_os 683CC 684CFLAGS 685LDFLAGS 686CPPFLAGS 687ac_ct_CC 688EXEEXT 689OBJEXT 690DEPDIR 691am__include 692am__quote 693AMDEP_TRUE 694AMDEP_FALSE 695AMDEPBACKSLASH 696CCDEPMODE 697am__fastdepCC_TRUE 698am__fastdepCC_FALSE 699CPP 700GREP 701EGREP 702LIBOBJS 703LTLIBOBJS' 704ac_subst_files='' 705 ac_precious_vars='build_alias 706host_alias 707target_alias 708CC 709CFLAGS 710LDFLAGS 711LIBS 712CPPFLAGS 713CPP' 714 715 716# Initialize some variables set by options. 717ac_init_help= 718ac_init_version=false 719# The variables have the same names as the options, with 720# dashes changed to underlines. 721cache_file=/dev/null 722exec_prefix=NONE 723no_create= 724no_recursion= 725prefix=NONE 726program_prefix=NONE 727program_suffix=NONE 728program_transform_name=s,x,x, 729silent= 730site= 731srcdir= 732verbose= 733x_includes=NONE 734x_libraries=NONE 735 736# Installation directory options. 737# These are left unexpanded so users can "make install exec_prefix=/foo" 738# and all the variables that are supposed to be based on exec_prefix 739# by default will actually change. 740# Use braces instead of parens because sh, perl, etc. also accept them. 741# (The list follows the same order as the GNU Coding Standards.) 742bindir='${exec_prefix}/bin' 743sbindir='${exec_prefix}/sbin' 744libexecdir='${exec_prefix}/libexec' 745datarootdir='${prefix}/share' 746datadir='${datarootdir}' 747sysconfdir='${prefix}/etc' 748sharedstatedir='${prefix}/com' 749localstatedir='${prefix}/var' 750includedir='${prefix}/include' 751oldincludedir='/usr/include' 752docdir='${datarootdir}/doc/${PACKAGE}' 753infodir='${datarootdir}/info' 754htmldir='${docdir}' 755dvidir='${docdir}' 756pdfdir='${docdir}' 757psdir='${docdir}' 758libdir='${exec_prefix}/lib' 759localedir='${datarootdir}/locale' 760mandir='${datarootdir}/man' 761 762ac_prev= 763ac_dashdash= 764for ac_option 765do 766 # If the previous option needs an argument, assign it. 767 if test -n "$ac_prev"; then 768 eval $ac_prev=\$ac_option 769 ac_prev= 770 continue 771 fi 772 773 case $ac_option in 774 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 775 *) ac_optarg=yes ;; 776 esac 777 778 # Accept the important Cygnus configure options, so we can diagnose typos. 779 780 case $ac_dashdash$ac_option in 781 --) 782 ac_dashdash=yes ;; 783 784 -bindir | --bindir | --bindi | --bind | --bin | --bi) 785 ac_prev=bindir ;; 786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 787 bindir=$ac_optarg ;; 788 789 -build | --build | --buil | --bui | --bu) 790 ac_prev=build_alias ;; 791 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 792 build_alias=$ac_optarg ;; 793 794 -cache-file | --cache-file | --cache-fil | --cache-fi \ 795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 796 ac_prev=cache_file ;; 797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 799 cache_file=$ac_optarg ;; 800 801 --config-cache | -C) 802 cache_file=config.cache ;; 803 804 -datadir | --datadir | --datadi | --datad) 805 ac_prev=datadir ;; 806 -datadir=* | --datadir=* | --datadi=* | --datad=*) 807 datadir=$ac_optarg ;; 808 809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 810 | --dataroo | --dataro | --datar) 811 ac_prev=datarootdir ;; 812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 814 datarootdir=$ac_optarg ;; 815 816 -disable-* | --disable-*) 817 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 818 # Reject names that are not valid shell variable names. 819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 821 { (exit 1); exit 1; }; } 822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 823 eval enable_$ac_feature=no ;; 824 825 -docdir | --docdir | --docdi | --doc | --do) 826 ac_prev=docdir ;; 827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 828 docdir=$ac_optarg ;; 829 830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 831 ac_prev=dvidir ;; 832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 833 dvidir=$ac_optarg ;; 834 835 -enable-* | --enable-*) 836 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 837 # Reject names that are not valid shell variable names. 838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 840 { (exit 1); exit 1; }; } 841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 842 eval enable_$ac_feature=\$ac_optarg ;; 843 844 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 845 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 846 | --exec | --exe | --ex) 847 ac_prev=exec_prefix ;; 848 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 849 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 850 | --exec=* | --exe=* | --ex=*) 851 exec_prefix=$ac_optarg ;; 852 853 -gas | --gas | --ga | --g) 854 # Obsolete; use --with-gas. 855 with_gas=yes ;; 856 857 -help | --help | --hel | --he | -h) 858 ac_init_help=long ;; 859 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 860 ac_init_help=recursive ;; 861 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 862 ac_init_help=short ;; 863 864 -host | --host | --hos | --ho) 865 ac_prev=host_alias ;; 866 -host=* | --host=* | --hos=* | --ho=*) 867 host_alias=$ac_optarg ;; 868 869 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 870 ac_prev=htmldir ;; 871 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 872 | --ht=*) 873 htmldir=$ac_optarg ;; 874 875 -includedir | --includedir | --includedi | --included | --include \ 876 | --includ | --inclu | --incl | --inc) 877 ac_prev=includedir ;; 878 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 879 | --includ=* | --inclu=* | --incl=* | --inc=*) 880 includedir=$ac_optarg ;; 881 882 -infodir | --infodir | --infodi | --infod | --info | --inf) 883 ac_prev=infodir ;; 884 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 885 infodir=$ac_optarg ;; 886 887 -libdir | --libdir | --libdi | --libd) 888 ac_prev=libdir ;; 889 -libdir=* | --libdir=* | --libdi=* | --libd=*) 890 libdir=$ac_optarg ;; 891 892 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 893 | --libexe | --libex | --libe) 894 ac_prev=libexecdir ;; 895 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 896 | --libexe=* | --libex=* | --libe=*) 897 libexecdir=$ac_optarg ;; 898 899 -localedir | --localedir | --localedi | --localed | --locale) 900 ac_prev=localedir ;; 901 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 902 localedir=$ac_optarg ;; 903 904 -localstatedir | --localstatedir | --localstatedi | --localstated \ 905 | --localstate | --localstat | --localsta | --localst | --locals) 906 ac_prev=localstatedir ;; 907 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 908 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 909 localstatedir=$ac_optarg ;; 910 911 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 912 ac_prev=mandir ;; 913 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 914 mandir=$ac_optarg ;; 915 916 -nfp | --nfp | --nf) 917 # Obsolete; use --without-fp. 918 with_fp=no ;; 919 920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 921 | --no-cr | --no-c | -n) 922 no_create=yes ;; 923 924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 926 no_recursion=yes ;; 927 928 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 929 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 930 | --oldin | --oldi | --old | --ol | --o) 931 ac_prev=oldincludedir ;; 932 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 933 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 934 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 935 oldincludedir=$ac_optarg ;; 936 937 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 938 ac_prev=prefix ;; 939 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 940 prefix=$ac_optarg ;; 941 942 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 943 | --program-pre | --program-pr | --program-p) 944 ac_prev=program_prefix ;; 945 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 946 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 947 program_prefix=$ac_optarg ;; 948 949 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 950 | --program-suf | --program-su | --program-s) 951 ac_prev=program_suffix ;; 952 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 953 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 954 program_suffix=$ac_optarg ;; 955 956 -program-transform-name | --program-transform-name \ 957 | --program-transform-nam | --program-transform-na \ 958 | --program-transform-n | --program-transform- \ 959 | --program-transform | --program-transfor \ 960 | --program-transfo | --program-transf \ 961 | --program-trans | --program-tran \ 962 | --progr-tra | --program-tr | --program-t) 963 ac_prev=program_transform_name ;; 964 -program-transform-name=* | --program-transform-name=* \ 965 | --program-transform-nam=* | --program-transform-na=* \ 966 | --program-transform-n=* | --program-transform-=* \ 967 | --program-transform=* | --program-transfor=* \ 968 | --program-transfo=* | --program-transf=* \ 969 | --program-trans=* | --program-tran=* \ 970 | --progr-tra=* | --program-tr=* | --program-t=*) 971 program_transform_name=$ac_optarg ;; 972 973 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 974 ac_prev=pdfdir ;; 975 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 976 pdfdir=$ac_optarg ;; 977 978 -psdir | --psdir | --psdi | --psd | --ps) 979 ac_prev=psdir ;; 980 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 981 psdir=$ac_optarg ;; 982 983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 984 | -silent | --silent | --silen | --sile | --sil) 985 silent=yes ;; 986 987 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 988 ac_prev=sbindir ;; 989 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 990 | --sbi=* | --sb=*) 991 sbindir=$ac_optarg ;; 992 993 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 994 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 995 | --sharedst | --shareds | --shared | --share | --shar \ 996 | --sha | --sh) 997 ac_prev=sharedstatedir ;; 998 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 999 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1000 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1001 | --sha=* | --sh=*) 1002 sharedstatedir=$ac_optarg ;; 1003 1004 -site | --site | --sit) 1005 ac_prev=site ;; 1006 -site=* | --site=* | --sit=*) 1007 site=$ac_optarg ;; 1008 1009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1010 ac_prev=srcdir ;; 1011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1012 srcdir=$ac_optarg ;; 1013 1014 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1015 | --syscon | --sysco | --sysc | --sys | --sy) 1016 ac_prev=sysconfdir ;; 1017 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1018 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1019 sysconfdir=$ac_optarg ;; 1020 1021 -target | --target | --targe | --targ | --tar | --ta | --t) 1022 ac_prev=target_alias ;; 1023 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1024 target_alias=$ac_optarg ;; 1025 1026 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1027 verbose=yes ;; 1028 1029 -version | --version | --versio | --versi | --vers | -V) 1030 ac_init_version=: ;; 1031 1032 -with-* | --with-*) 1033 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1036 { echo "$as_me: error: invalid package name: $ac_package" >&2 1037 { (exit 1); exit 1; }; } 1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1039 eval with_$ac_package=\$ac_optarg ;; 1040 1041 -without-* | --without-*) 1042 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1045 { echo "$as_me: error: invalid package name: $ac_package" >&2 1046 { (exit 1); exit 1; }; } 1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1048 eval with_$ac_package=no ;; 1049 1050 --x) 1051 # Obsolete; use --with-x. 1052 with_x=yes ;; 1053 1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1055 | --x-incl | --x-inc | --x-in | --x-i) 1056 ac_prev=x_includes ;; 1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1059 x_includes=$ac_optarg ;; 1060 1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1063 ac_prev=x_libraries ;; 1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1066 x_libraries=$ac_optarg ;; 1067 1068 -*) { echo "$as_me: error: unrecognized option: $ac_option 1069Try \`$0 --help' for more information." >&2 1070 { (exit 1); exit 1; }; } 1071 ;; 1072 1073 *=*) 1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1077 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1078 { (exit 1); exit 1; }; } 1079 eval $ac_envvar=\$ac_optarg 1080 export $ac_envvar ;; 1081 1082 *) 1083 # FIXME: should be removed in autoconf 3.0. 1084 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1086 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1088 ;; 1089 1090 esac 1091done 1092 1093if test -n "$ac_prev"; then 1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1095 { echo "$as_me: error: missing argument to $ac_option" >&2 1096 { (exit 1); exit 1; }; } 1097fi 1098 1099# Be sure to have absolute directory names. 1100for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1101 datadir sysconfdir sharedstatedir localstatedir includedir \ 1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1103 libdir localedir mandir 1104do 1105 eval ac_val=\$$ac_var 1106 case $ac_val in 1107 [\\/$]* | ?:[\\/]* ) continue;; 1108 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1109 esac 1110 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1111 { (exit 1); exit 1; }; } 1112done 1113 1114# There might be people who depend on the old broken behavior: `$host' 1115# used to hold the argument of --host etc. 1116# FIXME: To remove some day. 1117build=$build_alias 1118host=$host_alias 1119target=$target_alias 1120 1121# FIXME: To remove some day. 1122if test "x$host_alias" != x; then 1123 if test "x$build_alias" = x; then 1124 cross_compiling=maybe 1125 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1126 If a cross compiler is detected then cross compile mode will be used." >&2 1127 elif test "x$build_alias" != "x$host_alias"; then 1128 cross_compiling=yes 1129 fi 1130fi 1131 1132ac_tool_prefix= 1133test -n "$host_alias" && ac_tool_prefix=$host_alias- 1134 1135test "$silent" = yes && exec 6>/dev/null 1136 1137 1138ac_pwd=`pwd` && test -n "$ac_pwd" && 1139ac_ls_di=`ls -di .` && 1140ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1141 { echo "$as_me: error: Working directory cannot be determined" >&2 1142 { (exit 1); exit 1; }; } 1143test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1144 { echo "$as_me: error: pwd does not report name of working directory" >&2 1145 { (exit 1); exit 1; }; } 1146 1147 1148# Find the source files, if location was not specified. 1149if test -z "$srcdir"; then 1150 ac_srcdir_defaulted=yes 1151 # Try the directory containing this script, then the parent directory. 1152 ac_confdir=`$as_dirname -- "$0" || 1153$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1154 X"$0" : 'X\(//\)[^/]' \| \ 1155 X"$0" : 'X\(//\)$' \| \ 1156 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1157echo X"$0" | 1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1159 s//\1/ 1160 q 1161 } 1162 /^X\(\/\/\)[^/].*/{ 1163 s//\1/ 1164 q 1165 } 1166 /^X\(\/\/\)$/{ 1167 s//\1/ 1168 q 1169 } 1170 /^X\(\/\).*/{ 1171 s//\1/ 1172 q 1173 } 1174 s/.*/./; q'` 1175 srcdir=$ac_confdir 1176 if test ! -r "$srcdir/$ac_unique_file"; then 1177 srcdir=.. 1178 fi 1179else 1180 ac_srcdir_defaulted=no 1181fi 1182if test ! -r "$srcdir/$ac_unique_file"; then 1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1184 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1185 { (exit 1); exit 1; }; } 1186fi 1187ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1188ac_abs_confdir=`( 1189 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1190 { (exit 1); exit 1; }; } 1191 pwd)` 1192# When building in place, set srcdir=. 1193if test "$ac_abs_confdir" = "$ac_pwd"; then 1194 srcdir=. 1195fi 1196# Remove unnecessary trailing slashes from srcdir. 1197# Double slashes in file names in object file debugging info 1198# mess up M-x gdb in Emacs. 1199case $srcdir in 1200*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1201esac 1202for ac_var in $ac_precious_vars; do 1203 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1204 eval ac_env_${ac_var}_value=\$${ac_var} 1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1206 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1207done 1208 1209# 1210# Report the --help message. 1211# 1212if test "$ac_init_help" = "long"; then 1213 # Omit some internal or obsolete options to make the list less imposing. 1214 # This message is too long to be a string in the A/UX 3.1 sh. 1215 cat <<_ACEOF 1216\`configure' configures this package to adapt to many kinds of systems. 1217 1218Usage: $0 [OPTION]... [VAR=VALUE]... 1219 1220To assign environment variables (e.g., CC, CFLAGS...), specify them as 1221VAR=VALUE. See below for descriptions of some of the useful variables. 1222 1223Defaults for the options are specified in brackets. 1224 1225Configuration: 1226 -h, --help display this help and exit 1227 --help=short display options specific to this package 1228 --help=recursive display the short help of all the included packages 1229 -V, --version display version information and exit 1230 -q, --quiet, --silent do not print \`checking...' messages 1231 --cache-file=FILE cache test results in FILE [disabled] 1232 -C, --config-cache alias for \`--cache-file=config.cache' 1233 -n, --no-create do not create output files 1234 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1235 1236Installation directories: 1237 --prefix=PREFIX install architecture-independent files in PREFIX 1238 [$ac_default_prefix] 1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1240 [PREFIX] 1241 1242By default, \`make install' will install all the files in 1243\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1244an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1245for instance \`--prefix=\$HOME'. 1246 1247For better control, use the options below. 1248 1249Fine tuning of the installation directories: 1250 --bindir=DIR user executables [EPREFIX/bin] 1251 --sbindir=DIR system admin executables [EPREFIX/sbin] 1252 --libexecdir=DIR program executables [EPREFIX/libexec] 1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1256 --libdir=DIR object code libraries [EPREFIX/lib] 1257 --includedir=DIR C header files [PREFIX/include] 1258 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1261 --infodir=DIR info documentation [DATAROOTDIR/info] 1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1263 --mandir=DIR man documentation [DATAROOTDIR/man] 1264 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1265 --htmldir=DIR html documentation [DOCDIR] 1266 --dvidir=DIR dvi documentation [DOCDIR] 1267 --pdfdir=DIR pdf documentation [DOCDIR] 1268 --psdir=DIR ps documentation [DOCDIR] 1269_ACEOF 1270 1271 cat <<\_ACEOF 1272 1273Program names: 1274 --program-prefix=PREFIX prepend PREFIX to installed program names 1275 --program-suffix=SUFFIX append SUFFIX to installed program names 1276 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1277 1278System types: 1279 --build=BUILD configure for building on BUILD [guessed] 1280 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1281_ACEOF 1282fi 1283 1284if test -n "$ac_init_help"; then 1285 1286 cat <<\_ACEOF 1287 1288Optional Features: 1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1291 --disable-dependency-tracking speeds up one-time build 1292 --enable-dependency-tracking do not reject slow dependency extractors 1293 1294Some influential environment variables: 1295 CC C compiler command 1296 CFLAGS C compiler flags 1297 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1298 nonstandard directory <lib dir> 1299 LIBS libraries to pass to the linker, e.g. -l<library> 1300 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1301 you have headers in a nonstandard directory <include dir> 1302 CPP C preprocessor 1303 1304Use these variables to override the choices made by `configure' or to help 1305it to find libraries and programs with nonstandard names/locations. 1306 1307_ACEOF 1308ac_status=$? 1309fi 1310 1311if test "$ac_init_help" = "recursive"; then 1312 # If there are subdirs, report their specific --help. 1313 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1314 test -d "$ac_dir" || continue 1315 ac_builddir=. 1316 1317case "$ac_dir" in 1318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1319*) 1320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1321 # A ".." for each directory in $ac_dir_suffix. 1322 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1323 case $ac_top_builddir_sub in 1324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1326 esac ;; 1327esac 1328ac_abs_top_builddir=$ac_pwd 1329ac_abs_builddir=$ac_pwd$ac_dir_suffix 1330# for backward compatibility: 1331ac_top_builddir=$ac_top_build_prefix 1332 1333case $srcdir in 1334 .) # We are building in place. 1335 ac_srcdir=. 1336 ac_top_srcdir=$ac_top_builddir_sub 1337 ac_abs_top_srcdir=$ac_pwd ;; 1338 [\\/]* | ?:[\\/]* ) # Absolute name. 1339 ac_srcdir=$srcdir$ac_dir_suffix; 1340 ac_top_srcdir=$srcdir 1341 ac_abs_top_srcdir=$srcdir ;; 1342 *) # Relative name. 1343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1344 ac_top_srcdir=$ac_top_build_prefix$srcdir 1345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1346esac 1347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1348 1349 cd "$ac_dir" || { ac_status=$?; continue; } 1350 # Check for guested configure. 1351 if test -f "$ac_srcdir/configure.gnu"; then 1352 echo && 1353 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1354 elif test -f "$ac_srcdir/configure"; then 1355 echo && 1356 $SHELL "$ac_srcdir/configure" --help=recursive 1357 else 1358 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1359 fi || ac_status=$? 1360 cd "$ac_pwd" || { ac_status=$?; break; } 1361 done 1362fi 1363 1364test -n "$ac_init_help" && exit $ac_status 1365if $ac_init_version; then 1366 cat <<\_ACEOF 1367configure 1368generated by GNU Autoconf 2.61 1369 1370Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1372This configure script is free software; the Free Software Foundation 1373gives unlimited permission to copy, distribute and modify it. 1374_ACEOF 1375 exit 1376fi 1377cat >config.log <<_ACEOF 1378This file contains any messages produced by compilers while 1379running configure, to aid debugging if configure makes a mistake. 1380 1381It was created by $as_me, which was 1382generated by GNU Autoconf 2.61. Invocation command line was 1383 1384 $ $0 $@ 1385 1386_ACEOF 1387exec 5>>config.log 1388{ 1389cat <<_ASUNAME 1390## --------- ## 1391## Platform. ## 1392## --------- ## 1393 1394hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1395uname -m = `(uname -m) 2>/dev/null || echo unknown` 1396uname -r = `(uname -r) 2>/dev/null || echo unknown` 1397uname -s = `(uname -s) 2>/dev/null || echo unknown` 1398uname -v = `(uname -v) 2>/dev/null || echo unknown` 1399 1400/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1401/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1402 1403/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1404/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1405/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1406/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1407/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1408/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1409/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1410 1411_ASUNAME 1412 1413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1414for as_dir in $PATH 1415do 1416 IFS=$as_save_IFS 1417 test -z "$as_dir" && as_dir=. 1418 echo "PATH: $as_dir" 1419done 1420IFS=$as_save_IFS 1421 1422} >&5 1423 1424cat >&5 <<_ACEOF 1425 1426 1427## ----------- ## 1428## Core tests. ## 1429## ----------- ## 1430 1431_ACEOF 1432 1433 1434# Keep a trace of the command line. 1435# Strip out --no-create and --no-recursion so they do not pile up. 1436# Strip out --silent because we don't want to record it for future runs. 1437# Also quote any args containing shell meta-characters. 1438# Make two passes to allow for proper duplicate-argument suppression. 1439ac_configure_args= 1440ac_configure_args0= 1441ac_configure_args1= 1442ac_must_keep_next=false 1443for ac_pass in 1 2 1444do 1445 for ac_arg 1446 do 1447 case $ac_arg in 1448 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1450 | -silent | --silent | --silen | --sile | --sil) 1451 continue ;; 1452 *\'*) 1453 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1454 esac 1455 case $ac_pass in 1456 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1457 2) 1458 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1459 if test $ac_must_keep_next = true; then 1460 ac_must_keep_next=false # Got value, back to normal. 1461 else 1462 case $ac_arg in 1463 *=* | --config-cache | -C | -disable-* | --disable-* \ 1464 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1465 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1466 | -with-* | --with-* | -without-* | --without-* | --x) 1467 case "$ac_configure_args0 " in 1468 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1469 esac 1470 ;; 1471 -* ) ac_must_keep_next=true ;; 1472 esac 1473 fi 1474 ac_configure_args="$ac_configure_args '$ac_arg'" 1475 ;; 1476 esac 1477 done 1478done 1479$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1480$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1481 1482# When interrupted or exit'd, cleanup temporary files, and complete 1483# config.log. We remove comments because anyway the quotes in there 1484# would cause problems or look ugly. 1485# WARNING: Use '\'' to represent an apostrophe within the trap. 1486# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1487trap 'exit_status=$? 1488 # Save into config.log some information that might help in debugging. 1489 { 1490 echo 1491 1492 cat <<\_ASBOX 1493## ---------------- ## 1494## Cache variables. ## 1495## ---------------- ## 1496_ASBOX 1497 echo 1498 # The following way of writing the cache mishandles newlines in values, 1499( 1500 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1501 eval ac_val=\$$ac_var 1502 case $ac_val in #( 1503 *${as_nl}*) 1504 case $ac_var in #( 1505 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1506echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1507 esac 1508 case $ac_var in #( 1509 _ | IFS | as_nl) ;; #( 1510 *) $as_unset $ac_var ;; 1511 esac ;; 1512 esac 1513 done 1514 (set) 2>&1 | 1515 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1516 *${as_nl}ac_space=\ *) 1517 sed -n \ 1518 "s/'\''/'\''\\\\'\'''\''/g; 1519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1520 ;; #( 1521 *) 1522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1523 ;; 1524 esac | 1525 sort 1526) 1527 echo 1528 1529 cat <<\_ASBOX 1530## ----------------- ## 1531## Output variables. ## 1532## ----------------- ## 1533_ASBOX 1534 echo 1535 for ac_var in $ac_subst_vars 1536 do 1537 eval ac_val=\$$ac_var 1538 case $ac_val in 1539 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1540 esac 1541 echo "$ac_var='\''$ac_val'\''" 1542 done | sort 1543 echo 1544 1545 if test -n "$ac_subst_files"; then 1546 cat <<\_ASBOX 1547## ------------------- ## 1548## File substitutions. ## 1549## ------------------- ## 1550_ASBOX 1551 echo 1552 for ac_var in $ac_subst_files 1553 do 1554 eval ac_val=\$$ac_var 1555 case $ac_val in 1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1557 esac 1558 echo "$ac_var='\''$ac_val'\''" 1559 done | sort 1560 echo 1561 fi 1562 1563 if test -s confdefs.h; then 1564 cat <<\_ASBOX 1565## ----------- ## 1566## confdefs.h. ## 1567## ----------- ## 1568_ASBOX 1569 echo 1570 cat confdefs.h 1571 echo 1572 fi 1573 test "$ac_signal" != 0 && 1574 echo "$as_me: caught signal $ac_signal" 1575 echo "$as_me: exit $exit_status" 1576 } >&5 1577 rm -f core *.core core.conftest.* && 1578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1579 exit $exit_status 1580' 0 1581for ac_signal in 1 2 13 15; do 1582 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1583done 1584ac_signal=0 1585 1586# confdefs.h avoids OS command line length limits that DEFS can exceed. 1587rm -f -r conftest* confdefs.h 1588 1589# Predefined preprocessor variables. 1590 1591cat >>confdefs.h <<_ACEOF 1592#define PACKAGE_NAME "$PACKAGE_NAME" 1593_ACEOF 1594 1595 1596cat >>confdefs.h <<_ACEOF 1597#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1598_ACEOF 1599 1600 1601cat >>confdefs.h <<_ACEOF 1602#define PACKAGE_VERSION "$PACKAGE_VERSION" 1603_ACEOF 1604 1605 1606cat >>confdefs.h <<_ACEOF 1607#define PACKAGE_STRING "$PACKAGE_STRING" 1608_ACEOF 1609 1610 1611cat >>confdefs.h <<_ACEOF 1612#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1613_ACEOF 1614 1615 1616# Let the site file select an alternate cache file if it wants to. 1617# Prefer explicitly selected file to automatically selected ones. 1618if test -n "$CONFIG_SITE"; then 1619 set x "$CONFIG_SITE" 1620elif test "x$prefix" != xNONE; then 1621 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1622else 1623 set x "$ac_default_prefix/share/config.site" \ 1624 "$ac_default_prefix/etc/config.site" 1625fi 1626shift 1627for ac_site_file 1628do 1629 if test -r "$ac_site_file"; then 1630 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1631echo "$as_me: loading site script $ac_site_file" >&6;} 1632 sed 's/^/| /' "$ac_site_file" >&5 1633 . "$ac_site_file" 1634 fi 1635done 1636 1637if test -r "$cache_file"; then 1638 # Some versions of bash will fail to source /dev/null (special 1639 # files actually), so we avoid doing that. 1640 if test -f "$cache_file"; then 1641 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1642echo "$as_me: loading cache $cache_file" >&6;} 1643 case $cache_file in 1644 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1645 *) . "./$cache_file";; 1646 esac 1647 fi 1648else 1649 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1650echo "$as_me: creating cache $cache_file" >&6;} 1651 >$cache_file 1652fi 1653 1654# Check that the precious variables saved in the cache have kept the same 1655# value. 1656ac_cache_corrupted=false 1657for ac_var in $ac_precious_vars; do 1658 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1659 eval ac_new_set=\$ac_env_${ac_var}_set 1660 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1661 eval ac_new_val=\$ac_env_${ac_var}_value 1662 case $ac_old_set,$ac_new_set in 1663 set,) 1664 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1665echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1666 ac_cache_corrupted=: ;; 1667 ,set) 1668 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1669echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1670 ac_cache_corrupted=: ;; 1671 ,);; 1672 *) 1673 if test "x$ac_old_val" != "x$ac_new_val"; then 1674 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1675echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1676 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1677echo "$as_me: former value: $ac_old_val" >&2;} 1678 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1679echo "$as_me: current value: $ac_new_val" >&2;} 1680 ac_cache_corrupted=: 1681 fi;; 1682 esac 1683 # Pass precious variables to config.status. 1684 if test "$ac_new_set" = set; then 1685 case $ac_new_val in 1686 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1687 *) ac_arg=$ac_var=$ac_new_val ;; 1688 esac 1689 case " $ac_configure_args " in 1690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1691 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1692 esac 1693 fi 1694done 1695if $ac_cache_corrupted; then 1696 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1697echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1698 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1699echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1700 { (exit 1); exit 1; }; } 1701fi 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719ac_ext=c 1720ac_cpp='$CPP $CPPFLAGS' 1721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1723ac_compiler_gnu=$ac_cv_c_compiler_gnu 1724 1725 1726am__api_version='1.10' 1727 1728ac_aux_dir= 1729for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1730 if test -f "$ac_dir/install-sh"; then 1731 ac_aux_dir=$ac_dir 1732 ac_install_sh="$ac_aux_dir/install-sh -c" 1733 break 1734 elif test -f "$ac_dir/install.sh"; then 1735 ac_aux_dir=$ac_dir 1736 ac_install_sh="$ac_aux_dir/install.sh -c" 1737 break 1738 elif test -f "$ac_dir/shtool"; then 1739 ac_aux_dir=$ac_dir 1740 ac_install_sh="$ac_aux_dir/shtool install -c" 1741 break 1742 fi 1743done 1744if test -z "$ac_aux_dir"; then 1745 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1746echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1747 { (exit 1); exit 1; }; } 1748fi 1749 1750# These three variables are undocumented and unsupported, 1751# and are intended to be withdrawn in a future Autoconf release. 1752# They can cause serious problems if a builder's source tree is in a directory 1753# whose full name contains unusual characters. 1754ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1755ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1756ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1757 1758 1759# Find a good install program. We prefer a C program (faster), 1760# so one script is as good as another. But avoid the broken or 1761# incompatible versions: 1762# SysV /etc/install, /usr/sbin/install 1763# SunOS /usr/etc/install 1764# IRIX /sbin/install 1765# AIX /bin/install 1766# AmigaOS /C/install, which installs bootblocks on floppy discs 1767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1768# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1770# OS/2's system install, which has a completely different semantic 1771# ./install, which can be erroneously created by make from ./install.sh. 1772{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1773echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1774if test -z "$INSTALL"; then 1775if test "${ac_cv_path_install+set}" = set; then 1776 echo $ECHO_N "(cached) $ECHO_C" >&6 1777else 1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1779for as_dir in $PATH 1780do 1781 IFS=$as_save_IFS 1782 test -z "$as_dir" && as_dir=. 1783 # Account for people who put trailing slashes in PATH elements. 1784case $as_dir/ in 1785 ./ | .// | /cC/* | \ 1786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1787 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1788 /usr/ucb/* ) ;; 1789 *) 1790 # OSF1 and SCO ODT 3.0 have their own names for install. 1791 # Don't use installbsd from OSF since it installs stuff as root 1792 # by default. 1793 for ac_prog in ginstall scoinst install; do 1794 for ac_exec_ext in '' $ac_executable_extensions; do 1795 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1796 if test $ac_prog = install && 1797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1798 # AIX install. It has an incompatible calling convention. 1799 : 1800 elif test $ac_prog = install && 1801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1802 # program-specific install script used by HP pwplus--don't use. 1803 : 1804 else 1805 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1806 break 3 1807 fi 1808 fi 1809 done 1810 done 1811 ;; 1812esac 1813done 1814IFS=$as_save_IFS 1815 1816 1817fi 1818 if test "${ac_cv_path_install+set}" = set; then 1819 INSTALL=$ac_cv_path_install 1820 else 1821 # As a last resort, use the slow shell script. Don't cache a 1822 # value for INSTALL within a source directory, because that will 1823 # break other packages using the cache if that directory is 1824 # removed, or if the value is a relative name. 1825 INSTALL=$ac_install_sh 1826 fi 1827fi 1828{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1829echo "${ECHO_T}$INSTALL" >&6; } 1830 1831# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1832# It thinks the first close brace ends the variable substitution. 1833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1834 1835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1836 1837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1838 1839{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1840echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1841# Just in case 1842sleep 1 1843echo timestamp > conftest.file 1844# Do `set' in a subshell so we don't clobber the current shell's 1845# arguments. Must try -L first in case configure is actually a 1846# symlink; some systems play weird games with the mod time of symlinks 1847# (eg FreeBSD returns the mod time of the symlink's containing 1848# directory). 1849if ( 1850 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1851 if test "$*" = "X"; then 1852 # -L didn't work. 1853 set X `ls -t $srcdir/configure conftest.file` 1854 fi 1855 rm -f conftest.file 1856 if test "$*" != "X $srcdir/configure conftest.file" \ 1857 && test "$*" != "X conftest.file $srcdir/configure"; then 1858 1859 # If neither matched, then we have a broken ls. This can happen 1860 # if, for instance, CONFIG_SHELL is bash and it inherits a 1861 # broken ls alias from the environment. This has actually 1862 # happened. Such a system could not be considered "sane". 1863 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1864alias in your environment" >&5 1865echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1866alias in your environment" >&2;} 1867 { (exit 1); exit 1; }; } 1868 fi 1869 1870 test "$2" = conftest.file 1871 ) 1872then 1873 # Ok. 1874 : 1875else 1876 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1877Check your system clock" >&5 1878echo "$as_me: error: newly created file is older than distributed files! 1879Check your system clock" >&2;} 1880 { (exit 1); exit 1; }; } 1881fi 1882{ echo "$as_me:$LINENO: result: yes" >&5 1883echo "${ECHO_T}yes" >&6; } 1884test "$program_prefix" != NONE && 1885 program_transform_name="s&^&$program_prefix&;$program_transform_name" 1886# Use a double $ so make ignores it. 1887test "$program_suffix" != NONE && 1888 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1889# Double any \ or $. echo might interpret backslashes. 1890# By default was `s,x,x', remove it if useless. 1891cat <<\_ACEOF >conftest.sed 1892s/[\\$]/&&/g;s/;s,x,x,$// 1893_ACEOF 1894program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1895rm -f conftest.sed 1896 1897# expand $ac_aux_dir to an absolute path 1898am_aux_dir=`cd $ac_aux_dir && pwd` 1899 1900test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1901# Use eval to expand $SHELL 1902if eval "$MISSING --run true"; then 1903 am_missing_run="$MISSING --run " 1904else 1905 am_missing_run= 1906 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1907echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1908fi 1909 1910{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 1911echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 1912if test -z "$MKDIR_P"; then 1913 if test "${ac_cv_path_mkdir+set}" = set; then 1914 echo $ECHO_N "(cached) $ECHO_C" >&6 1915else 1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1917for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 1918do 1919 IFS=$as_save_IFS 1920 test -z "$as_dir" && as_dir=. 1921 for ac_prog in mkdir gmkdir; do 1922 for ac_exec_ext in '' $ac_executable_extensions; do 1923 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 1924 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 1925 'mkdir (GNU coreutils) '* | \ 1926 'mkdir (coreutils) '* | \ 1927 'mkdir (fileutils) '4.1*) 1928 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 1929 break 3;; 1930 esac 1931 done 1932 done 1933done 1934IFS=$as_save_IFS 1935 1936fi 1937 1938 if test "${ac_cv_path_mkdir+set}" = set; then 1939 MKDIR_P="$ac_cv_path_mkdir -p" 1940 else 1941 # As a last resort, use the slow shell script. Don't cache a 1942 # value for MKDIR_P within a source directory, because that will 1943 # break other packages using the cache if that directory is 1944 # removed, or if the value is a relative name. 1945 test -d ./--version && rmdir ./--version 1946 MKDIR_P="$ac_install_sh -d" 1947 fi 1948fi 1949{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 1950echo "${ECHO_T}$MKDIR_P" >&6; } 1951 1952mkdir_p="$MKDIR_P" 1953case $mkdir_p in 1954 [\\/$]* | ?:[\\/]*) ;; 1955 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 1956esac 1957 1958for ac_prog in gawk mawk nawk awk 1959do 1960 # Extract the first word of "$ac_prog", so it can be a program name with args. 1961set dummy $ac_prog; ac_word=$2 1962{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1964if test "${ac_cv_prog_AWK+set}" = set; then 1965 echo $ECHO_N "(cached) $ECHO_C" >&6 1966else 1967 if test -n "$AWK"; then 1968 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1969else 1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1971for as_dir in $PATH 1972do 1973 IFS=$as_save_IFS 1974 test -z "$as_dir" && as_dir=. 1975 for ac_exec_ext in '' $ac_executable_extensions; do 1976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1977 ac_cv_prog_AWK="$ac_prog" 1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1979 break 2 1980 fi 1981done 1982done 1983IFS=$as_save_IFS 1984 1985fi 1986fi 1987AWK=$ac_cv_prog_AWK 1988if test -n "$AWK"; then 1989 { echo "$as_me:$LINENO: result: $AWK" >&5 1990echo "${ECHO_T}$AWK" >&6; } 1991else 1992 { echo "$as_me:$LINENO: result: no" >&5 1993echo "${ECHO_T}no" >&6; } 1994fi 1995 1996 1997 test -n "$AWK" && break 1998done 1999 2000{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2001echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2002set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2003if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2004 echo $ECHO_N "(cached) $ECHO_C" >&6 2005else 2006 cat >conftest.make <<\_ACEOF 2007SHELL = /bin/sh 2008all: 2009 @echo '@@@%%%=$(MAKE)=@@@%%%' 2010_ACEOF 2011# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2012case `${MAKE-make} -f conftest.make 2>/dev/null` in 2013 *@@@%%%=?*=@@@%%%*) 2014 eval ac_cv_prog_make_${ac_make}_set=yes;; 2015 *) 2016 eval ac_cv_prog_make_${ac_make}_set=no;; 2017esac 2018rm -f conftest.make 2019fi 2020if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2021 { echo "$as_me:$LINENO: result: yes" >&5 2022echo "${ECHO_T}yes" >&6; } 2023 SET_MAKE= 2024else 2025 { echo "$as_me:$LINENO: result: no" >&5 2026echo "${ECHO_T}no" >&6; } 2027 SET_MAKE="MAKE=${MAKE-make}" 2028fi 2029 2030rm -rf .tst 2>/dev/null 2031mkdir .tst 2>/dev/null 2032if test -d .tst; then 2033 am__leading_dot=. 2034else 2035 am__leading_dot=_ 2036fi 2037rmdir .tst 2>/dev/null 2038 2039if test "`cd $srcdir && pwd`" != "`pwd`"; then 2040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2041 # is not polluted with repeated "-I." 2042 am__isrc=' -I$(srcdir)' 2043 # test to see if srcdir already configured 2044 if test -f $srcdir/config.status; then 2045 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2046echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2047 { (exit 1); exit 1; }; } 2048 fi 2049fi 2050 2051# test whether we have cygpath 2052if test -z "$CYGPATH_W"; then 2053 if (cygpath --version) >/dev/null 2>/dev/null; then 2054 CYGPATH_W='cygpath -w' 2055 else 2056 CYGPATH_W=echo 2057 fi 2058fi 2059 2060 2061# Define the identity of the package. 2062 PACKAGE=ffsb 2063 VERSION=6.0-RC2 2064 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE "$PACKAGE" 2068_ACEOF 2069 2070 2071cat >>confdefs.h <<_ACEOF 2072#define VERSION "$VERSION" 2073_ACEOF 2074 2075# Some tools Automake needs. 2076 2077ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2078 2079 2080AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2081 2082 2083AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2084 2085 2086AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2087 2088 2089MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2090 2091install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2092 2093# Installed binaries are usually stripped using `strip' when the user 2094# run `make install-strip'. However `strip' might not be the right 2095# tool to use in cross-compilation environments, therefore Automake 2096# will honor the `STRIP' environment variable to overrule this program. 2097if test "$cross_compiling" != no; then 2098 if test -n "$ac_tool_prefix"; then 2099 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2100set dummy ${ac_tool_prefix}strip; ac_word=$2 2101{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2103if test "${ac_cv_prog_STRIP+set}" = set; then 2104 echo $ECHO_N "(cached) $ECHO_C" >&6 2105else 2106 if test -n "$STRIP"; then 2107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2108else 2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2110for as_dir in $PATH 2111do 2112 IFS=$as_save_IFS 2113 test -z "$as_dir" && as_dir=. 2114 for ac_exec_ext in '' $ac_executable_extensions; do 2115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2116 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2118 break 2 2119 fi 2120done 2121done 2122IFS=$as_save_IFS 2123 2124fi 2125fi 2126STRIP=$ac_cv_prog_STRIP 2127if test -n "$STRIP"; then 2128 { echo "$as_me:$LINENO: result: $STRIP" >&5 2129echo "${ECHO_T}$STRIP" >&6; } 2130else 2131 { echo "$as_me:$LINENO: result: no" >&5 2132echo "${ECHO_T}no" >&6; } 2133fi 2134 2135 2136fi 2137if test -z "$ac_cv_prog_STRIP"; then 2138 ac_ct_STRIP=$STRIP 2139 # Extract the first word of "strip", so it can be a program name with args. 2140set dummy strip; ac_word=$2 2141{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2143if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2144 echo $ECHO_N "(cached) $ECHO_C" >&6 2145else 2146 if test -n "$ac_ct_STRIP"; then 2147 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2148else 2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2150for as_dir in $PATH 2151do 2152 IFS=$as_save_IFS 2153 test -z "$as_dir" && as_dir=. 2154 for ac_exec_ext in '' $ac_executable_extensions; do 2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2156 ac_cv_prog_ac_ct_STRIP="strip" 2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2158 break 2 2159 fi 2160done 2161done 2162IFS=$as_save_IFS 2163 2164fi 2165fi 2166ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2167if test -n "$ac_ct_STRIP"; then 2168 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2169echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2170else 2171 { echo "$as_me:$LINENO: result: no" >&5 2172echo "${ECHO_T}no" >&6; } 2173fi 2174 2175 if test "x$ac_ct_STRIP" = x; then 2176 STRIP=":" 2177 else 2178 case $cross_compiling:$ac_tool_warned in 2179yes:) 2180{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2181whose name does not start with the host triplet. If you think this 2182configuration is useful to you, please write to autoconf@gnu.org." >&5 2183echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2184whose name does not start with the host triplet. If you think this 2185configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2186ac_tool_warned=yes ;; 2187esac 2188 STRIP=$ac_ct_STRIP 2189 fi 2190else 2191 STRIP="$ac_cv_prog_STRIP" 2192fi 2193 2194fi 2195INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2196 2197# We need awk for the "check" target. The system "awk" is bad on 2198# some platforms. 2199# Always define AMTAR for backward compatibility. 2200 2201AMTAR=${AMTAR-"${am_missing_run}tar"} 2202 2203am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2204 2205 2206 2207 2208 2209 2210ac_config_headers="$ac_config_headers config.h" 2211 2212# Make sure we can run config.sub. 2213$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2214 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2215echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2216 { (exit 1); exit 1; }; } 2217 2218{ echo "$as_me:$LINENO: checking build system type" >&5 2219echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2220if test "${ac_cv_build+set}" = set; then 2221 echo $ECHO_N "(cached) $ECHO_C" >&6 2222else 2223 ac_build_alias=$build_alias 2224test "x$ac_build_alias" = x && 2225 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2226test "x$ac_build_alias" = x && 2227 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2228echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2229 { (exit 1); exit 1; }; } 2230ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2232echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2233 { (exit 1); exit 1; }; } 2234 2235fi 2236{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2237echo "${ECHO_T}$ac_cv_build" >&6; } 2238case $ac_cv_build in 2239*-*-*) ;; 2240*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2241echo "$as_me: error: invalid value of canonical build" >&2;} 2242 { (exit 1); exit 1; }; };; 2243esac 2244build=$ac_cv_build 2245ac_save_IFS=$IFS; IFS='-' 2246set x $ac_cv_build 2247shift 2248build_cpu=$1 2249build_vendor=$2 2250shift; shift 2251# Remember, the first character of IFS is used to create $*, 2252# except with old shells: 2253build_os=$* 2254IFS=$ac_save_IFS 2255case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2256 2257 2258{ echo "$as_me:$LINENO: checking host system type" >&5 2259echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2260if test "${ac_cv_host+set}" = set; then 2261 echo $ECHO_N "(cached) $ECHO_C" >&6 2262else 2263 if test "x$host_alias" = x; then 2264 ac_cv_host=$ac_cv_build 2265else 2266 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2267 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2268echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2269 { (exit 1); exit 1; }; } 2270fi 2271 2272fi 2273{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2274echo "${ECHO_T}$ac_cv_host" >&6; } 2275case $ac_cv_host in 2276*-*-*) ;; 2277*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2278echo "$as_me: error: invalid value of canonical host" >&2;} 2279 { (exit 1); exit 1; }; };; 2280esac 2281host=$ac_cv_host 2282ac_save_IFS=$IFS; IFS='-' 2283set x $ac_cv_host 2284shift 2285host_cpu=$1 2286host_vendor=$2 2287shift; shift 2288# Remember, the first character of IFS is used to create $*, 2289# except with old shells: 2290host_os=$* 2291IFS=$ac_save_IFS 2292case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2293 2294 2295 2296DEPDIR="${am__leading_dot}deps" 2297 2298ac_config_commands="$ac_config_commands depfiles" 2299 2300 2301am_make=${MAKE-make} 2302cat > confinc << 'END' 2303am__doit: 2304 @echo done 2305.PHONY: am__doit 2306END 2307# If we don't find an include directive, just comment out the code. 2308{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2309echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2310am__include="#" 2311am__quote= 2312_am_result=none 2313# First try GNU make style include. 2314echo "include confinc" > confmf 2315# We grep out `Entering directory' and `Leaving directory' 2316# messages which can occur if `w' ends up in MAKEFLAGS. 2317# In particular we don't look at `^make:' because GNU make might 2318# be invoked under some other name (usually "gmake"), in which 2319# case it prints its new name instead of `make'. 2320if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2321 am__include=include 2322 am__quote= 2323 _am_result=GNU 2324fi 2325# Now try BSD make style include. 2326if test "$am__include" = "#"; then 2327 echo '.include "confinc"' > confmf 2328 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2329 am__include=.include 2330 am__quote="\"" 2331 _am_result=BSD 2332 fi 2333fi 2334 2335 2336{ echo "$as_me:$LINENO: result: $_am_result" >&5 2337echo "${ECHO_T}$_am_result" >&6; } 2338rm -f confinc confmf 2339 2340# Check whether --enable-dependency-tracking was given. 2341if test "${enable_dependency_tracking+set}" = set; then 2342 enableval=$enable_dependency_tracking; 2343fi 2344 2345if test "x$enable_dependency_tracking" != xno; then 2346 am_depcomp="$ac_aux_dir/depcomp" 2347 AMDEPBACKSLASH='\' 2348fi 2349 if test "x$enable_dependency_tracking" != xno; then 2350 AMDEP_TRUE= 2351 AMDEP_FALSE='#' 2352else 2353 AMDEP_TRUE='#' 2354 AMDEP_FALSE= 2355fi 2356 2357 2358ac_ext=c 2359ac_cpp='$CPP $CPPFLAGS' 2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2362ac_compiler_gnu=$ac_cv_c_compiler_gnu 2363if test -n "$ac_tool_prefix"; then 2364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2365set dummy ${ac_tool_prefix}gcc; ac_word=$2 2366{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2368if test "${ac_cv_prog_CC+set}" = set; then 2369 echo $ECHO_N "(cached) $ECHO_C" >&6 2370else 2371 if test -n "$CC"; then 2372 ac_cv_prog_CC="$CC" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391CC=$ac_cv_prog_CC 2392if test -n "$CC"; then 2393 { echo "$as_me:$LINENO: result: $CC" >&5 2394echo "${ECHO_T}$CC" >&6; } 2395else 2396 { echo "$as_me:$LINENO: result: no" >&5 2397echo "${ECHO_T}no" >&6; } 2398fi 2399 2400 2401fi 2402if test -z "$ac_cv_prog_CC"; then 2403 ac_ct_CC=$CC 2404 # Extract the first word of "gcc", so it can be a program name with args. 2405set dummy gcc; ac_word=$2 2406{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2409 echo $ECHO_N "(cached) $ECHO_C" >&6 2410else 2411 if test -n "$ac_ct_CC"; then 2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2413else 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2421 ac_cv_prog_ac_ct_CC="gcc" 2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2423 break 2 2424 fi 2425done 2426done 2427IFS=$as_save_IFS 2428 2429fi 2430fi 2431ac_ct_CC=$ac_cv_prog_ac_ct_CC 2432if test -n "$ac_ct_CC"; then 2433 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2434echo "${ECHO_T}$ac_ct_CC" >&6; } 2435else 2436 { echo "$as_me:$LINENO: result: no" >&5 2437echo "${ECHO_T}no" >&6; } 2438fi 2439 2440 if test "x$ac_ct_CC" = x; then 2441 CC="" 2442 else 2443 case $cross_compiling:$ac_tool_warned in 2444yes:) 2445{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2446whose name does not start with the host triplet. If you think this 2447configuration is useful to you, please write to autoconf@gnu.org." >&5 2448echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2449whose name does not start with the host triplet. If you think this 2450configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2451ac_tool_warned=yes ;; 2452esac 2453 CC=$ac_ct_CC 2454 fi 2455else 2456 CC="$ac_cv_prog_CC" 2457fi 2458 2459if test -z "$CC"; then 2460 if test -n "$ac_tool_prefix"; then 2461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2462set dummy ${ac_tool_prefix}cc; ac_word=$2 2463{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2465if test "${ac_cv_prog_CC+set}" = set; then 2466 echo $ECHO_N "(cached) $ECHO_C" >&6 2467else 2468 if test -n "$CC"; then 2469 ac_cv_prog_CC="$CC" # Let the user override the test. 2470else 2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2472for as_dir in $PATH 2473do 2474 IFS=$as_save_IFS 2475 test -z "$as_dir" && as_dir=. 2476 for ac_exec_ext in '' $ac_executable_extensions; do 2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2478 ac_cv_prog_CC="${ac_tool_prefix}cc" 2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2480 break 2 2481 fi 2482done 2483done 2484IFS=$as_save_IFS 2485 2486fi 2487fi 2488CC=$ac_cv_prog_CC 2489if test -n "$CC"; then 2490 { echo "$as_me:$LINENO: result: $CC" >&5 2491echo "${ECHO_T}$CC" >&6; } 2492else 2493 { echo "$as_me:$LINENO: result: no" >&5 2494echo "${ECHO_T}no" >&6; } 2495fi 2496 2497 2498 fi 2499fi 2500if test -z "$CC"; then 2501 # Extract the first word of "cc", so it can be a program name with args. 2502set dummy cc; ac_word=$2 2503{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2505if test "${ac_cv_prog_CC+set}" = set; then 2506 echo $ECHO_N "(cached) $ECHO_C" >&6 2507else 2508 if test -n "$CC"; then 2509 ac_cv_prog_CC="$CC" # Let the user override the test. 2510else 2511 ac_prog_rejected=no 2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 for ac_exec_ext in '' $ac_executable_extensions; do 2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2520 ac_prog_rejected=yes 2521 continue 2522 fi 2523 ac_cv_prog_CC="cc" 2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2525 break 2 2526 fi 2527done 2528done 2529IFS=$as_save_IFS 2530 2531if test $ac_prog_rejected = yes; then 2532 # We found a bogon in the path, so make sure we never use it. 2533 set dummy $ac_cv_prog_CC 2534 shift 2535 if test $# != 0; then 2536 # We chose a different compiler from the bogus one. 2537 # However, it has the same basename, so the bogon will be chosen 2538 # first if we set CC to just the basename; use the full file name. 2539 shift 2540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2541 fi 2542fi 2543fi 2544fi 2545CC=$ac_cv_prog_CC 2546if test -n "$CC"; then 2547 { echo "$as_me:$LINENO: result: $CC" >&5 2548echo "${ECHO_T}$CC" >&6; } 2549else 2550 { echo "$as_me:$LINENO: result: no" >&5 2551echo "${ECHO_T}no" >&6; } 2552fi 2553 2554 2555fi 2556if test -z "$CC"; then 2557 if test -n "$ac_tool_prefix"; then 2558 for ac_prog in cl.exe 2559 do 2560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2561set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2564if test "${ac_cv_prog_CC+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566else 2567 if test -n "$CC"; then 2568 ac_cv_prog_CC="$CC" # Let the user override the test. 2569else 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2579 break 2 2580 fi 2581done 2582done 2583IFS=$as_save_IFS 2584 2585fi 2586fi 2587CC=$ac_cv_prog_CC 2588if test -n "$CC"; then 2589 { echo "$as_me:$LINENO: result: $CC" >&5 2590echo "${ECHO_T}$CC" >&6; } 2591else 2592 { echo "$as_me:$LINENO: result: no" >&5 2593echo "${ECHO_T}no" >&6; } 2594fi 2595 2596 2597 test -n "$CC" && break 2598 done 2599fi 2600if test -z "$CC"; then 2601 ac_ct_CC=$CC 2602 for ac_prog in cl.exe 2603do 2604 # Extract the first word of "$ac_prog", so it can be a program name with args. 2605set dummy $ac_prog; ac_word=$2 2606{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2608if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2609 echo $ECHO_N "(cached) $ECHO_C" >&6 2610else 2611 if test -n "$ac_ct_CC"; then 2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2613else 2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2615for as_dir in $PATH 2616do 2617 IFS=$as_save_IFS 2618 test -z "$as_dir" && as_dir=. 2619 for ac_exec_ext in '' $ac_executable_extensions; do 2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2621 ac_cv_prog_ac_ct_CC="$ac_prog" 2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2623 break 2 2624 fi 2625done 2626done 2627IFS=$as_save_IFS 2628 2629fi 2630fi 2631ac_ct_CC=$ac_cv_prog_ac_ct_CC 2632if test -n "$ac_ct_CC"; then 2633 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2634echo "${ECHO_T}$ac_ct_CC" >&6; } 2635else 2636 { echo "$as_me:$LINENO: result: no" >&5 2637echo "${ECHO_T}no" >&6; } 2638fi 2639 2640 2641 test -n "$ac_ct_CC" && break 2642done 2643 2644 if test "x$ac_ct_CC" = x; then 2645 CC="" 2646 else 2647 case $cross_compiling:$ac_tool_warned in 2648yes:) 2649{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2650whose name does not start with the host triplet. If you think this 2651configuration is useful to you, please write to autoconf@gnu.org." >&5 2652echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2653whose name does not start with the host triplet. If you think this 2654configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2655ac_tool_warned=yes ;; 2656esac 2657 CC=$ac_ct_CC 2658 fi 2659fi 2660 2661fi 2662 2663 2664test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2665See \`config.log' for more details." >&5 2666echo "$as_me: error: no acceptable C compiler found in \$PATH 2667See \`config.log' for more details." >&2;} 2668 { (exit 1); exit 1; }; } 2669 2670# Provide some information about the compiler. 2671echo "$as_me:$LINENO: checking for C compiler version" >&5 2672ac_compiler=`set X $ac_compile; echo $2` 2673{ (ac_try="$ac_compiler --version >&5" 2674case "(($ac_try" in 2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2676 *) ac_try_echo=$ac_try;; 2677esac 2678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2679 (eval "$ac_compiler --version >&5") 2>&5 2680 ac_status=$? 2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2682 (exit $ac_status); } 2683{ (ac_try="$ac_compiler -v >&5" 2684case "(($ac_try" in 2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2686 *) ac_try_echo=$ac_try;; 2687esac 2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2689 (eval "$ac_compiler -v >&5") 2>&5 2690 ac_status=$? 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); } 2693{ (ac_try="$ac_compiler -V >&5" 2694case "(($ac_try" in 2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2696 *) ac_try_echo=$ac_try;; 2697esac 2698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2699 (eval "$ac_compiler -V >&5") 2>&5 2700 ac_status=$? 2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2702 (exit $ac_status); } 2703 2704cat >conftest.$ac_ext <<_ACEOF 2705/* confdefs.h. */ 2706_ACEOF 2707cat confdefs.h >>conftest.$ac_ext 2708cat >>conftest.$ac_ext <<_ACEOF 2709/* end confdefs.h. */ 2710 2711int 2712main () 2713{ 2714 2715 ; 2716 return 0; 2717} 2718_ACEOF 2719ac_clean_files_save=$ac_clean_files 2720ac_clean_files="$ac_clean_files a.out a.exe b.out" 2721# Try to create an executable without -o first, disregard a.out. 2722# It will help us diagnose broken compilers, and finding out an intuition 2723# of exeext. 2724{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2725echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2726ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2727# 2728# List of possible output files, starting from the most likely. 2729# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2730# only as a last resort. b.out is created by i960 compilers. 2731ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2732# 2733# The IRIX 6 linker writes into existing files which may not be 2734# executable, retaining their permissions. Remove them first so a 2735# subsequent execution test works. 2736ac_rmfiles= 2737for ac_file in $ac_files 2738do 2739 case $ac_file in 2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2741 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2742 esac 2743done 2744rm -f $ac_rmfiles 2745 2746if { (ac_try="$ac_link_default" 2747case "(($ac_try" in 2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2749 *) ac_try_echo=$ac_try;; 2750esac 2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2752 (eval "$ac_link_default") 2>&5 2753 ac_status=$? 2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2755 (exit $ac_status); }; then 2756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2757# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2758# in a Makefile. We should not override ac_cv_exeext if it was cached, 2759# so that the user can short-circuit this test for compilers unknown to 2760# Autoconf. 2761for ac_file in $ac_files '' 2762do 2763 test -f "$ac_file" || continue 2764 case $ac_file in 2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2766 ;; 2767 [ab].out ) 2768 # We found the default executable, but exeext='' is most 2769 # certainly right. 2770 break;; 2771 *.* ) 2772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2773 then :; else 2774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2775 fi 2776 # We set ac_cv_exeext here because the later test for it is not 2777 # safe: cross compilers may not add the suffix if given an `-o' 2778 # argument, so we may need to know it at that point already. 2779 # Even if this section looks crufty: it has the advantage of 2780 # actually working. 2781 break;; 2782 * ) 2783 break;; 2784 esac 2785done 2786test "$ac_cv_exeext" = no && ac_cv_exeext= 2787 2788else 2789 ac_file='' 2790fi 2791 2792{ echo "$as_me:$LINENO: result: $ac_file" >&5 2793echo "${ECHO_T}$ac_file" >&6; } 2794if test -z "$ac_file"; then 2795 echo "$as_me: failed program was:" >&5 2796sed 's/^/| /' conftest.$ac_ext >&5 2797 2798{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2799See \`config.log' for more details." >&5 2800echo "$as_me: error: C compiler cannot create executables 2801See \`config.log' for more details." >&2;} 2802 { (exit 77); exit 77; }; } 2803fi 2804 2805ac_exeext=$ac_cv_exeext 2806 2807# Check that the compiler produces executables we can run. If not, either 2808# the compiler is broken, or we cross compile. 2809{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2810echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2811# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2812# If not cross compiling, check that we can run a simple program. 2813if test "$cross_compiling" != yes; then 2814 if { ac_try='./$ac_file' 2815 { (case "(($ac_try" in 2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2817 *) ac_try_echo=$ac_try;; 2818esac 2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2820 (eval "$ac_try") 2>&5 2821 ac_status=$? 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); }; }; then 2824 cross_compiling=no 2825 else 2826 if test "$cross_compiling" = maybe; then 2827 cross_compiling=yes 2828 else 2829 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2830If you meant to cross compile, use \`--host'. 2831See \`config.log' for more details." >&5 2832echo "$as_me: error: cannot run C compiled programs. 2833If you meant to cross compile, use \`--host'. 2834See \`config.log' for more details." >&2;} 2835 { (exit 1); exit 1; }; } 2836 fi 2837 fi 2838fi 2839{ echo "$as_me:$LINENO: result: yes" >&5 2840echo "${ECHO_T}yes" >&6; } 2841 2842rm -f a.out a.exe conftest$ac_cv_exeext b.out 2843ac_clean_files=$ac_clean_files_save 2844# Check that the compiler produces executables we can run. If not, either 2845# the compiler is broken, or we cross compile. 2846{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2847echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2848{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2849echo "${ECHO_T}$cross_compiling" >&6; } 2850 2851{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2852echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2853if { (ac_try="$ac_link" 2854case "(($ac_try" in 2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2856 *) ac_try_echo=$ac_try;; 2857esac 2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2859 (eval "$ac_link") 2>&5 2860 ac_status=$? 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); }; then 2863 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2864# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2865# work properly (i.e., refer to `conftest.exe'), while it won't with 2866# `rm'. 2867for ac_file in conftest.exe conftest conftest.*; do 2868 test -f "$ac_file" || continue 2869 case $ac_file in 2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2872 break;; 2873 * ) break;; 2874 esac 2875done 2876else 2877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2878See \`config.log' for more details." >&5 2879echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2880See \`config.log' for more details." >&2;} 2881 { (exit 1); exit 1; }; } 2882fi 2883 2884rm -f conftest$ac_cv_exeext 2885{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2886echo "${ECHO_T}$ac_cv_exeext" >&6; } 2887 2888rm -f conftest.$ac_ext 2889EXEEXT=$ac_cv_exeext 2890ac_exeext=$EXEEXT 2891{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2892echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2893if test "${ac_cv_objext+set}" = set; then 2894 echo $ECHO_N "(cached) $ECHO_C" >&6 2895else 2896 cat >conftest.$ac_ext <<_ACEOF 2897/* confdefs.h. */ 2898_ACEOF 2899cat confdefs.h >>conftest.$ac_ext 2900cat >>conftest.$ac_ext <<_ACEOF 2901/* end confdefs.h. */ 2902 2903int 2904main () 2905{ 2906 2907 ; 2908 return 0; 2909} 2910_ACEOF 2911rm -f conftest.o conftest.obj 2912if { (ac_try="$ac_compile" 2913case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2918 (eval "$ac_compile") 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); }; then 2922 for ac_file in conftest.o conftest.obj conftest.*; do 2923 test -f "$ac_file" || continue; 2924 case $ac_file in 2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2927 break;; 2928 esac 2929done 2930else 2931 echo "$as_me: failed program was:" >&5 2932sed 's/^/| /' conftest.$ac_ext >&5 2933 2934{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2935See \`config.log' for more details." >&5 2936echo "$as_me: error: cannot compute suffix of object files: cannot compile 2937See \`config.log' for more details." >&2;} 2938 { (exit 1); exit 1; }; } 2939fi 2940 2941rm -f conftest.$ac_cv_objext conftest.$ac_ext 2942fi 2943{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2944echo "${ECHO_T}$ac_cv_objext" >&6; } 2945OBJEXT=$ac_cv_objext 2946ac_objext=$OBJEXT 2947{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2948echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2949if test "${ac_cv_c_compiler_gnu+set}" = set; then 2950 echo $ECHO_N "(cached) $ECHO_C" >&6 2951else 2952 cat >conftest.$ac_ext <<_ACEOF 2953/* confdefs.h. */ 2954_ACEOF 2955cat confdefs.h >>conftest.$ac_ext 2956cat >>conftest.$ac_ext <<_ACEOF 2957/* end confdefs.h. */ 2958 2959int 2960main () 2961{ 2962#ifndef __GNUC__ 2963 choke me 2964#endif 2965 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970rm -f conftest.$ac_objext 2971if { (ac_try="$ac_compile" 2972case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2977 (eval "$ac_compile") 2>conftest.er1 2978 ac_status=$? 2979 grep -v '^ *+' conftest.er1 >conftest.err 2980 rm -f conftest.er1 2981 cat conftest.err >&5 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } && { 2984 test -z "$ac_c_werror_flag" || 2985 test ! -s conftest.err 2986 } && test -s conftest.$ac_objext; then 2987 ac_compiler_gnu=yes 2988else 2989 echo "$as_me: failed program was:" >&5 2990sed 's/^/| /' conftest.$ac_ext >&5 2991 2992 ac_compiler_gnu=no 2993fi 2994 2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2996ac_cv_c_compiler_gnu=$ac_compiler_gnu 2997 2998fi 2999{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3000echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3001GCC=`test $ac_compiler_gnu = yes && echo yes` 3002ac_test_CFLAGS=${CFLAGS+set} 3003ac_save_CFLAGS=$CFLAGS 3004{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3005echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3006if test "${ac_cv_prog_cc_g+set}" = set; then 3007 echo $ECHO_N "(cached) $ECHO_C" >&6 3008else 3009 ac_save_c_werror_flag=$ac_c_werror_flag 3010 ac_c_werror_flag=yes 3011 ac_cv_prog_cc_g=no 3012 CFLAGS="-g" 3013 cat >conftest.$ac_ext <<_ACEOF 3014/* confdefs.h. */ 3015_ACEOF 3016cat confdefs.h >>conftest.$ac_ext 3017cat >>conftest.$ac_ext <<_ACEOF 3018/* end confdefs.h. */ 3019 3020int 3021main () 3022{ 3023 3024 ; 3025 return 0; 3026} 3027_ACEOF 3028rm -f conftest.$ac_objext 3029if { (ac_try="$ac_compile" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_compile") 2>conftest.er1 3036 ac_status=$? 3037 grep -v '^ *+' conftest.er1 >conftest.err 3038 rm -f conftest.er1 3039 cat conftest.err >&5 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); } && { 3042 test -z "$ac_c_werror_flag" || 3043 test ! -s conftest.err 3044 } && test -s conftest.$ac_objext; then 3045 ac_cv_prog_cc_g=yes 3046else 3047 echo "$as_me: failed program was:" >&5 3048sed 's/^/| /' conftest.$ac_ext >&5 3049 3050 CFLAGS="" 3051 cat >conftest.$ac_ext <<_ACEOF 3052/* confdefs.h. */ 3053_ACEOF 3054cat confdefs.h >>conftest.$ac_ext 3055cat >>conftest.$ac_ext <<_ACEOF 3056/* end confdefs.h. */ 3057 3058int 3059main () 3060{ 3061 3062 ; 3063 return 0; 3064} 3065_ACEOF 3066rm -f conftest.$ac_objext 3067if { (ac_try="$ac_compile" 3068case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071esac 3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3073 (eval "$ac_compile") 2>conftest.er1 3074 ac_status=$? 3075 grep -v '^ *+' conftest.er1 >conftest.err 3076 rm -f conftest.er1 3077 cat conftest.err >&5 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); } && { 3080 test -z "$ac_c_werror_flag" || 3081 test ! -s conftest.err 3082 } && test -s conftest.$ac_objext; then 3083 : 3084else 3085 echo "$as_me: failed program was:" >&5 3086sed 's/^/| /' conftest.$ac_ext >&5 3087 3088 ac_c_werror_flag=$ac_save_c_werror_flag 3089 CFLAGS="-g" 3090 cat >conftest.$ac_ext <<_ACEOF 3091/* confdefs.h. */ 3092_ACEOF 3093cat confdefs.h >>conftest.$ac_ext 3094cat >>conftest.$ac_ext <<_ACEOF 3095/* end confdefs.h. */ 3096 3097int 3098main () 3099{ 3100 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105rm -f conftest.$ac_objext 3106if { (ac_try="$ac_compile" 3107case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3112 (eval "$ac_compile") 2>conftest.er1 3113 ac_status=$? 3114 grep -v '^ *+' conftest.er1 >conftest.err 3115 rm -f conftest.er1 3116 cat conftest.err >&5 3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); } && { 3119 test -z "$ac_c_werror_flag" || 3120 test ! -s conftest.err 3121 } && test -s conftest.$ac_objext; then 3122 ac_cv_prog_cc_g=yes 3123else 3124 echo "$as_me: failed program was:" >&5 3125sed 's/^/| /' conftest.$ac_ext >&5 3126 3127 3128fi 3129 3130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3131fi 3132 3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3134fi 3135 3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3137 ac_c_werror_flag=$ac_save_c_werror_flag 3138fi 3139{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3140echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3141if test "$ac_test_CFLAGS" = set; then 3142 CFLAGS=$ac_save_CFLAGS 3143elif test $ac_cv_prog_cc_g = yes; then 3144 if test "$GCC" = yes; then 3145 CFLAGS="-g -O2" 3146 else 3147 CFLAGS="-g" 3148 fi 3149else 3150 if test "$GCC" = yes; then 3151 CFLAGS="-O2" 3152 else 3153 CFLAGS= 3154 fi 3155fi 3156{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3157echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3158if test "${ac_cv_prog_cc_c89+set}" = set; then 3159 echo $ECHO_N "(cached) $ECHO_C" >&6 3160else 3161 ac_cv_prog_cc_c89=no 3162ac_save_CC=$CC 3163cat >conftest.$ac_ext <<_ACEOF 3164/* confdefs.h. */ 3165_ACEOF 3166cat confdefs.h >>conftest.$ac_ext 3167cat >>conftest.$ac_ext <<_ACEOF 3168/* end confdefs.h. */ 3169#include <stdarg.h> 3170#include <stdio.h> 3171#include <sys/types.h> 3172#include <sys/stat.h> 3173/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3174struct buf { int x; }; 3175FILE * (*rcsopen) (struct buf *, struct stat *, int); 3176static char *e (p, i) 3177 char **p; 3178 int i; 3179{ 3180 return p[i]; 3181} 3182static char *f (char * (*g) (char **, int), char **p, ...) 3183{ 3184 char *s; 3185 va_list v; 3186 va_start (v,p); 3187 s = g (p, va_arg (v,int)); 3188 va_end (v); 3189 return s; 3190} 3191 3192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3193 function prototypes and stuff, but not '\xHH' hex character constants. 3194 These don't provoke an error unfortunately, instead are silently treated 3195 as 'x'. The following induces an error, until -std is added to get 3196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3197 array size at least. It's necessary to write '\x00'==0 to get something 3198 that's true only with -std. */ 3199int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3200 3201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3202 inside strings and character constants. */ 3203#define FOO(x) 'x' 3204int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3205 3206int test (int i, double x); 3207struct s1 {int (*f) (int a);}; 3208struct s2 {int (*f) (double a);}; 3209int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3210int argc; 3211char **argv; 3212int 3213main () 3214{ 3215return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3216 ; 3217 return 0; 3218} 3219_ACEOF 3220for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3222do 3223 CC="$ac_save_CC $ac_arg" 3224 rm -f conftest.$ac_objext 3225if { (ac_try="$ac_compile" 3226case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229esac 3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3231 (eval "$ac_compile") 2>conftest.er1 3232 ac_status=$? 3233 grep -v '^ *+' conftest.er1 >conftest.err 3234 rm -f conftest.er1 3235 cat conftest.err >&5 3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3237 (exit $ac_status); } && { 3238 test -z "$ac_c_werror_flag" || 3239 test ! -s conftest.err 3240 } && test -s conftest.$ac_objext; then 3241 ac_cv_prog_cc_c89=$ac_arg 3242else 3243 echo "$as_me: failed program was:" >&5 3244sed 's/^/| /' conftest.$ac_ext >&5 3245 3246 3247fi 3248 3249rm -f core conftest.err conftest.$ac_objext 3250 test "x$ac_cv_prog_cc_c89" != "xno" && break 3251done 3252rm -f conftest.$ac_ext 3253CC=$ac_save_CC 3254 3255fi 3256# AC_CACHE_VAL 3257case "x$ac_cv_prog_cc_c89" in 3258 x) 3259 { echo "$as_me:$LINENO: result: none needed" >&5 3260echo "${ECHO_T}none needed" >&6; } ;; 3261 xno) 3262 { echo "$as_me:$LINENO: result: unsupported" >&5 3263echo "${ECHO_T}unsupported" >&6; } ;; 3264 *) 3265 CC="$CC $ac_cv_prog_cc_c89" 3266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3267echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3268esac 3269 3270 3271ac_ext=c 3272ac_cpp='$CPP $CPPFLAGS' 3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3275ac_compiler_gnu=$ac_cv_c_compiler_gnu 3276 3277depcc="$CC" am_compiler_list= 3278 3279{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3280echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3281if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3282 echo $ECHO_N "(cached) $ECHO_C" >&6 3283else 3284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3285 # We make a subdir and do the tests there. Otherwise we can end up 3286 # making bogus files that we don't know about and never remove. For 3287 # instance it was reported that on HP-UX the gcc test will end up 3288 # making a dummy file named `D' -- because `-MD' means `put the output 3289 # in D'. 3290 mkdir conftest.dir 3291 # Copy depcomp to subdir because otherwise we won't find it if we're 3292 # using a relative directory. 3293 cp "$am_depcomp" conftest.dir 3294 cd conftest.dir 3295 # We will build objects and dependencies in a subdirectory because 3296 # it helps to detect inapplicable dependency modes. For instance 3297 # both Tru64's cc and ICC support -MD to output dependencies as a 3298 # side effect of compilation, but ICC will put the dependencies in 3299 # the current directory while Tru64 will put them in the object 3300 # directory. 3301 mkdir sub 3302 3303 am_cv_CC_dependencies_compiler_type=none 3304 if test "$am_compiler_list" = ""; then 3305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3306 fi 3307 for depmode in $am_compiler_list; do 3308 # Setup a source with many dependencies, because some compilers 3309 # like to wrap large dependency lists on column 80 (with \), and 3310 # we should not choose a depcomp mode which is confused by this. 3311 # 3312 # We need to recreate these files for each test, as the compiler may 3313 # overwrite some of them when testing with obscure command lines. 3314 # This happens at least with the AIX C compiler. 3315 : > sub/conftest.c 3316 for i in 1 2 3 4 5 6; do 3317 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3318 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3319 # Solaris 8's {/usr,}/bin/sh. 3320 touch sub/conftst$i.h 3321 done 3322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3323 3324 case $depmode in 3325 nosideeffect) 3326 # after this tag, mechanisms are not by side-effect, so they'll 3327 # only be used when explicitly requested 3328 if test "x$enable_dependency_tracking" = xyes; then 3329 continue 3330 else 3331 break 3332 fi 3333 ;; 3334 none) break ;; 3335 esac 3336 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3337 # mode. It turns out that the SunPro C++ compiler does not properly 3338 # handle `-M -o', and we need to detect this. 3339 if depmode=$depmode \ 3340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3343 >/dev/null 2>conftest.err && 3344 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3345 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3346 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3348 # icc doesn't choke on unknown options, it will just issue warnings 3349 # or remarks (even with -Werror). So we grep stderr for any message 3350 # that says an option was ignored or not supported. 3351 # When given -MP, icc 7.0 and 7.1 complain thusly: 3352 # icc: Command line warning: ignoring option '-M'; no argument required 3353 # The diagnosis changed in icc 8.0: 3354 # icc: Command line remark: option '-MP' not supported 3355 if (grep 'ignoring option' conftest.err || 3356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3357 am_cv_CC_dependencies_compiler_type=$depmode 3358 break 3359 fi 3360 fi 3361 done 3362 3363 cd .. 3364 rm -rf conftest.dir 3365else 3366 am_cv_CC_dependencies_compiler_type=none 3367fi 3368 3369fi 3370{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3371echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3372CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3373 3374 if 3375 test "x$enable_dependency_tracking" != xno \ 3376 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3377 am__fastdepCC_TRUE= 3378 am__fastdepCC_FALSE='#' 3379else 3380 am__fastdepCC_TRUE='#' 3381 am__fastdepCC_FALSE= 3382fi 3383 3384 3385 3386ac_ext=c 3387ac_cpp='$CPP $CPPFLAGS' 3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3390ac_compiler_gnu=$ac_cv_c_compiler_gnu 3391{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3393# On Suns, sometimes $CPP names a directory. 3394if test -n "$CPP" && test -d "$CPP"; then 3395 CPP= 3396fi 3397if test -z "$CPP"; then 3398 if test "${ac_cv_prog_CPP+set}" = set; then 3399 echo $ECHO_N "(cached) $ECHO_C" >&6 3400else 3401 # Double quotes because CPP needs to be expanded 3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3403 do 3404 ac_preproc_ok=false 3405for ac_c_preproc_warn_flag in '' yes 3406do 3407 # Use a header file that comes with gcc, so configuring glibc 3408 # with a fresh cross-compiler works. 3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3410 # <limits.h> exists even on freestanding compilers. 3411 # On the NeXT, cc -E runs the code through the compiler's parser, 3412 # not just through cpp. "Syntax error" is here to catch this case. 3413 cat >conftest.$ac_ext <<_ACEOF 3414/* confdefs.h. */ 3415_ACEOF 3416cat confdefs.h >>conftest.$ac_ext 3417cat >>conftest.$ac_ext <<_ACEOF 3418/* end confdefs.h. */ 3419#ifdef __STDC__ 3420# include <limits.h> 3421#else 3422# include <assert.h> 3423#endif 3424 Syntax error 3425_ACEOF 3426if { (ac_try="$ac_cpp conftest.$ac_ext" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3433 ac_status=$? 3434 grep -v '^ *+' conftest.er1 >conftest.err 3435 rm -f conftest.er1 3436 cat conftest.err >&5 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } >/dev/null && { 3439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3440 test ! -s conftest.err 3441 }; then 3442 : 3443else 3444 echo "$as_me: failed program was:" >&5 3445sed 's/^/| /' conftest.$ac_ext >&5 3446 3447 # Broken: fails on valid input. 3448continue 3449fi 3450 3451rm -f conftest.err conftest.$ac_ext 3452 3453 # OK, works on sane cases. Now check whether nonexistent headers 3454 # can be detected and how. 3455 cat >conftest.$ac_ext <<_ACEOF 3456/* confdefs.h. */ 3457_ACEOF 3458cat confdefs.h >>conftest.$ac_ext 3459cat >>conftest.$ac_ext <<_ACEOF 3460/* end confdefs.h. */ 3461#include <ac_nonexistent.h> 3462_ACEOF 3463if { (ac_try="$ac_cpp conftest.$ac_ext" 3464case "(($ac_try" in 3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3466 *) ac_try_echo=$ac_try;; 3467esac 3468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3470 ac_status=$? 3471 grep -v '^ *+' conftest.er1 >conftest.err 3472 rm -f conftest.er1 3473 cat conftest.err >&5 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } >/dev/null && { 3476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3477 test ! -s conftest.err 3478 }; then 3479 # Broken: success on invalid input. 3480continue 3481else 3482 echo "$as_me: failed program was:" >&5 3483sed 's/^/| /' conftest.$ac_ext >&5 3484 3485 # Passes both tests. 3486ac_preproc_ok=: 3487break 3488fi 3489 3490rm -f conftest.err conftest.$ac_ext 3491 3492done 3493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3494rm -f conftest.err conftest.$ac_ext 3495if $ac_preproc_ok; then 3496 break 3497fi 3498 3499 done 3500 ac_cv_prog_CPP=$CPP 3501 3502fi 3503 CPP=$ac_cv_prog_CPP 3504else 3505 ac_cv_prog_CPP=$CPP 3506fi 3507{ echo "$as_me:$LINENO: result: $CPP" >&5 3508echo "${ECHO_T}$CPP" >&6; } 3509ac_preproc_ok=false 3510for ac_c_preproc_warn_flag in '' yes 3511do 3512 # Use a header file that comes with gcc, so configuring glibc 3513 # with a fresh cross-compiler works. 3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3515 # <limits.h> exists even on freestanding compilers. 3516 # On the NeXT, cc -E runs the code through the compiler's parser, 3517 # not just through cpp. "Syntax error" is here to catch this case. 3518 cat >conftest.$ac_ext <<_ACEOF 3519/* confdefs.h. */ 3520_ACEOF 3521cat confdefs.h >>conftest.$ac_ext 3522cat >>conftest.$ac_ext <<_ACEOF 3523/* end confdefs.h. */ 3524#ifdef __STDC__ 3525# include <limits.h> 3526#else 3527# include <assert.h> 3528#endif 3529 Syntax error 3530_ACEOF 3531if { (ac_try="$ac_cpp conftest.$ac_ext" 3532case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3538 ac_status=$? 3539 grep -v '^ *+' conftest.er1 >conftest.err 3540 rm -f conftest.er1 3541 cat conftest.err >&5 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); } >/dev/null && { 3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3545 test ! -s conftest.err 3546 }; then 3547 : 3548else 3549 echo "$as_me: failed program was:" >&5 3550sed 's/^/| /' conftest.$ac_ext >&5 3551 3552 # Broken: fails on valid input. 3553continue 3554fi 3555 3556rm -f conftest.err conftest.$ac_ext 3557 3558 # OK, works on sane cases. Now check whether nonexistent headers 3559 # can be detected and how. 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566#include <ac_nonexistent.h> 3567_ACEOF 3568if { (ac_try="$ac_cpp conftest.$ac_ext" 3569case "(($ac_try" in 3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3571 *) ac_try_echo=$ac_try;; 3572esac 3573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3575 ac_status=$? 3576 grep -v '^ *+' conftest.er1 >conftest.err 3577 rm -f conftest.er1 3578 cat conftest.err >&5 3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3580 (exit $ac_status); } >/dev/null && { 3581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3582 test ! -s conftest.err 3583 }; then 3584 # Broken: success on invalid input. 3585continue 3586else 3587 echo "$as_me: failed program was:" >&5 3588sed 's/^/| /' conftest.$ac_ext >&5 3589 3590 # Passes both tests. 3591ac_preproc_ok=: 3592break 3593fi 3594 3595rm -f conftest.err conftest.$ac_ext 3596 3597done 3598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3599rm -f conftest.err conftest.$ac_ext 3600if $ac_preproc_ok; then 3601 : 3602else 3603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3604See \`config.log' for more details." >&5 3605echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3606See \`config.log' for more details." >&2;} 3607 { (exit 1); exit 1; }; } 3608fi 3609 3610ac_ext=c 3611ac_cpp='$CPP $CPPFLAGS' 3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3614ac_compiler_gnu=$ac_cv_c_compiler_gnu 3615 3616 3617{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3618echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3619if test "${ac_cv_path_GREP+set}" = set; then 3620 echo $ECHO_N "(cached) $ECHO_C" >&6 3621else 3622 # Extract the first word of "grep ggrep" to use in msg output 3623if test -z "$GREP"; then 3624set dummy grep ggrep; ac_prog_name=$2 3625if test "${ac_cv_path_GREP+set}" = set; then 3626 echo $ECHO_N "(cached) $ECHO_C" >&6 3627else 3628 ac_path_GREP_found=false 3629# Loop through the user's path and test for each of PROGNAME-LIST 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_prog in grep ggrep; do 3636 for ac_exec_ext in '' $ac_executable_extensions; do 3637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3638 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3639 # Check for GNU ac_path_GREP and select it if it is found. 3640 # Check for GNU $ac_path_GREP 3641case `"$ac_path_GREP" --version 2>&1` in 3642*GNU*) 3643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3644*) 3645 ac_count=0 3646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3647 while : 3648 do 3649 cat "conftest.in" "conftest.in" >"conftest.tmp" 3650 mv "conftest.tmp" "conftest.in" 3651 cp "conftest.in" "conftest.nl" 3652 echo 'GREP' >> "conftest.nl" 3653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3655 ac_count=`expr $ac_count + 1` 3656 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3657 # Best one so far, save it but keep looking for a better one 3658 ac_cv_path_GREP="$ac_path_GREP" 3659 ac_path_GREP_max=$ac_count 3660 fi 3661 # 10*(2^10) chars as input seems more than enough 3662 test $ac_count -gt 10 && break 3663 done 3664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3665esac 3666 3667 3668 $ac_path_GREP_found && break 3 3669 done 3670done 3671 3672done 3673IFS=$as_save_IFS 3674 3675 3676fi 3677 3678GREP="$ac_cv_path_GREP" 3679if test -z "$GREP"; then 3680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3681echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3682 { (exit 1); exit 1; }; } 3683fi 3684 3685else 3686 ac_cv_path_GREP=$GREP 3687fi 3688 3689 3690fi 3691{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3692echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3693 GREP="$ac_cv_path_GREP" 3694 3695 3696{ echo "$as_me:$LINENO: checking for egrep" >&5 3697echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3698if test "${ac_cv_path_EGREP+set}" = set; then 3699 echo $ECHO_N "(cached) $ECHO_C" >&6 3700else 3701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3702 then ac_cv_path_EGREP="$GREP -E" 3703 else 3704 # Extract the first word of "egrep" to use in msg output 3705if test -z "$EGREP"; then 3706set dummy egrep; ac_prog_name=$2 3707if test "${ac_cv_path_EGREP+set}" = set; then 3708 echo $ECHO_N "(cached) $ECHO_C" >&6 3709else 3710 ac_path_EGREP_found=false 3711# Loop through the user's path and test for each of PROGNAME-LIST 3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3714do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 for ac_prog in egrep; do 3718 for ac_exec_ext in '' $ac_executable_extensions; do 3719 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3720 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3721 # Check for GNU ac_path_EGREP and select it if it is found. 3722 # Check for GNU $ac_path_EGREP 3723case `"$ac_path_EGREP" --version 2>&1` in 3724*GNU*) 3725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3726*) 3727 ac_count=0 3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3729 while : 3730 do 3731 cat "conftest.in" "conftest.in" >"conftest.tmp" 3732 mv "conftest.tmp" "conftest.in" 3733 cp "conftest.in" "conftest.nl" 3734 echo 'EGREP' >> "conftest.nl" 3735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3737 ac_count=`expr $ac_count + 1` 3738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3739 # Best one so far, save it but keep looking for a better one 3740 ac_cv_path_EGREP="$ac_path_EGREP" 3741 ac_path_EGREP_max=$ac_count 3742 fi 3743 # 10*(2^10) chars as input seems more than enough 3744 test $ac_count -gt 10 && break 3745 done 3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3747esac 3748 3749 3750 $ac_path_EGREP_found && break 3 3751 done 3752done 3753 3754done 3755IFS=$as_save_IFS 3756 3757 3758fi 3759 3760EGREP="$ac_cv_path_EGREP" 3761if test -z "$EGREP"; then 3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3763echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3764 { (exit 1); exit 1; }; } 3765fi 3766 3767else 3768 ac_cv_path_EGREP=$EGREP 3769fi 3770 3771 3772 fi 3773fi 3774{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3775echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3776 EGREP="$ac_cv_path_EGREP" 3777 3778 3779 3780{ echo "$as_me:$LINENO: checking for AIX" >&5 3781echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 3782cat >conftest.$ac_ext <<_ACEOF 3783/* confdefs.h. */ 3784_ACEOF 3785cat confdefs.h >>conftest.$ac_ext 3786cat >>conftest.$ac_ext <<_ACEOF 3787/* end confdefs.h. */ 3788#ifdef _AIX 3789 yes 3790#endif 3791 3792_ACEOF 3793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3794 $EGREP "yes" >/dev/null 2>&1; then 3795 { echo "$as_me:$LINENO: result: yes" >&5 3796echo "${ECHO_T}yes" >&6; } 3797cat >>confdefs.h <<\_ACEOF 3798#define _ALL_SOURCE 1 3799_ACEOF 3800 3801else 3802 { echo "$as_me:$LINENO: result: no" >&5 3803echo "${ECHO_T}no" >&6; } 3804fi 3805rm -f conftest* 3806 3807 3808 3809case "${host}" in 3810 *aix*) 3811 CFLAGS="${CFLAGS} -D_THREAD_SAFE" 3812 ;; 3813 *linux*) 3814 CFLAGS="${CFLAGS} -D_REENTRANT" 3815 ;; 3816 *) 3817 echo "detected unknown platform : ${host} : compiles may fail" 3818 CFLAGS="${CFLAGS} -D_REENTRANT" 3819 ;; 3820esac 3821 3822ac_ext=c 3823ac_cpp='$CPP $CPPFLAGS' 3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3826ac_compiler_gnu=$ac_cv_c_compiler_gnu 3827if test -n "$ac_tool_prefix"; then 3828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3829set dummy ${ac_tool_prefix}gcc; ac_word=$2 3830{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3832if test "${ac_cv_prog_CC+set}" = set; then 3833 echo $ECHO_N "(cached) $ECHO_C" >&6 3834else 3835 if test -n "$CC"; then 3836 ac_cv_prog_CC="$CC" # Let the user override the test. 3837else 3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3839for as_dir in $PATH 3840do 3841 IFS=$as_save_IFS 3842 test -z "$as_dir" && as_dir=. 3843 for ac_exec_ext in '' $ac_executable_extensions; do 3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3845 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3847 break 2 3848 fi 3849done 3850done 3851IFS=$as_save_IFS 3852 3853fi 3854fi 3855CC=$ac_cv_prog_CC 3856if test -n "$CC"; then 3857 { echo "$as_me:$LINENO: result: $CC" >&5 3858echo "${ECHO_T}$CC" >&6; } 3859else 3860 { echo "$as_me:$LINENO: result: no" >&5 3861echo "${ECHO_T}no" >&6; } 3862fi 3863 3864 3865fi 3866if test -z "$ac_cv_prog_CC"; then 3867 ac_ct_CC=$CC 3868 # Extract the first word of "gcc", so it can be a program name with args. 3869set dummy gcc; ac_word=$2 3870{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3873 echo $ECHO_N "(cached) $ECHO_C" >&6 3874else 3875 if test -n "$ac_ct_CC"; then 3876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3885 ac_cv_prog_ac_ct_CC="gcc" 3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3887 break 2 3888 fi 3889done 3890done 3891IFS=$as_save_IFS 3892 3893fi 3894fi 3895ac_ct_CC=$ac_cv_prog_ac_ct_CC 3896if test -n "$ac_ct_CC"; then 3897 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3898echo "${ECHO_T}$ac_ct_CC" >&6; } 3899else 3900 { echo "$as_me:$LINENO: result: no" >&5 3901echo "${ECHO_T}no" >&6; } 3902fi 3903 3904 if test "x$ac_ct_CC" = x; then 3905 CC="" 3906 else 3907 case $cross_compiling:$ac_tool_warned in 3908yes:) 3909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3910whose name does not start with the host triplet. If you think this 3911configuration is useful to you, please write to autoconf@gnu.org." >&5 3912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3913whose name does not start with the host triplet. If you think this 3914configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3915ac_tool_warned=yes ;; 3916esac 3917 CC=$ac_ct_CC 3918 fi 3919else 3920 CC="$ac_cv_prog_CC" 3921fi 3922 3923if test -z "$CC"; then 3924 if test -n "$ac_tool_prefix"; then 3925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3926set dummy ${ac_tool_prefix}cc; ac_word=$2 3927{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3929if test "${ac_cv_prog_CC+set}" = set; then 3930 echo $ECHO_N "(cached) $ECHO_C" >&6 3931else 3932 if test -n "$CC"; then 3933 ac_cv_prog_CC="$CC" # Let the user override the test. 3934else 3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3936for as_dir in $PATH 3937do 3938 IFS=$as_save_IFS 3939 test -z "$as_dir" && as_dir=. 3940 for ac_exec_ext in '' $ac_executable_extensions; do 3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3942 ac_cv_prog_CC="${ac_tool_prefix}cc" 3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3944 break 2 3945 fi 3946done 3947done 3948IFS=$as_save_IFS 3949 3950fi 3951fi 3952CC=$ac_cv_prog_CC 3953if test -n "$CC"; then 3954 { echo "$as_me:$LINENO: result: $CC" >&5 3955echo "${ECHO_T}$CC" >&6; } 3956else 3957 { echo "$as_me:$LINENO: result: no" >&5 3958echo "${ECHO_T}no" >&6; } 3959fi 3960 3961 3962 fi 3963fi 3964if test -z "$CC"; then 3965 # Extract the first word of "cc", so it can be a program name with args. 3966set dummy cc; ac_word=$2 3967{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3969if test "${ac_cv_prog_CC+set}" = set; then 3970 echo $ECHO_N "(cached) $ECHO_C" >&6 3971else 3972 if test -n "$CC"; then 3973 ac_cv_prog_CC="$CC" # Let the user override the test. 3974else 3975 ac_prog_rejected=no 3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3977for as_dir in $PATH 3978do 3979 IFS=$as_save_IFS 3980 test -z "$as_dir" && as_dir=. 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3983 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3984 ac_prog_rejected=yes 3985 continue 3986 fi 3987 ac_cv_prog_CC="cc" 3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3989 break 2 3990 fi 3991done 3992done 3993IFS=$as_save_IFS 3994 3995if test $ac_prog_rejected = yes; then 3996 # We found a bogon in the path, so make sure we never use it. 3997 set dummy $ac_cv_prog_CC 3998 shift 3999 if test $# != 0; then 4000 # We chose a different compiler from the bogus one. 4001 # However, it has the same basename, so the bogon will be chosen 4002 # first if we set CC to just the basename; use the full file name. 4003 shift 4004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4005 fi 4006fi 4007fi 4008fi 4009CC=$ac_cv_prog_CC 4010if test -n "$CC"; then 4011 { echo "$as_me:$LINENO: result: $CC" >&5 4012echo "${ECHO_T}$CC" >&6; } 4013else 4014 { echo "$as_me:$LINENO: result: no" >&5 4015echo "${ECHO_T}no" >&6; } 4016fi 4017 4018 4019fi 4020if test -z "$CC"; then 4021 if test -n "$ac_tool_prefix"; then 4022 for ac_prog in cl.exe 4023 do 4024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4025set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4026{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4028if test "${ac_cv_prog_CC+set}" = set; then 4029 echo $ECHO_N "(cached) $ECHO_C" >&6 4030else 4031 if test -n "$CC"; then 4032 ac_cv_prog_CC="$CC" # Let the user override the test. 4033else 4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4035for as_dir in $PATH 4036do 4037 IFS=$as_save_IFS 4038 test -z "$as_dir" && as_dir=. 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4043 break 2 4044 fi 4045done 4046done 4047IFS=$as_save_IFS 4048 4049fi 4050fi 4051CC=$ac_cv_prog_CC 4052if test -n "$CC"; then 4053 { echo "$as_me:$LINENO: result: $CC" >&5 4054echo "${ECHO_T}$CC" >&6; } 4055else 4056 { echo "$as_me:$LINENO: result: no" >&5 4057echo "${ECHO_T}no" >&6; } 4058fi 4059 4060 4061 test -n "$CC" && break 4062 done 4063fi 4064if test -z "$CC"; then 4065 ac_ct_CC=$CC 4066 for ac_prog in cl.exe 4067do 4068 # Extract the first word of "$ac_prog", so it can be a program name with args. 4069set dummy $ac_prog; ac_word=$2 4070{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4073 echo $ECHO_N "(cached) $ECHO_C" >&6 4074else 4075 if test -n "$ac_ct_CC"; then 4076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4077else 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_exec_ext in '' $ac_executable_extensions; do 4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4085 ac_cv_prog_ac_ct_CC="$ac_prog" 4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4087 break 2 4088 fi 4089done 4090done 4091IFS=$as_save_IFS 4092 4093fi 4094fi 4095ac_ct_CC=$ac_cv_prog_ac_ct_CC 4096if test -n "$ac_ct_CC"; then 4097 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4098echo "${ECHO_T}$ac_ct_CC" >&6; } 4099else 4100 { echo "$as_me:$LINENO: result: no" >&5 4101echo "${ECHO_T}no" >&6; } 4102fi 4103 4104 4105 test -n "$ac_ct_CC" && break 4106done 4107 4108 if test "x$ac_ct_CC" = x; then 4109 CC="" 4110 else 4111 case $cross_compiling:$ac_tool_warned in 4112yes:) 4113{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4114whose name does not start with the host triplet. If you think this 4115configuration is useful to you, please write to autoconf@gnu.org." >&5 4116echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4117whose name does not start with the host triplet. If you think this 4118configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4119ac_tool_warned=yes ;; 4120esac 4121 CC=$ac_ct_CC 4122 fi 4123fi 4124 4125fi 4126 4127 4128test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4129See \`config.log' for more details." >&5 4130echo "$as_me: error: no acceptable C compiler found in \$PATH 4131See \`config.log' for more details." >&2;} 4132 { (exit 1); exit 1; }; } 4133 4134# Provide some information about the compiler. 4135echo "$as_me:$LINENO: checking for C compiler version" >&5 4136ac_compiler=`set X $ac_compile; echo $2` 4137{ (ac_try="$ac_compiler --version >&5" 4138case "(($ac_try" in 4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4140 *) ac_try_echo=$ac_try;; 4141esac 4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4143 (eval "$ac_compiler --version >&5") 2>&5 4144 ac_status=$? 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); } 4147{ (ac_try="$ac_compiler -v >&5" 4148case "(($ac_try" in 4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4150 *) ac_try_echo=$ac_try;; 4151esac 4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4153 (eval "$ac_compiler -v >&5") 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } 4157{ (ac_try="$ac_compiler -V >&5" 4158case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4163 (eval "$ac_compiler -V >&5") 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); } 4167 4168{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4169echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4170if test "${ac_cv_c_compiler_gnu+set}" = set; then 4171 echo $ECHO_N "(cached) $ECHO_C" >&6 4172else 4173 cat >conftest.$ac_ext <<_ACEOF 4174/* confdefs.h. */ 4175_ACEOF 4176cat confdefs.h >>conftest.$ac_ext 4177cat >>conftest.$ac_ext <<_ACEOF 4178/* end confdefs.h. */ 4179 4180int 4181main () 4182{ 4183#ifndef __GNUC__ 4184 choke me 4185#endif 4186 4187 ; 4188 return 0; 4189} 4190_ACEOF 4191rm -f conftest.$ac_objext 4192if { (ac_try="$ac_compile" 4193case "(($ac_try" in 4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4195 *) ac_try_echo=$ac_try;; 4196esac 4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4198 (eval "$ac_compile") 2>conftest.er1 4199 ac_status=$? 4200 grep -v '^ *+' conftest.er1 >conftest.err 4201 rm -f conftest.er1 4202 cat conftest.err >&5 4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4204 (exit $ac_status); } && { 4205 test -z "$ac_c_werror_flag" || 4206 test ! -s conftest.err 4207 } && test -s conftest.$ac_objext; then 4208 ac_compiler_gnu=yes 4209else 4210 echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213 ac_compiler_gnu=no 4214fi 4215 4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4217ac_cv_c_compiler_gnu=$ac_compiler_gnu 4218 4219fi 4220{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4221echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4222GCC=`test $ac_compiler_gnu = yes && echo yes` 4223ac_test_CFLAGS=${CFLAGS+set} 4224ac_save_CFLAGS=$CFLAGS 4225{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4226echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4227if test "${ac_cv_prog_cc_g+set}" = set; then 4228 echo $ECHO_N "(cached) $ECHO_C" >&6 4229else 4230 ac_save_c_werror_flag=$ac_c_werror_flag 4231 ac_c_werror_flag=yes 4232 ac_cv_prog_cc_g=no 4233 CFLAGS="-g" 4234 cat >conftest.$ac_ext <<_ACEOF 4235/* confdefs.h. */ 4236_ACEOF 4237cat confdefs.h >>conftest.$ac_ext 4238cat >>conftest.$ac_ext <<_ACEOF 4239/* end confdefs.h. */ 4240 4241int 4242main () 4243{ 4244 4245 ; 4246 return 0; 4247} 4248_ACEOF 4249rm -f conftest.$ac_objext 4250if { (ac_try="$ac_compile" 4251case "(($ac_try" in 4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4253 *) ac_try_echo=$ac_try;; 4254esac 4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4256 (eval "$ac_compile") 2>conftest.er1 4257 ac_status=$? 4258 grep -v '^ *+' conftest.er1 >conftest.err 4259 rm -f conftest.er1 4260 cat conftest.err >&5 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); } && { 4263 test -z "$ac_c_werror_flag" || 4264 test ! -s conftest.err 4265 } && test -s conftest.$ac_objext; then 4266 ac_cv_prog_cc_g=yes 4267else 4268 echo "$as_me: failed program was:" >&5 4269sed 's/^/| /' conftest.$ac_ext >&5 4270 4271 CFLAGS="" 4272 cat >conftest.$ac_ext <<_ACEOF 4273/* confdefs.h. */ 4274_ACEOF 4275cat confdefs.h >>conftest.$ac_ext 4276cat >>conftest.$ac_ext <<_ACEOF 4277/* end confdefs.h. */ 4278 4279int 4280main () 4281{ 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287rm -f conftest.$ac_objext 4288if { (ac_try="$ac_compile" 4289case "(($ac_try" in 4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4291 *) ac_try_echo=$ac_try;; 4292esac 4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4294 (eval "$ac_compile") 2>conftest.er1 4295 ac_status=$? 4296 grep -v '^ *+' conftest.er1 >conftest.err 4297 rm -f conftest.er1 4298 cat conftest.err >&5 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); } && { 4301 test -z "$ac_c_werror_flag" || 4302 test ! -s conftest.err 4303 } && test -s conftest.$ac_objext; then 4304 : 4305else 4306 echo "$as_me: failed program was:" >&5 4307sed 's/^/| /' conftest.$ac_ext >&5 4308 4309 ac_c_werror_flag=$ac_save_c_werror_flag 4310 CFLAGS="-g" 4311 cat >conftest.$ac_ext <<_ACEOF 4312/* confdefs.h. */ 4313_ACEOF 4314cat confdefs.h >>conftest.$ac_ext 4315cat >>conftest.$ac_ext <<_ACEOF 4316/* end confdefs.h. */ 4317 4318int 4319main () 4320{ 4321 4322 ; 4323 return 0; 4324} 4325_ACEOF 4326rm -f conftest.$ac_objext 4327if { (ac_try="$ac_compile" 4328case "(($ac_try" in 4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4330 *) ac_try_echo=$ac_try;; 4331esac 4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4333 (eval "$ac_compile") 2>conftest.er1 4334 ac_status=$? 4335 grep -v '^ *+' conftest.er1 >conftest.err 4336 rm -f conftest.er1 4337 cat conftest.err >&5 4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4339 (exit $ac_status); } && { 4340 test -z "$ac_c_werror_flag" || 4341 test ! -s conftest.err 4342 } && test -s conftest.$ac_objext; then 4343 ac_cv_prog_cc_g=yes 4344else 4345 echo "$as_me: failed program was:" >&5 4346sed 's/^/| /' conftest.$ac_ext >&5 4347 4348 4349fi 4350 4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4352fi 4353 4354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4355fi 4356 4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4358 ac_c_werror_flag=$ac_save_c_werror_flag 4359fi 4360{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4361echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4362if test "$ac_test_CFLAGS" = set; then 4363 CFLAGS=$ac_save_CFLAGS 4364elif test $ac_cv_prog_cc_g = yes; then 4365 if test "$GCC" = yes; then 4366 CFLAGS="-g -O2" 4367 else 4368 CFLAGS="-g" 4369 fi 4370else 4371 if test "$GCC" = yes; then 4372 CFLAGS="-O2" 4373 else 4374 CFLAGS= 4375 fi 4376fi 4377{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4378echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4379if test "${ac_cv_prog_cc_c89+set}" = set; then 4380 echo $ECHO_N "(cached) $ECHO_C" >&6 4381else 4382 ac_cv_prog_cc_c89=no 4383ac_save_CC=$CC 4384cat >conftest.$ac_ext <<_ACEOF 4385/* confdefs.h. */ 4386_ACEOF 4387cat confdefs.h >>conftest.$ac_ext 4388cat >>conftest.$ac_ext <<_ACEOF 4389/* end confdefs.h. */ 4390#include <stdarg.h> 4391#include <stdio.h> 4392#include <sys/types.h> 4393#include <sys/stat.h> 4394/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4395struct buf { int x; }; 4396FILE * (*rcsopen) (struct buf *, struct stat *, int); 4397static char *e (p, i) 4398 char **p; 4399 int i; 4400{ 4401 return p[i]; 4402} 4403static char *f (char * (*g) (char **, int), char **p, ...) 4404{ 4405 char *s; 4406 va_list v; 4407 va_start (v,p); 4408 s = g (p, va_arg (v,int)); 4409 va_end (v); 4410 return s; 4411} 4412 4413/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4414 function prototypes and stuff, but not '\xHH' hex character constants. 4415 These don't provoke an error unfortunately, instead are silently treated 4416 as 'x'. The following induces an error, until -std is added to get 4417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4418 array size at least. It's necessary to write '\x00'==0 to get something 4419 that's true only with -std. */ 4420int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4421 4422/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4423 inside strings and character constants. */ 4424#define FOO(x) 'x' 4425int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4426 4427int test (int i, double x); 4428struct s1 {int (*f) (int a);}; 4429struct s2 {int (*f) (double a);}; 4430int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4431int argc; 4432char **argv; 4433int 4434main () 4435{ 4436return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4437 ; 4438 return 0; 4439} 4440_ACEOF 4441for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4442 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4443do 4444 CC="$ac_save_CC $ac_arg" 4445 rm -f conftest.$ac_objext 4446if { (ac_try="$ac_compile" 4447case "(($ac_try" in 4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4449 *) ac_try_echo=$ac_try;; 4450esac 4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4452 (eval "$ac_compile") 2>conftest.er1 4453 ac_status=$? 4454 grep -v '^ *+' conftest.er1 >conftest.err 4455 rm -f conftest.er1 4456 cat conftest.err >&5 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); } && { 4459 test -z "$ac_c_werror_flag" || 4460 test ! -s conftest.err 4461 } && test -s conftest.$ac_objext; then 4462 ac_cv_prog_cc_c89=$ac_arg 4463else 4464 echo "$as_me: failed program was:" >&5 4465sed 's/^/| /' conftest.$ac_ext >&5 4466 4467 4468fi 4469 4470rm -f core conftest.err conftest.$ac_objext 4471 test "x$ac_cv_prog_cc_c89" != "xno" && break 4472done 4473rm -f conftest.$ac_ext 4474CC=$ac_save_CC 4475 4476fi 4477# AC_CACHE_VAL 4478case "x$ac_cv_prog_cc_c89" in 4479 x) 4480 { echo "$as_me:$LINENO: result: none needed" >&5 4481echo "${ECHO_T}none needed" >&6; } ;; 4482 xno) 4483 { echo "$as_me:$LINENO: result: unsupported" >&5 4484echo "${ECHO_T}unsupported" >&6; } ;; 4485 *) 4486 CC="$CC $ac_cv_prog_cc_c89" 4487 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4488echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4489esac 4490 4491 4492ac_ext=c 4493ac_cpp='$CPP $CPPFLAGS' 4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4496ac_compiler_gnu=$ac_cv_c_compiler_gnu 4497 4498depcc="$CC" am_compiler_list= 4499 4500{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4501echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4502if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4503 echo $ECHO_N "(cached) $ECHO_C" >&6 4504else 4505 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4506 # We make a subdir and do the tests there. Otherwise we can end up 4507 # making bogus files that we don't know about and never remove. For 4508 # instance it was reported that on HP-UX the gcc test will end up 4509 # making a dummy file named `D' -- because `-MD' means `put the output 4510 # in D'. 4511 mkdir conftest.dir 4512 # Copy depcomp to subdir because otherwise we won't find it if we're 4513 # using a relative directory. 4514 cp "$am_depcomp" conftest.dir 4515 cd conftest.dir 4516 # We will build objects and dependencies in a subdirectory because 4517 # it helps to detect inapplicable dependency modes. For instance 4518 # both Tru64's cc and ICC support -MD to output dependencies as a 4519 # side effect of compilation, but ICC will put the dependencies in 4520 # the current directory while Tru64 will put them in the object 4521 # directory. 4522 mkdir sub 4523 4524 am_cv_CC_dependencies_compiler_type=none 4525 if test "$am_compiler_list" = ""; then 4526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4527 fi 4528 for depmode in $am_compiler_list; do 4529 # Setup a source with many dependencies, because some compilers 4530 # like to wrap large dependency lists on column 80 (with \), and 4531 # we should not choose a depcomp mode which is confused by this. 4532 # 4533 # We need to recreate these files for each test, as the compiler may 4534 # overwrite some of them when testing with obscure command lines. 4535 # This happens at least with the AIX C compiler. 4536 : > sub/conftest.c 4537 for i in 1 2 3 4 5 6; do 4538 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4539 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4540 # Solaris 8's {/usr,}/bin/sh. 4541 touch sub/conftst$i.h 4542 done 4543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4544 4545 case $depmode in 4546 nosideeffect) 4547 # after this tag, mechanisms are not by side-effect, so they'll 4548 # only be used when explicitly requested 4549 if test "x$enable_dependency_tracking" = xyes; then 4550 continue 4551 else 4552 break 4553 fi 4554 ;; 4555 none) break ;; 4556 esac 4557 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4558 # mode. It turns out that the SunPro C++ compiler does not properly 4559 # handle `-M -o', and we need to detect this. 4560 if depmode=$depmode \ 4561 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4563 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4564 >/dev/null 2>conftest.err && 4565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4567 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4569 # icc doesn't choke on unknown options, it will just issue warnings 4570 # or remarks (even with -Werror). So we grep stderr for any message 4571 # that says an option was ignored or not supported. 4572 # When given -MP, icc 7.0 and 7.1 complain thusly: 4573 # icc: Command line warning: ignoring option '-M'; no argument required 4574 # The diagnosis changed in icc 8.0: 4575 # icc: Command line remark: option '-MP' not supported 4576 if (grep 'ignoring option' conftest.err || 4577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4578 am_cv_CC_dependencies_compiler_type=$depmode 4579 break 4580 fi 4581 fi 4582 done 4583 4584 cd .. 4585 rm -rf conftest.dir 4586else 4587 am_cv_CC_dependencies_compiler_type=none 4588fi 4589 4590fi 4591{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4592echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4593CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4594 4595 if 4596 test "x$enable_dependency_tracking" != xno \ 4597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4598 am__fastdepCC_TRUE= 4599 am__fastdepCC_FALSE='#' 4600else 4601 am__fastdepCC_TRUE='#' 4602 am__fastdepCC_FALSE= 4603fi 4604 4605 4606 4607 4608{ echo "$as_me:$LINENO: checking for main in -lm" >&5 4609echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } 4610if test "${ac_cv_lib_m_main+set}" = set; then 4611 echo $ECHO_N "(cached) $ECHO_C" >&6 4612else 4613 ac_check_lib_save_LIBS=$LIBS 4614LIBS="-lm $LIBS" 4615cat >conftest.$ac_ext <<_ACEOF 4616/* confdefs.h. */ 4617_ACEOF 4618cat confdefs.h >>conftest.$ac_ext 4619cat >>conftest.$ac_ext <<_ACEOF 4620/* end confdefs.h. */ 4621 4622 4623int 4624main () 4625{ 4626return main (); 4627 ; 4628 return 0; 4629} 4630_ACEOF 4631rm -f conftest.$ac_objext conftest$ac_exeext 4632if { (ac_try="$ac_link" 4633case "(($ac_try" in 4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4635 *) ac_try_echo=$ac_try;; 4636esac 4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4638 (eval "$ac_link") 2>conftest.er1 4639 ac_status=$? 4640 grep -v '^ *+' conftest.er1 >conftest.err 4641 rm -f conftest.er1 4642 cat conftest.err >&5 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); } && { 4645 test -z "$ac_c_werror_flag" || 4646 test ! -s conftest.err 4647 } && test -s conftest$ac_exeext && 4648 $as_test_x conftest$ac_exeext; then 4649 ac_cv_lib_m_main=yes 4650else 4651 echo "$as_me: failed program was:" >&5 4652sed 's/^/| /' conftest.$ac_ext >&5 4653 4654 ac_cv_lib_m_main=no 4655fi 4656 4657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4658 conftest$ac_exeext conftest.$ac_ext 4659LIBS=$ac_check_lib_save_LIBS 4660fi 4661{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 4662echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } 4663if test $ac_cv_lib_m_main = yes; then 4664 cat >>confdefs.h <<_ACEOF 4665#define HAVE_LIBM 1 4666_ACEOF 4667 4668 LIBS="-lm $LIBS" 4669 4670fi 4671 4672 4673{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5 4674echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; } 4675if test "${ac_cv_lib_pthread_main+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677else 4678 ac_check_lib_save_LIBS=$LIBS 4679LIBS="-lpthread $LIBS" 4680cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686 4687 4688int 4689main () 4690{ 4691return main (); 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696rm -f conftest.$ac_objext conftest$ac_exeext 4697if { (ac_try="$ac_link" 4698case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701esac 4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4703 (eval "$ac_link") 2>conftest.er1 4704 ac_status=$? 4705 grep -v '^ *+' conftest.er1 >conftest.err 4706 rm -f conftest.er1 4707 cat conftest.err >&5 4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4709 (exit $ac_status); } && { 4710 test -z "$ac_c_werror_flag" || 4711 test ! -s conftest.err 4712 } && test -s conftest$ac_exeext && 4713 $as_test_x conftest$ac_exeext; then 4714 ac_cv_lib_pthread_main=yes 4715else 4716 echo "$as_me: failed program was:" >&5 4717sed 's/^/| /' conftest.$ac_ext >&5 4718 4719 ac_cv_lib_pthread_main=no 4720fi 4721 4722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4723 conftest$ac_exeext conftest.$ac_ext 4724LIBS=$ac_check_lib_save_LIBS 4725fi 4726{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 4727echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; } 4728if test $ac_cv_lib_pthread_main = yes; then 4729 cat >>confdefs.h <<_ACEOF 4730#define HAVE_LIBPTHREAD 1 4731_ACEOF 4732 4733 LIBS="-lpthread $LIBS" 4734 4735fi 4736 4737 4738 4739{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4740echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4741if test "${ac_cv_header_stdc+set}" = set; then 4742 echo $ECHO_N "(cached) $ECHO_C" >&6 4743else 4744 cat >conftest.$ac_ext <<_ACEOF 4745/* confdefs.h. */ 4746_ACEOF 4747cat confdefs.h >>conftest.$ac_ext 4748cat >>conftest.$ac_ext <<_ACEOF 4749/* end confdefs.h. */ 4750#include <stdlib.h> 4751#include <stdarg.h> 4752#include <string.h> 4753#include <float.h> 4754 4755int 4756main () 4757{ 4758 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763rm -f conftest.$ac_objext 4764if { (ac_try="$ac_compile" 4765case "(($ac_try" in 4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4767 *) ac_try_echo=$ac_try;; 4768esac 4769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4770 (eval "$ac_compile") 2>conftest.er1 4771 ac_status=$? 4772 grep -v '^ *+' conftest.er1 >conftest.err 4773 rm -f conftest.er1 4774 cat conftest.err >&5 4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); } && { 4777 test -z "$ac_c_werror_flag" || 4778 test ! -s conftest.err 4779 } && test -s conftest.$ac_objext; then 4780 ac_cv_header_stdc=yes 4781else 4782 echo "$as_me: failed program was:" >&5 4783sed 's/^/| /' conftest.$ac_ext >&5 4784 4785 ac_cv_header_stdc=no 4786fi 4787 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789 4790if test $ac_cv_header_stdc = yes; then 4791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4792 cat >conftest.$ac_ext <<_ACEOF 4793/* confdefs.h. */ 4794_ACEOF 4795cat confdefs.h >>conftest.$ac_ext 4796cat >>conftest.$ac_ext <<_ACEOF 4797/* end confdefs.h. */ 4798#include <string.h> 4799 4800_ACEOF 4801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4802 $EGREP "memchr" >/dev/null 2>&1; then 4803 : 4804else 4805 ac_cv_header_stdc=no 4806fi 4807rm -f conftest* 4808 4809fi 4810 4811if test $ac_cv_header_stdc = yes; then 4812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4813 cat >conftest.$ac_ext <<_ACEOF 4814/* confdefs.h. */ 4815_ACEOF 4816cat confdefs.h >>conftest.$ac_ext 4817cat >>conftest.$ac_ext <<_ACEOF 4818/* end confdefs.h. */ 4819#include <stdlib.h> 4820 4821_ACEOF 4822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4823 $EGREP "free" >/dev/null 2>&1; then 4824 : 4825else 4826 ac_cv_header_stdc=no 4827fi 4828rm -f conftest* 4829 4830fi 4831 4832if test $ac_cv_header_stdc = yes; then 4833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4834 if test "$cross_compiling" = yes; then 4835 : 4836else 4837 cat >conftest.$ac_ext <<_ACEOF 4838/* confdefs.h. */ 4839_ACEOF 4840cat confdefs.h >>conftest.$ac_ext 4841cat >>conftest.$ac_ext <<_ACEOF 4842/* end confdefs.h. */ 4843#include <ctype.h> 4844#include <stdlib.h> 4845#if ((' ' & 0x0FF) == 0x020) 4846# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4847# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4848#else 4849# define ISLOWER(c) \ 4850 (('a' <= (c) && (c) <= 'i') \ 4851 || ('j' <= (c) && (c) <= 'r') \ 4852 || ('s' <= (c) && (c) <= 'z')) 4853# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4854#endif 4855 4856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4857int 4858main () 4859{ 4860 int i; 4861 for (i = 0; i < 256; i++) 4862 if (XOR (islower (i), ISLOWER (i)) 4863 || toupper (i) != TOUPPER (i)) 4864 return 2; 4865 return 0; 4866} 4867_ACEOF 4868rm -f conftest$ac_exeext 4869if { (ac_try="$ac_link" 4870case "(($ac_try" in 4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4872 *) ac_try_echo=$ac_try;; 4873esac 4874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4875 (eval "$ac_link") 2>&5 4876 ac_status=$? 4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4879 { (case "(($ac_try" in 4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4881 *) ac_try_echo=$ac_try;; 4882esac 4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4884 (eval "$ac_try") 2>&5 4885 ac_status=$? 4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); }; }; then 4888 : 4889else 4890 echo "$as_me: program exited with status $ac_status" >&5 4891echo "$as_me: failed program was:" >&5 4892sed 's/^/| /' conftest.$ac_ext >&5 4893 4894( exit $ac_status ) 4895ac_cv_header_stdc=no 4896fi 4897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4898fi 4899 4900 4901fi 4902fi 4903{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4904echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4905if test $ac_cv_header_stdc = yes; then 4906 4907cat >>confdefs.h <<\_ACEOF 4908#define STDC_HEADERS 1 4909_ACEOF 4910 4911fi 4912 4913{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 4914echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 4915if test "${ac_cv_header_sys_wait_h+set}" = set; then 4916 echo $ECHO_N "(cached) $ECHO_C" >&6 4917else 4918 cat >conftest.$ac_ext <<_ACEOF 4919/* confdefs.h. */ 4920_ACEOF 4921cat confdefs.h >>conftest.$ac_ext 4922cat >>conftest.$ac_ext <<_ACEOF 4923/* end confdefs.h. */ 4924#include <sys/types.h> 4925#include <sys/wait.h> 4926#ifndef WEXITSTATUS 4927# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4928#endif 4929#ifndef WIFEXITED 4930# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4931#endif 4932 4933int 4934main () 4935{ 4936 int s; 4937 wait (&s); 4938 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4939 ; 4940 return 0; 4941} 4942_ACEOF 4943rm -f conftest.$ac_objext 4944if { (ac_try="$ac_compile" 4945case "(($ac_try" in 4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4947 *) ac_try_echo=$ac_try;; 4948esac 4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4950 (eval "$ac_compile") 2>conftest.er1 4951 ac_status=$? 4952 grep -v '^ *+' conftest.er1 >conftest.err 4953 rm -f conftest.er1 4954 cat conftest.err >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); } && { 4957 test -z "$ac_c_werror_flag" || 4958 test ! -s conftest.err 4959 } && test -s conftest.$ac_objext; then 4960 ac_cv_header_sys_wait_h=yes 4961else 4962 echo "$as_me: failed program was:" >&5 4963sed 's/^/| /' conftest.$ac_ext >&5 4964 4965 ac_cv_header_sys_wait_h=no 4966fi 4967 4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4969fi 4970{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 4971echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 4972if test $ac_cv_header_sys_wait_h = yes; then 4973 4974cat >>confdefs.h <<\_ACEOF 4975#define HAVE_SYS_WAIT_H 1 4976_ACEOF 4977 4978fi 4979 4980# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4991 inttypes.h stdint.h unistd.h 4992do 4993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4994{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4997 echo $ECHO_N "(cached) $ECHO_C" >&6 4998else 4999 cat >conftest.$ac_ext <<_ACEOF 5000/* confdefs.h. */ 5001_ACEOF 5002cat confdefs.h >>conftest.$ac_ext 5003cat >>conftest.$ac_ext <<_ACEOF 5004/* end confdefs.h. */ 5005$ac_includes_default 5006 5007#include <$ac_header> 5008_ACEOF 5009rm -f conftest.$ac_objext 5010if { (ac_try="$ac_compile" 5011case "(($ac_try" in 5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5013 *) ac_try_echo=$ac_try;; 5014esac 5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5016 (eval "$ac_compile") 2>conftest.er1 5017 ac_status=$? 5018 grep -v '^ *+' conftest.er1 >conftest.err 5019 rm -f conftest.er1 5020 cat conftest.err >&5 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); } && { 5023 test -z "$ac_c_werror_flag" || 5024 test ! -s conftest.err 5025 } && test -s conftest.$ac_objext; then 5026 eval "$as_ac_Header=yes" 5027else 5028 echo "$as_me: failed program was:" >&5 5029sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 eval "$as_ac_Header=no" 5032fi 5033 5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5035fi 5036ac_res=`eval echo '${'$as_ac_Header'}'` 5037 { echo "$as_me:$LINENO: result: $ac_res" >&5 5038echo "${ECHO_T}$ac_res" >&6; } 5039if test `eval echo '${'$as_ac_Header'}'` = yes; then 5040 cat >>confdefs.h <<_ACEOF 5041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5042_ACEOF 5043 5044fi 5045 5046done 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057for ac_header in pthread.h fcntl.h limits.h stdint.h sys/time.h unistd.h sys/vfs.h sys/limits.h 5058do 5059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5061 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5064 echo $ECHO_N "(cached) $ECHO_C" >&6 5065fi 5066ac_res=`eval echo '${'$as_ac_Header'}'` 5067 { echo "$as_me:$LINENO: result: $ac_res" >&5 5068echo "${ECHO_T}$ac_res" >&6; } 5069else 5070 # Is the header compilable? 5071{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5073cat >conftest.$ac_ext <<_ACEOF 5074/* confdefs.h. */ 5075_ACEOF 5076cat confdefs.h >>conftest.$ac_ext 5077cat >>conftest.$ac_ext <<_ACEOF 5078/* end confdefs.h. */ 5079$ac_includes_default 5080#include <$ac_header> 5081_ACEOF 5082rm -f conftest.$ac_objext 5083if { (ac_try="$ac_compile" 5084case "(($ac_try" in 5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5086 *) ac_try_echo=$ac_try;; 5087esac 5088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5089 (eval "$ac_compile") 2>conftest.er1 5090 ac_status=$? 5091 grep -v '^ *+' conftest.er1 >conftest.err 5092 rm -f conftest.er1 5093 cat conftest.err >&5 5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 (exit $ac_status); } && { 5096 test -z "$ac_c_werror_flag" || 5097 test ! -s conftest.err 5098 } && test -s conftest.$ac_objext; then 5099 ac_header_compiler=yes 5100else 5101 echo "$as_me: failed program was:" >&5 5102sed 's/^/| /' conftest.$ac_ext >&5 5103 5104 ac_header_compiler=no 5105fi 5106 5107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5108{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5109echo "${ECHO_T}$ac_header_compiler" >&6; } 5110 5111# Is the header present? 5112{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5114cat >conftest.$ac_ext <<_ACEOF 5115/* confdefs.h. */ 5116_ACEOF 5117cat confdefs.h >>conftest.$ac_ext 5118cat >>conftest.$ac_ext <<_ACEOF 5119/* end confdefs.h. */ 5120#include <$ac_header> 5121_ACEOF 5122if { (ac_try="$ac_cpp conftest.$ac_ext" 5123case "(($ac_try" in 5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5125 *) ac_try_echo=$ac_try;; 5126esac 5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5129 ac_status=$? 5130 grep -v '^ *+' conftest.er1 >conftest.err 5131 rm -f conftest.er1 5132 cat conftest.err >&5 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); } >/dev/null && { 5135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5136 test ! -s conftest.err 5137 }; then 5138 ac_header_preproc=yes 5139else 5140 echo "$as_me: failed program was:" >&5 5141sed 's/^/| /' conftest.$ac_ext >&5 5142 5143 ac_header_preproc=no 5144fi 5145 5146rm -f conftest.err conftest.$ac_ext 5147{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5148echo "${ECHO_T}$ac_header_preproc" >&6; } 5149 5150# So? What about this header? 5151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5152 yes:no: ) 5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5157 ac_header_preproc=yes 5158 ;; 5159 no:yes:* ) 5160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5163echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5167echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5172 5173 ;; 5174esac 5175{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5178 echo $ECHO_N "(cached) $ECHO_C" >&6 5179else 5180 eval "$as_ac_Header=\$ac_header_preproc" 5181fi 5182ac_res=`eval echo '${'$as_ac_Header'}'` 5183 { echo "$as_me:$LINENO: result: $ac_res" >&5 5184echo "${ECHO_T}$ac_res" >&6; } 5185 5186fi 5187if test `eval echo '${'$as_ac_Header'}'` = yes; then 5188 cat >>confdefs.h <<_ACEOF 5189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5190_ACEOF 5191 5192fi 5193 5194done 5195 5196 5197{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5198echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5199if test "${ac_cv_c_const+set}" = set; then 5200 echo $ECHO_N "(cached) $ECHO_C" >&6 5201else 5202 cat >conftest.$ac_ext <<_ACEOF 5203/* confdefs.h. */ 5204_ACEOF 5205cat confdefs.h >>conftest.$ac_ext 5206cat >>conftest.$ac_ext <<_ACEOF 5207/* end confdefs.h. */ 5208 5209int 5210main () 5211{ 5212/* FIXME: Include the comments suggested by Paul. */ 5213#ifndef __cplusplus 5214 /* Ultrix mips cc rejects this. */ 5215 typedef int charset[2]; 5216 const charset cs; 5217 /* SunOS 4.1.1 cc rejects this. */ 5218 char const *const *pcpcc; 5219 char **ppc; 5220 /* NEC SVR4.0.2 mips cc rejects this. */ 5221 struct point {int x, y;}; 5222 static struct point const zero = {0,0}; 5223 /* AIX XL C 1.02.0.0 rejects this. 5224 It does not let you subtract one const X* pointer from another in 5225 an arm of an if-expression whose if-part is not a constant 5226 expression */ 5227 const char *g = "string"; 5228 pcpcc = &g + (g ? g-g : 0); 5229 /* HPUX 7.0 cc rejects these. */ 5230 ++pcpcc; 5231 ppc = (char**) pcpcc; 5232 pcpcc = (char const *const *) ppc; 5233 { /* SCO 3.2v4 cc rejects this. */ 5234 char *t; 5235 char const *s = 0 ? (char *) 0 : (char const *) 0; 5236 5237 *t++ = 0; 5238 if (s) return 0; 5239 } 5240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5241 int x[] = {25, 17}; 5242 const int *foo = &x[0]; 5243 ++foo; 5244 } 5245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5246 typedef const int *iptr; 5247 iptr p = 0; 5248 ++p; 5249 } 5250 { /* AIX XL C 1.02.0.0 rejects this saying 5251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5252 struct s { int j; const int *ap[3]; }; 5253 struct s *b; b->j = 5; 5254 } 5255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5256 const int foo = 10; 5257 if (!foo) return 0; 5258 } 5259 return !cs[0] && !zero.x; 5260#endif 5261 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266rm -f conftest.$ac_objext 5267if { (ac_try="$ac_compile" 5268case "(($ac_try" in 5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5270 *) ac_try_echo=$ac_try;; 5271esac 5272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5273 (eval "$ac_compile") 2>conftest.er1 5274 ac_status=$? 5275 grep -v '^ *+' conftest.er1 >conftest.err 5276 rm -f conftest.er1 5277 cat conftest.err >&5 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 (exit $ac_status); } && { 5280 test -z "$ac_c_werror_flag" || 5281 test ! -s conftest.err 5282 } && test -s conftest.$ac_objext; then 5283 ac_cv_c_const=yes 5284else 5285 echo "$as_me: failed program was:" >&5 5286sed 's/^/| /' conftest.$ac_ext >&5 5287 5288 ac_cv_c_const=no 5289fi 5290 5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5292fi 5293{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5294echo "${ECHO_T}$ac_cv_c_const" >&6; } 5295if test $ac_cv_c_const = no; then 5296 5297cat >>confdefs.h <<\_ACEOF 5298#define const 5299_ACEOF 5300 5301fi 5302 5303{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5304echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 5305if test "${ac_cv_header_time+set}" = set; then 5306 echo $ECHO_N "(cached) $ECHO_C" >&6 5307else 5308 cat >conftest.$ac_ext <<_ACEOF 5309/* confdefs.h. */ 5310_ACEOF 5311cat confdefs.h >>conftest.$ac_ext 5312cat >>conftest.$ac_ext <<_ACEOF 5313/* end confdefs.h. */ 5314#include <sys/types.h> 5315#include <sys/time.h> 5316#include <time.h> 5317 5318int 5319main () 5320{ 5321if ((struct tm *) 0) 5322return 0; 5323 ; 5324 return 0; 5325} 5326_ACEOF 5327rm -f conftest.$ac_objext 5328if { (ac_try="$ac_compile" 5329case "(($ac_try" in 5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5331 *) ac_try_echo=$ac_try;; 5332esac 5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5334 (eval "$ac_compile") 2>conftest.er1 5335 ac_status=$? 5336 grep -v '^ *+' conftest.er1 >conftest.err 5337 rm -f conftest.er1 5338 cat conftest.err >&5 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); } && { 5341 test -z "$ac_c_werror_flag" || 5342 test ! -s conftest.err 5343 } && test -s conftest.$ac_objext; then 5344 ac_cv_header_time=yes 5345else 5346 echo "$as_me: failed program was:" >&5 5347sed 's/^/| /' conftest.$ac_ext >&5 5348 5349 ac_cv_header_time=no 5350fi 5351 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5353fi 5354{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5355echo "${ECHO_T}$ac_cv_header_time" >&6; } 5356if test $ac_cv_header_time = yes; then 5357 5358cat >>confdefs.h <<\_ACEOF 5359#define TIME_WITH_SYS_TIME 1 5360_ACEOF 5361 5362fi 5363 5364 5365{ echo "$as_me:$LINENO: checking for function prototypes" >&5 5366echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } 5367if test "$ac_cv_prog_cc_c89" != no; then 5368 { echo "$as_me:$LINENO: result: yes" >&5 5369echo "${ECHO_T}yes" >&6; } 5370 5371cat >>confdefs.h <<\_ACEOF 5372#define PROTOTYPES 1 5373_ACEOF 5374 5375 5376cat >>confdefs.h <<\_ACEOF 5377#define __PROTOTYPES 1 5378_ACEOF 5379 5380else 5381 { echo "$as_me:$LINENO: result: no" >&5 5382echo "${ECHO_T}no" >&6; } 5383fi 5384 5385{ echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 5386echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; } 5387if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 5388 echo $ECHO_N "(cached) $ECHO_C" >&6 5389else 5390 ac_cv_func_setvbuf_reversed=no 5391 cat >conftest.$ac_ext <<_ACEOF 5392/* confdefs.h. */ 5393_ACEOF 5394cat confdefs.h >>conftest.$ac_ext 5395cat >>conftest.$ac_ext <<_ACEOF 5396/* end confdefs.h. */ 5397#include <stdio.h> 5398# ifdef PROTOTYPES 5399 int (setvbuf) (FILE *, int, char *, size_t); 5400# endif 5401int 5402main () 5403{ 5404char buf; return setvbuf (stdout, _IOLBF, &buf, 1); 5405 ; 5406 return 0; 5407} 5408_ACEOF 5409rm -f conftest.$ac_objext conftest$ac_exeext 5410if { (ac_try="$ac_link" 5411case "(($ac_try" in 5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5413 *) ac_try_echo=$ac_try;; 5414esac 5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5416 (eval "$ac_link") 2>conftest.er1 5417 ac_status=$? 5418 grep -v '^ *+' conftest.er1 >conftest.err 5419 rm -f conftest.er1 5420 cat conftest.err >&5 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5422 (exit $ac_status); } && { 5423 test -z "$ac_c_werror_flag" || 5424 test ! -s conftest.err 5425 } && test -s conftest$ac_exeext && 5426 $as_test_x conftest$ac_exeext; then 5427 cat >conftest.$ac_ext <<_ACEOF 5428/* confdefs.h. */ 5429_ACEOF 5430cat confdefs.h >>conftest.$ac_ext 5431cat >>conftest.$ac_ext <<_ACEOF 5432/* end confdefs.h. */ 5433#include <stdio.h> 5434# ifdef PROTOTYPES 5435 int (setvbuf) (FILE *, int, char *, size_t); 5436# endif 5437int 5438main () 5439{ 5440char buf; return setvbuf (stdout, &buf, _IOLBF, 1); 5441 ; 5442 return 0; 5443} 5444_ACEOF 5445rm -f conftest.$ac_objext conftest$ac_exeext 5446if { (ac_try="$ac_link" 5447case "(($ac_try" in 5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5449 *) ac_try_echo=$ac_try;; 5450esac 5451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5452 (eval "$ac_link") 2>conftest.er1 5453 ac_status=$? 5454 grep -v '^ *+' conftest.er1 >conftest.err 5455 rm -f conftest.er1 5456 cat conftest.err >&5 5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5458 (exit $ac_status); } && { 5459 test -z "$ac_c_werror_flag" || 5460 test ! -s conftest.err 5461 } && test -s conftest$ac_exeext && 5462 $as_test_x conftest$ac_exeext; then 5463 # It compiles and links either way, so it must not be declared 5464 # with a prototype and most likely this is a K&R C compiler. 5465 # Try running it. 5466 if test "$cross_compiling" = yes; then 5467 : # Assume setvbuf is not reversed when cross-compiling. 5468else 5469 cat >conftest.$ac_ext <<_ACEOF 5470/* confdefs.h. */ 5471_ACEOF 5472cat confdefs.h >>conftest.$ac_ext 5473cat >>conftest.$ac_ext <<_ACEOF 5474/* end confdefs.h. */ 5475$ac_includes_default 5476int 5477main () 5478{ 5479/* This call has the arguments reversed. 5480 A reversed system may check and see that the address of buf 5481 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 5482 char buf; 5483 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) 5484 return 1; 5485 putchar ('\r'); 5486 return 0; /* Non-reversed systems SEGV here. */ 5487 ; 5488 return 0; 5489} 5490_ACEOF 5491rm -f conftest$ac_exeext 5492if { (ac_try="$ac_link" 5493case "(($ac_try" in 5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5495 *) ac_try_echo=$ac_try;; 5496esac 5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5498 (eval "$ac_link") 2>&5 5499 ac_status=$? 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5502 { (case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505esac 5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5507 (eval "$ac_try") 2>&5 5508 ac_status=$? 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); }; }; then 5511 ac_cv_func_setvbuf_reversed=yes 5512else 5513 echo "$as_me: program exited with status $ac_status" >&5 5514echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517fi 5518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5519fi 5520 5521 5522 ac_cv_func_setvbuf_reversed=yes 5523else 5524 echo "$as_me: failed program was:" >&5 5525sed 's/^/| /' conftest.$ac_ext >&5 5526 5527 5528fi 5529 5530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5531 conftest$ac_exeext conftest.$ac_ext 5532else 5533 echo "$as_me: failed program was:" >&5 5534sed 's/^/| /' conftest.$ac_ext >&5 5535 5536 5537fi 5538 5539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5540 conftest$ac_exeext conftest.$ac_ext 5541fi 5542{ echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 5543echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; } 5544if test $ac_cv_func_setvbuf_reversed = yes; then 5545 5546cat >>confdefs.h <<\_ACEOF 5547#define SETVBUF_REVERSED 1 5548_ACEOF 5549 5550fi 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561for ac_func in system gettimeofday mkdir strerror open64 stat64 fseeko64 lrand48_r srand48_r 5562do 5563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5564{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5566if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5567 echo $ECHO_N "(cached) $ECHO_C" >&6 5568else 5569 cat >conftest.$ac_ext <<_ACEOF 5570/* confdefs.h. */ 5571_ACEOF 5572cat confdefs.h >>conftest.$ac_ext 5573cat >>conftest.$ac_ext <<_ACEOF 5574/* end confdefs.h. */ 5575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5576 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5577#define $ac_func innocuous_$ac_func 5578 5579/* System header to define __stub macros and hopefully few prototypes, 5580 which can conflict with char $ac_func (); below. 5581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5582 <limits.h> exists even on freestanding compilers. */ 5583 5584#ifdef __STDC__ 5585# include <limits.h> 5586#else 5587# include <assert.h> 5588#endif 5589 5590#undef $ac_func 5591 5592/* Override any GCC internal prototype to avoid an error. 5593 Use char because int might match the return type of a GCC 5594 builtin and then its argument prototype would still apply. */ 5595#ifdef __cplusplus 5596extern "C" 5597#endif 5598char $ac_func (); 5599/* The GNU C library defines this for functions which it implements 5600 to always fail with ENOSYS. Some functions are actually named 5601 something starting with __ and the normal name is an alias. */ 5602#if defined __stub_$ac_func || defined __stub___$ac_func 5603choke me 5604#endif 5605 5606int 5607main () 5608{ 5609return $ac_func (); 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614rm -f conftest.$ac_objext conftest$ac_exeext 5615if { (ac_try="$ac_link" 5616case "(($ac_try" in 5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5618 *) ac_try_echo=$ac_try;; 5619esac 5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5621 (eval "$ac_link") 2>conftest.er1 5622 ac_status=$? 5623 grep -v '^ *+' conftest.er1 >conftest.err 5624 rm -f conftest.er1 5625 cat conftest.err >&5 5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5627 (exit $ac_status); } && { 5628 test -z "$ac_c_werror_flag" || 5629 test ! -s conftest.err 5630 } && test -s conftest$ac_exeext && 5631 $as_test_x conftest$ac_exeext; then 5632 eval "$as_ac_var=yes" 5633else 5634 echo "$as_me: failed program was:" >&5 5635sed 's/^/| /' conftest.$ac_ext >&5 5636 5637 eval "$as_ac_var=no" 5638fi 5639 5640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5641 conftest$ac_exeext conftest.$ac_ext 5642fi 5643ac_res=`eval echo '${'$as_ac_var'}'` 5644 { echo "$as_me:$LINENO: result: $ac_res" >&5 5645echo "${ECHO_T}$ac_res" >&6; } 5646if test `eval echo '${'$as_ac_var'}'` = yes; then 5647 cat >>confdefs.h <<_ACEOF 5648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5649_ACEOF 5650 5651fi 5652done 5653 5654 5655 5656 5657ac_config_files="$ac_config_files Makefile" 5658 5659ac_config_commands="$ac_config_commands default" 5660 5661cat >confcache <<\_ACEOF 5662# This file is a shell script that caches the results of configure 5663# tests run on this system so they can be shared between configure 5664# scripts and configure runs, see configure's option --config-cache. 5665# It is not useful on other systems. If it contains results you don't 5666# want to keep, you may remove or edit it. 5667# 5668# config.status only pays attention to the cache file if you give it 5669# the --recheck option to rerun configure. 5670# 5671# `ac_cv_env_foo' variables (set or unset) will be overridden when 5672# loading this file, other *unset* `ac_cv_foo' will be assigned the 5673# following values. 5674 5675_ACEOF 5676 5677# The following way of writing the cache mishandles newlines in values, 5678# but we know of no workaround that is simple, portable, and efficient. 5679# So, we kill variables containing newlines. 5680# Ultrix sh set writes to stderr and can't be redirected directly, 5681# and sets the high bit in the cache file unless we assign to the vars. 5682( 5683 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5684 eval ac_val=\$$ac_var 5685 case $ac_val in #( 5686 *${as_nl}*) 5687 case $ac_var in #( 5688 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 5689echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 5690 esac 5691 case $ac_var in #( 5692 _ | IFS | as_nl) ;; #( 5693 *) $as_unset $ac_var ;; 5694 esac ;; 5695 esac 5696 done 5697 5698 (set) 2>&1 | 5699 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5700 *${as_nl}ac_space=\ *) 5701 # `set' does not quote correctly, so add quotes (double-quote 5702 # substitution turns \\\\ into \\, and sed turns \\ into \). 5703 sed -n \ 5704 "s/'/'\\\\''/g; 5705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5706 ;; #( 5707 *) 5708 # `set' quotes correctly as required by POSIX, so do not add quotes. 5709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5710 ;; 5711 esac | 5712 sort 5713) | 5714 sed ' 5715 /^ac_cv_env_/b end 5716 t clear 5717 :clear 5718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5719 t end 5720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5721 :end' >>confcache 5722if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5723 if test -w "$cache_file"; then 5724 test "x$cache_file" != "x/dev/null" && 5725 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 5726echo "$as_me: updating cache $cache_file" >&6;} 5727 cat confcache >$cache_file 5728 else 5729 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 5730echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5731 fi 5732fi 5733rm -f confcache 5734 5735test "x$prefix" = xNONE && prefix=$ac_default_prefix 5736# Let make expand exec_prefix. 5737test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5738 5739DEFS=-DHAVE_CONFIG_H 5740 5741ac_libobjs= 5742ac_ltlibobjs= 5743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5744 # 1. Remove the extension, and $U if already installed. 5745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5746 ac_i=`echo "$ac_i" | sed "$ac_script"` 5747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5748 # will be set to the directory where LIBOBJS objects are built. 5749 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5750 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 5751done 5752LIBOBJS=$ac_libobjs 5753 5754LTLIBOBJS=$ac_ltlibobjs 5755 5756 5757if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5758 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 5759Usually this means the macro was only invoked conditionally." >&5 5760echo "$as_me: error: conditional \"AMDEP\" was never defined. 5761Usually this means the macro was only invoked conditionally." >&2;} 5762 { (exit 1); exit 1; }; } 5763fi 5764if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5765 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 5766Usually this means the macro was only invoked conditionally." >&5 5767echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 5768Usually this means the macro was only invoked conditionally." >&2;} 5769 { (exit 1); exit 1; }; } 5770fi 5771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5772 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 5773Usually this means the macro was only invoked conditionally." >&5 5774echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 5775Usually this means the macro was only invoked conditionally." >&2;} 5776 { (exit 1); exit 1; }; } 5777fi 5778 5779: ${CONFIG_STATUS=./config.status} 5780ac_clean_files_save=$ac_clean_files 5781ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5782{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5783echo "$as_me: creating $CONFIG_STATUS" >&6;} 5784cat >$CONFIG_STATUS <<_ACEOF 5785#! $SHELL 5786# Generated by $as_me. 5787# Run this file to recreate the current configuration. 5788# Compiler output produced by configure, useful for debugging 5789# configure, is in config.log if it exists. 5790 5791debug=false 5792ac_cs_recheck=false 5793ac_cs_silent=false 5794SHELL=\${CONFIG_SHELL-$SHELL} 5795_ACEOF 5796 5797cat >>$CONFIG_STATUS <<\_ACEOF 5798## --------------------- ## 5799## M4sh Initialization. ## 5800## --------------------- ## 5801 5802# Be more Bourne compatible 5803DUALCASE=1; export DUALCASE # for MKS sh 5804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5805 emulate sh 5806 NULLCMD=: 5807 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5808 # is contrary to our usage. Disable this feature. 5809 alias -g '${1+"$@"}'='"$@"' 5810 setopt NO_GLOB_SUBST 5811else 5812 case `(set -o) 2>/dev/null` in 5813 *posix*) set -o posix ;; 5814esac 5815 5816fi 5817 5818 5819 5820 5821# PATH needs CR 5822# Avoid depending upon Character Ranges. 5823as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5824as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5825as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5826as_cr_digits='0123456789' 5827as_cr_alnum=$as_cr_Letters$as_cr_digits 5828 5829# The user is always right. 5830if test "${PATH_SEPARATOR+set}" != set; then 5831 echo "#! /bin/sh" >conf$$.sh 5832 echo "exit 0" >>conf$$.sh 5833 chmod +x conf$$.sh 5834 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5835 PATH_SEPARATOR=';' 5836 else 5837 PATH_SEPARATOR=: 5838 fi 5839 rm -f conf$$.sh 5840fi 5841 5842# Support unset when possible. 5843if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5844 as_unset=unset 5845else 5846 as_unset=false 5847fi 5848 5849 5850# IFS 5851# We need space, tab and new line, in precisely that order. Quoting is 5852# there to prevent editors from complaining about space-tab. 5853# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5854# splitting by setting IFS to empty value.) 5855as_nl=' 5856' 5857IFS=" "" $as_nl" 5858 5859# Find who we are. Look in the path if we contain no directory separator. 5860case $0 in 5861 *[\\/]* ) as_myself=$0 ;; 5862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 test -z "$as_dir" && as_dir=. 5867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5868done 5869IFS=$as_save_IFS 5870 5871 ;; 5872esac 5873# We did not find ourselves, most probably we were run as `sh COMMAND' 5874# in which case we are not to be found in the path. 5875if test "x$as_myself" = x; then 5876 as_myself=$0 5877fi 5878if test ! -f "$as_myself"; then 5879 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5880 { (exit 1); exit 1; } 5881fi 5882 5883# Work around bugs in pre-3.0 UWIN ksh. 5884for as_var in ENV MAIL MAILPATH 5885do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5886done 5887PS1='$ ' 5888PS2='> ' 5889PS4='+ ' 5890 5891# NLS nuisances. 5892for as_var in \ 5893 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5894 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5895 LC_TELEPHONE LC_TIME 5896do 5897 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5898 eval $as_var=C; export $as_var 5899 else 5900 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5901 fi 5902done 5903 5904# Required to use basename. 5905if expr a : '\(a\)' >/dev/null 2>&1 && 5906 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5907 as_expr=expr 5908else 5909 as_expr=false 5910fi 5911 5912if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5913 as_basename=basename 5914else 5915 as_basename=false 5916fi 5917 5918 5919# Name of the executable. 5920as_me=`$as_basename -- "$0" || 5921$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5922 X"$0" : 'X\(//\)$' \| \ 5923 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5924echo X/"$0" | 5925 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5926 s//\1/ 5927 q 5928 } 5929 /^X\/\(\/\/\)$/{ 5930 s//\1/ 5931 q 5932 } 5933 /^X\/\(\/\).*/{ 5934 s//\1/ 5935 q 5936 } 5937 s/.*/./; q'` 5938 5939# CDPATH. 5940$as_unset CDPATH 5941 5942 5943 5944 as_lineno_1=$LINENO 5945 as_lineno_2=$LINENO 5946 test "x$as_lineno_1" != "x$as_lineno_2" && 5947 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 5948 5949 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5950 # uniformly replaced by the line number. The first 'sed' inserts a 5951 # line-number line after each line using $LINENO; the second 'sed' 5952 # does the real work. The second script uses 'N' to pair each 5953 # line-number line with the line containing $LINENO, and appends 5954 # trailing '-' during substitution so that $LINENO is not a special 5955 # case at line end. 5956 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5957 # scripts with optimization help from Paolo Bonzini. Blame Lee 5958 # E. McMahon (1931-1989) for sed's syntax. :-) 5959 sed -n ' 5960 p 5961 /[$]LINENO/= 5962 ' <$as_myself | 5963 sed ' 5964 s/[$]LINENO.*/&-/ 5965 t lineno 5966 b 5967 :lineno 5968 N 5969 :loop 5970 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 5971 t loop 5972 s/-\n.*// 5973 ' >$as_me.lineno && 5974 chmod +x "$as_me.lineno" || 5975 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 5976 { (exit 1); exit 1; }; } 5977 5978 # Don't try to exec as it changes $[0], causing all sort of problems 5979 # (the dirname of $[0] is not the place where we might find the 5980 # original and so on. Autoconf is especially sensitive to this). 5981 . "./$as_me.lineno" 5982 # Exit status is that of the last command. 5983 exit 5984} 5985 5986 5987if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5988 as_dirname=dirname 5989else 5990 as_dirname=false 5991fi 5992 5993ECHO_C= ECHO_N= ECHO_T= 5994case `echo -n x` in 5995-n*) 5996 case `echo 'x\c'` in 5997 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5998 *) ECHO_C='\c';; 5999 esac;; 6000*) 6001 ECHO_N='-n';; 6002esac 6003 6004if expr a : '\(a\)' >/dev/null 2>&1 && 6005 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6006 as_expr=expr 6007else 6008 as_expr=false 6009fi 6010 6011rm -f conf$$ conf$$.exe conf$$.file 6012if test -d conf$$.dir; then 6013 rm -f conf$$.dir/conf$$.file 6014else 6015 rm -f conf$$.dir 6016 mkdir conf$$.dir 6017fi 6018echo >conf$$.file 6019if ln -s conf$$.file conf$$ 2>/dev/null; then 6020 as_ln_s='ln -s' 6021 # ... but there are two gotchas: 6022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6024 # In both cases, we have to default to `cp -p'. 6025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6026 as_ln_s='cp -p' 6027elif ln conf$$.file conf$$ 2>/dev/null; then 6028 as_ln_s=ln 6029else 6030 as_ln_s='cp -p' 6031fi 6032rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6033rmdir conf$$.dir 2>/dev/null 6034 6035if mkdir -p . 2>/dev/null; then 6036 as_mkdir_p=: 6037else 6038 test -d ./-p && rmdir ./-p 6039 as_mkdir_p=false 6040fi 6041 6042if test -x / >/dev/null 2>&1; then 6043 as_test_x='test -x' 6044else 6045 if ls -dL / >/dev/null 2>&1; then 6046 as_ls_L_option=L 6047 else 6048 as_ls_L_option= 6049 fi 6050 as_test_x=' 6051 eval sh -c '\'' 6052 if test -d "$1"; then 6053 test -d "$1/."; 6054 else 6055 case $1 in 6056 -*)set "./$1";; 6057 esac; 6058 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 6059 ???[sx]*):;;*)false;;esac;fi 6060 '\'' sh 6061 ' 6062fi 6063as_executable_p=$as_test_x 6064 6065# Sed expression to map a string onto a valid CPP name. 6066as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6067 6068# Sed expression to map a string onto a valid variable name. 6069as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6070 6071 6072exec 6>&1 6073 6074# Save the log message, to keep $[0] and so on meaningful, and to 6075# report actual input values of CONFIG_FILES etc. instead of their 6076# values after options handling. 6077ac_log=" 6078This file was extended by $as_me, which was 6079generated by GNU Autoconf 2.61. Invocation command line was 6080 6081 CONFIG_FILES = $CONFIG_FILES 6082 CONFIG_HEADERS = $CONFIG_HEADERS 6083 CONFIG_LINKS = $CONFIG_LINKS 6084 CONFIG_COMMANDS = $CONFIG_COMMANDS 6085 $ $0 $@ 6086 6087on `(hostname || uname -n) 2>/dev/null | sed 1q` 6088" 6089 6090_ACEOF 6091 6092cat >>$CONFIG_STATUS <<_ACEOF 6093# Files that config.status was made for. 6094config_files="$ac_config_files" 6095config_headers="$ac_config_headers" 6096config_commands="$ac_config_commands" 6097 6098_ACEOF 6099 6100cat >>$CONFIG_STATUS <<\_ACEOF 6101ac_cs_usage="\ 6102\`$as_me' instantiates files from templates according to the 6103current configuration. 6104 6105Usage: $0 [OPTIONS] [FILE]... 6106 6107 -h, --help print this help, then exit 6108 -V, --version print version number and configuration settings, then exit 6109 -q, --quiet do not print progress messages 6110 -d, --debug don't remove temporary files 6111 --recheck update $as_me by reconfiguring in the same conditions 6112 --file=FILE[:TEMPLATE] 6113 instantiate the configuration file FILE 6114 --header=FILE[:TEMPLATE] 6115 instantiate the configuration header FILE 6116 6117Configuration files: 6118$config_files 6119 6120Configuration headers: 6121$config_headers 6122 6123Configuration commands: 6124$config_commands 6125 6126Report bugs to <bug-autoconf@gnu.org>." 6127 6128_ACEOF 6129cat >>$CONFIG_STATUS <<_ACEOF 6130ac_cs_version="\\ 6131config.status 6132configured by $0, generated by GNU Autoconf 2.61, 6133 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 6134 6135Copyright (C) 2006 Free Software Foundation, Inc. 6136This config.status script is free software; the Free Software Foundation 6137gives unlimited permission to copy, distribute and modify it." 6138 6139ac_pwd='$ac_pwd' 6140srcdir='$srcdir' 6141INSTALL='$INSTALL' 6142MKDIR_P='$MKDIR_P' 6143_ACEOF 6144 6145cat >>$CONFIG_STATUS <<\_ACEOF 6146# If no file are specified by the user, then we need to provide default 6147# value. By we need to know if files were specified by the user. 6148ac_need_defaults=: 6149while test $# != 0 6150do 6151 case $1 in 6152 --*=*) 6153 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6155 ac_shift=: 6156 ;; 6157 *) 6158 ac_option=$1 6159 ac_optarg=$2 6160 ac_shift=shift 6161 ;; 6162 esac 6163 6164 case $ac_option in 6165 # Handling of the options. 6166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6167 ac_cs_recheck=: ;; 6168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6169 echo "$ac_cs_version"; exit ;; 6170 --debug | --debu | --deb | --de | --d | -d ) 6171 debug=: ;; 6172 --file | --fil | --fi | --f ) 6173 $ac_shift 6174 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6175 ac_need_defaults=false;; 6176 --header | --heade | --head | --hea ) 6177 $ac_shift 6178 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6179 ac_need_defaults=false;; 6180 --he | --h) 6181 # Conflict between --help and --header 6182 { echo "$as_me: error: ambiguous option: $1 6183Try \`$0 --help' for more information." >&2 6184 { (exit 1); exit 1; }; };; 6185 --help | --hel | -h ) 6186 echo "$ac_cs_usage"; exit ;; 6187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6188 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6189 ac_cs_silent=: ;; 6190 6191 # This is an error. 6192 -*) { echo "$as_me: error: unrecognized option: $1 6193Try \`$0 --help' for more information." >&2 6194 { (exit 1); exit 1; }; } ;; 6195 6196 *) ac_config_targets="$ac_config_targets $1" 6197 ac_need_defaults=false ;; 6198 6199 esac 6200 shift 6201done 6202 6203ac_configure_extra_args= 6204 6205if $ac_cs_silent; then 6206 exec 6>/dev/null 6207 ac_configure_extra_args="$ac_configure_extra_args --silent" 6208fi 6209 6210_ACEOF 6211cat >>$CONFIG_STATUS <<_ACEOF 6212if \$ac_cs_recheck; then 6213 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6214 CONFIG_SHELL=$SHELL 6215 export CONFIG_SHELL 6216 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6217fi 6218 6219_ACEOF 6220cat >>$CONFIG_STATUS <<\_ACEOF 6221exec 5>>config.log 6222{ 6223 echo 6224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6225## Running $as_me. ## 6226_ASBOX 6227 echo "$ac_log" 6228} >&5 6229 6230_ACEOF 6231cat >>$CONFIG_STATUS <<_ACEOF 6232# 6233# INIT-COMMANDS 6234# 6235AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6236 6237_ACEOF 6238 6239cat >>$CONFIG_STATUS <<\_ACEOF 6240 6241# Handling of arguments. 6242for ac_config_target in $ac_config_targets 6243do 6244 case $ac_config_target in 6245 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6246 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6248 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 6249 6250 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6251echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6252 { (exit 1); exit 1; }; };; 6253 esac 6254done 6255 6256 6257# If the user did not use the arguments to specify the items to instantiate, 6258# then the envvar interface is used. Set only those that are not. 6259# We use the long form for the default assignment because of an extremely 6260# bizarre bug on SunOS 4.1.3. 6261if $ac_need_defaults; then 6262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6265fi 6266 6267# Have a temporary directory for convenience. Make it in the build tree 6268# simply because there is no reason against having it here, and in addition, 6269# creating and moving files from /tmp can sometimes cause problems. 6270# Hook for its removal unless debugging. 6271# Note that there is a small window in which the directory will not be cleaned: 6272# after its creation but before its name has been assigned to `$tmp'. 6273$debug || 6274{ 6275 tmp= 6276 trap 'exit_status=$? 6277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6278' 0 6279 trap '{ (exit 1); exit 1; }' 1 2 13 15 6280} 6281# Create a (secure) tmp directory for tmp files. 6282 6283{ 6284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6285 test -n "$tmp" && test -d "$tmp" 6286} || 6287{ 6288 tmp=./conf$$-$RANDOM 6289 (umask 077 && mkdir "$tmp") 6290} || 6291{ 6292 echo "$me: cannot create a temporary directory in ." >&2 6293 { (exit 1); exit 1; } 6294} 6295 6296# 6297# Set up the sed scripts for CONFIG_FILES section. 6298# 6299 6300# No need to generate the scripts if there are no CONFIG_FILES. 6301# This happens for instance when ./config.status config.h 6302if test -n "$CONFIG_FILES"; then 6303 6304_ACEOF 6305 6306 6307 6308ac_delim='%!_!# ' 6309for ac_last_try in false false false false false :; do 6310 cat >conf$$subs.sed <<_ACEOF 6311SHELL!$SHELL$ac_delim 6312PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 6313PACKAGE_NAME!$PACKAGE_NAME$ac_delim 6314PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 6315PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 6316PACKAGE_STRING!$PACKAGE_STRING$ac_delim 6317PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 6318exec_prefix!$exec_prefix$ac_delim 6319prefix!$prefix$ac_delim 6320program_transform_name!$program_transform_name$ac_delim 6321bindir!$bindir$ac_delim 6322sbindir!$sbindir$ac_delim 6323libexecdir!$libexecdir$ac_delim 6324datarootdir!$datarootdir$ac_delim 6325datadir!$datadir$ac_delim 6326sysconfdir!$sysconfdir$ac_delim 6327sharedstatedir!$sharedstatedir$ac_delim 6328localstatedir!$localstatedir$ac_delim 6329includedir!$includedir$ac_delim 6330oldincludedir!$oldincludedir$ac_delim 6331docdir!$docdir$ac_delim 6332infodir!$infodir$ac_delim 6333htmldir!$htmldir$ac_delim 6334dvidir!$dvidir$ac_delim 6335pdfdir!$pdfdir$ac_delim 6336psdir!$psdir$ac_delim 6337libdir!$libdir$ac_delim 6338localedir!$localedir$ac_delim 6339mandir!$mandir$ac_delim 6340DEFS!$DEFS$ac_delim 6341ECHO_C!$ECHO_C$ac_delim 6342ECHO_N!$ECHO_N$ac_delim 6343ECHO_T!$ECHO_T$ac_delim 6344LIBS!$LIBS$ac_delim 6345build_alias!$build_alias$ac_delim 6346host_alias!$host_alias$ac_delim 6347target_alias!$target_alias$ac_delim 6348INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 6349INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 6350INSTALL_DATA!$INSTALL_DATA$ac_delim 6351am__isrc!$am__isrc$ac_delim 6352CYGPATH_W!$CYGPATH_W$ac_delim 6353PACKAGE!$PACKAGE$ac_delim 6354VERSION!$VERSION$ac_delim 6355ACLOCAL!$ACLOCAL$ac_delim 6356AUTOCONF!$AUTOCONF$ac_delim 6357AUTOMAKE!$AUTOMAKE$ac_delim 6358AUTOHEADER!$AUTOHEADER$ac_delim 6359MAKEINFO!$MAKEINFO$ac_delim 6360install_sh!$install_sh$ac_delim 6361STRIP!$STRIP$ac_delim 6362INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 6363mkdir_p!$mkdir_p$ac_delim 6364AWK!$AWK$ac_delim 6365SET_MAKE!$SET_MAKE$ac_delim 6366am__leading_dot!$am__leading_dot$ac_delim 6367AMTAR!$AMTAR$ac_delim 6368am__tar!$am__tar$ac_delim 6369am__untar!$am__untar$ac_delim 6370build!$build$ac_delim 6371build_cpu!$build_cpu$ac_delim 6372build_vendor!$build_vendor$ac_delim 6373build_os!$build_os$ac_delim 6374host!$host$ac_delim 6375host_cpu!$host_cpu$ac_delim 6376host_vendor!$host_vendor$ac_delim 6377host_os!$host_os$ac_delim 6378CC!$CC$ac_delim 6379CFLAGS!$CFLAGS$ac_delim 6380LDFLAGS!$LDFLAGS$ac_delim 6381CPPFLAGS!$CPPFLAGS$ac_delim 6382ac_ct_CC!$ac_ct_CC$ac_delim 6383EXEEXT!$EXEEXT$ac_delim 6384OBJEXT!$OBJEXT$ac_delim 6385DEPDIR!$DEPDIR$ac_delim 6386am__include!$am__include$ac_delim 6387am__quote!$am__quote$ac_delim 6388AMDEP_TRUE!$AMDEP_TRUE$ac_delim 6389AMDEP_FALSE!$AMDEP_FALSE$ac_delim 6390AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 6391CCDEPMODE!$CCDEPMODE$ac_delim 6392am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 6393am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 6394CPP!$CPP$ac_delim 6395GREP!$GREP$ac_delim 6396EGREP!$EGREP$ac_delim 6397LIBOBJS!$LIBOBJS$ac_delim 6398LTLIBOBJS!$LTLIBOBJS$ac_delim 6399_ACEOF 6400 6401 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then 6402 break 6403 elif $ac_last_try; then 6404 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6405echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6406 { (exit 1); exit 1; }; } 6407 else 6408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6409 fi 6410done 6411 6412ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 6413if test -n "$ac_eof"; then 6414 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 6415 ac_eof=`expr $ac_eof + 1` 6416fi 6417 6418cat >>$CONFIG_STATUS <<_ACEOF 6419cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 6420/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 6421_ACEOF 6422sed ' 6423s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 6424s/^/s,@/; s/!/@,|#_!!_#|/ 6425:n 6426t n 6427s/'"$ac_delim"'$/,g/; t 6428s/$/\\/; p 6429N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 6430' >>$CONFIG_STATUS <conf$$subs.sed 6431rm -f conf$$subs.sed 6432cat >>$CONFIG_STATUS <<_ACEOF 6433:end 6434s/|#_!!_#|//g 6435CEOF$ac_eof 6436_ACEOF 6437 6438 6439# VPATH may cause trouble with some makes, so we remove $(srcdir), 6440# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6441# trailing colons and then remove the whole line if VPATH becomes empty 6442# (actually we leave an empty line to preserve line numbers). 6443if test "x$srcdir" = x.; then 6444 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6445s/:*\$(srcdir):*/:/ 6446s/:*\${srcdir}:*/:/ 6447s/:*@srcdir@:*/:/ 6448s/^\([^=]*=[ ]*\):*/\1/ 6449s/:*$// 6450s/^[^=]*=[ ]*$// 6451}' 6452fi 6453 6454cat >>$CONFIG_STATUS <<\_ACEOF 6455fi # test -n "$CONFIG_FILES" 6456 6457 6458for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 6459do 6460 case $ac_tag in 6461 :[FHLC]) ac_mode=$ac_tag; continue;; 6462 esac 6463 case $ac_mode$ac_tag in 6464 :[FHL]*:*);; 6465 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 6466echo "$as_me: error: Invalid tag $ac_tag." >&2;} 6467 { (exit 1); exit 1; }; };; 6468 :[FH]-) ac_tag=-:-;; 6469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6470 esac 6471 ac_save_IFS=$IFS 6472 IFS=: 6473 set x $ac_tag 6474 IFS=$ac_save_IFS 6475 shift 6476 ac_file=$1 6477 shift 6478 6479 case $ac_mode in 6480 :L) ac_source=$1;; 6481 :[FH]) 6482 ac_file_inputs= 6483 for ac_f 6484 do 6485 case $ac_f in 6486 -) ac_f="$tmp/stdin";; 6487 *) # Look for the file first in the build tree, then in the source tree 6488 # (if the path is not absolute). The absolute path cannot be DOS-style, 6489 # because $ac_f cannot contain `:'. 6490 test -f "$ac_f" || 6491 case $ac_f in 6492 [\\/$]*) false;; 6493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6494 esac || 6495 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 6496echo "$as_me: error: cannot find input file: $ac_f" >&2;} 6497 { (exit 1); exit 1; }; };; 6498 esac 6499 ac_file_inputs="$ac_file_inputs $ac_f" 6500 done 6501 6502 # Let's still pretend it is `configure' which instantiates (i.e., don't 6503 # use $as_me), people would be surprised to read: 6504 # /* config.h. Generated by config.status. */ 6505 configure_input="Generated from "`IFS=: 6506 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 6507 if test x"$ac_file" != x-; then 6508 configure_input="$ac_file. $configure_input" 6509 { echo "$as_me:$LINENO: creating $ac_file" >&5 6510echo "$as_me: creating $ac_file" >&6;} 6511 fi 6512 6513 case $ac_tag in 6514 *:-:* | *:-) cat >"$tmp/stdin";; 6515 esac 6516 ;; 6517 esac 6518 6519 ac_dir=`$as_dirname -- "$ac_file" || 6520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6521 X"$ac_file" : 'X\(//\)[^/]' \| \ 6522 X"$ac_file" : 'X\(//\)$' \| \ 6523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6524echo X"$ac_file" | 6525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6526 s//\1/ 6527 q 6528 } 6529 /^X\(\/\/\)[^/].*/{ 6530 s//\1/ 6531 q 6532 } 6533 /^X\(\/\/\)$/{ 6534 s//\1/ 6535 q 6536 } 6537 /^X\(\/\).*/{ 6538 s//\1/ 6539 q 6540 } 6541 s/.*/./; q'` 6542 { as_dir="$ac_dir" 6543 case $as_dir in #( 6544 -*) as_dir=./$as_dir;; 6545 esac 6546 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6547 as_dirs= 6548 while :; do 6549 case $as_dir in #( 6550 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 6551 *) as_qdir=$as_dir;; 6552 esac 6553 as_dirs="'$as_qdir' $as_dirs" 6554 as_dir=`$as_dirname -- "$as_dir" || 6555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6556 X"$as_dir" : 'X\(//\)[^/]' \| \ 6557 X"$as_dir" : 'X\(//\)$' \| \ 6558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6559echo X"$as_dir" | 6560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6561 s//\1/ 6562 q 6563 } 6564 /^X\(\/\/\)[^/].*/{ 6565 s//\1/ 6566 q 6567 } 6568 /^X\(\/\/\)$/{ 6569 s//\1/ 6570 q 6571 } 6572 /^X\(\/\).*/{ 6573 s//\1/ 6574 q 6575 } 6576 s/.*/./; q'` 6577 test -d "$as_dir" && break 6578 done 6579 test -z "$as_dirs" || eval "mkdir $as_dirs" 6580 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6581echo "$as_me: error: cannot create directory $as_dir" >&2;} 6582 { (exit 1); exit 1; }; }; } 6583 ac_builddir=. 6584 6585case "$ac_dir" in 6586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6587*) 6588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6589 # A ".." for each directory in $ac_dir_suffix. 6590 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 6591 case $ac_top_builddir_sub in 6592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6594 esac ;; 6595esac 6596ac_abs_top_builddir=$ac_pwd 6597ac_abs_builddir=$ac_pwd$ac_dir_suffix 6598# for backward compatibility: 6599ac_top_builddir=$ac_top_build_prefix 6600 6601case $srcdir in 6602 .) # We are building in place. 6603 ac_srcdir=. 6604 ac_top_srcdir=$ac_top_builddir_sub 6605 ac_abs_top_srcdir=$ac_pwd ;; 6606 [\\/]* | ?:[\\/]* ) # Absolute name. 6607 ac_srcdir=$srcdir$ac_dir_suffix; 6608 ac_top_srcdir=$srcdir 6609 ac_abs_top_srcdir=$srcdir ;; 6610 *) # Relative name. 6611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6612 ac_top_srcdir=$ac_top_build_prefix$srcdir 6613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6614esac 6615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6616 6617 6618 case $ac_mode in 6619 :F) 6620 # 6621 # CONFIG_FILE 6622 # 6623 6624 case $INSTALL in 6625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6627 esac 6628 ac_MKDIR_P=$MKDIR_P 6629 case $MKDIR_P in 6630 [\\/$]* | ?:[\\/]* ) ;; 6631 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6632 esac 6633_ACEOF 6634 6635cat >>$CONFIG_STATUS <<\_ACEOF 6636# If the template does not know about datarootdir, expand it. 6637# FIXME: This hack should be removed a few years after 2.60. 6638ac_datarootdir_hack=; ac_datarootdir_seen= 6639 6640case `sed -n '/datarootdir/ { 6641 p 6642 q 6643} 6644/@datadir@/p 6645/@docdir@/p 6646/@infodir@/p 6647/@localedir@/p 6648/@mandir@/p 6649' $ac_file_inputs` in 6650*datarootdir*) ac_datarootdir_seen=yes;; 6651*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6652 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6653echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6654_ACEOF 6655cat >>$CONFIG_STATUS <<_ACEOF 6656 ac_datarootdir_hack=' 6657 s&@datadir@&$datadir&g 6658 s&@docdir@&$docdir&g 6659 s&@infodir@&$infodir&g 6660 s&@localedir@&$localedir&g 6661 s&@mandir@&$mandir&g 6662 s&\\\${datarootdir}&$datarootdir&g' ;; 6663esac 6664_ACEOF 6665 6666# Neutralize VPATH when `$srcdir' = `.'. 6667# Shell code in configure.ac might set extrasub. 6668# FIXME: do we really want to maintain this feature? 6669cat >>$CONFIG_STATUS <<_ACEOF 6670 sed "$ac_vpsub 6671$extrasub 6672_ACEOF 6673cat >>$CONFIG_STATUS <<\_ACEOF 6674:t 6675/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6676s&@configure_input@&$configure_input&;t t 6677s&@top_builddir@&$ac_top_builddir_sub&;t t 6678s&@srcdir@&$ac_srcdir&;t t 6679s&@abs_srcdir@&$ac_abs_srcdir&;t t 6680s&@top_srcdir@&$ac_top_srcdir&;t t 6681s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6682s&@builddir@&$ac_builddir&;t t 6683s&@abs_builddir@&$ac_abs_builddir&;t t 6684s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6685s&@INSTALL@&$ac_INSTALL&;t t 6686s&@MKDIR_P@&$ac_MKDIR_P&;t t 6687$ac_datarootdir_hack 6688" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 6689 6690test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6693 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6694which seems to be undefined. Please make sure it is defined." >&5 6695echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6696which seems to be undefined. Please make sure it is defined." >&2;} 6697 6698 rm -f "$tmp/stdin" 6699 case $ac_file in 6700 -) cat "$tmp/out"; rm -f "$tmp/out";; 6701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 6702 esac 6703 ;; 6704 :H) 6705 # 6706 # CONFIG_HEADER 6707 # 6708_ACEOF 6709 6710# Transform confdefs.h into a sed script `conftest.defines', that 6711# substitutes the proper values into config.h.in to produce config.h. 6712rm -f conftest.defines conftest.tail 6713# First, append a space to every undef/define line, to ease matching. 6714echo 's/$/ /' >conftest.defines 6715# Then, protect against being on the right side of a sed subst, or in 6716# an unquoted here document, in config.status. If some macros were 6717# called several times there might be several #defines for the same 6718# symbol, which is useless. But do not sort them, since the last 6719# AC_DEFINE must be honored. 6720ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6721# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 6722# NAME is the cpp macro being defined, VALUE is the value it is being given. 6723# PARAMS is the parameter list in the macro definition--in most cases, it's 6724# just an empty string. 6725ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 6726ac_dB='\\)[ (].*,\\1define\\2' 6727ac_dC=' ' 6728ac_dD=' ,' 6729 6730uniq confdefs.h | 6731 sed -n ' 6732 t rset 6733 :rset 6734 s/^[ ]*#[ ]*define[ ][ ]*// 6735 t ok 6736 d 6737 :ok 6738 s/[\\&,]/\\&/g 6739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 6740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 6741 ' >>conftest.defines 6742 6743# Remove the space that was appended to ease matching. 6744# Then replace #undef with comments. This is necessary, for 6745# example, in the case of _POSIX_SOURCE, which is predefined and required 6746# on some systems where configure will not decide to define it. 6747# (The regexp can be short, since the line contains either #define or #undef.) 6748echo 's/ $// 6749s,^[ #]*u.*,/* & */,' >>conftest.defines 6750 6751# Break up conftest.defines: 6752ac_max_sed_lines=50 6753 6754# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 6755# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 6756# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 6757# et cetera. 6758ac_in='$ac_file_inputs' 6759ac_out='"$tmp/out1"' 6760ac_nxt='"$tmp/out2"' 6761 6762while : 6763do 6764 # Write a here document: 6765 cat >>$CONFIG_STATUS <<_ACEOF 6766 # First, check the format of the line: 6767 cat >"\$tmp/defines.sed" <<\\CEOF 6768/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 6769/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 6770b 6771:def 6772_ACEOF 6773 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 6774 echo 'CEOF 6775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 6776 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 6777 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 6778 grep . conftest.tail >/dev/null || break 6779 rm -f conftest.defines 6780 mv conftest.tail conftest.defines 6781done 6782rm -f conftest.defines conftest.tail 6783 6784echo "ac_result=$ac_in" >>$CONFIG_STATUS 6785cat >>$CONFIG_STATUS <<\_ACEOF 6786 if test x"$ac_file" != x-; then 6787 echo "/* $configure_input */" >"$tmp/config.h" 6788 cat "$ac_result" >>"$tmp/config.h" 6789 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 6790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6791echo "$as_me: $ac_file is unchanged" >&6;} 6792 else 6793 rm -f $ac_file 6794 mv "$tmp/config.h" $ac_file 6795 fi 6796 else 6797 echo "/* $configure_input */" 6798 cat "$ac_result" 6799 fi 6800 rm -f "$tmp/out12" 6801# Compute $ac_file's index in $config_headers. 6802_am_arg=$ac_file 6803_am_stamp_count=1 6804for _am_header in $config_headers :; do 6805 case $_am_header in 6806 $_am_arg | $_am_arg:* ) 6807 break ;; 6808 * ) 6809 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6810 esac 6811done 6812echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6813$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6814 X"$_am_arg" : 'X\(//\)[^/]' \| \ 6815 X"$_am_arg" : 'X\(//\)$' \| \ 6816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6817echo X"$_am_arg" | 6818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6819 s//\1/ 6820 q 6821 } 6822 /^X\(\/\/\)[^/].*/{ 6823 s//\1/ 6824 q 6825 } 6826 /^X\(\/\/\)$/{ 6827 s//\1/ 6828 q 6829 } 6830 /^X\(\/\).*/{ 6831 s//\1/ 6832 q 6833 } 6834 s/.*/./; q'`/stamp-h$_am_stamp_count 6835 ;; 6836 6837 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 6838echo "$as_me: executing $ac_file commands" >&6;} 6839 ;; 6840 esac 6841 6842 6843 case $ac_file$ac_mode in 6844 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 6845 # Strip MF so we end up with the name of the file. 6846 mf=`echo "$mf" | sed -e 's/:.*$//'` 6847 # Check whether this is an Automake generated Makefile or not. 6848 # We used to match only the files named `Makefile.in', but 6849 # some people rename them; so instead we look at the file content. 6850 # Grep'ing the first line is not enough: some people post-process 6851 # each Makefile.in and add a new line on top of each file to say so. 6852 # Grep'ing the whole file is not good either: AIX grep has a line 6853 # limit of 2048, but all sed's we know have understand at least 4000. 6854 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6855 dirpart=`$as_dirname -- "$mf" || 6856$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6857 X"$mf" : 'X\(//\)[^/]' \| \ 6858 X"$mf" : 'X\(//\)$' \| \ 6859 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6860echo X"$mf" | 6861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6862 s//\1/ 6863 q 6864 } 6865 /^X\(\/\/\)[^/].*/{ 6866 s//\1/ 6867 q 6868 } 6869 /^X\(\/\/\)$/{ 6870 s//\1/ 6871 q 6872 } 6873 /^X\(\/\).*/{ 6874 s//\1/ 6875 q 6876 } 6877 s/.*/./; q'` 6878 else 6879 continue 6880 fi 6881 # Extract the definition of DEPDIR, am__include, and am__quote 6882 # from the Makefile without running `make'. 6883 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6884 test -z "$DEPDIR" && continue 6885 am__include=`sed -n 's/^am__include = //p' < "$mf"` 6886 test -z "am__include" && continue 6887 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6888 # When using ansi2knr, U may be empty or an underscore; expand it 6889 U=`sed -n 's/^U = //p' < "$mf"` 6890 # Find all dependency output files, they are included files with 6891 # $(DEPDIR) in their names. We invoke sed twice because it is the 6892 # simplest approach to changing $(DEPDIR) to its actual value in the 6893 # expansion. 6894 for file in `sed -n " 6895 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6896 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6897 # Make sure the directory exists. 6898 test -f "$dirpart/$file" && continue 6899 fdir=`$as_dirname -- "$file" || 6900$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6901 X"$file" : 'X\(//\)[^/]' \| \ 6902 X"$file" : 'X\(//\)$' \| \ 6903 X"$file" : 'X\(/\)' \| . 2>/dev/null || 6904echo X"$file" | 6905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6906 s//\1/ 6907 q 6908 } 6909 /^X\(\/\/\)[^/].*/{ 6910 s//\1/ 6911 q 6912 } 6913 /^X\(\/\/\)$/{ 6914 s//\1/ 6915 q 6916 } 6917 /^X\(\/\).*/{ 6918 s//\1/ 6919 q 6920 } 6921 s/.*/./; q'` 6922 { as_dir=$dirpart/$fdir 6923 case $as_dir in #( 6924 -*) as_dir=./$as_dir;; 6925 esac 6926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6927 as_dirs= 6928 while :; do 6929 case $as_dir in #( 6930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 6931 *) as_qdir=$as_dir;; 6932 esac 6933 as_dirs="'$as_qdir' $as_dirs" 6934 as_dir=`$as_dirname -- "$as_dir" || 6935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6936 X"$as_dir" : 'X\(//\)[^/]' \| \ 6937 X"$as_dir" : 'X\(//\)$' \| \ 6938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6939echo X"$as_dir" | 6940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6941 s//\1/ 6942 q 6943 } 6944 /^X\(\/\/\)[^/].*/{ 6945 s//\1/ 6946 q 6947 } 6948 /^X\(\/\/\)$/{ 6949 s//\1/ 6950 q 6951 } 6952 /^X\(\/\).*/{ 6953 s//\1/ 6954 q 6955 } 6956 s/.*/./; q'` 6957 test -d "$as_dir" && break 6958 done 6959 test -z "$as_dirs" || eval "mkdir $as_dirs" 6960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6961echo "$as_me: error: cannot create directory $as_dir" >&2;} 6962 { (exit 1); exit 1; }; }; } 6963 # echo "creating $dirpart/$file" 6964 echo '# dummy' > "$dirpart/$file" 6965 done 6966done 6967 ;; 6968 "default":C) echo timestamp > stamp-h ;; 6969 6970 esac 6971done # for ac_tag 6972 6973 6974{ (exit 0); exit 0; } 6975_ACEOF 6976chmod +x $CONFIG_STATUS 6977ac_clean_files=$ac_clean_files_save 6978 6979 6980# configure is writing to config.log, and then calls config.status. 6981# config.status does its own redirection, appending to config.log. 6982# Unfortunately, on DOS this fails, as config.log is still kept open 6983# by configure, so config.status won't be able to write to it; its 6984# output is simply discarded. So we exec the FD to /dev/null, 6985# effectively closing config.log, so it can be properly (re)opened and 6986# appended to by config.status. When coming back to configure, we 6987# need to make the FD available again. 6988if test "$no_create" != yes; then 6989 ac_cs_success=: 6990 ac_config_status_args= 6991 test "$silent" = yes && 6992 ac_config_status_args="$ac_config_status_args --quiet" 6993 exec 5>/dev/null 6994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6995 exec 5>>config.log 6996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6997 # would make configure fail if this is the last instruction. 6998 $ac_cs_success || { (exit 1); exit 1; } 6999fi 7000 7001