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