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