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