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="as.h" 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 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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM 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 --disable-dependency-tracking speeds up one-time build 854 --enable-dependency-tracking do not reject slow dependency extractors 855 --enable-shared=PKGS build shared libraries default=yes 856 --enable-static=PKGS build static libraries default=yes 857 --enable-fast-install=PKGS optimize for fast installation default=yes 858 --disable-libtool-lock avoid locking (might break parallel builds) 859 --enable-bfd-assembler use BFD back end for writing object files 860 targets alternative target configurations besides the primary 861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library 862 --enable-build-warnings Enable build-time compiler warnings if gcc is used 863 --disable-nls do not use Native Language Support 864 --enable-maintainer-mode enable make rules and dependencies not useful 865 (and sometimes confusing) to the casual installer 866 867Optional Packages: 868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 870 --with-gnu-ld assume the C compiler uses GNU ld default=no 871 --with-pic try to use only PIC/non-PIC objects default=use both 872 --with-included-gettext use the GNU gettext library included here 873 874Some influential environment variables: 875 CC C compiler command 876 CFLAGS C compiler flags 877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 878 nonstandard directory <lib dir> 879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 880 headers in a nonstandard directory <include dir> 881 CPP C preprocessor 882 883Use these variables to override the choices made by `configure' or to help 884it to find libraries and programs with nonstandard names/locations. 885 886_ACEOF 887fi 888 889if test "$ac_init_help" = "recursive"; then 890 # If there are subdirs, report their specific --help. 891 ac_popdir=`pwd` 892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 893 test -d $ac_dir || continue 894 ac_builddir=. 895 896if test "$ac_dir" != .; then 897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 898 # A "../" for each directory in $ac_dir_suffix. 899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 900else 901 ac_dir_suffix= ac_top_builddir= 902fi 903 904case $srcdir in 905 .) # No --srcdir option. We are building in place. 906 ac_srcdir=. 907 if test -z "$ac_top_builddir"; then 908 ac_top_srcdir=. 909 else 910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 911 fi ;; 912 [\\/]* | ?:[\\/]* ) # Absolute path. 913 ac_srcdir=$srcdir$ac_dir_suffix; 914 ac_top_srcdir=$srcdir ;; 915 *) # Relative path. 916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 917 ac_top_srcdir=$ac_top_builddir$srcdir ;; 918esac 919 920# Do not use `cd foo && pwd` to compute absolute paths, because 921# the directories may not exist. 922case `pwd` in 923.) ac_abs_builddir="$ac_dir";; 924*) 925 case "$ac_dir" in 926 .) ac_abs_builddir=`pwd`;; 927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 928 *) ac_abs_builddir=`pwd`/"$ac_dir";; 929 esac;; 930esac 931case $ac_abs_builddir in 932.) ac_abs_top_builddir=${ac_top_builddir}.;; 933*) 934 case ${ac_top_builddir}. in 935 .) ac_abs_top_builddir=$ac_abs_builddir;; 936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 938 esac;; 939esac 940case $ac_abs_builddir in 941.) ac_abs_srcdir=$ac_srcdir;; 942*) 943 case $ac_srcdir in 944 .) ac_abs_srcdir=$ac_abs_builddir;; 945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 947 esac;; 948esac 949case $ac_abs_builddir in 950.) ac_abs_top_srcdir=$ac_top_srcdir;; 951*) 952 case $ac_top_srcdir in 953 .) ac_abs_top_srcdir=$ac_abs_builddir;; 954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 956 esac;; 957esac 958 959 cd $ac_dir 960 # Check for guested configure; otherwise get Cygnus style configure. 961 if test -f $ac_srcdir/configure.gnu; then 962 echo 963 $SHELL $ac_srcdir/configure.gnu --help=recursive 964 elif test -f $ac_srcdir/configure; then 965 echo 966 $SHELL $ac_srcdir/configure --help=recursive 967 elif test -f $ac_srcdir/configure.ac || 968 test -f $ac_srcdir/configure.in; then 969 echo 970 $ac_configure --help 971 else 972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 973 fi 974 cd "$ac_popdir" 975 done 976fi 977 978test -n "$ac_init_help" && exit 0 979if $ac_init_version; then 980 cat <<\_ACEOF 981 982Copyright (C) 2003 Free Software Foundation, Inc. 983This configure script is free software; the Free Software Foundation 984gives unlimited permission to copy, distribute and modify it. 985_ACEOF 986 exit 0 987fi 988exec 5>config.log 989cat >&5 <<_ACEOF 990This file contains any messages produced by compilers while 991running configure, to aid debugging if configure makes a mistake. 992 993It was created by $as_me, which was 994generated by GNU Autoconf 2.59. Invocation command line was 995 996 $ $0 $@ 997 998_ACEOF 999{ 1000cat <<_ASUNAME 1001## --------- ## 1002## Platform. ## 1003## --------- ## 1004 1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1006uname -m = `(uname -m) 2>/dev/null || echo unknown` 1007uname -r = `(uname -r) 2>/dev/null || echo unknown` 1008uname -s = `(uname -s) 2>/dev/null || echo unknown` 1009uname -v = `(uname -v) 2>/dev/null || echo unknown` 1010 1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1013 1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1021 1022_ASUNAME 1023 1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1025for as_dir in $PATH 1026do 1027 IFS=$as_save_IFS 1028 test -z "$as_dir" && as_dir=. 1029 echo "PATH: $as_dir" 1030done 1031 1032} >&5 1033 1034cat >&5 <<_ACEOF 1035 1036 1037## ----------- ## 1038## Core tests. ## 1039## ----------- ## 1040 1041_ACEOF 1042 1043 1044# Keep a trace of the command line. 1045# Strip out --no-create and --no-recursion so they do not pile up. 1046# Strip out --silent because we don't want to record it for future runs. 1047# Also quote any args containing shell meta-characters. 1048# Make two passes to allow for proper duplicate-argument suppression. 1049ac_configure_args= 1050ac_configure_args0= 1051ac_configure_args1= 1052ac_sep= 1053ac_must_keep_next=false 1054for ac_pass in 1 2 1055do 1056 for ac_arg 1057 do 1058 case $ac_arg in 1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 continue ;; 1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1065 esac 1066 case $ac_pass in 1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1068 2) 1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1070 if test $ac_must_keep_next = true; then 1071 ac_must_keep_next=false # Got value, back to normal. 1072 else 1073 case $ac_arg in 1074 *=* | --config-cache | -C | -disable-* | --disable-* \ 1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1077 | -with-* | --with-* | -without-* | --without-* | --x) 1078 case "$ac_configure_args0 " in 1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1080 esac 1081 ;; 1082 -* ) ac_must_keep_next=true ;; 1083 esac 1084 fi 1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1086 # Get rid of the leading space. 1087 ac_sep=" " 1088 ;; 1089 esac 1090 done 1091done 1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1094 1095# When interrupted or exit'd, cleanup temporary files, and complete 1096# config.log. We remove comments because anyway the quotes in there 1097# would cause problems or look ugly. 1098# WARNING: Be sure not to use single quotes in there, as some shells, 1099# such as our DU 5.0 friend, will then `close' the trap. 1100trap 'exit_status=$? 1101 # Save into config.log some information that might help in debugging. 1102 { 1103 echo 1104 1105 cat <<\_ASBOX 1106## ---------------- ## 1107## Cache variables. ## 1108## ---------------- ## 1109_ASBOX 1110 echo 1111 # The following way of writing the cache mishandles newlines in values, 1112{ 1113 (set) 2>&1 | 1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1115 *ac_space=\ *) 1116 sed -n \ 1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1119 ;; 1120 *) 1121 sed -n \ 1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1123 ;; 1124 esac; 1125} 1126 echo 1127 1128 cat <<\_ASBOX 1129## ----------------- ## 1130## Output variables. ## 1131## ----------------- ## 1132_ASBOX 1133 echo 1134 for ac_var in $ac_subst_vars 1135 do 1136 eval ac_val=$`echo $ac_var` 1137 echo "$ac_var='"'"'$ac_val'"'"'" 1138 done | sort 1139 echo 1140 1141 if test -n "$ac_subst_files"; then 1142 cat <<\_ASBOX 1143## ------------- ## 1144## Output files. ## 1145## ------------- ## 1146_ASBOX 1147 echo 1148 for ac_var in $ac_subst_files 1149 do 1150 eval ac_val=$`echo $ac_var` 1151 echo "$ac_var='"'"'$ac_val'"'"'" 1152 done | sort 1153 echo 1154 fi 1155 1156 if test -s confdefs.h; then 1157 cat <<\_ASBOX 1158## ----------- ## 1159## confdefs.h. ## 1160## ----------- ## 1161_ASBOX 1162 echo 1163 sed "/^$/d" confdefs.h | sort 1164 echo 1165 fi 1166 test "$ac_signal" != 0 && 1167 echo "$as_me: caught signal $ac_signal" 1168 echo "$as_me: exit $exit_status" 1169 } >&5 1170 rm -f core *.core && 1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1172 exit $exit_status 1173 ' 0 1174for ac_signal in 1 2 13 15; do 1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1176done 1177ac_signal=0 1178 1179# confdefs.h avoids OS command line length limits that DEFS can exceed. 1180rm -rf conftest* confdefs.h 1181# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1182echo >confdefs.h 1183 1184# Predefined preprocessor variables. 1185 1186cat >>confdefs.h <<_ACEOF 1187#define PACKAGE_NAME "$PACKAGE_NAME" 1188_ACEOF 1189 1190 1191cat >>confdefs.h <<_ACEOF 1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1193_ACEOF 1194 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_VERSION "$PACKAGE_VERSION" 1198_ACEOF 1199 1200 1201cat >>confdefs.h <<_ACEOF 1202#define PACKAGE_STRING "$PACKAGE_STRING" 1203_ACEOF 1204 1205 1206cat >>confdefs.h <<_ACEOF 1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1208_ACEOF 1209 1210 1211# Let the site file select an alternate cache file if it wants to. 1212# Prefer explicitly selected file to automatically selected ones. 1213if test -z "$CONFIG_SITE"; then 1214 if test "x$prefix" != xNONE; then 1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1216 else 1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1218 fi 1219fi 1220for ac_site_file in $CONFIG_SITE; do 1221 if test -r "$ac_site_file"; then 1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1223echo "$as_me: loading site script $ac_site_file" >&6;} 1224 sed 's/^/| /' "$ac_site_file" >&5 1225 . "$ac_site_file" 1226 fi 1227done 1228 1229if test -r "$cache_file"; then 1230 # Some versions of bash will fail to source /dev/null (special 1231 # files actually), so we avoid doing that. 1232 if test -f "$cache_file"; then 1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1234echo "$as_me: loading cache $cache_file" >&6;} 1235 case $cache_file in 1236 [\\/]* | ?:[\\/]* ) . $cache_file;; 1237 *) . ./$cache_file;; 1238 esac 1239 fi 1240else 1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1242echo "$as_me: creating cache $cache_file" >&6;} 1243 >$cache_file 1244fi 1245 1246# Check that the precious variables saved in the cache have kept the same 1247# value. 1248ac_cache_corrupted=false 1249for ac_var in `(set) 2>&1 | 1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1252 eval ac_new_set=\$ac_env_${ac_var}_set 1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1254 eval ac_new_val="\$ac_env_${ac_var}_value" 1255 case $ac_old_set,$ac_new_set in 1256 set,) 1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1259 ac_cache_corrupted=: ;; 1260 ,set) 1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1263 ac_cache_corrupted=: ;; 1264 ,);; 1265 *) 1266 if test "x$ac_old_val" != "x$ac_new_val"; then 1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1270echo "$as_me: former value: $ac_old_val" >&2;} 1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1272echo "$as_me: current value: $ac_new_val" >&2;} 1273 ac_cache_corrupted=: 1274 fi;; 1275 esac 1276 # Pass precious variables to config.status. 1277 if test "$ac_new_set" = set; then 1278 case $ac_new_val in 1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1281 *) ac_arg=$ac_var=$ac_new_val ;; 1282 esac 1283 case " $ac_configure_args " in 1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1286 esac 1287 fi 1288done 1289if $ac_cache_corrupted; then 1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1291echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1294 { (exit 1); exit 1; }; } 1295fi 1296 1297ac_ext=c 1298ac_cpp='$CPP $CPPFLAGS' 1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1301ac_compiler_gnu=$ac_cv_c_compiler_gnu 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322ac_aux_dir= 1323for ac_dir in .. $srcdir/..; do 1324 if test -f $ac_dir/install-sh; then 1325 ac_aux_dir=$ac_dir 1326 ac_install_sh="$ac_aux_dir/install-sh -c" 1327 break 1328 elif test -f $ac_dir/install.sh; then 1329 ac_aux_dir=$ac_dir 1330 ac_install_sh="$ac_aux_dir/install.sh -c" 1331 break 1332 elif test -f $ac_dir/shtool; then 1333 ac_aux_dir=$ac_dir 1334 ac_install_sh="$ac_aux_dir/shtool install -c" 1335 break 1336 fi 1337done 1338if test -z "$ac_aux_dir"; then 1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 1340echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} 1341 { (exit 1); exit 1; }; } 1342fi 1343ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1344ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1346 1347# Make sure we can run config.sub. 1348$ac_config_sub sun4 >/dev/null 2>&1 || 1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1350echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1351 { (exit 1); exit 1; }; } 1352 1353echo "$as_me:$LINENO: checking build system type" >&5 1354echo $ECHO_N "checking build system type... $ECHO_C" >&6 1355if test "${ac_cv_build+set}" = set; then 1356 echo $ECHO_N "(cached) $ECHO_C" >&6 1357else 1358 ac_cv_build_alias=$build_alias 1359test -z "$ac_cv_build_alias" && 1360 ac_cv_build_alias=`$ac_config_guess` 1361test -z "$ac_cv_build_alias" && 1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1363echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1364 { (exit 1); exit 1; }; } 1365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1368 { (exit 1); exit 1; }; } 1369 1370fi 1371echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1372echo "${ECHO_T}$ac_cv_build" >&6 1373build=$ac_cv_build 1374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1377 1378 1379echo "$as_me:$LINENO: checking host system type" >&5 1380echo $ECHO_N "checking host system type... $ECHO_C" >&6 1381if test "${ac_cv_host+set}" = set; then 1382 echo $ECHO_N "(cached) $ECHO_C" >&6 1383else 1384 ac_cv_host_alias=$host_alias 1385test -z "$ac_cv_host_alias" && 1386 ac_cv_host_alias=$ac_cv_build_alias 1387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1390 { (exit 1); exit 1; }; } 1391 1392fi 1393echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1394echo "${ECHO_T}$ac_cv_host" >&6 1395host=$ac_cv_host 1396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1399 1400 1401echo "$as_me:$LINENO: checking target system type" >&5 1402echo $ECHO_N "checking target system type... $ECHO_C" >&6 1403if test "${ac_cv_target+set}" = set; then 1404 echo $ECHO_N "(cached) $ECHO_C" >&6 1405else 1406 ac_cv_target_alias=$target_alias 1407test "x$ac_cv_target_alias" = "x" && 1408 ac_cv_target_alias=$ac_cv_host_alias 1409ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1411echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1412 { (exit 1); exit 1; }; } 1413 1414fi 1415echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1416echo "${ECHO_T}$ac_cv_target" >&6 1417target=$ac_cv_target 1418target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1419target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1420target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1421 1422 1423# The aliases save the names the user supplied, while $host etc. 1424# will get canonicalized. 1425test -n "$target_alias" && 1426 test "$program_prefix$program_suffix$program_transform_name" = \ 1427 NONENONEs,x,x, && 1428 program_prefix=${target_alias}- 1429ac_ext=c 1430ac_cpp='$CPP $CPPFLAGS' 1431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1433ac_compiler_gnu=$ac_cv_c_compiler_gnu 1434if test -n "$ac_tool_prefix"; then 1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1436set dummy ${ac_tool_prefix}gcc; ac_word=$2 1437echo "$as_me:$LINENO: checking for $ac_word" >&5 1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1439if test "${ac_cv_prog_CC+set}" = set; then 1440 echo $ECHO_N "(cached) $ECHO_C" >&6 1441else 1442 if test -n "$CC"; then 1443 ac_cv_prog_CC="$CC" # Let the user override the test. 1444else 1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1446for as_dir in $PATH 1447do 1448 IFS=$as_save_IFS 1449 test -z "$as_dir" && as_dir=. 1450 for ac_exec_ext in '' $ac_executable_extensions; do 1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1452 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1454 break 2 1455 fi 1456done 1457done 1458 1459fi 1460fi 1461CC=$ac_cv_prog_CC 1462if test -n "$CC"; then 1463 echo "$as_me:$LINENO: result: $CC" >&5 1464echo "${ECHO_T}$CC" >&6 1465else 1466 echo "$as_me:$LINENO: result: no" >&5 1467echo "${ECHO_T}no" >&6 1468fi 1469 1470fi 1471if test -z "$ac_cv_prog_CC"; then 1472 ac_ct_CC=$CC 1473 # Extract the first word of "gcc", so it can be a program name with args. 1474set dummy gcc; ac_word=$2 1475echo "$as_me:$LINENO: checking for $ac_word" >&5 1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1478 echo $ECHO_N "(cached) $ECHO_C" >&6 1479else 1480 if test -n "$ac_ct_CC"; then 1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1482else 1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1484for as_dir in $PATH 1485do 1486 IFS=$as_save_IFS 1487 test -z "$as_dir" && as_dir=. 1488 for ac_exec_ext in '' $ac_executable_extensions; do 1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1490 ac_cv_prog_ac_ct_CC="gcc" 1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1492 break 2 1493 fi 1494done 1495done 1496 1497fi 1498fi 1499ac_ct_CC=$ac_cv_prog_ac_ct_CC 1500if test -n "$ac_ct_CC"; then 1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1502echo "${ECHO_T}$ac_ct_CC" >&6 1503else 1504 echo "$as_me:$LINENO: result: no" >&5 1505echo "${ECHO_T}no" >&6 1506fi 1507 1508 CC=$ac_ct_CC 1509else 1510 CC="$ac_cv_prog_CC" 1511fi 1512 1513if test -z "$CC"; then 1514 if test -n "$ac_tool_prefix"; then 1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1516set dummy ${ac_tool_prefix}cc; ac_word=$2 1517echo "$as_me:$LINENO: checking for $ac_word" >&5 1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1519if test "${ac_cv_prog_CC+set}" = set; then 1520 echo $ECHO_N "(cached) $ECHO_C" >&6 1521else 1522 if test -n "$CC"; then 1523 ac_cv_prog_CC="$CC" # Let the user override the test. 1524else 1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1526for as_dir in $PATH 1527do 1528 IFS=$as_save_IFS 1529 test -z "$as_dir" && as_dir=. 1530 for ac_exec_ext in '' $ac_executable_extensions; do 1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1532 ac_cv_prog_CC="${ac_tool_prefix}cc" 1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1534 break 2 1535 fi 1536done 1537done 1538 1539fi 1540fi 1541CC=$ac_cv_prog_CC 1542if test -n "$CC"; then 1543 echo "$as_me:$LINENO: result: $CC" >&5 1544echo "${ECHO_T}$CC" >&6 1545else 1546 echo "$as_me:$LINENO: result: no" >&5 1547echo "${ECHO_T}no" >&6 1548fi 1549 1550fi 1551if test -z "$ac_cv_prog_CC"; then 1552 ac_ct_CC=$CC 1553 # Extract the first word of "cc", so it can be a program name with args. 1554set dummy cc; ac_word=$2 1555echo "$as_me:$LINENO: checking for $ac_word" >&5 1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1558 echo $ECHO_N "(cached) $ECHO_C" >&6 1559else 1560 if test -n "$ac_ct_CC"; then 1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1562else 1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1564for as_dir in $PATH 1565do 1566 IFS=$as_save_IFS 1567 test -z "$as_dir" && as_dir=. 1568 for ac_exec_ext in '' $ac_executable_extensions; do 1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1570 ac_cv_prog_ac_ct_CC="cc" 1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1572 break 2 1573 fi 1574done 1575done 1576 1577fi 1578fi 1579ac_ct_CC=$ac_cv_prog_ac_ct_CC 1580if test -n "$ac_ct_CC"; then 1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1582echo "${ECHO_T}$ac_ct_CC" >&6 1583else 1584 echo "$as_me:$LINENO: result: no" >&5 1585echo "${ECHO_T}no" >&6 1586fi 1587 1588 CC=$ac_ct_CC 1589else 1590 CC="$ac_cv_prog_CC" 1591fi 1592 1593fi 1594if test -z "$CC"; then 1595 # Extract the first word of "cc", so it can be a program name with args. 1596set dummy cc; ac_word=$2 1597echo "$as_me:$LINENO: checking for $ac_word" >&5 1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1599if test "${ac_cv_prog_CC+set}" = set; then 1600 echo $ECHO_N "(cached) $ECHO_C" >&6 1601else 1602 if test -n "$CC"; then 1603 ac_cv_prog_CC="$CC" # Let the user override the test. 1604else 1605 ac_prog_rejected=no 1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1607for as_dir in $PATH 1608do 1609 IFS=$as_save_IFS 1610 test -z "$as_dir" && as_dir=. 1611 for ac_exec_ext in '' $ac_executable_extensions; do 1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1614 ac_prog_rejected=yes 1615 continue 1616 fi 1617 ac_cv_prog_CC="cc" 1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1619 break 2 1620 fi 1621done 1622done 1623 1624if test $ac_prog_rejected = yes; then 1625 # We found a bogon in the path, so make sure we never use it. 1626 set dummy $ac_cv_prog_CC 1627 shift 1628 if test $# != 0; then 1629 # We chose a different compiler from the bogus one. 1630 # However, it has the same basename, so the bogon will be chosen 1631 # first if we set CC to just the basename; use the full file name. 1632 shift 1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1634 fi 1635fi 1636fi 1637fi 1638CC=$ac_cv_prog_CC 1639if test -n "$CC"; then 1640 echo "$as_me:$LINENO: result: $CC" >&5 1641echo "${ECHO_T}$CC" >&6 1642else 1643 echo "$as_me:$LINENO: result: no" >&5 1644echo "${ECHO_T}no" >&6 1645fi 1646 1647fi 1648if test -z "$CC"; then 1649 if test -n "$ac_tool_prefix"; then 1650 for ac_prog in cl 1651 do 1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1654echo "$as_me:$LINENO: checking for $ac_word" >&5 1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1656if test "${ac_cv_prog_CC+set}" = set; then 1657 echo $ECHO_N "(cached) $ECHO_C" >&6 1658else 1659 if test -n "$CC"; then 1660 ac_cv_prog_CC="$CC" # Let the user override the test. 1661else 1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1663for as_dir in $PATH 1664do 1665 IFS=$as_save_IFS 1666 test -z "$as_dir" && as_dir=. 1667 for ac_exec_ext in '' $ac_executable_extensions; do 1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1671 break 2 1672 fi 1673done 1674done 1675 1676fi 1677fi 1678CC=$ac_cv_prog_CC 1679if test -n "$CC"; then 1680 echo "$as_me:$LINENO: result: $CC" >&5 1681echo "${ECHO_T}$CC" >&6 1682else 1683 echo "$as_me:$LINENO: result: no" >&5 1684echo "${ECHO_T}no" >&6 1685fi 1686 1687 test -n "$CC" && break 1688 done 1689fi 1690if test -z "$CC"; then 1691 ac_ct_CC=$CC 1692 for ac_prog in cl 1693do 1694 # Extract the first word of "$ac_prog", so it can be a program name with args. 1695set dummy $ac_prog; ac_word=$2 1696echo "$as_me:$LINENO: checking for $ac_word" >&5 1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1699 echo $ECHO_N "(cached) $ECHO_C" >&6 1700else 1701 if test -n "$ac_ct_CC"; then 1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1703else 1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1705for as_dir in $PATH 1706do 1707 IFS=$as_save_IFS 1708 test -z "$as_dir" && as_dir=. 1709 for ac_exec_ext in '' $ac_executable_extensions; do 1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1711 ac_cv_prog_ac_ct_CC="$ac_prog" 1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1713 break 2 1714 fi 1715done 1716done 1717 1718fi 1719fi 1720ac_ct_CC=$ac_cv_prog_ac_ct_CC 1721if test -n "$ac_ct_CC"; then 1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1723echo "${ECHO_T}$ac_ct_CC" >&6 1724else 1725 echo "$as_me:$LINENO: result: no" >&5 1726echo "${ECHO_T}no" >&6 1727fi 1728 1729 test -n "$ac_ct_CC" && break 1730done 1731 1732 CC=$ac_ct_CC 1733fi 1734 1735fi 1736 1737 1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1739See \`config.log' for more details." >&5 1740echo "$as_me: error: no acceptable C compiler found in \$PATH 1741See \`config.log' for more details." >&2;} 1742 { (exit 1); exit 1; }; } 1743 1744# Provide some information about the compiler. 1745echo "$as_me:$LINENO:" \ 1746 "checking for C compiler version" >&5 1747ac_compiler=`set X $ac_compile; echo $2` 1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1749 (eval $ac_compiler --version </dev/null >&5) 2>&5 1750 ac_status=$? 1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1752 (exit $ac_status); } 1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1754 (eval $ac_compiler -v </dev/null >&5) 2>&5 1755 ac_status=$? 1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1757 (exit $ac_status); } 1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1759 (eval $ac_compiler -V </dev/null >&5) 2>&5 1760 ac_status=$? 1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1762 (exit $ac_status); } 1763 1764cat >conftest.$ac_ext <<_ACEOF 1765/* confdefs.h. */ 1766_ACEOF 1767cat confdefs.h >>conftest.$ac_ext 1768cat >>conftest.$ac_ext <<_ACEOF 1769/* end confdefs.h. */ 1770 1771int 1772main () 1773{ 1774 1775 ; 1776 return 0; 1777} 1778_ACEOF 1779ac_clean_files_save=$ac_clean_files 1780ac_clean_files="$ac_clean_files a.out a.exe b.out" 1781# Try to create an executable without -o first, disregard a.out. 1782# It will help us diagnose broken compilers, and finding out an intuition 1783# of exeext. 1784echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1785echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1788 (eval $ac_link_default) 2>&5 1789 ac_status=$? 1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1791 (exit $ac_status); }; then 1792 # Find the output, starting from the most likely. This scheme is 1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1794# resort. 1795 1796# Be careful to initialize this variable, since it used to be cached. 1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1798ac_cv_exeext= 1799# b.out is created by i960 compilers. 1800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1801do 1802 test -f "$ac_file" || continue 1803 case $ac_file in 1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1805 ;; 1806 conftest.$ac_ext ) 1807 # This is the source file. 1808 ;; 1809 [ab].out ) 1810 # We found the default executable, but exeext='' is most 1811 # certainly right. 1812 break;; 1813 *.* ) 1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1815 # FIXME: I believe we export ac_cv_exeext for Libtool, 1816 # but it would be cool to find out if it's true. Does anybody 1817 # maintain Libtool? --akim. 1818 export ac_cv_exeext 1819 break;; 1820 * ) 1821 break;; 1822 esac 1823done 1824else 1825 echo "$as_me: failed program was:" >&5 1826sed 's/^/| /' conftest.$ac_ext >&5 1827 1828{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1829See \`config.log' for more details." >&5 1830echo "$as_me: error: C compiler cannot create executables 1831See \`config.log' for more details." >&2;} 1832 { (exit 77); exit 77; }; } 1833fi 1834 1835ac_exeext=$ac_cv_exeext 1836echo "$as_me:$LINENO: result: $ac_file" >&5 1837echo "${ECHO_T}$ac_file" >&6 1838 1839# Check the compiler produces executables we can run. If not, either 1840# the compiler is broken, or we cross compile. 1841echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1842echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1843# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1844# If not cross compiling, check that we can run a simple program. 1845if test "$cross_compiling" != yes; then 1846 if { ac_try='./$ac_file' 1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1848 (eval $ac_try) 2>&5 1849 ac_status=$? 1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 (exit $ac_status); }; }; then 1852 cross_compiling=no 1853 else 1854 if test "$cross_compiling" = maybe; then 1855 cross_compiling=yes 1856 else 1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1858If you meant to cross compile, use \`--host'. 1859See \`config.log' for more details." >&5 1860echo "$as_me: error: cannot run C compiled programs. 1861If you meant to cross compile, use \`--host'. 1862See \`config.log' for more details." >&2;} 1863 { (exit 1); exit 1; }; } 1864 fi 1865 fi 1866fi 1867echo "$as_me:$LINENO: result: yes" >&5 1868echo "${ECHO_T}yes" >&6 1869 1870rm -f a.out a.exe conftest$ac_cv_exeext b.out 1871ac_clean_files=$ac_clean_files_save 1872# Check the compiler produces executables we can run. If not, either 1873# the compiler is broken, or we cross compile. 1874echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1875echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1876echo "$as_me:$LINENO: result: $cross_compiling" >&5 1877echo "${ECHO_T}$cross_compiling" >&6 1878 1879echo "$as_me:$LINENO: checking for suffix of executables" >&5 1880echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1882 (eval $ac_link) 2>&5 1883 ac_status=$? 1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1885 (exit $ac_status); }; then 1886 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1888# work properly (i.e., refer to `conftest.exe'), while it won't with 1889# `rm'. 1890for ac_file in conftest.exe conftest conftest.*; do 1891 test -f "$ac_file" || continue 1892 case $ac_file in 1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1895 export ac_cv_exeext 1896 break;; 1897 * ) break;; 1898 esac 1899done 1900else 1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1902See \`config.log' for more details." >&5 1903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1904See \`config.log' for more details." >&2;} 1905 { (exit 1); exit 1; }; } 1906fi 1907 1908rm -f conftest$ac_cv_exeext 1909echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1910echo "${ECHO_T}$ac_cv_exeext" >&6 1911 1912rm -f conftest.$ac_ext 1913EXEEXT=$ac_cv_exeext 1914ac_exeext=$EXEEXT 1915echo "$as_me:$LINENO: checking for suffix of object files" >&5 1916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1917if test "${ac_cv_objext+set}" = set; then 1918 echo $ECHO_N "(cached) $ECHO_C" >&6 1919else 1920 cat >conftest.$ac_ext <<_ACEOF 1921/* confdefs.h. */ 1922_ACEOF 1923cat confdefs.h >>conftest.$ac_ext 1924cat >>conftest.$ac_ext <<_ACEOF 1925/* end confdefs.h. */ 1926 1927int 1928main () 1929{ 1930 1931 ; 1932 return 0; 1933} 1934_ACEOF 1935rm -f conftest.o conftest.obj 1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1937 (eval $ac_compile) 2>&5 1938 ac_status=$? 1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1940 (exit $ac_status); }; then 1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1942 case $ac_file in 1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1945 break;; 1946 esac 1947done 1948else 1949 echo "$as_me: failed program was:" >&5 1950sed 's/^/| /' conftest.$ac_ext >&5 1951 1952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1953See \`config.log' for more details." >&5 1954echo "$as_me: error: cannot compute suffix of object files: cannot compile 1955See \`config.log' for more details." >&2;} 1956 { (exit 1); exit 1; }; } 1957fi 1958 1959rm -f conftest.$ac_cv_objext conftest.$ac_ext 1960fi 1961echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1962echo "${ECHO_T}$ac_cv_objext" >&6 1963OBJEXT=$ac_cv_objext 1964ac_objext=$OBJEXT 1965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1967if test "${ac_cv_c_compiler_gnu+set}" = set; then 1968 echo $ECHO_N "(cached) $ECHO_C" >&6 1969else 1970 cat >conftest.$ac_ext <<_ACEOF 1971/* confdefs.h. */ 1972_ACEOF 1973cat confdefs.h >>conftest.$ac_ext 1974cat >>conftest.$ac_ext <<_ACEOF 1975/* end confdefs.h. */ 1976 1977int 1978main () 1979{ 1980#ifndef __GNUC__ 1981 choke me 1982#endif 1983 1984 ; 1985 return 0; 1986} 1987_ACEOF 1988rm -f conftest.$ac_objext 1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1990 (eval $ac_compile) 2>conftest.er1 1991 ac_status=$? 1992 grep -v '^ *+' conftest.er1 >conftest.err 1993 rm -f conftest.er1 1994 cat conftest.err >&5 1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1996 (exit $ac_status); } && 1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1999 (eval $ac_try) 2>&5 2000 ac_status=$? 2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2002 (exit $ac_status); }; } && 2003 { ac_try='test -s conftest.$ac_objext' 2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2005 (eval $ac_try) 2>&5 2006 ac_status=$? 2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2008 (exit $ac_status); }; }; then 2009 ac_compiler_gnu=yes 2010else 2011 echo "$as_me: failed program was:" >&5 2012sed 's/^/| /' conftest.$ac_ext >&5 2013 2014ac_compiler_gnu=no 2015fi 2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2017ac_cv_c_compiler_gnu=$ac_compiler_gnu 2018 2019fi 2020echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2021echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2022GCC=`test $ac_compiler_gnu = yes && echo yes` 2023ac_test_CFLAGS=${CFLAGS+set} 2024ac_save_CFLAGS=$CFLAGS 2025CFLAGS="-g" 2026echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2028if test "${ac_cv_prog_cc_g+set}" = set; then 2029 echo $ECHO_N "(cached) $ECHO_C" >&6 2030else 2031 cat >conftest.$ac_ext <<_ACEOF 2032/* confdefs.h. */ 2033_ACEOF 2034cat confdefs.h >>conftest.$ac_ext 2035cat >>conftest.$ac_ext <<_ACEOF 2036/* end confdefs.h. */ 2037 2038int 2039main () 2040{ 2041 2042 ; 2043 return 0; 2044} 2045_ACEOF 2046rm -f conftest.$ac_objext 2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2048 (eval $ac_compile) 2>conftest.er1 2049 ac_status=$? 2050 grep -v '^ *+' conftest.er1 >conftest.err 2051 rm -f conftest.er1 2052 cat conftest.err >&5 2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2054 (exit $ac_status); } && 2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2057 (eval $ac_try) 2>&5 2058 ac_status=$? 2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2060 (exit $ac_status); }; } && 2061 { ac_try='test -s conftest.$ac_objext' 2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2063 (eval $ac_try) 2>&5 2064 ac_status=$? 2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2066 (exit $ac_status); }; }; then 2067 ac_cv_prog_cc_g=yes 2068else 2069 echo "$as_me: failed program was:" >&5 2070sed 's/^/| /' conftest.$ac_ext >&5 2071 2072ac_cv_prog_cc_g=no 2073fi 2074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2075fi 2076echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2077echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2078if test "$ac_test_CFLAGS" = set; then 2079 CFLAGS=$ac_save_CFLAGS 2080elif test $ac_cv_prog_cc_g = yes; then 2081 if test "$GCC" = yes; then 2082 CFLAGS="-g -O2" 2083 else 2084 CFLAGS="-g" 2085 fi 2086else 2087 if test "$GCC" = yes; then 2088 CFLAGS="-O2" 2089 else 2090 CFLAGS= 2091 fi 2092fi 2093echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2094echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2095if test "${ac_cv_prog_cc_stdc+set}" = set; then 2096 echo $ECHO_N "(cached) $ECHO_C" >&6 2097else 2098 ac_cv_prog_cc_stdc=no 2099ac_save_CC=$CC 2100cat >conftest.$ac_ext <<_ACEOF 2101/* confdefs.h. */ 2102_ACEOF 2103cat confdefs.h >>conftest.$ac_ext 2104cat >>conftest.$ac_ext <<_ACEOF 2105/* end confdefs.h. */ 2106#include <stdarg.h> 2107#include <stdio.h> 2108#include <sys/types.h> 2109#include <sys/stat.h> 2110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2111struct buf { int x; }; 2112FILE * (*rcsopen) (struct buf *, struct stat *, int); 2113static char *e (p, i) 2114 char **p; 2115 int i; 2116{ 2117 return p[i]; 2118} 2119static char *f (char * (*g) (char **, int), char **p, ...) 2120{ 2121 char *s; 2122 va_list v; 2123 va_start (v,p); 2124 s = g (p, va_arg (v,int)); 2125 va_end (v); 2126 return s; 2127} 2128 2129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2130 function prototypes and stuff, but not '\xHH' hex character constants. 2131 These don't provoke an error unfortunately, instead are silently treated 2132 as 'x'. The following induces an error, until -std1 is added to get 2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2134 array size at least. It's necessary to write '\x00'==0 to get something 2135 that's true only with -std1. */ 2136int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2137 2138int test (int i, double x); 2139struct s1 {int (*f) (int a);}; 2140struct s2 {int (*f) (double a);}; 2141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2142int argc; 2143char **argv; 2144int 2145main () 2146{ 2147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152# Don't try gcc -ansi; that turns off useful extensions and 2153# breaks some systems' header files. 2154# AIX -qlanglvl=ansi 2155# Ultrix and OSF/1 -std1 2156# HP-UX 10.20 and later -Ae 2157# HP-UX older versions -Aa -D_HPUX_SOURCE 2158# SVR4 -Xc -D__EXTENSIONS__ 2159for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2160do 2161 CC="$ac_save_CC $ac_arg" 2162 rm -f conftest.$ac_objext 2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2164 (eval $ac_compile) 2>conftest.er1 2165 ac_status=$? 2166 grep -v '^ *+' conftest.er1 >conftest.err 2167 rm -f conftest.er1 2168 cat conftest.err >&5 2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2170 (exit $ac_status); } && 2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2173 (eval $ac_try) 2>&5 2174 ac_status=$? 2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2176 (exit $ac_status); }; } && 2177 { ac_try='test -s conftest.$ac_objext' 2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2179 (eval $ac_try) 2>&5 2180 ac_status=$? 2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2182 (exit $ac_status); }; }; then 2183 ac_cv_prog_cc_stdc=$ac_arg 2184break 2185else 2186 echo "$as_me: failed program was:" >&5 2187sed 's/^/| /' conftest.$ac_ext >&5 2188 2189fi 2190rm -f conftest.err conftest.$ac_objext 2191done 2192rm -f conftest.$ac_ext conftest.$ac_objext 2193CC=$ac_save_CC 2194 2195fi 2196 2197case "x$ac_cv_prog_cc_stdc" in 2198 x|xno) 2199 echo "$as_me:$LINENO: result: none needed" >&5 2200echo "${ECHO_T}none needed" >&6 ;; 2201 *) 2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2203echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2204 CC="$CC $ac_cv_prog_cc_stdc" ;; 2205esac 2206 2207# Some people use a C++ compiler to compile C. Since we use `exit', 2208# in C++ we need to declare it. In case someone uses the same compiler 2209# for both compiling C and C++ we need to have the C++ compiler decide 2210# the declaration of exit, since it's the most demanding environment. 2211cat >conftest.$ac_ext <<_ACEOF 2212#ifndef __cplusplus 2213 choke me 2214#endif 2215_ACEOF 2216rm -f conftest.$ac_objext 2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2218 (eval $ac_compile) 2>conftest.er1 2219 ac_status=$? 2220 grep -v '^ *+' conftest.er1 >conftest.err 2221 rm -f conftest.er1 2222 cat conftest.err >&5 2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2224 (exit $ac_status); } && 2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2227 (eval $ac_try) 2>&5 2228 ac_status=$? 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2230 (exit $ac_status); }; } && 2231 { ac_try='test -s conftest.$ac_objext' 2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2233 (eval $ac_try) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; }; then 2237 for ac_declaration in \ 2238 '' \ 2239 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2240 'extern "C" void std::exit (int); using std::exit;' \ 2241 'extern "C" void exit (int) throw ();' \ 2242 'extern "C" void exit (int);' \ 2243 'void exit (int);' 2244do 2245 cat >conftest.$ac_ext <<_ACEOF 2246/* confdefs.h. */ 2247_ACEOF 2248cat confdefs.h >>conftest.$ac_ext 2249cat >>conftest.$ac_ext <<_ACEOF 2250/* end confdefs.h. */ 2251$ac_declaration 2252#include <stdlib.h> 2253int 2254main () 2255{ 2256exit (42); 2257 ; 2258 return 0; 2259} 2260_ACEOF 2261rm -f conftest.$ac_objext 2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2263 (eval $ac_compile) 2>conftest.er1 2264 ac_status=$? 2265 grep -v '^ *+' conftest.er1 >conftest.err 2266 rm -f conftest.er1 2267 cat conftest.err >&5 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); } && 2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2272 (eval $ac_try) 2>&5 2273 ac_status=$? 2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2275 (exit $ac_status); }; } && 2276 { ac_try='test -s conftest.$ac_objext' 2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2278 (eval $ac_try) 2>&5 2279 ac_status=$? 2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2281 (exit $ac_status); }; }; then 2282 : 2283else 2284 echo "$as_me: failed program was:" >&5 2285sed 's/^/| /' conftest.$ac_ext >&5 2286 2287continue 2288fi 2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2290 cat >conftest.$ac_ext <<_ACEOF 2291/* confdefs.h. */ 2292_ACEOF 2293cat confdefs.h >>conftest.$ac_ext 2294cat >>conftest.$ac_ext <<_ACEOF 2295/* end confdefs.h. */ 2296$ac_declaration 2297int 2298main () 2299{ 2300exit (42); 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305rm -f conftest.$ac_objext 2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2307 (eval $ac_compile) 2>conftest.er1 2308 ac_status=$? 2309 grep -v '^ *+' conftest.er1 >conftest.err 2310 rm -f conftest.er1 2311 cat conftest.err >&5 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); } && 2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2316 (eval $ac_try) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; } && 2320 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 2326 break 2327else 2328 echo "$as_me: failed program was:" >&5 2329sed 's/^/| /' conftest.$ac_ext >&5 2330 2331fi 2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2333done 2334rm -f conftest* 2335if test -n "$ac_declaration"; then 2336 echo '#ifdef __cplusplus' >>confdefs.h 2337 echo $ac_declaration >>confdefs.h 2338 echo '#endif' >>confdefs.h 2339fi 2340 2341else 2342 echo "$as_me: failed program was:" >&5 2343sed 's/^/| /' conftest.$ac_ext >&5 2344 2345fi 2346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2347ac_ext=c 2348ac_cpp='$CPP $CPPFLAGS' 2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2351ac_compiler_gnu=$ac_cv_c_compiler_gnu 2352 2353 2354echo "$as_me:$LINENO: checking for library containing strerror" >&5 2355echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2356if test "${ac_cv_search_strerror+set}" = set; then 2357 echo $ECHO_N "(cached) $ECHO_C" >&6 2358else 2359 ac_func_search_save_LIBS=$LIBS 2360ac_cv_search_strerror=no 2361cat >conftest.$ac_ext <<_ACEOF 2362/* confdefs.h. */ 2363_ACEOF 2364cat confdefs.h >>conftest.$ac_ext 2365cat >>conftest.$ac_ext <<_ACEOF 2366/* end confdefs.h. */ 2367 2368/* Override any gcc2 internal prototype to avoid an error. */ 2369#ifdef __cplusplus 2370extern "C" 2371#endif 2372/* We use char because int might match the return type of a gcc2 2373 builtin and then its argument prototype would still apply. */ 2374char strerror (); 2375int 2376main () 2377{ 2378strerror (); 2379 ; 2380 return 0; 2381} 2382_ACEOF 2383rm -f conftest.$ac_objext conftest$ac_exeext 2384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2385 (eval $ac_link) 2>conftest.er1 2386 ac_status=$? 2387 grep -v '^ *+' conftest.er1 >conftest.err 2388 rm -f conftest.er1 2389 cat conftest.err >&5 2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 (exit $ac_status); } && 2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2394 (eval $ac_try) 2>&5 2395 ac_status=$? 2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2397 (exit $ac_status); }; } && 2398 { ac_try='test -s conftest$ac_exeext' 2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2400 (eval $ac_try) 2>&5 2401 ac_status=$? 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2403 (exit $ac_status); }; }; then 2404 ac_cv_search_strerror="none required" 2405else 2406 echo "$as_me: failed program was:" >&5 2407sed 's/^/| /' conftest.$ac_ext >&5 2408 2409fi 2410rm -f conftest.err conftest.$ac_objext \ 2411 conftest$ac_exeext conftest.$ac_ext 2412if test "$ac_cv_search_strerror" = no; then 2413 for ac_lib in cposix; do 2414 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2415 cat >conftest.$ac_ext <<_ACEOF 2416/* confdefs.h. */ 2417_ACEOF 2418cat confdefs.h >>conftest.$ac_ext 2419cat >>conftest.$ac_ext <<_ACEOF 2420/* end confdefs.h. */ 2421 2422/* Override any gcc2 internal prototype to avoid an error. */ 2423#ifdef __cplusplus 2424extern "C" 2425#endif 2426/* We use char because int might match the return type of a gcc2 2427 builtin and then its argument prototype would still apply. */ 2428char strerror (); 2429int 2430main () 2431{ 2432strerror (); 2433 ; 2434 return 0; 2435} 2436_ACEOF 2437rm -f conftest.$ac_objext conftest$ac_exeext 2438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2439 (eval $ac_link) 2>conftest.er1 2440 ac_status=$? 2441 grep -v '^ *+' conftest.er1 >conftest.err 2442 rm -f conftest.er1 2443 cat conftest.err >&5 2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2445 (exit $ac_status); } && 2446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2448 (eval $ac_try) 2>&5 2449 ac_status=$? 2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2451 (exit $ac_status); }; } && 2452 { ac_try='test -s conftest$ac_exeext' 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2454 (eval $ac_try) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); }; }; then 2458 ac_cv_search_strerror="-l$ac_lib" 2459break 2460else 2461 echo "$as_me: failed program was:" >&5 2462sed 's/^/| /' conftest.$ac_ext >&5 2463 2464fi 2465rm -f conftest.err conftest.$ac_objext \ 2466 conftest$ac_exeext conftest.$ac_ext 2467 done 2468fi 2469LIBS=$ac_func_search_save_LIBS 2470fi 2471echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2472echo "${ECHO_T}$ac_cv_search_strerror" >&6 2473if test "$ac_cv_search_strerror" != no; then 2474 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2475 2476fi 2477 2478 2479BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 2480am__api_version="1.8" 2481# Find a good install program. We prefer a C program (faster), 2482# so one script is as good as another. But avoid the broken or 2483# incompatible versions: 2484# SysV /etc/install, /usr/sbin/install 2485# SunOS /usr/etc/install 2486# IRIX /sbin/install 2487# AIX /bin/install 2488# AmigaOS /C/install, which installs bootblocks on floppy discs 2489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2490# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2492# OS/2's system install, which has a completely different semantic 2493# ./install, which can be erroneously created by make from ./install.sh. 2494echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2495echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2496if test -z "$INSTALL"; then 2497if test "${ac_cv_path_install+set}" = set; then 2498 echo $ECHO_N "(cached) $ECHO_C" >&6 2499else 2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 # Account for people who put trailing slashes in PATH elements. 2506case $as_dir/ in 2507 ./ | .// | /cC/* | \ 2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2509 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2510 /usr/ucb/* ) ;; 2511 *) 2512 # OSF1 and SCO ODT 3.0 have their own names for install. 2513 # Don't use installbsd from OSF since it installs stuff as root 2514 # by default. 2515 for ac_prog in ginstall scoinst install; do 2516 for ac_exec_ext in '' $ac_executable_extensions; do 2517 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2518 if test $ac_prog = install && 2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2520 # AIX install. It has an incompatible calling convention. 2521 : 2522 elif test $ac_prog = install && 2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2524 # program-specific install script used by HP pwplus--don't use. 2525 : 2526 else 2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2528 break 3 2529 fi 2530 fi 2531 done 2532 done 2533 ;; 2534esac 2535done 2536 2537 2538fi 2539 if test "${ac_cv_path_install+set}" = set; then 2540 INSTALL=$ac_cv_path_install 2541 else 2542 # As a last resort, use the slow shell script. We don't cache a 2543 # path for INSTALL within a source directory, because that will 2544 # break other packages using the cache if that directory is 2545 # removed, or if the path is relative. 2546 INSTALL=$ac_install_sh 2547 fi 2548fi 2549echo "$as_me:$LINENO: result: $INSTALL" >&5 2550echo "${ECHO_T}$INSTALL" >&6 2551 2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2553# It thinks the first close brace ends the variable substitution. 2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2555 2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2557 2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2559 2560echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2561echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2562# Just in case 2563sleep 1 2564echo timestamp > conftest.file 2565# Do `set' in a subshell so we don't clobber the current shell's 2566# arguments. Must try -L first in case configure is actually a 2567# symlink; some systems play weird games with the mod time of symlinks 2568# (eg FreeBSD returns the mod time of the symlink's containing 2569# directory). 2570if ( 2571 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2572 if test "$*" = "X"; then 2573 # -L didn't work. 2574 set X `ls -t $srcdir/configure conftest.file` 2575 fi 2576 rm -f conftest.file 2577 if test "$*" != "X $srcdir/configure conftest.file" \ 2578 && test "$*" != "X conftest.file $srcdir/configure"; then 2579 2580 # If neither matched, then we have a broken ls. This can happen 2581 # if, for instance, CONFIG_SHELL is bash and it inherits a 2582 # broken ls alias from the environment. This has actually 2583 # happened. Such a system could not be considered "sane". 2584 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2585alias in your environment" >&5 2586echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2587alias in your environment" >&2;} 2588 { (exit 1); exit 1; }; } 2589 fi 2590 2591 test "$2" = conftest.file 2592 ) 2593then 2594 # Ok. 2595 : 2596else 2597 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2598Check your system clock" >&5 2599echo "$as_me: error: newly created file is older than distributed files! 2600Check your system clock" >&2;} 2601 { (exit 1); exit 1; }; } 2602fi 2603echo "$as_me:$LINENO: result: yes" >&5 2604echo "${ECHO_T}yes" >&6 2605test "$program_prefix" != NONE && 2606 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2607# Use a double $ so make ignores it. 2608test "$program_suffix" != NONE && 2609 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2610# Double any \ or $. echo might interpret backslashes. 2611# By default was `s,x,x', remove it if useless. 2612cat <<\_ACEOF >conftest.sed 2613s/[\\$]/&&/g;s/;s,x,x,$// 2614_ACEOF 2615program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2616rm conftest.sed 2617 2618# expand $ac_aux_dir to an absolute path 2619am_aux_dir=`cd $ac_aux_dir && pwd` 2620 2621test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2622# Use eval to expand $SHELL 2623if eval "$MISSING --run true"; then 2624 am_missing_run="$MISSING --run " 2625else 2626 am_missing_run= 2627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2628echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2629fi 2630 2631if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2632 # Keeping the `.' argument allows $(mkdir_p) to be used without 2633 # argument. Indeed, we sometimes output rules like 2634 # $(mkdir_p) $(somedir) 2635 # where $(somedir) is conditionally defined. 2636 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 2637 # expensive solution, as it forces Make to start a sub-shell.) 2638 mkdir_p='mkdir -p -- .' 2639else 2640 # On NextStep and OpenStep, the `mkdir' command does not 2641 # recognize any option. It will interpret all options as 2642 # directories to create, and then abort because `.' already 2643 # exists. 2644 for d in ./-p ./--version; 2645 do 2646 test -d $d && rmdir $d 2647 done 2648 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2649 if test -f "$ac_aux_dir/mkinstalldirs"; then 2650 mkdir_p='$(mkinstalldirs)' 2651 else 2652 mkdir_p='$(install_sh) -d' 2653 fi 2654fi 2655 2656for ac_prog in gawk mawk nawk awk 2657do 2658 # Extract the first word of "$ac_prog", so it can be a program name with args. 2659set dummy $ac_prog; ac_word=$2 2660echo "$as_me:$LINENO: checking for $ac_word" >&5 2661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2662if test "${ac_cv_prog_AWK+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664else 2665 if test -n "$AWK"; then 2666 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2667else 2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669for as_dir in $PATH 2670do 2671 IFS=$as_save_IFS 2672 test -z "$as_dir" && as_dir=. 2673 for ac_exec_ext in '' $ac_executable_extensions; do 2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2675 ac_cv_prog_AWK="$ac_prog" 2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2677 break 2 2678 fi 2679done 2680done 2681 2682fi 2683fi 2684AWK=$ac_cv_prog_AWK 2685if test -n "$AWK"; then 2686 echo "$as_me:$LINENO: result: $AWK" >&5 2687echo "${ECHO_T}$AWK" >&6 2688else 2689 echo "$as_me:$LINENO: result: no" >&5 2690echo "${ECHO_T}no" >&6 2691fi 2692 2693 test -n "$AWK" && break 2694done 2695 2696echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2697echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2698set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2699if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2700 echo $ECHO_N "(cached) $ECHO_C" >&6 2701else 2702 cat >conftest.make <<\_ACEOF 2703all: 2704 @echo 'ac_maketemp="$(MAKE)"' 2705_ACEOF 2706# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2707eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2708if test -n "$ac_maketemp"; then 2709 eval ac_cv_prog_make_${ac_make}_set=yes 2710else 2711 eval ac_cv_prog_make_${ac_make}_set=no 2712fi 2713rm -f conftest.make 2714fi 2715if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2716 echo "$as_me:$LINENO: result: yes" >&5 2717echo "${ECHO_T}yes" >&6 2718 SET_MAKE= 2719else 2720 echo "$as_me:$LINENO: result: no" >&5 2721echo "${ECHO_T}no" >&6 2722 SET_MAKE="MAKE=${MAKE-make}" 2723fi 2724 2725rm -rf .tst 2>/dev/null 2726mkdir .tst 2>/dev/null 2727if test -d .tst; then 2728 am__leading_dot=. 2729else 2730 am__leading_dot=_ 2731fi 2732rmdir .tst 2>/dev/null 2733 2734DEPDIR="${am__leading_dot}deps" 2735 2736 ac_config_commands="$ac_config_commands depfiles" 2737 2738 2739am_make=${MAKE-make} 2740cat > confinc << 'END' 2741am__doit: 2742 @echo done 2743.PHONY: am__doit 2744END 2745# If we don't find an include directive, just comment out the code. 2746echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2747echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2748am__include="#" 2749am__quote= 2750_am_result=none 2751# First try GNU make style include. 2752echo "include confinc" > confmf 2753# We grep out `Entering directory' and `Leaving directory' 2754# messages which can occur if `w' ends up in MAKEFLAGS. 2755# In particular we don't look at `^make:' because GNU make might 2756# be invoked under some other name (usually "gmake"), in which 2757# case it prints its new name instead of `make'. 2758if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2759 am__include=include 2760 am__quote= 2761 _am_result=GNU 2762fi 2763# Now try BSD make style include. 2764if test "$am__include" = "#"; then 2765 echo '.include "confinc"' > confmf 2766 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2767 am__include=.include 2768 am__quote="\"" 2769 _am_result=BSD 2770 fi 2771fi 2772 2773 2774echo "$as_me:$LINENO: result: $_am_result" >&5 2775echo "${ECHO_T}$_am_result" >&6 2776rm -f confinc confmf 2777 2778# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2779if test "${enable_dependency_tracking+set}" = set; then 2780 enableval="$enable_dependency_tracking" 2781 2782fi; 2783if test "x$enable_dependency_tracking" != xno; then 2784 am_depcomp="$ac_aux_dir/depcomp" 2785 AMDEPBACKSLASH='\' 2786fi 2787 2788 2789if test "x$enable_dependency_tracking" != xno; then 2790 AMDEP_TRUE= 2791 AMDEP_FALSE='#' 2792else 2793 AMDEP_TRUE='#' 2794 AMDEP_FALSE= 2795fi 2796 2797 2798 2799# test to see if srcdir already configured 2800if test "`cd $srcdir && pwd`" != "`pwd`" && 2801 test -f $srcdir/config.status; then 2802 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2803echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2804 { (exit 1); exit 1; }; } 2805fi 2806 2807# test whether we have cygpath 2808if test -z "$CYGPATH_W"; then 2809 if (cygpath --version) >/dev/null 2>/dev/null; then 2810 CYGPATH_W='cygpath -w' 2811 else 2812 CYGPATH_W=echo 2813 fi 2814fi 2815 2816 2817# Define the identity of the package. 2818 PACKAGE=gas 2819 VERSION=${BFD_VERSION} 2820 2821 2822cat >>confdefs.h <<_ACEOF 2823#define PACKAGE "$PACKAGE" 2824_ACEOF 2825 2826 2827cat >>confdefs.h <<_ACEOF 2828#define VERSION "$VERSION" 2829_ACEOF 2830 2831# Some tools Automake needs. 2832 2833ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2834 2835 2836AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2837 2838 2839AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2840 2841 2842AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2843 2844 2845MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2846 2847 2848AMTAR=${AMTAR-"${am_missing_run}tar"} 2849 2850install_sh=${install_sh-"$am_aux_dir/install-sh"} 2851 2852# Installed binaries are usually stripped using `strip' when the user 2853# run `make install-strip'. However `strip' might not be the right 2854# tool to use in cross-compilation environments, therefore Automake 2855# will honor the `STRIP' environment variable to overrule this program. 2856if test "$cross_compiling" != no; then 2857 if test -n "$ac_tool_prefix"; then 2858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2859set dummy ${ac_tool_prefix}strip; ac_word=$2 2860echo "$as_me:$LINENO: checking for $ac_word" >&5 2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2862if test "${ac_cv_prog_STRIP+set}" = set; then 2863 echo $ECHO_N "(cached) $ECHO_C" >&6 2864else 2865 if test -n "$STRIP"; then 2866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2867else 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 test -z "$as_dir" && as_dir=. 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880done 2881 2882fi 2883fi 2884STRIP=$ac_cv_prog_STRIP 2885if test -n "$STRIP"; then 2886 echo "$as_me:$LINENO: result: $STRIP" >&5 2887echo "${ECHO_T}$STRIP" >&6 2888else 2889 echo "$as_me:$LINENO: result: no" >&5 2890echo "${ECHO_T}no" >&6 2891fi 2892 2893fi 2894if test -z "$ac_cv_prog_STRIP"; then 2895 ac_ct_STRIP=$STRIP 2896 # Extract the first word of "strip", so it can be a program name with args. 2897set dummy strip; ac_word=$2 2898echo "$as_me:$LINENO: checking for $ac_word" >&5 2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2901 echo $ECHO_N "(cached) $ECHO_C" >&6 2902else 2903 if test -n "$ac_ct_STRIP"; then 2904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2905else 2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907for as_dir in $PATH 2908do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2913 ac_cv_prog_ac_ct_STRIP="strip" 2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918done 2919 2920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2921fi 2922fi 2923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2924if test -n "$ac_ct_STRIP"; then 2925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2926echo "${ECHO_T}$ac_ct_STRIP" >&6 2927else 2928 echo "$as_me:$LINENO: result: no" >&5 2929echo "${ECHO_T}no" >&6 2930fi 2931 2932 STRIP=$ac_ct_STRIP 2933else 2934 STRIP="$ac_cv_prog_STRIP" 2935fi 2936 2937fi 2938INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2939 2940# We need awk for the "check" target. The system "awk" is bad on 2941# some platforms. 2942 2943 2944depcc="$CC" am_compiler_list= 2945 2946echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2947echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2948if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2949 echo $ECHO_N "(cached) $ECHO_C" >&6 2950else 2951 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2952 # We make a subdir and do the tests there. Otherwise we can end up 2953 # making bogus files that we don't know about and never remove. For 2954 # instance it was reported that on HP-UX the gcc test will end up 2955 # making a dummy file named `D' -- because `-MD' means `put the output 2956 # in D'. 2957 mkdir conftest.dir 2958 # Copy depcomp to subdir because otherwise we won't find it if we're 2959 # using a relative directory. 2960 cp "$am_depcomp" conftest.dir 2961 cd conftest.dir 2962 # We will build objects and dependencies in a subdirectory because 2963 # it helps to detect inapplicable dependency modes. For instance 2964 # both Tru64's cc and ICC support -MD to output dependencies as a 2965 # side effect of compilation, but ICC will put the dependencies in 2966 # the current directory while Tru64 will put them in the object 2967 # directory. 2968 mkdir sub 2969 2970 am_cv_CC_dependencies_compiler_type=none 2971 if test "$am_compiler_list" = ""; then 2972 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2973 fi 2974 for depmode in $am_compiler_list; do 2975 # Setup a source with many dependencies, because some compilers 2976 # like to wrap large dependency lists on column 80 (with \), and 2977 # we should not choose a depcomp mode which is confused by this. 2978 # 2979 # We need to recreate these files for each test, as the compiler may 2980 # overwrite some of them when testing with obscure command lines. 2981 # This happens at least with the AIX C compiler. 2982 : > sub/conftest.c 2983 for i in 1 2 3 4 5 6; do 2984 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2986 # Solaris 8's {/usr,}/bin/sh. 2987 touch sub/conftst$i.h 2988 done 2989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2990 2991 case $depmode in 2992 nosideeffect) 2993 # after this tag, mechanisms are not by side-effect, so they'll 2994 # only be used when explicitly requested 2995 if test "x$enable_dependency_tracking" = xyes; then 2996 continue 2997 else 2998 break 2999 fi 3000 ;; 3001 none) break ;; 3002 esac 3003 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3004 # mode. It turns out that the SunPro C++ compiler does not properly 3005 # handle `-M -o', and we need to detect this. 3006 if depmode=$depmode \ 3007 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3009 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3010 >/dev/null 2>conftest.err && 3011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3012 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3014 # icc doesn't choke on unknown options, it will just issue warnings 3015 # or remarks (even with -Werror). So we grep stderr for any message 3016 # that says an option was ignored or not supported. 3017 # When given -MP, icc 7.0 and 7.1 complain thusly: 3018 # icc: Command line warning: ignoring option '-M'; no argument required 3019 # The diagnosis changed in icc 8.0: 3020 # icc: Command line remark: option '-MP' not supported 3021 if (grep 'ignoring option' conftest.err || 3022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3023 am_cv_CC_dependencies_compiler_type=$depmode 3024 break 3025 fi 3026 fi 3027 done 3028 3029 cd .. 3030 rm -rf conftest.dir 3031else 3032 am_cv_CC_dependencies_compiler_type=none 3033fi 3034 3035fi 3036echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3037echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3038CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3039 3040 3041 3042if 3043 test "x$enable_dependency_tracking" != xno \ 3044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3045 am__fastdepCC_TRUE= 3046 am__fastdepCC_FALSE='#' 3047else 3048 am__fastdepCC_TRUE='#' 3049 am__fastdepCC_FALSE= 3050fi 3051 3052 3053 3054 3055# Check whether --enable-shared or --disable-shared was given. 3056if test "${enable_shared+set}" = set; then 3057 enableval="$enable_shared" 3058 p=${PACKAGE-default} 3059case $enableval in 3060yes) enable_shared=yes ;; 3061no) enable_shared=no ;; 3062*) 3063 enable_shared=no 3064 # Look at the argument we got. We use all the common list separators. 3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3066 for pkg in $enableval; do 3067 if test "X$pkg" = "X$p"; then 3068 enable_shared=yes 3069 fi 3070 done 3071 IFS="$ac_save_ifs" 3072 ;; 3073esac 3074else 3075 enable_shared=yes 3076fi; 3077# Check whether --enable-static or --disable-static was given. 3078if test "${enable_static+set}" = set; then 3079 enableval="$enable_static" 3080 p=${PACKAGE-default} 3081case $enableval in 3082yes) enable_static=yes ;; 3083no) enable_static=no ;; 3084*) 3085 enable_static=no 3086 # Look at the argument we got. We use all the common list separators. 3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3088 for pkg in $enableval; do 3089 if test "X$pkg" = "X$p"; then 3090 enable_static=yes 3091 fi 3092 done 3093 IFS="$ac_save_ifs" 3094 ;; 3095esac 3096else 3097 enable_static=yes 3098fi; 3099# Check whether --enable-fast-install or --disable-fast-install was given. 3100if test "${enable_fast_install+set}" = set; then 3101 enableval="$enable_fast_install" 3102 p=${PACKAGE-default} 3103case $enableval in 3104yes) enable_fast_install=yes ;; 3105no) enable_fast_install=no ;; 3106*) 3107 enable_fast_install=no 3108 # Look at the argument we got. We use all the common list separators. 3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3110 for pkg in $enableval; do 3111 if test "X$pkg" = "X$p"; then 3112 enable_fast_install=yes 3113 fi 3114 done 3115 IFS="$ac_save_ifs" 3116 ;; 3117esac 3118else 3119 enable_fast_install=yes 3120fi; 3121 3122# Check whether --with-gnu-ld or --without-gnu-ld was given. 3123if test "${with_gnu_ld+set}" = set; then 3124 withval="$with_gnu_ld" 3125 test "$withval" = no || with_gnu_ld=yes 3126else 3127 with_gnu_ld=no 3128fi; 3129ac_prog=ld 3130if test "$GCC" = yes; then 3131 # Check if gcc -print-prog-name=ld gives a path. 3132 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3133echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3134 case $host in 3135 *-*-mingw*) 3136 # gcc leaves a trailing carriage return which upsets mingw 3137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3138 *) 3139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3140 esac 3141 case $ac_prog in 3142 # Accept absolute paths. 3143 [\\/]* | [A-Za-z]:[\\/]*) 3144 re_direlt='/[^/][^/]*/\.\./' 3145 # Canonicalize the path of ld 3146 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3147 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3148 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3149 done 3150 test -z "$LD" && LD="$ac_prog" 3151 ;; 3152 "") 3153 # If it fails, then pretend we aren't using GCC. 3154 ac_prog=ld 3155 ;; 3156 *) 3157 # If it is relative, then search for the first ld in PATH. 3158 with_gnu_ld=unknown 3159 ;; 3160 esac 3161elif test "$with_gnu_ld" = yes; then 3162 echo "$as_me:$LINENO: checking for GNU ld" >&5 3163echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3164else 3165 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3166echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3167fi 3168if test "${lt_cv_path_LD+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 if test -z "$LD"; then 3172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3173 for ac_dir in $PATH; do 3174 test -z "$ac_dir" && ac_dir=. 3175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3176 lt_cv_path_LD="$ac_dir/$ac_prog" 3177 # Check to see if the program is GNU ld. I'd rather use --version, 3178 # but apparently some GNU ld's only accept -v. 3179 # Break only if it was the GNU/non-GNU ld that we prefer. 3180 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3181 test "$with_gnu_ld" != no && break 3182 else 3183 test "$with_gnu_ld" != yes && break 3184 fi 3185 fi 3186 done 3187 IFS="$ac_save_ifs" 3188else 3189 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3190fi 3191fi 3192 3193LD="$lt_cv_path_LD" 3194if test -n "$LD"; then 3195 echo "$as_me:$LINENO: result: $LD" >&5 3196echo "${ECHO_T}$LD" >&6 3197else 3198 echo "$as_me:$LINENO: result: no" >&5 3199echo "${ECHO_T}no" >&6 3200fi 3201test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3202echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3203 { (exit 1); exit 1; }; } 3204echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3205echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3206if test "${lt_cv_prog_gnu_ld+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208else 3209 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3210if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3211 lt_cv_prog_gnu_ld=yes 3212else 3213 lt_cv_prog_gnu_ld=no 3214fi 3215fi 3216echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3217echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3218with_gnu_ld=$lt_cv_prog_gnu_ld 3219 3220 3221echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3222echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3223if test "${lt_cv_ld_reload_flag+set}" = set; then 3224 echo $ECHO_N "(cached) $ECHO_C" >&6 3225else 3226 lt_cv_ld_reload_flag='-r' 3227fi 3228echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3229echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3230reload_flag=$lt_cv_ld_reload_flag 3231test -n "$reload_flag" && reload_flag=" $reload_flag" 3232 3233echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3234echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3235if test "${lt_cv_path_NM+set}" = set; then 3236 echo $ECHO_N "(cached) $ECHO_C" >&6 3237else 3238 if test -n "$NM"; then 3239 # Let the user override the test. 3240 lt_cv_path_NM="$NM" 3241else 3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3243 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3244 test -z "$ac_dir" && ac_dir=. 3245 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3246 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3247 # Check to see if the nm accepts a BSD-compat flag. 3248 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3249 # nm: unknown option "B" ignored 3250 # Tru64's nm complains that /dev/null is an invalid object file 3251 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3252 lt_cv_path_NM="$tmp_nm -B" 3253 break 3254 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3255 lt_cv_path_NM="$tmp_nm -p" 3256 break 3257 else 3258 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3259 continue # so that we can try to find one that supports BSD flags 3260 fi 3261 fi 3262 done 3263 IFS="$ac_save_ifs" 3264 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3265fi 3266fi 3267 3268NM="$lt_cv_path_NM" 3269echo "$as_me:$LINENO: result: $NM" >&5 3270echo "${ECHO_T}$NM" >&6 3271 3272echo "$as_me:$LINENO: checking whether ln -s works" >&5 3273echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3274LN_S=$as_ln_s 3275if test "$LN_S" = "ln -s"; then 3276 echo "$as_me:$LINENO: result: yes" >&5 3277echo "${ECHO_T}yes" >&6 3278else 3279 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3280echo "${ECHO_T}no, using $LN_S" >&6 3281fi 3282 3283echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3284echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3285if test "${lt_cv_deplibs_check_method+set}" = set; then 3286 echo $ECHO_N "(cached) $ECHO_C" >&6 3287else 3288 lt_cv_file_magic_cmd='$MAGIC_CMD' 3289lt_cv_file_magic_test_file= 3290lt_cv_deplibs_check_method='unknown' 3291# Need to set the preceding variable on all platforms that support 3292# interlibrary dependencies. 3293# 'none' -- dependencies not supported. 3294# `unknown' -- same as none, but documents that we really don't know. 3295# 'pass_all' -- all dependencies passed with no checks. 3296# 'test_compile' -- check by making test program. 3297# 'file_magic [regex]' -- check by looking for files in library path 3298# which responds to the $file_magic_cmd with a given egrep regex. 3299# If you have `file' or equivalent on your system and you're not sure 3300# whether `pass_all' will *always* work, you probably want this one. 3301 3302case $host_os in 3303aix*) 3304 lt_cv_deplibs_check_method=pass_all 3305 ;; 3306 3307beos*) 3308 lt_cv_deplibs_check_method=pass_all 3309 ;; 3310 3311bsdi4*) 3312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3313 lt_cv_file_magic_cmd='/usr/bin/file -L' 3314 lt_cv_file_magic_test_file=/shlib/libc.so 3315 ;; 3316 3317cygwin* | mingw* |pw32*) 3318 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3319 lt_cv_file_magic_cmd='$OBJDUMP -f' 3320 ;; 3321 3322darwin* | rhapsody*) 3323 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3324 lt_cv_file_magic_cmd='/usr/bin/file -L' 3325 case "$host_os" in 3326 rhapsody* | darwin1.012) 3327 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 3328 ;; 3329 *) # Darwin 1.3 on 3330 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3331 ;; 3332 esac 3333 ;; 3334 3335freebsd* ) 3336 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3337 case $host_cpu in 3338 i*86 ) 3339 # Not sure whether the presence of OpenBSD here was a mistake. 3340 # Let's accept both of them until this is cleared up. 3341 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3342 lt_cv_file_magic_cmd=/usr/bin/file 3343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3344 ;; 3345 esac 3346 else 3347 lt_cv_deplibs_check_method=pass_all 3348 fi 3349 ;; 3350 3351gnu*) 3352 lt_cv_deplibs_check_method=pass_all 3353 ;; 3354 3355hpux10.20*|hpux11*) 3356 case $host_cpu in 3357 hppa*) 3358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3359 lt_cv_file_magic_cmd=/usr/bin/file 3360 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3361 ;; 3362 ia64*) 3363 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3364 lt_cv_file_magic_cmd=/usr/bin/file 3365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3366 ;; 3367 esac 3368 ;; 3369 3370irix5* | irix6*) 3371 case $host_os in 3372 irix5*) 3373 # this will be overridden with pass_all, but let us keep it just in case 3374 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3375 ;; 3376 *) 3377 case $LD in 3378 *-32|*"-32 ") libmagic=32-bit;; 3379 *-n32|*"-n32 ") libmagic=N32;; 3380 *-64|*"-64 ") libmagic=64-bit;; 3381 *) libmagic=never-match;; 3382 esac 3383 # this will be overridden with pass_all, but let us keep it just in case 3384 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3385 ;; 3386 esac 3387 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3388 lt_cv_deplibs_check_method=pass_all 3389 ;; 3390 3391# This must be Linux ELF. 3392linux-gnu*) 3393 case $host_cpu in 3394 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 3395 lt_cv_deplibs_check_method=pass_all ;; 3396 *) 3397 # glibc up to 2.1.1 does not perform some relocations on ARM 3398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3399 esac 3400 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3401 ;; 3402 3403netbsd*) 3404 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3405 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3406 else 3407 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3408 fi 3409 ;; 3410 3411newsos6) 3412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3413 lt_cv_file_magic_cmd=/usr/bin/file 3414 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3415 ;; 3416 3417osf3* | osf4* | osf5*) 3418 # this will be overridden with pass_all, but let us keep it just in case 3419 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3420 lt_cv_file_magic_test_file=/shlib/libc.so 3421 lt_cv_deplibs_check_method=pass_all 3422 ;; 3423 3424sco3.2v5*) 3425 lt_cv_deplibs_check_method=pass_all 3426 ;; 3427 3428solaris*) 3429 lt_cv_deplibs_check_method=pass_all 3430 lt_cv_file_magic_test_file=/lib/libc.so 3431 ;; 3432 3433sysv5uw[78]* | sysv4*uw2*) 3434 lt_cv_deplibs_check_method=pass_all 3435 ;; 3436 3437sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3438 case $host_vendor in 3439 ncr) 3440 lt_cv_deplibs_check_method=pass_all 3441 ;; 3442 motorola) 3443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 3444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3445 ;; 3446 esac 3447 ;; 3448esac 3449 3450fi 3451echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3452echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3453file_magic_cmd=$lt_cv_file_magic_cmd 3454deplibs_check_method=$lt_cv_deplibs_check_method 3455 3456 3457 3458 3459# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 3460 3461# Only perform the check for file, if the check method requires it 3462case $deplibs_check_method in 3463file_magic*) 3464 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3465 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 3466echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 3467if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3468 echo $ECHO_N "(cached) $ECHO_C" >&6 3469else 3470 case $MAGIC_CMD in 3471 /*) 3472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3473 ;; 3474 ?:/*) 3475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3476 ;; 3477 *) 3478 ac_save_MAGIC_CMD="$MAGIC_CMD" 3479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3480 ac_dummy="/usr/bin:$PATH" 3481 for ac_dir in $ac_dummy; do 3482 test -z "$ac_dir" && ac_dir=. 3483 if test -f $ac_dir/${ac_tool_prefix}file; then 3484 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 3485 if test -n "$file_magic_test_file"; then 3486 case $deplibs_check_method in 3487 "file_magic "*) 3488 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3491 egrep "$file_magic_regex" > /dev/null; then 3492 : 3493 else 3494 cat <<EOF 1>&2 3495 3496*** Warning: the command libtool uses to detect shared libraries, 3497*** $file_magic_cmd, produces output that libtool cannot recognize. 3498*** The result is that libtool may fail to recognize shared libraries 3499*** as such. This will affect the creation of libtool libraries that 3500*** depend on shared libraries, but programs linked with such libtool 3501*** libraries will work regardless of this problem. Nevertheless, you 3502*** may want to report the problem to your system manager and/or to 3503*** bug-libtool@gnu.org 3504 3505EOF 3506 fi ;; 3507 esac 3508 fi 3509 break 3510 fi 3511 done 3512 IFS="$ac_save_ifs" 3513 MAGIC_CMD="$ac_save_MAGIC_CMD" 3514 ;; 3515esac 3516fi 3517 3518MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3519if test -n "$MAGIC_CMD"; then 3520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 3521echo "${ECHO_T}$MAGIC_CMD" >&6 3522else 3523 echo "$as_me:$LINENO: result: no" >&5 3524echo "${ECHO_T}no" >&6 3525fi 3526 3527if test -z "$lt_cv_path_MAGIC_CMD"; then 3528 if test -n "$ac_tool_prefix"; then 3529 echo "$as_me:$LINENO: checking for file" >&5 3530echo $ECHO_N "checking for file... $ECHO_C" >&6 3531if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3532 echo $ECHO_N "(cached) $ECHO_C" >&6 3533else 3534 case $MAGIC_CMD in 3535 /*) 3536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3537 ;; 3538 ?:/*) 3539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3540 ;; 3541 *) 3542 ac_save_MAGIC_CMD="$MAGIC_CMD" 3543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3544 ac_dummy="/usr/bin:$PATH" 3545 for ac_dir in $ac_dummy; do 3546 test -z "$ac_dir" && ac_dir=. 3547 if test -f $ac_dir/file; then 3548 lt_cv_path_MAGIC_CMD="$ac_dir/file" 3549 if test -n "$file_magic_test_file"; then 3550 case $deplibs_check_method in 3551 "file_magic "*) 3552 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3555 egrep "$file_magic_regex" > /dev/null; then 3556 : 3557 else 3558 cat <<EOF 1>&2 3559 3560*** Warning: the command libtool uses to detect shared libraries, 3561*** $file_magic_cmd, produces output that libtool cannot recognize. 3562*** The result is that libtool may fail to recognize shared libraries 3563*** as such. This will affect the creation of libtool libraries that 3564*** depend on shared libraries, but programs linked with such libtool 3565*** libraries will work regardless of this problem. Nevertheless, you 3566*** may want to report the problem to your system manager and/or to 3567*** bug-libtool@gnu.org 3568 3569EOF 3570 fi ;; 3571 esac 3572 fi 3573 break 3574 fi 3575 done 3576 IFS="$ac_save_ifs" 3577 MAGIC_CMD="$ac_save_MAGIC_CMD" 3578 ;; 3579esac 3580fi 3581 3582MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3583if test -n "$MAGIC_CMD"; then 3584 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 3585echo "${ECHO_T}$MAGIC_CMD" >&6 3586else 3587 echo "$as_me:$LINENO: result: no" >&5 3588echo "${ECHO_T}no" >&6 3589fi 3590 3591 else 3592 MAGIC_CMD=: 3593 fi 3594fi 3595 3596 fi 3597 ;; 3598esac 3599 3600if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3602set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3603echo "$as_me:$LINENO: checking for $ac_word" >&5 3604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3605if test "${ac_cv_prog_RANLIB+set}" = set; then 3606 echo $ECHO_N "(cached) $ECHO_C" >&6 3607else 3608 if test -n "$RANLIB"; then 3609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3610else 3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3612for as_dir in $PATH 3613do 3614 IFS=$as_save_IFS 3615 test -z "$as_dir" && as_dir=. 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623done 3624 3625fi 3626fi 3627RANLIB=$ac_cv_prog_RANLIB 3628if test -n "$RANLIB"; then 3629 echo "$as_me:$LINENO: result: $RANLIB" >&5 3630echo "${ECHO_T}$RANLIB" >&6 3631else 3632 echo "$as_me:$LINENO: result: no" >&5 3633echo "${ECHO_T}no" >&6 3634fi 3635 3636fi 3637if test -z "$ac_cv_prog_RANLIB"; then 3638 ac_ct_RANLIB=$RANLIB 3639 # Extract the first word of "ranlib", so it can be a program name with args. 3640set dummy ranlib; ac_word=$2 3641echo "$as_me:$LINENO: checking for $ac_word" >&5 3642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3643if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3644 echo $ECHO_N "(cached) $ECHO_C" >&6 3645else 3646 if test -n "$ac_ct_RANLIB"; then 3647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3648else 3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3650for as_dir in $PATH 3651do 3652 IFS=$as_save_IFS 3653 test -z "$as_dir" && as_dir=. 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_ac_ct_RANLIB="ranlib" 3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661done 3662 3663 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3664fi 3665fi 3666ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3667if test -n "$ac_ct_RANLIB"; then 3668 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3669echo "${ECHO_T}$ac_ct_RANLIB" >&6 3670else 3671 echo "$as_me:$LINENO: result: no" >&5 3672echo "${ECHO_T}no" >&6 3673fi 3674 3675 RANLIB=$ac_ct_RANLIB 3676else 3677 RANLIB="$ac_cv_prog_RANLIB" 3678fi 3679 3680if test -n "$ac_tool_prefix"; then 3681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3682set dummy ${ac_tool_prefix}strip; ac_word=$2 3683echo "$as_me:$LINENO: checking for $ac_word" >&5 3684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3685if test "${ac_cv_prog_STRIP+set}" = set; then 3686 echo $ECHO_N "(cached) $ECHO_C" >&6 3687else 3688 if test -n "$STRIP"; then 3689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3690else 3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692for as_dir in $PATH 3693do 3694 IFS=$as_save_IFS 3695 test -z "$as_dir" && as_dir=. 3696 for ac_exec_ext in '' $ac_executable_extensions; do 3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3698 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3700 break 2 3701 fi 3702done 3703done 3704 3705fi 3706fi 3707STRIP=$ac_cv_prog_STRIP 3708if test -n "$STRIP"; then 3709 echo "$as_me:$LINENO: result: $STRIP" >&5 3710echo "${ECHO_T}$STRIP" >&6 3711else 3712 echo "$as_me:$LINENO: result: no" >&5 3713echo "${ECHO_T}no" >&6 3714fi 3715 3716fi 3717if test -z "$ac_cv_prog_STRIP"; then 3718 ac_ct_STRIP=$STRIP 3719 # Extract the first word of "strip", so it can be a program name with args. 3720set dummy strip; ac_word=$2 3721echo "$as_me:$LINENO: checking for $ac_word" >&5 3722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3723if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3724 echo $ECHO_N "(cached) $ECHO_C" >&6 3725else 3726 if test -n "$ac_ct_STRIP"; then 3727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3728else 3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3730for as_dir in $PATH 3731do 3732 IFS=$as_save_IFS 3733 test -z "$as_dir" && as_dir=. 3734 for ac_exec_ext in '' $ac_executable_extensions; do 3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3736 ac_cv_prog_ac_ct_STRIP="strip" 3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3738 break 2 3739 fi 3740done 3741done 3742 3743 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3744fi 3745fi 3746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3747if test -n "$ac_ct_STRIP"; then 3748 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3749echo "${ECHO_T}$ac_ct_STRIP" >&6 3750else 3751 echo "$as_me:$LINENO: result: no" >&5 3752echo "${ECHO_T}no" >&6 3753fi 3754 3755 STRIP=$ac_ct_STRIP 3756else 3757 STRIP="$ac_cv_prog_STRIP" 3758fi 3759 3760 3761# Check for any special flags to pass to ltconfig. 3762libtool_flags="--cache-file=$cache_file" 3763test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 3764test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 3765test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 3766test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 3767test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 3768 3769 3770# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3771if test "${enable_libtool_lock+set}" = set; then 3772 enableval="$enable_libtool_lock" 3773 3774fi; 3775test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 3776test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 3777 3778 3779# Check whether --with-pic or --without-pic was given. 3780if test "${with_pic+set}" = set; then 3781 withval="$with_pic" 3782 pic_mode="$withval" 3783else 3784 pic_mode=default 3785fi; 3786test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 3787test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 3788 3789# Some flags need to be propagated to the compiler or linker for good 3790# libtool support. 3791case $host in 3792*-*-irix6*) 3793 # Find out which ABI we are using. 3794 echo '#line 3794 "configure"' > conftest.$ac_ext 3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3796 (eval $ac_compile) 2>&5 3797 ac_status=$? 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); }; then 3800 if test "$lt_cv_prog_gnu_ld" = yes; then 3801 case `/usr/bin/file conftest.$ac_objext` in 3802 *32-bit*) 3803 LD="${LD-ld} -melf32bsmip" 3804 ;; 3805 *N32*) 3806 LD="${LD-ld} -melf32bmipn32" 3807 ;; 3808 *64-bit*) 3809 LD="${LD-ld} -melf64bmip" 3810 ;; 3811 esac 3812 else 3813 case `/usr/bin/file conftest.$ac_objext` in 3814 *32-bit*) 3815 LD="${LD-ld} -32" 3816 ;; 3817 *N32*) 3818 LD="${LD-ld} -n32" 3819 ;; 3820 *64-bit*) 3821 LD="${LD-ld} -64" 3822 ;; 3823 esac 3824 fi 3825 fi 3826 rm -rf conftest* 3827 ;; 3828 3829ia64-*-hpux*) 3830 # Find out which ABI we are using. 3831 echo 'int i;' > conftest.$ac_ext 3832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3833 (eval $ac_compile) 2>&5 3834 ac_status=$? 3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3836 (exit $ac_status); }; then 3837 case "`/usr/bin/file conftest.o`" in 3838 *ELF-32*) 3839 HPUX_IA64_MODE="32" 3840 ;; 3841 *ELF-64*) 3842 HPUX_IA64_MODE="64" 3843 ;; 3844 esac 3845 fi 3846 rm -rf conftest* 3847 ;; 3848 3849*-*-sco3.2v5*) 3850 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3851 SAVE_CFLAGS="$CFLAGS" 3852 CFLAGS="$CFLAGS -belf" 3853 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3854echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3855if test "${lt_cv_cc_needs_belf+set}" = set; then 3856 echo $ECHO_N "(cached) $ECHO_C" >&6 3857else 3858 3859 3860 ac_ext=c 3861ac_cpp='$CPP $CPPFLAGS' 3862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3864ac_compiler_gnu=$ac_cv_c_compiler_gnu 3865 3866 cat >conftest.$ac_ext <<_ACEOF 3867/* confdefs.h. */ 3868_ACEOF 3869cat confdefs.h >>conftest.$ac_ext 3870cat >>conftest.$ac_ext <<_ACEOF 3871/* end confdefs.h. */ 3872 3873int 3874main () 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881rm -f conftest.$ac_objext conftest$ac_exeext 3882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3883 (eval $ac_link) 2>conftest.er1 3884 ac_status=$? 3885 grep -v '^ *+' conftest.er1 >conftest.err 3886 rm -f conftest.er1 3887 cat conftest.err >&5 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); } && 3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3892 (eval $ac_try) 2>&5 3893 ac_status=$? 3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3895 (exit $ac_status); }; } && 3896 { ac_try='test -s conftest$ac_exeext' 3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3898 (eval $ac_try) 2>&5 3899 ac_status=$? 3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3901 (exit $ac_status); }; }; then 3902 lt_cv_cc_needs_belf=yes 3903else 3904 echo "$as_me: failed program was:" >&5 3905sed 's/^/| /' conftest.$ac_ext >&5 3906 3907lt_cv_cc_needs_belf=no 3908fi 3909rm -f conftest.err conftest.$ac_objext \ 3910 conftest$ac_exeext conftest.$ac_ext 3911 ac_ext=c 3912ac_cpp='$CPP $CPPFLAGS' 3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3915ac_compiler_gnu=$ac_cv_c_compiler_gnu 3916 3917fi 3918echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3919echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3920 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3921 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3922 CFLAGS="$SAVE_CFLAGS" 3923 fi 3924 ;; 3925 3926 3927esac 3928 3929 3930# Save cache, so that ltconfig can load it 3931cat >confcache <<\_ACEOF 3932# This file is a shell script that caches the results of configure 3933# tests run on this system so they can be shared between configure 3934# scripts and configure runs, see configure's option --config-cache. 3935# It is not useful on other systems. If it contains results you don't 3936# want to keep, you may remove or edit it. 3937# 3938# config.status only pays attention to the cache file if you give it 3939# the --recheck option to rerun configure. 3940# 3941# `ac_cv_env_foo' variables (set or unset) will be overridden when 3942# loading this file, other *unset* `ac_cv_foo' will be assigned the 3943# following values. 3944 3945_ACEOF 3946 3947# The following way of writing the cache mishandles newlines in values, 3948# but we know of no workaround that is simple, portable, and efficient. 3949# So, don't put newlines in cache variables' values. 3950# Ultrix sh set writes to stderr and can't be redirected directly, 3951# and sets the high bit in the cache file unless we assign to the vars. 3952{ 3953 (set) 2>&1 | 3954 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3955 *ac_space=\ *) 3956 # `set' does not quote correctly, so add quotes (double-quote 3957 # substitution turns \\\\ into \\, and sed turns \\ into \). 3958 sed -n \ 3959 "s/'/'\\\\''/g; 3960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3961 ;; 3962 *) 3963 # `set' quotes correctly as required by POSIX, so do not add quotes. 3964 sed -n \ 3965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3966 ;; 3967 esac; 3968} | 3969 sed ' 3970 t clear 3971 : clear 3972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3973 t end 3974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3975 : end' >>confcache 3976if diff $cache_file confcache >/dev/null 2>&1; then :; else 3977 if test -w $cache_file; then 3978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3979 cat confcache >$cache_file 3980 else 3981 echo "not updating unwritable cache $cache_file" 3982 fi 3983fi 3984rm -f confcache 3985 3986# Actually configure libtool. ac_aux_dir is where install-sh is found. 3987AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 3988MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 3989LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 3990AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 3991objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 3992deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 3993${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 3994$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 3995|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 3996echo "$as_me: error: libtool configure failed" >&2;} 3997 { (exit 1); exit 1; }; } 3998 3999# Reload cache, that may have been modified by ltconfig 4000if test -r "$cache_file"; then 4001 # Some versions of bash will fail to source /dev/null (special 4002 # files actually), so we avoid doing that. 4003 if test -f "$cache_file"; then 4004 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 4005echo "$as_me: loading cache $cache_file" >&6;} 4006 case $cache_file in 4007 [\\/]* | ?:[\\/]* ) . $cache_file;; 4008 *) . ./$cache_file;; 4009 esac 4010 fi 4011else 4012 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 4013echo "$as_me: creating cache $cache_file" >&6;} 4014 >$cache_file 4015fi 4016 4017 4018# This can be used to rebuild libtool when needed 4019LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 4020 4021# Always use our own libtool. 4022LIBTOOL='$(SHELL) $(top_builddir)/libtool' 4023 4024# Redirect the config.log output again, so that the ltconfig log is not 4025# clobbered by the next message. 4026exec 5>>./config.log 4027 4028 4029 4030 4031 4032 4033 4034user_bfd_gas= 4035# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. 4036if test "${enable_bfd_assembler+set}" = set; then 4037 enableval="$enable_bfd_assembler" 4038 case "${enableval}" in 4039 yes) need_bfd=yes user_bfd_gas=yes ;; 4040 no) user_bfd_gas=no ;; 4041 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5 4042echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;} 4043 { (exit 1); exit 1; }; } ;; 4044esac 4045fi; # Check whether --enable-targets or --disable-targets was given. 4046if test "${enable_targets+set}" = set; then 4047 enableval="$enable_targets" 4048 case "${enableval}" in 4049 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 4050echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} 4051 { (exit 1); exit 1; }; } 4052 ;; 4053 no) enable_targets= ;; 4054 *) enable_targets=$enableval ;; 4055esac 4056fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 4057if test "${enable_commonbfdlib+set}" = set; then 4058 enableval="$enable_commonbfdlib" 4059 case "${enableval}" in 4060 yes) commonbfdlib=true ;; 4061 no) commonbfdlib=false ;; 4062 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 4063echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} 4064 { (exit 1); exit 1; }; } ;; 4065esac 4066fi; 4067using_cgen=no 4068 4069build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 4070# Check whether --enable-build-warnings or --disable-build-warnings was given. 4071if test "${enable_build_warnings+set}" = set; then 4072 enableval="$enable_build_warnings" 4073 case "${enableval}" in 4074 yes) ;; 4075 no) build_warnings="-w";; 4076 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4077 build_warnings="${build_warnings} ${t}";; 4078 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 4079 build_warnings="${t} ${build_warnings}";; 4080 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 4081esac 4082if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 4083 echo "Setting warning flags = $build_warnings" 6>&1 4084fi 4085fi; WARN_CFLAGS="" 4086if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 4087 WARN_CFLAGS="${build_warnings}" 4088fi 4089 4090 4091# Generate a header file 4092 ac_config_headers="$ac_config_headers config.h:config.in" 4093 4094 4095# If we are on a DOS filesystem, we must use gdb.ini rather than 4096# .gdbinit. 4097case "${host}" in 4098 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) 4099 GDBINIT="gdb.ini" 4100 ac_config_files="$ac_config_files gdb.ini:gdbinit.in" 4101 4102 ;; 4103 *) 4104 GDBINIT=".gdbinit" 4105 ac_config_files="$ac_config_files .gdbinit:gdbinit.in" 4106 4107 ;; 4108esac 4109 4110 4111te_file=generic 4112 4113# Makefile target for installing gas in $(tooldir)/bin. 4114install_tooldir=install-exec-tooldir 4115 4116canon_targets="" 4117all_targets=no 4118if test -n "$enable_targets" ; then 4119 for t in `echo $enable_targets | sed 's/,/ /g'`; do 4120 if test $t = "all"; then 4121 all_targets=yes 4122 continue 4123 fi 4124 result=`$ac_config_sub $t 2>/dev/null` 4125 if test -n "$result" ; then 4126 canon_targets="$canon_targets $result" 4127# else 4128# # Permit "all", etc. We don't support it yet though. 4129# canon_targets="$canon_targets $t" 4130 fi 4131 done 4132 _gas_uniq_list="$canon_targets" 4133_gas_uniq_newlist="" 4134for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do 4135 case $_gas_uniq_i in 4136 _gas_uniq_dummy) ;; 4137 *) case " $_gas_uniq_newlist " in 4138 *" $_gas_uniq_i "*) ;; 4139 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; 4140 esac ;; 4141 esac 4142done 4143canon_targets=$_gas_uniq_newlist 4144 4145fi 4146 4147emulations="" 4148 4149for this_target in $target $canon_targets ; do 4150 4151 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'` 4152 4153 # check for architecture variants 4154 arch= 4155 endian= 4156 case ${cpu} in 4157 am33_2.0) cpu_type=mn10300 endian=little ;; 4158 alpha*) cpu_type=alpha ;; 4159 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;; 4160 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;; 4161 c4x*) cpu_type=tic4x ;; 4162 hppa*) cpu_type=hppa ;; 4163 i[3-7]86) cpu_type=i386 arch=i386;; 4164 x86_64) cpu_type=i386 arch=x86_64;; 4165 ia64) cpu_type=ia64 ;; 4166 ip2k) cpu_type=ip2k endian=big ;; 4167 iq2000) cpu_type=iq2000 endian=big ;; 4168 m6811|m6812|m68hc12) cpu_type=m68hc11 ;; 4169 m680[012346]0) cpu_type=m68k ;; 4170 m68008) cpu_type=m68k ;; 4171 m683??) cpu_type=m68k ;; 4172 m5200) cpu_type=m68k ;; 4173 m8*) cpu_type=m88k ;; 4174 mips*el) cpu_type=mips endian=little ;; 4175 mips*) cpu_type=mips endian=big ;; 4176 or32*) cpu_type=or32 endian=big ;; 4177 pjl*) cpu_type=pj endian=little ;; 4178 pj*) cpu_type=pj endian=big ;; 4179 powerpc*le*) cpu_type=ppc endian=little ;; 4180 powerpc*) cpu_type=ppc endian=big ;; 4181 rs6000*) cpu_type=ppc ;; 4182 s390x*) cpu_type=s390 arch=s390x ;; 4183 s390*) cpu_type=s390 arch=s390 ;; 4184 sh5*) cpu_type=sh64 endian=big ;; 4185 sh5le*) cpu_type=sh64 endian=little ;; 4186 sh64*) cpu_type=sh64 endian=big ;; 4187 sh64le*) cpu_type=sh64 endian=little ;; 4188 sh*le) cpu_type=sh endian=little ;; 4189 sh*) cpu_type=sh endian=big ;; 4190 sparclite*) cpu_type=sparc arch=sparclite ;; 4191 sparclet*) cpu_type=sparc arch=sparclet ;; 4192 sparc64*) cpu_type=sparc arch=v9-64 ;; 4193 sparc86x*) cpu_type=sparc arch=sparc86x ;; 4194 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c. 4195 v850*) cpu_type=v850 ;; 4196 xtensa*) cpu_type=xtensa arch=xtensa ;; 4197 m32r) cpu_type=m32r target_cpu=m32r endian=big ;; 4198 m32rle) cpu_type=m32r target_cpu=m32r endian=little ;; 4199 *) cpu_type=${cpu} ;; 4200 esac 4201 4202 if test ${this_target} = $target ; then 4203 target_cpu_type=${cpu_type} 4204 elif test ${target_cpu_type} != ${cpu_type} ; then 4205 continue 4206 fi 4207 4208 generic_target=${cpu_type}-$vendor-$os 4209 dev=no 4210 bfd_gas=no 4211 em=generic 4212 4213 # assign object format 4214 case ${generic_target} in 4215 a29k-*-coff) fmt=coff ;; 4216 a29k-amd-udi) fmt=coff ;; 4217 a29k-amd-ebmon) fmt=coff ;; 4218 a29k-nyu-sym1) fmt=coff ;; 4219 a29k-*-rtems*) fmt=coff ;; 4220 a29k-*-vxworks*) fmt=coff ;; 4221 4222 alpha*-*-*vms*) fmt=evax ;; 4223 alpha*-*-netware*) fmt=ecoff ;; 4224 alpha*-*-osf*) fmt=ecoff ;; 4225 alpha*-*-linuxecoff*) fmt=ecoff ;; 4226 alpha*-*-linux-gnu*) fmt=elf em=linux ;; 4227 alpha*-*-netbsd*) fmt=elf em=nbsd ;; 4228 alpha*-*-openbsd*) fmt=elf em=obsd ;; 4229 4230 # cpu_type for am33_2.0 is set to mn10300 4231 mn10300-*-linux*) fmt=elf bfd_gas=yes em=linux ;; 4232 4233 arc-*-elf*) fmt=elf ;; 4234 4235 arm-*-aout) fmt=aout ;; 4236 arm-*-coff | thumb-*-coff) fmt=coff ;; 4237 arm-*-rtems* | thumb-*-rtems*) fmt=elf ;; 4238 arm-*-elf | thumb-*-elf) fmt=elf ;; 4239 arm-*-kaos*) fmt=elf ;; 4240 arm*-*-conix*) fmt=elf ;; 4241 arm-*-linux*aout*) fmt=aout em=linux ;; 4242 arm*-*-linux-gnu*) fmt=elf em=linux ;; 4243 arm*-*-uclinux*) fmt=elf em=linux ;; 4244 arm-*-netbsdelf*) fmt=elf em=nbsd ;; 4245 arm-*-netbsd*) fmt=aout em=nbsd ;; 4246 arm-*-openbsd*) fmt=elf em=obsd ;; 4247 arm-**-nto*) fmt=elf ;; 4248 arm-*-oabi | thumb-*-oabi) fmt=elf ;; 4249 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;; 4250 arm-wince-pe | arm-*-wince) fmt=coff em=wince-pe ;; 4251 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;; 4252 arm-*-riscix*) fmt=aout em=riscix ;; 4253 4254 avr-*-*) fmt=elf ;; 4255 4256 cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;; 4257 cris-*-*) fmt=multi bfd_gas=yes ;; 4258 4259 d10v-*-*) fmt=elf ;; 4260 d30v-*-*) fmt=elf ;; 4261 dlx-*-*) fmt=elf ;; 4262 4263 fr30-*-*) fmt=elf ;; 4264 frv-*-*linux*) fmt=elf em=linux;; 4265 frv-*-*) fmt=elf ;; 4266 4267 hppa-*-linux*) case ${cpu} in 4268 hppa*64*) fmt=elf em=hppalinux64;; 4269 hppa*) fmt=elf em=linux;; 4270 esac ;; 4271 hppa-*-*elf*) fmt=elf em=hppa ;; 4272 hppa-*-lites*) fmt=elf em=hppa ;; 4273 hppa-*-netbsd*) fmt=elf em=nbsd ;; 4274 hppa-*-openbsd*) case ${cpu} in 4275 hppa64) fmt=elf em=obsdhppa64 ;; 4276 hppa) fmt=elf em=obsd ;; 4277 esac ;; 4278 hppa-*-osf*) fmt=som em=hppa ;; 4279 hppa-*-rtems*) fmt=elf em=hppa ;; 4280 hppa-*-hpux11*) case ${cpu} in 4281 hppa*64*) fmt=elf em=hppa64 ;; 4282 hppa*) fmt=som em=hppa ;; 4283 esac ;; 4284 hppa-*-hpux*) fmt=som em=hppa ;; 4285 hppa-*-mpeix*) fmt=som em=hppa ;; 4286 hppa-*-bsd*) fmt=som em=hppa ;; 4287 hppa-*-hiux*) fmt=som em=hppa ;; 4288 4289 h8300-*-rtems*) fmt=coff ;; 4290 h8300-*-coff) fmt=coff ;; 4291 h8300-*-elf) fmt=elf ;; 4292 h8500-*-rtems*) fmt=coff ;; 4293 h8500-*-coff) fmt=coff ;; 4294 4295 i370-*-elf* | i370-*-linux*) fmt=elf ;; 4296 i386-ibm-aix*) fmt=coff em=i386aix ;; 4297 i386-sequent-bsd*) fmt=aout em=dynix ;; 4298 i386-*-beospe*) fmt=coff em=pe ;; 4299 i386-*-beos*) fmt=elf ;; 4300 i386-*-coff) fmt=coff ;; 4301 i386-*-elf) fmt=elf ;; 4302 i386-*-kaos*) fmt=elf ;; 4303 i386-*-bsd*) fmt=aout em=386bsd ;; 4304 i386-*-netbsd0.8) fmt=aout em=386bsd ;; 4305 i386-*-netbsdpe*) fmt=coff em=pe ;; 4306 i386-*-netbsd*-gnu* | \ 4307 i386-*-knetbsd*-gnu | \ 4308 i386-*-netbsdelf*) fmt=elf em=nbsd ;; 4309 i386-*-netbsd*) case ${cpu} in 4310 x86_64) fmt=elf em=nbsd ;; 4311 *) fmt=aout em=nbsd ;; 4312 esac ;; 4313 i386-*-openbsd*) em=obsd bfd_gas=yes 4314 case ${cpu} in 4315 x86_64) fmt=elf ;; 4316 *) case ${os} in 4317 openbsd[0-2].* | openbsd3.[0-2]) 4318 fmt=aout ;; 4319 *) 4320 fmt=elf ;; 4321 esac 4322 esac ;; 4323 i386-*-linux*aout*) fmt=aout em=linux ;; 4324 i386-*-linux*oldld) fmt=aout em=linux ;; 4325 i386-*-linux*coff*) fmt=coff em=linux ;; 4326 i386-*-linux-gnu*) fmt=elf em=linux ;; 4327 x86_64-*-linux-gnu*) fmt=elf em=linux ;; 4328 i386-*-lynxos*) fmt=coff em=lynx ;; 4329 i386-*-sysv[45]*) fmt=elf ;; 4330 i386-*-solaris*) fmt=elf ;; 4331 i386-*-freebsdaout*) fmt=aout em=386bsd ;; 4332 i386-*-freebsd[12].*) fmt=aout em=386bsd ;; 4333 i386-*-freebsd[12]) fmt=aout em=386bsd ;; 4334 i386-*-freebsd* | i386-*-kfreebsd*-gnu) 4335 fmt=elf em=freebsd ;; 4336 i386-*-sysv*) fmt=coff ;; 4337 i386-*-sco3.2v5*coff) fmt=coff ;; 4338 i386-*-isc*) fmt=coff ;; 4339 i386-*-sco3.2v5*) fmt=elf 4340 if test ${this_target} = $target; then 4341 4342cat >>confdefs.h <<\_ACEOF 4343#define SCO_ELF 1 4344_ACEOF 4345 4346 fi ;; 4347 i386-*-sco3.2*) fmt=coff ;; 4348 i386-*-vsta) fmt=aout ;; 4349 i386-*-msdosdjgpp* \ 4350 | i386-*-go32* \ 4351 | i386-go32-rtems*) fmt=coff em=go32 4352 4353cat >>confdefs.h <<\_ACEOF 4354#define STRICTCOFF 1 4355_ACEOF 4356 ;; 4357 i386-*-rtemself*) fmt=elf ;; 4358 i386-*-rtemscoff*) fmt=coff ;; 4359 i386-*-rtems*) fmt=elf ;; 4360 i386-*-gnu*) fmt=elf ;; 4361 i386-*-mach*) fmt=aout em=mach ;; 4362 i386-*-msdos*) fmt=aout ;; 4363 i386-*-moss*) fmt=elf ;; 4364 i386-*-pe) fmt=coff em=pe ;; 4365 i386-*-cygwin*) fmt=coff em=pe ;; 4366 i386-*-interix*) fmt=coff em=interix ;; 4367 i386-*-mingw32*) fmt=coff em=pe ;; 4368 i386-*-nto-qnx*) fmt=elf ;; 4369 i386-*-*nt*) fmt=coff em=pe ;; 4370 i386-*-chaos) fmt=elf ;; 4371 4372 i860-*-*) fmt=elf endian=little 4373 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 4374echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;; 4375 i960-*-bout) fmt=bout ;; 4376 i960-*-coff) fmt=coff em=ic960 ;; 4377 i960-*-rtems*) fmt=coff em=ic960 ;; 4378 i960-*-nindy*) fmt=bout ;; 4379 i960-*-vxworks5.0) fmt=bout ;; 4380 i960-*-vxworks5.*) fmt=coff em=ic960 ;; 4381 i960-*-vxworks*) fmt=bout ;; 4382 i960-*-elf*) fmt=elf ;; 4383 4384 ia64-*-elf*) fmt=elf ;; 4385 ia64-*-aix*) fmt=elf em=ia64aix ;; 4386 ia64-*-linux-gnu*) fmt=elf em=linux ;; 4387 ia64-*-hpux*) fmt=elf em=hpux ;; 4388 ia64-*-netbsd*) fmt=elf em=nbsd ;; 4389 4390 ip2k-*-*) fmt=elf ;; 4391 4392 iq2000-*-elf) fmt=elf bfd_gas=yes ;; 4393 4394 m32r-*-elf*) fmt=elf ;; 4395 m32r-*-linux*) fmt=elf em=linux;; 4396 4397 m68hc11-*-* | m6811-*-*) fmt=elf ;; 4398 m68hc12-*-* | m6812-*-*) fmt=elf ;; 4399 4400 m68k-*-vxworks*) fmt=aout em=sun3 ;; 4401 m68k-ericsson-ose) fmt=aout em=sun3 ;; 4402 m68k-*-sunos*) fmt=aout em=sun3 ;; 4403 m68k-motorola-sysv*) fmt=coff em=delta ;; 4404 m68k-bull-sysv3*) fmt=coff em=dpx2 ;; 4405 m68k-apollo-*) fmt=coff em=apollo ;; 4406 m68k-*-elf*) fmt=elf ;; 4407 m68k-*-sysv4*) fmt=elf em=svr4 ;; 4408 m68k-*-sysv*) fmt=coff ;; 4409 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;; 4410 m68k-*-rtems*) fmt=elf ;; 4411 m68k-*-hpux*) fmt=hp300 em=hp300 ;; 4412 m68k-*-linux*aout*) fmt=aout em=linux ;; 4413 m68k-*-linux-gnu*) fmt=elf em=linux ;; 4414 m68k-*-uclinux*) fmt=elf ;; 4415 m68k-*-gnu*) fmt=elf ;; 4416 m68k-*-lynxos*) fmt=coff em=lynx ;; 4417 m68k-*-netbsdelf*) fmt=elf em=nbsd ;; 4418 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; 4419 m68k-*-openbsd*) fmt=elf em=obsd ;; 4420 m68k-apple-aux*) fmt=coff em=aux ;; 4421 m68k-*-psos*) fmt=elf em=psos;; 4422 4423 m88k-motorola-sysv3*) fmt=coff em=delt88 ;; 4424 m88k-*-coff*) fmt=coff ;; 4425 m88k-*-openbsd*) fmt=elf em=obsd bfd_gas=yes ;; 4426 4427 mcore-*-elf) fmt=elf ;; 4428 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;; 4429 4430 # don't change em like *-*-bsd does 4431 mips-sony-bsd*) fmt=ecoff ;; 4432 mips-*-bsd*) 4433 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5 4434echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;} 4435 { (exit 1); exit 1; }; } ;; 4436 mips-*-ultrix*) fmt=ecoff endian=little ;; 4437 mips-*-osf*) fmt=ecoff endian=little ;; 4438 mips-*-ecoff*) fmt=ecoff ;; 4439 mips-*-pe*) fmt=coff endian=little em=pe ;; 4440 mips-*-irix6*) fmt=elf em=irix ;; 4441 mips-*-irix5*) fmt=elf em=irix ;; 4442 mips-*-irix*) fmt=ecoff em=irix ;; 4443 mips-*-lnews*) fmt=ecoff em=lnews ;; 4444 mips-*-riscos*) fmt=ecoff ;; 4445 mips*-*-linux*) fmt=elf em=tmips ;; 4446 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;; 4447 mips-*-sysv*) fmt=ecoff ;; 4448 mips-*-elf* | mips-*-rtems*) fmt=elf ;; 4449 mips-*-netbsd*) fmt=elf ;; 4450 mips-*-openbsd*) fmt=elf em=tmips ;; 4451 4452 mmix-*-*) fmt=elf ;; 4453 mn10200-*-*) fmt=elf ;; 4454 mn10300-*-*) fmt=elf ;; 4455 msp430-*-*) fmt=elf ;; 4456 openrisc-*-*) fmt=elf ;; 4457 or32-*-rtems*) fmt=elf ;; 4458 or32-*-coff) fmt=coff ;; 4459 or32-*-elf) fmt=elf ;; 4460 pj*) fmt=elf ;; 4461 4462 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;; 4463 ppc-*-winnt*) fmt=coff em=pe ;; 4464 ppc-*-aix5.[01]) fmt=coff em=aix5 ;; 4465 ppc-*-aix5.*) fmt=coff em=aix5 4466 4467cat >>confdefs.h <<\_ACEOF 4468#define AIX_WEAK_SUPPORT 1 4469_ACEOF 4470 4471 ;; 4472 ppc-*-aix*) fmt=coff ;; 4473 ppc-*-beos*) fmt=coff ;; 4474 ppc-*-netbsd* | ppc-*-elf*) fmt=elf ;; 4475 ppc-*-openbsd*) fmt=elf em=obsd ;; 4476 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;; 4477 ppc-*-linux-gnu*) fmt=elf em=linux 4478 case "$endian" in 4479 big) ;; 4480 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5 4481echo "$as_me: error: GNU/Linux must be configured big endian" >&2;} 4482 { (exit 1); exit 1; }; } ;; 4483 esac ;; 4484 ppc-*-solaris*) fmt=elf 4485 if test ${this_target} = $target; then 4486 4487cat >>confdefs.h <<\_ACEOF 4488#define TARGET_SOLARIS_COMMENT 1 4489_ACEOF 4490 4491 fi 4492 if test x${endian} = xbig; then 4493 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5 4494echo "$as_me: error: Solaris must be configured little endian" >&2;} 4495 { (exit 1); exit 1; }; } 4496 fi ;; 4497 ppc-*-rtems*) fmt=elf ;; 4498 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;; 4499 ppc-*-netware*) fmt=elf em=ppcnw ;; 4500 ppc-**-nto*) fmt=elf ;; 4501 ppc-*-kaos*) fmt=elf ;; 4502 4503 s390x-*-linux-gnu*) fmt=elf em=linux ;; 4504 s390-*-linux-gnu*) fmt=elf em=linux ;; 4505 4506 sh*-*-linux*) fmt=elf em=linux 4507 case ${cpu} in 4508 sh*eb) endian=big ;; 4509 *) endian=little ;; 4510 esac ;; 4511 sh5*-*-netbsd*) fmt=elf em=nbsd ;; 4512 sh64*-*-netbsd*) fmt=elf em=nbsd ;; 4513 sh*-*-netbsdelf*) fmt=elf em=nbsd ;; 4514 sh*-*-openbsd*) fmt=elf em=obsd endian=little ;; 4515 sh-*-elf*) fmt=elf ;; 4516 sh-*-coff*) fmt=coff ;; 4517 sh-*-nto*) fmt=elf ;; 4518 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;; 4519 sh-*-rtemscoff*) fmt=coff ;; 4520 sh-*-rtems*) fmt=elf ;; 4521 sh-*-kaos*) fmt=elf ;; 4522 shle*-*-kaos*) fmt=elf ;; 4523 sh64-*-elf*) fmt=elf ;; 4524 4525 ns32k-pc532-mach*) fmt=aout em=pc532mach ;; 4526 ns32k-pc532-ux*) fmt=aout em=pc532mach ;; 4527 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;; 4528 ns32k-*-netbsd*) fmt=aout em=nbsd532 ;; 4529 4530 sparc-*-rtemsaout*) fmt=aout ;; 4531 sparc-*-rtemself*) fmt=elf ;; 4532 sparc-*-rtems*) fmt=elf ;; 4533 sparc-*-sunos4*) fmt=aout em=sun3 ;; 4534 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;; 4535 sparc-*-coff) fmt=coff ;; 4536 sparc-*-linux*aout*) fmt=aout em=linux ;; 4537 sparc-*-linux-gnu*) fmt=elf em=linux ;; 4538 sparc-*-lynxos*) fmt=coff em=lynx ;; 4539 sparc-fujitsu-none) fmt=aout ;; 4540 sparc-*-elf) fmt=elf ;; 4541 sparc-*-sysv4*) fmt=elf ;; 4542 sparc-*-solaris*) fmt=elf ;; 4543 sparc-*-netbsdelf*) fmt=elf em=nbsd ;; 4544 sparc-*-netbsd*) case ${cpu} in 4545 sparc64) fmt=elf em=nbsd ;; 4546 *) fmt=aout em=nbsd ;; 4547 esac ;; 4548 sparc-*-openbsd*) em=obsd bfd_gas=yes 4549 case ${os} in 4550 openbsd[0-2].* | openbsd3.[0-1]) 4551 fmt=aout ;; 4552 *) 4553 fmt=elf ;; 4554 esac ;; 4555 strongarm-*-coff) fmt=coff ;; 4556 strongarm-*-elf) fmt=elf ;; 4557 strongarm-*-kaos*) fmt=elf ;; 4558 xscale-*-coff) fmt=coff ;; 4559 xscale-*-elf) fmt=elf ;; 4560 4561 tic30-*-*aout*) fmt=aout bfd_gas=yes ;; 4562 tic30-*-*coff*) fmt=coff bfd_gas=yes ;; 4563 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;; 4564 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;; 4565 tic80-*-*) fmt=coff ;; 4566 4567 v850-*-*) fmt=elf ;; 4568 v850e-*-*) fmt=elf ;; 4569 v850ea-*-*) fmt=elf ;; 4570 4571 vax-*-netbsdelf* | vax-*-openbsd*) fmt=elf em=nbsd ;; 4572 vax-*-netbsd*) fmt=aout em=nbsd ;; 4573 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;; 4574 vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;; 4575 vax-*-vms) fmt=vms ;; 4576 4577 w65-*-*) fmt=coff ;; 4578 4579 xstormy16-*-*) fmt=elf ;; 4580 4581 xtensa-*-*) fmt=elf ;; 4582 4583 z8k-*-coff | z8k-*-sim) fmt=coff ;; 4584 4585 *-*-aout | *-*-scout) fmt=aout ;; 4586 *-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;; 4587 *-*-nindy*) fmt=bout ;; 4588 *-*-bsd*) fmt=aout em=sun3 ;; 4589 *-*-generic) fmt=generic ;; 4590 *-*-xray | *-*-hms) fmt=coff ;; 4591 *-*-sim) fmt=coff ;; 4592 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;; 4593 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;; 4594 *-*-vxworks | *-*-windiss) fmt=elf ;; 4595 *-*-netware) fmt=elf ;; 4596 esac 4597 4598 if test ${this_target} = $target ; then 4599 endian_def= 4600 if test x${endian} = xbig; then 4601 endian_def=1 4602 elif test x${endian} = xlittle; then 4603 endian_def=0 4604 fi 4605 if test x${endian_def} != x; then 4606 4607cat >>confdefs.h <<_ACEOF 4608#define TARGET_BYTES_BIG_ENDIAN $endian_def 4609_ACEOF 4610 4611 fi 4612 fi 4613 4614 case ${cpu_type}-${fmt} in 4615 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \ 4616 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \ 4617 | *-elf | *-ecoff | *-som) 4618 bfd_gas=yes ;; 4619 esac 4620 4621# Other random stuff. 4622 4623 case ${cpu_type} in 4624 mips) 4625 # Set mips_cpu to the name of the default CPU. 4626 case ${target_cpu} in 4627 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) 4628 mips_cpu=from-abi 4629 ;; 4630 mipsisa32 | mipsisa32el) 4631 mips_cpu=mips32 4632 ;; 4633 mipsisa32r2 | mipsisa32r2el) 4634 mips_cpu=mips32r2 4635 ;; 4636 mipsisa64 | mipsisa64el) 4637 mips_cpu=mips64 4638 ;; 4639 mipsisa64r2 | mipsisa64r2el) 4640 mips_cpu=mips64r2 4641 ;; 4642 mipstx39 | mipstx39el) 4643 mips_cpu=r3900 4644 ;; 4645 mips64vr | mips64vrel) 4646 mips_cpu=vr4100 4647 ;; 4648 mipsisa32r2* | mipsisa64r2*) 4649 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` 4650 ;; 4651 mips64* | mipsisa64* | mipsisa32*) 4652 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` 4653 ;; 4654 *) 4655 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5 4656echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;} 4657 { (exit 1); exit 1; }; } 4658 ;; 4659 esac 4660 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 4661 # binaries. It's a GNU extension that some OSes don't understand. 4662 # The value only matters on ELF targets. 4663 case ${target} in 4664 *-*-irix*) 4665 use_e_mips_abi_o32=0 4666 ;; 4667 *) 4668 use_e_mips_abi_o32=1 4669 ;; 4670 esac 4671 # Decide whether to generate 32-bit or 64-bit code by default. 4672 # Used to resolve -march=from-abi when an embedded ABI is selected. 4673 case ${target} in 4674 mips64*-*-* | mipsisa64*-*-*) 4675 mips_default_64bit=1 4676 ;; 4677 *) 4678 mips_default_64bit=0 4679 ;; 4680 esac 4681 # Decide which ABI to target by default. 4682 case ${target} in 4683 mips64*-linux* | mips-sgi-irix6*) 4684 mips_default_abi=N32_ABI 4685 ;; 4686 mips*-linux*) 4687 mips_default_abi=O32_ABI 4688 ;; 4689 mips64*-openbsd*) 4690 mips_default_abi=N64_ABI 4691 ;; 4692 *) 4693 mips_default_abi=NO_ABI 4694 ;; 4695 esac 4696 4697cat >>confdefs.h <<_ACEOF 4698#define MIPS_CPU_STRING_DEFAULT "$mips_cpu" 4699_ACEOF 4700 4701 4702cat >>confdefs.h <<_ACEOF 4703#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 4704_ACEOF 4705 4706 4707cat >>confdefs.h <<_ACEOF 4708#define MIPS_DEFAULT_64BIT $mips_default_64bit 4709_ACEOF 4710 4711 4712cat >>confdefs.h <<_ACEOF 4713#define MIPS_DEFAULT_ABI $mips_default_abi 4714_ACEOF 4715 4716 ;; 4717 esac 4718 4719 # Do we need the opcodes library? 4720 case ${cpu_type} in 4721 vax | i386 | tic30) 4722 ;; 4723 4724 *) 4725 need_opcodes=yes 4726 4727 case "${enable_shared}" in 4728 yes) shared_opcodes=true ;; 4729 *opcodes*) shared_opcodes=true ;; 4730 *) shared_opcodes=false ;; 4731 esac 4732 if test "${shared_opcodes}" = "true"; then 4733 # A shared libopcodes must be linked against libbfd. 4734 need_bfd=yes 4735 fi 4736 ;; 4737 esac 4738 4739 # Any other special object files needed ? 4740 case ${cpu_type} in 4741 fr30 | ip2k | iq2000 | m32r | openrisc) 4742 using_cgen=yes 4743 ;; 4744 4745 frv) 4746 using_cgen=yes 4747 ;; 4748 m68k) 4749 case ${extra_objects} in 4750 *m68k-parse.o*) ;; 4751 *) extra_objects="$extra_objects m68k-parse.o" ;; 4752 esac 4753 ;; 4754 4755 mips) 4756 echo ${extra_objects} | grep -s "itbl-parse.o" 4757 if test $? -ne 0 ; then 4758 extra_objects="$extra_objects itbl-parse.o" 4759 fi 4760 4761 echo ${extra_objects} | grep -s "itbl-lex.o" 4762 if test $? -ne 0 ; then 4763 extra_objects="$extra_objects itbl-lex.o" 4764 fi 4765 4766 echo ${extra_objects} | grep -s "itbl-ops.o" 4767 if test $? -ne 0 ; then 4768 extra_objects="$extra_objects itbl-ops.o" 4769 fi 4770 ;; 4771 4772 i386 | s390 | sparc) 4773 if test $this_target = $target ; then 4774 4775cat >>confdefs.h <<_ACEOF 4776#define DEFAULT_ARCH "${arch}" 4777_ACEOF 4778 4779 fi 4780 ;; 4781 4782 xstormy16) 4783 using_cgen=yes 4784 ;; 4785 4786 xtensa) 4787 echo ${extra_objects} | grep -s "xtensa-relax.o" 4788 if test $? -ne 0 ; then 4789 extra_objects="$extra_objects xtensa-relax.o" 4790 fi 4791 ;; 4792 4793 *) 4794 ;; 4795 esac 4796 4797 if test $using_cgen = yes ; then 4798 case "x${extra_objects}" in 4799 *cgen.o*) ;; 4800 *) extra_objects="$extra_objects cgen.o" ;; 4801 esac 4802 fi 4803 4804# See if we really can support this configuration with the emulation code. 4805 4806 if test $this_target = $target ; then 4807 primary_bfd_gas=$bfd_gas 4808 obj_format=$fmt 4809 te_file=$em 4810 4811 if test $bfd_gas = no ; then 4812 # Can't support other configurations this way. 4813 break 4814 fi 4815 elif test $bfd_gas = no ; then 4816 # Can't support this configuration. 4817 break 4818 fi 4819 4820# From target name and format, produce a list of supported emulations. 4821 4822 case ${generic_target}-${fmt} in 4823 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; 4824 mips*-*-linux*-*) case "$endian" in 4825 big) emulation="mipsbelf mipslelf mipself" ;; 4826 *) emulation="mipslelf mipsbelf mipself" ;; 4827 esac ;; 4828 mips-*-lnews*-ecoff) ;; 4829 mips-*-*-ecoff) case "$endian" in 4830 big) emulation="mipsbecoff mipslecoff mipsecoff" ;; 4831 *) emulation="mipslecoff mipsbecoff mipsecoff" ;; 4832 esac ;; 4833 mips-*-*-elf) case "$endian" in 4834 big) emulation="mipsbelf mipslelf mipself" ;; 4835 *) emulation="mipslelf mipsbelf mipself" ;; 4836 esac ;; 4837 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; 4838 # i386-pc-pe-coff != i386-pc-coff. 4839 i386-*-pe-coff) ;; 4840 # Uncommenting the next line will turn on support for i386 AOUT 4841 # for the default linux configuration 4842 # i386-*-linux*-elf) emulation="i386elf i386aout" ;; 4843 # 4844 i386-*-aout) emulation="i386aout" ;; 4845 i386-*-coff) emulation="i386coff" ;; 4846 i386-*-elf) emulation="i386elf" ;; 4847 4848 # Always all formats. The first stated emulation becomes the default. 4849 cris-*-*aout*) emulation="crisaout criself" ;; 4850 cris-*-*) emulation="criself crisaout" ;; 4851 esac 4852 4853 emulations="$emulations $emulation" 4854 4855done 4856 4857# Turn on all targets if possible 4858if test ${all_targets} = "yes"; then 4859 case ${target_cpu_type} in 4860 i386) 4861 case ${obj_format} in 4862 aout) 4863 emulations="$emulations i386coff i386elf" 4864 ;; 4865 coff) 4866 emulations="$emulations i386aout i386elf" 4867 ;; 4868 elf) 4869 emulations="$emulations i386aout i386coff" 4870 ;; 4871 esac 4872 ;; 4873 esac 4874fi 4875 4876# Assign floating point type. Most processors with FP support 4877# IEEE FP. On those that don't support FP at all, usually IEEE 4878# is emulated. 4879case ${target_cpu} in 4880 vax | tahoe ) atof=${target_cpu} ;; 4881 pdp11) atof=vax ;; 4882 *) atof=ieee ;; 4883esac 4884 4885case "${obj_format}" in 4886 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5 4887echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;} 4888 { (exit 1); exit 1; }; } ;; 4889esac 4890 4891# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). 4892cgen_cpu_prefix="" 4893if test $using_cgen = yes ; then 4894 case ${target_cpu} in 4895 *) cgen_cpu_prefix=${target_cpu} ;; 4896 esac 4897 4898 4899cat >>confdefs.h <<\_ACEOF 4900#define USING_CGEN 1 4901_ACEOF 4902 4903fi 4904 4905 4906if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then 4907 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5 4908echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;} 4909 { (exit 1); exit 1; }; } 4910fi 4911 4912if test ! -r ${srcdir}/config/obj-${obj_format}.c; then 4913 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5 4914echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;} 4915 { (exit 1); exit 1; }; } 4916fi 4917 4918case ${user_bfd_gas}-${primary_bfd_gas} in 4919 yes-yes | no-no) 4920 # We didn't override user's choice. 4921 ;; 4922 no-yes) 4923 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5 4924echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;} 4925 ;; 4926 no-preferred) 4927 primary_bfd_gas=no 4928 ;; 4929 *-preferred) 4930 primary_bfd_gas=yes 4931 ;; 4932 yes-*) 4933 primary_bfd_gas=yes 4934 ;; 4935 -*) 4936 # User specified nothing. 4937 ;; 4938esac 4939 4940# Some COFF configurations want these random other flags set. 4941case ${obj_format} in 4942 coff) 4943 case ${target_cpu_type} in 4944 i386) 4945cat >>confdefs.h <<\_ACEOF 4946#define I386COFF 1 4947_ACEOF 4948 ;; 4949 m68k) 4950cat >>confdefs.h <<\_ACEOF 4951#define M68KCOFF 1 4952_ACEOF 4953 ;; 4954 m88k) 4955cat >>confdefs.h <<\_ACEOF 4956#define M88KCOFF 1 4957_ACEOF 4958 ;; 4959 esac 4960 ;; 4961esac 4962 4963# Getting this done right is going to be a bitch. Each configuration specified 4964# with --enable-targets=... should be checked for environment, format, cpu, and 4965# bfd_gas setting. 4966# 4967# For each configuration, the necessary object file support code must be linked 4968# in. This might be only one, it might be up to four. The necessary emulation 4969# code needs to be provided, too. 4970# 4971# And then there's "--enable-targets=all".... 4972# 4973# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. 4974 4975formats="${obj_format}" 4976emfiles="" 4977EMULATIONS="" 4978_gas_uniq_list="$emulations" 4979_gas_uniq_newlist="" 4980for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do 4981 case $_gas_uniq_i in 4982 _gas_uniq_dummy) ;; 4983 *) case " $_gas_uniq_newlist " in 4984 *" $_gas_uniq_i "*) ;; 4985 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; 4986 esac ;; 4987 esac 4988done 4989emulations=$_gas_uniq_newlist 4990 4991for em in . $emulations ; do 4992 case $em in 4993 .) continue ;; 4994 mipsbelf | mipslelf | mipself) 4995 fmt=elf file=mipself ;; 4996 mipsbecoff | mipslecoff | mipsecoff) 4997 fmt=ecoff file=mipsecoff ;; 4998 *coff) 4999 fmt=coff file=$em ;; 5000 *aout) 5001 fmt=aout file=$em ;; 5002 *elf) 5003 fmt=elf file=$em ;; 5004 esac 5005 formats="$formats $fmt" 5006 emfiles="$emfiles e-$file.o" 5007 EMULATIONS="$EMULATIONS &$em," 5008done 5009_gas_uniq_list="$formats" 5010_gas_uniq_newlist="" 5011for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do 5012 case $_gas_uniq_i in 5013 _gas_uniq_dummy) ;; 5014 *) case " $_gas_uniq_newlist " in 5015 *" $_gas_uniq_i "*) ;; 5016 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; 5017 esac ;; 5018 esac 5019done 5020formats=$_gas_uniq_newlist 5021 5022_gas_uniq_list="$emfiles" 5023_gas_uniq_newlist="" 5024for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do 5025 case $_gas_uniq_i in 5026 _gas_uniq_dummy) ;; 5027 *) case " $_gas_uniq_newlist " in 5028 *" $_gas_uniq_i "*) ;; 5029 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; 5030 esac ;; 5031 esac 5032done 5033emfiles=$_gas_uniq_newlist 5034 5035if test `set . $formats ; shift ; echo $#` -gt 1 ; then 5036 for fmt in $formats ; do 5037 case $fmt in 5038 aout) 5039cat >>confdefs.h <<\_ACEOF 5040#define OBJ_MAYBE_AOUT 1 5041_ACEOF 5042 ;; 5043 bout) 5044cat >>confdefs.h <<\_ACEOF 5045#define OBJ_MAYBE_BOUT 1 5046_ACEOF 5047 ;; 5048 coff) 5049cat >>confdefs.h <<\_ACEOF 5050#define OBJ_MAYBE_COFF 1 5051_ACEOF 5052 ;; 5053 ecoff) 5054cat >>confdefs.h <<\_ACEOF 5055#define OBJ_MAYBE_ECOFF 1 5056_ACEOF 5057 ;; 5058 elf) 5059cat >>confdefs.h <<\_ACEOF 5060#define OBJ_MAYBE_ELF 1 5061_ACEOF 5062 ;; 5063 generic) 5064cat >>confdefs.h <<\_ACEOF 5065#define OBJ_MAYBE_GENERIC 1 5066_ACEOF 5067 ;; 5068 hp300) 5069cat >>confdefs.h <<\_ACEOF 5070#define OBJ_MAYBE_HP300 1 5071_ACEOF 5072 ;; 5073 ieee) 5074cat >>confdefs.h <<\_ACEOF 5075#define OBJ_MAYBE_IEEE 1 5076_ACEOF 5077 ;; 5078 som) 5079cat >>confdefs.h <<\_ACEOF 5080#define OBJ_MAYBE_SOM 1 5081_ACEOF 5082 ;; 5083 vms) 5084cat >>confdefs.h <<\_ACEOF 5085#define OBJ_MAYBE_VMS 1 5086_ACEOF 5087 ;; 5088 esac 5089 extra_objects="$extra_objects obj-$fmt.o" 5090 done 5091 obj_format=multi 5092fi 5093if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then 5094 DEFAULT_EMULATION=`set . $emulations ; echo $2` 5095 # e-mips* has more than one emulation per file, e-i386* has just one at the 5096 # moment. If only one emulation is specified, then don't define 5097 # USE_EMULATIONS or include any of the e-files as they will only be bloat. 5098 case "${obj_format}${emfiles}" in 5099 multi* | *mips*) 5100 extra_objects="$extra_objects $emfiles" 5101 5102cat >>confdefs.h <<\_ACEOF 5103#define USE_EMULATIONS 1 5104_ACEOF 5105 ;; 5106 esac 5107fi 5108 5109 5110cat >>confdefs.h <<_ACEOF 5111#define EMULATIONS $EMULATIONS 5112_ACEOF 5113 5114 5115cat >>confdefs.h <<_ACEOF 5116#define DEFAULT_EMULATION "$DEFAULT_EMULATION" 5117_ACEOF 5118 5119 5120case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in 5121 yes-*-coff) need_bfd=yes ;; 5122 no-*-coff) need_bfd=yes 5123 5124cat >>confdefs.h <<\_ACEOF 5125#define MANY_SEGMENTS 1 5126_ACEOF 5127 ;; 5128esac 5129 5130reject_dev_configs=yes 5131 5132case ${reject_dev_configs}-${dev} in 5133 yes-yes) # Oops. 5134 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5 5135echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;} 5136 { (exit 1); exit 1; }; } 5137 ;; 5138esac 5139 5140 5141 5142 5143 5144 5145 5146case "${primary_bfd_gas}" in 5147 yes) 5148cat >>confdefs.h <<\_ACEOF 5149#define BFD_ASSEMBLER 1 5150_ACEOF 5151 5152 need_bfd=yes ;; 5153esac 5154 5155# do we need the opcodes library? 5156case "${need_opcodes}" in 5157yes) 5158 OPCODES_LIB=../opcodes/libopcodes.la 5159 ;; 5160esac 5161 5162case "${need_bfd}" in 5163yes) 5164 BFDLIB=../bfd/libbfd.la 5165 BFDVER_H=../bfd/bfdver.h 5166 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h' 5167 ;; 5168esac 5169 5170 5171 5172 5173 5174 5175 5176 5177cat >>confdefs.h <<_ACEOF 5178#define TARGET_ALIAS "${target_alias}" 5179_ACEOF 5180 5181 5182cat >>confdefs.h <<_ACEOF 5183#define TARGET_CANONICAL "${target}" 5184_ACEOF 5185 5186 5187cat >>confdefs.h <<_ACEOF 5188#define TARGET_CPU "${target_cpu}" 5189_ACEOF 5190 5191 5192cat >>confdefs.h <<_ACEOF 5193#define TARGET_VENDOR "${target_vendor}" 5194_ACEOF 5195 5196 5197cat >>confdefs.h <<_ACEOF 5198#define TARGET_OS "${target_os}" 5199_ACEOF 5200 5201 5202ac_ext=c 5203ac_cpp='$CPP $CPPFLAGS' 5204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5206ac_compiler_gnu=$ac_cv_c_compiler_gnu 5207if test -n "$ac_tool_prefix"; then 5208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5209set dummy ${ac_tool_prefix}gcc; ac_word=$2 5210echo "$as_me:$LINENO: checking for $ac_word" >&5 5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5212if test "${ac_cv_prog_CC+set}" = set; then 5213 echo $ECHO_N "(cached) $ECHO_C" >&6 5214else 5215 if test -n "$CC"; then 5216 ac_cv_prog_CC="$CC" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5225 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230done 5231 5232fi 5233fi 5234CC=$ac_cv_prog_CC 5235if test -n "$CC"; then 5236 echo "$as_me:$LINENO: result: $CC" >&5 5237echo "${ECHO_T}$CC" >&6 5238else 5239 echo "$as_me:$LINENO: result: no" >&5 5240echo "${ECHO_T}no" >&6 5241fi 5242 5243fi 5244if test -z "$ac_cv_prog_CC"; then 5245 ac_ct_CC=$CC 5246 # Extract the first word of "gcc", so it can be a program name with args. 5247set dummy gcc; ac_word=$2 5248echo "$as_me:$LINENO: checking for $ac_word" >&5 5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5250if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5251 echo $ECHO_N "(cached) $ECHO_C" >&6 5252else 5253 if test -n "$ac_ct_CC"; then 5254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5263 ac_cv_prog_ac_ct_CC="gcc" 5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268done 5269 5270fi 5271fi 5272ac_ct_CC=$ac_cv_prog_ac_ct_CC 5273if test -n "$ac_ct_CC"; then 5274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5275echo "${ECHO_T}$ac_ct_CC" >&6 5276else 5277 echo "$as_me:$LINENO: result: no" >&5 5278echo "${ECHO_T}no" >&6 5279fi 5280 5281 CC=$ac_ct_CC 5282else 5283 CC="$ac_cv_prog_CC" 5284fi 5285 5286if test -z "$CC"; then 5287 if test -n "$ac_tool_prefix"; then 5288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5289set dummy ${ac_tool_prefix}cc; ac_word=$2 5290echo "$as_me:$LINENO: checking for $ac_word" >&5 5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5292if test "${ac_cv_prog_CC+set}" = set; then 5293 echo $ECHO_N "(cached) $ECHO_C" >&6 5294else 5295 if test -n "$CC"; then 5296 ac_cv_prog_CC="$CC" # Let the user override the test. 5297else 5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5299for as_dir in $PATH 5300do 5301 IFS=$as_save_IFS 5302 test -z "$as_dir" && as_dir=. 5303 for ac_exec_ext in '' $ac_executable_extensions; do 5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5305 ac_cv_prog_CC="${ac_tool_prefix}cc" 5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5307 break 2 5308 fi 5309done 5310done 5311 5312fi 5313fi 5314CC=$ac_cv_prog_CC 5315if test -n "$CC"; then 5316 echo "$as_me:$LINENO: result: $CC" >&5 5317echo "${ECHO_T}$CC" >&6 5318else 5319 echo "$as_me:$LINENO: result: no" >&5 5320echo "${ECHO_T}no" >&6 5321fi 5322 5323fi 5324if test -z "$ac_cv_prog_CC"; then 5325 ac_ct_CC=$CC 5326 # Extract the first word of "cc", so it can be a program name with args. 5327set dummy cc; ac_word=$2 5328echo "$as_me:$LINENO: checking for $ac_word" >&5 5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5330if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5331 echo $ECHO_N "(cached) $ECHO_C" >&6 5332else 5333 if test -n "$ac_ct_CC"; then 5334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5335else 5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5337for as_dir in $PATH 5338do 5339 IFS=$as_save_IFS 5340 test -z "$as_dir" && as_dir=. 5341 for ac_exec_ext in '' $ac_executable_extensions; do 5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5343 ac_cv_prog_ac_ct_CC="cc" 5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5345 break 2 5346 fi 5347done 5348done 5349 5350fi 5351fi 5352ac_ct_CC=$ac_cv_prog_ac_ct_CC 5353if test -n "$ac_ct_CC"; then 5354 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5355echo "${ECHO_T}$ac_ct_CC" >&6 5356else 5357 echo "$as_me:$LINENO: result: no" >&5 5358echo "${ECHO_T}no" >&6 5359fi 5360 5361 CC=$ac_ct_CC 5362else 5363 CC="$ac_cv_prog_CC" 5364fi 5365 5366fi 5367if test -z "$CC"; then 5368 # Extract the first word of "cc", so it can be a program name with args. 5369set dummy cc; ac_word=$2 5370echo "$as_me:$LINENO: checking for $ac_word" >&5 5371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5372if test "${ac_cv_prog_CC+set}" = set; then 5373 echo $ECHO_N "(cached) $ECHO_C" >&6 5374else 5375 if test -n "$CC"; then 5376 ac_cv_prog_CC="$CC" # Let the user override the test. 5377else 5378 ac_prog_rejected=no 5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380for as_dir in $PATH 5381do 5382 IFS=$as_save_IFS 5383 test -z "$as_dir" && as_dir=. 5384 for ac_exec_ext in '' $ac_executable_extensions; do 5385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5387 ac_prog_rejected=yes 5388 continue 5389 fi 5390 ac_cv_prog_CC="cc" 5391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394done 5395done 5396 5397if test $ac_prog_rejected = yes; then 5398 # We found a bogon in the path, so make sure we never use it. 5399 set dummy $ac_cv_prog_CC 5400 shift 5401 if test $# != 0; then 5402 # We chose a different compiler from the bogus one. 5403 # However, it has the same basename, so the bogon will be chosen 5404 # first if we set CC to just the basename; use the full file name. 5405 shift 5406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5407 fi 5408fi 5409fi 5410fi 5411CC=$ac_cv_prog_CC 5412if test -n "$CC"; then 5413 echo "$as_me:$LINENO: result: $CC" >&5 5414echo "${ECHO_T}$CC" >&6 5415else 5416 echo "$as_me:$LINENO: result: no" >&5 5417echo "${ECHO_T}no" >&6 5418fi 5419 5420fi 5421if test -z "$CC"; then 5422 if test -n "$ac_tool_prefix"; then 5423 for ac_prog in cl 5424 do 5425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5427echo "$as_me:$LINENO: checking for $ac_word" >&5 5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5429if test "${ac_cv_prog_CC+set}" = set; then 5430 echo $ECHO_N "(cached) $ECHO_C" >&6 5431else 5432 if test -n "$CC"; then 5433 ac_cv_prog_CC="$CC" # Let the user override the test. 5434else 5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5436for as_dir in $PATH 5437do 5438 IFS=$as_save_IFS 5439 test -z "$as_dir" && as_dir=. 5440 for ac_exec_ext in '' $ac_executable_extensions; do 5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5444 break 2 5445 fi 5446done 5447done 5448 5449fi 5450fi 5451CC=$ac_cv_prog_CC 5452if test -n "$CC"; then 5453 echo "$as_me:$LINENO: result: $CC" >&5 5454echo "${ECHO_T}$CC" >&6 5455else 5456 echo "$as_me:$LINENO: result: no" >&5 5457echo "${ECHO_T}no" >&6 5458fi 5459 5460 test -n "$CC" && break 5461 done 5462fi 5463if test -z "$CC"; then 5464 ac_ct_CC=$CC 5465 for ac_prog in cl 5466do 5467 # Extract the first word of "$ac_prog", so it can be a program name with args. 5468set dummy $ac_prog; ac_word=$2 5469echo "$as_me:$LINENO: checking for $ac_word" >&5 5470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 5473else 5474 if test -n "$ac_ct_CC"; then 5475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5476else 5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH 5479do 5480 IFS=$as_save_IFS 5481 test -z "$as_dir" && as_dir=. 5482 for ac_exec_ext in '' $ac_executable_extensions; do 5483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5484 ac_cv_prog_ac_ct_CC="$ac_prog" 5485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5486 break 2 5487 fi 5488done 5489done 5490 5491fi 5492fi 5493ac_ct_CC=$ac_cv_prog_ac_ct_CC 5494if test -n "$ac_ct_CC"; then 5495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5496echo "${ECHO_T}$ac_ct_CC" >&6 5497else 5498 echo "$as_me:$LINENO: result: no" >&5 5499echo "${ECHO_T}no" >&6 5500fi 5501 5502 test -n "$ac_ct_CC" && break 5503done 5504 5505 CC=$ac_ct_CC 5506fi 5507 5508fi 5509 5510 5511test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5512See \`config.log' for more details." >&5 5513echo "$as_me: error: no acceptable C compiler found in \$PATH 5514See \`config.log' for more details." >&2;} 5515 { (exit 1); exit 1; }; } 5516 5517# Provide some information about the compiler. 5518echo "$as_me:$LINENO:" \ 5519 "checking for C compiler version" >&5 5520ac_compiler=`set X $ac_compile; echo $2` 5521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5522 (eval $ac_compiler --version </dev/null >&5) 2>&5 5523 ac_status=$? 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } 5526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5527 (eval $ac_compiler -v </dev/null >&5) 2>&5 5528 ac_status=$? 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); } 5531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5532 (eval $ac_compiler -V </dev/null >&5) 2>&5 5533 ac_status=$? 5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5535 (exit $ac_status); } 5536 5537echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5538echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 5539if test "${ac_cv_c_compiler_gnu+set}" = set; then 5540 echo $ECHO_N "(cached) $ECHO_C" >&6 5541else 5542 cat >conftest.$ac_ext <<_ACEOF 5543/* confdefs.h. */ 5544_ACEOF 5545cat confdefs.h >>conftest.$ac_ext 5546cat >>conftest.$ac_ext <<_ACEOF 5547/* end confdefs.h. */ 5548 5549int 5550main () 5551{ 5552#ifndef __GNUC__ 5553 choke me 5554#endif 5555 5556 ; 5557 return 0; 5558} 5559_ACEOF 5560rm -f conftest.$ac_objext 5561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5562 (eval $ac_compile) 2>conftest.er1 5563 ac_status=$? 5564 grep -v '^ *+' conftest.er1 >conftest.err 5565 rm -f conftest.er1 5566 cat conftest.err >&5 5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); } && 5569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5571 (eval $ac_try) 2>&5 5572 ac_status=$? 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); }; } && 5575 { ac_try='test -s conftest.$ac_objext' 5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5577 (eval $ac_try) 2>&5 5578 ac_status=$? 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); }; }; then 5581 ac_compiler_gnu=yes 5582else 5583 echo "$as_me: failed program was:" >&5 5584sed 's/^/| /' conftest.$ac_ext >&5 5585 5586ac_compiler_gnu=no 5587fi 5588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5589ac_cv_c_compiler_gnu=$ac_compiler_gnu 5590 5591fi 5592echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5593echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 5594GCC=`test $ac_compiler_gnu = yes && echo yes` 5595ac_test_CFLAGS=${CFLAGS+set} 5596ac_save_CFLAGS=$CFLAGS 5597CFLAGS="-g" 5598echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5599echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 5600if test "${ac_cv_prog_cc_g+set}" = set; then 5601 echo $ECHO_N "(cached) $ECHO_C" >&6 5602else 5603 cat >conftest.$ac_ext <<_ACEOF 5604/* confdefs.h. */ 5605_ACEOF 5606cat confdefs.h >>conftest.$ac_ext 5607cat >>conftest.$ac_ext <<_ACEOF 5608/* end confdefs.h. */ 5609 5610int 5611main () 5612{ 5613 5614 ; 5615 return 0; 5616} 5617_ACEOF 5618rm -f conftest.$ac_objext 5619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5620 (eval $ac_compile) 2>conftest.er1 5621 ac_status=$? 5622 grep -v '^ *+' conftest.er1 >conftest.err 5623 rm -f conftest.er1 5624 cat conftest.err >&5 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } && 5627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5629 (eval $ac_try) 2>&5 5630 ac_status=$? 5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5632 (exit $ac_status); }; } && 5633 { ac_try='test -s conftest.$ac_objext' 5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5635 (eval $ac_try) 2>&5 5636 ac_status=$? 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 (exit $ac_status); }; }; then 5639 ac_cv_prog_cc_g=yes 5640else 5641 echo "$as_me: failed program was:" >&5 5642sed 's/^/| /' conftest.$ac_ext >&5 5643 5644ac_cv_prog_cc_g=no 5645fi 5646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5647fi 5648echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5649echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 5650if test "$ac_test_CFLAGS" = set; then 5651 CFLAGS=$ac_save_CFLAGS 5652elif test $ac_cv_prog_cc_g = yes; then 5653 if test "$GCC" = yes; then 5654 CFLAGS="-g -O2" 5655 else 5656 CFLAGS="-g" 5657 fi 5658else 5659 if test "$GCC" = yes; then 5660 CFLAGS="-O2" 5661 else 5662 CFLAGS= 5663 fi 5664fi 5665echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 5666echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 5667if test "${ac_cv_prog_cc_stdc+set}" = set; then 5668 echo $ECHO_N "(cached) $ECHO_C" >&6 5669else 5670 ac_cv_prog_cc_stdc=no 5671ac_save_CC=$CC 5672cat >conftest.$ac_ext <<_ACEOF 5673/* confdefs.h. */ 5674_ACEOF 5675cat confdefs.h >>conftest.$ac_ext 5676cat >>conftest.$ac_ext <<_ACEOF 5677/* end confdefs.h. */ 5678#include <stdarg.h> 5679#include <stdio.h> 5680#include <sys/types.h> 5681#include <sys/stat.h> 5682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5683struct buf { int x; }; 5684FILE * (*rcsopen) (struct buf *, struct stat *, int); 5685static char *e (p, i) 5686 char **p; 5687 int i; 5688{ 5689 return p[i]; 5690} 5691static char *f (char * (*g) (char **, int), char **p, ...) 5692{ 5693 char *s; 5694 va_list v; 5695 va_start (v,p); 5696 s = g (p, va_arg (v,int)); 5697 va_end (v); 5698 return s; 5699} 5700 5701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5702 function prototypes and stuff, but not '\xHH' hex character constants. 5703 These don't provoke an error unfortunately, instead are silently treated 5704 as 'x'. The following induces an error, until -std1 is added to get 5705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5706 array size at least. It's necessary to write '\x00'==0 to get something 5707 that's true only with -std1. */ 5708int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5709 5710int test (int i, double x); 5711struct s1 {int (*f) (int a);}; 5712struct s2 {int (*f) (double a);}; 5713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5714int argc; 5715char **argv; 5716int 5717main () 5718{ 5719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724# Don't try gcc -ansi; that turns off useful extensions and 5725# breaks some systems' header files. 5726# AIX -qlanglvl=ansi 5727# Ultrix and OSF/1 -std1 5728# HP-UX 10.20 and later -Ae 5729# HP-UX older versions -Aa -D_HPUX_SOURCE 5730# SVR4 -Xc -D__EXTENSIONS__ 5731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5732do 5733 CC="$ac_save_CC $ac_arg" 5734 rm -f conftest.$ac_objext 5735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5736 (eval $ac_compile) 2>conftest.er1 5737 ac_status=$? 5738 grep -v '^ *+' conftest.er1 >conftest.err 5739 rm -f conftest.er1 5740 cat conftest.err >&5 5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5742 (exit $ac_status); } && 5743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5745 (eval $ac_try) 2>&5 5746 ac_status=$? 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); }; } && 5749 { ac_try='test -s conftest.$ac_objext' 5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5751 (eval $ac_try) 2>&5 5752 ac_status=$? 5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5754 (exit $ac_status); }; }; then 5755 ac_cv_prog_cc_stdc=$ac_arg 5756break 5757else 5758 echo "$as_me: failed program was:" >&5 5759sed 's/^/| /' conftest.$ac_ext >&5 5760 5761fi 5762rm -f conftest.err conftest.$ac_objext 5763done 5764rm -f conftest.$ac_ext conftest.$ac_objext 5765CC=$ac_save_CC 5766 5767fi 5768 5769case "x$ac_cv_prog_cc_stdc" in 5770 x|xno) 5771 echo "$as_me:$LINENO: result: none needed" >&5 5772echo "${ECHO_T}none needed" >&6 ;; 5773 *) 5774 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 5775echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 5776 CC="$CC $ac_cv_prog_cc_stdc" ;; 5777esac 5778 5779# Some people use a C++ compiler to compile C. Since we use `exit', 5780# in C++ we need to declare it. In case someone uses the same compiler 5781# for both compiling C and C++ we need to have the C++ compiler decide 5782# the declaration of exit, since it's the most demanding environment. 5783cat >conftest.$ac_ext <<_ACEOF 5784#ifndef __cplusplus 5785 choke me 5786#endif 5787_ACEOF 5788rm -f conftest.$ac_objext 5789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5790 (eval $ac_compile) 2>conftest.er1 5791 ac_status=$? 5792 grep -v '^ *+' conftest.er1 >conftest.err 5793 rm -f conftest.er1 5794 cat conftest.err >&5 5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5796 (exit $ac_status); } && 5797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5799 (eval $ac_try) 2>&5 5800 ac_status=$? 5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5802 (exit $ac_status); }; } && 5803 { ac_try='test -s conftest.$ac_objext' 5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5805 (eval $ac_try) 2>&5 5806 ac_status=$? 5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5808 (exit $ac_status); }; }; then 5809 for ac_declaration in \ 5810 '' \ 5811 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5812 'extern "C" void std::exit (int); using std::exit;' \ 5813 'extern "C" void exit (int) throw ();' \ 5814 'extern "C" void exit (int);' \ 5815 'void exit (int);' 5816do 5817 cat >conftest.$ac_ext <<_ACEOF 5818/* confdefs.h. */ 5819_ACEOF 5820cat confdefs.h >>conftest.$ac_ext 5821cat >>conftest.$ac_ext <<_ACEOF 5822/* end confdefs.h. */ 5823$ac_declaration 5824#include <stdlib.h> 5825int 5826main () 5827{ 5828exit (42); 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833rm -f conftest.$ac_objext 5834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5835 (eval $ac_compile) 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } && 5842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5844 (eval $ac_try) 2>&5 5845 ac_status=$? 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); }; } && 5848 { ac_try='test -s conftest.$ac_objext' 5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5850 (eval $ac_try) 2>&5 5851 ac_status=$? 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); }; }; then 5854 : 5855else 5856 echo "$as_me: failed program was:" >&5 5857sed 's/^/| /' conftest.$ac_ext >&5 5858 5859continue 5860fi 5861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5862 cat >conftest.$ac_ext <<_ACEOF 5863/* confdefs.h. */ 5864_ACEOF 5865cat confdefs.h >>conftest.$ac_ext 5866cat >>conftest.$ac_ext <<_ACEOF 5867/* end confdefs.h. */ 5868$ac_declaration 5869int 5870main () 5871{ 5872exit (42); 5873 ; 5874 return 0; 5875} 5876_ACEOF 5877rm -f conftest.$ac_objext 5878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5879 (eval $ac_compile) 2>conftest.er1 5880 ac_status=$? 5881 grep -v '^ *+' conftest.er1 >conftest.err 5882 rm -f conftest.er1 5883 cat conftest.err >&5 5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5885 (exit $ac_status); } && 5886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5888 (eval $ac_try) 2>&5 5889 ac_status=$? 5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5891 (exit $ac_status); }; } && 5892 { ac_try='test -s conftest.$ac_objext' 5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5894 (eval $ac_try) 2>&5 5895 ac_status=$? 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5897 (exit $ac_status); }; }; then 5898 break 5899else 5900 echo "$as_me: failed program was:" >&5 5901sed 's/^/| /' conftest.$ac_ext >&5 5902 5903fi 5904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5905done 5906rm -f conftest* 5907if test -n "$ac_declaration"; then 5908 echo '#ifdef __cplusplus' >>confdefs.h 5909 echo $ac_declaration >>confdefs.h 5910 echo '#endif' >>confdefs.h 5911fi 5912 5913else 5914 echo "$as_me: failed program was:" >&5 5915sed 's/^/| /' conftest.$ac_ext >&5 5916 5917fi 5918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5919ac_ext=c 5920ac_cpp='$CPP $CPPFLAGS' 5921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5923ac_compiler_gnu=$ac_cv_c_compiler_gnu 5924 5925 5926for ac_prog in 'bison -y' byacc 5927do 5928 # Extract the first word of "$ac_prog", so it can be a program name with args. 5929set dummy $ac_prog; ac_word=$2 5930echo "$as_me:$LINENO: checking for $ac_word" >&5 5931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5932if test "${ac_cv_prog_YACC+set}" = set; then 5933 echo $ECHO_N "(cached) $ECHO_C" >&6 5934else 5935 if test -n "$YACC"; then 5936 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5937else 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5945 ac_cv_prog_YACC="$ac_prog" 5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949done 5950done 5951 5952fi 5953fi 5954YACC=$ac_cv_prog_YACC 5955if test -n "$YACC"; then 5956 echo "$as_me:$LINENO: result: $YACC" >&5 5957echo "${ECHO_T}$YACC" >&6 5958else 5959 echo "$as_me:$LINENO: result: no" >&5 5960echo "${ECHO_T}no" >&6 5961fi 5962 5963 test -n "$YACC" && break 5964done 5965test -n "$YACC" || YACC="yacc" 5966 5967for ac_prog in flex lex 5968do 5969 # Extract the first word of "$ac_prog", so it can be a program name with args. 5970set dummy $ac_prog; ac_word=$2 5971echo "$as_me:$LINENO: checking for $ac_word" >&5 5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5973if test "${ac_cv_prog_LEX+set}" = set; then 5974 echo $ECHO_N "(cached) $ECHO_C" >&6 5975else 5976 if test -n "$LEX"; then 5977 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_LEX="$ac_prog" 5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991done 5992 5993fi 5994fi 5995LEX=$ac_cv_prog_LEX 5996if test -n "$LEX"; then 5997 echo "$as_me:$LINENO: result: $LEX" >&5 5998echo "${ECHO_T}$LEX" >&6 5999else 6000 echo "$as_me:$LINENO: result: no" >&5 6001echo "${ECHO_T}no" >&6 6002fi 6003 6004 test -n "$LEX" && break 6005done 6006test -n "$LEX" || LEX=":" 6007 6008if test -z "$LEXLIB" 6009then 6010 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 6011echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 6012if test "${ac_cv_lib_fl_yywrap+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014else 6015 ac_check_lib_save_LIBS=$LIBS 6016LIBS="-lfl $LIBS" 6017cat >conftest.$ac_ext <<_ACEOF 6018/* confdefs.h. */ 6019_ACEOF 6020cat confdefs.h >>conftest.$ac_ext 6021cat >>conftest.$ac_ext <<_ACEOF 6022/* end confdefs.h. */ 6023 6024/* Override any gcc2 internal prototype to avoid an error. */ 6025#ifdef __cplusplus 6026extern "C" 6027#endif 6028/* We use char because int might match the return type of a gcc2 6029 builtin and then its argument prototype would still apply. */ 6030char yywrap (); 6031int 6032main () 6033{ 6034yywrap (); 6035 ; 6036 return 0; 6037} 6038_ACEOF 6039rm -f conftest.$ac_objext conftest$ac_exeext 6040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6041 (eval $ac_link) 2>conftest.er1 6042 ac_status=$? 6043 grep -v '^ *+' conftest.er1 >conftest.err 6044 rm -f conftest.er1 6045 cat conftest.err >&5 6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6047 (exit $ac_status); } && 6048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6050 (eval $ac_try) 2>&5 6051 ac_status=$? 6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6053 (exit $ac_status); }; } && 6054 { ac_try='test -s conftest$ac_exeext' 6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6056 (eval $ac_try) 2>&5 6057 ac_status=$? 6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6059 (exit $ac_status); }; }; then 6060 ac_cv_lib_fl_yywrap=yes 6061else 6062 echo "$as_me: failed program was:" >&5 6063sed 's/^/| /' conftest.$ac_ext >&5 6064 6065ac_cv_lib_fl_yywrap=no 6066fi 6067rm -f conftest.err conftest.$ac_objext \ 6068 conftest$ac_exeext conftest.$ac_ext 6069LIBS=$ac_check_lib_save_LIBS 6070fi 6071echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 6072echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 6073if test $ac_cv_lib_fl_yywrap = yes; then 6074 LEXLIB="-lfl" 6075else 6076 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 6077echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 6078if test "${ac_cv_lib_l_yywrap+set}" = set; then 6079 echo $ECHO_N "(cached) $ECHO_C" >&6 6080else 6081 ac_check_lib_save_LIBS=$LIBS 6082LIBS="-ll $LIBS" 6083cat >conftest.$ac_ext <<_ACEOF 6084/* confdefs.h. */ 6085_ACEOF 6086cat confdefs.h >>conftest.$ac_ext 6087cat >>conftest.$ac_ext <<_ACEOF 6088/* end confdefs.h. */ 6089 6090/* Override any gcc2 internal prototype to avoid an error. */ 6091#ifdef __cplusplus 6092extern "C" 6093#endif 6094/* We use char because int might match the return type of a gcc2 6095 builtin and then its argument prototype would still apply. */ 6096char yywrap (); 6097int 6098main () 6099{ 6100yywrap (); 6101 ; 6102 return 0; 6103} 6104_ACEOF 6105rm -f conftest.$ac_objext conftest$ac_exeext 6106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6107 (eval $ac_link) 2>conftest.er1 6108 ac_status=$? 6109 grep -v '^ *+' conftest.er1 >conftest.err 6110 rm -f conftest.er1 6111 cat conftest.err >&5 6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6113 (exit $ac_status); } && 6114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6116 (eval $ac_try) 2>&5 6117 ac_status=$? 6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6119 (exit $ac_status); }; } && 6120 { ac_try='test -s conftest$ac_exeext' 6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6122 (eval $ac_try) 2>&5 6123 ac_status=$? 6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6125 (exit $ac_status); }; }; then 6126 ac_cv_lib_l_yywrap=yes 6127else 6128 echo "$as_me: failed program was:" >&5 6129sed 's/^/| /' conftest.$ac_ext >&5 6130 6131ac_cv_lib_l_yywrap=no 6132fi 6133rm -f conftest.err conftest.$ac_objext \ 6134 conftest$ac_exeext conftest.$ac_ext 6135LIBS=$ac_check_lib_save_LIBS 6136fi 6137echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 6138echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 6139if test $ac_cv_lib_l_yywrap = yes; then 6140 LEXLIB="-ll" 6141fi 6142 6143fi 6144 6145fi 6146 6147if test "x$LEX" != "x:"; then 6148 echo "$as_me:$LINENO: checking lex output file root" >&5 6149echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 6150if test "${ac_cv_prog_lex_root+set}" = set; then 6151 echo $ECHO_N "(cached) $ECHO_C" >&6 6152else 6153 # The minimal lex program is just a single line: %%. But some broken lexes 6154# (Solaris, I think it was) want two %% lines, so accommodate them. 6155cat >conftest.l <<_ACEOF 6156%% 6157%% 6158_ACEOF 6159{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 6160 (eval $LEX conftest.l) 2>&5 6161 ac_status=$? 6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6163 (exit $ac_status); } 6164if test -f lex.yy.c; then 6165 ac_cv_prog_lex_root=lex.yy 6166elif test -f lexyy.c; then 6167 ac_cv_prog_lex_root=lexyy 6168else 6169 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 6170echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 6171 { (exit 1); exit 1; }; } 6172fi 6173fi 6174echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 6175echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 6176rm -f conftest.l 6177LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6178 6179echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 6180echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 6181if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183else 6184 # POSIX says lex can declare yytext either as a pointer or an array; the 6185# default is implementation-dependent. Figure out which it is, since 6186# not all implementations provide the %pointer and %array declarations. 6187ac_cv_prog_lex_yytext_pointer=no 6188echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 6189ac_save_LIBS=$LIBS 6190LIBS="$LIBS $LEXLIB" 6191cat >conftest.$ac_ext <<_ACEOF 6192`cat $LEX_OUTPUT_ROOT.c` 6193_ACEOF 6194rm -f conftest.$ac_objext conftest$ac_exeext 6195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6196 (eval $ac_link) 2>conftest.er1 6197 ac_status=$? 6198 grep -v '^ *+' conftest.er1 >conftest.err 6199 rm -f conftest.er1 6200 cat conftest.err >&5 6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6202 (exit $ac_status); } && 6203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6205 (eval $ac_try) 2>&5 6206 ac_status=$? 6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6208 (exit $ac_status); }; } && 6209 { ac_try='test -s conftest$ac_exeext' 6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6211 (eval $ac_try) 2>&5 6212 ac_status=$? 6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6214 (exit $ac_status); }; }; then 6215 ac_cv_prog_lex_yytext_pointer=yes 6216else 6217 echo "$as_me: failed program was:" >&5 6218sed 's/^/| /' conftest.$ac_ext >&5 6219 6220fi 6221rm -f conftest.err conftest.$ac_objext \ 6222 conftest$ac_exeext conftest.$ac_ext 6223LIBS=$ac_save_LIBS 6224rm -f "${LEX_OUTPUT_ROOT}.c" 6225 6226fi 6227echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 6228echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 6229if test $ac_cv_prog_lex_yytext_pointer = yes; then 6230 6231cat >>confdefs.h <<\_ACEOF 6232#define YYTEXT_POINTER 1 6233_ACEOF 6234 6235fi 6236 6237fi 6238if test "$LEX" = :; then 6239 LEX=${am_missing_run}flex 6240fi 6241 6242ALL_LINGUAS="fr tr es" 6243if test -n "$ac_tool_prefix"; then 6244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6245set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6246echo "$as_me:$LINENO: checking for $ac_word" >&5 6247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6248if test "${ac_cv_prog_RANLIB+set}" = set; then 6249 echo $ECHO_N "(cached) $ECHO_C" >&6 6250else 6251 if test -n "$RANLIB"; then 6252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6253else 6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255for as_dir in $PATH 6256do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265done 6266done 6267 6268fi 6269fi 6270RANLIB=$ac_cv_prog_RANLIB 6271if test -n "$RANLIB"; then 6272 echo "$as_me:$LINENO: result: $RANLIB" >&5 6273echo "${ECHO_T}$RANLIB" >&6 6274else 6275 echo "$as_me:$LINENO: result: no" >&5 6276echo "${ECHO_T}no" >&6 6277fi 6278 6279fi 6280if test -z "$ac_cv_prog_RANLIB"; then 6281 ac_ct_RANLIB=$RANLIB 6282 # Extract the first word of "ranlib", so it can be a program name with args. 6283set dummy ranlib; ac_word=$2 6284echo "$as_me:$LINENO: checking for $ac_word" >&5 6285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6287 echo $ECHO_N "(cached) $ECHO_C" >&6 6288else 6289 if test -n "$ac_ct_RANLIB"; then 6290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6291else 6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6293for as_dir in $PATH 6294do 6295 IFS=$as_save_IFS 6296 test -z "$as_dir" && as_dir=. 6297 for ac_exec_ext in '' $ac_executable_extensions; do 6298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6299 ac_cv_prog_ac_ct_RANLIB="ranlib" 6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6301 break 2 6302 fi 6303done 6304done 6305 6306 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6307fi 6308fi 6309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6310if test -n "$ac_ct_RANLIB"; then 6311 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6312echo "${ECHO_T}$ac_ct_RANLIB" >&6 6313else 6314 echo "$as_me:$LINENO: result: no" >&5 6315echo "${ECHO_T}no" >&6 6316fi 6317 6318 RANLIB=$ac_ct_RANLIB 6319else 6320 RANLIB="$ac_cv_prog_RANLIB" 6321fi 6322 6323ac_ext=c 6324ac_cpp='$CPP $CPPFLAGS' 6325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6327ac_compiler_gnu=$ac_cv_c_compiler_gnu 6328echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6329echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 6330# On Suns, sometimes $CPP names a directory. 6331if test -n "$CPP" && test -d "$CPP"; then 6332 CPP= 6333fi 6334if test -z "$CPP"; then 6335 if test "${ac_cv_prog_CPP+set}" = set; then 6336 echo $ECHO_N "(cached) $ECHO_C" >&6 6337else 6338 # Double quotes because CPP needs to be expanded 6339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6340 do 6341 ac_preproc_ok=false 6342for ac_c_preproc_warn_flag in '' yes 6343do 6344 # Use a header file that comes with gcc, so configuring glibc 6345 # with a fresh cross-compiler works. 6346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6347 # <limits.h> exists even on freestanding compilers. 6348 # On the NeXT, cc -E runs the code through the compiler's parser, 6349 # not just through cpp. "Syntax error" is here to catch this case. 6350 cat >conftest.$ac_ext <<_ACEOF 6351/* confdefs.h. */ 6352_ACEOF 6353cat confdefs.h >>conftest.$ac_ext 6354cat >>conftest.$ac_ext <<_ACEOF 6355/* end confdefs.h. */ 6356#ifdef __STDC__ 6357# include <limits.h> 6358#else 6359# include <assert.h> 6360#endif 6361 Syntax error 6362_ACEOF 6363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6365 ac_status=$? 6366 grep -v '^ *+' conftest.er1 >conftest.err 6367 rm -f conftest.er1 6368 cat conftest.err >&5 6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6370 (exit $ac_status); } >/dev/null; then 6371 if test -s conftest.err; then 6372 ac_cpp_err=$ac_c_preproc_warn_flag 6373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6374 else 6375 ac_cpp_err= 6376 fi 6377else 6378 ac_cpp_err=yes 6379fi 6380if test -z "$ac_cpp_err"; then 6381 : 6382else 6383 echo "$as_me: failed program was:" >&5 6384sed 's/^/| /' conftest.$ac_ext >&5 6385 6386 # Broken: fails on valid input. 6387continue 6388fi 6389rm -f conftest.err conftest.$ac_ext 6390 6391 # OK, works on sane cases. Now check whether non-existent headers 6392 # can be detected and how. 6393 cat >conftest.$ac_ext <<_ACEOF 6394/* confdefs.h. */ 6395_ACEOF 6396cat confdefs.h >>conftest.$ac_ext 6397cat >>conftest.$ac_ext <<_ACEOF 6398/* end confdefs.h. */ 6399#include <ac_nonexistent.h> 6400_ACEOF 6401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6403 ac_status=$? 6404 grep -v '^ *+' conftest.er1 >conftest.err 6405 rm -f conftest.er1 6406 cat conftest.err >&5 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); } >/dev/null; then 6409 if test -s conftest.err; then 6410 ac_cpp_err=$ac_c_preproc_warn_flag 6411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6412 else 6413 ac_cpp_err= 6414 fi 6415else 6416 ac_cpp_err=yes 6417fi 6418if test -z "$ac_cpp_err"; then 6419 # Broken: success on invalid input. 6420continue 6421else 6422 echo "$as_me: failed program was:" >&5 6423sed 's/^/| /' conftest.$ac_ext >&5 6424 6425 # Passes both tests. 6426ac_preproc_ok=: 6427break 6428fi 6429rm -f conftest.err conftest.$ac_ext 6430 6431done 6432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6433rm -f conftest.err conftest.$ac_ext 6434if $ac_preproc_ok; then 6435 break 6436fi 6437 6438 done 6439 ac_cv_prog_CPP=$CPP 6440 6441fi 6442 CPP=$ac_cv_prog_CPP 6443else 6444 ac_cv_prog_CPP=$CPP 6445fi 6446echo "$as_me:$LINENO: result: $CPP" >&5 6447echo "${ECHO_T}$CPP" >&6 6448ac_preproc_ok=false 6449for ac_c_preproc_warn_flag in '' yes 6450do 6451 # Use a header file that comes with gcc, so configuring glibc 6452 # with a fresh cross-compiler works. 6453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6454 # <limits.h> exists even on freestanding compilers. 6455 # On the NeXT, cc -E runs the code through the compiler's parser, 6456 # not just through cpp. "Syntax error" is here to catch this case. 6457 cat >conftest.$ac_ext <<_ACEOF 6458/* confdefs.h. */ 6459_ACEOF 6460cat confdefs.h >>conftest.$ac_ext 6461cat >>conftest.$ac_ext <<_ACEOF 6462/* end confdefs.h. */ 6463#ifdef __STDC__ 6464# include <limits.h> 6465#else 6466# include <assert.h> 6467#endif 6468 Syntax error 6469_ACEOF 6470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6472 ac_status=$? 6473 grep -v '^ *+' conftest.er1 >conftest.err 6474 rm -f conftest.er1 6475 cat conftest.err >&5 6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6477 (exit $ac_status); } >/dev/null; then 6478 if test -s conftest.err; then 6479 ac_cpp_err=$ac_c_preproc_warn_flag 6480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6481 else 6482 ac_cpp_err= 6483 fi 6484else 6485 ac_cpp_err=yes 6486fi 6487if test -z "$ac_cpp_err"; then 6488 : 6489else 6490 echo "$as_me: failed program was:" >&5 6491sed 's/^/| /' conftest.$ac_ext >&5 6492 6493 # Broken: fails on valid input. 6494continue 6495fi 6496rm -f conftest.err conftest.$ac_ext 6497 6498 # OK, works on sane cases. Now check whether non-existent headers 6499 # can be detected and how. 6500 cat >conftest.$ac_ext <<_ACEOF 6501/* confdefs.h. */ 6502_ACEOF 6503cat confdefs.h >>conftest.$ac_ext 6504cat >>conftest.$ac_ext <<_ACEOF 6505/* end confdefs.h. */ 6506#include <ac_nonexistent.h> 6507_ACEOF 6508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6510 ac_status=$? 6511 grep -v '^ *+' conftest.er1 >conftest.err 6512 rm -f conftest.er1 6513 cat conftest.err >&5 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6515 (exit $ac_status); } >/dev/null; then 6516 if test -s conftest.err; then 6517 ac_cpp_err=$ac_c_preproc_warn_flag 6518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6519 else 6520 ac_cpp_err= 6521 fi 6522else 6523 ac_cpp_err=yes 6524fi 6525if test -z "$ac_cpp_err"; then 6526 # Broken: success on invalid input. 6527continue 6528else 6529 echo "$as_me: failed program was:" >&5 6530sed 's/^/| /' conftest.$ac_ext >&5 6531 6532 # Passes both tests. 6533ac_preproc_ok=: 6534break 6535fi 6536rm -f conftest.err conftest.$ac_ext 6537 6538done 6539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6540rm -f conftest.err conftest.$ac_ext 6541if $ac_preproc_ok; then 6542 : 6543else 6544 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6545See \`config.log' for more details." >&5 6546echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6547See \`config.log' for more details." >&2;} 6548 { (exit 1); exit 1; }; } 6549fi 6550 6551ac_ext=c 6552ac_cpp='$CPP $CPPFLAGS' 6553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6555ac_compiler_gnu=$ac_cv_c_compiler_gnu 6556 6557 6558echo "$as_me:$LINENO: checking for egrep" >&5 6559echo $ECHO_N "checking for egrep... $ECHO_C" >&6 6560if test "${ac_cv_prog_egrep+set}" = set; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562else 6563 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 6564 then ac_cv_prog_egrep='grep -E' 6565 else ac_cv_prog_egrep='egrep' 6566 fi 6567fi 6568echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 6569echo "${ECHO_T}$ac_cv_prog_egrep" >&6 6570 EGREP=$ac_cv_prog_egrep 6571 6572 6573echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6574echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6575if test "${ac_cv_header_stdc+set}" = set; then 6576 echo $ECHO_N "(cached) $ECHO_C" >&6 6577else 6578 cat >conftest.$ac_ext <<_ACEOF 6579/* confdefs.h. */ 6580_ACEOF 6581cat confdefs.h >>conftest.$ac_ext 6582cat >>conftest.$ac_ext <<_ACEOF 6583/* end confdefs.h. */ 6584#include <stdlib.h> 6585#include <stdarg.h> 6586#include <string.h> 6587#include <float.h> 6588 6589int 6590main () 6591{ 6592 6593 ; 6594 return 0; 6595} 6596_ACEOF 6597rm -f conftest.$ac_objext 6598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6599 (eval $ac_compile) 2>conftest.er1 6600 ac_status=$? 6601 grep -v '^ *+' conftest.er1 >conftest.err 6602 rm -f conftest.er1 6603 cat conftest.err >&5 6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6605 (exit $ac_status); } && 6606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6608 (eval $ac_try) 2>&5 6609 ac_status=$? 6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6611 (exit $ac_status); }; } && 6612 { ac_try='test -s conftest.$ac_objext' 6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6614 (eval $ac_try) 2>&5 6615 ac_status=$? 6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); }; }; then 6618 ac_cv_header_stdc=yes 6619else 6620 echo "$as_me: failed program was:" >&5 6621sed 's/^/| /' conftest.$ac_ext >&5 6622 6623ac_cv_header_stdc=no 6624fi 6625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6626 6627if test $ac_cv_header_stdc = yes; then 6628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6629 cat >conftest.$ac_ext <<_ACEOF 6630/* confdefs.h. */ 6631_ACEOF 6632cat confdefs.h >>conftest.$ac_ext 6633cat >>conftest.$ac_ext <<_ACEOF 6634/* end confdefs.h. */ 6635#include <string.h> 6636 6637_ACEOF 6638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6639 $EGREP "memchr" >/dev/null 2>&1; then 6640 : 6641else 6642 ac_cv_header_stdc=no 6643fi 6644rm -f conftest* 6645 6646fi 6647 6648if test $ac_cv_header_stdc = yes; then 6649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6650 cat >conftest.$ac_ext <<_ACEOF 6651/* confdefs.h. */ 6652_ACEOF 6653cat confdefs.h >>conftest.$ac_ext 6654cat >>conftest.$ac_ext <<_ACEOF 6655/* end confdefs.h. */ 6656#include <stdlib.h> 6657 6658_ACEOF 6659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6660 $EGREP "free" >/dev/null 2>&1; then 6661 : 6662else 6663 ac_cv_header_stdc=no 6664fi 6665rm -f conftest* 6666 6667fi 6668 6669if test $ac_cv_header_stdc = yes; then 6670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6671 if test "$cross_compiling" = yes; then 6672 : 6673else 6674 cat >conftest.$ac_ext <<_ACEOF 6675/* confdefs.h. */ 6676_ACEOF 6677cat confdefs.h >>conftest.$ac_ext 6678cat >>conftest.$ac_ext <<_ACEOF 6679/* end confdefs.h. */ 6680#include <ctype.h> 6681#if ((' ' & 0x0FF) == 0x020) 6682# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6683# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6684#else 6685# define ISLOWER(c) \ 6686 (('a' <= (c) && (c) <= 'i') \ 6687 || ('j' <= (c) && (c) <= 'r') \ 6688 || ('s' <= (c) && (c) <= 'z')) 6689# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6690#endif 6691 6692#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6693int 6694main () 6695{ 6696 int i; 6697 for (i = 0; i < 256; i++) 6698 if (XOR (islower (i), ISLOWER (i)) 6699 || toupper (i) != TOUPPER (i)) 6700 exit(2); 6701 exit (0); 6702} 6703_ACEOF 6704rm -f conftest$ac_exeext 6705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6706 (eval $ac_link) 2>&5 6707 ac_status=$? 6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6711 (eval $ac_try) 2>&5 6712 ac_status=$? 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6714 (exit $ac_status); }; }; then 6715 : 6716else 6717 echo "$as_me: program exited with status $ac_status" >&5 6718echo "$as_me: failed program was:" >&5 6719sed 's/^/| /' conftest.$ac_ext >&5 6720 6721( exit $ac_status ) 6722ac_cv_header_stdc=no 6723fi 6724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6725fi 6726fi 6727fi 6728echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6729echo "${ECHO_T}$ac_cv_header_stdc" >&6 6730if test $ac_cv_header_stdc = yes; then 6731 6732cat >>confdefs.h <<\_ACEOF 6733#define STDC_HEADERS 1 6734_ACEOF 6735 6736fi 6737 6738echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6739echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 6740if test "${ac_cv_c_const+set}" = set; then 6741 echo $ECHO_N "(cached) $ECHO_C" >&6 6742else 6743 cat >conftest.$ac_ext <<_ACEOF 6744/* confdefs.h. */ 6745_ACEOF 6746cat confdefs.h >>conftest.$ac_ext 6747cat >>conftest.$ac_ext <<_ACEOF 6748/* end confdefs.h. */ 6749 6750int 6751main () 6752{ 6753/* FIXME: Include the comments suggested by Paul. */ 6754#ifndef __cplusplus 6755 /* Ultrix mips cc rejects this. */ 6756 typedef int charset[2]; 6757 const charset x; 6758 /* SunOS 4.1.1 cc rejects this. */ 6759 char const *const *ccp; 6760 char **p; 6761 /* NEC SVR4.0.2 mips cc rejects this. */ 6762 struct point {int x, y;}; 6763 static struct point const zero = {0,0}; 6764 /* AIX XL C 1.02.0.0 rejects this. 6765 It does not let you subtract one const X* pointer from another in 6766 an arm of an if-expression whose if-part is not a constant 6767 expression */ 6768 const char *g = "string"; 6769 ccp = &g + (g ? g-g : 0); 6770 /* HPUX 7.0 cc rejects these. */ 6771 ++ccp; 6772 p = (char**) ccp; 6773 ccp = (char const *const *) p; 6774 { /* SCO 3.2v4 cc rejects this. */ 6775 char *t; 6776 char const *s = 0 ? (char *) 0 : (char const *) 0; 6777 6778 *t++ = 0; 6779 } 6780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6781 int x[] = {25, 17}; 6782 const int *foo = &x[0]; 6783 ++foo; 6784 } 6785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6786 typedef const int *iptr; 6787 iptr p = 0; 6788 ++p; 6789 } 6790 { /* AIX XL C 1.02.0.0 rejects this saying 6791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6792 struct s { int j; const int *ap[3]; }; 6793 struct s *b; b->j = 5; 6794 } 6795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6796 const int foo = 10; 6797 } 6798#endif 6799 6800 ; 6801 return 0; 6802} 6803_ACEOF 6804rm -f conftest.$ac_objext 6805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6806 (eval $ac_compile) 2>conftest.er1 6807 ac_status=$? 6808 grep -v '^ *+' conftest.er1 >conftest.err 6809 rm -f conftest.er1 6810 cat conftest.err >&5 6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6812 (exit $ac_status); } && 6813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6815 (eval $ac_try) 2>&5 6816 ac_status=$? 6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6818 (exit $ac_status); }; } && 6819 { ac_try='test -s conftest.$ac_objext' 6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6821 (eval $ac_try) 2>&5 6822 ac_status=$? 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); }; }; then 6825 ac_cv_c_const=yes 6826else 6827 echo "$as_me: failed program was:" >&5 6828sed 's/^/| /' conftest.$ac_ext >&5 6829 6830ac_cv_c_const=no 6831fi 6832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6833fi 6834echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6835echo "${ECHO_T}$ac_cv_c_const" >&6 6836if test $ac_cv_c_const = no; then 6837 6838cat >>confdefs.h <<\_ACEOF 6839#define const 6840_ACEOF 6841 6842fi 6843 6844echo "$as_me:$LINENO: checking for inline" >&5 6845echo $ECHO_N "checking for inline... $ECHO_C" >&6 6846if test "${ac_cv_c_inline+set}" = set; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 ac_cv_c_inline=no 6850for ac_kw in inline __inline__ __inline; do 6851 cat >conftest.$ac_ext <<_ACEOF 6852/* confdefs.h. */ 6853_ACEOF 6854cat confdefs.h >>conftest.$ac_ext 6855cat >>conftest.$ac_ext <<_ACEOF 6856/* end confdefs.h. */ 6857#ifndef __cplusplus 6858typedef int foo_t; 6859static $ac_kw foo_t static_foo () {return 0; } 6860$ac_kw foo_t foo () {return 0; } 6861#endif 6862 6863_ACEOF 6864rm -f conftest.$ac_objext 6865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6866 (eval $ac_compile) 2>conftest.er1 6867 ac_status=$? 6868 grep -v '^ *+' conftest.er1 >conftest.err 6869 rm -f conftest.er1 6870 cat conftest.err >&5 6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6872 (exit $ac_status); } && 6873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6875 (eval $ac_try) 2>&5 6876 ac_status=$? 6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6878 (exit $ac_status); }; } && 6879 { ac_try='test -s conftest.$ac_objext' 6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6881 (eval $ac_try) 2>&5 6882 ac_status=$? 6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6884 (exit $ac_status); }; }; then 6885 ac_cv_c_inline=$ac_kw; break 6886else 6887 echo "$as_me: failed program was:" >&5 6888sed 's/^/| /' conftest.$ac_ext >&5 6889 6890fi 6891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6892done 6893 6894fi 6895echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 6896echo "${ECHO_T}$ac_cv_c_inline" >&6 6897 6898 6899case $ac_cv_c_inline in 6900 inline | yes) ;; 6901 *) 6902 case $ac_cv_c_inline in 6903 no) ac_val=;; 6904 *) ac_val=$ac_cv_c_inline;; 6905 esac 6906 cat >>confdefs.h <<_ACEOF 6907#ifndef __cplusplus 6908#define inline $ac_val 6909#endif 6910_ACEOF 6911 ;; 6912esac 6913 6914# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6925 inttypes.h stdint.h unistd.h 6926do 6927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6928echo "$as_me:$LINENO: checking for $ac_header" >&5 6929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6930if eval "test \"\${$as_ac_Header+set}\" = set"; then 6931 echo $ECHO_N "(cached) $ECHO_C" >&6 6932else 6933 cat >conftest.$ac_ext <<_ACEOF 6934/* confdefs.h. */ 6935_ACEOF 6936cat confdefs.h >>conftest.$ac_ext 6937cat >>conftest.$ac_ext <<_ACEOF 6938/* end confdefs.h. */ 6939$ac_includes_default 6940 6941#include <$ac_header> 6942_ACEOF 6943rm -f conftest.$ac_objext 6944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6945 (eval $ac_compile) 2>conftest.er1 6946 ac_status=$? 6947 grep -v '^ *+' conftest.er1 >conftest.err 6948 rm -f conftest.er1 6949 cat conftest.err >&5 6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6951 (exit $ac_status); } && 6952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6954 (eval $ac_try) 2>&5 6955 ac_status=$? 6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6957 (exit $ac_status); }; } && 6958 { ac_try='test -s conftest.$ac_objext' 6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6960 (eval $ac_try) 2>&5 6961 ac_status=$? 6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6963 (exit $ac_status); }; }; then 6964 eval "$as_ac_Header=yes" 6965else 6966 echo "$as_me: failed program was:" >&5 6967sed 's/^/| /' conftest.$ac_ext >&5 6968 6969eval "$as_ac_Header=no" 6970fi 6971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6972fi 6973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6975if test `eval echo '${'$as_ac_Header'}'` = yes; then 6976 cat >>confdefs.h <<_ACEOF 6977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6978_ACEOF 6979 6980fi 6981 6982done 6983 6984 6985echo "$as_me:$LINENO: checking for off_t" >&5 6986echo $ECHO_N "checking for off_t... $ECHO_C" >&6 6987if test "${ac_cv_type_off_t+set}" = set; then 6988 echo $ECHO_N "(cached) $ECHO_C" >&6 6989else 6990 cat >conftest.$ac_ext <<_ACEOF 6991/* confdefs.h. */ 6992_ACEOF 6993cat confdefs.h >>conftest.$ac_ext 6994cat >>conftest.$ac_ext <<_ACEOF 6995/* end confdefs.h. */ 6996$ac_includes_default 6997int 6998main () 6999{ 7000if ((off_t *) 0) 7001 return 0; 7002if (sizeof (off_t)) 7003 return 0; 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008rm -f conftest.$ac_objext 7009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7010 (eval $ac_compile) 2>conftest.er1 7011 ac_status=$? 7012 grep -v '^ *+' conftest.er1 >conftest.err 7013 rm -f conftest.er1 7014 cat conftest.err >&5 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); } && 7017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7019 (eval $ac_try) 2>&5 7020 ac_status=$? 7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7022 (exit $ac_status); }; } && 7023 { ac_try='test -s conftest.$ac_objext' 7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7025 (eval $ac_try) 2>&5 7026 ac_status=$? 7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7028 (exit $ac_status); }; }; then 7029 ac_cv_type_off_t=yes 7030else 7031 echo "$as_me: failed program was:" >&5 7032sed 's/^/| /' conftest.$ac_ext >&5 7033 7034ac_cv_type_off_t=no 7035fi 7036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7037fi 7038echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 7039echo "${ECHO_T}$ac_cv_type_off_t" >&6 7040if test $ac_cv_type_off_t = yes; then 7041 : 7042else 7043 7044cat >>confdefs.h <<_ACEOF 7045#define off_t long 7046_ACEOF 7047 7048fi 7049 7050echo "$as_me:$LINENO: checking for size_t" >&5 7051echo $ECHO_N "checking for size_t... $ECHO_C" >&6 7052if test "${ac_cv_type_size_t+set}" = set; then 7053 echo $ECHO_N "(cached) $ECHO_C" >&6 7054else 7055 cat >conftest.$ac_ext <<_ACEOF 7056/* confdefs.h. */ 7057_ACEOF 7058cat confdefs.h >>conftest.$ac_ext 7059cat >>conftest.$ac_ext <<_ACEOF 7060/* end confdefs.h. */ 7061$ac_includes_default 7062int 7063main () 7064{ 7065if ((size_t *) 0) 7066 return 0; 7067if (sizeof (size_t)) 7068 return 0; 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073rm -f conftest.$ac_objext 7074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7075 (eval $ac_compile) 2>conftest.er1 7076 ac_status=$? 7077 grep -v '^ *+' conftest.er1 >conftest.err 7078 rm -f conftest.er1 7079 cat conftest.err >&5 7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7081 (exit $ac_status); } && 7082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7084 (eval $ac_try) 2>&5 7085 ac_status=$? 7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7087 (exit $ac_status); }; } && 7088 { ac_try='test -s conftest.$ac_objext' 7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7090 (eval $ac_try) 2>&5 7091 ac_status=$? 7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); }; }; then 7094 ac_cv_type_size_t=yes 7095else 7096 echo "$as_me: failed program was:" >&5 7097sed 's/^/| /' conftest.$ac_ext >&5 7098 7099ac_cv_type_size_t=no 7100fi 7101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7102fi 7103echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 7104echo "${ECHO_T}$ac_cv_type_size_t" >&6 7105if test $ac_cv_type_size_t = yes; then 7106 : 7107else 7108 7109cat >>confdefs.h <<_ACEOF 7110#define size_t unsigned 7111_ACEOF 7112 7113fi 7114 7115# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7116# for constant arguments. Useless! 7117echo "$as_me:$LINENO: checking for working alloca.h" >&5 7118echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 7119if test "${ac_cv_working_alloca_h+set}" = set; then 7120 echo $ECHO_N "(cached) $ECHO_C" >&6 7121else 7122 cat >conftest.$ac_ext <<_ACEOF 7123/* confdefs.h. */ 7124_ACEOF 7125cat confdefs.h >>conftest.$ac_ext 7126cat >>conftest.$ac_ext <<_ACEOF 7127/* end confdefs.h. */ 7128#include <alloca.h> 7129int 7130main () 7131{ 7132char *p = (char *) alloca (2 * sizeof (int)); 7133 ; 7134 return 0; 7135} 7136_ACEOF 7137rm -f conftest.$ac_objext conftest$ac_exeext 7138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7139 (eval $ac_link) 2>conftest.er1 7140 ac_status=$? 7141 grep -v '^ *+' conftest.er1 >conftest.err 7142 rm -f conftest.er1 7143 cat conftest.err >&5 7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7145 (exit $ac_status); } && 7146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7148 (eval $ac_try) 2>&5 7149 ac_status=$? 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 (exit $ac_status); }; } && 7152 { ac_try='test -s conftest$ac_exeext' 7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7154 (eval $ac_try) 2>&5 7155 ac_status=$? 7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7157 (exit $ac_status); }; }; then 7158 ac_cv_working_alloca_h=yes 7159else 7160 echo "$as_me: failed program was:" >&5 7161sed 's/^/| /' conftest.$ac_ext >&5 7162 7163ac_cv_working_alloca_h=no 7164fi 7165rm -f conftest.err conftest.$ac_objext \ 7166 conftest$ac_exeext conftest.$ac_ext 7167fi 7168echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 7169echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 7170if test $ac_cv_working_alloca_h = yes; then 7171 7172cat >>confdefs.h <<\_ACEOF 7173#define HAVE_ALLOCA_H 1 7174_ACEOF 7175 7176fi 7177 7178echo "$as_me:$LINENO: checking for alloca" >&5 7179echo $ECHO_N "checking for alloca... $ECHO_C" >&6 7180if test "${ac_cv_func_alloca_works+set}" = set; then 7181 echo $ECHO_N "(cached) $ECHO_C" >&6 7182else 7183 cat >conftest.$ac_ext <<_ACEOF 7184/* confdefs.h. */ 7185_ACEOF 7186cat confdefs.h >>conftest.$ac_ext 7187cat >>conftest.$ac_ext <<_ACEOF 7188/* end confdefs.h. */ 7189#ifdef __GNUC__ 7190# define alloca __builtin_alloca 7191#else 7192# ifdef _MSC_VER 7193# include <malloc.h> 7194# define alloca _alloca 7195# else 7196# if HAVE_ALLOCA_H 7197# include <alloca.h> 7198# else 7199# ifdef _AIX 7200 #pragma alloca 7201# else 7202# ifndef alloca /* predefined by HP cc +Olibcalls */ 7203char *alloca (); 7204# endif 7205# endif 7206# endif 7207# endif 7208#endif 7209 7210int 7211main () 7212{ 7213char *p = (char *) alloca (1); 7214 ; 7215 return 0; 7216} 7217_ACEOF 7218rm -f conftest.$ac_objext conftest$ac_exeext 7219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7220 (eval $ac_link) 2>conftest.er1 7221 ac_status=$? 7222 grep -v '^ *+' conftest.er1 >conftest.err 7223 rm -f conftest.er1 7224 cat conftest.err >&5 7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7226 (exit $ac_status); } && 7227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7229 (eval $ac_try) 2>&5 7230 ac_status=$? 7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7232 (exit $ac_status); }; } && 7233 { ac_try='test -s conftest$ac_exeext' 7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7235 (eval $ac_try) 2>&5 7236 ac_status=$? 7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7238 (exit $ac_status); }; }; then 7239 ac_cv_func_alloca_works=yes 7240else 7241 echo "$as_me: failed program was:" >&5 7242sed 's/^/| /' conftest.$ac_ext >&5 7243 7244ac_cv_func_alloca_works=no 7245fi 7246rm -f conftest.err conftest.$ac_objext \ 7247 conftest$ac_exeext conftest.$ac_ext 7248fi 7249echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 7250echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 7251 7252if test $ac_cv_func_alloca_works = yes; then 7253 7254cat >>confdefs.h <<\_ACEOF 7255#define HAVE_ALLOCA 1 7256_ACEOF 7257 7258else 7259 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7260# that cause trouble. Some versions do not even contain alloca or 7261# contain a buggy version. If you still want to use their alloca, 7262# use ar to extract alloca.o from them instead of compiling alloca.c. 7263 7264ALLOCA=alloca.$ac_objext 7265 7266cat >>confdefs.h <<\_ACEOF 7267#define C_ALLOCA 1 7268_ACEOF 7269 7270 7271echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 7272echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 7273if test "${ac_cv_os_cray+set}" = set; then 7274 echo $ECHO_N "(cached) $ECHO_C" >&6 7275else 7276 cat >conftest.$ac_ext <<_ACEOF 7277/* confdefs.h. */ 7278_ACEOF 7279cat confdefs.h >>conftest.$ac_ext 7280cat >>conftest.$ac_ext <<_ACEOF 7281/* end confdefs.h. */ 7282#if defined(CRAY) && ! defined(CRAY2) 7283webecray 7284#else 7285wenotbecray 7286#endif 7287 7288_ACEOF 7289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7290 $EGREP "webecray" >/dev/null 2>&1; then 7291 ac_cv_os_cray=yes 7292else 7293 ac_cv_os_cray=no 7294fi 7295rm -f conftest* 7296 7297fi 7298echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 7299echo "${ECHO_T}$ac_cv_os_cray" >&6 7300if test $ac_cv_os_cray = yes; then 7301 for ac_func in _getb67 GETB67 getb67; do 7302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7303echo "$as_me:$LINENO: checking for $ac_func" >&5 7304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7305if eval "test \"\${$as_ac_var+set}\" = set"; then 7306 echo $ECHO_N "(cached) $ECHO_C" >&6 7307else 7308 cat >conftest.$ac_ext <<_ACEOF 7309/* confdefs.h. */ 7310_ACEOF 7311cat confdefs.h >>conftest.$ac_ext 7312cat >>conftest.$ac_ext <<_ACEOF 7313/* end confdefs.h. */ 7314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7316#define $ac_func innocuous_$ac_func 7317 7318/* System header to define __stub macros and hopefully few prototypes, 7319 which can conflict with char $ac_func (); below. 7320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7321 <limits.h> exists even on freestanding compilers. */ 7322 7323#ifdef __STDC__ 7324# include <limits.h> 7325#else 7326# include <assert.h> 7327#endif 7328 7329#undef $ac_func 7330 7331/* Override any gcc2 internal prototype to avoid an error. */ 7332#ifdef __cplusplus 7333extern "C" 7334{ 7335#endif 7336/* We use char because int might match the return type of a gcc2 7337 builtin and then its argument prototype would still apply. */ 7338char $ac_func (); 7339/* The GNU C library defines this for functions which it implements 7340 to always fail with ENOSYS. Some functions are actually named 7341 something starting with __ and the normal name is an alias. */ 7342#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7343choke me 7344#else 7345char (*f) () = $ac_func; 7346#endif 7347#ifdef __cplusplus 7348} 7349#endif 7350 7351int 7352main () 7353{ 7354return f != $ac_func; 7355 ; 7356 return 0; 7357} 7358_ACEOF 7359rm -f conftest.$ac_objext conftest$ac_exeext 7360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7361 (eval $ac_link) 2>conftest.er1 7362 ac_status=$? 7363 grep -v '^ *+' conftest.er1 >conftest.err 7364 rm -f conftest.er1 7365 cat conftest.err >&5 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 (exit $ac_status); } && 7368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7370 (eval $ac_try) 2>&5 7371 ac_status=$? 7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7373 (exit $ac_status); }; } && 7374 { ac_try='test -s conftest$ac_exeext' 7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7376 (eval $ac_try) 2>&5 7377 ac_status=$? 7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7379 (exit $ac_status); }; }; then 7380 eval "$as_ac_var=yes" 7381else 7382 echo "$as_me: failed program was:" >&5 7383sed 's/^/| /' conftest.$ac_ext >&5 7384 7385eval "$as_ac_var=no" 7386fi 7387rm -f conftest.err conftest.$ac_objext \ 7388 conftest$ac_exeext conftest.$ac_ext 7389fi 7390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7392if test `eval echo '${'$as_ac_var'}'` = yes; then 7393 7394cat >>confdefs.h <<_ACEOF 7395#define CRAY_STACKSEG_END $ac_func 7396_ACEOF 7397 7398 break 7399fi 7400 7401 done 7402fi 7403 7404echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 7405echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 7406if test "${ac_cv_c_stack_direction+set}" = set; then 7407 echo $ECHO_N "(cached) $ECHO_C" >&6 7408else 7409 if test "$cross_compiling" = yes; then 7410 ac_cv_c_stack_direction=0 7411else 7412 cat >conftest.$ac_ext <<_ACEOF 7413/* confdefs.h. */ 7414_ACEOF 7415cat confdefs.h >>conftest.$ac_ext 7416cat >>conftest.$ac_ext <<_ACEOF 7417/* end confdefs.h. */ 7418int 7419find_stack_direction () 7420{ 7421 static char *addr = 0; 7422 auto char dummy; 7423 if (addr == 0) 7424 { 7425 addr = &dummy; 7426 return find_stack_direction (); 7427 } 7428 else 7429 return (&dummy > addr) ? 1 : -1; 7430} 7431 7432int 7433main () 7434{ 7435 exit (find_stack_direction () < 0); 7436} 7437_ACEOF 7438rm -f conftest$ac_exeext 7439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7440 (eval $ac_link) 2>&5 7441 ac_status=$? 7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7445 (eval $ac_try) 2>&5 7446 ac_status=$? 7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7448 (exit $ac_status); }; }; then 7449 ac_cv_c_stack_direction=1 7450else 7451 echo "$as_me: program exited with status $ac_status" >&5 7452echo "$as_me: failed program was:" >&5 7453sed 's/^/| /' conftest.$ac_ext >&5 7454 7455( exit $ac_status ) 7456ac_cv_c_stack_direction=-1 7457fi 7458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7459fi 7460fi 7461echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 7462echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 7463 7464cat >>confdefs.h <<_ACEOF 7465#define STACK_DIRECTION $ac_cv_c_stack_direction 7466_ACEOF 7467 7468 7469fi 7470 7471 7472 7473for ac_header in stdlib.h unistd.h 7474do 7475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7476if eval "test \"\${$as_ac_Header+set}\" = set"; then 7477 echo "$as_me:$LINENO: checking for $ac_header" >&5 7478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7479if eval "test \"\${$as_ac_Header+set}\" = set"; then 7480 echo $ECHO_N "(cached) $ECHO_C" >&6 7481fi 7482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7484else 7485 # Is the header compilable? 7486echo "$as_me:$LINENO: checking $ac_header usability" >&5 7487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7488cat >conftest.$ac_ext <<_ACEOF 7489/* confdefs.h. */ 7490_ACEOF 7491cat confdefs.h >>conftest.$ac_ext 7492cat >>conftest.$ac_ext <<_ACEOF 7493/* end confdefs.h. */ 7494$ac_includes_default 7495#include <$ac_header> 7496_ACEOF 7497rm -f conftest.$ac_objext 7498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7499 (eval $ac_compile) 2>conftest.er1 7500 ac_status=$? 7501 grep -v '^ *+' conftest.er1 >conftest.err 7502 rm -f conftest.er1 7503 cat conftest.err >&5 7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7505 (exit $ac_status); } && 7506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7508 (eval $ac_try) 2>&5 7509 ac_status=$? 7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7511 (exit $ac_status); }; } && 7512 { ac_try='test -s conftest.$ac_objext' 7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7514 (eval $ac_try) 2>&5 7515 ac_status=$? 7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7517 (exit $ac_status); }; }; then 7518 ac_header_compiler=yes 7519else 7520 echo "$as_me: failed program was:" >&5 7521sed 's/^/| /' conftest.$ac_ext >&5 7522 7523ac_header_compiler=no 7524fi 7525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7527echo "${ECHO_T}$ac_header_compiler" >&6 7528 7529# Is the header present? 7530echo "$as_me:$LINENO: checking $ac_header presence" >&5 7531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7532cat >conftest.$ac_ext <<_ACEOF 7533/* confdefs.h. */ 7534_ACEOF 7535cat confdefs.h >>conftest.$ac_ext 7536cat >>conftest.$ac_ext <<_ACEOF 7537/* end confdefs.h. */ 7538#include <$ac_header> 7539_ACEOF 7540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7542 ac_status=$? 7543 grep -v '^ *+' conftest.er1 >conftest.err 7544 rm -f conftest.er1 7545 cat conftest.err >&5 7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7547 (exit $ac_status); } >/dev/null; then 7548 if test -s conftest.err; then 7549 ac_cpp_err=$ac_c_preproc_warn_flag 7550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7551 else 7552 ac_cpp_err= 7553 fi 7554else 7555 ac_cpp_err=yes 7556fi 7557if test -z "$ac_cpp_err"; then 7558 ac_header_preproc=yes 7559else 7560 echo "$as_me: failed program was:" >&5 7561sed 's/^/| /' conftest.$ac_ext >&5 7562 7563 ac_header_preproc=no 7564fi 7565rm -f conftest.err conftest.$ac_ext 7566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7567echo "${ECHO_T}$ac_header_preproc" >&6 7568 7569# So? What about this header? 7570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7571 yes:no: ) 7572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7576 ac_header_preproc=yes 7577 ;; 7578 no:yes:* ) 7579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7591 ( 7592 cat <<\_ASBOX 7593## ------------------------------------------ ## 7594## Report this to the AC_PACKAGE_NAME lists. ## 7595## ------------------------------------------ ## 7596_ASBOX 7597 ) | 7598 sed "s/^/$as_me: WARNING: /" >&2 7599 ;; 7600esac 7601echo "$as_me:$LINENO: checking for $ac_header" >&5 7602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7603if eval "test \"\${$as_ac_Header+set}\" = set"; then 7604 echo $ECHO_N "(cached) $ECHO_C" >&6 7605else 7606 eval "$as_ac_Header=\$ac_header_preproc" 7607fi 7608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7610 7611fi 7612if test `eval echo '${'$as_ac_Header'}'` = yes; then 7613 cat >>confdefs.h <<_ACEOF 7614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7615_ACEOF 7616 7617fi 7618 7619done 7620 7621 7622for ac_func in getpagesize 7623do 7624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7625echo "$as_me:$LINENO: checking for $ac_func" >&5 7626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7627if eval "test \"\${$as_ac_var+set}\" = set"; then 7628 echo $ECHO_N "(cached) $ECHO_C" >&6 7629else 7630 cat >conftest.$ac_ext <<_ACEOF 7631/* confdefs.h. */ 7632_ACEOF 7633cat confdefs.h >>conftest.$ac_ext 7634cat >>conftest.$ac_ext <<_ACEOF 7635/* end confdefs.h. */ 7636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7637 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7638#define $ac_func innocuous_$ac_func 7639 7640/* System header to define __stub macros and hopefully few prototypes, 7641 which can conflict with char $ac_func (); below. 7642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7643 <limits.h> exists even on freestanding compilers. */ 7644 7645#ifdef __STDC__ 7646# include <limits.h> 7647#else 7648# include <assert.h> 7649#endif 7650 7651#undef $ac_func 7652 7653/* Override any gcc2 internal prototype to avoid an error. */ 7654#ifdef __cplusplus 7655extern "C" 7656{ 7657#endif 7658/* We use char because int might match the return type of a gcc2 7659 builtin and then its argument prototype would still apply. */ 7660char $ac_func (); 7661/* The GNU C library defines this for functions which it implements 7662 to always fail with ENOSYS. Some functions are actually named 7663 something starting with __ and the normal name is an alias. */ 7664#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7665choke me 7666#else 7667char (*f) () = $ac_func; 7668#endif 7669#ifdef __cplusplus 7670} 7671#endif 7672 7673int 7674main () 7675{ 7676return f != $ac_func; 7677 ; 7678 return 0; 7679} 7680_ACEOF 7681rm -f conftest.$ac_objext conftest$ac_exeext 7682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7683 (eval $ac_link) 2>conftest.er1 7684 ac_status=$? 7685 grep -v '^ *+' conftest.er1 >conftest.err 7686 rm -f conftest.er1 7687 cat conftest.err >&5 7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7689 (exit $ac_status); } && 7690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7692 (eval $ac_try) 2>&5 7693 ac_status=$? 7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7695 (exit $ac_status); }; } && 7696 { ac_try='test -s conftest$ac_exeext' 7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7698 (eval $ac_try) 2>&5 7699 ac_status=$? 7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7701 (exit $ac_status); }; }; then 7702 eval "$as_ac_var=yes" 7703else 7704 echo "$as_me: failed program was:" >&5 7705sed 's/^/| /' conftest.$ac_ext >&5 7706 7707eval "$as_ac_var=no" 7708fi 7709rm -f conftest.err conftest.$ac_objext \ 7710 conftest$ac_exeext conftest.$ac_ext 7711fi 7712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7714if test `eval echo '${'$as_ac_var'}'` = yes; then 7715 cat >>confdefs.h <<_ACEOF 7716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7717_ACEOF 7718 7719fi 7720done 7721 7722echo "$as_me:$LINENO: checking for working mmap" >&5 7723echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 7724if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 7725 echo $ECHO_N "(cached) $ECHO_C" >&6 7726else 7727 if test "$cross_compiling" = yes; then 7728 ac_cv_func_mmap_fixed_mapped=no 7729else 7730 cat >conftest.$ac_ext <<_ACEOF 7731/* confdefs.h. */ 7732_ACEOF 7733cat confdefs.h >>conftest.$ac_ext 7734cat >>conftest.$ac_ext <<_ACEOF 7735/* end confdefs.h. */ 7736$ac_includes_default 7737/* malloc might have been renamed as rpl_malloc. */ 7738#undef malloc 7739 7740/* Thanks to Mike Haertel and Jim Avera for this test. 7741 Here is a matrix of mmap possibilities: 7742 mmap private not fixed 7743 mmap private fixed at somewhere currently unmapped 7744 mmap private fixed at somewhere already mapped 7745 mmap shared not fixed 7746 mmap shared fixed at somewhere currently unmapped 7747 mmap shared fixed at somewhere already mapped 7748 For private mappings, we should verify that changes cannot be read() 7749 back from the file, nor mmap's back from the file at a different 7750 address. (There have been systems where private was not correctly 7751 implemented like the infamous i386 svr4.0, and systems where the 7752 VM page cache was not coherent with the file system buffer cache 7753 like early versions of FreeBSD and possibly contemporary NetBSD.) 7754 For shared mappings, we should conversely verify that changes get 7755 propagated back to all the places they're supposed to be. 7756 7757 Grep wants private fixed already mapped. 7758 The main things grep needs to know about mmap are: 7759 * does it exist and is it safe to write into the mmap'd area 7760 * how to use it (BSD variants) */ 7761 7762#include <fcntl.h> 7763#include <sys/mman.h> 7764 7765#if !STDC_HEADERS && !HAVE_STDLIB_H 7766char *malloc (); 7767#endif 7768 7769/* This mess was copied from the GNU getpagesize.h. */ 7770#if !HAVE_GETPAGESIZE 7771/* Assume that all systems that can run configure have sys/param.h. */ 7772# if !HAVE_SYS_PARAM_H 7773# define HAVE_SYS_PARAM_H 1 7774# endif 7775 7776# ifdef _SC_PAGESIZE 7777# define getpagesize() sysconf(_SC_PAGESIZE) 7778# else /* no _SC_PAGESIZE */ 7779# if HAVE_SYS_PARAM_H 7780# include <sys/param.h> 7781# ifdef EXEC_PAGESIZE 7782# define getpagesize() EXEC_PAGESIZE 7783# else /* no EXEC_PAGESIZE */ 7784# ifdef NBPG 7785# define getpagesize() NBPG * CLSIZE 7786# ifndef CLSIZE 7787# define CLSIZE 1 7788# endif /* no CLSIZE */ 7789# else /* no NBPG */ 7790# ifdef NBPC 7791# define getpagesize() NBPC 7792# else /* no NBPC */ 7793# ifdef PAGESIZE 7794# define getpagesize() PAGESIZE 7795# endif /* PAGESIZE */ 7796# endif /* no NBPC */ 7797# endif /* no NBPG */ 7798# endif /* no EXEC_PAGESIZE */ 7799# else /* no HAVE_SYS_PARAM_H */ 7800# define getpagesize() 8192 /* punt totally */ 7801# endif /* no HAVE_SYS_PARAM_H */ 7802# endif /* no _SC_PAGESIZE */ 7803 7804#endif /* no HAVE_GETPAGESIZE */ 7805 7806int 7807main () 7808{ 7809 char *data, *data2, *data3; 7810 int i, pagesize; 7811 int fd; 7812 7813 pagesize = getpagesize (); 7814 7815 /* First, make a file with some known garbage in it. */ 7816 data = (char *) malloc (pagesize); 7817 if (!data) 7818 exit (1); 7819 for (i = 0; i < pagesize; ++i) 7820 *(data + i) = rand (); 7821 umask (0); 7822 fd = creat ("conftest.mmap", 0600); 7823 if (fd < 0) 7824 exit (1); 7825 if (write (fd, data, pagesize) != pagesize) 7826 exit (1); 7827 close (fd); 7828 7829 /* Next, try to mmap the file at a fixed address which already has 7830 something else allocated at it. If we can, also make sure that 7831 we see the same garbage. */ 7832 fd = open ("conftest.mmap", O_RDWR); 7833 if (fd < 0) 7834 exit (1); 7835 data2 = (char *) malloc (2 * pagesize); 7836 if (!data2) 7837 exit (1); 7838 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 7839 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7840 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7841 exit (1); 7842 for (i = 0; i < pagesize; ++i) 7843 if (*(data + i) != *(data2 + i)) 7844 exit (1); 7845 7846 /* Finally, make sure that changes to the mapped area do not 7847 percolate back to the file as seen by read(). (This is a bug on 7848 some variants of i386 svr4.0.) */ 7849 for (i = 0; i < pagesize; ++i) 7850 *(data2 + i) = *(data2 + i) + 1; 7851 data3 = (char *) malloc (pagesize); 7852 if (!data3) 7853 exit (1); 7854 if (read (fd, data3, pagesize) != pagesize) 7855 exit (1); 7856 for (i = 0; i < pagesize; ++i) 7857 if (*(data + i) != *(data3 + i)) 7858 exit (1); 7859 close (fd); 7860 exit (0); 7861} 7862_ACEOF 7863rm -f conftest$ac_exeext 7864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7865 (eval $ac_link) 2>&5 7866 ac_status=$? 7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7870 (eval $ac_try) 2>&5 7871 ac_status=$? 7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7873 (exit $ac_status); }; }; then 7874 ac_cv_func_mmap_fixed_mapped=yes 7875else 7876 echo "$as_me: program exited with status $ac_status" >&5 7877echo "$as_me: failed program was:" >&5 7878sed 's/^/| /' conftest.$ac_ext >&5 7879 7880( exit $ac_status ) 7881ac_cv_func_mmap_fixed_mapped=no 7882fi 7883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7884fi 7885fi 7886echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 7887echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 7888if test $ac_cv_func_mmap_fixed_mapped = yes; then 7889 7890cat >>confdefs.h <<\_ACEOF 7891#define HAVE_MMAP 1 7892_ACEOF 7893 7894fi 7895rm -f conftest.mmap 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 7908unistd.h values.h sys/param.h 7909do 7910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7911if eval "test \"\${$as_ac_Header+set}\" = set"; then 7912 echo "$as_me:$LINENO: checking for $ac_header" >&5 7913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7914if eval "test \"\${$as_ac_Header+set}\" = set"; then 7915 echo $ECHO_N "(cached) $ECHO_C" >&6 7916fi 7917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7919else 7920 # Is the header compilable? 7921echo "$as_me:$LINENO: checking $ac_header usability" >&5 7922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7923cat >conftest.$ac_ext <<_ACEOF 7924/* confdefs.h. */ 7925_ACEOF 7926cat confdefs.h >>conftest.$ac_ext 7927cat >>conftest.$ac_ext <<_ACEOF 7928/* end confdefs.h. */ 7929$ac_includes_default 7930#include <$ac_header> 7931_ACEOF 7932rm -f conftest.$ac_objext 7933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7934 (eval $ac_compile) 2>conftest.er1 7935 ac_status=$? 7936 grep -v '^ *+' conftest.er1 >conftest.err 7937 rm -f conftest.er1 7938 cat conftest.err >&5 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7940 (exit $ac_status); } && 7941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7943 (eval $ac_try) 2>&5 7944 ac_status=$? 7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7946 (exit $ac_status); }; } && 7947 { ac_try='test -s conftest.$ac_objext' 7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7949 (eval $ac_try) 2>&5 7950 ac_status=$? 7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7952 (exit $ac_status); }; }; then 7953 ac_header_compiler=yes 7954else 7955 echo "$as_me: failed program was:" >&5 7956sed 's/^/| /' conftest.$ac_ext >&5 7957 7958ac_header_compiler=no 7959fi 7960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7962echo "${ECHO_T}$ac_header_compiler" >&6 7963 7964# Is the header present? 7965echo "$as_me:$LINENO: checking $ac_header presence" >&5 7966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7967cat >conftest.$ac_ext <<_ACEOF 7968/* confdefs.h. */ 7969_ACEOF 7970cat confdefs.h >>conftest.$ac_ext 7971cat >>conftest.$ac_ext <<_ACEOF 7972/* end confdefs.h. */ 7973#include <$ac_header> 7974_ACEOF 7975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7977 ac_status=$? 7978 grep -v '^ *+' conftest.er1 >conftest.err 7979 rm -f conftest.er1 7980 cat conftest.err >&5 7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7982 (exit $ac_status); } >/dev/null; then 7983 if test -s conftest.err; then 7984 ac_cpp_err=$ac_c_preproc_warn_flag 7985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7986 else 7987 ac_cpp_err= 7988 fi 7989else 7990 ac_cpp_err=yes 7991fi 7992if test -z "$ac_cpp_err"; then 7993 ac_header_preproc=yes 7994else 7995 echo "$as_me: failed program was:" >&5 7996sed 's/^/| /' conftest.$ac_ext >&5 7997 7998 ac_header_preproc=no 7999fi 8000rm -f conftest.err conftest.$ac_ext 8001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8002echo "${ECHO_T}$ac_header_preproc" >&6 8003 8004# So? What about this header? 8005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8006 yes:no: ) 8007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8010echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8011 ac_header_preproc=yes 8012 ;; 8013 no:yes:* ) 8014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8019echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8021echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8025echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8026 ( 8027 cat <<\_ASBOX 8028## ------------------------------------------ ## 8029## Report this to the AC_PACKAGE_NAME lists. ## 8030## ------------------------------------------ ## 8031_ASBOX 8032 ) | 8033 sed "s/^/$as_me: WARNING: /" >&2 8034 ;; 8035esac 8036echo "$as_me:$LINENO: checking for $ac_header" >&5 8037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8038if eval "test \"\${$as_ac_Header+set}\" = set"; then 8039 echo $ECHO_N "(cached) $ECHO_C" >&6 8040else 8041 eval "$as_ac_Header=\$ac_header_preproc" 8042fi 8043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8045 8046fi 8047if test `eval echo '${'$as_ac_Header'}'` = yes; then 8048 cat >>confdefs.h <<_ACEOF 8049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8050_ACEOF 8051 8052fi 8053 8054done 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 8067__argz_count __argz_stringify __argz_next 8068do 8069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8070echo "$as_me:$LINENO: checking for $ac_func" >&5 8071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8072if eval "test \"\${$as_ac_var+set}\" = set"; then 8073 echo $ECHO_N "(cached) $ECHO_C" >&6 8074else 8075 cat >conftest.$ac_ext <<_ACEOF 8076/* confdefs.h. */ 8077_ACEOF 8078cat confdefs.h >>conftest.$ac_ext 8079cat >>conftest.$ac_ext <<_ACEOF 8080/* end confdefs.h. */ 8081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8082 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8083#define $ac_func innocuous_$ac_func 8084 8085/* System header to define __stub macros and hopefully few prototypes, 8086 which can conflict with char $ac_func (); below. 8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8088 <limits.h> exists even on freestanding compilers. */ 8089 8090#ifdef __STDC__ 8091# include <limits.h> 8092#else 8093# include <assert.h> 8094#endif 8095 8096#undef $ac_func 8097 8098/* Override any gcc2 internal prototype to avoid an error. */ 8099#ifdef __cplusplus 8100extern "C" 8101{ 8102#endif 8103/* We use char because int might match the return type of a gcc2 8104 builtin and then its argument prototype would still apply. */ 8105char $ac_func (); 8106/* The GNU C library defines this for functions which it implements 8107 to always fail with ENOSYS. Some functions are actually named 8108 something starting with __ and the normal name is an alias. */ 8109#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8110choke me 8111#else 8112char (*f) () = $ac_func; 8113#endif 8114#ifdef __cplusplus 8115} 8116#endif 8117 8118int 8119main () 8120{ 8121return f != $ac_func; 8122 ; 8123 return 0; 8124} 8125_ACEOF 8126rm -f conftest.$ac_objext conftest$ac_exeext 8127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8128 (eval $ac_link) 2>conftest.er1 8129 ac_status=$? 8130 grep -v '^ *+' conftest.er1 >conftest.err 8131 rm -f conftest.er1 8132 cat conftest.err >&5 8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8134 (exit $ac_status); } && 8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8137 (eval $ac_try) 2>&5 8138 ac_status=$? 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8140 (exit $ac_status); }; } && 8141 { ac_try='test -s conftest$ac_exeext' 8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8143 (eval $ac_try) 2>&5 8144 ac_status=$? 8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8146 (exit $ac_status); }; }; then 8147 eval "$as_ac_var=yes" 8148else 8149 echo "$as_me: failed program was:" >&5 8150sed 's/^/| /' conftest.$ac_ext >&5 8151 8152eval "$as_ac_var=no" 8153fi 8154rm -f conftest.err conftest.$ac_objext \ 8155 conftest$ac_exeext conftest.$ac_ext 8156fi 8157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8159if test `eval echo '${'$as_ac_var'}'` = yes; then 8160 cat >>confdefs.h <<_ACEOF 8161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8162_ACEOF 8163 8164fi 8165done 8166 8167 8168 if test "${ac_cv_func_stpcpy+set}" != "set"; then 8169 8170for ac_func in stpcpy 8171do 8172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8173echo "$as_me:$LINENO: checking for $ac_func" >&5 8174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8175if eval "test \"\${$as_ac_var+set}\" = set"; then 8176 echo $ECHO_N "(cached) $ECHO_C" >&6 8177else 8178 cat >conftest.$ac_ext <<_ACEOF 8179/* confdefs.h. */ 8180_ACEOF 8181cat confdefs.h >>conftest.$ac_ext 8182cat >>conftest.$ac_ext <<_ACEOF 8183/* end confdefs.h. */ 8184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8185 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8186#define $ac_func innocuous_$ac_func 8187 8188/* System header to define __stub macros and hopefully few prototypes, 8189 which can conflict with char $ac_func (); below. 8190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8191 <limits.h> exists even on freestanding compilers. */ 8192 8193#ifdef __STDC__ 8194# include <limits.h> 8195#else 8196# include <assert.h> 8197#endif 8198 8199#undef $ac_func 8200 8201/* Override any gcc2 internal prototype to avoid an error. */ 8202#ifdef __cplusplus 8203extern "C" 8204{ 8205#endif 8206/* We use char because int might match the return type of a gcc2 8207 builtin and then its argument prototype would still apply. */ 8208char $ac_func (); 8209/* The GNU C library defines this for functions which it implements 8210 to always fail with ENOSYS. Some functions are actually named 8211 something starting with __ and the normal name is an alias. */ 8212#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8213choke me 8214#else 8215char (*f) () = $ac_func; 8216#endif 8217#ifdef __cplusplus 8218} 8219#endif 8220 8221int 8222main () 8223{ 8224return f != $ac_func; 8225 ; 8226 return 0; 8227} 8228_ACEOF 8229rm -f conftest.$ac_objext conftest$ac_exeext 8230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8231 (eval $ac_link) 2>conftest.er1 8232 ac_status=$? 8233 grep -v '^ *+' conftest.er1 >conftest.err 8234 rm -f conftest.er1 8235 cat conftest.err >&5 8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8237 (exit $ac_status); } && 8238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8240 (eval $ac_try) 2>&5 8241 ac_status=$? 8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8243 (exit $ac_status); }; } && 8244 { ac_try='test -s conftest$ac_exeext' 8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8246 (eval $ac_try) 2>&5 8247 ac_status=$? 8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 (exit $ac_status); }; }; then 8250 eval "$as_ac_var=yes" 8251else 8252 echo "$as_me: failed program was:" >&5 8253sed 's/^/| /' conftest.$ac_ext >&5 8254 8255eval "$as_ac_var=no" 8256fi 8257rm -f conftest.err conftest.$ac_objext \ 8258 conftest$ac_exeext conftest.$ac_ext 8259fi 8260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8262if test `eval echo '${'$as_ac_var'}'` = yes; then 8263 cat >>confdefs.h <<_ACEOF 8264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8265_ACEOF 8266 8267fi 8268done 8269 8270 fi 8271 if test "${ac_cv_func_stpcpy}" = "yes"; then 8272 8273cat >>confdefs.h <<\_ACEOF 8274#define HAVE_STPCPY 1 8275_ACEOF 8276 8277 fi 8278 8279 if test $ac_cv_header_locale_h = yes; then 8280 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 8281echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 8282if test "${am_cv_val_LC_MESSAGES+set}" = set; then 8283 echo $ECHO_N "(cached) $ECHO_C" >&6 8284else 8285 cat >conftest.$ac_ext <<_ACEOF 8286/* confdefs.h. */ 8287_ACEOF 8288cat confdefs.h >>conftest.$ac_ext 8289cat >>conftest.$ac_ext <<_ACEOF 8290/* end confdefs.h. */ 8291#include <locale.h> 8292int 8293main () 8294{ 8295return LC_MESSAGES 8296 ; 8297 return 0; 8298} 8299_ACEOF 8300rm -f conftest.$ac_objext conftest$ac_exeext 8301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8302 (eval $ac_link) 2>conftest.er1 8303 ac_status=$? 8304 grep -v '^ *+' conftest.er1 >conftest.err 8305 rm -f conftest.er1 8306 cat conftest.err >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8308 (exit $ac_status); } && 8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8311 (eval $ac_try) 2>&5 8312 ac_status=$? 8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 (exit $ac_status); }; } && 8315 { ac_try='test -s conftest$ac_exeext' 8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8317 (eval $ac_try) 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); }; }; then 8321 am_cv_val_LC_MESSAGES=yes 8322else 8323 echo "$as_me: failed program was:" >&5 8324sed 's/^/| /' conftest.$ac_ext >&5 8325 8326am_cv_val_LC_MESSAGES=no 8327fi 8328rm -f conftest.err conftest.$ac_objext \ 8329 conftest$ac_exeext conftest.$ac_ext 8330fi 8331echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 8332echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 8333 if test $am_cv_val_LC_MESSAGES = yes; then 8334 8335cat >>confdefs.h <<\_ACEOF 8336#define HAVE_LC_MESSAGES 1 8337_ACEOF 8338 8339 fi 8340 fi 8341 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 8342echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 8343 # Check whether --enable-nls or --disable-nls was given. 8344if test "${enable_nls+set}" = set; then 8345 enableval="$enable_nls" 8346 USE_NLS=$enableval 8347else 8348 USE_NLS=yes 8349fi; 8350 echo "$as_me:$LINENO: result: $USE_NLS" >&5 8351echo "${ECHO_T}$USE_NLS" >&6 8352 8353 8354 USE_INCLUDED_LIBINTL=no 8355 8356 if test "$USE_NLS" = "yes"; then 8357 8358cat >>confdefs.h <<\_ACEOF 8359#define ENABLE_NLS 1 8360_ACEOF 8361 8362 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 8363echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 8364 8365# Check whether --with-included-gettext or --without-included-gettext was given. 8366if test "${with_included_gettext+set}" = set; then 8367 withval="$with_included_gettext" 8368 nls_cv_force_use_gnu_gettext=$withval 8369else 8370 nls_cv_force_use_gnu_gettext=no 8371fi; 8372 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 8373echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 8374 8375 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 8376 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 8377 nls_cv_header_intl= 8378 nls_cv_header_libgt= 8379 CATOBJEXT=NONE 8380 8381 if test "${ac_cv_header_libintl_h+set}" = set; then 8382 echo "$as_me:$LINENO: checking for libintl.h" >&5 8383echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 8384if test "${ac_cv_header_libintl_h+set}" = set; then 8385 echo $ECHO_N "(cached) $ECHO_C" >&6 8386fi 8387echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 8388echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 8389else 8390 # Is the header compilable? 8391echo "$as_me:$LINENO: checking libintl.h usability" >&5 8392echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 8393cat >conftest.$ac_ext <<_ACEOF 8394/* confdefs.h. */ 8395_ACEOF 8396cat confdefs.h >>conftest.$ac_ext 8397cat >>conftest.$ac_ext <<_ACEOF 8398/* end confdefs.h. */ 8399$ac_includes_default 8400#include <libintl.h> 8401_ACEOF 8402rm -f conftest.$ac_objext 8403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8404 (eval $ac_compile) 2>conftest.er1 8405 ac_status=$? 8406 grep -v '^ *+' conftest.er1 >conftest.err 8407 rm -f conftest.er1 8408 cat conftest.err >&5 8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8410 (exit $ac_status); } && 8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8413 (eval $ac_try) 2>&5 8414 ac_status=$? 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 (exit $ac_status); }; } && 8417 { ac_try='test -s conftest.$ac_objext' 8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8419 (eval $ac_try) 2>&5 8420 ac_status=$? 8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8422 (exit $ac_status); }; }; then 8423 ac_header_compiler=yes 8424else 8425 echo "$as_me: failed program was:" >&5 8426sed 's/^/| /' conftest.$ac_ext >&5 8427 8428ac_header_compiler=no 8429fi 8430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8432echo "${ECHO_T}$ac_header_compiler" >&6 8433 8434# Is the header present? 8435echo "$as_me:$LINENO: checking libintl.h presence" >&5 8436echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 8437cat >conftest.$ac_ext <<_ACEOF 8438/* confdefs.h. */ 8439_ACEOF 8440cat confdefs.h >>conftest.$ac_ext 8441cat >>conftest.$ac_ext <<_ACEOF 8442/* end confdefs.h. */ 8443#include <libintl.h> 8444_ACEOF 8445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8447 ac_status=$? 8448 grep -v '^ *+' conftest.er1 >conftest.err 8449 rm -f conftest.er1 8450 cat conftest.err >&5 8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8452 (exit $ac_status); } >/dev/null; then 8453 if test -s conftest.err; then 8454 ac_cpp_err=$ac_c_preproc_warn_flag 8455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8456 else 8457 ac_cpp_err= 8458 fi 8459else 8460 ac_cpp_err=yes 8461fi 8462if test -z "$ac_cpp_err"; then 8463 ac_header_preproc=yes 8464else 8465 echo "$as_me: failed program was:" >&5 8466sed 's/^/| /' conftest.$ac_ext >&5 8467 8468 ac_header_preproc=no 8469fi 8470rm -f conftest.err conftest.$ac_ext 8471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8472echo "${ECHO_T}$ac_header_preproc" >&6 8473 8474# So? What about this header? 8475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8476 yes:no: ) 8477 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 8478echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8479 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 8480echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 8481 ac_header_preproc=yes 8482 ;; 8483 no:yes:* ) 8484 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 8485echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 8486 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 8487echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 8488 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 8489echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 8490 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 8491echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 8492 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 8493echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 8494 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 8495echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 8496 ( 8497 cat <<\_ASBOX 8498## ------------------------------------------ ## 8499## Report this to the AC_PACKAGE_NAME lists. ## 8500## ------------------------------------------ ## 8501_ASBOX 8502 ) | 8503 sed "s/^/$as_me: WARNING: /" >&2 8504 ;; 8505esac 8506echo "$as_me:$LINENO: checking for libintl.h" >&5 8507echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 8508if test "${ac_cv_header_libintl_h+set}" = set; then 8509 echo $ECHO_N "(cached) $ECHO_C" >&6 8510else 8511 ac_cv_header_libintl_h=$ac_header_preproc 8512fi 8513echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 8514echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 8515 8516fi 8517if test $ac_cv_header_libintl_h = yes; then 8518 echo "$as_me:$LINENO: checking for gettext in libc" >&5 8519echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 8520if test "${gt_cv_func_gettext_libc+set}" = set; then 8521 echo $ECHO_N "(cached) $ECHO_C" >&6 8522else 8523 cat >conftest.$ac_ext <<_ACEOF 8524/* confdefs.h. */ 8525_ACEOF 8526cat confdefs.h >>conftest.$ac_ext 8527cat >>conftest.$ac_ext <<_ACEOF 8528/* end confdefs.h. */ 8529#include <libintl.h> 8530int 8531main () 8532{ 8533return (int) gettext ("") 8534 ; 8535 return 0; 8536} 8537_ACEOF 8538rm -f conftest.$ac_objext conftest$ac_exeext 8539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8540 (eval $ac_link) 2>conftest.er1 8541 ac_status=$? 8542 grep -v '^ *+' conftest.er1 >conftest.err 8543 rm -f conftest.er1 8544 cat conftest.err >&5 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8546 (exit $ac_status); } && 8547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8549 (eval $ac_try) 2>&5 8550 ac_status=$? 8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 (exit $ac_status); }; } && 8553 { ac_try='test -s conftest$ac_exeext' 8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8555 (eval $ac_try) 2>&5 8556 ac_status=$? 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8558 (exit $ac_status); }; }; then 8559 gt_cv_func_gettext_libc=yes 8560else 8561 echo "$as_me: failed program was:" >&5 8562sed 's/^/| /' conftest.$ac_ext >&5 8563 8564gt_cv_func_gettext_libc=no 8565fi 8566rm -f conftest.err conftest.$ac_objext \ 8567 conftest$ac_exeext conftest.$ac_ext 8568fi 8569echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 8570echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 8571 8572 if test "$gt_cv_func_gettext_libc" != "yes"; then 8573 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 8574echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 8575if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 8576 echo $ECHO_N "(cached) $ECHO_C" >&6 8577else 8578 ac_check_lib_save_LIBS=$LIBS 8579LIBS="-lintl $LIBS" 8580cat >conftest.$ac_ext <<_ACEOF 8581/* confdefs.h. */ 8582_ACEOF 8583cat confdefs.h >>conftest.$ac_ext 8584cat >>conftest.$ac_ext <<_ACEOF 8585/* end confdefs.h. */ 8586 8587/* Override any gcc2 internal prototype to avoid an error. */ 8588#ifdef __cplusplus 8589extern "C" 8590#endif 8591/* We use char because int might match the return type of a gcc2 8592 builtin and then its argument prototype would still apply. */ 8593char bindtextdomain (); 8594int 8595main () 8596{ 8597bindtextdomain (); 8598 ; 8599 return 0; 8600} 8601_ACEOF 8602rm -f conftest.$ac_objext conftest$ac_exeext 8603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8604 (eval $ac_link) 2>conftest.er1 8605 ac_status=$? 8606 grep -v '^ *+' conftest.er1 >conftest.err 8607 rm -f conftest.er1 8608 cat conftest.err >&5 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); } && 8611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8613 (eval $ac_try) 2>&5 8614 ac_status=$? 8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8616 (exit $ac_status); }; } && 8617 { ac_try='test -s conftest$ac_exeext' 8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8619 (eval $ac_try) 2>&5 8620 ac_status=$? 8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8622 (exit $ac_status); }; }; then 8623 ac_cv_lib_intl_bindtextdomain=yes 8624else 8625 echo "$as_me: failed program was:" >&5 8626sed 's/^/| /' conftest.$ac_ext >&5 8627 8628ac_cv_lib_intl_bindtextdomain=no 8629fi 8630rm -f conftest.err conftest.$ac_objext \ 8631 conftest$ac_exeext conftest.$ac_ext 8632LIBS=$ac_check_lib_save_LIBS 8633fi 8634echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 8635echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 8636if test $ac_cv_lib_intl_bindtextdomain = yes; then 8637 echo "$as_me:$LINENO: checking for gettext in libintl" >&5 8638echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 8639if test "${gt_cv_func_gettext_libintl+set}" = set; then 8640 echo $ECHO_N "(cached) $ECHO_C" >&6 8641else 8642 cat >conftest.$ac_ext <<_ACEOF 8643/* confdefs.h. */ 8644_ACEOF 8645cat confdefs.h >>conftest.$ac_ext 8646cat >>conftest.$ac_ext <<_ACEOF 8647/* end confdefs.h. */ 8648 8649int 8650main () 8651{ 8652return (int) gettext ("") 8653 ; 8654 return 0; 8655} 8656_ACEOF 8657rm -f conftest.$ac_objext conftest$ac_exeext 8658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8659 (eval $ac_link) 2>conftest.er1 8660 ac_status=$? 8661 grep -v '^ *+' conftest.er1 >conftest.err 8662 rm -f conftest.er1 8663 cat conftest.err >&5 8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8665 (exit $ac_status); } && 8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8668 (eval $ac_try) 2>&5 8669 ac_status=$? 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); }; } && 8672 { ac_try='test -s conftest$ac_exeext' 8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8674 (eval $ac_try) 2>&5 8675 ac_status=$? 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 (exit $ac_status); }; }; then 8678 gt_cv_func_gettext_libintl=yes 8679else 8680 echo "$as_me: failed program was:" >&5 8681sed 's/^/| /' conftest.$ac_ext >&5 8682 8683gt_cv_func_gettext_libintl=no 8684fi 8685rm -f conftest.err conftest.$ac_objext \ 8686 conftest$ac_exeext conftest.$ac_ext 8687fi 8688echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 8689echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 8690fi 8691 8692 fi 8693 8694 if test "$gt_cv_func_gettext_libc" = "yes" \ 8695 || test "$gt_cv_func_gettext_libintl" = "yes"; then 8696 8697cat >>confdefs.h <<\_ACEOF 8698#define HAVE_GETTEXT 1 8699_ACEOF 8700 8701 # Extract the first word of "msgfmt", so it can be a program name with args. 8702set dummy msgfmt; ac_word=$2 8703echo "$as_me:$LINENO: checking for $ac_word" >&5 8704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8705if test "${ac_cv_path_MSGFMT+set}" = set; then 8706 echo $ECHO_N "(cached) $ECHO_C" >&6 8707else 8708 case "$MSGFMT" in 8709 /*) 8710 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 8711 ;; 8712 *) 8713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8714 for ac_dir in $PATH; do 8715 test -z "$ac_dir" && ac_dir=. 8716 if test -f $ac_dir/$ac_word; then 8717 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 8718 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 8719 break 8720 fi 8721 fi 8722 done 8723 IFS="$ac_save_ifs" 8724 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 8725 ;; 8726esac 8727fi 8728MSGFMT="$ac_cv_path_MSGFMT" 8729if test -n "$MSGFMT"; then 8730 echo "$as_me:$LINENO: result: $MSGFMT" >&5 8731echo "${ECHO_T}$MSGFMT" >&6 8732else 8733 echo "$as_me:$LINENO: result: no" >&5 8734echo "${ECHO_T}no" >&6 8735fi 8736 if test "$MSGFMT" != "no"; then 8737 8738for ac_func in dcgettext 8739do 8740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8741echo "$as_me:$LINENO: checking for $ac_func" >&5 8742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8743if eval "test \"\${$as_ac_var+set}\" = set"; then 8744 echo $ECHO_N "(cached) $ECHO_C" >&6 8745else 8746 cat >conftest.$ac_ext <<_ACEOF 8747/* confdefs.h. */ 8748_ACEOF 8749cat confdefs.h >>conftest.$ac_ext 8750cat >>conftest.$ac_ext <<_ACEOF 8751/* end confdefs.h. */ 8752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8753 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8754#define $ac_func innocuous_$ac_func 8755 8756/* System header to define __stub macros and hopefully few prototypes, 8757 which can conflict with char $ac_func (); below. 8758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8759 <limits.h> exists even on freestanding compilers. */ 8760 8761#ifdef __STDC__ 8762# include <limits.h> 8763#else 8764# include <assert.h> 8765#endif 8766 8767#undef $ac_func 8768 8769/* Override any gcc2 internal prototype to avoid an error. */ 8770#ifdef __cplusplus 8771extern "C" 8772{ 8773#endif 8774/* We use char because int might match the return type of a gcc2 8775 builtin and then its argument prototype would still apply. */ 8776char $ac_func (); 8777/* The GNU C library defines this for functions which it implements 8778 to always fail with ENOSYS. Some functions are actually named 8779 something starting with __ and the normal name is an alias. */ 8780#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8781choke me 8782#else 8783char (*f) () = $ac_func; 8784#endif 8785#ifdef __cplusplus 8786} 8787#endif 8788 8789int 8790main () 8791{ 8792return f != $ac_func; 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797rm -f conftest.$ac_objext conftest$ac_exeext 8798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8799 (eval $ac_link) 2>conftest.er1 8800 ac_status=$? 8801 grep -v '^ *+' conftest.er1 >conftest.err 8802 rm -f conftest.er1 8803 cat conftest.err >&5 8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8805 (exit $ac_status); } && 8806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8808 (eval $ac_try) 2>&5 8809 ac_status=$? 8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8811 (exit $ac_status); }; } && 8812 { ac_try='test -s conftest$ac_exeext' 8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8814 (eval $ac_try) 2>&5 8815 ac_status=$? 8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8817 (exit $ac_status); }; }; then 8818 eval "$as_ac_var=yes" 8819else 8820 echo "$as_me: failed program was:" >&5 8821sed 's/^/| /' conftest.$ac_ext >&5 8822 8823eval "$as_ac_var=no" 8824fi 8825rm -f conftest.err conftest.$ac_objext \ 8826 conftest$ac_exeext conftest.$ac_ext 8827fi 8828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8830if test `eval echo '${'$as_ac_var'}'` = yes; then 8831 cat >>confdefs.h <<_ACEOF 8832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8833_ACEOF 8834 8835fi 8836done 8837 8838 # Extract the first word of "gmsgfmt", so it can be a program name with args. 8839set dummy gmsgfmt; ac_word=$2 8840echo "$as_me:$LINENO: checking for $ac_word" >&5 8841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8842if test "${ac_cv_path_GMSGFMT+set}" = set; then 8843 echo $ECHO_N "(cached) $ECHO_C" >&6 8844else 8845 case $GMSGFMT in 8846 [\\/]* | ?:[\\/]*) 8847 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 8848 ;; 8849 *) 8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8851for as_dir in $PATH 8852do 8853 IFS=$as_save_IFS 8854 test -z "$as_dir" && as_dir=. 8855 for ac_exec_ext in '' $ac_executable_extensions; do 8856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8857 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 8858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8859 break 2 8860 fi 8861done 8862done 8863 8864 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 8865 ;; 8866esac 8867fi 8868GMSGFMT=$ac_cv_path_GMSGFMT 8869 8870if test -n "$GMSGFMT"; then 8871 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 8872echo "${ECHO_T}$GMSGFMT" >&6 8873else 8874 echo "$as_me:$LINENO: result: no" >&5 8875echo "${ECHO_T}no" >&6 8876fi 8877 8878 # Extract the first word of "xgettext", so it can be a program name with args. 8879set dummy xgettext; ac_word=$2 8880echo "$as_me:$LINENO: checking for $ac_word" >&5 8881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8882if test "${ac_cv_path_XGETTEXT+set}" = set; then 8883 echo $ECHO_N "(cached) $ECHO_C" >&6 8884else 8885 case "$XGETTEXT" in 8886 /*) 8887 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 8888 ;; 8889 *) 8890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8891 for ac_dir in $PATH; do 8892 test -z "$ac_dir" && ac_dir=. 8893 if test -f $ac_dir/$ac_word; then 8894 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 8895 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 8896 break 8897 fi 8898 fi 8899 done 8900 IFS="$ac_save_ifs" 8901 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 8902 ;; 8903esac 8904fi 8905XGETTEXT="$ac_cv_path_XGETTEXT" 8906if test -n "$XGETTEXT"; then 8907 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 8908echo "${ECHO_T}$XGETTEXT" >&6 8909else 8910 echo "$as_me:$LINENO: result: no" >&5 8911echo "${ECHO_T}no" >&6 8912fi 8913 8914 cat >conftest.$ac_ext <<_ACEOF 8915/* confdefs.h. */ 8916_ACEOF 8917cat confdefs.h >>conftest.$ac_ext 8918cat >>conftest.$ac_ext <<_ACEOF 8919/* end confdefs.h. */ 8920 8921int 8922main () 8923{ 8924extern int _nl_msg_cat_cntr; 8925 return _nl_msg_cat_cntr 8926 ; 8927 return 0; 8928} 8929_ACEOF 8930rm -f conftest.$ac_objext conftest$ac_exeext 8931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8932 (eval $ac_link) 2>conftest.er1 8933 ac_status=$? 8934 grep -v '^ *+' conftest.er1 >conftest.err 8935 rm -f conftest.er1 8936 cat conftest.err >&5 8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8938 (exit $ac_status); } && 8939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8941 (eval $ac_try) 2>&5 8942 ac_status=$? 8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8944 (exit $ac_status); }; } && 8945 { ac_try='test -s conftest$ac_exeext' 8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8947 (eval $ac_try) 2>&5 8948 ac_status=$? 8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8950 (exit $ac_status); }; }; then 8951 CATOBJEXT=.gmo 8952 DATADIRNAME=share 8953else 8954 echo "$as_me: failed program was:" >&5 8955sed 's/^/| /' conftest.$ac_ext >&5 8956 8957CATOBJEXT=.mo 8958 DATADIRNAME=lib 8959fi 8960rm -f conftest.err conftest.$ac_objext \ 8961 conftest$ac_exeext conftest.$ac_ext 8962 INSTOBJEXT=.mo 8963 fi 8964 fi 8965 8966fi 8967 8968 8969 8970 8971 if test "$CATOBJEXT" = "NONE"; then 8972 nls_cv_use_gnu_gettext=yes 8973 fi 8974 fi 8975 8976 if test "$nls_cv_use_gnu_gettext" = "yes"; then 8977 INTLOBJS="\$(GETTOBJS)" 8978 # Extract the first word of "msgfmt", so it can be a program name with args. 8979set dummy msgfmt; ac_word=$2 8980echo "$as_me:$LINENO: checking for $ac_word" >&5 8981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8982if test "${ac_cv_path_MSGFMT+set}" = set; then 8983 echo $ECHO_N "(cached) $ECHO_C" >&6 8984else 8985 case "$MSGFMT" in 8986 /*) 8987 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 8988 ;; 8989 *) 8990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8991 for ac_dir in $PATH; do 8992 test -z "$ac_dir" && ac_dir=. 8993 if test -f $ac_dir/$ac_word; then 8994 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 8995 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 8996 break 8997 fi 8998 fi 8999 done 9000 IFS="$ac_save_ifs" 9001 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 9002 ;; 9003esac 9004fi 9005MSGFMT="$ac_cv_path_MSGFMT" 9006if test -n "$MSGFMT"; then 9007 echo "$as_me:$LINENO: result: $MSGFMT" >&5 9008echo "${ECHO_T}$MSGFMT" >&6 9009else 9010 echo "$as_me:$LINENO: result: no" >&5 9011echo "${ECHO_T}no" >&6 9012fi 9013 9014 # Extract the first word of "gmsgfmt", so it can be a program name with args. 9015set dummy gmsgfmt; ac_word=$2 9016echo "$as_me:$LINENO: checking for $ac_word" >&5 9017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9018if test "${ac_cv_path_GMSGFMT+set}" = set; then 9019 echo $ECHO_N "(cached) $ECHO_C" >&6 9020else 9021 case $GMSGFMT in 9022 [\\/]* | ?:[\\/]*) 9023 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 9024 ;; 9025 *) 9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9027for as_dir in $PATH 9028do 9029 IFS=$as_save_IFS 9030 test -z "$as_dir" && as_dir=. 9031 for ac_exec_ext in '' $ac_executable_extensions; do 9032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9033 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 9034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9035 break 2 9036 fi 9037done 9038done 9039 9040 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 9041 ;; 9042esac 9043fi 9044GMSGFMT=$ac_cv_path_GMSGFMT 9045 9046if test -n "$GMSGFMT"; then 9047 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 9048echo "${ECHO_T}$GMSGFMT" >&6 9049else 9050 echo "$as_me:$LINENO: result: no" >&5 9051echo "${ECHO_T}no" >&6 9052fi 9053 9054 # Extract the first word of "xgettext", so it can be a program name with args. 9055set dummy xgettext; ac_word=$2 9056echo "$as_me:$LINENO: checking for $ac_word" >&5 9057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9058if test "${ac_cv_path_XGETTEXT+set}" = set; then 9059 echo $ECHO_N "(cached) $ECHO_C" >&6 9060else 9061 case "$XGETTEXT" in 9062 /*) 9063 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 9064 ;; 9065 *) 9066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 9067 for ac_dir in $PATH; do 9068 test -z "$ac_dir" && ac_dir=. 9069 if test -f $ac_dir/$ac_word; then 9070 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 9071 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 9072 break 9073 fi 9074 fi 9075 done 9076 IFS="$ac_save_ifs" 9077 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 9078 ;; 9079esac 9080fi 9081XGETTEXT="$ac_cv_path_XGETTEXT" 9082if test -n "$XGETTEXT"; then 9083 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 9084echo "${ECHO_T}$XGETTEXT" >&6 9085else 9086 echo "$as_me:$LINENO: result: no" >&5 9087echo "${ECHO_T}no" >&6 9088fi 9089 9090 9091 USE_INCLUDED_LIBINTL=yes 9092 CATOBJEXT=.gmo 9093 INSTOBJEXT=.mo 9094 DATADIRNAME=share 9095 INTLDEPS='$(top_builddir)/../intl/libintl.a' 9096 INTLLIBS=$INTLDEPS 9097 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 9098 nls_cv_header_intl=libintl.h 9099 nls_cv_header_libgt=libgettext.h 9100 fi 9101 9102 if test "$XGETTEXT" != ":"; then 9103 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 9104 : ; 9105 else 9106 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 9107echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 9108 XGETTEXT=":" 9109 fi 9110 fi 9111 9112 # We need to process the po/ directory. 9113 POSUB=po 9114 else 9115 DATADIRNAME=share 9116 nls_cv_header_intl=libintl.h 9117 nls_cv_header_libgt=libgettext.h 9118 fi 9119 9120 # If this is used in GNU gettext we have to set USE_NLS to `yes' 9121 # because some of the sources are only built for this goal. 9122 if test "$PACKAGE" = gettext; then 9123 USE_NLS=yes 9124 USE_INCLUDED_LIBINTL=yes 9125 fi 9126 9127 for lang in $ALL_LINGUAS; do 9128 GMOFILES="$GMOFILES $lang.gmo" 9129 POFILES="$POFILES $lang.po" 9130 done 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 if test "x$CATOBJEXT" != "x"; then 9146 if test "x$ALL_LINGUAS" = "x"; then 9147 LINGUAS= 9148 else 9149 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 9150echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 9151 NEW_LINGUAS= 9152 for lang in ${LINGUAS=$ALL_LINGUAS}; do 9153 case "$ALL_LINGUAS" in 9154 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 9155 esac 9156 done 9157 LINGUAS=$NEW_LINGUAS 9158 echo "$as_me:$LINENO: result: $LINGUAS" >&5 9159echo "${ECHO_T}$LINGUAS" >&6 9160 fi 9161 9162 if test -n "$LINGUAS"; then 9163 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 9164 fi 9165 fi 9166 9167 if test $ac_cv_header_locale_h = yes; then 9168 INCLUDE_LOCALE_H="#include <locale.h>" 9169 else 9170 INCLUDE_LOCALE_H="\ 9171/* The system does not provide the header <locale.h>. Take care yourself. */" 9172 fi 9173 9174 9175 if test -f $srcdir/po2tbl.sed.in; then 9176 if test "$CATOBJEXT" = ".cat"; then 9177 if test "${ac_cv_header_linux_version_h+set}" = set; then 9178 echo "$as_me:$LINENO: checking for linux/version.h" >&5 9179echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 9180if test "${ac_cv_header_linux_version_h+set}" = set; then 9181 echo $ECHO_N "(cached) $ECHO_C" >&6 9182fi 9183echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 9184echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 9185else 9186 # Is the header compilable? 9187echo "$as_me:$LINENO: checking linux/version.h usability" >&5 9188echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 9189cat >conftest.$ac_ext <<_ACEOF 9190/* confdefs.h. */ 9191_ACEOF 9192cat confdefs.h >>conftest.$ac_ext 9193cat >>conftest.$ac_ext <<_ACEOF 9194/* end confdefs.h. */ 9195$ac_includes_default 9196#include <linux/version.h> 9197_ACEOF 9198rm -f conftest.$ac_objext 9199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9200 (eval $ac_compile) 2>conftest.er1 9201 ac_status=$? 9202 grep -v '^ *+' conftest.er1 >conftest.err 9203 rm -f conftest.er1 9204 cat conftest.err >&5 9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); } && 9207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9209 (eval $ac_try) 2>&5 9210 ac_status=$? 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 (exit $ac_status); }; } && 9213 { ac_try='test -s conftest.$ac_objext' 9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9215 (eval $ac_try) 2>&5 9216 ac_status=$? 9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 (exit $ac_status); }; }; then 9219 ac_header_compiler=yes 9220else 9221 echo "$as_me: failed program was:" >&5 9222sed 's/^/| /' conftest.$ac_ext >&5 9223 9224ac_header_compiler=no 9225fi 9226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9228echo "${ECHO_T}$ac_header_compiler" >&6 9229 9230# Is the header present? 9231echo "$as_me:$LINENO: checking linux/version.h presence" >&5 9232echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 9233cat >conftest.$ac_ext <<_ACEOF 9234/* confdefs.h. */ 9235_ACEOF 9236cat confdefs.h >>conftest.$ac_ext 9237cat >>conftest.$ac_ext <<_ACEOF 9238/* end confdefs.h. */ 9239#include <linux/version.h> 9240_ACEOF 9241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9243 ac_status=$? 9244 grep -v '^ *+' conftest.er1 >conftest.err 9245 rm -f conftest.er1 9246 cat conftest.err >&5 9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9248 (exit $ac_status); } >/dev/null; then 9249 if test -s conftest.err; then 9250 ac_cpp_err=$ac_c_preproc_warn_flag 9251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9252 else 9253 ac_cpp_err= 9254 fi 9255else 9256 ac_cpp_err=yes 9257fi 9258if test -z "$ac_cpp_err"; then 9259 ac_header_preproc=yes 9260else 9261 echo "$as_me: failed program was:" >&5 9262sed 's/^/| /' conftest.$ac_ext >&5 9263 9264 ac_header_preproc=no 9265fi 9266rm -f conftest.err conftest.$ac_ext 9267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9268echo "${ECHO_T}$ac_header_preproc" >&6 9269 9270# So? What about this header? 9271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9272 yes:no: ) 9273 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 9274echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9275 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 9276echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} 9277 ac_header_preproc=yes 9278 ;; 9279 no:yes:* ) 9280 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 9281echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} 9282 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 9283echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} 9284 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 9285echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} 9286 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 9287echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} 9288 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 9289echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} 9290 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 9291echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} 9292 ( 9293 cat <<\_ASBOX 9294## ------------------------------------------ ## 9295## Report this to the AC_PACKAGE_NAME lists. ## 9296## ------------------------------------------ ## 9297_ASBOX 9298 ) | 9299 sed "s/^/$as_me: WARNING: /" >&2 9300 ;; 9301esac 9302echo "$as_me:$LINENO: checking for linux/version.h" >&5 9303echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 9304if test "${ac_cv_header_linux_version_h+set}" = set; then 9305 echo $ECHO_N "(cached) $ECHO_C" >&6 9306else 9307 ac_cv_header_linux_version_h=$ac_header_preproc 9308fi 9309echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 9310echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 9311 9312fi 9313if test $ac_cv_header_linux_version_h = yes; then 9314 msgformat=linux 9315else 9316 msgformat=xopen 9317fi 9318 9319 9320 9321 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 9322 fi 9323 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 9324 $srcdir/po2tbl.sed.in > po2tbl.sed 9325 fi 9326 9327 if test "$PACKAGE" = "gettext"; then 9328 GT_NO="#NO#" 9329 GT_YES= 9330 else 9331 GT_NO= 9332 GT_YES="#YES#" 9333 fi 9334 9335 9336 9337 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 9338 9339 9340 l= 9341 9342 9343 if test -f $srcdir/po/POTFILES.in; then 9344 test -d po || mkdir po 9345 if test "x$srcdir" != "x."; then 9346 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 9347 posrcprefix="$srcdir/" 9348 else 9349 posrcprefix="../$srcdir/" 9350 fi 9351 else 9352 posrcprefix="../" 9353 fi 9354 rm -f po/POTFILES 9355 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 9356 < $srcdir/po/POTFILES.in > po/POTFILES 9357 fi 9358 9359 9360echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 9361echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 9362 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 9363if test "${enable_maintainer_mode+set}" = set; then 9364 enableval="$enable_maintainer_mode" 9365 USE_MAINTAINER_MODE=$enableval 9366else 9367 USE_MAINTAINER_MODE=no 9368fi; 9369 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 9370echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 9371 9372 9373if test $USE_MAINTAINER_MODE = yes; then 9374 MAINTAINER_MODE_TRUE= 9375 MAINTAINER_MODE_FALSE='#' 9376else 9377 MAINTAINER_MODE_TRUE='#' 9378 MAINTAINER_MODE_FALSE= 9379fi 9380 9381 MAINT=$MAINTAINER_MODE_TRUE 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h 9396do 9397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9398if eval "test \"\${$as_ac_Header+set}\" = set"; then 9399 echo "$as_me:$LINENO: checking for $ac_header" >&5 9400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9401if eval "test \"\${$as_ac_Header+set}\" = set"; then 9402 echo $ECHO_N "(cached) $ECHO_C" >&6 9403fi 9404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9406else 9407 # Is the header compilable? 9408echo "$as_me:$LINENO: checking $ac_header usability" >&5 9409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9410cat >conftest.$ac_ext <<_ACEOF 9411/* confdefs.h. */ 9412_ACEOF 9413cat confdefs.h >>conftest.$ac_ext 9414cat >>conftest.$ac_ext <<_ACEOF 9415/* end confdefs.h. */ 9416$ac_includes_default 9417#include <$ac_header> 9418_ACEOF 9419rm -f conftest.$ac_objext 9420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9421 (eval $ac_compile) 2>conftest.er1 9422 ac_status=$? 9423 grep -v '^ *+' conftest.er1 >conftest.err 9424 rm -f conftest.er1 9425 cat conftest.err >&5 9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9427 (exit $ac_status); } && 9428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9430 (eval $ac_try) 2>&5 9431 ac_status=$? 9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 (exit $ac_status); }; } && 9434 { ac_try='test -s conftest.$ac_objext' 9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9436 (eval $ac_try) 2>&5 9437 ac_status=$? 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 (exit $ac_status); }; }; then 9440 ac_header_compiler=yes 9441else 9442 echo "$as_me: failed program was:" >&5 9443sed 's/^/| /' conftest.$ac_ext >&5 9444 9445ac_header_compiler=no 9446fi 9447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9449echo "${ECHO_T}$ac_header_compiler" >&6 9450 9451# Is the header present? 9452echo "$as_me:$LINENO: checking $ac_header presence" >&5 9453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9454cat >conftest.$ac_ext <<_ACEOF 9455/* confdefs.h. */ 9456_ACEOF 9457cat confdefs.h >>conftest.$ac_ext 9458cat >>conftest.$ac_ext <<_ACEOF 9459/* end confdefs.h. */ 9460#include <$ac_header> 9461_ACEOF 9462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9464 ac_status=$? 9465 grep -v '^ *+' conftest.er1 >conftest.err 9466 rm -f conftest.er1 9467 cat conftest.err >&5 9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9469 (exit $ac_status); } >/dev/null; then 9470 if test -s conftest.err; then 9471 ac_cpp_err=$ac_c_preproc_warn_flag 9472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9473 else 9474 ac_cpp_err= 9475 fi 9476else 9477 ac_cpp_err=yes 9478fi 9479if test -z "$ac_cpp_err"; then 9480 ac_header_preproc=yes 9481else 9482 echo "$as_me: failed program was:" >&5 9483sed 's/^/| /' conftest.$ac_ext >&5 9484 9485 ac_header_preproc=no 9486fi 9487rm -f conftest.err conftest.$ac_ext 9488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9489echo "${ECHO_T}$ac_header_preproc" >&6 9490 9491# So? What about this header? 9492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9493 yes:no: ) 9494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9498 ac_header_preproc=yes 9499 ;; 9500 no:yes:* ) 9501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9513 ( 9514 cat <<\_ASBOX 9515## ------------------------------------------ ## 9516## Report this to the AC_PACKAGE_NAME lists. ## 9517## ------------------------------------------ ## 9518_ASBOX 9519 ) | 9520 sed "s/^/$as_me: WARNING: /" >&2 9521 ;; 9522esac 9523echo "$as_me:$LINENO: checking for $ac_header" >&5 9524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9525if eval "test \"\${$as_ac_Header+set}\" = set"; then 9526 echo $ECHO_N "(cached) $ECHO_C" >&6 9527else 9528 eval "$as_ac_Header=\$ac_header_preproc" 9529fi 9530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9532 9533fi 9534if test `eval echo '${'$as_ac_Header'}'` = yes; then 9535 cat >>confdefs.h <<_ACEOF 9536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9537_ACEOF 9538 9539fi 9540 9541done 9542 9543 9544# Put this here so that autoconf's "cross-compiling" message doesn't confuse 9545# people who are not cross-compiling but are compiling cross-assemblers. 9546echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5 9547echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6 9548if test "${host}" = "${target}"; then 9549 cross_gas=no 9550else 9551 cross_gas=yes 9552 9553cat >>confdefs.h <<\_ACEOF 9554#define CROSS_COMPILE 1 9555_ACEOF 9556 9557fi 9558echo "$as_me:$LINENO: result: $cross_gas" >&5 9559echo "${ECHO_T}$cross_gas" >&6 9560 9561# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9562# for constant arguments. Useless! 9563echo "$as_me:$LINENO: checking for working alloca.h" >&5 9564echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 9565if test "${ac_cv_working_alloca_h+set}" = set; then 9566 echo $ECHO_N "(cached) $ECHO_C" >&6 9567else 9568 cat >conftest.$ac_ext <<_ACEOF 9569/* confdefs.h. */ 9570_ACEOF 9571cat confdefs.h >>conftest.$ac_ext 9572cat >>conftest.$ac_ext <<_ACEOF 9573/* end confdefs.h. */ 9574#include <alloca.h> 9575int 9576main () 9577{ 9578char *p = (char *) alloca (2 * sizeof (int)); 9579 ; 9580 return 0; 9581} 9582_ACEOF 9583rm -f conftest.$ac_objext conftest$ac_exeext 9584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9585 (eval $ac_link) 2>conftest.er1 9586 ac_status=$? 9587 grep -v '^ *+' conftest.er1 >conftest.err 9588 rm -f conftest.er1 9589 cat conftest.err >&5 9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591 (exit $ac_status); } && 9592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9594 (eval $ac_try) 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; } && 9598 { ac_try='test -s conftest$ac_exeext' 9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9600 (eval $ac_try) 2>&5 9601 ac_status=$? 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9603 (exit $ac_status); }; }; then 9604 ac_cv_working_alloca_h=yes 9605else 9606 echo "$as_me: failed program was:" >&5 9607sed 's/^/| /' conftest.$ac_ext >&5 9608 9609ac_cv_working_alloca_h=no 9610fi 9611rm -f conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext conftest.$ac_ext 9613fi 9614echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 9615echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 9616if test $ac_cv_working_alloca_h = yes; then 9617 9618cat >>confdefs.h <<\_ACEOF 9619#define HAVE_ALLOCA_H 1 9620_ACEOF 9621 9622fi 9623 9624echo "$as_me:$LINENO: checking for alloca" >&5 9625echo $ECHO_N "checking for alloca... $ECHO_C" >&6 9626if test "${ac_cv_func_alloca_works+set}" = set; then 9627 echo $ECHO_N "(cached) $ECHO_C" >&6 9628else 9629 cat >conftest.$ac_ext <<_ACEOF 9630/* confdefs.h. */ 9631_ACEOF 9632cat confdefs.h >>conftest.$ac_ext 9633cat >>conftest.$ac_ext <<_ACEOF 9634/* end confdefs.h. */ 9635#ifdef __GNUC__ 9636# define alloca __builtin_alloca 9637#else 9638# ifdef _MSC_VER 9639# include <malloc.h> 9640# define alloca _alloca 9641# else 9642# if HAVE_ALLOCA_H 9643# include <alloca.h> 9644# else 9645# ifdef _AIX 9646 #pragma alloca 9647# else 9648# ifndef alloca /* predefined by HP cc +Olibcalls */ 9649char *alloca (); 9650# endif 9651# endif 9652# endif 9653# endif 9654#endif 9655 9656int 9657main () 9658{ 9659char *p = (char *) alloca (1); 9660 ; 9661 return 0; 9662} 9663_ACEOF 9664rm -f conftest.$ac_objext conftest$ac_exeext 9665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9666 (eval $ac_link) 2>conftest.er1 9667 ac_status=$? 9668 grep -v '^ *+' conftest.er1 >conftest.err 9669 rm -f conftest.er1 9670 cat conftest.err >&5 9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9672 (exit $ac_status); } && 9673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9675 (eval $ac_try) 2>&5 9676 ac_status=$? 9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9678 (exit $ac_status); }; } && 9679 { ac_try='test -s conftest$ac_exeext' 9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9681 (eval $ac_try) 2>&5 9682 ac_status=$? 9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9684 (exit $ac_status); }; }; then 9685 ac_cv_func_alloca_works=yes 9686else 9687 echo "$as_me: failed program was:" >&5 9688sed 's/^/| /' conftest.$ac_ext >&5 9689 9690ac_cv_func_alloca_works=no 9691fi 9692rm -f conftest.err conftest.$ac_objext \ 9693 conftest$ac_exeext conftest.$ac_ext 9694fi 9695echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 9696echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 9697 9698if test $ac_cv_func_alloca_works = yes; then 9699 9700cat >>confdefs.h <<\_ACEOF 9701#define HAVE_ALLOCA 1 9702_ACEOF 9703 9704else 9705 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9706# that cause trouble. Some versions do not even contain alloca or 9707# contain a buggy version. If you still want to use their alloca, 9708# use ar to extract alloca.o from them instead of compiling alloca.c. 9709 9710ALLOCA=alloca.$ac_objext 9711 9712cat >>confdefs.h <<\_ACEOF 9713#define C_ALLOCA 1 9714_ACEOF 9715 9716 9717echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 9718echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 9719if test "${ac_cv_os_cray+set}" = set; then 9720 echo $ECHO_N "(cached) $ECHO_C" >&6 9721else 9722 cat >conftest.$ac_ext <<_ACEOF 9723/* confdefs.h. */ 9724_ACEOF 9725cat confdefs.h >>conftest.$ac_ext 9726cat >>conftest.$ac_ext <<_ACEOF 9727/* end confdefs.h. */ 9728#if defined(CRAY) && ! defined(CRAY2) 9729webecray 9730#else 9731wenotbecray 9732#endif 9733 9734_ACEOF 9735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9736 $EGREP "webecray" >/dev/null 2>&1; then 9737 ac_cv_os_cray=yes 9738else 9739 ac_cv_os_cray=no 9740fi 9741rm -f conftest* 9742 9743fi 9744echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 9745echo "${ECHO_T}$ac_cv_os_cray" >&6 9746if test $ac_cv_os_cray = yes; then 9747 for ac_func in _getb67 GETB67 getb67; do 9748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9749echo "$as_me:$LINENO: checking for $ac_func" >&5 9750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9751if eval "test \"\${$as_ac_var+set}\" = set"; then 9752 echo $ECHO_N "(cached) $ECHO_C" >&6 9753else 9754 cat >conftest.$ac_ext <<_ACEOF 9755/* confdefs.h. */ 9756_ACEOF 9757cat confdefs.h >>conftest.$ac_ext 9758cat >>conftest.$ac_ext <<_ACEOF 9759/* end confdefs.h. */ 9760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9761 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9762#define $ac_func innocuous_$ac_func 9763 9764/* System header to define __stub macros and hopefully few prototypes, 9765 which can conflict with char $ac_func (); below. 9766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9767 <limits.h> exists even on freestanding compilers. */ 9768 9769#ifdef __STDC__ 9770# include <limits.h> 9771#else 9772# include <assert.h> 9773#endif 9774 9775#undef $ac_func 9776 9777/* Override any gcc2 internal prototype to avoid an error. */ 9778#ifdef __cplusplus 9779extern "C" 9780{ 9781#endif 9782/* We use char because int might match the return type of a gcc2 9783 builtin and then its argument prototype would still apply. */ 9784char $ac_func (); 9785/* The GNU C library defines this for functions which it implements 9786 to always fail with ENOSYS. Some functions are actually named 9787 something starting with __ and the normal name is an alias. */ 9788#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9789choke me 9790#else 9791char (*f) () = $ac_func; 9792#endif 9793#ifdef __cplusplus 9794} 9795#endif 9796 9797int 9798main () 9799{ 9800return f != $ac_func; 9801 ; 9802 return 0; 9803} 9804_ACEOF 9805rm -f conftest.$ac_objext conftest$ac_exeext 9806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9807 (eval $ac_link) 2>conftest.er1 9808 ac_status=$? 9809 grep -v '^ *+' conftest.er1 >conftest.err 9810 rm -f conftest.er1 9811 cat conftest.err >&5 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); } && 9814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9816 (eval $ac_try) 2>&5 9817 ac_status=$? 9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9819 (exit $ac_status); }; } && 9820 { ac_try='test -s conftest$ac_exeext' 9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9822 (eval $ac_try) 2>&5 9823 ac_status=$? 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 (exit $ac_status); }; }; then 9826 eval "$as_ac_var=yes" 9827else 9828 echo "$as_me: failed program was:" >&5 9829sed 's/^/| /' conftest.$ac_ext >&5 9830 9831eval "$as_ac_var=no" 9832fi 9833rm -f conftest.err conftest.$ac_objext \ 9834 conftest$ac_exeext conftest.$ac_ext 9835fi 9836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9838if test `eval echo '${'$as_ac_var'}'` = yes; then 9839 9840cat >>confdefs.h <<_ACEOF 9841#define CRAY_STACKSEG_END $ac_func 9842_ACEOF 9843 9844 break 9845fi 9846 9847 done 9848fi 9849 9850echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 9851echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 9852if test "${ac_cv_c_stack_direction+set}" = set; then 9853 echo $ECHO_N "(cached) $ECHO_C" >&6 9854else 9855 if test "$cross_compiling" = yes; then 9856 ac_cv_c_stack_direction=0 9857else 9858 cat >conftest.$ac_ext <<_ACEOF 9859/* confdefs.h. */ 9860_ACEOF 9861cat confdefs.h >>conftest.$ac_ext 9862cat >>conftest.$ac_ext <<_ACEOF 9863/* end confdefs.h. */ 9864int 9865find_stack_direction () 9866{ 9867 static char *addr = 0; 9868 auto char dummy; 9869 if (addr == 0) 9870 { 9871 addr = &dummy; 9872 return find_stack_direction (); 9873 } 9874 else 9875 return (&dummy > addr) ? 1 : -1; 9876} 9877 9878int 9879main () 9880{ 9881 exit (find_stack_direction () < 0); 9882} 9883_ACEOF 9884rm -f conftest$ac_exeext 9885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9886 (eval $ac_link) 2>&5 9887 ac_status=$? 9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9891 (eval $ac_try) 2>&5 9892 ac_status=$? 9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9894 (exit $ac_status); }; }; then 9895 ac_cv_c_stack_direction=1 9896else 9897 echo "$as_me: program exited with status $ac_status" >&5 9898echo "$as_me: failed program was:" >&5 9899sed 's/^/| /' conftest.$ac_ext >&5 9900 9901( exit $ac_status ) 9902ac_cv_c_stack_direction=-1 9903fi 9904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9905fi 9906fi 9907echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 9908echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 9909 9910cat >>confdefs.h <<_ACEOF 9911#define STACK_DIRECTION $ac_cv_c_stack_direction 9912_ACEOF 9913 9914 9915fi 9916 9917echo "$as_me:$LINENO: checking for inline" >&5 9918echo $ECHO_N "checking for inline... $ECHO_C" >&6 9919if test "${ac_cv_c_inline+set}" = set; then 9920 echo $ECHO_N "(cached) $ECHO_C" >&6 9921else 9922 ac_cv_c_inline=no 9923for ac_kw in inline __inline__ __inline; do 9924 cat >conftest.$ac_ext <<_ACEOF 9925/* confdefs.h. */ 9926_ACEOF 9927cat confdefs.h >>conftest.$ac_ext 9928cat >>conftest.$ac_ext <<_ACEOF 9929/* end confdefs.h. */ 9930#ifndef __cplusplus 9931typedef int foo_t; 9932static $ac_kw foo_t static_foo () {return 0; } 9933$ac_kw foo_t foo () {return 0; } 9934#endif 9935 9936_ACEOF 9937rm -f conftest.$ac_objext 9938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9939 (eval $ac_compile) 2>conftest.er1 9940 ac_status=$? 9941 grep -v '^ *+' conftest.er1 >conftest.err 9942 rm -f conftest.er1 9943 cat conftest.err >&5 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); } && 9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9948 (eval $ac_try) 2>&5 9949 ac_status=$? 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); }; } && 9952 { ac_try='test -s conftest.$ac_objext' 9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9954 (eval $ac_try) 2>&5 9955 ac_status=$? 9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9957 (exit $ac_status); }; }; then 9958 ac_cv_c_inline=$ac_kw; break 9959else 9960 echo "$as_me: failed program was:" >&5 9961sed 's/^/| /' conftest.$ac_ext >&5 9962 9963fi 9964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9965done 9966 9967fi 9968echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 9969echo "${ECHO_T}$ac_cv_c_inline" >&6 9970 9971 9972case $ac_cv_c_inline in 9973 inline | yes) ;; 9974 *) 9975 case $ac_cv_c_inline in 9976 no) ac_val=;; 9977 *) ac_val=$ac_cv_c_inline;; 9978 esac 9979 cat >>confdefs.h <<_ACEOF 9980#ifndef __cplusplus 9981#define inline $ac_val 9982#endif 9983_ACEOF 9984 ;; 9985esac 9986 9987 9988# VMS doesn't have unlink. 9989 9990 9991for ac_func in unlink remove 9992do 9993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9994echo "$as_me:$LINENO: checking for $ac_func" >&5 9995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9996if eval "test \"\${$as_ac_var+set}\" = set"; then 9997 echo $ECHO_N "(cached) $ECHO_C" >&6 9998else 9999 cat >conftest.$ac_ext <<_ACEOF 10000/* confdefs.h. */ 10001_ACEOF 10002cat confdefs.h >>conftest.$ac_ext 10003cat >>conftest.$ac_ext <<_ACEOF 10004/* end confdefs.h. */ 10005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10006 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10007#define $ac_func innocuous_$ac_func 10008 10009/* System header to define __stub macros and hopefully few prototypes, 10010 which can conflict with char $ac_func (); below. 10011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10012 <limits.h> exists even on freestanding compilers. */ 10013 10014#ifdef __STDC__ 10015# include <limits.h> 10016#else 10017# include <assert.h> 10018#endif 10019 10020#undef $ac_func 10021 10022/* Override any gcc2 internal prototype to avoid an error. */ 10023#ifdef __cplusplus 10024extern "C" 10025{ 10026#endif 10027/* We use char because int might match the return type of a gcc2 10028 builtin and then its argument prototype would still apply. */ 10029char $ac_func (); 10030/* The GNU C library defines this for functions which it implements 10031 to always fail with ENOSYS. Some functions are actually named 10032 something starting with __ and the normal name is an alias. */ 10033#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10034choke me 10035#else 10036char (*f) () = $ac_func; 10037#endif 10038#ifdef __cplusplus 10039} 10040#endif 10041 10042int 10043main () 10044{ 10045return f != $ac_func; 10046 ; 10047 return 0; 10048} 10049_ACEOF 10050rm -f conftest.$ac_objext conftest$ac_exeext 10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10052 (eval $ac_link) 2>conftest.er1 10053 ac_status=$? 10054 grep -v '^ *+' conftest.er1 >conftest.err 10055 rm -f conftest.er1 10056 cat conftest.err >&5 10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10058 (exit $ac_status); } && 10059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10061 (eval $ac_try) 2>&5 10062 ac_status=$? 10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10064 (exit $ac_status); }; } && 10065 { ac_try='test -s conftest$ac_exeext' 10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10067 (eval $ac_try) 2>&5 10068 ac_status=$? 10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10070 (exit $ac_status); }; }; then 10071 eval "$as_ac_var=yes" 10072else 10073 echo "$as_me: failed program was:" >&5 10074sed 's/^/| /' conftest.$ac_ext >&5 10075 10076eval "$as_ac_var=no" 10077fi 10078rm -f conftest.err conftest.$ac_objext \ 10079 conftest$ac_exeext conftest.$ac_ext 10080fi 10081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10083if test `eval echo '${'$as_ac_var'}'` = yes; then 10084 cat >>confdefs.h <<_ACEOF 10085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10086_ACEOF 10087 break 10088fi 10089done 10090 10091 10092# Some systems don't have sbrk(). 10093 10094for ac_func in sbrk 10095do 10096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10097echo "$as_me:$LINENO: checking for $ac_func" >&5 10098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10099if eval "test \"\${$as_ac_var+set}\" = set"; then 10100 echo $ECHO_N "(cached) $ECHO_C" >&6 10101else 10102 cat >conftest.$ac_ext <<_ACEOF 10103/* confdefs.h. */ 10104_ACEOF 10105cat confdefs.h >>conftest.$ac_ext 10106cat >>conftest.$ac_ext <<_ACEOF 10107/* end confdefs.h. */ 10108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10109 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10110#define $ac_func innocuous_$ac_func 10111 10112/* System header to define __stub macros and hopefully few prototypes, 10113 which can conflict with char $ac_func (); below. 10114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10115 <limits.h> exists even on freestanding compilers. */ 10116 10117#ifdef __STDC__ 10118# include <limits.h> 10119#else 10120# include <assert.h> 10121#endif 10122 10123#undef $ac_func 10124 10125/* Override any gcc2 internal prototype to avoid an error. */ 10126#ifdef __cplusplus 10127extern "C" 10128{ 10129#endif 10130/* We use char because int might match the return type of a gcc2 10131 builtin and then its argument prototype would still apply. */ 10132char $ac_func (); 10133/* The GNU C library defines this for functions which it implements 10134 to always fail with ENOSYS. Some functions are actually named 10135 something starting with __ and the normal name is an alias. */ 10136#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10137choke me 10138#else 10139char (*f) () = $ac_func; 10140#endif 10141#ifdef __cplusplus 10142} 10143#endif 10144 10145int 10146main () 10147{ 10148return f != $ac_func; 10149 ; 10150 return 0; 10151} 10152_ACEOF 10153rm -f conftest.$ac_objext conftest$ac_exeext 10154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10155 (eval $ac_link) 2>conftest.er1 10156 ac_status=$? 10157 grep -v '^ *+' conftest.er1 >conftest.err 10158 rm -f conftest.er1 10159 cat conftest.err >&5 10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10161 (exit $ac_status); } && 10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10164 (eval $ac_try) 2>&5 10165 ac_status=$? 10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10167 (exit $ac_status); }; } && 10168 { ac_try='test -s conftest$ac_exeext' 10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10170 (eval $ac_try) 2>&5 10171 ac_status=$? 10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10173 (exit $ac_status); }; }; then 10174 eval "$as_ac_var=yes" 10175else 10176 echo "$as_me: failed program was:" >&5 10177sed 's/^/| /' conftest.$ac_ext >&5 10178 10179eval "$as_ac_var=no" 10180fi 10181rm -f conftest.err conftest.$ac_objext \ 10182 conftest$ac_exeext conftest.$ac_ext 10183fi 10184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10186if test `eval echo '${'$as_ac_var'}'` = yes; then 10187 cat >>confdefs.h <<_ACEOF 10188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10189_ACEOF 10190 10191fi 10192done 10193 10194 10195# do we need the math library? 10196case "${need_libm}" in 10197yes) 10198 LIBM= 10199case $host in 10200*-*-beos* | *-*-cygwin* | *-*-pw32*) 10201 # These system don't have libm 10202 ;; 10203*-ncr-sysv4.3*) 10204 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 10205echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 10206if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then 10207 echo $ECHO_N "(cached) $ECHO_C" >&6 10208else 10209 ac_check_lib_save_LIBS=$LIBS 10210LIBS="-lmw $LIBS" 10211cat >conftest.$ac_ext <<_ACEOF 10212/* confdefs.h. */ 10213_ACEOF 10214cat confdefs.h >>conftest.$ac_ext 10215cat >>conftest.$ac_ext <<_ACEOF 10216/* end confdefs.h. */ 10217 10218/* Override any gcc2 internal prototype to avoid an error. */ 10219#ifdef __cplusplus 10220extern "C" 10221#endif 10222/* We use char because int might match the return type of a gcc2 10223 builtin and then its argument prototype would still apply. */ 10224char _mwvalidcheckl (); 10225int 10226main () 10227{ 10228_mwvalidcheckl (); 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233rm -f conftest.$ac_objext conftest$ac_exeext 10234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10235 (eval $ac_link) 2>conftest.er1 10236 ac_status=$? 10237 grep -v '^ *+' conftest.er1 >conftest.err 10238 rm -f conftest.er1 10239 cat conftest.err >&5 10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10241 (exit $ac_status); } && 10242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10244 (eval $ac_try) 2>&5 10245 ac_status=$? 10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10247 (exit $ac_status); }; } && 10248 { ac_try='test -s conftest$ac_exeext' 10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10250 (eval $ac_try) 2>&5 10251 ac_status=$? 10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10253 (exit $ac_status); }; }; then 10254 ac_cv_lib_mw__mwvalidcheckl=yes 10255else 10256 echo "$as_me: failed program was:" >&5 10257sed 's/^/| /' conftest.$ac_ext >&5 10258 10259ac_cv_lib_mw__mwvalidcheckl=no 10260fi 10261rm -f conftest.err conftest.$ac_objext \ 10262 conftest$ac_exeext conftest.$ac_ext 10263LIBS=$ac_check_lib_save_LIBS 10264fi 10265echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 10266echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 10267if test $ac_cv_lib_mw__mwvalidcheckl = yes; then 10268 LIBM="-lmw" 10269fi 10270 10271 echo "$as_me:$LINENO: checking for main in -lm" >&5 10272echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 10273if test "${ac_cv_lib_m_main+set}" = set; then 10274 echo $ECHO_N "(cached) $ECHO_C" >&6 10275else 10276 ac_check_lib_save_LIBS=$LIBS 10277LIBS="-lm $LIBS" 10278cat >conftest.$ac_ext <<_ACEOF 10279/* confdefs.h. */ 10280_ACEOF 10281cat confdefs.h >>conftest.$ac_ext 10282cat >>conftest.$ac_ext <<_ACEOF 10283/* end confdefs.h. */ 10284 10285 10286int 10287main () 10288{ 10289main (); 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294rm -f conftest.$ac_objext conftest$ac_exeext 10295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10296 (eval $ac_link) 2>conftest.er1 10297 ac_status=$? 10298 grep -v '^ *+' conftest.er1 >conftest.err 10299 rm -f conftest.er1 10300 cat conftest.err >&5 10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10302 (exit $ac_status); } && 10303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10305 (eval $ac_try) 2>&5 10306 ac_status=$? 10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); }; } && 10309 { ac_try='test -s conftest$ac_exeext' 10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10311 (eval $ac_try) 2>&5 10312 ac_status=$? 10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10314 (exit $ac_status); }; }; then 10315 ac_cv_lib_m_main=yes 10316else 10317 echo "$as_me: failed program was:" >&5 10318sed 's/^/| /' conftest.$ac_ext >&5 10319 10320ac_cv_lib_m_main=no 10321fi 10322rm -f conftest.err conftest.$ac_objext \ 10323 conftest$ac_exeext conftest.$ac_ext 10324LIBS=$ac_check_lib_save_LIBS 10325fi 10326echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 10327echo "${ECHO_T}$ac_cv_lib_m_main" >&6 10328if test $ac_cv_lib_m_main = yes; then 10329 LIBM="$LIBM -lm" 10330fi 10331 10332 ;; 10333*) 10334 echo "$as_me:$LINENO: checking for main in -lm" >&5 10335echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 10336if test "${ac_cv_lib_m_main+set}" = set; then 10337 echo $ECHO_N "(cached) $ECHO_C" >&6 10338else 10339 ac_check_lib_save_LIBS=$LIBS 10340LIBS="-lm $LIBS" 10341cat >conftest.$ac_ext <<_ACEOF 10342/* confdefs.h. */ 10343_ACEOF 10344cat confdefs.h >>conftest.$ac_ext 10345cat >>conftest.$ac_ext <<_ACEOF 10346/* end confdefs.h. */ 10347 10348 10349int 10350main () 10351{ 10352main (); 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357rm -f conftest.$ac_objext conftest$ac_exeext 10358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10359 (eval $ac_link) 2>conftest.er1 10360 ac_status=$? 10361 grep -v '^ *+' conftest.er1 >conftest.err 10362 rm -f conftest.er1 10363 cat conftest.err >&5 10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10365 (exit $ac_status); } && 10366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10368 (eval $ac_try) 2>&5 10369 ac_status=$? 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 (exit $ac_status); }; } && 10372 { ac_try='test -s conftest$ac_exeext' 10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10374 (eval $ac_try) 2>&5 10375 ac_status=$? 10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 (exit $ac_status); }; }; then 10378 ac_cv_lib_m_main=yes 10379else 10380 echo "$as_me: failed program was:" >&5 10381sed 's/^/| /' conftest.$ac_ext >&5 10382 10383ac_cv_lib_m_main=no 10384fi 10385rm -f conftest.err conftest.$ac_objext \ 10386 conftest$ac_exeext conftest.$ac_ext 10387LIBS=$ac_check_lib_save_LIBS 10388fi 10389echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 10390echo "${ECHO_T}$ac_cv_lib_m_main" >&6 10391if test $ac_cv_lib_m_main = yes; then 10392 LIBM="-lm" 10393fi 10394 10395 ;; 10396esac 10397 10398 10399 ;; 10400esac 10401 10402# Some non-ANSI preprocessors botch requoting inside strings. That's bad 10403# enough, but on some of those systems, the assert macro relies on requoting 10404# working properly! 10405echo "$as_me:$LINENO: checking for working assert macro" >&5 10406echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6 10407if test "${gas_cv_assert_ok+set}" = set; then 10408 echo $ECHO_N "(cached) $ECHO_C" >&6 10409else 10410 cat >conftest.$ac_ext <<_ACEOF 10411/* confdefs.h. */ 10412_ACEOF 10413cat confdefs.h >>conftest.$ac_ext 10414cat >>conftest.$ac_ext <<_ACEOF 10415/* end confdefs.h. */ 10416#include <assert.h> 10417#include <stdio.h> 10418int 10419main () 10420{ 10421 10422/* check for requoting problems */ 10423static int a, b, c, d; 10424static char *s; 10425assert (!strcmp(s, "foo bar baz quux")); 10426/* check for newline handling */ 10427assert (a == b 10428 || c == d); 10429 10430 ; 10431 return 0; 10432} 10433_ACEOF 10434rm -f conftest.$ac_objext conftest$ac_exeext 10435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10436 (eval $ac_link) 2>conftest.er1 10437 ac_status=$? 10438 grep -v '^ *+' conftest.er1 >conftest.err 10439 rm -f conftest.er1 10440 cat conftest.err >&5 10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10442 (exit $ac_status); } && 10443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10445 (eval $ac_try) 2>&5 10446 ac_status=$? 10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10448 (exit $ac_status); }; } && 10449 { ac_try='test -s conftest$ac_exeext' 10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10451 (eval $ac_try) 2>&5 10452 ac_status=$? 10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10454 (exit $ac_status); }; }; then 10455 gas_cv_assert_ok=yes 10456else 10457 echo "$as_me: failed program was:" >&5 10458sed 's/^/| /' conftest.$ac_ext >&5 10459 10460gas_cv_assert_ok=no 10461fi 10462rm -f conftest.err conftest.$ac_objext \ 10463 conftest$ac_exeext conftest.$ac_ext 10464fi 10465echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5 10466echo "${ECHO_T}$gas_cv_assert_ok" >&6 10467test $gas_cv_assert_ok = yes || 10468cat >>confdefs.h <<\_ACEOF 10469#define BROKEN_ASSERT 1 10470_ACEOF 10471 10472 10473 10474# On some systems, the system header files may not declare malloc, realloc, 10475# and free. There are places where gas needs these functions to have been 10476# declared -- such as when taking their addresses. 10477gas_test_headers=" 10478#ifdef HAVE_MEMORY_H 10479#include <memory.h> 10480#endif 10481#ifdef HAVE_STRING_H 10482#include <string.h> 10483#else 10484#ifdef HAVE_STRINGS_H 10485#include <strings.h> 10486#endif 10487#endif 10488#ifdef HAVE_STDLIB_H 10489#include <stdlib.h> 10490#endif 10491#ifdef HAVE_UNISTD_H 10492#include <unistd.h> 10493#endif 10494" 10495 10496echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5 10497echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6 10498if test "${gas_cv_decl_needed_strstr+set}" = set; then 10499 echo $ECHO_N "(cached) $ECHO_C" >&6 10500else 10501 cat >conftest.$ac_ext <<_ACEOF 10502/* confdefs.h. */ 10503_ACEOF 10504cat confdefs.h >>conftest.$ac_ext 10505cat >>conftest.$ac_ext <<_ACEOF 10506/* end confdefs.h. */ 10507$gas_test_headers 10508int 10509main () 10510{ 10511 10512typedef char *(*f)(); 10513f x; 10514x = (f) strstr; 10515 10516 ; 10517 return 0; 10518} 10519_ACEOF 10520rm -f conftest.$ac_objext conftest$ac_exeext 10521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10522 (eval $ac_link) 2>conftest.er1 10523 ac_status=$? 10524 grep -v '^ *+' conftest.er1 >conftest.err 10525 rm -f conftest.er1 10526 cat conftest.err >&5 10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10528 (exit $ac_status); } && 10529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10531 (eval $ac_try) 2>&5 10532 ac_status=$? 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); }; } && 10535 { ac_try='test -s conftest$ac_exeext' 10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10537 (eval $ac_try) 2>&5 10538 ac_status=$? 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 (exit $ac_status); }; }; then 10541 gas_cv_decl_needed_strstr=no 10542else 10543 echo "$as_me: failed program was:" >&5 10544sed 's/^/| /' conftest.$ac_ext >&5 10545 10546gas_cv_decl_needed_strstr=yes 10547fi 10548rm -f conftest.err conftest.$ac_objext \ 10549 conftest$ac_exeext conftest.$ac_ext 10550fi 10551echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5 10552echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6 10553if test $gas_cv_decl_needed_strstr = yes; then 10554 10555cat >>confdefs.h <<\_ACEOF 10556#define NEED_DECLARATION_STRSTR 1 10557_ACEOF 10558 10559fi 10560 10561 10562echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5 10563echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6 10564if test "${gas_cv_decl_needed_malloc+set}" = set; then 10565 echo $ECHO_N "(cached) $ECHO_C" >&6 10566else 10567 cat >conftest.$ac_ext <<_ACEOF 10568/* confdefs.h. */ 10569_ACEOF 10570cat confdefs.h >>conftest.$ac_ext 10571cat >>conftest.$ac_ext <<_ACEOF 10572/* end confdefs.h. */ 10573$gas_test_headers 10574int 10575main () 10576{ 10577 10578typedef char *(*f)(); 10579f x; 10580x = (f) malloc; 10581 10582 ; 10583 return 0; 10584} 10585_ACEOF 10586rm -f conftest.$ac_objext conftest$ac_exeext 10587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10588 (eval $ac_link) 2>conftest.er1 10589 ac_status=$? 10590 grep -v '^ *+' conftest.er1 >conftest.err 10591 rm -f conftest.er1 10592 cat conftest.err >&5 10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10594 (exit $ac_status); } && 10595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10597 (eval $ac_try) 2>&5 10598 ac_status=$? 10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10600 (exit $ac_status); }; } && 10601 { ac_try='test -s conftest$ac_exeext' 10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10603 (eval $ac_try) 2>&5 10604 ac_status=$? 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10606 (exit $ac_status); }; }; then 10607 gas_cv_decl_needed_malloc=no 10608else 10609 echo "$as_me: failed program was:" >&5 10610sed 's/^/| /' conftest.$ac_ext >&5 10611 10612gas_cv_decl_needed_malloc=yes 10613fi 10614rm -f conftest.err conftest.$ac_objext \ 10615 conftest$ac_exeext conftest.$ac_ext 10616fi 10617echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5 10618echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6 10619if test $gas_cv_decl_needed_malloc = yes; then 10620 10621cat >>confdefs.h <<\_ACEOF 10622#define NEED_DECLARATION_MALLOC 1 10623_ACEOF 10624 10625fi 10626 10627 10628echo "$as_me:$LINENO: checking whether declaration is required for free" >&5 10629echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6 10630if test "${gas_cv_decl_needed_free+set}" = set; then 10631 echo $ECHO_N "(cached) $ECHO_C" >&6 10632else 10633 cat >conftest.$ac_ext <<_ACEOF 10634/* confdefs.h. */ 10635_ACEOF 10636cat confdefs.h >>conftest.$ac_ext 10637cat >>conftest.$ac_ext <<_ACEOF 10638/* end confdefs.h. */ 10639$gas_test_headers 10640int 10641main () 10642{ 10643 10644typedef void (*f)(); 10645f x; 10646x = (f) free; 10647 10648 ; 10649 return 0; 10650} 10651_ACEOF 10652rm -f conftest.$ac_objext conftest$ac_exeext 10653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10654 (eval $ac_link) 2>conftest.er1 10655 ac_status=$? 10656 grep -v '^ *+' conftest.er1 >conftest.err 10657 rm -f conftest.er1 10658 cat conftest.err >&5 10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10660 (exit $ac_status); } && 10661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10663 (eval $ac_try) 2>&5 10664 ac_status=$? 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); }; } && 10667 { ac_try='test -s conftest$ac_exeext' 10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10669 (eval $ac_try) 2>&5 10670 ac_status=$? 10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10672 (exit $ac_status); }; }; then 10673 gas_cv_decl_needed_free=no 10674else 10675 echo "$as_me: failed program was:" >&5 10676sed 's/^/| /' conftest.$ac_ext >&5 10677 10678gas_cv_decl_needed_free=yes 10679fi 10680rm -f conftest.err conftest.$ac_objext \ 10681 conftest$ac_exeext conftest.$ac_ext 10682fi 10683echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5 10684echo "${ECHO_T}$gas_cv_decl_needed_free" >&6 10685if test $gas_cv_decl_needed_free = yes; then 10686 10687cat >>confdefs.h <<\_ACEOF 10688#define NEED_DECLARATION_FREE 1 10689_ACEOF 10690 10691fi 10692 10693 10694echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5 10695echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6 10696if test "${gas_cv_decl_needed_sbrk+set}" = set; then 10697 echo $ECHO_N "(cached) $ECHO_C" >&6 10698else 10699 cat >conftest.$ac_ext <<_ACEOF 10700/* confdefs.h. */ 10701_ACEOF 10702cat confdefs.h >>conftest.$ac_ext 10703cat >>conftest.$ac_ext <<_ACEOF 10704/* end confdefs.h. */ 10705$gas_test_headers 10706int 10707main () 10708{ 10709 10710typedef char *(*f)(); 10711f x; 10712x = (f) sbrk; 10713 10714 ; 10715 return 0; 10716} 10717_ACEOF 10718rm -f conftest.$ac_objext conftest$ac_exeext 10719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10720 (eval $ac_link) 2>conftest.er1 10721 ac_status=$? 10722 grep -v '^ *+' conftest.er1 >conftest.err 10723 rm -f conftest.er1 10724 cat conftest.err >&5 10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 (exit $ac_status); } && 10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10729 (eval $ac_try) 2>&5 10730 ac_status=$? 10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10732 (exit $ac_status); }; } && 10733 { ac_try='test -s conftest$ac_exeext' 10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10735 (eval $ac_try) 2>&5 10736 ac_status=$? 10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10738 (exit $ac_status); }; }; then 10739 gas_cv_decl_needed_sbrk=no 10740else 10741 echo "$as_me: failed program was:" >&5 10742sed 's/^/| /' conftest.$ac_ext >&5 10743 10744gas_cv_decl_needed_sbrk=yes 10745fi 10746rm -f conftest.err conftest.$ac_objext \ 10747 conftest$ac_exeext conftest.$ac_ext 10748fi 10749echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5 10750echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6 10751if test $gas_cv_decl_needed_sbrk = yes; then 10752 10753cat >>confdefs.h <<\_ACEOF 10754#define NEED_DECLARATION_SBRK 1 10755_ACEOF 10756 10757fi 10758 10759 10760echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5 10761echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6 10762if test "${gas_cv_decl_needed_environ+set}" = set; then 10763 echo $ECHO_N "(cached) $ECHO_C" >&6 10764else 10765 cat >conftest.$ac_ext <<_ACEOF 10766/* confdefs.h. */ 10767_ACEOF 10768cat confdefs.h >>conftest.$ac_ext 10769cat >>conftest.$ac_ext <<_ACEOF 10770/* end confdefs.h. */ 10771$gas_test_headers 10772int 10773main () 10774{ 10775 10776typedef char **f; 10777f x; 10778x = (f) environ; 10779 10780 ; 10781 return 0; 10782} 10783_ACEOF 10784rm -f conftest.$ac_objext conftest$ac_exeext 10785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10786 (eval $ac_link) 2>conftest.er1 10787 ac_status=$? 10788 grep -v '^ *+' conftest.er1 >conftest.err 10789 rm -f conftest.er1 10790 cat conftest.err >&5 10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10792 (exit $ac_status); } && 10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10795 (eval $ac_try) 2>&5 10796 ac_status=$? 10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10798 (exit $ac_status); }; } && 10799 { ac_try='test -s conftest$ac_exeext' 10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10801 (eval $ac_try) 2>&5 10802 ac_status=$? 10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10804 (exit $ac_status); }; }; then 10805 gas_cv_decl_needed_environ=no 10806else 10807 echo "$as_me: failed program was:" >&5 10808sed 's/^/| /' conftest.$ac_ext >&5 10809 10810gas_cv_decl_needed_environ=yes 10811fi 10812rm -f conftest.err conftest.$ac_objext \ 10813 conftest$ac_exeext conftest.$ac_ext 10814fi 10815echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5 10816echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6 10817if test $gas_cv_decl_needed_environ = yes; then 10818 10819cat >>confdefs.h <<\_ACEOF 10820#define NEED_DECLARATION_ENVIRON 1 10821_ACEOF 10822 10823fi 10824 10825 10826# Does errno.h declare errno, or do we have to add a separate declaration 10827# for it? 10828 10829echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5 10830echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6 10831if test "${gas_cv_decl_needed_errno+set}" = set; then 10832 echo $ECHO_N "(cached) $ECHO_C" >&6 10833else 10834 cat >conftest.$ac_ext <<_ACEOF 10835/* confdefs.h. */ 10836_ACEOF 10837cat confdefs.h >>conftest.$ac_ext 10838cat >>conftest.$ac_ext <<_ACEOF 10839/* end confdefs.h. */ 10840 10841#ifdef HAVE_ERRNO_H 10842#include <errno.h> 10843#endif 10844 10845int 10846main () 10847{ 10848 10849typedef int f; 10850f x; 10851x = (f) errno; 10852 10853 ; 10854 return 0; 10855} 10856_ACEOF 10857rm -f conftest.$ac_objext conftest$ac_exeext 10858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10859 (eval $ac_link) 2>conftest.er1 10860 ac_status=$? 10861 grep -v '^ *+' conftest.er1 >conftest.err 10862 rm -f conftest.er1 10863 cat conftest.err >&5 10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10865 (exit $ac_status); } && 10866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10868 (eval $ac_try) 2>&5 10869 ac_status=$? 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10871 (exit $ac_status); }; } && 10872 { ac_try='test -s conftest$ac_exeext' 10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10874 (eval $ac_try) 2>&5 10875 ac_status=$? 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10877 (exit $ac_status); }; }; then 10878 gas_cv_decl_needed_errno=no 10879else 10880 echo "$as_me: failed program was:" >&5 10881sed 's/^/| /' conftest.$ac_ext >&5 10882 10883gas_cv_decl_needed_errno=yes 10884fi 10885rm -f conftest.err conftest.$ac_objext \ 10886 conftest$ac_exeext conftest.$ac_ext 10887fi 10888echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5 10889echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6 10890if test $gas_cv_decl_needed_errno = yes; then 10891 10892cat >>confdefs.h <<\_ACEOF 10893#define NEED_DECLARATION_ERRNO 1 10894_ACEOF 10895 10896fi 10897 10898 10899 10900 10901 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" 10902 10903 ac_config_commands="$ac_config_commands default" 10904 10905 10906cat >confcache <<\_ACEOF 10907# This file is a shell script that caches the results of configure 10908# tests run on this system so they can be shared between configure 10909# scripts and configure runs, see configure's option --config-cache. 10910# It is not useful on other systems. If it contains results you don't 10911# want to keep, you may remove or edit it. 10912# 10913# config.status only pays attention to the cache file if you give it 10914# the --recheck option to rerun configure. 10915# 10916# `ac_cv_env_foo' variables (set or unset) will be overridden when 10917# loading this file, other *unset* `ac_cv_foo' will be assigned the 10918# following values. 10919 10920_ACEOF 10921 10922# The following way of writing the cache mishandles newlines in values, 10923# but we know of no workaround that is simple, portable, and efficient. 10924# So, don't put newlines in cache variables' values. 10925# Ultrix sh set writes to stderr and can't be redirected directly, 10926# and sets the high bit in the cache file unless we assign to the vars. 10927{ 10928 (set) 2>&1 | 10929 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10930 *ac_space=\ *) 10931 # `set' does not quote correctly, so add quotes (double-quote 10932 # substitution turns \\\\ into \\, and sed turns \\ into \). 10933 sed -n \ 10934 "s/'/'\\\\''/g; 10935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10936 ;; 10937 *) 10938 # `set' quotes correctly as required by POSIX, so do not add quotes. 10939 sed -n \ 10940 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10941 ;; 10942 esac; 10943} | 10944 sed ' 10945 t clear 10946 : clear 10947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10948 t end 10949 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10950 : end' >>confcache 10951if diff $cache_file confcache >/dev/null 2>&1; then :; else 10952 if test -w $cache_file; then 10953 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10954 cat confcache >$cache_file 10955 else 10956 echo "not updating unwritable cache $cache_file" 10957 fi 10958fi 10959rm -f confcache 10960 10961test "x$prefix" = xNONE && prefix=$ac_default_prefix 10962# Let make expand exec_prefix. 10963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10964 10965# VPATH may cause trouble with some makes, so we remove $(srcdir), 10966# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10967# trailing colons and then remove the whole line if VPATH becomes empty 10968# (actually we leave an empty line to preserve line numbers). 10969if test "x$srcdir" = x.; then 10970 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10971s/:*\$(srcdir):*/:/; 10972s/:*\${srcdir}:*/:/; 10973s/:*@srcdir@:*/:/; 10974s/^\([^=]*=[ ]*\):*/\1/; 10975s/:*$//; 10976s/^[^=]*=[ ]*$//; 10977}' 10978fi 10979 10980DEFS=-DHAVE_CONFIG_H 10981 10982ac_libobjs= 10983ac_ltlibobjs= 10984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10985 # 1. Remove the extension, and $U if already installed. 10986 ac_i=`echo "$ac_i" | 10987 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 10988 # 2. Add them. 10989 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 10990 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 10991done 10992LIBOBJS=$ac_libobjs 10993 10994LTLIBOBJS=$ac_ltlibobjs 10995 10996 10997if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10998 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 10999Usually this means the macro was only invoked conditionally." >&5 11000echo "$as_me: error: conditional \"AMDEP\" was never defined. 11001Usually this means the macro was only invoked conditionally." >&2;} 11002 { (exit 1); exit 1; }; } 11003fi 11004if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 11006Usually this means the macro was only invoked conditionally." >&5 11007echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 11008Usually this means the macro was only invoked conditionally." >&2;} 11009 { (exit 1); exit 1; }; } 11010fi 11011if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11012 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 11013Usually this means the macro was only invoked conditionally." >&5 11014echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 11015Usually this means the macro was only invoked conditionally." >&2;} 11016 { (exit 1); exit 1; }; } 11017fi 11018 11019: ${CONFIG_STATUS=./config.status} 11020ac_clean_files_save=$ac_clean_files 11021ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11022{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11023echo "$as_me: creating $CONFIG_STATUS" >&6;} 11024cat >$CONFIG_STATUS <<_ACEOF 11025#! $SHELL 11026# Generated by $as_me. 11027# Run this file to recreate the current configuration. 11028# Compiler output produced by configure, useful for debugging 11029# configure, is in config.log if it exists. 11030 11031debug=false 11032ac_cs_recheck=false 11033ac_cs_silent=false 11034SHELL=\${CONFIG_SHELL-$SHELL} 11035_ACEOF 11036 11037cat >>$CONFIG_STATUS <<\_ACEOF 11038## --------------------- ## 11039## M4sh Initialization. ## 11040## --------------------- ## 11041 11042# Be Bourne compatible 11043if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11044 emulate sh 11045 NULLCMD=: 11046 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11047 # is contrary to our usage. Disable this feature. 11048 alias -g '${1+"$@"}'='"$@"' 11049elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11050 set -o posix 11051fi 11052DUALCASE=1; export DUALCASE # for MKS sh 11053 11054# Support unset when possible. 11055if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11056 as_unset=unset 11057else 11058 as_unset=false 11059fi 11060 11061 11062# Work around bugs in pre-3.0 UWIN ksh. 11063$as_unset ENV MAIL MAILPATH 11064PS1='$ ' 11065PS2='> ' 11066PS4='+ ' 11067 11068# NLS nuisances. 11069for as_var in \ 11070 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11071 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11072 LC_TELEPHONE LC_TIME 11073do 11074 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11075 eval $as_var=C; export $as_var 11076 else 11077 $as_unset $as_var 11078 fi 11079done 11080 11081# Required to use basename. 11082if expr a : '\(a\)' >/dev/null 2>&1; then 11083 as_expr=expr 11084else 11085 as_expr=false 11086fi 11087 11088if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11089 as_basename=basename 11090else 11091 as_basename=false 11092fi 11093 11094 11095# Name of the executable. 11096as_me=`$as_basename "$0" || 11097$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11098 X"$0" : 'X\(//\)$' \| \ 11099 X"$0" : 'X\(/\)$' \| \ 11100 . : '\(.\)' 2>/dev/null || 11101echo X/"$0" | 11102 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11103 /^X\/\(\/\/\)$/{ s//\1/; q; } 11104 /^X\/\(\/\).*/{ s//\1/; q; } 11105 s/.*/./; q'` 11106 11107 11108# PATH needs CR, and LINENO needs CR and PATH. 11109# Avoid depending upon Character Ranges. 11110as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11111as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11112as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11113as_cr_digits='0123456789' 11114as_cr_alnum=$as_cr_Letters$as_cr_digits 11115 11116# The user is always right. 11117if test "${PATH_SEPARATOR+set}" != set; then 11118 echo "#! /bin/sh" >conf$$.sh 11119 echo "exit 0" >>conf$$.sh 11120 chmod +x conf$$.sh 11121 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11122 PATH_SEPARATOR=';' 11123 else 11124 PATH_SEPARATOR=: 11125 fi 11126 rm -f conf$$.sh 11127fi 11128 11129 11130 as_lineno_1=$LINENO 11131 as_lineno_2=$LINENO 11132 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11133 test "x$as_lineno_1" != "x$as_lineno_2" && 11134 test "x$as_lineno_3" = "x$as_lineno_2" || { 11135 # Find who we are. Look in the path if we contain no path at all 11136 # relative or not. 11137 case $0 in 11138 *[\\/]* ) as_myself=$0 ;; 11139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11140for as_dir in $PATH 11141do 11142 IFS=$as_save_IFS 11143 test -z "$as_dir" && as_dir=. 11144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11145done 11146 11147 ;; 11148 esac 11149 # We did not find ourselves, most probably we were run as `sh COMMAND' 11150 # in which case we are not to be found in the path. 11151 if test "x$as_myself" = x; then 11152 as_myself=$0 11153 fi 11154 if test ! -f "$as_myself"; then 11155 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11156echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11157 { (exit 1); exit 1; }; } 11158 fi 11159 case $CONFIG_SHELL in 11160 '') 11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11162for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11163do 11164 IFS=$as_save_IFS 11165 test -z "$as_dir" && as_dir=. 11166 for as_base in sh bash ksh sh5; do 11167 case $as_dir in 11168 /*) 11169 if ("$as_dir/$as_base" -c ' 11170 as_lineno_1=$LINENO 11171 as_lineno_2=$LINENO 11172 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11173 test "x$as_lineno_1" != "x$as_lineno_2" && 11174 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11175 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11176 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11177 CONFIG_SHELL=$as_dir/$as_base 11178 export CONFIG_SHELL 11179 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11180 fi;; 11181 esac 11182 done 11183done 11184;; 11185 esac 11186 11187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11188 # uniformly replaced by the line number. The first 'sed' inserts a 11189 # line-number line before each line; the second 'sed' does the real 11190 # work. The second script uses 'N' to pair each line-number line 11191 # with the numbered line, and appends trailing '-' during 11192 # substitution so that $LINENO is not a special case at line end. 11193 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11194 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11195 sed '=' <$as_myself | 11196 sed ' 11197 N 11198 s,$,-, 11199 : loop 11200 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11201 t loop 11202 s,-$,, 11203 s,^['$as_cr_digits']*\n,, 11204 ' >$as_me.lineno && 11205 chmod +x $as_me.lineno || 11206 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11207echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11208 { (exit 1); exit 1; }; } 11209 11210 # Don't try to exec as it changes $[0], causing all sort of problems 11211 # (the dirname of $[0] is not the place where we might find the 11212 # original and so on. Autoconf is especially sensible to this). 11213 . ./$as_me.lineno 11214 # Exit status is that of the last command. 11215 exit 11216} 11217 11218 11219case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11220 *c*,-n*) ECHO_N= ECHO_C=' 11221' ECHO_T=' ' ;; 11222 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11223 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11224esac 11225 11226if expr a : '\(a\)' >/dev/null 2>&1; then 11227 as_expr=expr 11228else 11229 as_expr=false 11230fi 11231 11232rm -f conf$$ conf$$.exe conf$$.file 11233echo >conf$$.file 11234if ln -s conf$$.file conf$$ 2>/dev/null; then 11235 # We could just check for DJGPP; but this test a) works b) is more generic 11236 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11237 if test -f conf$$.exe; then 11238 # Don't use ln at all; we don't have any links 11239 as_ln_s='cp -p' 11240 else 11241 as_ln_s='ln -s' 11242 fi 11243elif ln conf$$.file conf$$ 2>/dev/null; then 11244 as_ln_s=ln 11245else 11246 as_ln_s='cp -p' 11247fi 11248rm -f conf$$ conf$$.exe conf$$.file 11249 11250if mkdir -p . 2>/dev/null; then 11251 as_mkdir_p=: 11252else 11253 test -d ./-p && rmdir ./-p 11254 as_mkdir_p=false 11255fi 11256 11257as_executable_p="test -f" 11258 11259# Sed expression to map a string onto a valid CPP name. 11260as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11261 11262# Sed expression to map a string onto a valid variable name. 11263as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11264 11265 11266# IFS 11267# We need space, tab and new line, in precisely that order. 11268as_nl=' 11269' 11270IFS=" $as_nl" 11271 11272# CDPATH. 11273$as_unset CDPATH 11274 11275exec 6>&1 11276 11277# Open the log real soon, to keep \$[0] and so on meaningful, and to 11278# report actual input values of CONFIG_FILES etc. instead of their 11279# values after options handling. Logging --version etc. is OK. 11280exec 5>>config.log 11281{ 11282 echo 11283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11284## Running $as_me. ## 11285_ASBOX 11286} >&5 11287cat >&5 <<_CSEOF 11288 11289This file was extended by $as_me, which was 11290generated by GNU Autoconf 2.59. Invocation command line was 11291 11292 CONFIG_FILES = $CONFIG_FILES 11293 CONFIG_HEADERS = $CONFIG_HEADERS 11294 CONFIG_LINKS = $CONFIG_LINKS 11295 CONFIG_COMMANDS = $CONFIG_COMMANDS 11296 $ $0 $@ 11297 11298_CSEOF 11299echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11300echo >&5 11301_ACEOF 11302 11303# Files that config.status was made for. 11304if test -n "$ac_config_files"; then 11305 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11306fi 11307 11308if test -n "$ac_config_headers"; then 11309 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11310fi 11311 11312if test -n "$ac_config_links"; then 11313 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11314fi 11315 11316if test -n "$ac_config_commands"; then 11317 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11318fi 11319 11320cat >>$CONFIG_STATUS <<\_ACEOF 11321 11322ac_cs_usage="\ 11323\`$as_me' instantiates files from templates according to the 11324current configuration. 11325 11326Usage: $0 [OPTIONS] [FILE]... 11327 11328 -h, --help print this help, then exit 11329 -V, --version print version number, then exit 11330 -q, --quiet do not print progress messages 11331 -d, --debug don't remove temporary files 11332 --recheck update $as_me by reconfiguring in the same conditions 11333 --file=FILE[:TEMPLATE] 11334 instantiate the configuration file FILE 11335 --header=FILE[:TEMPLATE] 11336 instantiate the configuration header FILE 11337 11338Configuration files: 11339$config_files 11340 11341Configuration headers: 11342$config_headers 11343 11344Configuration commands: 11345$config_commands 11346 11347Report bugs to <bug-autoconf@gnu.org>." 11348_ACEOF 11349 11350cat >>$CONFIG_STATUS <<_ACEOF 11351ac_cs_version="\\ 11352config.status 11353configured by $0, generated by GNU Autoconf 2.59, 11354 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11355 11356Copyright (C) 2003 Free Software Foundation, Inc. 11357This config.status script is free software; the Free Software Foundation 11358gives unlimited permission to copy, distribute and modify it." 11359srcdir=$srcdir 11360INSTALL="$INSTALL" 11361_ACEOF 11362 11363cat >>$CONFIG_STATUS <<\_ACEOF 11364# If no file are specified by the user, then we need to provide default 11365# value. By we need to know if files were specified by the user. 11366ac_need_defaults=: 11367while test $# != 0 11368do 11369 case $1 in 11370 --*=*) 11371 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11372 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11373 ac_shift=: 11374 ;; 11375 -*) 11376 ac_option=$1 11377 ac_optarg=$2 11378 ac_shift=shift 11379 ;; 11380 *) # This is not an option, so the user has probably given explicit 11381 # arguments. 11382 ac_option=$1 11383 ac_need_defaults=false;; 11384 esac 11385 11386 case $ac_option in 11387 # Handling of the options. 11388_ACEOF 11389cat >>$CONFIG_STATUS <<\_ACEOF 11390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11391 ac_cs_recheck=: ;; 11392 --version | --vers* | -V ) 11393 echo "$ac_cs_version"; exit 0 ;; 11394 --he | --h) 11395 # Conflict between --help and --header 11396 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11397Try \`$0 --help' for more information." >&5 11398echo "$as_me: error: ambiguous option: $1 11399Try \`$0 --help' for more information." >&2;} 11400 { (exit 1); exit 1; }; };; 11401 --help | --hel | -h ) 11402 echo "$ac_cs_usage"; exit 0 ;; 11403 --debug | --d* | -d ) 11404 debug=: ;; 11405 --file | --fil | --fi | --f ) 11406 $ac_shift 11407 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11408 ac_need_defaults=false;; 11409 --header | --heade | --head | --hea ) 11410 $ac_shift 11411 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11412 ac_need_defaults=false;; 11413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11414 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11415 ac_cs_silent=: ;; 11416 11417 # This is an error. 11418 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11419Try \`$0 --help' for more information." >&5 11420echo "$as_me: error: unrecognized option: $1 11421Try \`$0 --help' for more information." >&2;} 11422 { (exit 1); exit 1; }; } ;; 11423 11424 *) ac_config_targets="$ac_config_targets $1" ;; 11425 11426 esac 11427 shift 11428done 11429 11430ac_configure_extra_args= 11431 11432if $ac_cs_silent; then 11433 exec 6>/dev/null 11434 ac_configure_extra_args="$ac_configure_extra_args --silent" 11435fi 11436 11437_ACEOF 11438cat >>$CONFIG_STATUS <<_ACEOF 11439if \$ac_cs_recheck; then 11440 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11441 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11442fi 11443 11444_ACEOF 11445 11446cat >>$CONFIG_STATUS <<_ACEOF 11447# 11448# INIT-COMMANDS section. 11449# 11450 11451AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11452target_cpu_type=${target_cpu_type} 11453 cgen_cpu_prefix=${cgen_cpu_prefix} 11454 obj_format=${obj_format} 11455 te_file=${te_file} 11456 11457_ACEOF 11458 11459 11460 11461cat >>$CONFIG_STATUS <<\_ACEOF 11462for ac_config_target in $ac_config_targets 11463do 11464 case "$ac_config_target" in 11465 # Handling of arguments. 11466 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; 11467 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; 11468 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11469 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11470 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 11471 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11472 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 11473 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 11474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11475echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11476 { (exit 1); exit 1; }; };; 11477 esac 11478done 11479 11480# If the user did not use the arguments to specify the items to instantiate, 11481# then the envvar interface is used. Set only those that are not. 11482# We use the long form for the default assignment because of an extremely 11483# bizarre bug on SunOS 4.1.3. 11484if $ac_need_defaults; then 11485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11487 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11488fi 11489 11490# Have a temporary directory for convenience. Make it in the build tree 11491# simply because there is no reason to put it here, and in addition, 11492# creating and moving files from /tmp can sometimes cause problems. 11493# Create a temporary directory, and hook for its removal unless debugging. 11494$debug || 11495{ 11496 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11497 trap '{ (exit 1); exit 1; }' 1 2 13 15 11498} 11499 11500# Create a (secure) tmp directory for tmp files. 11501 11502{ 11503 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11504 test -n "$tmp" && test -d "$tmp" 11505} || 11506{ 11507 tmp=./confstat$$-$RANDOM 11508 (umask 077 && mkdir $tmp) 11509} || 11510{ 11511 echo "$me: cannot create a temporary directory in ." >&2 11512 { (exit 1); exit 1; } 11513} 11514 11515_ACEOF 11516 11517cat >>$CONFIG_STATUS <<_ACEOF 11518 11519# 11520# CONFIG_FILES section. 11521# 11522 11523# No need to generate the scripts if there are no CONFIG_FILES. 11524# This happens for instance when ./config.status config.h 11525if test -n "\$CONFIG_FILES"; then 11526 # Protect against being on the right side of a sed subst in config.status. 11527 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11528 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11529s,@SHELL@,$SHELL,;t t 11530s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11531s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11532s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11533s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11534s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11535s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11536s,@exec_prefix@,$exec_prefix,;t t 11537s,@prefix@,$prefix,;t t 11538s,@program_transform_name@,$program_transform_name,;t t 11539s,@bindir@,$bindir,;t t 11540s,@sbindir@,$sbindir,;t t 11541s,@libexecdir@,$libexecdir,;t t 11542s,@datadir@,$datadir,;t t 11543s,@sysconfdir@,$sysconfdir,;t t 11544s,@sharedstatedir@,$sharedstatedir,;t t 11545s,@localstatedir@,$localstatedir,;t t 11546s,@libdir@,$libdir,;t t 11547s,@includedir@,$includedir,;t t 11548s,@oldincludedir@,$oldincludedir,;t t 11549s,@infodir@,$infodir,;t t 11550s,@mandir@,$mandir,;t t 11551s,@build_alias@,$build_alias,;t t 11552s,@host_alias@,$host_alias,;t t 11553s,@target_alias@,$target_alias,;t t 11554s,@DEFS@,$DEFS,;t t 11555s,@ECHO_C@,$ECHO_C,;t t 11556s,@ECHO_N@,$ECHO_N,;t t 11557s,@ECHO_T@,$ECHO_T,;t t 11558s,@LIBS@,$LIBS,;t t 11559s,@build@,$build,;t t 11560s,@build_cpu@,$build_cpu,;t t 11561s,@build_vendor@,$build_vendor,;t t 11562s,@build_os@,$build_os,;t t 11563s,@host@,$host,;t t 11564s,@host_cpu@,$host_cpu,;t t 11565s,@host_vendor@,$host_vendor,;t t 11566s,@host_os@,$host_os,;t t 11567s,@target@,$target,;t t 11568s,@target_cpu@,$target_cpu,;t t 11569s,@target_vendor@,$target_vendor,;t t 11570s,@target_os@,$target_os,;t t 11571s,@CC@,$CC,;t t 11572s,@CFLAGS@,$CFLAGS,;t t 11573s,@LDFLAGS@,$LDFLAGS,;t t 11574s,@CPPFLAGS@,$CPPFLAGS,;t t 11575s,@ac_ct_CC@,$ac_ct_CC,;t t 11576s,@EXEEXT@,$EXEEXT,;t t 11577s,@OBJEXT@,$OBJEXT,;t t 11578s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11579s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11580s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11581s,@CYGPATH_W@,$CYGPATH_W,;t t 11582s,@PACKAGE@,$PACKAGE,;t t 11583s,@VERSION@,$VERSION,;t t 11584s,@ACLOCAL@,$ACLOCAL,;t t 11585s,@AUTOCONF@,$AUTOCONF,;t t 11586s,@AUTOMAKE@,$AUTOMAKE,;t t 11587s,@AUTOHEADER@,$AUTOHEADER,;t t 11588s,@MAKEINFO@,$MAKEINFO,;t t 11589s,@AMTAR@,$AMTAR,;t t 11590s,@install_sh@,$install_sh,;t t 11591s,@STRIP@,$STRIP,;t t 11592s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 11593s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 11594s,@mkdir_p@,$mkdir_p,;t t 11595s,@AWK@,$AWK,;t t 11596s,@SET_MAKE@,$SET_MAKE,;t t 11597s,@am__leading_dot@,$am__leading_dot,;t t 11598s,@DEPDIR@,$DEPDIR,;t t 11599s,@am__include@,$am__include,;t t 11600s,@am__quote@,$am__quote,;t t 11601s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 11602s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 11603s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 11604s,@CCDEPMODE@,$CCDEPMODE,;t t 11605s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 11606s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 11607s,@LN_S@,$LN_S,;t t 11608s,@RANLIB@,$RANLIB,;t t 11609s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11610s,@LIBTOOL@,$LIBTOOL,;t t 11611s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t 11612s,@GDBINIT@,$GDBINIT,;t t 11613s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t 11614s,@extra_objects@,$extra_objects,;t t 11615s,@target_cpu_type@,$target_cpu_type,;t t 11616s,@obj_format@,$obj_format,;t t 11617s,@te_file@,$te_file,;t t 11618s,@install_tooldir@,$install_tooldir,;t t 11619s,@atof@,$atof,;t t 11620s,@BFDLIB@,$BFDLIB,;t t 11621s,@OPCODES_LIB@,$OPCODES_LIB,;t t 11622s,@BFDVER_H@,$BFDVER_H,;t t 11623s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t 11624s,@YACC@,$YACC,;t t 11625s,@LEX@,$LEX,;t t 11626s,@LEXLIB@,$LEXLIB,;t t 11627s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 11628s,@CPP@,$CPP,;t t 11629s,@EGREP@,$EGREP,;t t 11630s,@ALLOCA@,$ALLOCA,;t t 11631s,@USE_NLS@,$USE_NLS,;t t 11632s,@MSGFMT@,$MSGFMT,;t t 11633s,@GMSGFMT@,$GMSGFMT,;t t 11634s,@XGETTEXT@,$XGETTEXT,;t t 11635s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 11636s,@CATALOGS@,$CATALOGS,;t t 11637s,@CATOBJEXT@,$CATOBJEXT,;t t 11638s,@DATADIRNAME@,$DATADIRNAME,;t t 11639s,@GMOFILES@,$GMOFILES,;t t 11640s,@INSTOBJEXT@,$INSTOBJEXT,;t t 11641s,@INTLDEPS@,$INTLDEPS,;t t 11642s,@INTLLIBS@,$INTLLIBS,;t t 11643s,@INTLOBJS@,$INTLOBJS,;t t 11644s,@POFILES@,$POFILES,;t t 11645s,@POSUB@,$POSUB,;t t 11646s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t 11647s,@GT_NO@,$GT_NO,;t t 11648s,@GT_YES@,$GT_YES,;t t 11649s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 11650s,@l@,$l,;t t 11651s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 11652s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 11653s,@MAINT@,$MAINT,;t t 11654s,@LIBM@,$LIBM,;t t 11655s,@LIBOBJS@,$LIBOBJS,;t t 11656s,@LTLIBOBJS@,$LTLIBOBJS,;t t 11657CEOF 11658 11659_ACEOF 11660 11661 cat >>$CONFIG_STATUS <<\_ACEOF 11662 # Split the substitutions into bite-sized pieces for seds with 11663 # small command number limits, like on Digital OSF/1 and HP-UX. 11664 ac_max_sed_lines=48 11665 ac_sed_frag=1 # Number of current file. 11666 ac_beg=1 # First line for current file. 11667 ac_end=$ac_max_sed_lines # Line after last line for current file. 11668 ac_more_lines=: 11669 ac_sed_cmds= 11670 while $ac_more_lines; do 11671 if test $ac_beg -gt 1; then 11672 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11673 else 11674 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11675 fi 11676 if test ! -s $tmp/subs.frag; then 11677 ac_more_lines=false 11678 else 11679 # The purpose of the label and of the branching condition is to 11680 # speed up the sed processing (if there are no `@' at all, there 11681 # is no need to browse any of the substitutions). 11682 # These are the two extra sed commands mentioned above. 11683 (echo ':t 11684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11685 if test -z "$ac_sed_cmds"; then 11686 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11687 else 11688 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11689 fi 11690 ac_sed_frag=`expr $ac_sed_frag + 1` 11691 ac_beg=$ac_end 11692 ac_end=`expr $ac_end + $ac_max_sed_lines` 11693 fi 11694 done 11695 if test -z "$ac_sed_cmds"; then 11696 ac_sed_cmds=cat 11697 fi 11698fi # test -n "$CONFIG_FILES" 11699 11700_ACEOF 11701cat >>$CONFIG_STATUS <<\_ACEOF 11702for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11704 case $ac_file in 11705 - | *:- | *:-:* ) # input from stdin 11706 cat >$tmp/stdin 11707 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11709 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11710 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11711 * ) ac_file_in=$ac_file.in ;; 11712 esac 11713 11714 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11715 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11716$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11717 X"$ac_file" : 'X\(//\)[^/]' \| \ 11718 X"$ac_file" : 'X\(//\)$' \| \ 11719 X"$ac_file" : 'X\(/\)' \| \ 11720 . : '\(.\)' 2>/dev/null || 11721echo X"$ac_file" | 11722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11723 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11724 /^X\(\/\/\)$/{ s//\1/; q; } 11725 /^X\(\/\).*/{ s//\1/; q; } 11726 s/.*/./; q'` 11727 { if $as_mkdir_p; then 11728 mkdir -p "$ac_dir" 11729 else 11730 as_dir="$ac_dir" 11731 as_dirs= 11732 while test ! -d "$as_dir"; do 11733 as_dirs="$as_dir $as_dirs" 11734 as_dir=`(dirname "$as_dir") 2>/dev/null || 11735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11736 X"$as_dir" : 'X\(//\)[^/]' \| \ 11737 X"$as_dir" : 'X\(//\)$' \| \ 11738 X"$as_dir" : 'X\(/\)' \| \ 11739 . : '\(.\)' 2>/dev/null || 11740echo X"$as_dir" | 11741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11742 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11743 /^X\(\/\/\)$/{ s//\1/; q; } 11744 /^X\(\/\).*/{ s//\1/; q; } 11745 s/.*/./; q'` 11746 done 11747 test ! -n "$as_dirs" || mkdir $as_dirs 11748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11749echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11750 { (exit 1); exit 1; }; }; } 11751 11752 ac_builddir=. 11753 11754if test "$ac_dir" != .; then 11755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11756 # A "../" for each directory in $ac_dir_suffix. 11757 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11758else 11759 ac_dir_suffix= ac_top_builddir= 11760fi 11761 11762case $srcdir in 11763 .) # No --srcdir option. We are building in place. 11764 ac_srcdir=. 11765 if test -z "$ac_top_builddir"; then 11766 ac_top_srcdir=. 11767 else 11768 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11769 fi ;; 11770 [\\/]* | ?:[\\/]* ) # Absolute path. 11771 ac_srcdir=$srcdir$ac_dir_suffix; 11772 ac_top_srcdir=$srcdir ;; 11773 *) # Relative path. 11774 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11775 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11776esac 11777 11778# Do not use `cd foo && pwd` to compute absolute paths, because 11779# the directories may not exist. 11780case `pwd` in 11781.) ac_abs_builddir="$ac_dir";; 11782*) 11783 case "$ac_dir" in 11784 .) ac_abs_builddir=`pwd`;; 11785 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 11786 *) ac_abs_builddir=`pwd`/"$ac_dir";; 11787 esac;; 11788esac 11789case $ac_abs_builddir in 11790.) ac_abs_top_builddir=${ac_top_builddir}.;; 11791*) 11792 case ${ac_top_builddir}. in 11793 .) ac_abs_top_builddir=$ac_abs_builddir;; 11794 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 11795 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 11796 esac;; 11797esac 11798case $ac_abs_builddir in 11799.) ac_abs_srcdir=$ac_srcdir;; 11800*) 11801 case $ac_srcdir in 11802 .) ac_abs_srcdir=$ac_abs_builddir;; 11803 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 11804 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 11805 esac;; 11806esac 11807case $ac_abs_builddir in 11808.) ac_abs_top_srcdir=$ac_top_srcdir;; 11809*) 11810 case $ac_top_srcdir in 11811 .) ac_abs_top_srcdir=$ac_abs_builddir;; 11812 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 11813 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 11814 esac;; 11815esac 11816 11817 11818 case $INSTALL in 11819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11820 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11821 esac 11822 11823 # Let's still pretend it is `configure' which instantiates (i.e., don't 11824 # use $as_me), people would be surprised to read: 11825 # /* config.h. Generated by config.status. */ 11826 if test x"$ac_file" = x-; then 11827 configure_input= 11828 else 11829 configure_input="$ac_file. " 11830 fi 11831 configure_input=$configure_input"Generated from `echo $ac_file_in | 11832 sed 's,.*/,,'` by configure." 11833 11834 # First look for the input files in the build tree, otherwise in the 11835 # src tree. 11836 ac_file_inputs=`IFS=: 11837 for f in $ac_file_in; do 11838 case $f in 11839 -) echo $tmp/stdin ;; 11840 [\\/$]*) 11841 # Absolute (can't be DOS-style, as IFS=:) 11842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11843echo "$as_me: error: cannot find input file: $f" >&2;} 11844 { (exit 1); exit 1; }; } 11845 echo "$f";; 11846 *) # Relative 11847 if test -f "$f"; then 11848 # Build tree 11849 echo "$f" 11850 elif test -f "$srcdir/$f"; then 11851 # Source tree 11852 echo "$srcdir/$f" 11853 else 11854 # /dev/null tree 11855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11856echo "$as_me: error: cannot find input file: $f" >&2;} 11857 { (exit 1); exit 1; }; } 11858 fi;; 11859 esac 11860 done` || { (exit 1); exit 1; } 11861 11862 if test x"$ac_file" != x-; then 11863 { echo "$as_me:$LINENO: creating $ac_file" >&5 11864echo "$as_me: creating $ac_file" >&6;} 11865 rm -f "$ac_file" 11866 fi 11867_ACEOF 11868cat >>$CONFIG_STATUS <<_ACEOF 11869 sed "$ac_vpsub 11870$extrasub 11871_ACEOF 11872cat >>$CONFIG_STATUS <<\_ACEOF 11873:t 11874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11875s,@configure_input@,$configure_input,;t t 11876s,@srcdir@,$ac_srcdir,;t t 11877s,@abs_srcdir@,$ac_abs_srcdir,;t t 11878s,@top_srcdir@,$ac_top_srcdir,;t t 11879s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11880s,@builddir@,$ac_builddir,;t t 11881s,@abs_builddir@,$ac_abs_builddir,;t t 11882s,@top_builddir@,$ac_top_builddir,;t t 11883s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11884s,@INSTALL@,$ac_INSTALL,;t t 11885" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11886 rm -f $tmp/stdin 11887 if test x"$ac_file" != x-; then 11888 mv $tmp/out $ac_file 11889 else 11890 cat $tmp/out 11891 rm -f $tmp/out 11892 fi 11893 11894done 11895_ACEOF 11896cat >>$CONFIG_STATUS <<\_ACEOF 11897 11898# 11899# CONFIG_HEADER section. 11900# 11901 11902# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 11903# NAME is the cpp macro being defined and VALUE is the value it is being given. 11904# 11905# ac_d sets the value in "#define NAME VALUE" lines. 11906ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 11907ac_dB='[ ].*$,\1#\2' 11908ac_dC=' ' 11909ac_dD=',;t' 11910# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 11911ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 11912ac_uB='$,\1#\2define\3' 11913ac_uC=' ' 11914ac_uD=',;t' 11915 11916for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 11917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11918 case $ac_file in 11919 - | *:- | *:-:* ) # input from stdin 11920 cat >$tmp/stdin 11921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11925 * ) ac_file_in=$ac_file.in ;; 11926 esac 11927 11928 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 11929echo "$as_me: creating $ac_file" >&6;} 11930 11931 # First look for the input files in the build tree, otherwise in the 11932 # src tree. 11933 ac_file_inputs=`IFS=: 11934 for f in $ac_file_in; do 11935 case $f in 11936 -) echo $tmp/stdin ;; 11937 [\\/$]*) 11938 # Absolute (can't be DOS-style, as IFS=:) 11939 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11940echo "$as_me: error: cannot find input file: $f" >&2;} 11941 { (exit 1); exit 1; }; } 11942 # Do quote $f, to prevent DOS paths from being IFS'd. 11943 echo "$f";; 11944 *) # Relative 11945 if test -f "$f"; then 11946 # Build tree 11947 echo "$f" 11948 elif test -f "$srcdir/$f"; then 11949 # Source tree 11950 echo "$srcdir/$f" 11951 else 11952 # /dev/null tree 11953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11954echo "$as_me: error: cannot find input file: $f" >&2;} 11955 { (exit 1); exit 1; }; } 11956 fi;; 11957 esac 11958 done` || { (exit 1); exit 1; } 11959 # Remove the trailing spaces. 11960 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 11961 11962_ACEOF 11963 11964# Transform confdefs.h into two sed scripts, `conftest.defines' and 11965# `conftest.undefs', that substitutes the proper values into 11966# config.h.in to produce config.h. The first handles `#define' 11967# templates, and the second `#undef' templates. 11968# And first: Protect against being on the right side of a sed subst in 11969# config.status. Protect against being in an unquoted here document 11970# in config.status. 11971rm -f conftest.defines conftest.undefs 11972# Using a here document instead of a string reduces the quoting nightmare. 11973# Putting comments in sed scripts is not portable. 11974# 11975# `end' is used to avoid that the second main sed command (meant for 11976# 0-ary CPP macros) applies to n-ary macro definitions. 11977# See the Autoconf documentation for `clear'. 11978cat >confdef2sed.sed <<\_ACEOF 11979s/[\\&,]/\\&/g 11980s,[\\$`],\\&,g 11981t clear 11982: clear 11983s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 11984t end 11985s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 11986: end 11987_ACEOF 11988# If some macros were called several times there might be several times 11989# the same #defines, which is useless. Nevertheless, we may not want to 11990# sort them, since we want the *last* AC-DEFINE to be honored. 11991uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 11992sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 11993rm -f confdef2sed.sed 11994 11995# This sed command replaces #undef with comments. This is necessary, for 11996# example, in the case of _POSIX_SOURCE, which is predefined and required 11997# on some systems where configure will not decide to define it. 11998cat >>conftest.undefs <<\_ACEOF 11999s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12000_ACEOF 12001 12002# Break up conftest.defines because some shells have a limit on the size 12003# of here documents, and old seds have small limits too (100 cmds). 12004echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12005echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12006echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12007echo ' :' >>$CONFIG_STATUS 12008rm -f conftest.tail 12009while grep . conftest.defines >/dev/null 12010do 12011 # Write a limited-size here document to $tmp/defines.sed. 12012 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12013 # Speed up: don't consider the non `#define' lines. 12014 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12015 # Work around the forget-to-reset-the-flag bug. 12016 echo 't clr' >>$CONFIG_STATUS 12017 echo ': clr' >>$CONFIG_STATUS 12018 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12019 echo 'CEOF 12020 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12021 rm -f $tmp/in 12022 mv $tmp/out $tmp/in 12023' >>$CONFIG_STATUS 12024 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12025 rm -f conftest.defines 12026 mv conftest.tail conftest.defines 12027done 12028rm -f conftest.defines 12029echo ' fi # grep' >>$CONFIG_STATUS 12030echo >>$CONFIG_STATUS 12031 12032# Break up conftest.undefs because some shells have a limit on the size 12033# of here documents, and old seds have small limits too (100 cmds). 12034echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12035rm -f conftest.tail 12036while grep . conftest.undefs >/dev/null 12037do 12038 # Write a limited-size here document to $tmp/undefs.sed. 12039 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12040 # Speed up: don't consider the non `#undef' 12041 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12042 # Work around the forget-to-reset-the-flag bug. 12043 echo 't clr' >>$CONFIG_STATUS 12044 echo ': clr' >>$CONFIG_STATUS 12045 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12046 echo 'CEOF 12047 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12048 rm -f $tmp/in 12049 mv $tmp/out $tmp/in 12050' >>$CONFIG_STATUS 12051 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12052 rm -f conftest.undefs 12053 mv conftest.tail conftest.undefs 12054done 12055rm -f conftest.undefs 12056 12057cat >>$CONFIG_STATUS <<\_ACEOF 12058 # Let's still pretend it is `configure' which instantiates (i.e., don't 12059 # use $as_me), people would be surprised to read: 12060 # /* config.h. Generated by config.status. */ 12061 if test x"$ac_file" = x-; then 12062 echo "/* Generated by configure. */" >$tmp/config.h 12063 else 12064 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12065 fi 12066 cat $tmp/in >>$tmp/config.h 12067 rm -f $tmp/in 12068 if test x"$ac_file" != x-; then 12069 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12070 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12071echo "$as_me: $ac_file is unchanged" >&6;} 12072 else 12073 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12075 X"$ac_file" : 'X\(//\)[^/]' \| \ 12076 X"$ac_file" : 'X\(//\)$' \| \ 12077 X"$ac_file" : 'X\(/\)' \| \ 12078 . : '\(.\)' 2>/dev/null || 12079echo X"$ac_file" | 12080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12081 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12082 /^X\(\/\/\)$/{ s//\1/; q; } 12083 /^X\(\/\).*/{ s//\1/; q; } 12084 s/.*/./; q'` 12085 { if $as_mkdir_p; then 12086 mkdir -p "$ac_dir" 12087 else 12088 as_dir="$ac_dir" 12089 as_dirs= 12090 while test ! -d "$as_dir"; do 12091 as_dirs="$as_dir $as_dirs" 12092 as_dir=`(dirname "$as_dir") 2>/dev/null || 12093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12094 X"$as_dir" : 'X\(//\)[^/]' \| \ 12095 X"$as_dir" : 'X\(//\)$' \| \ 12096 X"$as_dir" : 'X\(/\)' \| \ 12097 . : '\(.\)' 2>/dev/null || 12098echo X"$as_dir" | 12099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12100 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12101 /^X\(\/\/\)$/{ s//\1/; q; } 12102 /^X\(\/\).*/{ s//\1/; q; } 12103 s/.*/./; q'` 12104 done 12105 test ! -n "$as_dirs" || mkdir $as_dirs 12106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12108 { (exit 1); exit 1; }; }; } 12109 12110 rm -f $ac_file 12111 mv $tmp/config.h $ac_file 12112 fi 12113 else 12114 cat $tmp/config.h 12115 rm -f $tmp/config.h 12116 fi 12117# Compute $ac_file's index in $config_headers. 12118_am_stamp_count=1 12119for _am_header in $config_headers :; do 12120 case $_am_header in 12121 $ac_file | $ac_file:* ) 12122 break ;; 12123 * ) 12124 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12125 esac 12126done 12127echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 12128$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12129 X$ac_file : 'X\(//\)[^/]' \| \ 12130 X$ac_file : 'X\(//\)$' \| \ 12131 X$ac_file : 'X\(/\)' \| \ 12132 . : '\(.\)' 2>/dev/null || 12133echo X$ac_file | 12134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12135 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12136 /^X\(\/\/\)$/{ s//\1/; q; } 12137 /^X\(\/\).*/{ s//\1/; q; } 12138 s/.*/./; q'`/stamp-h$_am_stamp_count 12139done 12140_ACEOF 12141cat >>$CONFIG_STATUS <<\_ACEOF 12142 12143# 12144# CONFIG_COMMANDS section. 12145# 12146for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12147 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12148 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12149 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12150$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12151 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12152 X"$ac_dest" : 'X\(//\)$' \| \ 12153 X"$ac_dest" : 'X\(/\)' \| \ 12154 . : '\(.\)' 2>/dev/null || 12155echo X"$ac_dest" | 12156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12157 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12158 /^X\(\/\/\)$/{ s//\1/; q; } 12159 /^X\(\/\).*/{ s//\1/; q; } 12160 s/.*/./; q'` 12161 { if $as_mkdir_p; then 12162 mkdir -p "$ac_dir" 12163 else 12164 as_dir="$ac_dir" 12165 as_dirs= 12166 while test ! -d "$as_dir"; do 12167 as_dirs="$as_dir $as_dirs" 12168 as_dir=`(dirname "$as_dir") 2>/dev/null || 12169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12170 X"$as_dir" : 'X\(//\)[^/]' \| \ 12171 X"$as_dir" : 'X\(//\)$' \| \ 12172 X"$as_dir" : 'X\(/\)' \| \ 12173 . : '\(.\)' 2>/dev/null || 12174echo X"$as_dir" | 12175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12176 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12177 /^X\(\/\/\)$/{ s//\1/; q; } 12178 /^X\(\/\).*/{ s//\1/; q; } 12179 s/.*/./; q'` 12180 done 12181 test ! -n "$as_dirs" || mkdir $as_dirs 12182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12183echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12184 { (exit 1); exit 1; }; }; } 12185 12186 ac_builddir=. 12187 12188if test "$ac_dir" != .; then 12189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12190 # A "../" for each directory in $ac_dir_suffix. 12191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12192else 12193 ac_dir_suffix= ac_top_builddir= 12194fi 12195 12196case $srcdir in 12197 .) # No --srcdir option. We are building in place. 12198 ac_srcdir=. 12199 if test -z "$ac_top_builddir"; then 12200 ac_top_srcdir=. 12201 else 12202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12203 fi ;; 12204 [\\/]* | ?:[\\/]* ) # Absolute path. 12205 ac_srcdir=$srcdir$ac_dir_suffix; 12206 ac_top_srcdir=$srcdir ;; 12207 *) # Relative path. 12208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12209 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12210esac 12211 12212# Do not use `cd foo && pwd` to compute absolute paths, because 12213# the directories may not exist. 12214case `pwd` in 12215.) ac_abs_builddir="$ac_dir";; 12216*) 12217 case "$ac_dir" in 12218 .) ac_abs_builddir=`pwd`;; 12219 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12220 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12221 esac;; 12222esac 12223case $ac_abs_builddir in 12224.) ac_abs_top_builddir=${ac_top_builddir}.;; 12225*) 12226 case ${ac_top_builddir}. in 12227 .) ac_abs_top_builddir=$ac_abs_builddir;; 12228 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12229 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12230 esac;; 12231esac 12232case $ac_abs_builddir in 12233.) ac_abs_srcdir=$ac_srcdir;; 12234*) 12235 case $ac_srcdir in 12236 .) ac_abs_srcdir=$ac_abs_builddir;; 12237 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12238 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12239 esac;; 12240esac 12241case $ac_abs_builddir in 12242.) ac_abs_top_srcdir=$ac_top_srcdir;; 12243*) 12244 case $ac_top_srcdir in 12245 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12246 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12247 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12248 esac;; 12249esac 12250 12251 12252 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12253echo "$as_me: executing $ac_dest commands" >&6;} 12254 case $ac_dest in 12255 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 12256 # Strip MF so we end up with the name of the file. 12257 mf=`echo "$mf" | sed -e 's/:.*$//'` 12258 # Check whether this is an Automake generated Makefile or not. 12259 # We used to match only the files named `Makefile.in', but 12260 # some people rename them; so instead we look at the file content. 12261 # Grep'ing the first line is not enough: some people post-process 12262 # each Makefile.in and add a new line on top of each file to say so. 12263 # So let's grep whole file. 12264 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 12265 dirpart=`(dirname "$mf") 2>/dev/null || 12266$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12267 X"$mf" : 'X\(//\)[^/]' \| \ 12268 X"$mf" : 'X\(//\)$' \| \ 12269 X"$mf" : 'X\(/\)' \| \ 12270 . : '\(.\)' 2>/dev/null || 12271echo X"$mf" | 12272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12273 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12274 /^X\(\/\/\)$/{ s//\1/; q; } 12275 /^X\(\/\).*/{ s//\1/; q; } 12276 s/.*/./; q'` 12277 else 12278 continue 12279 fi 12280 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 12281 # Extract the definition of DEP_FILES from the Makefile without 12282 # running `make'. 12283 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12284 test -z "$DEPDIR" && continue 12285 # When using ansi2knr, U may be empty or an underscore; expand it 12286 U=`sed -n 's/^U = //p' < "$mf"` 12287 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 12288 # We invoke sed twice because it is the simplest approach to 12289 # changing $(DEPDIR) to its actual value in the expansion. 12290 for file in `sed -n ' 12291 /^DEP_FILES = .*\\\\$/ { 12292 s/^DEP_FILES = // 12293 :loop 12294 s/\\\\$// 12295 p 12296 n 12297 /\\\\$/ b loop 12298 p 12299 } 12300 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 12301 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12302 # Make sure the directory exists. 12303 test -f "$dirpart/$file" && continue 12304 fdir=`(dirname "$file") 2>/dev/null || 12305$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12306 X"$file" : 'X\(//\)[^/]' \| \ 12307 X"$file" : 'X\(//\)$' \| \ 12308 X"$file" : 'X\(/\)' \| \ 12309 . : '\(.\)' 2>/dev/null || 12310echo X"$file" | 12311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12312 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12313 /^X\(\/\/\)$/{ s//\1/; q; } 12314 /^X\(\/\).*/{ s//\1/; q; } 12315 s/.*/./; q'` 12316 { if $as_mkdir_p; then 12317 mkdir -p $dirpart/$fdir 12318 else 12319 as_dir=$dirpart/$fdir 12320 as_dirs= 12321 while test ! -d "$as_dir"; do 12322 as_dirs="$as_dir $as_dirs" 12323 as_dir=`(dirname "$as_dir") 2>/dev/null || 12324$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12325 X"$as_dir" : 'X\(//\)[^/]' \| \ 12326 X"$as_dir" : 'X\(//\)$' \| \ 12327 X"$as_dir" : 'X\(/\)' \| \ 12328 . : '\(.\)' 2>/dev/null || 12329echo X"$as_dir" | 12330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12331 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12332 /^X\(\/\/\)$/{ s//\1/; q; } 12333 /^X\(\/\).*/{ s//\1/; q; } 12334 s/.*/./; q'` 12335 done 12336 test ! -n "$as_dirs" || mkdir $as_dirs 12337 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 12338echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 12339 { (exit 1); exit 1; }; }; } 12340 12341 # echo "creating $dirpart/$file" 12342 echo '# dummy' > "$dirpart/$file" 12343 done 12344done 12345 ;; 12346 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h 12347 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h 12348 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h 12349 echo '#include "te-'"${te_file}"'.h"' > targ-env.h 12350 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h 12351 if test "x$cgen_cpu_prefix" != x ; then 12352 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h 12353 fi 12354 12355 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; 12356 esac 12357done 12358_ACEOF 12359 12360cat >>$CONFIG_STATUS <<\_ACEOF 12361 12362{ (exit 0); exit 0; } 12363_ACEOF 12364chmod +x $CONFIG_STATUS 12365ac_clean_files=$ac_clean_files_save 12366 12367 12368# configure is writing to config.log, and then calls config.status. 12369# config.status does its own redirection, appending to config.log. 12370# Unfortunately, on DOS this fails, as config.log is still kept open 12371# by configure, so config.status won't be able to write to it; its 12372# output is simply discarded. So we exec the FD to /dev/null, 12373# effectively closing config.log, so it can be properly (re)opened and 12374# appended to by config.status. When coming back to configure, we 12375# need to make the FD available again. 12376if test "$no_create" != yes; then 12377 ac_cs_success=: 12378 ac_config_status_args= 12379 test "$silent" = yes && 12380 ac_config_status_args="$ac_config_status_args --quiet" 12381 exec 5>/dev/null 12382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12383 exec 5>>config.log 12384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12385 # would make configure fail if this is the last instruction. 12386 $ac_cs_success || { (exit 1); exit 1; } 12387fi 12388 12389