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="Makefile.in" 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 sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS' 313ac_subst_files='' 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 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838 839System types: 840 --build=BUILD configure for building on BUILD [guessed] 841 --host=HOST cross-compile to build programs to run on HOST [BUILD] 842 --target=TARGET configure for building compilers for TARGET [HOST] 843_ACEOF 844fi 845 846if test -n "$ac_init_help"; then 847 848 cat <<\_ACEOF 849 850Optional Features: 851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 853 --enable-maintainer-mode Enable developer functionality. 854 --enable-sim-bswap Use Host specific BSWAP instruction. 855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator 856 --enable-sim-debug=opts Enable debugging flags 857 --enable-sim-stdio Specify whether to use stdio for console input/output. 858 --enable-sim-trace=opts Enable tracing flags 859 --enable-sim-profile=opts Enable profiling flags 860 --enable-build-warnings Enable build-time compiler warnings if gcc is used 861 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used 862 863Some influential environment variables: 864 CC C compiler command 865 CFLAGS C compiler flags 866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 867 nonstandard directory <lib dir> 868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 869 headers in a nonstandard directory <include dir> 870 CPP C preprocessor 871 872Use these variables to override the choices made by `configure' or to help 873it to find libraries and programs with nonstandard names/locations. 874 875_ACEOF 876fi 877 878if test "$ac_init_help" = "recursive"; then 879 # If there are subdirs, report their specific --help. 880 ac_popdir=`pwd` 881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 882 test -d $ac_dir || continue 883 ac_builddir=. 884 885if test "$ac_dir" != .; then 886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 887 # A "../" for each directory in $ac_dir_suffix. 888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 889else 890 ac_dir_suffix= ac_top_builddir= 891fi 892 893case $srcdir in 894 .) # No --srcdir option. We are building in place. 895 ac_srcdir=. 896 if test -z "$ac_top_builddir"; then 897 ac_top_srcdir=. 898 else 899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 900 fi ;; 901 [\\/]* | ?:[\\/]* ) # Absolute path. 902 ac_srcdir=$srcdir$ac_dir_suffix; 903 ac_top_srcdir=$srcdir ;; 904 *) # Relative path. 905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 906 ac_top_srcdir=$ac_top_builddir$srcdir ;; 907esac 908 909# Do not use `cd foo && pwd` to compute absolute paths, because 910# the directories may not exist. 911case `pwd` in 912.) ac_abs_builddir="$ac_dir";; 913*) 914 case "$ac_dir" in 915 .) ac_abs_builddir=`pwd`;; 916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 917 *) ac_abs_builddir=`pwd`/"$ac_dir";; 918 esac;; 919esac 920case $ac_abs_builddir in 921.) ac_abs_top_builddir=${ac_top_builddir}.;; 922*) 923 case ${ac_top_builddir}. in 924 .) ac_abs_top_builddir=$ac_abs_builddir;; 925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 927 esac;; 928esac 929case $ac_abs_builddir in 930.) ac_abs_srcdir=$ac_srcdir;; 931*) 932 case $ac_srcdir in 933 .) ac_abs_srcdir=$ac_abs_builddir;; 934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 936 esac;; 937esac 938case $ac_abs_builddir in 939.) ac_abs_top_srcdir=$ac_top_srcdir;; 940*) 941 case $ac_top_srcdir in 942 .) ac_abs_top_srcdir=$ac_abs_builddir;; 943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 945 esac;; 946esac 947 948 cd $ac_dir 949 # Check for guested configure; otherwise get Cygnus style configure. 950 if test -f $ac_srcdir/configure.gnu; then 951 echo 952 $SHELL $ac_srcdir/configure.gnu --help=recursive 953 elif test -f $ac_srcdir/configure; then 954 echo 955 $SHELL $ac_srcdir/configure --help=recursive 956 elif test -f $ac_srcdir/configure.ac || 957 test -f $ac_srcdir/configure.in; then 958 echo 959 $ac_configure --help 960 else 961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 962 fi 963 cd $ac_popdir 964 done 965fi 966 967test -n "$ac_init_help" && exit 0 968if $ac_init_version; then 969 cat <<\_ACEOF 970 971Copyright (C) 2003 Free Software Foundation, Inc. 972This configure script is free software; the Free Software Foundation 973gives unlimited permission to copy, distribute and modify it. 974_ACEOF 975 exit 0 976fi 977exec 5>config.log 978cat >&5 <<_ACEOF 979This file contains any messages produced by compilers while 980running configure, to aid debugging if configure makes a mistake. 981 982It was created by $as_me, which was 983generated by GNU Autoconf 2.59. Invocation command line was 984 985 $ $0 $@ 986 987_ACEOF 988{ 989cat <<_ASUNAME 990## --------- ## 991## Platform. ## 992## --------- ## 993 994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 995uname -m = `(uname -m) 2>/dev/null || echo unknown` 996uname -r = `(uname -r) 2>/dev/null || echo unknown` 997uname -s = `(uname -s) 2>/dev/null || echo unknown` 998uname -v = `(uname -v) 2>/dev/null || echo unknown` 999 1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1002 1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1010 1011_ASUNAME 1012 1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1014for as_dir in $PATH 1015do 1016 IFS=$as_save_IFS 1017 test -z "$as_dir" && as_dir=. 1018 echo "PATH: $as_dir" 1019done 1020 1021} >&5 1022 1023cat >&5 <<_ACEOF 1024 1025 1026## ----------- ## 1027## Core tests. ## 1028## ----------- ## 1029 1030_ACEOF 1031 1032 1033# Keep a trace of the command line. 1034# Strip out --no-create and --no-recursion so they do not pile up. 1035# Strip out --silent because we don't want to record it for future runs. 1036# Also quote any args containing shell meta-characters. 1037# Make two passes to allow for proper duplicate-argument suppression. 1038ac_configure_args= 1039ac_configure_args0= 1040ac_configure_args1= 1041ac_sep= 1042ac_must_keep_next=false 1043for ac_pass in 1 2 1044do 1045 for ac_arg 1046 do 1047 case $ac_arg in 1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1050 | -silent | --silent | --silen | --sile | --sil) 1051 continue ;; 1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1054 esac 1055 case $ac_pass in 1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1057 2) 1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1059 if test $ac_must_keep_next = true; then 1060 ac_must_keep_next=false # Got value, back to normal. 1061 else 1062 case $ac_arg in 1063 *=* | --config-cache | -C | -disable-* | --disable-* \ 1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1066 | -with-* | --with-* | -without-* | --without-* | --x) 1067 case "$ac_configure_args0 " in 1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1069 esac 1070 ;; 1071 -* ) ac_must_keep_next=true ;; 1072 esac 1073 fi 1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1075 # Get rid of the leading space. 1076 ac_sep=" " 1077 ;; 1078 esac 1079 done 1080done 1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1083 1084# When interrupted or exit'd, cleanup temporary files, and complete 1085# config.log. We remove comments because anyway the quotes in there 1086# would cause problems or look ugly. 1087# WARNING: Be sure not to use single quotes in there, as some shells, 1088# such as our DU 5.0 friend, will then `close' the trap. 1089trap 'exit_status=$? 1090 # Save into config.log some information that might help in debugging. 1091 { 1092 echo 1093 1094 cat <<\_ASBOX 1095## ---------------- ## 1096## Cache variables. ## 1097## ---------------- ## 1098_ASBOX 1099 echo 1100 # The following way of writing the cache mishandles newlines in values, 1101{ 1102 (set) 2>&1 | 1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1104 *ac_space=\ *) 1105 sed -n \ 1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1108 ;; 1109 *) 1110 sed -n \ 1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1112 ;; 1113 esac; 1114} 1115 echo 1116 1117 cat <<\_ASBOX 1118## ----------------- ## 1119## Output variables. ## 1120## ----------------- ## 1121_ASBOX 1122 echo 1123 for ac_var in $ac_subst_vars 1124 do 1125 eval ac_val=$`echo $ac_var` 1126 echo "$ac_var='"'"'$ac_val'"'"'" 1127 done | sort 1128 echo 1129 1130 if test -n "$ac_subst_files"; then 1131 cat <<\_ASBOX 1132## ------------- ## 1133## Output files. ## 1134## ------------- ## 1135_ASBOX 1136 echo 1137 for ac_var in $ac_subst_files 1138 do 1139 eval ac_val=$`echo $ac_var` 1140 echo "$ac_var='"'"'$ac_val'"'"'" 1141 done | sort 1142 echo 1143 fi 1144 1145 if test -s confdefs.h; then 1146 cat <<\_ASBOX 1147## ----------- ## 1148## confdefs.h. ## 1149## ----------- ## 1150_ASBOX 1151 echo 1152 sed "/^$/d" confdefs.h | sort 1153 echo 1154 fi 1155 test "$ac_signal" != 0 && 1156 echo "$as_me: caught signal $ac_signal" 1157 echo "$as_me: exit $exit_status" 1158 } >&5 1159 rm -f core *.core && 1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1161 exit $exit_status 1162 ' 0 1163for ac_signal in 1 2 13 15; do 1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1165done 1166ac_signal=0 1167 1168# confdefs.h avoids OS command line length limits that DEFS can exceed. 1169rm -rf conftest* confdefs.h 1170# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1171echo >confdefs.h 1172 1173# Predefined preprocessor variables. 1174 1175cat >>confdefs.h <<_ACEOF 1176#define PACKAGE_NAME "$PACKAGE_NAME" 1177_ACEOF 1178 1179 1180cat >>confdefs.h <<_ACEOF 1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1182_ACEOF 1183 1184 1185cat >>confdefs.h <<_ACEOF 1186#define PACKAGE_VERSION "$PACKAGE_VERSION" 1187_ACEOF 1188 1189 1190cat >>confdefs.h <<_ACEOF 1191#define PACKAGE_STRING "$PACKAGE_STRING" 1192_ACEOF 1193 1194 1195cat >>confdefs.h <<_ACEOF 1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1197_ACEOF 1198 1199 1200# Let the site file select an alternate cache file if it wants to. 1201# Prefer explicitly selected file to automatically selected ones. 1202if test -z "$CONFIG_SITE"; then 1203 if test "x$prefix" != xNONE; then 1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1205 else 1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1207 fi 1208fi 1209for ac_site_file in $CONFIG_SITE; do 1210 if test -r "$ac_site_file"; then 1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1212echo "$as_me: loading site script $ac_site_file" >&6;} 1213 sed 's/^/| /' "$ac_site_file" >&5 1214 . "$ac_site_file" 1215 fi 1216done 1217 1218if test -r "$cache_file"; then 1219 # Some versions of bash will fail to source /dev/null (special 1220 # files actually), so we avoid doing that. 1221 if test -f "$cache_file"; then 1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1223echo "$as_me: loading cache $cache_file" >&6;} 1224 case $cache_file in 1225 [\\/]* | ?:[\\/]* ) . $cache_file;; 1226 *) . ./$cache_file;; 1227 esac 1228 fi 1229else 1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1231echo "$as_me: creating cache $cache_file" >&6;} 1232 >$cache_file 1233fi 1234 1235# Check that the precious variables saved in the cache have kept the same 1236# value. 1237ac_cache_corrupted=false 1238for ac_var in `(set) 2>&1 | 1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1241 eval ac_new_set=\$ac_env_${ac_var}_set 1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1243 eval ac_new_val="\$ac_env_${ac_var}_value" 1244 case $ac_old_set,$ac_new_set in 1245 set,) 1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1248 ac_cache_corrupted=: ;; 1249 ,set) 1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1252 ac_cache_corrupted=: ;; 1253 ,);; 1254 *) 1255 if test "x$ac_old_val" != "x$ac_new_val"; then 1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1259echo "$as_me: former value: $ac_old_val" >&2;} 1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1261echo "$as_me: current value: $ac_new_val" >&2;} 1262 ac_cache_corrupted=: 1263 fi;; 1264 esac 1265 # Pass precious variables to config.status. 1266 if test "$ac_new_set" = set; then 1267 case $ac_new_val in 1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1270 *) ac_arg=$ac_var=$ac_new_val ;; 1271 esac 1272 case " $ac_configure_args " in 1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1275 esac 1276 fi 1277done 1278if $ac_cache_corrupted; then 1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1280echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1283 { (exit 1); exit 1; }; } 1284fi 1285 1286ac_ext=c 1287ac_cpp='$CPP $CPPFLAGS' 1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1290ac_compiler_gnu=$ac_cv_c_compiler_gnu 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 ac_config_headers="$ac_config_headers config.h:config.in" 1311 1312 1313# This file contains common code used by all simulators. 1314# 1315# SIM_AC_COMMON invokes AC macros used by all simulators and by the common 1316# directory. It is intended to be invoked before any target specific stuff. 1317# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. 1318# It is intended to be invoked last. 1319# 1320# The simulator's configure.in should look like: 1321# 1322# dnl Process this file with autoconf to produce a configure script. 1323# sinclude(../common/aclocal.m4) 1324# AC_PREREQ(2.5)dnl 1325# AC_INIT(Makefile.in) 1326# 1327# SIM_AC_COMMON 1328# 1329# ... target specific stuff ... 1330# 1331# SIM_AC_OUTPUT 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380sim_inline="-DDEFAULT_INLINE=0" 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417# intl sister-directory configuration rules. 1418# 1419 1420# The idea behind this macro is that there's no need to repeat all the 1421# autoconf probes done by the intl directory - it's already done them 1422# for us. In fact, there's no need even to look at the cache for the 1423# answers. All we need to do is nab a few pieces of information. 1424# The intl directory is set up to make this easy, by generating a 1425# small file which can be sourced as a shell script; then we produce 1426# the necessary substitutions and definitions for this directory. 1427 1428 1429 1430 1431 1432 1433 1434# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around 1435# it by inlining the macro's contents. 1436# This file contains common code used by all simulators. 1437# 1438# common.m4 invokes AC macros used by all simulators and by the common 1439# directory. It is intended to be included before any target specific 1440# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate 1441# the Makefile. It is intended to be invoked last. 1442# 1443# The simulator's configure.in should look like: 1444# 1445# dnl Process this file with autoconf to produce a configure script. 1446# AC_PREREQ(2.5)dnl 1447# AC_INIT(Makefile.in) 1448# AC_CONFIG_HEADER(config.h:config.in) 1449# 1450# sinclude(../common/aclocal.m4) 1451# sinclude(../common/common.m4) 1452# 1453# ... target specific stuff ... 1454 1455ac_aux_dir= 1456for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1457 if test -f $ac_dir/install-sh; then 1458 ac_aux_dir=$ac_dir 1459 ac_install_sh="$ac_aux_dir/install-sh -c" 1460 break 1461 elif test -f $ac_dir/install.sh; then 1462 ac_aux_dir=$ac_dir 1463 ac_install_sh="$ac_aux_dir/install.sh -c" 1464 break 1465 elif test -f $ac_dir/shtool; then 1466 ac_aux_dir=$ac_dir 1467 ac_install_sh="$ac_aux_dir/shtool install -c" 1468 break 1469 fi 1470done 1471if test -z "$ac_aux_dir"; then 1472 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1473echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1474 { (exit 1); exit 1; }; } 1475fi 1476ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1477ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1478ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1479 1480# Make sure we can run config.sub. 1481$ac_config_sub sun4 >/dev/null 2>&1 || 1482 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1483echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1484 { (exit 1); exit 1; }; } 1485 1486echo "$as_me:$LINENO: checking build system type" >&5 1487echo $ECHO_N "checking build system type... $ECHO_C" >&6 1488if test "${ac_cv_build+set}" = set; then 1489 echo $ECHO_N "(cached) $ECHO_C" >&6 1490else 1491 ac_cv_build_alias=$build_alias 1492test -z "$ac_cv_build_alias" && 1493 ac_cv_build_alias=`$ac_config_guess` 1494test -z "$ac_cv_build_alias" && 1495 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1496echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1497 { (exit 1); exit 1; }; } 1498ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1500echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1501 { (exit 1); exit 1; }; } 1502 1503fi 1504echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1505echo "${ECHO_T}$ac_cv_build" >&6 1506build=$ac_cv_build 1507build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1508build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1509build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1510 1511 1512echo "$as_me:$LINENO: checking host system type" >&5 1513echo $ECHO_N "checking host system type... $ECHO_C" >&6 1514if test "${ac_cv_host+set}" = set; then 1515 echo $ECHO_N "(cached) $ECHO_C" >&6 1516else 1517 ac_cv_host_alias=$host_alias 1518test -z "$ac_cv_host_alias" && 1519 ac_cv_host_alias=$ac_cv_build_alias 1520ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1522echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1523 { (exit 1); exit 1; }; } 1524 1525fi 1526echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1527echo "${ECHO_T}$ac_cv_host" >&6 1528host=$ac_cv_host 1529host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1530host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1531host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1532 1533 1534echo "$as_me:$LINENO: checking target system type" >&5 1535echo $ECHO_N "checking target system type... $ECHO_C" >&6 1536if test "${ac_cv_target+set}" = set; then 1537 echo $ECHO_N "(cached) $ECHO_C" >&6 1538else 1539 ac_cv_target_alias=$target_alias 1540test "x$ac_cv_target_alias" = "x" && 1541 ac_cv_target_alias=$ac_cv_host_alias 1542ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1544echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1545 { (exit 1); exit 1; }; } 1546 1547fi 1548echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1549echo "${ECHO_T}$ac_cv_target" >&6 1550target=$ac_cv_target 1551target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1552target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1553target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1554 1555 1556# The aliases save the names the user supplied, while $host etc. 1557# will get canonicalized. 1558test -n "$target_alias" && 1559 test "$program_prefix$program_suffix$program_transform_name" = \ 1560 NONENONEs,x,x, && 1561 program_prefix=${target_alias}- 1562test "$program_prefix" != NONE && 1563 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1564# Use a double $ so make ignores it. 1565test "$program_suffix" != NONE && 1566 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1567# Double any \ or $. echo might interpret backslashes. 1568# By default was `s,x,x', remove it if useless. 1569cat <<\_ACEOF >conftest.sed 1570s/[\\$]/&&/g;s/;s,x,x,$// 1571_ACEOF 1572program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1573rm conftest.sed 1574 1575ac_ext=c 1576ac_cpp='$CPP $CPPFLAGS' 1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1579ac_compiler_gnu=$ac_cv_c_compiler_gnu 1580if test -n "$ac_tool_prefix"; then 1581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1582set dummy ${ac_tool_prefix}gcc; ac_word=$2 1583echo "$as_me:$LINENO: checking for $ac_word" >&5 1584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1585if test "${ac_cv_prog_CC+set}" = set; then 1586 echo $ECHO_N "(cached) $ECHO_C" >&6 1587else 1588 if test -n "$CC"; then 1589 ac_cv_prog_CC="$CC" # Let the user override the test. 1590else 1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1592for as_dir in $PATH 1593do 1594 IFS=$as_save_IFS 1595 test -z "$as_dir" && as_dir=. 1596 for ac_exec_ext in '' $ac_executable_extensions; do 1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1598 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1600 break 2 1601 fi 1602done 1603done 1604 1605fi 1606fi 1607CC=$ac_cv_prog_CC 1608if test -n "$CC"; then 1609 echo "$as_me:$LINENO: result: $CC" >&5 1610echo "${ECHO_T}$CC" >&6 1611else 1612 echo "$as_me:$LINENO: result: no" >&5 1613echo "${ECHO_T}no" >&6 1614fi 1615 1616fi 1617if test -z "$ac_cv_prog_CC"; then 1618 ac_ct_CC=$CC 1619 # Extract the first word of "gcc", so it can be a program name with args. 1620set dummy gcc; ac_word=$2 1621echo "$as_me:$LINENO: checking for $ac_word" >&5 1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1624 echo $ECHO_N "(cached) $ECHO_C" >&6 1625else 1626 if test -n "$ac_ct_CC"; then 1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1628else 1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1630for as_dir in $PATH 1631do 1632 IFS=$as_save_IFS 1633 test -z "$as_dir" && as_dir=. 1634 for ac_exec_ext in '' $ac_executable_extensions; do 1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1636 ac_cv_prog_ac_ct_CC="gcc" 1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1638 break 2 1639 fi 1640done 1641done 1642 1643fi 1644fi 1645ac_ct_CC=$ac_cv_prog_ac_ct_CC 1646if test -n "$ac_ct_CC"; then 1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1648echo "${ECHO_T}$ac_ct_CC" >&6 1649else 1650 echo "$as_me:$LINENO: result: no" >&5 1651echo "${ECHO_T}no" >&6 1652fi 1653 1654 CC=$ac_ct_CC 1655else 1656 CC="$ac_cv_prog_CC" 1657fi 1658 1659if test -z "$CC"; then 1660 if test -n "$ac_tool_prefix"; then 1661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1662set dummy ${ac_tool_prefix}cc; ac_word=$2 1663echo "$as_me:$LINENO: checking for $ac_word" >&5 1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1665if test "${ac_cv_prog_CC+set}" = set; then 1666 echo $ECHO_N "(cached) $ECHO_C" >&6 1667else 1668 if test -n "$CC"; then 1669 ac_cv_prog_CC="$CC" # Let the user override the test. 1670else 1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1672for as_dir in $PATH 1673do 1674 IFS=$as_save_IFS 1675 test -z "$as_dir" && as_dir=. 1676 for ac_exec_ext in '' $ac_executable_extensions; do 1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1678 ac_cv_prog_CC="${ac_tool_prefix}cc" 1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1680 break 2 1681 fi 1682done 1683done 1684 1685fi 1686fi 1687CC=$ac_cv_prog_CC 1688if test -n "$CC"; then 1689 echo "$as_me:$LINENO: result: $CC" >&5 1690echo "${ECHO_T}$CC" >&6 1691else 1692 echo "$as_me:$LINENO: result: no" >&5 1693echo "${ECHO_T}no" >&6 1694fi 1695 1696fi 1697if test -z "$ac_cv_prog_CC"; then 1698 ac_ct_CC=$CC 1699 # Extract the first word of "cc", so it can be a program name with args. 1700set dummy cc; ac_word=$2 1701echo "$as_me:$LINENO: checking for $ac_word" >&5 1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1704 echo $ECHO_N "(cached) $ECHO_C" >&6 1705else 1706 if test -n "$ac_ct_CC"; then 1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1708else 1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1710for as_dir in $PATH 1711do 1712 IFS=$as_save_IFS 1713 test -z "$as_dir" && as_dir=. 1714 for ac_exec_ext in '' $ac_executable_extensions; do 1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1716 ac_cv_prog_ac_ct_CC="cc" 1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1718 break 2 1719 fi 1720done 1721done 1722 1723fi 1724fi 1725ac_ct_CC=$ac_cv_prog_ac_ct_CC 1726if test -n "$ac_ct_CC"; then 1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1728echo "${ECHO_T}$ac_ct_CC" >&6 1729else 1730 echo "$as_me:$LINENO: result: no" >&5 1731echo "${ECHO_T}no" >&6 1732fi 1733 1734 CC=$ac_ct_CC 1735else 1736 CC="$ac_cv_prog_CC" 1737fi 1738 1739fi 1740if test -z "$CC"; then 1741 # Extract the first word of "cc", so it can be a program name with args. 1742set dummy cc; ac_word=$2 1743echo "$as_me:$LINENO: checking for $ac_word" >&5 1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1745if test "${ac_cv_prog_CC+set}" = set; then 1746 echo $ECHO_N "(cached) $ECHO_C" >&6 1747else 1748 if test -n "$CC"; then 1749 ac_cv_prog_CC="$CC" # Let the user override the test. 1750else 1751 ac_prog_rejected=no 1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1753for as_dir in $PATH 1754do 1755 IFS=$as_save_IFS 1756 test -z "$as_dir" && as_dir=. 1757 for ac_exec_ext in '' $ac_executable_extensions; do 1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1760 ac_prog_rejected=yes 1761 continue 1762 fi 1763 ac_cv_prog_CC="cc" 1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1765 break 2 1766 fi 1767done 1768done 1769 1770if test $ac_prog_rejected = yes; then 1771 # We found a bogon in the path, so make sure we never use it. 1772 set dummy $ac_cv_prog_CC 1773 shift 1774 if test $# != 0; then 1775 # We chose a different compiler from the bogus one. 1776 # However, it has the same basename, so the bogon will be chosen 1777 # first if we set CC to just the basename; use the full file name. 1778 shift 1779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1780 fi 1781fi 1782fi 1783fi 1784CC=$ac_cv_prog_CC 1785if test -n "$CC"; then 1786 echo "$as_me:$LINENO: result: $CC" >&5 1787echo "${ECHO_T}$CC" >&6 1788else 1789 echo "$as_me:$LINENO: result: no" >&5 1790echo "${ECHO_T}no" >&6 1791fi 1792 1793fi 1794if test -z "$CC"; then 1795 if test -n "$ac_tool_prefix"; then 1796 for ac_prog in cl 1797 do 1798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1799set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1800echo "$as_me:$LINENO: checking for $ac_word" >&5 1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1802if test "${ac_cv_prog_CC+set}" = set; then 1803 echo $ECHO_N "(cached) $ECHO_C" >&6 1804else 1805 if test -n "$CC"; then 1806 ac_cv_prog_CC="$CC" # Let the user override the test. 1807else 1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1809for as_dir in $PATH 1810do 1811 IFS=$as_save_IFS 1812 test -z "$as_dir" && as_dir=. 1813 for ac_exec_ext in '' $ac_executable_extensions; do 1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1817 break 2 1818 fi 1819done 1820done 1821 1822fi 1823fi 1824CC=$ac_cv_prog_CC 1825if test -n "$CC"; then 1826 echo "$as_me:$LINENO: result: $CC" >&5 1827echo "${ECHO_T}$CC" >&6 1828else 1829 echo "$as_me:$LINENO: result: no" >&5 1830echo "${ECHO_T}no" >&6 1831fi 1832 1833 test -n "$CC" && break 1834 done 1835fi 1836if test -z "$CC"; then 1837 ac_ct_CC=$CC 1838 for ac_prog in cl 1839do 1840 # Extract the first word of "$ac_prog", so it can be a program name with args. 1841set dummy $ac_prog; ac_word=$2 1842echo "$as_me:$LINENO: checking for $ac_word" >&5 1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1845 echo $ECHO_N "(cached) $ECHO_C" >&6 1846else 1847 if test -n "$ac_ct_CC"; then 1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1849else 1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1851for as_dir in $PATH 1852do 1853 IFS=$as_save_IFS 1854 test -z "$as_dir" && as_dir=. 1855 for ac_exec_ext in '' $ac_executable_extensions; do 1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1857 ac_cv_prog_ac_ct_CC="$ac_prog" 1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1859 break 2 1860 fi 1861done 1862done 1863 1864fi 1865fi 1866ac_ct_CC=$ac_cv_prog_ac_ct_CC 1867if test -n "$ac_ct_CC"; then 1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1869echo "${ECHO_T}$ac_ct_CC" >&6 1870else 1871 echo "$as_me:$LINENO: result: no" >&5 1872echo "${ECHO_T}no" >&6 1873fi 1874 1875 test -n "$ac_ct_CC" && break 1876done 1877 1878 CC=$ac_ct_CC 1879fi 1880 1881fi 1882 1883 1884test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1885See \`config.log' for more details." >&5 1886echo "$as_me: error: no acceptable C compiler found in \$PATH 1887See \`config.log' for more details." >&2;} 1888 { (exit 1); exit 1; }; } 1889 1890# Provide some information about the compiler. 1891echo "$as_me:$LINENO:" \ 1892 "checking for C compiler version" >&5 1893ac_compiler=`set X $ac_compile; echo $2` 1894{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1895 (eval $ac_compiler --version </dev/null >&5) 2>&5 1896 ac_status=$? 1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1898 (exit $ac_status); } 1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1900 (eval $ac_compiler -v </dev/null >&5) 2>&5 1901 ac_status=$? 1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1903 (exit $ac_status); } 1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1905 (eval $ac_compiler -V </dev/null >&5) 2>&5 1906 ac_status=$? 1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1908 (exit $ac_status); } 1909 1910cat >conftest.$ac_ext <<_ACEOF 1911/* confdefs.h. */ 1912_ACEOF 1913cat confdefs.h >>conftest.$ac_ext 1914cat >>conftest.$ac_ext <<_ACEOF 1915/* end confdefs.h. */ 1916 1917int 1918main () 1919{ 1920 1921 ; 1922 return 0; 1923} 1924_ACEOF 1925ac_clean_files_save=$ac_clean_files 1926ac_clean_files="$ac_clean_files a.out a.exe b.out" 1927# Try to create an executable without -o first, disregard a.out. 1928# It will help us diagnose broken compilers, and finding out an intuition 1929# of exeext. 1930echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1931echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1932ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1933if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1934 (eval $ac_link_default) 2>&5 1935 ac_status=$? 1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1937 (exit $ac_status); }; then 1938 # Find the output, starting from the most likely. This scheme is 1939# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1940# resort. 1941 1942# Be careful to initialize this variable, since it used to be cached. 1943# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1944ac_cv_exeext= 1945# b.out is created by i960 compilers. 1946for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1947do 1948 test -f "$ac_file" || continue 1949 case $ac_file in 1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1951 ;; 1952 conftest.$ac_ext ) 1953 # This is the source file. 1954 ;; 1955 [ab].out ) 1956 # We found the default executable, but exeext='' is most 1957 # certainly right. 1958 break;; 1959 *.* ) 1960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1961 # FIXME: I believe we export ac_cv_exeext for Libtool, 1962 # but it would be cool to find out if it's true. Does anybody 1963 # maintain Libtool? --akim. 1964 export ac_cv_exeext 1965 break;; 1966 * ) 1967 break;; 1968 esac 1969done 1970else 1971 echo "$as_me: failed program was:" >&5 1972sed 's/^/| /' conftest.$ac_ext >&5 1973 1974{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1975See \`config.log' for more details." >&5 1976echo "$as_me: error: C compiler cannot create executables 1977See \`config.log' for more details." >&2;} 1978 { (exit 77); exit 77; }; } 1979fi 1980 1981ac_exeext=$ac_cv_exeext 1982echo "$as_me:$LINENO: result: $ac_file" >&5 1983echo "${ECHO_T}$ac_file" >&6 1984 1985# Check the compiler produces executables we can run. If not, either 1986# the compiler is broken, or we cross compile. 1987echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1988echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1989# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1990# If not cross compiling, check that we can run a simple program. 1991if test "$cross_compiling" != yes; then 1992 if { ac_try='./$ac_file' 1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1994 (eval $ac_try) 2>&5 1995 ac_status=$? 1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1997 (exit $ac_status); }; }; then 1998 cross_compiling=no 1999 else 2000 if test "$cross_compiling" = maybe; then 2001 cross_compiling=yes 2002 else 2003 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2004If you meant to cross compile, use \`--host'. 2005See \`config.log' for more details." >&5 2006echo "$as_me: error: cannot run C compiled programs. 2007If you meant to cross compile, use \`--host'. 2008See \`config.log' for more details." >&2;} 2009 { (exit 1); exit 1; }; } 2010 fi 2011 fi 2012fi 2013echo "$as_me:$LINENO: result: yes" >&5 2014echo "${ECHO_T}yes" >&6 2015 2016rm -f a.out a.exe conftest$ac_cv_exeext b.out 2017ac_clean_files=$ac_clean_files_save 2018# Check the compiler produces executables we can run. If not, either 2019# the compiler is broken, or we cross compile. 2020echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2021echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2022echo "$as_me:$LINENO: result: $cross_compiling" >&5 2023echo "${ECHO_T}$cross_compiling" >&6 2024 2025echo "$as_me:$LINENO: checking for suffix of executables" >&5 2026echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2028 (eval $ac_link) 2>&5 2029 ac_status=$? 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 (exit $ac_status); }; then 2032 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2033# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2034# work properly (i.e., refer to `conftest.exe'), while it won't with 2035# `rm'. 2036for ac_file in conftest.exe conftest conftest.*; do 2037 test -f "$ac_file" || continue 2038 case $ac_file in 2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2041 export ac_cv_exeext 2042 break;; 2043 * ) break;; 2044 esac 2045done 2046else 2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2048See \`config.log' for more details." >&5 2049echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2050See \`config.log' for more details." >&2;} 2051 { (exit 1); exit 1; }; } 2052fi 2053 2054rm -f conftest$ac_cv_exeext 2055echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2056echo "${ECHO_T}$ac_cv_exeext" >&6 2057 2058rm -f conftest.$ac_ext 2059EXEEXT=$ac_cv_exeext 2060ac_exeext=$EXEEXT 2061echo "$as_me:$LINENO: checking for suffix of object files" >&5 2062echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2063if test "${ac_cv_objext+set}" = set; then 2064 echo $ECHO_N "(cached) $ECHO_C" >&6 2065else 2066 cat >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 2081rm -f conftest.o conftest.obj 2082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2083 (eval $ac_compile) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); }; then 2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2088 case $ac_file in 2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2091 break;; 2092 esac 2093done 2094else 2095 echo "$as_me: failed program was:" >&5 2096sed 's/^/| /' conftest.$ac_ext >&5 2097 2098{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2099See \`config.log' for more details." >&5 2100echo "$as_me: error: cannot compute suffix of object files: cannot compile 2101See \`config.log' for more details." >&2;} 2102 { (exit 1); exit 1; }; } 2103fi 2104 2105rm -f conftest.$ac_cv_objext conftest.$ac_ext 2106fi 2107echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2108echo "${ECHO_T}$ac_cv_objext" >&6 2109OBJEXT=$ac_cv_objext 2110ac_objext=$OBJEXT 2111echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2112echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2113if test "${ac_cv_c_compiler_gnu+set}" = set; then 2114 echo $ECHO_N "(cached) $ECHO_C" >&6 2115else 2116 cat >conftest.$ac_ext <<_ACEOF 2117/* confdefs.h. */ 2118_ACEOF 2119cat confdefs.h >>conftest.$ac_ext 2120cat >>conftest.$ac_ext <<_ACEOF 2121/* end confdefs.h. */ 2122 2123int 2124main () 2125{ 2126#ifndef __GNUC__ 2127 choke me 2128#endif 2129 2130 ; 2131 return 0; 2132} 2133_ACEOF 2134rm -f conftest.$ac_objext 2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2136 (eval $ac_compile) 2>conftest.er1 2137 ac_status=$? 2138 grep -v '^ *+' conftest.er1 >conftest.err 2139 rm -f conftest.er1 2140 cat conftest.err >&5 2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2142 (exit $ac_status); } && 2143 { ac_try='test -z "$ac_c_werror_flag" 2144 || test ! -s conftest.err' 2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2146 (eval $ac_try) 2>&5 2147 ac_status=$? 2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2149 (exit $ac_status); }; } && 2150 { ac_try='test -s conftest.$ac_objext' 2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2152 (eval $ac_try) 2>&5 2153 ac_status=$? 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); }; }; then 2156 ac_compiler_gnu=yes 2157else 2158 echo "$as_me: failed program was:" >&5 2159sed 's/^/| /' conftest.$ac_ext >&5 2160 2161ac_compiler_gnu=no 2162fi 2163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2164ac_cv_c_compiler_gnu=$ac_compiler_gnu 2165 2166fi 2167echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2168echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2169GCC=`test $ac_compiler_gnu = yes && echo yes` 2170ac_test_CFLAGS=${CFLAGS+set} 2171ac_save_CFLAGS=$CFLAGS 2172CFLAGS="-g" 2173echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2174echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2175if test "${ac_cv_prog_cc_g+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 cat >conftest.$ac_ext <<_ACEOF 2179/* confdefs.h. */ 2180_ACEOF 2181cat confdefs.h >>conftest.$ac_ext 2182cat >>conftest.$ac_ext <<_ACEOF 2183/* end confdefs.h. */ 2184 2185int 2186main () 2187{ 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193rm -f conftest.$ac_objext 2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2195 (eval $ac_compile) 2>conftest.er1 2196 ac_status=$? 2197 grep -v '^ *+' conftest.er1 >conftest.err 2198 rm -f conftest.er1 2199 cat conftest.err >&5 2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2201 (exit $ac_status); } && 2202 { ac_try='test -z "$ac_c_werror_flag" 2203 || test ! -s conftest.err' 2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2205 (eval $ac_try) 2>&5 2206 ac_status=$? 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2208 (exit $ac_status); }; } && 2209 { ac_try='test -s conftest.$ac_objext' 2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 (eval $ac_try) 2>&5 2212 ac_status=$? 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 (exit $ac_status); }; }; then 2215 ac_cv_prog_cc_g=yes 2216else 2217 echo "$as_me: failed program was:" >&5 2218sed 's/^/| /' conftest.$ac_ext >&5 2219 2220ac_cv_prog_cc_g=no 2221fi 2222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2223fi 2224echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2225echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2226if test "$ac_test_CFLAGS" = set; then 2227 CFLAGS=$ac_save_CFLAGS 2228elif test $ac_cv_prog_cc_g = yes; then 2229 if test "$GCC" = yes; then 2230 CFLAGS="-g -O2" 2231 else 2232 CFLAGS="-g" 2233 fi 2234else 2235 if test "$GCC" = yes; then 2236 CFLAGS="-O2" 2237 else 2238 CFLAGS= 2239 fi 2240fi 2241echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2242echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2243if test "${ac_cv_prog_cc_stdc+set}" = set; then 2244 echo $ECHO_N "(cached) $ECHO_C" >&6 2245else 2246 ac_cv_prog_cc_stdc=no 2247ac_save_CC=$CC 2248cat >conftest.$ac_ext <<_ACEOF 2249/* confdefs.h. */ 2250_ACEOF 2251cat confdefs.h >>conftest.$ac_ext 2252cat >>conftest.$ac_ext <<_ACEOF 2253/* end confdefs.h. */ 2254#include <stdarg.h> 2255#include <stdio.h> 2256#include <sys/types.h> 2257#include <sys/stat.h> 2258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2259struct buf { int x; }; 2260FILE * (*rcsopen) (struct buf *, struct stat *, int); 2261static char *e (p, i) 2262 char **p; 2263 int i; 2264{ 2265 return p[i]; 2266} 2267static char *f (char * (*g) (char **, int), char **p, ...) 2268{ 2269 char *s; 2270 va_list v; 2271 va_start (v,p); 2272 s = g (p, va_arg (v,int)); 2273 va_end (v); 2274 return s; 2275} 2276 2277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2278 function prototypes and stuff, but not '\xHH' hex character constants. 2279 These don't provoke an error unfortunately, instead are silently treated 2280 as 'x'. The following induces an error, until -std1 is added to get 2281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2282 array size at least. It's necessary to write '\x00'==0 to get something 2283 that's true only with -std1. */ 2284int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2285 2286int test (int i, double x); 2287struct s1 {int (*f) (int a);}; 2288struct s2 {int (*f) (double a);}; 2289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2290int argc; 2291char **argv; 2292int 2293main () 2294{ 2295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300# Don't try gcc -ansi; that turns off useful extensions and 2301# breaks some systems' header files. 2302# AIX -qlanglvl=ansi 2303# Ultrix and OSF/1 -std1 2304# HP-UX 10.20 and later -Ae 2305# HP-UX older versions -Aa -D_HPUX_SOURCE 2306# SVR4 -Xc -D__EXTENSIONS__ 2307for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2308do 2309 CC="$ac_save_CC $ac_arg" 2310 rm -f conftest.$ac_objext 2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2312 (eval $ac_compile) 2>conftest.er1 2313 ac_status=$? 2314 grep -v '^ *+' conftest.er1 >conftest.err 2315 rm -f conftest.er1 2316 cat conftest.err >&5 2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 (exit $ac_status); } && 2319 { ac_try='test -z "$ac_c_werror_flag" 2320 || test ! -s conftest.err' 2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2322 (eval $ac_try) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); }; } && 2326 { ac_try='test -s conftest.$ac_objext' 2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2328 (eval $ac_try) 2>&5 2329 ac_status=$? 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2331 (exit $ac_status); }; }; then 2332 ac_cv_prog_cc_stdc=$ac_arg 2333break 2334else 2335 echo "$as_me: failed program was:" >&5 2336sed 's/^/| /' conftest.$ac_ext >&5 2337 2338fi 2339rm -f conftest.err conftest.$ac_objext 2340done 2341rm -f conftest.$ac_ext conftest.$ac_objext 2342CC=$ac_save_CC 2343 2344fi 2345 2346case "x$ac_cv_prog_cc_stdc" in 2347 x|xno) 2348 echo "$as_me:$LINENO: result: none needed" >&5 2349echo "${ECHO_T}none needed" >&6 ;; 2350 *) 2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2352echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2353 CC="$CC $ac_cv_prog_cc_stdc" ;; 2354esac 2355 2356# Some people use a C++ compiler to compile C. Since we use `exit', 2357# in C++ we need to declare it. In case someone uses the same compiler 2358# for both compiling C and C++ we need to have the C++ compiler decide 2359# the declaration of exit, since it's the most demanding environment. 2360cat >conftest.$ac_ext <<_ACEOF 2361#ifndef __cplusplus 2362 choke me 2363#endif 2364_ACEOF 2365rm -f conftest.$ac_objext 2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2367 (eval $ac_compile) 2>conftest.er1 2368 ac_status=$? 2369 grep -v '^ *+' conftest.er1 >conftest.err 2370 rm -f conftest.er1 2371 cat conftest.err >&5 2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2373 (exit $ac_status); } && 2374 { ac_try='test -z "$ac_c_werror_flag" 2375 || test ! -s conftest.err' 2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2377 (eval $ac_try) 2>&5 2378 ac_status=$? 2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2380 (exit $ac_status); }; } && 2381 { ac_try='test -s conftest.$ac_objext' 2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2383 (eval $ac_try) 2>&5 2384 ac_status=$? 2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2386 (exit $ac_status); }; }; then 2387 for ac_declaration in \ 2388 '' \ 2389 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2390 'extern "C" void std::exit (int); using std::exit;' \ 2391 'extern "C" void exit (int) throw ();' \ 2392 'extern "C" void exit (int);' \ 2393 'void exit (int);' 2394do 2395 cat >conftest.$ac_ext <<_ACEOF 2396/* confdefs.h. */ 2397_ACEOF 2398cat confdefs.h >>conftest.$ac_ext 2399cat >>conftest.$ac_ext <<_ACEOF 2400/* end confdefs.h. */ 2401$ac_declaration 2402#include <stdlib.h> 2403int 2404main () 2405{ 2406exit (42); 2407 ; 2408 return 0; 2409} 2410_ACEOF 2411rm -f conftest.$ac_objext 2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2413 (eval $ac_compile) 2>conftest.er1 2414 ac_status=$? 2415 grep -v '^ *+' conftest.er1 >conftest.err 2416 rm -f conftest.er1 2417 cat conftest.err >&5 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2419 (exit $ac_status); } && 2420 { ac_try='test -z "$ac_c_werror_flag" 2421 || test ! -s conftest.err' 2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2423 (eval $ac_try) 2>&5 2424 ac_status=$? 2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2426 (exit $ac_status); }; } && 2427 { ac_try='test -s conftest.$ac_objext' 2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2429 (eval $ac_try) 2>&5 2430 ac_status=$? 2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2432 (exit $ac_status); }; }; then 2433 : 2434else 2435 echo "$as_me: failed program was:" >&5 2436sed 's/^/| /' conftest.$ac_ext >&5 2437 2438continue 2439fi 2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2441 cat >conftest.$ac_ext <<_ACEOF 2442/* confdefs.h. */ 2443_ACEOF 2444cat confdefs.h >>conftest.$ac_ext 2445cat >>conftest.$ac_ext <<_ACEOF 2446/* end confdefs.h. */ 2447$ac_declaration 2448int 2449main () 2450{ 2451exit (42); 2452 ; 2453 return 0; 2454} 2455_ACEOF 2456rm -f conftest.$ac_objext 2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2458 (eval $ac_compile) 2>conftest.er1 2459 ac_status=$? 2460 grep -v '^ *+' conftest.er1 >conftest.err 2461 rm -f conftest.er1 2462 cat conftest.err >&5 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); } && 2465 { ac_try='test -z "$ac_c_werror_flag" 2466 || test ! -s conftest.err' 2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2468 (eval $ac_try) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; } && 2472 { ac_try='test -s conftest.$ac_objext' 2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2474 (eval $ac_try) 2>&5 2475 ac_status=$? 2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2477 (exit $ac_status); }; }; then 2478 break 2479else 2480 echo "$as_me: failed program was:" >&5 2481sed 's/^/| /' conftest.$ac_ext >&5 2482 2483fi 2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2485done 2486rm -f conftest* 2487if test -n "$ac_declaration"; then 2488 echo '#ifdef __cplusplus' >>confdefs.h 2489 echo $ac_declaration >>confdefs.h 2490 echo '#endif' >>confdefs.h 2491fi 2492 2493else 2494 echo "$as_me: failed program was:" >&5 2495sed 's/^/| /' conftest.$ac_ext >&5 2496 2497fi 2498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2499ac_ext=c 2500ac_cpp='$CPP $CPPFLAGS' 2501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2503ac_compiler_gnu=$ac_cv_c_compiler_gnu 2504 2505# Find a good install program. We prefer a C program (faster), 2506# so one script is as good as another. But avoid the broken or 2507# incompatible versions: 2508# SysV /etc/install, /usr/sbin/install 2509# SunOS /usr/etc/install 2510# IRIX /sbin/install 2511# AIX /bin/install 2512# AmigaOS /C/install, which installs bootblocks on floppy discs 2513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2514# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2516# OS/2's system install, which has a completely different semantic 2517# ./install, which can be erroneously created by make from ./install.sh. 2518echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2519echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2520if test -z "$INSTALL"; then 2521if test "${ac_cv_path_install+set}" = set; then 2522 echo $ECHO_N "(cached) $ECHO_C" >&6 2523else 2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 # Account for people who put trailing slashes in PATH elements. 2530case $as_dir/ in 2531 ./ | .// | /cC/* | \ 2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2533 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2534 /usr/ucb/* ) ;; 2535 *) 2536 # OSF1 and SCO ODT 3.0 have their own names for install. 2537 # Don't use installbsd from OSF since it installs stuff as root 2538 # by default. 2539 for ac_prog in ginstall scoinst install; do 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2542 if test $ac_prog = install && 2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2544 # AIX install. It has an incompatible calling convention. 2545 : 2546 elif test $ac_prog = install && 2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2548 # program-specific install script used by HP pwplus--don't use. 2549 : 2550 else 2551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2552 break 3 2553 fi 2554 fi 2555 done 2556 done 2557 ;; 2558esac 2559done 2560 2561 2562fi 2563 if test "${ac_cv_path_install+set}" = set; then 2564 INSTALL=$ac_cv_path_install 2565 else 2566 # As a last resort, use the slow shell script. We don't cache a 2567 # path for INSTALL within a source directory, because that will 2568 # break other packages using the cache if that directory is 2569 # removed, or if the path is relative. 2570 INSTALL=$ac_install_sh 2571 fi 2572fi 2573echo "$as_me:$LINENO: result: $INSTALL" >&5 2574echo "${ECHO_T}$INSTALL" >&6 2575 2576# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2577# It thinks the first close brace ends the variable substitution. 2578test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2579 2580test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2581 2582test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2583 2584 2585# Put a plausible default for CC_FOR_BUILD in Makefile. 2586if test "x$cross_compiling" = "xno"; then 2587 CC_FOR_BUILD='$(CC)' 2588else 2589 CC_FOR_BUILD=gcc 2590fi 2591 2592 2593 2594 2595AR=${AR-ar} 2596 2597if test -n "$ac_tool_prefix"; then 2598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2599set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2600echo "$as_me:$LINENO: checking for $ac_word" >&5 2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2602if test "${ac_cv_prog_RANLIB+set}" = set; then 2603 echo $ECHO_N "(cached) $ECHO_C" >&6 2604else 2605 if test -n "$RANLIB"; then 2606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620done 2621 2622fi 2623fi 2624RANLIB=$ac_cv_prog_RANLIB 2625if test -n "$RANLIB"; then 2626 echo "$as_me:$LINENO: result: $RANLIB" >&5 2627echo "${ECHO_T}$RANLIB" >&6 2628else 2629 echo "$as_me:$LINENO: result: no" >&5 2630echo "${ECHO_T}no" >&6 2631fi 2632 2633fi 2634if test -z "$ac_cv_prog_RANLIB"; then 2635 ac_ct_RANLIB=$RANLIB 2636 # Extract the first word of "ranlib", so it can be a program name with args. 2637set dummy ranlib; ac_word=$2 2638echo "$as_me:$LINENO: checking for $ac_word" >&5 2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2640if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2641 echo $ECHO_N "(cached) $ECHO_C" >&6 2642else 2643 if test -n "$ac_ct_RANLIB"; then 2644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_ac_ct_RANLIB="ranlib" 2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658done 2659 2660 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2661fi 2662fi 2663ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2664if test -n "$ac_ct_RANLIB"; then 2665 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2666echo "${ECHO_T}$ac_ct_RANLIB" >&6 2667else 2668 echo "$as_me:$LINENO: result: no" >&5 2669echo "${ECHO_T}no" >&6 2670fi 2671 2672 RANLIB=$ac_ct_RANLIB 2673else 2674 RANLIB="$ac_cv_prog_RANLIB" 2675fi 2676 2677 2678ALL_LINGUAS= 2679# If we haven't got the data from the intl directory, 2680# assume NLS is disabled. 2681USE_NLS=no 2682LIBINTL= 2683LIBINTL_DEP= 2684INCINTL= 2685XGETTEXT= 2686GMSGFMT= 2687POSUB= 2688 2689if test -f ../../intl/config.intl; then 2690 . ../../intl/config.intl 2691fi 2692echo "$as_me:$LINENO: checking whether NLS is requested" >&5 2693echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 2694if test x"$USE_NLS" != xyes; then 2695 echo "$as_me:$LINENO: result: no" >&5 2696echo "${ECHO_T}no" >&6 2697else 2698 echo "$as_me:$LINENO: result: yes" >&5 2699echo "${ECHO_T}yes" >&6 2700 2701cat >>confdefs.h <<\_ACEOF 2702#define ENABLE_NLS 1 2703_ACEOF 2704 2705 2706 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 2707echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 2708 # Look for .po and .gmo files in the source directory. 2709 CATALOGS= 2710 XLINGUAS= 2711 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 2712 # If there aren't any .gmo files the shell will give us the 2713 # literal string "../path/to/srcdir/po/*.gmo" which has to be 2714 # weeded out. 2715 case "$cat" in *\**) 2716 continue;; 2717 esac 2718 # The quadruple backslash is collapsed to a double backslash 2719 # by the backticks, then collapsed again by the double quotes, 2720 # leaving us with one backslash in the sed expression (right 2721 # before the dot that mustn't act as a wildcard). 2722 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 2723 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 2724 # The user is allowed to set LINGUAS to a list of languages to 2725 # install catalogs for. If it's empty that means "all of them." 2726 if test "x$LINGUAS" = x; then 2727 CATALOGS="$CATALOGS $cat" 2728 XLINGUAS="$XLINGUAS $lang" 2729 else 2730 case "$LINGUAS" in *$lang*) 2731 CATALOGS="$CATALOGS $cat" 2732 XLINGUAS="$XLINGUAS $lang" 2733 ;; 2734 esac 2735 fi 2736 done 2737 LINGUAS="$XLINGUAS" 2738 echo "$as_me:$LINENO: result: $LINGUAS" >&5 2739echo "${ECHO_T}$LINGUAS" >&6 2740 2741 2742 DATADIRNAME=share 2743 2744 INSTOBJEXT=.mo 2745 2746 GENCAT=gencat 2747 2748 CATOBJEXT=.gmo 2749 2750fi 2751 2752# Check for common headers. 2753# FIXME: Seems to me this can cause problems for i386-windows hosts. 2754# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. 2755 2756ac_ext=c 2757ac_cpp='$CPP $CPPFLAGS' 2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2760ac_compiler_gnu=$ac_cv_c_compiler_gnu 2761echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2762echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2763# On Suns, sometimes $CPP names a directory. 2764if test -n "$CPP" && test -d "$CPP"; then 2765 CPP= 2766fi 2767if test -z "$CPP"; then 2768 if test "${ac_cv_prog_CPP+set}" = set; then 2769 echo $ECHO_N "(cached) $ECHO_C" >&6 2770else 2771 # Double quotes because CPP needs to be expanded 2772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2773 do 2774 ac_preproc_ok=false 2775for ac_c_preproc_warn_flag in '' yes 2776do 2777 # Use a header file that comes with gcc, so configuring glibc 2778 # with a fresh cross-compiler works. 2779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2780 # <limits.h> exists even on freestanding compilers. 2781 # On the NeXT, cc -E runs the code through the compiler's parser, 2782 # not just through cpp. "Syntax error" is here to catch this case. 2783 cat >conftest.$ac_ext <<_ACEOF 2784/* confdefs.h. */ 2785_ACEOF 2786cat confdefs.h >>conftest.$ac_ext 2787cat >>conftest.$ac_ext <<_ACEOF 2788/* end confdefs.h. */ 2789#ifdef __STDC__ 2790# include <limits.h> 2791#else 2792# include <assert.h> 2793#endif 2794 Syntax error 2795_ACEOF 2796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2798 ac_status=$? 2799 grep -v '^ *+' conftest.er1 >conftest.err 2800 rm -f conftest.er1 2801 cat conftest.err >&5 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803 (exit $ac_status); } >/dev/null; then 2804 if test -s conftest.err; then 2805 ac_cpp_err=$ac_c_preproc_warn_flag 2806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2807 else 2808 ac_cpp_err= 2809 fi 2810else 2811 ac_cpp_err=yes 2812fi 2813if test -z "$ac_cpp_err"; then 2814 : 2815else 2816 echo "$as_me: failed program was:" >&5 2817sed 's/^/| /' conftest.$ac_ext >&5 2818 2819 # Broken: fails on valid input. 2820continue 2821fi 2822rm -f conftest.err conftest.$ac_ext 2823 2824 # OK, works on sane cases. Now check whether non-existent headers 2825 # can be detected and how. 2826 cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832#include <ac_nonexistent.h> 2833_ACEOF 2834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2836 ac_status=$? 2837 grep -v '^ *+' conftest.er1 >conftest.err 2838 rm -f conftest.er1 2839 cat conftest.err >&5 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841 (exit $ac_status); } >/dev/null; then 2842 if test -s conftest.err; then 2843 ac_cpp_err=$ac_c_preproc_warn_flag 2844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2845 else 2846 ac_cpp_err= 2847 fi 2848else 2849 ac_cpp_err=yes 2850fi 2851if test -z "$ac_cpp_err"; then 2852 # Broken: success on invalid input. 2853continue 2854else 2855 echo "$as_me: failed program was:" >&5 2856sed 's/^/| /' conftest.$ac_ext >&5 2857 2858 # Passes both tests. 2859ac_preproc_ok=: 2860break 2861fi 2862rm -f conftest.err conftest.$ac_ext 2863 2864done 2865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2866rm -f conftest.err conftest.$ac_ext 2867if $ac_preproc_ok; then 2868 break 2869fi 2870 2871 done 2872 ac_cv_prog_CPP=$CPP 2873 2874fi 2875 CPP=$ac_cv_prog_CPP 2876else 2877 ac_cv_prog_CPP=$CPP 2878fi 2879echo "$as_me:$LINENO: result: $CPP" >&5 2880echo "${ECHO_T}$CPP" >&6 2881ac_preproc_ok=false 2882for ac_c_preproc_warn_flag in '' yes 2883do 2884 # Use a header file that comes with gcc, so configuring glibc 2885 # with a fresh cross-compiler works. 2886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2887 # <limits.h> exists even on freestanding compilers. 2888 # On the NeXT, cc -E runs the code through the compiler's parser, 2889 # not just through cpp. "Syntax error" is here to catch this case. 2890 cat >conftest.$ac_ext <<_ACEOF 2891/* confdefs.h. */ 2892_ACEOF 2893cat confdefs.h >>conftest.$ac_ext 2894cat >>conftest.$ac_ext <<_ACEOF 2895/* end confdefs.h. */ 2896#ifdef __STDC__ 2897# include <limits.h> 2898#else 2899# include <assert.h> 2900#endif 2901 Syntax error 2902_ACEOF 2903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2905 ac_status=$? 2906 grep -v '^ *+' conftest.er1 >conftest.err 2907 rm -f conftest.er1 2908 cat conftest.err >&5 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); } >/dev/null; then 2911 if test -s conftest.err; then 2912 ac_cpp_err=$ac_c_preproc_warn_flag 2913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2914 else 2915 ac_cpp_err= 2916 fi 2917else 2918 ac_cpp_err=yes 2919fi 2920if test -z "$ac_cpp_err"; then 2921 : 2922else 2923 echo "$as_me: failed program was:" >&5 2924sed 's/^/| /' conftest.$ac_ext >&5 2925 2926 # Broken: fails on valid input. 2927continue 2928fi 2929rm -f conftest.err conftest.$ac_ext 2930 2931 # OK, works on sane cases. Now check whether non-existent headers 2932 # can be detected and how. 2933 cat >conftest.$ac_ext <<_ACEOF 2934/* confdefs.h. */ 2935_ACEOF 2936cat confdefs.h >>conftest.$ac_ext 2937cat >>conftest.$ac_ext <<_ACEOF 2938/* end confdefs.h. */ 2939#include <ac_nonexistent.h> 2940_ACEOF 2941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2943 ac_status=$? 2944 grep -v '^ *+' conftest.er1 >conftest.err 2945 rm -f conftest.er1 2946 cat conftest.err >&5 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } >/dev/null; then 2949 if test -s conftest.err; then 2950 ac_cpp_err=$ac_c_preproc_warn_flag 2951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2952 else 2953 ac_cpp_err= 2954 fi 2955else 2956 ac_cpp_err=yes 2957fi 2958if test -z "$ac_cpp_err"; then 2959 # Broken: success on invalid input. 2960continue 2961else 2962 echo "$as_me: failed program was:" >&5 2963sed 's/^/| /' conftest.$ac_ext >&5 2964 2965 # Passes both tests. 2966ac_preproc_ok=: 2967break 2968fi 2969rm -f conftest.err conftest.$ac_ext 2970 2971done 2972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2973rm -f conftest.err conftest.$ac_ext 2974if $ac_preproc_ok; then 2975 : 2976else 2977 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2978See \`config.log' for more details." >&5 2979echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2980See \`config.log' for more details." >&2;} 2981 { (exit 1); exit 1; }; } 2982fi 2983 2984ac_ext=c 2985ac_cpp='$CPP $CPPFLAGS' 2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2988ac_compiler_gnu=$ac_cv_c_compiler_gnu 2989 2990 2991echo "$as_me:$LINENO: checking for egrep" >&5 2992echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2993if test "${ac_cv_prog_egrep+set}" = set; then 2994 echo $ECHO_N "(cached) $ECHO_C" >&6 2995else 2996 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2997 then ac_cv_prog_egrep='grep -E' 2998 else ac_cv_prog_egrep='egrep' 2999 fi 3000fi 3001echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3002echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3003 EGREP=$ac_cv_prog_egrep 3004 3005 3006echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3007echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3008if test "${ac_cv_header_stdc+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 cat >conftest.$ac_ext <<_ACEOF 3012/* confdefs.h. */ 3013_ACEOF 3014cat confdefs.h >>conftest.$ac_ext 3015cat >>conftest.$ac_ext <<_ACEOF 3016/* end confdefs.h. */ 3017#include <stdlib.h> 3018#include <stdarg.h> 3019#include <string.h> 3020#include <float.h> 3021 3022int 3023main () 3024{ 3025 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030rm -f conftest.$ac_objext 3031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3032 (eval $ac_compile) 2>conftest.er1 3033 ac_status=$? 3034 grep -v '^ *+' conftest.er1 >conftest.err 3035 rm -f conftest.er1 3036 cat conftest.err >&5 3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); } && 3039 { ac_try='test -z "$ac_c_werror_flag" 3040 || test ! -s conftest.err' 3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3042 (eval $ac_try) 2>&5 3043 ac_status=$? 3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3045 (exit $ac_status); }; } && 3046 { ac_try='test -s conftest.$ac_objext' 3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3048 (eval $ac_try) 2>&5 3049 ac_status=$? 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); }; }; then 3052 ac_cv_header_stdc=yes 3053else 3054 echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057ac_cv_header_stdc=no 3058fi 3059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3060 3061if test $ac_cv_header_stdc = yes; then 3062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3063 cat >conftest.$ac_ext <<_ACEOF 3064/* confdefs.h. */ 3065_ACEOF 3066cat confdefs.h >>conftest.$ac_ext 3067cat >>conftest.$ac_ext <<_ACEOF 3068/* end confdefs.h. */ 3069#include <string.h> 3070 3071_ACEOF 3072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3073 $EGREP "memchr" >/dev/null 2>&1; then 3074 : 3075else 3076 ac_cv_header_stdc=no 3077fi 3078rm -f conftest* 3079 3080fi 3081 3082if test $ac_cv_header_stdc = yes; then 3083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3084 cat >conftest.$ac_ext <<_ACEOF 3085/* confdefs.h. */ 3086_ACEOF 3087cat confdefs.h >>conftest.$ac_ext 3088cat >>conftest.$ac_ext <<_ACEOF 3089/* end confdefs.h. */ 3090#include <stdlib.h> 3091 3092_ACEOF 3093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3094 $EGREP "free" >/dev/null 2>&1; then 3095 : 3096else 3097 ac_cv_header_stdc=no 3098fi 3099rm -f conftest* 3100 3101fi 3102 3103if test $ac_cv_header_stdc = yes; then 3104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3105 if test "$cross_compiling" = yes; then 3106 : 3107else 3108 cat >conftest.$ac_ext <<_ACEOF 3109/* confdefs.h. */ 3110_ACEOF 3111cat confdefs.h >>conftest.$ac_ext 3112cat >>conftest.$ac_ext <<_ACEOF 3113/* end confdefs.h. */ 3114#include <ctype.h> 3115#if ((' ' & 0x0FF) == 0x020) 3116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3118#else 3119# define ISLOWER(c) \ 3120 (('a' <= (c) && (c) <= 'i') \ 3121 || ('j' <= (c) && (c) <= 'r') \ 3122 || ('s' <= (c) && (c) <= 'z')) 3123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3124#endif 3125 3126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3127int 3128main () 3129{ 3130 int i; 3131 for (i = 0; i < 256; i++) 3132 if (XOR (islower (i), ISLOWER (i)) 3133 || toupper (i) != TOUPPER (i)) 3134 exit(2); 3135 exit (0); 3136} 3137_ACEOF 3138rm -f conftest$ac_exeext 3139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3140 (eval $ac_link) 2>&5 3141 ac_status=$? 3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3145 (eval $ac_try) 2>&5 3146 ac_status=$? 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); }; }; then 3149 : 3150else 3151 echo "$as_me: program exited with status $ac_status" >&5 3152echo "$as_me: failed program was:" >&5 3153sed 's/^/| /' conftest.$ac_ext >&5 3154 3155( exit $ac_status ) 3156ac_cv_header_stdc=no 3157fi 3158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3159fi 3160fi 3161fi 3162echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3163echo "${ECHO_T}$ac_cv_header_stdc" >&6 3164if test $ac_cv_header_stdc = yes; then 3165 3166cat >>confdefs.h <<\_ACEOF 3167#define STDC_HEADERS 1 3168_ACEOF 3169 3170fi 3171 3172# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3183 inttypes.h stdint.h unistd.h 3184do 3185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3186echo "$as_me:$LINENO: checking for $ac_header" >&5 3187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3188if eval "test \"\${$as_ac_Header+set}\" = set"; then 3189 echo $ECHO_N "(cached) $ECHO_C" >&6 3190else 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197$ac_includes_default 3198 3199#include <$ac_header> 3200_ACEOF 3201rm -f conftest.$ac_objext 3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3203 (eval $ac_compile) 2>conftest.er1 3204 ac_status=$? 3205 grep -v '^ *+' conftest.er1 >conftest.err 3206 rm -f conftest.er1 3207 cat conftest.err >&5 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); } && 3210 { ac_try='test -z "$ac_c_werror_flag" 3211 || test ! -s conftest.err' 3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3213 (eval $ac_try) 2>&5 3214 ac_status=$? 3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3216 (exit $ac_status); }; } && 3217 { ac_try='test -s conftest.$ac_objext' 3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3219 (eval $ac_try) 2>&5 3220 ac_status=$? 3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3222 (exit $ac_status); }; }; then 3223 eval "$as_ac_Header=yes" 3224else 3225 echo "$as_me: failed program was:" >&5 3226sed 's/^/| /' conftest.$ac_ext >&5 3227 3228eval "$as_ac_Header=no" 3229fi 3230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3231fi 3232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3234if test `eval echo '${'$as_ac_Header'}'` = yes; then 3235 cat >>confdefs.h <<_ACEOF 3236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3237_ACEOF 3238 3239fi 3240 3241done 3242 3243 3244 3245 3246 3247 3248 3249for ac_header in stdlib.h string.h strings.h unistd.h time.h 3250do 3251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3252if eval "test \"\${$as_ac_Header+set}\" = set"; then 3253 echo "$as_me:$LINENO: checking for $ac_header" >&5 3254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3255if eval "test \"\${$as_ac_Header+set}\" = set"; then 3256 echo $ECHO_N "(cached) $ECHO_C" >&6 3257fi 3258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3260else 3261 # Is the header compilable? 3262echo "$as_me:$LINENO: checking $ac_header usability" >&5 3263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3264cat >conftest.$ac_ext <<_ACEOF 3265/* confdefs.h. */ 3266_ACEOF 3267cat confdefs.h >>conftest.$ac_ext 3268cat >>conftest.$ac_ext <<_ACEOF 3269/* end confdefs.h. */ 3270$ac_includes_default 3271#include <$ac_header> 3272_ACEOF 3273rm -f conftest.$ac_objext 3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3275 (eval $ac_compile) 2>conftest.er1 3276 ac_status=$? 3277 grep -v '^ *+' conftest.er1 >conftest.err 3278 rm -f conftest.er1 3279 cat conftest.err >&5 3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 (exit $ac_status); } && 3282 { ac_try='test -z "$ac_c_werror_flag" 3283 || 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_header_compiler=yes 3296else 3297 echo "$as_me: failed program was:" >&5 3298sed 's/^/| /' conftest.$ac_ext >&5 3299 3300ac_header_compiler=no 3301fi 3302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3304echo "${ECHO_T}$ac_header_compiler" >&6 3305 3306# Is the header present? 3307echo "$as_me:$LINENO: checking $ac_header presence" >&5 3308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3309cat >conftest.$ac_ext <<_ACEOF 3310/* confdefs.h. */ 3311_ACEOF 3312cat confdefs.h >>conftest.$ac_ext 3313cat >>conftest.$ac_ext <<_ACEOF 3314/* end confdefs.h. */ 3315#include <$ac_header> 3316_ACEOF 3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3319 ac_status=$? 3320 grep -v '^ *+' conftest.er1 >conftest.err 3321 rm -f conftest.er1 3322 cat conftest.err >&5 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); } >/dev/null; then 3325 if test -s conftest.err; then 3326 ac_cpp_err=$ac_c_preproc_warn_flag 3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3328 else 3329 ac_cpp_err= 3330 fi 3331else 3332 ac_cpp_err=yes 3333fi 3334if test -z "$ac_cpp_err"; then 3335 ac_header_preproc=yes 3336else 3337 echo "$as_me: failed program was:" >&5 3338sed 's/^/| /' conftest.$ac_ext >&5 3339 3340 ac_header_preproc=no 3341fi 3342rm -f conftest.err conftest.$ac_ext 3343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3344echo "${ECHO_T}$ac_header_preproc" >&6 3345 3346# So? What about this header? 3347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3348 yes:no: ) 3349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3353 ac_header_preproc=yes 3354 ;; 3355 no:yes:* ) 3356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3368 ( 3369 cat <<\_ASBOX 3370## ------------------------------------------ ## 3371## Report this to the AC_PACKAGE_NAME lists. ## 3372## ------------------------------------------ ## 3373_ASBOX 3374 ) | 3375 sed "s/^/$as_me: WARNING: /" >&2 3376 ;; 3377esac 3378echo "$as_me:$LINENO: checking for $ac_header" >&5 3379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3380if eval "test \"\${$as_ac_Header+set}\" = set"; then 3381 echo $ECHO_N "(cached) $ECHO_C" >&6 3382else 3383 eval "$as_ac_Header=\$ac_header_preproc" 3384fi 3385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3387 3388fi 3389if test `eval echo '${'$as_ac_Header'}'` = yes; then 3390 cat >>confdefs.h <<_ACEOF 3391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3392_ACEOF 3393 3394fi 3395 3396done 3397 3398 3399 3400for ac_header in sys/time.h sys/resource.h 3401do 3402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3403if eval "test \"\${$as_ac_Header+set}\" = set"; then 3404 echo "$as_me:$LINENO: checking for $ac_header" >&5 3405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3406if eval "test \"\${$as_ac_Header+set}\" = set"; then 3407 echo $ECHO_N "(cached) $ECHO_C" >&6 3408fi 3409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3411else 3412 # Is the header compilable? 3413echo "$as_me:$LINENO: checking $ac_header usability" >&5 3414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3415cat >conftest.$ac_ext <<_ACEOF 3416/* confdefs.h. */ 3417_ACEOF 3418cat confdefs.h >>conftest.$ac_ext 3419cat >>conftest.$ac_ext <<_ACEOF 3420/* end confdefs.h. */ 3421$ac_includes_default 3422#include <$ac_header> 3423_ACEOF 3424rm -f conftest.$ac_objext 3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3426 (eval $ac_compile) 2>conftest.er1 3427 ac_status=$? 3428 grep -v '^ *+' conftest.er1 >conftest.err 3429 rm -f conftest.er1 3430 cat conftest.err >&5 3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3432 (exit $ac_status); } && 3433 { ac_try='test -z "$ac_c_werror_flag" 3434 || test ! -s conftest.err' 3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3436 (eval $ac_try) 2>&5 3437 ac_status=$? 3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3439 (exit $ac_status); }; } && 3440 { ac_try='test -s conftest.$ac_objext' 3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3442 (eval $ac_try) 2>&5 3443 ac_status=$? 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); }; }; then 3446 ac_header_compiler=yes 3447else 3448 echo "$as_me: failed program was:" >&5 3449sed 's/^/| /' conftest.$ac_ext >&5 3450 3451ac_header_compiler=no 3452fi 3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3455echo "${ECHO_T}$ac_header_compiler" >&6 3456 3457# Is the header present? 3458echo "$as_me:$LINENO: checking $ac_header presence" >&5 3459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3460cat >conftest.$ac_ext <<_ACEOF 3461/* confdefs.h. */ 3462_ACEOF 3463cat confdefs.h >>conftest.$ac_ext 3464cat >>conftest.$ac_ext <<_ACEOF 3465/* end confdefs.h. */ 3466#include <$ac_header> 3467_ACEOF 3468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3470 ac_status=$? 3471 grep -v '^ *+' conftest.er1 >conftest.err 3472 rm -f conftest.er1 3473 cat conftest.err >&5 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } >/dev/null; then 3476 if test -s conftest.err; then 3477 ac_cpp_err=$ac_c_preproc_warn_flag 3478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3479 else 3480 ac_cpp_err= 3481 fi 3482else 3483 ac_cpp_err=yes 3484fi 3485if test -z "$ac_cpp_err"; then 3486 ac_header_preproc=yes 3487else 3488 echo "$as_me: failed program was:" >&5 3489sed 's/^/| /' conftest.$ac_ext >&5 3490 3491 ac_header_preproc=no 3492fi 3493rm -f conftest.err conftest.$ac_ext 3494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3495echo "${ECHO_T}$ac_header_preproc" >&6 3496 3497# So? What about this header? 3498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3499 yes:no: ) 3500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3504 ac_header_preproc=yes 3505 ;; 3506 no:yes:* ) 3507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3519 ( 3520 cat <<\_ASBOX 3521## ------------------------------------------ ## 3522## Report this to the AC_PACKAGE_NAME lists. ## 3523## ------------------------------------------ ## 3524_ASBOX 3525 ) | 3526 sed "s/^/$as_me: WARNING: /" >&2 3527 ;; 3528esac 3529echo "$as_me:$LINENO: checking for $ac_header" >&5 3530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3531if eval "test \"\${$as_ac_Header+set}\" = set"; then 3532 echo $ECHO_N "(cached) $ECHO_C" >&6 3533else 3534 eval "$as_ac_Header=\$ac_header_preproc" 3535fi 3536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3538 3539fi 3540if test `eval echo '${'$as_ac_Header'}'` = yes; then 3541 cat >>confdefs.h <<_ACEOF 3542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3543_ACEOF 3544 3545fi 3546 3547done 3548 3549 3550 3551for ac_header in fcntl.h fpu_control.h 3552do 3553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3554if eval "test \"\${$as_ac_Header+set}\" = set"; then 3555 echo "$as_me:$LINENO: checking for $ac_header" >&5 3556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3557if eval "test \"\${$as_ac_Header+set}\" = set"; then 3558 echo $ECHO_N "(cached) $ECHO_C" >&6 3559fi 3560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3562else 3563 # Is the header compilable? 3564echo "$as_me:$LINENO: checking $ac_header usability" >&5 3565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3566cat >conftest.$ac_ext <<_ACEOF 3567/* confdefs.h. */ 3568_ACEOF 3569cat confdefs.h >>conftest.$ac_ext 3570cat >>conftest.$ac_ext <<_ACEOF 3571/* end confdefs.h. */ 3572$ac_includes_default 3573#include <$ac_header> 3574_ACEOF 3575rm -f conftest.$ac_objext 3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3577 (eval $ac_compile) 2>conftest.er1 3578 ac_status=$? 3579 grep -v '^ *+' conftest.er1 >conftest.err 3580 rm -f conftest.er1 3581 cat conftest.err >&5 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 (exit $ac_status); } && 3584 { ac_try='test -z "$ac_c_werror_flag" 3585 || test ! -s conftest.err' 3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3587 (eval $ac_try) 2>&5 3588 ac_status=$? 3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3590 (exit $ac_status); }; } && 3591 { ac_try='test -s conftest.$ac_objext' 3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3593 (eval $ac_try) 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); }; }; then 3597 ac_header_compiler=yes 3598else 3599 echo "$as_me: failed program was:" >&5 3600sed 's/^/| /' conftest.$ac_ext >&5 3601 3602ac_header_compiler=no 3603fi 3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3606echo "${ECHO_T}$ac_header_compiler" >&6 3607 3608# Is the header present? 3609echo "$as_me:$LINENO: checking $ac_header presence" >&5 3610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3611cat >conftest.$ac_ext <<_ACEOF 3612/* confdefs.h. */ 3613_ACEOF 3614cat confdefs.h >>conftest.$ac_ext 3615cat >>conftest.$ac_ext <<_ACEOF 3616/* end confdefs.h. */ 3617#include <$ac_header> 3618_ACEOF 3619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3621 ac_status=$? 3622 grep -v '^ *+' conftest.er1 >conftest.err 3623 rm -f conftest.er1 3624 cat conftest.err >&5 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } >/dev/null; then 3627 if test -s conftest.err; then 3628 ac_cpp_err=$ac_c_preproc_warn_flag 3629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3630 else 3631 ac_cpp_err= 3632 fi 3633else 3634 ac_cpp_err=yes 3635fi 3636if test -z "$ac_cpp_err"; then 3637 ac_header_preproc=yes 3638else 3639 echo "$as_me: failed program was:" >&5 3640sed 's/^/| /' conftest.$ac_ext >&5 3641 3642 ac_header_preproc=no 3643fi 3644rm -f conftest.err conftest.$ac_ext 3645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3646echo "${ECHO_T}$ac_header_preproc" >&6 3647 3648# So? What about this header? 3649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3650 yes:no: ) 3651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3655 ac_header_preproc=yes 3656 ;; 3657 no:yes:* ) 3658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3670 ( 3671 cat <<\_ASBOX 3672## ------------------------------------------ ## 3673## Report this to the AC_PACKAGE_NAME lists. ## 3674## ------------------------------------------ ## 3675_ASBOX 3676 ) | 3677 sed "s/^/$as_me: WARNING: /" >&2 3678 ;; 3679esac 3680echo "$as_me:$LINENO: checking for $ac_header" >&5 3681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3682if eval "test \"\${$as_ac_Header+set}\" = set"; then 3683 echo $ECHO_N "(cached) $ECHO_C" >&6 3684else 3685 eval "$as_ac_Header=\$ac_header_preproc" 3686fi 3687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3689 3690fi 3691if test `eval echo '${'$as_ac_Header'}'` = yes; then 3692 cat >>confdefs.h <<_ACEOF 3693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3694_ACEOF 3695 3696fi 3697 3698done 3699 3700 3701 3702 3703for ac_header in dlfcn.h errno.h sys/stat.h 3704do 3705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3706if eval "test \"\${$as_ac_Header+set}\" = set"; then 3707 echo "$as_me:$LINENO: checking for $ac_header" >&5 3708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3709if eval "test \"\${$as_ac_Header+set}\" = set"; then 3710 echo $ECHO_N "(cached) $ECHO_C" >&6 3711fi 3712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3714else 3715 # Is the header compilable? 3716echo "$as_me:$LINENO: checking $ac_header usability" >&5 3717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3718cat >conftest.$ac_ext <<_ACEOF 3719/* confdefs.h. */ 3720_ACEOF 3721cat confdefs.h >>conftest.$ac_ext 3722cat >>conftest.$ac_ext <<_ACEOF 3723/* end confdefs.h. */ 3724$ac_includes_default 3725#include <$ac_header> 3726_ACEOF 3727rm -f conftest.$ac_objext 3728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3729 (eval $ac_compile) 2>conftest.er1 3730 ac_status=$? 3731 grep -v '^ *+' conftest.er1 >conftest.err 3732 rm -f conftest.er1 3733 cat conftest.err >&5 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3735 (exit $ac_status); } && 3736 { ac_try='test -z "$ac_c_werror_flag" 3737 || test ! -s conftest.err' 3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3739 (eval $ac_try) 2>&5 3740 ac_status=$? 3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3742 (exit $ac_status); }; } && 3743 { ac_try='test -s conftest.$ac_objext' 3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3745 (eval $ac_try) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); }; }; then 3749 ac_header_compiler=yes 3750else 3751 echo "$as_me: failed program was:" >&5 3752sed 's/^/| /' conftest.$ac_ext >&5 3753 3754ac_header_compiler=no 3755fi 3756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3758echo "${ECHO_T}$ac_header_compiler" >&6 3759 3760# Is the header present? 3761echo "$as_me:$LINENO: checking $ac_header presence" >&5 3762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3763cat >conftest.$ac_ext <<_ACEOF 3764/* confdefs.h. */ 3765_ACEOF 3766cat confdefs.h >>conftest.$ac_ext 3767cat >>conftest.$ac_ext <<_ACEOF 3768/* end confdefs.h. */ 3769#include <$ac_header> 3770_ACEOF 3771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3773 ac_status=$? 3774 grep -v '^ *+' conftest.er1 >conftest.err 3775 rm -f conftest.er1 3776 cat conftest.err >&5 3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); } >/dev/null; then 3779 if test -s conftest.err; then 3780 ac_cpp_err=$ac_c_preproc_warn_flag 3781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3782 else 3783 ac_cpp_err= 3784 fi 3785else 3786 ac_cpp_err=yes 3787fi 3788if test -z "$ac_cpp_err"; then 3789 ac_header_preproc=yes 3790else 3791 echo "$as_me: failed program was:" >&5 3792sed 's/^/| /' conftest.$ac_ext >&5 3793 3794 ac_header_preproc=no 3795fi 3796rm -f conftest.err conftest.$ac_ext 3797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3798echo "${ECHO_T}$ac_header_preproc" >&6 3799 3800# So? What about this header? 3801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3802 yes:no: ) 3803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3807 ac_header_preproc=yes 3808 ;; 3809 no:yes:* ) 3810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3822 ( 3823 cat <<\_ASBOX 3824## ------------------------------------------ ## 3825## Report this to the AC_PACKAGE_NAME lists. ## 3826## ------------------------------------------ ## 3827_ASBOX 3828 ) | 3829 sed "s/^/$as_me: WARNING: /" >&2 3830 ;; 3831esac 3832echo "$as_me:$LINENO: checking for $ac_header" >&5 3833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3834if eval "test \"\${$as_ac_Header+set}\" = set"; then 3835 echo $ECHO_N "(cached) $ECHO_C" >&6 3836else 3837 eval "$as_ac_Header=\$ac_header_preproc" 3838fi 3839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3841 3842fi 3843if test `eval echo '${'$as_ac_Header'}'` = yes; then 3844 cat >>confdefs.h <<_ACEOF 3845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3846_ACEOF 3847 3848fi 3849 3850done 3851 3852 3853 3854 3855 3856for ac_func in getrusage time sigaction __setfpucw 3857do 3858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3859echo "$as_me:$LINENO: checking for $ac_func" >&5 3860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3861if eval "test \"\${$as_ac_var+set}\" = set"; then 3862 echo $ECHO_N "(cached) $ECHO_C" >&6 3863else 3864 cat >conftest.$ac_ext <<_ACEOF 3865/* confdefs.h. */ 3866_ACEOF 3867cat confdefs.h >>conftest.$ac_ext 3868cat >>conftest.$ac_ext <<_ACEOF 3869/* end confdefs.h. */ 3870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3871 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3872#define $ac_func innocuous_$ac_func 3873 3874/* System header to define __stub macros and hopefully few prototypes, 3875 which can conflict with char $ac_func (); below. 3876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3877 <limits.h> exists even on freestanding compilers. */ 3878 3879#ifdef __STDC__ 3880# include <limits.h> 3881#else 3882# include <assert.h> 3883#endif 3884 3885#undef $ac_func 3886 3887/* Override any gcc2 internal prototype to avoid an error. */ 3888#ifdef __cplusplus 3889extern "C" 3890{ 3891#endif 3892/* We use char because int might match the return type of a gcc2 3893 builtin and then its argument prototype would still apply. */ 3894char $ac_func (); 3895/* The GNU C library defines this for functions which it implements 3896 to always fail with ENOSYS. Some functions are actually named 3897 something starting with __ and the normal name is an alias. */ 3898#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3899choke me 3900#else 3901char (*f) () = $ac_func; 3902#endif 3903#ifdef __cplusplus 3904} 3905#endif 3906 3907int 3908main () 3909{ 3910return f != $ac_func; 3911 ; 3912 return 0; 3913} 3914_ACEOF 3915rm -f conftest.$ac_objext conftest$ac_exeext 3916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3917 (eval $ac_link) 2>conftest.er1 3918 ac_status=$? 3919 grep -v '^ *+' conftest.er1 >conftest.err 3920 rm -f conftest.er1 3921 cat conftest.err >&5 3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3923 (exit $ac_status); } && 3924 { ac_try='test -z "$ac_c_werror_flag" 3925 || test ! -s conftest.err' 3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3927 (eval $ac_try) 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); }; } && 3931 { ac_try='test -s conftest$ac_exeext' 3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3933 (eval $ac_try) 2>&5 3934 ac_status=$? 3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3936 (exit $ac_status); }; }; then 3937 eval "$as_ac_var=yes" 3938else 3939 echo "$as_me: failed program was:" >&5 3940sed 's/^/| /' conftest.$ac_ext >&5 3941 3942eval "$as_ac_var=no" 3943fi 3944rm -f conftest.err conftest.$ac_objext \ 3945 conftest$ac_exeext conftest.$ac_ext 3946fi 3947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3948echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3949if test `eval echo '${'$as_ac_var'}'` = yes; then 3950 cat >>confdefs.h <<_ACEOF 3951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3952_ACEOF 3953 3954fi 3955done 3956 3957 3958# Check for socket libraries 3959 3960echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 3961echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 3962if test "${ac_cv_lib_socket_bind+set}" = set; then 3963 echo $ECHO_N "(cached) $ECHO_C" >&6 3964else 3965 ac_check_lib_save_LIBS=$LIBS 3966LIBS="-lsocket $LIBS" 3967cat >conftest.$ac_ext <<_ACEOF 3968/* confdefs.h. */ 3969_ACEOF 3970cat confdefs.h >>conftest.$ac_ext 3971cat >>conftest.$ac_ext <<_ACEOF 3972/* end confdefs.h. */ 3973 3974/* Override any gcc2 internal prototype to avoid an error. */ 3975#ifdef __cplusplus 3976extern "C" 3977#endif 3978/* We use char because int might match the return type of a gcc2 3979 builtin and then its argument prototype would still apply. */ 3980char bind (); 3981int 3982main () 3983{ 3984bind (); 3985 ; 3986 return 0; 3987} 3988_ACEOF 3989rm -f conftest.$ac_objext conftest$ac_exeext 3990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3991 (eval $ac_link) 2>conftest.er1 3992 ac_status=$? 3993 grep -v '^ *+' conftest.er1 >conftest.err 3994 rm -f conftest.er1 3995 cat conftest.err >&5 3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3997 (exit $ac_status); } && 3998 { ac_try='test -z "$ac_c_werror_flag" 3999 || test ! -s conftest.err' 4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4001 (eval $ac_try) 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); }; } && 4005 { ac_try='test -s conftest$ac_exeext' 4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4007 (eval $ac_try) 2>&5 4008 ac_status=$? 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4010 (exit $ac_status); }; }; then 4011 ac_cv_lib_socket_bind=yes 4012else 4013 echo "$as_me: failed program was:" >&5 4014sed 's/^/| /' conftest.$ac_ext >&5 4015 4016ac_cv_lib_socket_bind=no 4017fi 4018rm -f conftest.err conftest.$ac_objext \ 4019 conftest$ac_exeext conftest.$ac_ext 4020LIBS=$ac_check_lib_save_LIBS 4021fi 4022echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 4023echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 4024if test $ac_cv_lib_socket_bind = yes; then 4025 cat >>confdefs.h <<_ACEOF 4026#define HAVE_LIBSOCKET 1 4027_ACEOF 4028 4029 LIBS="-lsocket $LIBS" 4030 4031fi 4032 4033 4034echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4035echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4036if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4037 echo $ECHO_N "(cached) $ECHO_C" >&6 4038else 4039 ac_check_lib_save_LIBS=$LIBS 4040LIBS="-lnsl $LIBS" 4041cat >conftest.$ac_ext <<_ACEOF 4042/* confdefs.h. */ 4043_ACEOF 4044cat confdefs.h >>conftest.$ac_ext 4045cat >>conftest.$ac_ext <<_ACEOF 4046/* end confdefs.h. */ 4047 4048/* Override any gcc2 internal prototype to avoid an error. */ 4049#ifdef __cplusplus 4050extern "C" 4051#endif 4052/* We use char because int might match the return type of a gcc2 4053 builtin and then its argument prototype would still apply. */ 4054char gethostbyname (); 4055int 4056main () 4057{ 4058gethostbyname (); 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063rm -f conftest.$ac_objext conftest$ac_exeext 4064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4065 (eval $ac_link) 2>conftest.er1 4066 ac_status=$? 4067 grep -v '^ *+' conftest.er1 >conftest.err 4068 rm -f conftest.er1 4069 cat conftest.err >&5 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); } && 4072 { ac_try='test -z "$ac_c_werror_flag" 4073 || test ! -s conftest.err' 4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4075 (eval $ac_try) 2>&5 4076 ac_status=$? 4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4078 (exit $ac_status); }; } && 4079 { ac_try='test -s conftest$ac_exeext' 4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4081 (eval $ac_try) 2>&5 4082 ac_status=$? 4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4084 (exit $ac_status); }; }; then 4085 ac_cv_lib_nsl_gethostbyname=yes 4086else 4087 echo "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090ac_cv_lib_nsl_gethostbyname=no 4091fi 4092rm -f conftest.err conftest.$ac_objext \ 4093 conftest$ac_exeext conftest.$ac_ext 4094LIBS=$ac_check_lib_save_LIBS 4095fi 4096echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4097echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4098if test $ac_cv_lib_nsl_gethostbyname = yes; then 4099 cat >>confdefs.h <<_ACEOF 4100#define HAVE_LIBNSL 1 4101_ACEOF 4102 4103 LIBS="-lnsl $LIBS" 4104 4105fi 4106 4107 4108. ${srcdir}/../../bfd/configure.host 4109 4110 4111 4112USE_MAINTAINER_MODE=no 4113# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4114if test "${enable_maintainer_mode+set}" = set; then 4115 enableval="$enable_maintainer_mode" 4116 case "${enableval}" in 4117 yes) MAINT="" USE_MAINTAINER_MODE=yes ;; 4118 no) MAINT="#" ;; 4119 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 4120echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} 4121 { (exit 1); exit 1; }; }; MAINT="#" ;; 4122esac 4123if test x"$silent" != x"yes" && test x"$MAINT" = x""; then 4124 echo "Setting maintainer mode" 6>&1 4125fi 4126else 4127 MAINT="#" 4128fi; 4129 4130 4131# Check whether --enable-sim-bswap or --disable-sim-bswap was given. 4132if test "${enable_sim_bswap+set}" = set; then 4133 enableval="$enable_sim_bswap" 4134 case "${enableval}" in 4135 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; 4136 no) sim_bswap="-DWITH_BSWAP=0";; 4137 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 4138echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} 4139 { (exit 1); exit 1; }; }; sim_bswap="";; 4140esac 4141if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then 4142 echo "Setting bswap flags = $sim_bswap" 6>&1 4143fi 4144else 4145 sim_bswap="" 4146fi; 4147 4148 4149# Check whether --enable-sim-cflags or --disable-sim-cflags was given. 4150if test "${enable_sim_cflags+set}" = set; then 4151 enableval="$enable_sim_cflags" 4152 case "${enableval}" in 4153 yes) sim_cflags="-O2 -fomit-frame-pointer";; 4154 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 4155echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} 4156 { (exit 1); exit 1; }; }; sim_cflags="";; 4157 no) sim_cflags="";; 4158 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; 4159esac 4160if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then 4161 echo "Setting sim cflags = $sim_cflags" 6>&1 4162fi 4163else 4164 sim_cflags="" 4165fi; 4166 4167 4168# Check whether --enable-sim-debug or --disable-sim-debug was given. 4169if test "${enable_sim_debug+set}" = set; then 4170 enableval="$enable_sim_debug" 4171 case "${enableval}" in 4172 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; 4173 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; 4174 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; 4175esac 4176if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then 4177 echo "Setting sim debug = $sim_debug" 6>&1 4178fi 4179else 4180 sim_debug="" 4181fi; 4182 4183 4184# Check whether --enable-sim-stdio or --disable-sim-stdio was given. 4185if test "${enable_sim_stdio+set}" = set; then 4186 enableval="$enable_sim_stdio" 4187 case "${enableval}" in 4188 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; 4189 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; 4190 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 4191echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} 4192 { (exit 1); exit 1; }; }; sim_stdio="";; 4193esac 4194if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then 4195 echo "Setting stdio flags = $sim_stdio" 6>&1 4196fi 4197else 4198 sim_stdio="" 4199fi; 4200 4201 4202# Check whether --enable-sim-trace or --disable-sim-trace was given. 4203if test "${enable_sim_trace+set}" = set; then 4204 enableval="$enable_sim_trace" 4205 case "${enableval}" in 4206 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; 4207 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; 4208 [-0-9]*) 4209 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; 4210 [a-z]*) 4211 sim_trace="" 4212 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do 4213 if test x"$sim_trace" = x; then 4214 sim_trace="-DWITH_TRACE='(TRACE_$x" 4215 else 4216 sim_trace="${sim_trace}|TRACE_$x" 4217 fi 4218 done 4219 sim_trace="$sim_trace)'" ;; 4220esac 4221if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then 4222 echo "Setting sim trace = $sim_trace" 6>&1 4223fi 4224else 4225 sim_trace="" 4226fi; 4227 4228 4229# Check whether --enable-sim-profile or --disable-sim-profile was given. 4230if test "${enable_sim_profile+set}" = set; then 4231 enableval="$enable_sim_profile" 4232 case "${enableval}" in 4233 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; 4234 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; 4235 [-0-9]*) 4236 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; 4237 [a-z]*) 4238 sim_profile="" 4239 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do 4240 if test x"$sim_profile" = x; then 4241 sim_profile="-DWITH_PROFILE='(PROFILE_$x" 4242 else 4243 sim_profile="${sim_profile}|PROFILE_$x" 4244 fi 4245 done 4246 sim_profile="$sim_profile)'" ;; 4247esac 4248if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then 4249 echo "Setting sim profile = $sim_profile" 6>&1 4250fi 4251else 4252 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" 4253fi; 4254 4255 4256echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4257echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4258if test "${ac_cv_type_signal+set}" = set; then 4259 echo $ECHO_N "(cached) $ECHO_C" >&6 4260else 4261 cat >conftest.$ac_ext <<_ACEOF 4262/* confdefs.h. */ 4263_ACEOF 4264cat confdefs.h >>conftest.$ac_ext 4265cat >>conftest.$ac_ext <<_ACEOF 4266/* end confdefs.h. */ 4267#include <sys/types.h> 4268#include <signal.h> 4269#ifdef signal 4270# undef signal 4271#endif 4272#ifdef __cplusplus 4273extern "C" void (*signal (int, void (*)(int)))(int); 4274#else 4275void (*signal ()) (); 4276#endif 4277 4278int 4279main () 4280{ 4281int i; 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286rm -f conftest.$ac_objext 4287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4288 (eval $ac_compile) 2>conftest.er1 4289 ac_status=$? 4290 grep -v '^ *+' conftest.er1 >conftest.err 4291 rm -f conftest.er1 4292 cat conftest.err >&5 4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294 (exit $ac_status); } && 4295 { ac_try='test -z "$ac_c_werror_flag" 4296 || test ! -s conftest.err' 4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4298 (eval $ac_try) 2>&5 4299 ac_status=$? 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); }; } && 4302 { ac_try='test -s conftest.$ac_objext' 4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4304 (eval $ac_try) 2>&5 4305 ac_status=$? 4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4307 (exit $ac_status); }; }; then 4308 ac_cv_type_signal=void 4309else 4310 echo "$as_me: failed program was:" >&5 4311sed 's/^/| /' conftest.$ac_ext >&5 4312 4313ac_cv_type_signal=int 4314fi 4315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4316fi 4317echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4318echo "${ECHO_T}$ac_cv_type_signal" >&6 4319 4320cat >>confdefs.h <<_ACEOF 4321#define RETSIGTYPE $ac_cv_type_signal 4322_ACEOF 4323 4324 4325 4326 4327 4328sim_link_files= 4329sim_link_links= 4330 4331sim_link_links=tconfig.h 4332if test -f ${srcdir}/tconfig.in 4333then 4334 sim_link_files=tconfig.in 4335else 4336 sim_link_files=../common/tconfig.in 4337fi 4338 4339# targ-vals.def points to the libc macro description file. 4340case "${target}" in 4341*-*-*) TARG_VALS_DEF=../common/nltvals.def ;; 4342esac 4343sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" 4344sim_link_links="${sim_link_links} targ-vals.def" 4345 4346 4347 4348# NOTE: Don't add -Wall or -Wunused, they both include 4349# -Wunused-parameter which reports bogus warnings. 4350# NOTE: If you add to this list, remember to update 4351# gdb/doc/gdbint.texinfo. 4352build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ 4353-Wformat -Wparentheses -Wpointer-arith" 4354# GCC supports -Wuninitialized only with -O or -On, n != 0. 4355if test x${CFLAGS+set} = xset; then 4356 case "${CFLAGS}" in 4357 *"-O0"* ) ;; 4358 *"-O"* ) 4359 build_warnings="${build_warnings} -Wuninitialized" 4360 ;; 4361 esac 4362else 4363 build_warnings="${build_warnings} -Wuninitialized" 4364fi 4365# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs 4366# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value 4367# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual 4368# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes 4369# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls 4370# -Woverloaded-virtual -Winline -Werror" 4371# Check whether --enable-build-warnings or --disable-build-warnings was given. 4372if test "${enable_build_warnings+set}" = set; then 4373 enableval="$enable_build_warnings" 4374 case "${enableval}" in 4375 yes) ;; 4376 no) build_warnings="-w";; 4377 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4378 build_warnings="${build_warnings} ${t}";; 4379 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4380 build_warnings="${t} ${build_warnings}";; 4381 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 4382esac 4383if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 4384 echo "Setting compiler warning flags = $build_warnings" 6>&1 4385fi 4386fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given. 4387if test "${enable_sim_build_warnings+set}" = set; then 4388 enableval="$enable_sim_build_warnings" 4389 case "${enableval}" in 4390 yes) ;; 4391 no) build_warnings="-w";; 4392 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4393 build_warnings="${build_warnings} ${t}";; 4394 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4395 build_warnings="${t} ${build_warnings}";; 4396 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 4397esac 4398if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 4399 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 4400fi 4401fi; WARN_CFLAGS="" 4402WERROR_CFLAGS="" 4403if test "x${build_warnings}" != x -a "x$GCC" = xyes 4404then 4405 echo "$as_me:$LINENO: checking compiler warning flags" >&5 4406echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 4407 # Separate out the -Werror flag as some files just cannot be 4408 # compiled with it enabled. 4409 for w in ${build_warnings}; do 4410 case $w in 4411 -Werr*) WERROR_CFLAGS=-Werror ;; 4412 *) # Check that GCC accepts it 4413 saved_CFLAGS="$CFLAGS" 4414 CFLAGS="$CFLAGS $w" 4415 cat >conftest.$ac_ext <<_ACEOF 4416/* confdefs.h. */ 4417_ACEOF 4418cat confdefs.h >>conftest.$ac_ext 4419cat >>conftest.$ac_ext <<_ACEOF 4420/* end confdefs.h. */ 4421 4422int 4423main () 4424{ 4425 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430rm -f conftest.$ac_objext 4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4432 (eval $ac_compile) 2>conftest.er1 4433 ac_status=$? 4434 grep -v '^ *+' conftest.er1 >conftest.err 4435 rm -f conftest.er1 4436 cat conftest.err >&5 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); } && 4439 { ac_try='test -z "$ac_c_werror_flag" 4440 || test ! -s conftest.err' 4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4442 (eval $ac_try) 2>&5 4443 ac_status=$? 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); }; } && 4446 { ac_try='test -s conftest.$ac_objext' 4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4448 (eval $ac_try) 2>&5 4449 ac_status=$? 4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4451 (exit $ac_status); }; }; then 4452 WARN_CFLAGS="${WARN_CFLAGS} $w" 4453else 4454 echo "$as_me: failed program was:" >&5 4455sed 's/^/| /' conftest.$ac_ext >&5 4456 4457fi 4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4459 CFLAGS="$saved_CFLAGS" 4460 esac 4461 done 4462 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 4463echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 4464fi 4465 4466 4467 4468for ac_header in unistd.h 4469do 4470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4471if eval "test \"\${$as_ac_Header+set}\" = set"; then 4472 echo "$as_me:$LINENO: checking for $ac_header" >&5 4473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4474if eval "test \"\${$as_ac_Header+set}\" = set"; then 4475 echo $ECHO_N "(cached) $ECHO_C" >&6 4476fi 4477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4479else 4480 # Is the header compilable? 4481echo "$as_me:$LINENO: checking $ac_header usability" >&5 4482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4483cat >conftest.$ac_ext <<_ACEOF 4484/* confdefs.h. */ 4485_ACEOF 4486cat confdefs.h >>conftest.$ac_ext 4487cat >>conftest.$ac_ext <<_ACEOF 4488/* end confdefs.h. */ 4489$ac_includes_default 4490#include <$ac_header> 4491_ACEOF 4492rm -f conftest.$ac_objext 4493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4494 (eval $ac_compile) 2>conftest.er1 4495 ac_status=$? 4496 grep -v '^ *+' conftest.er1 >conftest.err 4497 rm -f conftest.er1 4498 cat conftest.err >&5 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); } && 4501 { ac_try='test -z "$ac_c_werror_flag" 4502 || test ! -s conftest.err' 4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4504 (eval $ac_try) 2>&5 4505 ac_status=$? 4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4507 (exit $ac_status); }; } && 4508 { ac_try='test -s conftest.$ac_objext' 4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4510 (eval $ac_try) 2>&5 4511 ac_status=$? 4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4513 (exit $ac_status); }; }; then 4514 ac_header_compiler=yes 4515else 4516 echo "$as_me: failed program was:" >&5 4517sed 's/^/| /' conftest.$ac_ext >&5 4518 4519ac_header_compiler=no 4520fi 4521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4523echo "${ECHO_T}$ac_header_compiler" >&6 4524 4525# Is the header present? 4526echo "$as_me:$LINENO: checking $ac_header presence" >&5 4527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4528cat >conftest.$ac_ext <<_ACEOF 4529/* confdefs.h. */ 4530_ACEOF 4531cat confdefs.h >>conftest.$ac_ext 4532cat >>conftest.$ac_ext <<_ACEOF 4533/* end confdefs.h. */ 4534#include <$ac_header> 4535_ACEOF 4536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4538 ac_status=$? 4539 grep -v '^ *+' conftest.er1 >conftest.err 4540 rm -f conftest.er1 4541 cat conftest.err >&5 4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4543 (exit $ac_status); } >/dev/null; then 4544 if test -s conftest.err; then 4545 ac_cpp_err=$ac_c_preproc_warn_flag 4546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4547 else 4548 ac_cpp_err= 4549 fi 4550else 4551 ac_cpp_err=yes 4552fi 4553if test -z "$ac_cpp_err"; then 4554 ac_header_preproc=yes 4555else 4556 echo "$as_me: failed program was:" >&5 4557sed 's/^/| /' conftest.$ac_ext >&5 4558 4559 ac_header_preproc=no 4560fi 4561rm -f conftest.err conftest.$ac_ext 4562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4563echo "${ECHO_T}$ac_header_preproc" >&6 4564 4565# So? What about this header? 4566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4567 yes:no: ) 4568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4572 ac_header_preproc=yes 4573 ;; 4574 no:yes:* ) 4575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4587 ( 4588 cat <<\_ASBOX 4589## ------------------------------------------ ## 4590## Report this to the AC_PACKAGE_NAME lists. ## 4591## ------------------------------------------ ## 4592_ASBOX 4593 ) | 4594 sed "s/^/$as_me: WARNING: /" >&2 4595 ;; 4596esac 4597echo "$as_me:$LINENO: checking for $ac_header" >&5 4598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4599if eval "test \"\${$as_ac_Header+set}\" = set"; then 4600 echo $ECHO_N "(cached) $ECHO_C" >&6 4601else 4602 eval "$as_ac_Header=\$ac_header_preproc" 4603fi 4604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4606 4607fi 4608if test `eval echo '${'$as_ac_Header'}'` = yes; then 4609 cat >>confdefs.h <<_ACEOF 4610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4611_ACEOF 4612 4613fi 4614 4615done 4616 4617 4618 4619 4620ac_sources="$sim_link_files" 4621ac_dests="$sim_link_links" 4622while test -n "$ac_sources"; do 4623 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 4624 set $ac_sources; ac_source=$1; shift; ac_sources=$* 4625 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" 4626done 4627 ac_config_links="$ac_config_links $ac_config_links_1" 4628 4629cgen_breaks="" 4630if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then 4631cgen_breaks="break cgen_rtx_error"; 4632fi 4633 4634 ac_config_files="$ac_config_files Makefile.sim:Makefile.in" 4635 4636 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" 4637 4638 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" 4639 4640 ac_config_commands="$ac_config_commands Makefile" 4641 4642 ac_config_commands="$ac_config_commands stamp-h" 4643 4644cat >confcache <<\_ACEOF 4645# This file is a shell script that caches the results of configure 4646# tests run on this system so they can be shared between configure 4647# scripts and configure runs, see configure's option --config-cache. 4648# It is not useful on other systems. If it contains results you don't 4649# want to keep, you may remove or edit it. 4650# 4651# config.status only pays attention to the cache file if you give it 4652# the --recheck option to rerun configure. 4653# 4654# `ac_cv_env_foo' variables (set or unset) will be overridden when 4655# loading this file, other *unset* `ac_cv_foo' will be assigned the 4656# following values. 4657 4658_ACEOF 4659 4660# The following way of writing the cache mishandles newlines in values, 4661# but we know of no workaround that is simple, portable, and efficient. 4662# So, don't put newlines in cache variables' values. 4663# Ultrix sh set writes to stderr and can't be redirected directly, 4664# and sets the high bit in the cache file unless we assign to the vars. 4665{ 4666 (set) 2>&1 | 4667 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4668 *ac_space=\ *) 4669 # `set' does not quote correctly, so add quotes (double-quote 4670 # substitution turns \\\\ into \\, and sed turns \\ into \). 4671 sed -n \ 4672 "s/'/'\\\\''/g; 4673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4674 ;; 4675 *) 4676 # `set' quotes correctly as required by POSIX, so do not add quotes. 4677 sed -n \ 4678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4679 ;; 4680 esac; 4681} | 4682 sed ' 4683 t clear 4684 : clear 4685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4686 t end 4687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4688 : end' >>confcache 4689if diff $cache_file confcache >/dev/null 2>&1; then :; else 4690 if test -w $cache_file; then 4691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4692 cat confcache >$cache_file 4693 else 4694 echo "not updating unwritable cache $cache_file" 4695 fi 4696fi 4697rm -f confcache 4698 4699test "x$prefix" = xNONE && prefix=$ac_default_prefix 4700# Let make expand exec_prefix. 4701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4702 4703# VPATH may cause trouble with some makes, so we remove $(srcdir), 4704# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4705# trailing colons and then remove the whole line if VPATH becomes empty 4706# (actually we leave an empty line to preserve line numbers). 4707if test "x$srcdir" = x.; then 4708 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4709s/:*\$(srcdir):*/:/; 4710s/:*\${srcdir}:*/:/; 4711s/:*@srcdir@:*/:/; 4712s/^\([^=]*=[ ]*\):*/\1/; 4713s/:*$//; 4714s/^[^=]*=[ ]*$//; 4715}' 4716fi 4717 4718DEFS=-DHAVE_CONFIG_H 4719 4720ac_libobjs= 4721ac_ltlibobjs= 4722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4723 # 1. Remove the extension, and $U if already installed. 4724 ac_i=`echo "$ac_i" | 4725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 4726 # 2. Add them. 4727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 4728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4729done 4730LIBOBJS=$ac_libobjs 4731 4732LTLIBOBJS=$ac_ltlibobjs 4733 4734 4735 4736: ${CONFIG_STATUS=./config.status} 4737ac_clean_files_save=$ac_clean_files 4738ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4739{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4740echo "$as_me: creating $CONFIG_STATUS" >&6;} 4741cat >$CONFIG_STATUS <<_ACEOF 4742#! $SHELL 4743# Generated by $as_me. 4744# Run this file to recreate the current configuration. 4745# Compiler output produced by configure, useful for debugging 4746# configure, is in config.log if it exists. 4747 4748debug=false 4749ac_cs_recheck=false 4750ac_cs_silent=false 4751SHELL=\${CONFIG_SHELL-$SHELL} 4752_ACEOF 4753 4754cat >>$CONFIG_STATUS <<\_ACEOF 4755## --------------------- ## 4756## M4sh Initialization. ## 4757## --------------------- ## 4758 4759# Be Bourne compatible 4760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4761 emulate sh 4762 NULLCMD=: 4763 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 4764 # is contrary to our usage. Disable this feature. 4765 alias -g '${1+"$@"}'='"$@"' 4766elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4767 set -o posix 4768fi 4769DUALCASE=1; export DUALCASE # for MKS sh 4770 4771# Support unset when possible. 4772if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4773 as_unset=unset 4774else 4775 as_unset=false 4776fi 4777 4778 4779# Work around bugs in pre-3.0 UWIN ksh. 4780$as_unset ENV MAIL MAILPATH 4781PS1='$ ' 4782PS2='> ' 4783PS4='+ ' 4784 4785# NLS nuisances. 4786for as_var in \ 4787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4789 LC_TELEPHONE LC_TIME 4790do 4791 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4792 eval $as_var=C; export $as_var 4793 else 4794 $as_unset $as_var 4795 fi 4796done 4797 4798# Required to use basename. 4799if expr a : '\(a\)' >/dev/null 2>&1; then 4800 as_expr=expr 4801else 4802 as_expr=false 4803fi 4804 4805if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4806 as_basename=basename 4807else 4808 as_basename=false 4809fi 4810 4811 4812# Name of the executable. 4813as_me=`$as_basename "$0" || 4814$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4815 X"$0" : 'X\(//\)$' \| \ 4816 X"$0" : 'X\(/\)$' \| \ 4817 . : '\(.\)' 2>/dev/null || 4818echo X/"$0" | 4819 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4820 /^X\/\(\/\/\)$/{ s//\1/; q; } 4821 /^X\/\(\/\).*/{ s//\1/; q; } 4822 s/.*/./; q'` 4823 4824 4825# PATH needs CR, and LINENO needs CR and PATH. 4826# Avoid depending upon Character Ranges. 4827as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4829as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4830as_cr_digits='0123456789' 4831as_cr_alnum=$as_cr_Letters$as_cr_digits 4832 4833# The user is always right. 4834if test "${PATH_SEPARATOR+set}" != set; then 4835 echo "#! /bin/sh" >conf$$.sh 4836 echo "exit 0" >>conf$$.sh 4837 chmod +x conf$$.sh 4838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4839 PATH_SEPARATOR=';' 4840 else 4841 PATH_SEPARATOR=: 4842 fi 4843 rm -f conf$$.sh 4844fi 4845 4846 4847 as_lineno_1=$LINENO 4848 as_lineno_2=$LINENO 4849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4850 test "x$as_lineno_1" != "x$as_lineno_2" && 4851 test "x$as_lineno_3" = "x$as_lineno_2" || { 4852 # Find who we are. Look in the path if we contain no path at all 4853 # relative or not. 4854 case $0 in 4855 *[\\/]* ) as_myself=$0 ;; 4856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4857for as_dir in $PATH 4858do 4859 IFS=$as_save_IFS 4860 test -z "$as_dir" && as_dir=. 4861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4862done 4863 4864 ;; 4865 esac 4866 # We did not find ourselves, most probably we were run as `sh COMMAND' 4867 # in which case we are not to be found in the path. 4868 if test "x$as_myself" = x; then 4869 as_myself=$0 4870 fi 4871 if test ! -f "$as_myself"; then 4872 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4873echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4874 { (exit 1); exit 1; }; } 4875 fi 4876 case $CONFIG_SHELL in 4877 '') 4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4879for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4880do 4881 IFS=$as_save_IFS 4882 test -z "$as_dir" && as_dir=. 4883 for as_base in sh bash ksh sh5; do 4884 case $as_dir in 4885 /*) 4886 if ("$as_dir/$as_base" -c ' 4887 as_lineno_1=$LINENO 4888 as_lineno_2=$LINENO 4889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4890 test "x$as_lineno_1" != "x$as_lineno_2" && 4891 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4892 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4893 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4894 CONFIG_SHELL=$as_dir/$as_base 4895 export CONFIG_SHELL 4896 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4897 fi;; 4898 esac 4899 done 4900done 4901;; 4902 esac 4903 4904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4905 # uniformly replaced by the line number. The first 'sed' inserts a 4906 # line-number line before each line; the second 'sed' does the real 4907 # work. The second script uses 'N' to pair each line-number line 4908 # with the numbered line, and appends trailing '-' during 4909 # substitution so that $LINENO is not a special case at line end. 4910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4911 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4912 sed '=' <$as_myself | 4913 sed ' 4914 N 4915 s,$,-, 4916 : loop 4917 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 4918 t loop 4919 s,-$,, 4920 s,^['$as_cr_digits']*\n,, 4921 ' >$as_me.lineno && 4922 chmod +x $as_me.lineno || 4923 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4924echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 4925 { (exit 1); exit 1; }; } 4926 4927 # Don't try to exec as it changes $[0], causing all sort of problems 4928 # (the dirname of $[0] is not the place where we might find the 4929 # original and so on. Autoconf is especially sensible to this). 4930 . ./$as_me.lineno 4931 # Exit status is that of the last command. 4932 exit 4933} 4934 4935 4936case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4937 *c*,-n*) ECHO_N= ECHO_C=' 4938' ECHO_T=' ' ;; 4939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4941esac 4942 4943if expr a : '\(a\)' >/dev/null 2>&1; then 4944 as_expr=expr 4945else 4946 as_expr=false 4947fi 4948 4949rm -f conf$$ conf$$.exe conf$$.file 4950echo >conf$$.file 4951if ln -s conf$$.file conf$$ 2>/dev/null; then 4952 # We could just check for DJGPP; but this test a) works b) is more generic 4953 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4954 if test -f conf$$.exe; then 4955 # Don't use ln at all; we don't have any links 4956 as_ln_s='cp -p' 4957 else 4958 as_ln_s='ln -s' 4959 fi 4960elif ln conf$$.file conf$$ 2>/dev/null; then 4961 as_ln_s=ln 4962else 4963 as_ln_s='cp -p' 4964fi 4965rm -f conf$$ conf$$.exe conf$$.file 4966 4967if mkdir -p . 2>/dev/null; then 4968 as_mkdir_p=: 4969else 4970 test -d ./-p && rmdir ./-p 4971 as_mkdir_p=false 4972fi 4973 4974as_executable_p="test -f" 4975 4976# Sed expression to map a string onto a valid CPP name. 4977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4978 4979# Sed expression to map a string onto a valid variable name. 4980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4981 4982 4983# IFS 4984# We need space, tab and new line, in precisely that order. 4985as_nl=' 4986' 4987IFS=" $as_nl" 4988 4989# CDPATH. 4990$as_unset CDPATH 4991 4992exec 6>&1 4993 4994# Open the log real soon, to keep \$[0] and so on meaningful, and to 4995# report actual input values of CONFIG_FILES etc. instead of their 4996# values after options handling. Logging --version etc. is OK. 4997exec 5>>config.log 4998{ 4999 echo 5000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5001## Running $as_me. ## 5002_ASBOX 5003} >&5 5004cat >&5 <<_CSEOF 5005 5006This file was extended by $as_me, which was 5007generated by GNU Autoconf 2.59. Invocation command line was 5008 5009 CONFIG_FILES = $CONFIG_FILES 5010 CONFIG_HEADERS = $CONFIG_HEADERS 5011 CONFIG_LINKS = $CONFIG_LINKS 5012 CONFIG_COMMANDS = $CONFIG_COMMANDS 5013 $ $0 $@ 5014 5015_CSEOF 5016echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5017echo >&5 5018_ACEOF 5019 5020# Files that config.status was made for. 5021if test -n "$ac_config_files"; then 5022 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5023fi 5024 5025if test -n "$ac_config_headers"; then 5026 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5027fi 5028 5029if test -n "$ac_config_links"; then 5030 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5031fi 5032 5033if test -n "$ac_config_commands"; then 5034 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5035fi 5036 5037cat >>$CONFIG_STATUS <<\_ACEOF 5038 5039ac_cs_usage="\ 5040\`$as_me' instantiates files from templates according to the 5041current configuration. 5042 5043Usage: $0 [OPTIONS] [FILE]... 5044 5045 -h, --help print this help, then exit 5046 -V, --version print version number, then exit 5047 -q, --quiet do not print progress messages 5048 -d, --debug don't remove temporary files 5049 --recheck update $as_me by reconfiguring in the same conditions 5050 --file=FILE[:TEMPLATE] 5051 instantiate the configuration file FILE 5052 --header=FILE[:TEMPLATE] 5053 instantiate the configuration header FILE 5054 5055Configuration files: 5056$config_files 5057 5058Configuration headers: 5059$config_headers 5060 5061Configuration links: 5062$config_links 5063 5064Configuration commands: 5065$config_commands 5066 5067Report bugs to <bug-autoconf@gnu.org>." 5068_ACEOF 5069 5070cat >>$CONFIG_STATUS <<_ACEOF 5071ac_cs_version="\\ 5072config.status 5073configured by $0, generated by GNU Autoconf 2.59, 5074 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5075 5076Copyright (C) 2003 Free Software Foundation, Inc. 5077This config.status script is free software; the Free Software Foundation 5078gives unlimited permission to copy, distribute and modify it." 5079srcdir=$srcdir 5080INSTALL="$INSTALL" 5081_ACEOF 5082 5083cat >>$CONFIG_STATUS <<\_ACEOF 5084# If no file are specified by the user, then we need to provide default 5085# value. By we need to know if files were specified by the user. 5086ac_need_defaults=: 5087while test $# != 0 5088do 5089 case $1 in 5090 --*=*) 5091 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5092 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5093 ac_shift=: 5094 ;; 5095 -*) 5096 ac_option=$1 5097 ac_optarg=$2 5098 ac_shift=shift 5099 ;; 5100 *) # This is not an option, so the user has probably given explicit 5101 # arguments. 5102 ac_option=$1 5103 ac_need_defaults=false;; 5104 esac 5105 5106 case $ac_option in 5107 # Handling of the options. 5108_ACEOF 5109cat >>$CONFIG_STATUS <<\_ACEOF 5110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5111 ac_cs_recheck=: ;; 5112 --version | --vers* | -V ) 5113 echo "$ac_cs_version"; exit 0 ;; 5114 --he | --h) 5115 # Conflict between --help and --header 5116 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5117Try \`$0 --help' for more information." >&5 5118echo "$as_me: error: ambiguous option: $1 5119Try \`$0 --help' for more information." >&2;} 5120 { (exit 1); exit 1; }; };; 5121 --help | --hel | -h ) 5122 echo "$ac_cs_usage"; exit 0 ;; 5123 --debug | --d* | -d ) 5124 debug=: ;; 5125 --file | --fil | --fi | --f ) 5126 $ac_shift 5127 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5128 ac_need_defaults=false;; 5129 --header | --heade | --head | --hea ) 5130 $ac_shift 5131 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5132 ac_need_defaults=false;; 5133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5134 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5135 ac_cs_silent=: ;; 5136 5137 # This is an error. 5138 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5139Try \`$0 --help' for more information." >&5 5140echo "$as_me: error: unrecognized option: $1 5141Try \`$0 --help' for more information." >&2;} 5142 { (exit 1); exit 1; }; } ;; 5143 5144 *) ac_config_targets="$ac_config_targets $1" ;; 5145 5146 esac 5147 shift 5148done 5149 5150ac_configure_extra_args= 5151 5152if $ac_cs_silent; then 5153 exec 6>/dev/null 5154 ac_configure_extra_args="$ac_configure_extra_args --silent" 5155fi 5156 5157_ACEOF 5158cat >>$CONFIG_STATUS <<_ACEOF 5159if \$ac_cs_recheck; then 5160 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5161 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5162fi 5163 5164_ACEOF 5165 5166 5167 5168 5169 5170cat >>$CONFIG_STATUS <<\_ACEOF 5171for ac_config_target in $ac_config_targets 5172do 5173 case "$ac_config_target" in 5174 # Handling of arguments. 5175 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; 5176 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; 5177 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; 5178 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; 5179 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 5180 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; 5181 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 5182 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5183echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5184 { (exit 1); exit 1; }; };; 5185 esac 5186done 5187 5188# If the user did not use the arguments to specify the items to instantiate, 5189# then the envvar interface is used. Set only those that are not. 5190# We use the long form for the default assignment because of an extremely 5191# bizarre bug on SunOS 4.1.3. 5192if $ac_need_defaults; then 5193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5195 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 5196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5197fi 5198 5199# Have a temporary directory for convenience. Make it in the build tree 5200# simply because there is no reason to put it here, and in addition, 5201# creating and moving files from /tmp can sometimes cause problems. 5202# Create a temporary directory, and hook for its removal unless debugging. 5203$debug || 5204{ 5205 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5206 trap '{ (exit 1); exit 1; }' 1 2 13 15 5207} 5208 5209# Create a (secure) tmp directory for tmp files. 5210 5211{ 5212 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5213 test -n "$tmp" && test -d "$tmp" 5214} || 5215{ 5216 tmp=./confstat$$-$RANDOM 5217 (umask 077 && mkdir $tmp) 5218} || 5219{ 5220 echo "$me: cannot create a temporary directory in ." >&2 5221 { (exit 1); exit 1; } 5222} 5223 5224_ACEOF 5225 5226cat >>$CONFIG_STATUS <<_ACEOF 5227 5228# 5229# CONFIG_FILES section. 5230# 5231 5232# No need to generate the scripts if there are no CONFIG_FILES. 5233# This happens for instance when ./config.status config.h 5234if test -n "\$CONFIG_FILES"; then 5235 # Protect against being on the right side of a sed subst in config.status. 5236 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5237 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5238s,@SHELL@,$SHELL,;t t 5239s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5240s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5241s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5242s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5243s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5244s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5245s,@exec_prefix@,$exec_prefix,;t t 5246s,@prefix@,$prefix,;t t 5247s,@program_transform_name@,$program_transform_name,;t t 5248s,@bindir@,$bindir,;t t 5249s,@sbindir@,$sbindir,;t t 5250s,@libexecdir@,$libexecdir,;t t 5251s,@datadir@,$datadir,;t t 5252s,@sysconfdir@,$sysconfdir,;t t 5253s,@sharedstatedir@,$sharedstatedir,;t t 5254s,@localstatedir@,$localstatedir,;t t 5255s,@libdir@,$libdir,;t t 5256s,@includedir@,$includedir,;t t 5257s,@oldincludedir@,$oldincludedir,;t t 5258s,@infodir@,$infodir,;t t 5259s,@mandir@,$mandir,;t t 5260s,@build_alias@,$build_alias,;t t 5261s,@host_alias@,$host_alias,;t t 5262s,@target_alias@,$target_alias,;t t 5263s,@DEFS@,$DEFS,;t t 5264s,@ECHO_C@,$ECHO_C,;t t 5265s,@ECHO_N@,$ECHO_N,;t t 5266s,@ECHO_T@,$ECHO_T,;t t 5267s,@LIBS@,$LIBS,;t t 5268s,@sim_environment@,$sim_environment,;t t 5269s,@sim_alignment@,$sim_alignment,;t t 5270s,@sim_assert@,$sim_assert,;t t 5271s,@sim_bitsize@,$sim_bitsize,;t t 5272s,@sim_endian@,$sim_endian,;t t 5273s,@sim_hostendian@,$sim_hostendian,;t t 5274s,@sim_float@,$sim_float,;t t 5275s,@sim_scache@,$sim_scache,;t t 5276s,@sim_default_model@,$sim_default_model,;t t 5277s,@sim_hw_cflags@,$sim_hw_cflags,;t t 5278s,@sim_hw_objs@,$sim_hw_objs,;t t 5279s,@sim_hw@,$sim_hw,;t t 5280s,@sim_inline@,$sim_inline,;t t 5281s,@sim_packages@,$sim_packages,;t t 5282s,@sim_regparm@,$sim_regparm,;t t 5283s,@sim_reserved_bits@,$sim_reserved_bits,;t t 5284s,@sim_smp@,$sim_smp,;t t 5285s,@sim_stdcall@,$sim_stdcall,;t t 5286s,@sim_xor_endian@,$sim_xor_endian,;t t 5287s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t 5288s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t 5289s,@build@,$build,;t t 5290s,@build_cpu@,$build_cpu,;t t 5291s,@build_vendor@,$build_vendor,;t t 5292s,@build_os@,$build_os,;t t 5293s,@host@,$host,;t t 5294s,@host_cpu@,$host_cpu,;t t 5295s,@host_vendor@,$host_vendor,;t t 5296s,@host_os@,$host_os,;t t 5297s,@target@,$target,;t t 5298s,@target_cpu@,$target_cpu,;t t 5299s,@target_vendor@,$target_vendor,;t t 5300s,@target_os@,$target_os,;t t 5301s,@CC@,$CC,;t t 5302s,@CFLAGS@,$CFLAGS,;t t 5303s,@LDFLAGS@,$LDFLAGS,;t t 5304s,@CPPFLAGS@,$CPPFLAGS,;t t 5305s,@ac_ct_CC@,$ac_ct_CC,;t t 5306s,@EXEEXT@,$EXEEXT,;t t 5307s,@OBJEXT@,$OBJEXT,;t t 5308s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5309s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5310s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5311s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t 5312s,@HDEFINES@,$HDEFINES,;t t 5313s,@AR@,$AR,;t t 5314s,@RANLIB@,$RANLIB,;t t 5315s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5316s,@USE_NLS@,$USE_NLS,;t t 5317s,@LIBINTL@,$LIBINTL,;t t 5318s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t 5319s,@INCINTL@,$INCINTL,;t t 5320s,@XGETTEXT@,$XGETTEXT,;t t 5321s,@GMSGFMT@,$GMSGFMT,;t t 5322s,@POSUB@,$POSUB,;t t 5323s,@CATALOGS@,$CATALOGS,;t t 5324s,@DATADIRNAME@,$DATADIRNAME,;t t 5325s,@INSTOBJEXT@,$INSTOBJEXT,;t t 5326s,@GENCAT@,$GENCAT,;t t 5327s,@CATOBJEXT@,$CATOBJEXT,;t t 5328s,@CPP@,$CPP,;t t 5329s,@EGREP@,$EGREP,;t t 5330s,@MAINT@,$MAINT,;t t 5331s,@sim_bswap@,$sim_bswap,;t t 5332s,@sim_cflags@,$sim_cflags,;t t 5333s,@sim_debug@,$sim_debug,;t t 5334s,@sim_stdio@,$sim_stdio,;t t 5335s,@sim_trace@,$sim_trace,;t t 5336s,@sim_profile@,$sim_profile,;t t 5337s,@cgen_breaks@,$cgen_breaks,;t t 5338s,@LIBOBJS@,$LIBOBJS,;t t 5339s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5340CEOF 5341 5342_ACEOF 5343 5344 cat >>$CONFIG_STATUS <<\_ACEOF 5345 # Split the substitutions into bite-sized pieces for seds with 5346 # small command number limits, like on Digital OSF/1 and HP-UX. 5347 ac_max_sed_lines=48 5348 ac_sed_frag=1 # Number of current file. 5349 ac_beg=1 # First line for current file. 5350 ac_end=$ac_max_sed_lines # Line after last line for current file. 5351 ac_more_lines=: 5352 ac_sed_cmds= 5353 while $ac_more_lines; do 5354 if test $ac_beg -gt 1; then 5355 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5356 else 5357 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5358 fi 5359 if test ! -s $tmp/subs.frag; then 5360 ac_more_lines=false 5361 else 5362 # The purpose of the label and of the branching condition is to 5363 # speed up the sed processing (if there are no `@' at all, there 5364 # is no need to browse any of the substitutions). 5365 # These are the two extra sed commands mentioned above. 5366 (echo ':t 5367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5368 if test -z "$ac_sed_cmds"; then 5369 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5370 else 5371 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5372 fi 5373 ac_sed_frag=`expr $ac_sed_frag + 1` 5374 ac_beg=$ac_end 5375 ac_end=`expr $ac_end + $ac_max_sed_lines` 5376 fi 5377 done 5378 if test -z "$ac_sed_cmds"; then 5379 ac_sed_cmds=cat 5380 fi 5381fi # test -n "$CONFIG_FILES" 5382 5383_ACEOF 5384cat >>$CONFIG_STATUS <<\_ACEOF 5385for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5387 case $ac_file in 5388 - | *:- | *:-:* ) # input from stdin 5389 cat >$tmp/stdin 5390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5394 * ) ac_file_in=$ac_file.in ;; 5395 esac 5396 5397 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5398 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5399$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5400 X"$ac_file" : 'X\(//\)[^/]' \| \ 5401 X"$ac_file" : 'X\(//\)$' \| \ 5402 X"$ac_file" : 'X\(/\)' \| \ 5403 . : '\(.\)' 2>/dev/null || 5404echo X"$ac_file" | 5405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5406 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5407 /^X\(\/\/\)$/{ s//\1/; q; } 5408 /^X\(\/\).*/{ s//\1/; q; } 5409 s/.*/./; q'` 5410 { if $as_mkdir_p; then 5411 mkdir -p "$ac_dir" 5412 else 5413 as_dir="$ac_dir" 5414 as_dirs= 5415 while test ! -d "$as_dir"; do 5416 as_dirs="$as_dir $as_dirs" 5417 as_dir=`(dirname "$as_dir") 2>/dev/null || 5418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5419 X"$as_dir" : 'X\(//\)[^/]' \| \ 5420 X"$as_dir" : 'X\(//\)$' \| \ 5421 X"$as_dir" : 'X\(/\)' \| \ 5422 . : '\(.\)' 2>/dev/null || 5423echo X"$as_dir" | 5424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5425 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5426 /^X\(\/\/\)$/{ s//\1/; q; } 5427 /^X\(\/\).*/{ s//\1/; q; } 5428 s/.*/./; q'` 5429 done 5430 test ! -n "$as_dirs" || mkdir $as_dirs 5431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5432echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5433 { (exit 1); exit 1; }; }; } 5434 5435 ac_builddir=. 5436 5437if test "$ac_dir" != .; then 5438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5439 # A "../" for each directory in $ac_dir_suffix. 5440 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5441else 5442 ac_dir_suffix= ac_top_builddir= 5443fi 5444 5445case $srcdir in 5446 .) # No --srcdir option. We are building in place. 5447 ac_srcdir=. 5448 if test -z "$ac_top_builddir"; then 5449 ac_top_srcdir=. 5450 else 5451 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5452 fi ;; 5453 [\\/]* | ?:[\\/]* ) # Absolute path. 5454 ac_srcdir=$srcdir$ac_dir_suffix; 5455 ac_top_srcdir=$srcdir ;; 5456 *) # Relative path. 5457 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5458 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5459esac 5460 5461# Do not use `cd foo && pwd` to compute absolute paths, because 5462# the directories may not exist. 5463case `pwd` in 5464.) ac_abs_builddir="$ac_dir";; 5465*) 5466 case "$ac_dir" in 5467 .) ac_abs_builddir=`pwd`;; 5468 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5469 *) ac_abs_builddir=`pwd`/"$ac_dir";; 5470 esac;; 5471esac 5472case $ac_abs_builddir in 5473.) ac_abs_top_builddir=${ac_top_builddir}.;; 5474*) 5475 case ${ac_top_builddir}. in 5476 .) ac_abs_top_builddir=$ac_abs_builddir;; 5477 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5478 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5479 esac;; 5480esac 5481case $ac_abs_builddir in 5482.) ac_abs_srcdir=$ac_srcdir;; 5483*) 5484 case $ac_srcdir in 5485 .) ac_abs_srcdir=$ac_abs_builddir;; 5486 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5487 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5488 esac;; 5489esac 5490case $ac_abs_builddir in 5491.) ac_abs_top_srcdir=$ac_top_srcdir;; 5492*) 5493 case $ac_top_srcdir in 5494 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5495 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5496 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5497 esac;; 5498esac 5499 5500 5501 case $INSTALL in 5502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5503 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5504 esac 5505 5506 if test x"$ac_file" != x-; then 5507 { echo "$as_me:$LINENO: creating $ac_file" >&5 5508echo "$as_me: creating $ac_file" >&6;} 5509 rm -f "$ac_file" 5510 fi 5511 # Let's still pretend it is `configure' which instantiates (i.e., don't 5512 # use $as_me), people would be surprised to read: 5513 # /* config.h. Generated by config.status. */ 5514 if test x"$ac_file" = x-; then 5515 configure_input= 5516 else 5517 configure_input="$ac_file. " 5518 fi 5519 configure_input=$configure_input"Generated from `echo $ac_file_in | 5520 sed 's,.*/,,'` by configure." 5521 5522 # First look for the input files in the build tree, otherwise in the 5523 # src tree. 5524 ac_file_inputs=`IFS=: 5525 for f in $ac_file_in; do 5526 case $f in 5527 -) echo $tmp/stdin ;; 5528 [\\/$]*) 5529 # Absolute (can't be DOS-style, as IFS=:) 5530 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5531echo "$as_me: error: cannot find input file: $f" >&2;} 5532 { (exit 1); exit 1; }; } 5533 echo "$f";; 5534 *) # Relative 5535 if test -f "$f"; then 5536 # Build tree 5537 echo "$f" 5538 elif test -f "$srcdir/$f"; then 5539 # Source tree 5540 echo "$srcdir/$f" 5541 else 5542 # /dev/null tree 5543 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5544echo "$as_me: error: cannot find input file: $f" >&2;} 5545 { (exit 1); exit 1; }; } 5546 fi;; 5547 esac 5548 done` || { (exit 1); exit 1; } 5549_ACEOF 5550cat >>$CONFIG_STATUS <<_ACEOF 5551 sed "$ac_vpsub 5552$extrasub 5553_ACEOF 5554cat >>$CONFIG_STATUS <<\_ACEOF 5555:t 5556/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5557s,@configure_input@,$configure_input,;t t 5558s,@srcdir@,$ac_srcdir,;t t 5559s,@abs_srcdir@,$ac_abs_srcdir,;t t 5560s,@top_srcdir@,$ac_top_srcdir,;t t 5561s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5562s,@builddir@,$ac_builddir,;t t 5563s,@abs_builddir@,$ac_abs_builddir,;t t 5564s,@top_builddir@,$ac_top_builddir,;t t 5565s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5566s,@INSTALL@,$ac_INSTALL,;t t 5567" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5568 rm -f $tmp/stdin 5569 if test x"$ac_file" != x-; then 5570 mv $tmp/out $ac_file 5571 else 5572 cat $tmp/out 5573 rm -f $tmp/out 5574 fi 5575 5576done 5577_ACEOF 5578cat >>$CONFIG_STATUS <<\_ACEOF 5579 5580# 5581# CONFIG_HEADER section. 5582# 5583 5584# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5585# NAME is the cpp macro being defined and VALUE is the value it is being given. 5586# 5587# ac_d sets the value in "#define NAME VALUE" lines. 5588ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5589ac_dB='[ ].*$,\1#\2' 5590ac_dC=' ' 5591ac_dD=',;t' 5592# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5593ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5594ac_uB='$,\1#\2define\3' 5595ac_uC=' ' 5596ac_uD=',;t' 5597 5598for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5599 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5600 case $ac_file in 5601 - | *:- | *:-:* ) # input from stdin 5602 cat >$tmp/stdin 5603 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5605 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5607 * ) ac_file_in=$ac_file.in ;; 5608 esac 5609 5610 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5611echo "$as_me: creating $ac_file" >&6;} 5612 5613 # First look for the input files in the build tree, otherwise in the 5614 # src tree. 5615 ac_file_inputs=`IFS=: 5616 for f in $ac_file_in; do 5617 case $f in 5618 -) echo $tmp/stdin ;; 5619 [\\/$]*) 5620 # Absolute (can't be DOS-style, as IFS=:) 5621 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5622echo "$as_me: error: cannot find input file: $f" >&2;} 5623 { (exit 1); exit 1; }; } 5624 # Do quote $f, to prevent DOS paths from being IFS'd. 5625 echo "$f";; 5626 *) # Relative 5627 if test -f "$f"; then 5628 # Build tree 5629 echo "$f" 5630 elif test -f "$srcdir/$f"; then 5631 # Source tree 5632 echo "$srcdir/$f" 5633 else 5634 # /dev/null tree 5635 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5636echo "$as_me: error: cannot find input file: $f" >&2;} 5637 { (exit 1); exit 1; }; } 5638 fi;; 5639 esac 5640 done` || { (exit 1); exit 1; } 5641 # Remove the trailing spaces. 5642 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5643 5644_ACEOF 5645 5646# Transform confdefs.h into two sed scripts, `conftest.defines' and 5647# `conftest.undefs', that substitutes the proper values into 5648# config.h.in to produce config.h. The first handles `#define' 5649# templates, and the second `#undef' templates. 5650# And first: Protect against being on the right side of a sed subst in 5651# config.status. Protect against being in an unquoted here document 5652# in config.status. 5653rm -f conftest.defines conftest.undefs 5654# Using a here document instead of a string reduces the quoting nightmare. 5655# Putting comments in sed scripts is not portable. 5656# 5657# `end' is used to avoid that the second main sed command (meant for 5658# 0-ary CPP macros) applies to n-ary macro definitions. 5659# See the Autoconf documentation for `clear'. 5660cat >confdef2sed.sed <<\_ACEOF 5661s/[\\&,]/\\&/g 5662s,[\\$`],\\&,g 5663t clear 5664: clear 5665s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5666t end 5667s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5668: end 5669_ACEOF 5670# If some macros were called several times there might be several times 5671# the same #defines, which is useless. Nevertheless, we may not want to 5672# sort them, since we want the *last* AC-DEFINE to be honored. 5673uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5674sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5675rm -f confdef2sed.sed 5676 5677# This sed command replaces #undef with comments. This is necessary, for 5678# example, in the case of _POSIX_SOURCE, which is predefined and required 5679# on some systems where configure will not decide to define it. 5680cat >>conftest.undefs <<\_ACEOF 5681s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5682_ACEOF 5683 5684# Break up conftest.defines because some shells have a limit on the size 5685# of here documents, and old seds have small limits too (100 cmds). 5686echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5687echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5688echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5689echo ' :' >>$CONFIG_STATUS 5690rm -f conftest.tail 5691while grep . conftest.defines >/dev/null 5692do 5693 # Write a limited-size here document to $tmp/defines.sed. 5694 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5695 # Speed up: don't consider the non `#define' lines. 5696 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5697 # Work around the forget-to-reset-the-flag bug. 5698 echo 't clr' >>$CONFIG_STATUS 5699 echo ': clr' >>$CONFIG_STATUS 5700 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5701 echo 'CEOF 5702 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5703 rm -f $tmp/in 5704 mv $tmp/out $tmp/in 5705' >>$CONFIG_STATUS 5706 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5707 rm -f conftest.defines 5708 mv conftest.tail conftest.defines 5709done 5710rm -f conftest.defines 5711echo ' fi # grep' >>$CONFIG_STATUS 5712echo >>$CONFIG_STATUS 5713 5714# Break up conftest.undefs because some shells have a limit on the size 5715# of here documents, and old seds have small limits too (100 cmds). 5716echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5717rm -f conftest.tail 5718while grep . conftest.undefs >/dev/null 5719do 5720 # Write a limited-size here document to $tmp/undefs.sed. 5721 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5722 # Speed up: don't consider the non `#undef' 5723 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5724 # Work around the forget-to-reset-the-flag bug. 5725 echo 't clr' >>$CONFIG_STATUS 5726 echo ': clr' >>$CONFIG_STATUS 5727 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5728 echo 'CEOF 5729 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5730 rm -f $tmp/in 5731 mv $tmp/out $tmp/in 5732' >>$CONFIG_STATUS 5733 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5734 rm -f conftest.undefs 5735 mv conftest.tail conftest.undefs 5736done 5737rm -f conftest.undefs 5738 5739cat >>$CONFIG_STATUS <<\_ACEOF 5740 # Let's still pretend it is `configure' which instantiates (i.e., don't 5741 # use $as_me), people would be surprised to read: 5742 # /* config.h. Generated by config.status. */ 5743 if test x"$ac_file" = x-; then 5744 echo "/* Generated by configure. */" >$tmp/config.h 5745 else 5746 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5747 fi 5748 cat $tmp/in >>$tmp/config.h 5749 rm -f $tmp/in 5750 if test x"$ac_file" != x-; then 5751 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 5752 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5753echo "$as_me: $ac_file is unchanged" >&6;} 5754 else 5755 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5757 X"$ac_file" : 'X\(//\)[^/]' \| \ 5758 X"$ac_file" : 'X\(//\)$' \| \ 5759 X"$ac_file" : 'X\(/\)' \| \ 5760 . : '\(.\)' 2>/dev/null || 5761echo X"$ac_file" | 5762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5763 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5764 /^X\(\/\/\)$/{ s//\1/; q; } 5765 /^X\(\/\).*/{ s//\1/; q; } 5766 s/.*/./; q'` 5767 { if $as_mkdir_p; then 5768 mkdir -p "$ac_dir" 5769 else 5770 as_dir="$ac_dir" 5771 as_dirs= 5772 while test ! -d "$as_dir"; do 5773 as_dirs="$as_dir $as_dirs" 5774 as_dir=`(dirname "$as_dir") 2>/dev/null || 5775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5776 X"$as_dir" : 'X\(//\)[^/]' \| \ 5777 X"$as_dir" : 'X\(//\)$' \| \ 5778 X"$as_dir" : 'X\(/\)' \| \ 5779 . : '\(.\)' 2>/dev/null || 5780echo X"$as_dir" | 5781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5782 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5783 /^X\(\/\/\)$/{ s//\1/; q; } 5784 /^X\(\/\).*/{ s//\1/; q; } 5785 s/.*/./; q'` 5786 done 5787 test ! -n "$as_dirs" || mkdir $as_dirs 5788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5789echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5790 { (exit 1); exit 1; }; }; } 5791 5792 rm -f $ac_file 5793 mv $tmp/config.h $ac_file 5794 fi 5795 else 5796 cat $tmp/config.h 5797 rm -f $tmp/config.h 5798 fi 5799done 5800_ACEOF 5801cat >>$CONFIG_STATUS <<\_ACEOF 5802 5803# 5804# CONFIG_LINKS section. 5805# 5806 5807for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 5808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5810 5811 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 5812echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 5813 5814 if test ! -r $srcdir/$ac_source; then 5815 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 5816echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 5817 { (exit 1); exit 1; }; } 5818 fi 5819 rm -f $ac_dest 5820 5821 # Make relative symlinks. 5822 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 5823$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5824 X"$ac_dest" : 'X\(//\)[^/]' \| \ 5825 X"$ac_dest" : 'X\(//\)$' \| \ 5826 X"$ac_dest" : 'X\(/\)' \| \ 5827 . : '\(.\)' 2>/dev/null || 5828echo X"$ac_dest" | 5829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5830 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5831 /^X\(\/\/\)$/{ s//\1/; q; } 5832 /^X\(\/\).*/{ s//\1/; q; } 5833 s/.*/./; q'` 5834 { if $as_mkdir_p; then 5835 mkdir -p "$ac_dest_dir" 5836 else 5837 as_dir="$ac_dest_dir" 5838 as_dirs= 5839 while test ! -d "$as_dir"; do 5840 as_dirs="$as_dir $as_dirs" 5841 as_dir=`(dirname "$as_dir") 2>/dev/null || 5842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5843 X"$as_dir" : 'X\(//\)[^/]' \| \ 5844 X"$as_dir" : 'X\(//\)$' \| \ 5845 X"$as_dir" : 'X\(/\)' \| \ 5846 . : '\(.\)' 2>/dev/null || 5847echo X"$as_dir" | 5848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5849 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5850 /^X\(\/\/\)$/{ s//\1/; q; } 5851 /^X\(\/\).*/{ s//\1/; q; } 5852 s/.*/./; q'` 5853 done 5854 test ! -n "$as_dirs" || mkdir $as_dirs 5855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 5856echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 5857 { (exit 1); exit 1; }; }; } 5858 5859 ac_builddir=. 5860 5861if test "$ac_dest_dir" != .; then 5862 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 5863 # A "../" for each directory in $ac_dir_suffix. 5864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5865else 5866 ac_dir_suffix= ac_top_builddir= 5867fi 5868 5869case $srcdir in 5870 .) # No --srcdir option. We are building in place. 5871 ac_srcdir=. 5872 if test -z "$ac_top_builddir"; then 5873 ac_top_srcdir=. 5874 else 5875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5876 fi ;; 5877 [\\/]* | ?:[\\/]* ) # Absolute path. 5878 ac_srcdir=$srcdir$ac_dir_suffix; 5879 ac_top_srcdir=$srcdir ;; 5880 *) # Relative path. 5881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5882 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5883esac 5884 5885# Do not use `cd foo && pwd` to compute absolute paths, because 5886# the directories may not exist. 5887case `pwd` in 5888.) ac_abs_builddir="$ac_dest_dir";; 5889*) 5890 case "$ac_dest_dir" in 5891 .) ac_abs_builddir=`pwd`;; 5892 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; 5893 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; 5894 esac;; 5895esac 5896case $ac_abs_builddir in 5897.) ac_abs_top_builddir=${ac_top_builddir}.;; 5898*) 5899 case ${ac_top_builddir}. in 5900 .) ac_abs_top_builddir=$ac_abs_builddir;; 5901 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5902 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5903 esac;; 5904esac 5905case $ac_abs_builddir in 5906.) ac_abs_srcdir=$ac_srcdir;; 5907*) 5908 case $ac_srcdir in 5909 .) ac_abs_srcdir=$ac_abs_builddir;; 5910 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5911 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5912 esac;; 5913esac 5914case $ac_abs_builddir in 5915.) ac_abs_top_srcdir=$ac_top_srcdir;; 5916*) 5917 case $ac_top_srcdir in 5918 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5919 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5920 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5921 esac;; 5922esac 5923 5924 5925 case $srcdir in 5926 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 5927 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 5928 esac 5929 5930 # Try a symlink, then a hard link, then a copy. 5931 ln -s $ac_rel_source $ac_dest 2>/dev/null || 5932 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 5933 cp -p $srcdir/$ac_source $ac_dest || 5934 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 5935echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 5936 { (exit 1); exit 1; }; } 5937done 5938_ACEOF 5939cat >>$CONFIG_STATUS <<\_ACEOF 5940 5941# 5942# CONFIG_COMMANDS section. 5943# 5944for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 5945 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5946 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5947 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 5948$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5949 X"$ac_dest" : 'X\(//\)[^/]' \| \ 5950 X"$ac_dest" : 'X\(//\)$' \| \ 5951 X"$ac_dest" : 'X\(/\)' \| \ 5952 . : '\(.\)' 2>/dev/null || 5953echo X"$ac_dest" | 5954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5955 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5956 /^X\(\/\/\)$/{ s//\1/; q; } 5957 /^X\(\/\).*/{ s//\1/; q; } 5958 s/.*/./; q'` 5959 { if $as_mkdir_p; then 5960 mkdir -p "$ac_dir" 5961 else 5962 as_dir="$ac_dir" 5963 as_dirs= 5964 while test ! -d "$as_dir"; do 5965 as_dirs="$as_dir $as_dirs" 5966 as_dir=`(dirname "$as_dir") 2>/dev/null || 5967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5968 X"$as_dir" : 'X\(//\)[^/]' \| \ 5969 X"$as_dir" : 'X\(//\)$' \| \ 5970 X"$as_dir" : 'X\(/\)' \| \ 5971 . : '\(.\)' 2>/dev/null || 5972echo X"$as_dir" | 5973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5974 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5975 /^X\(\/\/\)$/{ s//\1/; q; } 5976 /^X\(\/\).*/{ s//\1/; q; } 5977 s/.*/./; q'` 5978 done 5979 test ! -n "$as_dirs" || mkdir $as_dirs 5980 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5981echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5982 { (exit 1); exit 1; }; }; } 5983 5984 ac_builddir=. 5985 5986if test "$ac_dir" != .; then 5987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5988 # A "../" for each directory in $ac_dir_suffix. 5989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5990else 5991 ac_dir_suffix= ac_top_builddir= 5992fi 5993 5994case $srcdir in 5995 .) # No --srcdir option. We are building in place. 5996 ac_srcdir=. 5997 if test -z "$ac_top_builddir"; then 5998 ac_top_srcdir=. 5999 else 6000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6001 fi ;; 6002 [\\/]* | ?:[\\/]* ) # Absolute path. 6003 ac_srcdir=$srcdir$ac_dir_suffix; 6004 ac_top_srcdir=$srcdir ;; 6005 *) # Relative path. 6006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6007 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6008esac 6009 6010# Do not use `cd foo && pwd` to compute absolute paths, because 6011# the directories may not exist. 6012case `pwd` in 6013.) ac_abs_builddir="$ac_dir";; 6014*) 6015 case "$ac_dir" in 6016 .) ac_abs_builddir=`pwd`;; 6017 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 6018 *) ac_abs_builddir=`pwd`/"$ac_dir";; 6019 esac;; 6020esac 6021case $ac_abs_builddir in 6022.) ac_abs_top_builddir=${ac_top_builddir}.;; 6023*) 6024 case ${ac_top_builddir}. in 6025 .) ac_abs_top_builddir=$ac_abs_builddir;; 6026 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 6027 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 6028 esac;; 6029esac 6030case $ac_abs_builddir in 6031.) ac_abs_srcdir=$ac_srcdir;; 6032*) 6033 case $ac_srcdir in 6034 .) ac_abs_srcdir=$ac_abs_builddir;; 6035 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 6036 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 6037 esac;; 6038esac 6039case $ac_abs_builddir in 6040.) ac_abs_top_srcdir=$ac_top_srcdir;; 6041*) 6042 case $ac_top_srcdir in 6043 .) ac_abs_top_srcdir=$ac_abs_builddir;; 6044 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 6045 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 6046 esac;; 6047esac 6048 6049 6050 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 6051echo "$as_me: executing $ac_dest commands" >&6;} 6052 case $ac_dest in 6053 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." 6054 rm -f Makesim1.tmp Makesim2.tmp Makefile 6055 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp 6056 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp 6057 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ 6058 -e '/^## COMMON_POST_/ r Makesim2.tmp' \ 6059 <Makefile.sim >Makefile 6060 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp 6061 ;; 6062 stamp-h ) echo > stamp-h ;; 6063 esac 6064done 6065_ACEOF 6066 6067cat >>$CONFIG_STATUS <<\_ACEOF 6068 6069{ (exit 0); exit 0; } 6070_ACEOF 6071chmod +x $CONFIG_STATUS 6072ac_clean_files=$ac_clean_files_save 6073 6074 6075# configure is writing to config.log, and then calls config.status. 6076# config.status does its own redirection, appending to config.log. 6077# Unfortunately, on DOS this fails, as config.log is still kept open 6078# by configure, so config.status won't be able to write to it; its 6079# output is simply discarded. So we exec the FD to /dev/null, 6080# effectively closing config.log, so it can be properly (re)opened and 6081# appended to by config.status. When coming back to configure, we 6082# need to make the FD available again. 6083if test "$no_create" != yes; then 6084 ac_cs_success=: 6085 ac_config_status_args= 6086 test "$silent" = yes && 6087 ac_config_status_args="$ac_config_status_args --quiet" 6088 exec 5>/dev/null 6089 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6090 exec 5>>config.log 6091 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6092 # would make configure fail if this is the last instruction. 6093 $ac_cs_success || { (exit 1); exit 1; } 6094fi 6095 6096 6097