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="gprof.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL 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 WARN_CFLAGS NO_WERROR datarootdir docdir htmldir 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 --disable-nls do not use Native Language Support 860 --enable-maintainer-mode enable make rules and dependencies not useful 861 (and sometimes confusing) to the casual installer 862 --enable-werror treat compile warnings as errors 863 --enable-build-warnings Enable build-time compiler warnings 864 865Optional Packages: 866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 868 --with-gnu-ld assume the C compiler uses GNU ld default=no 869 --with-pic try to use only PIC/non-PIC objects default=use both 870 --with-included-gettext use the GNU gettext library included here 871 872Some influential environment variables: 873 CC C compiler command 874 CFLAGS C compiler flags 875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 876 nonstandard directory <lib dir> 877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 878 headers in a nonstandard directory <include dir> 879 CPP C preprocessor 880 881Use these variables to override the choices made by `configure' or to help 882it to find libraries and programs with nonstandard names/locations. 883 884_ACEOF 885fi 886 887if test "$ac_init_help" = "recursive"; then 888 # If there are subdirs, report their specific --help. 889 ac_popdir=`pwd` 890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 891 test -d $ac_dir || continue 892 ac_builddir=. 893 894if test "$ac_dir" != .; then 895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 896 # A "../" for each directory in $ac_dir_suffix. 897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 898else 899 ac_dir_suffix= ac_top_builddir= 900fi 901 902case $srcdir in 903 .) # No --srcdir option. We are building in place. 904 ac_srcdir=. 905 if test -z "$ac_top_builddir"; then 906 ac_top_srcdir=. 907 else 908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 909 fi ;; 910 [\\/]* | ?:[\\/]* ) # Absolute path. 911 ac_srcdir=$srcdir$ac_dir_suffix; 912 ac_top_srcdir=$srcdir ;; 913 *) # Relative path. 914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 915 ac_top_srcdir=$ac_top_builddir$srcdir ;; 916esac 917 918# Do not use `cd foo && pwd` to compute absolute paths, because 919# the directories may not exist. 920case `pwd` in 921.) ac_abs_builddir="$ac_dir";; 922*) 923 case "$ac_dir" in 924 .) ac_abs_builddir=`pwd`;; 925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 926 *) ac_abs_builddir=`pwd`/"$ac_dir";; 927 esac;; 928esac 929case $ac_abs_builddir in 930.) ac_abs_top_builddir=${ac_top_builddir}.;; 931*) 932 case ${ac_top_builddir}. in 933 .) ac_abs_top_builddir=$ac_abs_builddir;; 934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 936 esac;; 937esac 938case $ac_abs_builddir in 939.) ac_abs_srcdir=$ac_srcdir;; 940*) 941 case $ac_srcdir in 942 .) ac_abs_srcdir=$ac_abs_builddir;; 943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 945 esac;; 946esac 947case $ac_abs_builddir in 948.) ac_abs_top_srcdir=$ac_top_srcdir;; 949*) 950 case $ac_top_srcdir in 951 .) ac_abs_top_srcdir=$ac_abs_builddir;; 952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 954 esac;; 955esac 956 957 cd $ac_dir 958 # Check for guested configure; otherwise get Cygnus style configure. 959 if test -f $ac_srcdir/configure.gnu; then 960 echo 961 $SHELL $ac_srcdir/configure.gnu --help=recursive 962 elif test -f $ac_srcdir/configure; then 963 echo 964 $SHELL $ac_srcdir/configure --help=recursive 965 elif test -f $ac_srcdir/configure.ac || 966 test -f $ac_srcdir/configure.in; then 967 echo 968 $ac_configure --help 969 else 970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 971 fi 972 cd $ac_popdir 973 done 974fi 975 976test -n "$ac_init_help" && exit 0 977if $ac_init_version; then 978 cat <<\_ACEOF 979 980Copyright (C) 2003 Free Software Foundation, Inc. 981This configure script is free software; the Free Software Foundation 982gives unlimited permission to copy, distribute and modify it. 983_ACEOF 984 exit 0 985fi 986exec 5>config.log 987cat >&5 <<_ACEOF 988This file contains any messages produced by compilers while 989running configure, to aid debugging if configure makes a mistake. 990 991It was created by $as_me, which was 992generated by GNU Autoconf 2.59. Invocation command line was 993 994 $ $0 $@ 995 996_ACEOF 997{ 998cat <<_ASUNAME 999## --------- ## 1000## Platform. ## 1001## --------- ## 1002 1003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1004uname -m = `(uname -m) 2>/dev/null || echo unknown` 1005uname -r = `(uname -r) 2>/dev/null || echo unknown` 1006uname -s = `(uname -s) 2>/dev/null || echo unknown` 1007uname -v = `(uname -v) 2>/dev/null || echo unknown` 1008 1009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1010/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1011 1012/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1013/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1015hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1016/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1017/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1018/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1019 1020_ASUNAME 1021 1022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1023for as_dir in $PATH 1024do 1025 IFS=$as_save_IFS 1026 test -z "$as_dir" && as_dir=. 1027 echo "PATH: $as_dir" 1028done 1029 1030} >&5 1031 1032cat >&5 <<_ACEOF 1033 1034 1035## ----------- ## 1036## Core tests. ## 1037## ----------- ## 1038 1039_ACEOF 1040 1041 1042# Keep a trace of the command line. 1043# Strip out --no-create and --no-recursion so they do not pile up. 1044# Strip out --silent because we don't want to record it for future runs. 1045# Also quote any args containing shell meta-characters. 1046# Make two passes to allow for proper duplicate-argument suppression. 1047ac_configure_args= 1048ac_configure_args0= 1049ac_configure_args1= 1050ac_sep= 1051ac_must_keep_next=false 1052for ac_pass in 1 2 1053do 1054 for ac_arg 1055 do 1056 case $ac_arg in 1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1059 | -silent | --silent | --silen | --sile | --sil) 1060 continue ;; 1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1063 esac 1064 case $ac_pass in 1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1066 2) 1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1068 if test $ac_must_keep_next = true; then 1069 ac_must_keep_next=false # Got value, back to normal. 1070 else 1071 case $ac_arg in 1072 *=* | --config-cache | -C | -disable-* | --disable-* \ 1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1075 | -with-* | --with-* | -without-* | --without-* | --x) 1076 case "$ac_configure_args0 " in 1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1078 esac 1079 ;; 1080 -* ) ac_must_keep_next=true ;; 1081 esac 1082 fi 1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1084 # Get rid of the leading space. 1085 ac_sep=" " 1086 ;; 1087 esac 1088 done 1089done 1090$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1091$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1092 1093# When interrupted or exit'd, cleanup temporary files, and complete 1094# config.log. We remove comments because anyway the quotes in there 1095# would cause problems or look ugly. 1096# WARNING: Be sure not to use single quotes in there, as some shells, 1097# such as our DU 5.0 friend, will then `close' the trap. 1098trap 'exit_status=$? 1099 # Save into config.log some information that might help in debugging. 1100 { 1101 echo 1102 1103 cat <<\_ASBOX 1104## ---------------- ## 1105## Cache variables. ## 1106## ---------------- ## 1107_ASBOX 1108 echo 1109 # The following way of writing the cache mishandles newlines in values, 1110{ 1111 (set) 2>&1 | 1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1113 *ac_space=\ *) 1114 sed -n \ 1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1117 ;; 1118 *) 1119 sed -n \ 1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1121 ;; 1122 esac; 1123} 1124 echo 1125 1126 cat <<\_ASBOX 1127## ----------------- ## 1128## Output variables. ## 1129## ----------------- ## 1130_ASBOX 1131 echo 1132 for ac_var in $ac_subst_vars 1133 do 1134 eval ac_val=$`echo $ac_var` 1135 echo "$ac_var='"'"'$ac_val'"'"'" 1136 done | sort 1137 echo 1138 1139 if test -n "$ac_subst_files"; then 1140 cat <<\_ASBOX 1141## ------------- ## 1142## Output files. ## 1143## ------------- ## 1144_ASBOX 1145 echo 1146 for ac_var in $ac_subst_files 1147 do 1148 eval ac_val=$`echo $ac_var` 1149 echo "$ac_var='"'"'$ac_val'"'"'" 1150 done | sort 1151 echo 1152 fi 1153 1154 if test -s confdefs.h; then 1155 cat <<\_ASBOX 1156## ----------- ## 1157## confdefs.h. ## 1158## ----------- ## 1159_ASBOX 1160 echo 1161 sed "/^$/d" confdefs.h | sort 1162 echo 1163 fi 1164 test "$ac_signal" != 0 && 1165 echo "$as_me: caught signal $ac_signal" 1166 echo "$as_me: exit $exit_status" 1167 } >&5 1168 rm -f core *.core && 1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1170 exit $exit_status 1171 ' 0 1172for ac_signal in 1 2 13 15; do 1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1174done 1175ac_signal=0 1176 1177# confdefs.h avoids OS command line length limits that DEFS can exceed. 1178rm -rf conftest* confdefs.h 1179# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1180echo >confdefs.h 1181 1182# Predefined preprocessor variables. 1183 1184cat >>confdefs.h <<_ACEOF 1185#define PACKAGE_NAME "$PACKAGE_NAME" 1186_ACEOF 1187 1188 1189cat >>confdefs.h <<_ACEOF 1190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1191_ACEOF 1192 1193 1194cat >>confdefs.h <<_ACEOF 1195#define PACKAGE_VERSION "$PACKAGE_VERSION" 1196_ACEOF 1197 1198 1199cat >>confdefs.h <<_ACEOF 1200#define PACKAGE_STRING "$PACKAGE_STRING" 1201_ACEOF 1202 1203 1204cat >>confdefs.h <<_ACEOF 1205#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1206_ACEOF 1207 1208 1209# Let the site file select an alternate cache file if it wants to. 1210# Prefer explicitly selected file to automatically selected ones. 1211if test -z "$CONFIG_SITE"; then 1212 if test "x$prefix" != xNONE; then 1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1214 else 1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1216 fi 1217fi 1218for ac_site_file in $CONFIG_SITE; do 1219 if test -r "$ac_site_file"; then 1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1221echo "$as_me: loading site script $ac_site_file" >&6;} 1222 sed 's/^/| /' "$ac_site_file" >&5 1223 . "$ac_site_file" 1224 fi 1225done 1226 1227if test -r "$cache_file"; then 1228 # Some versions of bash will fail to source /dev/null (special 1229 # files actually), so we avoid doing that. 1230 if test -f "$cache_file"; then 1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1232echo "$as_me: loading cache $cache_file" >&6;} 1233 case $cache_file in 1234 [\\/]* | ?:[\\/]* ) . $cache_file;; 1235 *) . ./$cache_file;; 1236 esac 1237 fi 1238else 1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1240echo "$as_me: creating cache $cache_file" >&6;} 1241 >$cache_file 1242fi 1243 1244# Check that the precious variables saved in the cache have kept the same 1245# value. 1246ac_cache_corrupted=false 1247for ac_var in `(set) 2>&1 | 1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1250 eval ac_new_set=\$ac_env_${ac_var}_set 1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1252 eval ac_new_val="\$ac_env_${ac_var}_value" 1253 case $ac_old_set,$ac_new_set in 1254 set,) 1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1256echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1257 ac_cache_corrupted=: ;; 1258 ,set) 1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1260echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1261 ac_cache_corrupted=: ;; 1262 ,);; 1263 *) 1264 if test "x$ac_old_val" != "x$ac_new_val"; then 1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1266echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1268echo "$as_me: former value: $ac_old_val" >&2;} 1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1270echo "$as_me: current value: $ac_new_val" >&2;} 1271 ac_cache_corrupted=: 1272 fi;; 1273 esac 1274 # Pass precious variables to config.status. 1275 if test "$ac_new_set" = set; then 1276 case $ac_new_val in 1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1279 *) ac_arg=$ac_var=$ac_new_val ;; 1280 esac 1281 case " $ac_configure_args " in 1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1284 esac 1285 fi 1286done 1287if $ac_cache_corrupted; then 1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1289echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1291echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1292 { (exit 1); exit 1; }; } 1293fi 1294 1295ac_ext=c 1296ac_cpp='$CPP $CPPFLAGS' 1297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1299ac_compiler_gnu=$ac_cv_c_compiler_gnu 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321ac_aux_dir= 1322for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1323 if test -f $ac_dir/install-sh; then 1324 ac_aux_dir=$ac_dir 1325 ac_install_sh="$ac_aux_dir/install-sh -c" 1326 break 1327 elif test -f $ac_dir/install.sh; then 1328 ac_aux_dir=$ac_dir 1329 ac_install_sh="$ac_aux_dir/install.sh -c" 1330 break 1331 elif test -f $ac_dir/shtool; then 1332 ac_aux_dir=$ac_dir 1333 ac_install_sh="$ac_aux_dir/shtool install -c" 1334 break 1335 fi 1336done 1337if test -z "$ac_aux_dir"; then 1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1339echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1340 { (exit 1); exit 1; }; } 1341fi 1342ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1343ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1344ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1345 1346# Make sure we can run config.sub. 1347$ac_config_sub sun4 >/dev/null 2>&1 || 1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1349echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1350 { (exit 1); exit 1; }; } 1351 1352echo "$as_me:$LINENO: checking build system type" >&5 1353echo $ECHO_N "checking build system type... $ECHO_C" >&6 1354if test "${ac_cv_build+set}" = set; then 1355 echo $ECHO_N "(cached) $ECHO_C" >&6 1356else 1357 ac_cv_build_alias=$build_alias 1358test -z "$ac_cv_build_alias" && 1359 ac_cv_build_alias=`$ac_config_guess` 1360test -z "$ac_cv_build_alias" && 1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1362echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1363 { (exit 1); exit 1; }; } 1364ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1366echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1367 { (exit 1); exit 1; }; } 1368 1369fi 1370echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1371echo "${ECHO_T}$ac_cv_build" >&6 1372build=$ac_cv_build 1373build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1374build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1375build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1376 1377 1378echo "$as_me:$LINENO: checking host system type" >&5 1379echo $ECHO_N "checking host system type... $ECHO_C" >&6 1380if test "${ac_cv_host+set}" = set; then 1381 echo $ECHO_N "(cached) $ECHO_C" >&6 1382else 1383 ac_cv_host_alias=$host_alias 1384test -z "$ac_cv_host_alias" && 1385 ac_cv_host_alias=$ac_cv_build_alias 1386ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1388echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1389 { (exit 1); exit 1; }; } 1390 1391fi 1392echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1393echo "${ECHO_T}$ac_cv_host" >&6 1394host=$ac_cv_host 1395host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1396host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1397host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1398 1399 1400echo "$as_me:$LINENO: checking target system type" >&5 1401echo $ECHO_N "checking target system type... $ECHO_C" >&6 1402if test "${ac_cv_target+set}" = set; then 1403 echo $ECHO_N "(cached) $ECHO_C" >&6 1404else 1405 ac_cv_target_alias=$target_alias 1406test "x$ac_cv_target_alias" = "x" && 1407 ac_cv_target_alias=$ac_cv_host_alias 1408ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1410echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1411 { (exit 1); exit 1; }; } 1412 1413fi 1414echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1415echo "${ECHO_T}$ac_cv_target" >&6 1416target=$ac_cv_target 1417target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1418target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1419target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1420 1421 1422# The aliases save the names the user supplied, while $host etc. 1423# will get canonicalized. 1424test -n "$target_alias" && 1425 test "$program_prefix$program_suffix$program_transform_name" = \ 1426 NONENONEs,x,x, && 1427 program_prefix=${target_alias}- 1428ac_ext=c 1429ac_cpp='$CPP $CPPFLAGS' 1430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1432ac_compiler_gnu=$ac_cv_c_compiler_gnu 1433if test -n "$ac_tool_prefix"; then 1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1435set dummy ${ac_tool_prefix}gcc; ac_word=$2 1436echo "$as_me:$LINENO: checking for $ac_word" >&5 1437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1438if test "${ac_cv_prog_CC+set}" = set; then 1439 echo $ECHO_N "(cached) $ECHO_C" >&6 1440else 1441 if test -n "$CC"; then 1442 ac_cv_prog_CC="$CC" # Let the user override the test. 1443else 1444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1445for as_dir in $PATH 1446do 1447 IFS=$as_save_IFS 1448 test -z "$as_dir" && as_dir=. 1449 for ac_exec_ext in '' $ac_executable_extensions; do 1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1451 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1453 break 2 1454 fi 1455done 1456done 1457 1458fi 1459fi 1460CC=$ac_cv_prog_CC 1461if test -n "$CC"; then 1462 echo "$as_me:$LINENO: result: $CC" >&5 1463echo "${ECHO_T}$CC" >&6 1464else 1465 echo "$as_me:$LINENO: result: no" >&5 1466echo "${ECHO_T}no" >&6 1467fi 1468 1469fi 1470if test -z "$ac_cv_prog_CC"; then 1471 ac_ct_CC=$CC 1472 # Extract the first word of "gcc", so it can be a program name with args. 1473set dummy gcc; ac_word=$2 1474echo "$as_me:$LINENO: checking for $ac_word" >&5 1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478else 1479 if test -n "$ac_ct_CC"; then 1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1481else 1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1483for as_dir in $PATH 1484do 1485 IFS=$as_save_IFS 1486 test -z "$as_dir" && as_dir=. 1487 for ac_exec_ext in '' $ac_executable_extensions; do 1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1489 ac_cv_prog_ac_ct_CC="gcc" 1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1491 break 2 1492 fi 1493done 1494done 1495 1496fi 1497fi 1498ac_ct_CC=$ac_cv_prog_ac_ct_CC 1499if test -n "$ac_ct_CC"; then 1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1501echo "${ECHO_T}$ac_ct_CC" >&6 1502else 1503 echo "$as_me:$LINENO: result: no" >&5 1504echo "${ECHO_T}no" >&6 1505fi 1506 1507 CC=$ac_ct_CC 1508else 1509 CC="$ac_cv_prog_CC" 1510fi 1511 1512if test -z "$CC"; then 1513 if test -n "$ac_tool_prefix"; then 1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1515set dummy ${ac_tool_prefix}cc; ac_word=$2 1516echo "$as_me:$LINENO: checking for $ac_word" >&5 1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1518if test "${ac_cv_prog_CC+set}" = set; then 1519 echo $ECHO_N "(cached) $ECHO_C" >&6 1520else 1521 if test -n "$CC"; then 1522 ac_cv_prog_CC="$CC" # Let the user override the test. 1523else 1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1525for as_dir in $PATH 1526do 1527 IFS=$as_save_IFS 1528 test -z "$as_dir" && as_dir=. 1529 for ac_exec_ext in '' $ac_executable_extensions; do 1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1531 ac_cv_prog_CC="${ac_tool_prefix}cc" 1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1533 break 2 1534 fi 1535done 1536done 1537 1538fi 1539fi 1540CC=$ac_cv_prog_CC 1541if test -n "$CC"; then 1542 echo "$as_me:$LINENO: result: $CC" >&5 1543echo "${ECHO_T}$CC" >&6 1544else 1545 echo "$as_me:$LINENO: result: no" >&5 1546echo "${ECHO_T}no" >&6 1547fi 1548 1549fi 1550if test -z "$ac_cv_prog_CC"; then 1551 ac_ct_CC=$CC 1552 # Extract the first word of "cc", so it can be a program name with args. 1553set dummy cc; ac_word=$2 1554echo "$as_me:$LINENO: checking for $ac_word" >&5 1555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1557 echo $ECHO_N "(cached) $ECHO_C" >&6 1558else 1559 if test -n "$ac_ct_CC"; then 1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1561else 1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1563for as_dir in $PATH 1564do 1565 IFS=$as_save_IFS 1566 test -z "$as_dir" && as_dir=. 1567 for ac_exec_ext in '' $ac_executable_extensions; do 1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1569 ac_cv_prog_ac_ct_CC="cc" 1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1571 break 2 1572 fi 1573done 1574done 1575 1576fi 1577fi 1578ac_ct_CC=$ac_cv_prog_ac_ct_CC 1579if test -n "$ac_ct_CC"; then 1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1581echo "${ECHO_T}$ac_ct_CC" >&6 1582else 1583 echo "$as_me:$LINENO: result: no" >&5 1584echo "${ECHO_T}no" >&6 1585fi 1586 1587 CC=$ac_ct_CC 1588else 1589 CC="$ac_cv_prog_CC" 1590fi 1591 1592fi 1593if test -z "$CC"; then 1594 # Extract the first word of "cc", so it can be a program name with args. 1595set dummy cc; ac_word=$2 1596echo "$as_me:$LINENO: checking for $ac_word" >&5 1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1598if test "${ac_cv_prog_CC+set}" = set; then 1599 echo $ECHO_N "(cached) $ECHO_C" >&6 1600else 1601 if test -n "$CC"; then 1602 ac_cv_prog_CC="$CC" # Let the user override the test. 1603else 1604 ac_prog_rejected=no 1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1606for as_dir in $PATH 1607do 1608 IFS=$as_save_IFS 1609 test -z "$as_dir" && as_dir=. 1610 for ac_exec_ext in '' $ac_executable_extensions; do 1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1613 ac_prog_rejected=yes 1614 continue 1615 fi 1616 ac_cv_prog_CC="cc" 1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1618 break 2 1619 fi 1620done 1621done 1622 1623if test $ac_prog_rejected = yes; then 1624 # We found a bogon in the path, so make sure we never use it. 1625 set dummy $ac_cv_prog_CC 1626 shift 1627 if test $# != 0; then 1628 # We chose a different compiler from the bogus one. 1629 # However, it has the same basename, so the bogon will be chosen 1630 # first if we set CC to just the basename; use the full file name. 1631 shift 1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1633 fi 1634fi 1635fi 1636fi 1637CC=$ac_cv_prog_CC 1638if test -n "$CC"; then 1639 echo "$as_me:$LINENO: result: $CC" >&5 1640echo "${ECHO_T}$CC" >&6 1641else 1642 echo "$as_me:$LINENO: result: no" >&5 1643echo "${ECHO_T}no" >&6 1644fi 1645 1646fi 1647if test -z "$CC"; then 1648 if test -n "$ac_tool_prefix"; then 1649 for ac_prog in cl 1650 do 1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1652set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1653echo "$as_me:$LINENO: checking for $ac_word" >&5 1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1655if test "${ac_cv_prog_CC+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 1657else 1658 if test -n "$CC"; then 1659 ac_cv_prog_CC="$CC" # Let the user override the test. 1660else 1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1662for as_dir in $PATH 1663do 1664 IFS=$as_save_IFS 1665 test -z "$as_dir" && as_dir=. 1666 for ac_exec_ext in '' $ac_executable_extensions; do 1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1670 break 2 1671 fi 1672done 1673done 1674 1675fi 1676fi 1677CC=$ac_cv_prog_CC 1678if test -n "$CC"; then 1679 echo "$as_me:$LINENO: result: $CC" >&5 1680echo "${ECHO_T}$CC" >&6 1681else 1682 echo "$as_me:$LINENO: result: no" >&5 1683echo "${ECHO_T}no" >&6 1684fi 1685 1686 test -n "$CC" && break 1687 done 1688fi 1689if test -z "$CC"; then 1690 ac_ct_CC=$CC 1691 for ac_prog in cl 1692do 1693 # Extract the first word of "$ac_prog", so it can be a program name with args. 1694set dummy $ac_prog; ac_word=$2 1695echo "$as_me:$LINENO: checking for $ac_word" >&5 1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1698 echo $ECHO_N "(cached) $ECHO_C" >&6 1699else 1700 if test -n "$ac_ct_CC"; then 1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1702else 1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1704for as_dir in $PATH 1705do 1706 IFS=$as_save_IFS 1707 test -z "$as_dir" && as_dir=. 1708 for ac_exec_ext in '' $ac_executable_extensions; do 1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1710 ac_cv_prog_ac_ct_CC="$ac_prog" 1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1712 break 2 1713 fi 1714done 1715done 1716 1717fi 1718fi 1719ac_ct_CC=$ac_cv_prog_ac_ct_CC 1720if test -n "$ac_ct_CC"; then 1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1722echo "${ECHO_T}$ac_ct_CC" >&6 1723else 1724 echo "$as_me:$LINENO: result: no" >&5 1725echo "${ECHO_T}no" >&6 1726fi 1727 1728 test -n "$ac_ct_CC" && break 1729done 1730 1731 CC=$ac_ct_CC 1732fi 1733 1734fi 1735 1736 1737test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1738See \`config.log' for more details." >&5 1739echo "$as_me: error: no acceptable C compiler found in \$PATH 1740See \`config.log' for more details." >&2;} 1741 { (exit 1); exit 1; }; } 1742 1743# Provide some information about the compiler. 1744echo "$as_me:$LINENO:" \ 1745 "checking for C compiler version" >&5 1746ac_compiler=`set X $ac_compile; echo $2` 1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1748 (eval $ac_compiler --version </dev/null >&5) 2>&5 1749 ac_status=$? 1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1751 (exit $ac_status); } 1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1753 (eval $ac_compiler -v </dev/null >&5) 2>&5 1754 ac_status=$? 1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1756 (exit $ac_status); } 1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1758 (eval $ac_compiler -V </dev/null >&5) 2>&5 1759 ac_status=$? 1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1761 (exit $ac_status); } 1762 1763cat >conftest.$ac_ext <<_ACEOF 1764/* confdefs.h. */ 1765_ACEOF 1766cat confdefs.h >>conftest.$ac_ext 1767cat >>conftest.$ac_ext <<_ACEOF 1768/* end confdefs.h. */ 1769 1770int 1771main () 1772{ 1773 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778ac_clean_files_save=$ac_clean_files 1779ac_clean_files="$ac_clean_files a.out a.exe b.out" 1780# Try to create an executable without -o first, disregard a.out. 1781# It will help us diagnose broken compilers, and finding out an intuition 1782# of exeext. 1783echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1786if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1787 (eval $ac_link_default) 2>&5 1788 ac_status=$? 1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1790 (exit $ac_status); }; then 1791 # Find the output, starting from the most likely. This scheme is 1792# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1793# resort. 1794 1795# Be careful to initialize this variable, since it used to be cached. 1796# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1797ac_cv_exeext= 1798# b.out is created by i960 compilers. 1799for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1800do 1801 test -f "$ac_file" || continue 1802 case $ac_file in 1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1804 ;; 1805 conftest.$ac_ext ) 1806 # This is the source file. 1807 ;; 1808 [ab].out ) 1809 # We found the default executable, but exeext='' is most 1810 # certainly right. 1811 break;; 1812 *.* ) 1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1814 # FIXME: I believe we export ac_cv_exeext for Libtool, 1815 # but it would be cool to find out if it's true. Does anybody 1816 # maintain Libtool? --akim. 1817 export ac_cv_exeext 1818 break;; 1819 * ) 1820 break;; 1821 esac 1822done 1823else 1824 echo "$as_me: failed program was:" >&5 1825sed 's/^/| /' conftest.$ac_ext >&5 1826 1827{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1828See \`config.log' for more details." >&5 1829echo "$as_me: error: C compiler cannot create executables 1830See \`config.log' for more details." >&2;} 1831 { (exit 77); exit 77; }; } 1832fi 1833 1834ac_exeext=$ac_cv_exeext 1835echo "$as_me:$LINENO: result: $ac_file" >&5 1836echo "${ECHO_T}$ac_file" >&6 1837 1838# Check the compiler produces executables we can run. If not, either 1839# the compiler is broken, or we cross compile. 1840echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1841echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1842# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1843# If not cross compiling, check that we can run a simple program. 1844if test "$cross_compiling" != yes; then 1845 if { ac_try='./$ac_file' 1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1847 (eval $ac_try) 2>&5 1848 ac_status=$? 1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1850 (exit $ac_status); }; }; then 1851 cross_compiling=no 1852 else 1853 if test "$cross_compiling" = maybe; then 1854 cross_compiling=yes 1855 else 1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1857If you meant to cross compile, use \`--host'. 1858See \`config.log' for more details." >&5 1859echo "$as_me: error: cannot run C compiled programs. 1860If you meant to cross compile, use \`--host'. 1861See \`config.log' for more details." >&2;} 1862 { (exit 1); exit 1; }; } 1863 fi 1864 fi 1865fi 1866echo "$as_me:$LINENO: result: yes" >&5 1867echo "${ECHO_T}yes" >&6 1868 1869rm -f a.out a.exe conftest$ac_cv_exeext b.out 1870ac_clean_files=$ac_clean_files_save 1871# Check the compiler produces executables we can run. If not, either 1872# the compiler is broken, or we cross compile. 1873echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1874echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1875echo "$as_me:$LINENO: result: $cross_compiling" >&5 1876echo "${ECHO_T}$cross_compiling" >&6 1877 1878echo "$as_me:$LINENO: checking for suffix of executables" >&5 1879echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1881 (eval $ac_link) 2>&5 1882 ac_status=$? 1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1884 (exit $ac_status); }; then 1885 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1887# work properly (i.e., refer to `conftest.exe'), while it won't with 1888# `rm'. 1889for ac_file in conftest.exe conftest conftest.*; do 1890 test -f "$ac_file" || continue 1891 case $ac_file in 1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1894 export ac_cv_exeext 1895 break;; 1896 * ) break;; 1897 esac 1898done 1899else 1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1901See \`config.log' for more details." >&5 1902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1903See \`config.log' for more details." >&2;} 1904 { (exit 1); exit 1; }; } 1905fi 1906 1907rm -f conftest$ac_cv_exeext 1908echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1909echo "${ECHO_T}$ac_cv_exeext" >&6 1910 1911rm -f conftest.$ac_ext 1912EXEEXT=$ac_cv_exeext 1913ac_exeext=$EXEEXT 1914echo "$as_me:$LINENO: checking for suffix of object files" >&5 1915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1916if test "${ac_cv_objext+set}" = set; then 1917 echo $ECHO_N "(cached) $ECHO_C" >&6 1918else 1919 cat >conftest.$ac_ext <<_ACEOF 1920/* confdefs.h. */ 1921_ACEOF 1922cat confdefs.h >>conftest.$ac_ext 1923cat >>conftest.$ac_ext <<_ACEOF 1924/* end confdefs.h. */ 1925 1926int 1927main () 1928{ 1929 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934rm -f conftest.o conftest.obj 1935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1936 (eval $ac_compile) 2>&5 1937 ac_status=$? 1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1939 (exit $ac_status); }; then 1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1941 case $ac_file in 1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1944 break;; 1945 esac 1946done 1947else 1948 echo "$as_me: failed program was:" >&5 1949sed 's/^/| /' conftest.$ac_ext >&5 1950 1951{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1952See \`config.log' for more details." >&5 1953echo "$as_me: error: cannot compute suffix of object files: cannot compile 1954See \`config.log' for more details." >&2;} 1955 { (exit 1); exit 1; }; } 1956fi 1957 1958rm -f conftest.$ac_cv_objext conftest.$ac_ext 1959fi 1960echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1961echo "${ECHO_T}$ac_cv_objext" >&6 1962OBJEXT=$ac_cv_objext 1963ac_objext=$OBJEXT 1964echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1965echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1966if test "${ac_cv_c_compiler_gnu+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 cat >conftest.$ac_ext <<_ACEOF 1970/* confdefs.h. */ 1971_ACEOF 1972cat confdefs.h >>conftest.$ac_ext 1973cat >>conftest.$ac_ext <<_ACEOF 1974/* end confdefs.h. */ 1975 1976int 1977main () 1978{ 1979#ifndef __GNUC__ 1980 choke me 1981#endif 1982 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987rm -f conftest.$ac_objext 1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1989 (eval $ac_compile) 2>conftest.er1 1990 ac_status=$? 1991 grep -v '^ *+' conftest.er1 >conftest.err 1992 rm -f conftest.er1 1993 cat conftest.err >&5 1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1995 (exit $ac_status); } && 1996 { ac_try='test -z "$ac_c_werror_flag" 1997 || 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" 2056 || test ! -s conftest.err' 2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2058 (eval $ac_try) 2>&5 2059 ac_status=$? 2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2061 (exit $ac_status); }; } && 2062 { ac_try='test -s conftest.$ac_objext' 2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2064 (eval $ac_try) 2>&5 2065 ac_status=$? 2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2067 (exit $ac_status); }; }; then 2068 ac_cv_prog_cc_g=yes 2069else 2070 echo "$as_me: failed program was:" >&5 2071sed 's/^/| /' conftest.$ac_ext >&5 2072 2073ac_cv_prog_cc_g=no 2074fi 2075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2076fi 2077echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2078echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2079if test "$ac_test_CFLAGS" = set; then 2080 CFLAGS=$ac_save_CFLAGS 2081elif test $ac_cv_prog_cc_g = yes; then 2082 if test "$GCC" = yes; then 2083 CFLAGS="-g -O2" 2084 else 2085 CFLAGS="-g" 2086 fi 2087else 2088 if test "$GCC" = yes; then 2089 CFLAGS="-O2" 2090 else 2091 CFLAGS= 2092 fi 2093fi 2094echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2095echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2096if test "${ac_cv_prog_cc_stdc+set}" = set; then 2097 echo $ECHO_N "(cached) $ECHO_C" >&6 2098else 2099 ac_cv_prog_cc_stdc=no 2100ac_save_CC=$CC 2101cat >conftest.$ac_ext <<_ACEOF 2102/* confdefs.h. */ 2103_ACEOF 2104cat confdefs.h >>conftest.$ac_ext 2105cat >>conftest.$ac_ext <<_ACEOF 2106/* end confdefs.h. */ 2107#include <stdarg.h> 2108#include <stdio.h> 2109#include <sys/types.h> 2110#include <sys/stat.h> 2111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2112struct buf { int x; }; 2113FILE * (*rcsopen) (struct buf *, struct stat *, int); 2114static char *e (p, i) 2115 char **p; 2116 int i; 2117{ 2118 return p[i]; 2119} 2120static char *f (char * (*g) (char **, int), char **p, ...) 2121{ 2122 char *s; 2123 va_list v; 2124 va_start (v,p); 2125 s = g (p, va_arg (v,int)); 2126 va_end (v); 2127 return s; 2128} 2129 2130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2131 function prototypes and stuff, but not '\xHH' hex character constants. 2132 These don't provoke an error unfortunately, instead are silently treated 2133 as 'x'. The following induces an error, until -std1 is added to get 2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2135 array size at least. It's necessary to write '\x00'==0 to get something 2136 that's true only with -std1. */ 2137int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2138 2139int test (int i, double x); 2140struct s1 {int (*f) (int a);}; 2141struct s2 {int (*f) (double a);}; 2142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2143int argc; 2144char **argv; 2145int 2146main () 2147{ 2148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2149 ; 2150 return 0; 2151} 2152_ACEOF 2153# Don't try gcc -ansi; that turns off useful extensions and 2154# breaks some systems' header files. 2155# AIX -qlanglvl=ansi 2156# Ultrix and OSF/1 -std1 2157# HP-UX 10.20 and later -Ae 2158# HP-UX older versions -Aa -D_HPUX_SOURCE 2159# SVR4 -Xc -D__EXTENSIONS__ 2160for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2161do 2162 CC="$ac_save_CC $ac_arg" 2163 rm -f conftest.$ac_objext 2164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2165 (eval $ac_compile) 2>conftest.er1 2166 ac_status=$? 2167 grep -v '^ *+' conftest.er1 >conftest.err 2168 rm -f conftest.er1 2169 cat conftest.err >&5 2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2171 (exit $ac_status); } && 2172 { ac_try='test -z "$ac_c_werror_flag" 2173 || test ! -s conftest.err' 2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2175 (eval $ac_try) 2>&5 2176 ac_status=$? 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); }; } && 2179 { ac_try='test -s conftest.$ac_objext' 2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2181 (eval $ac_try) 2>&5 2182 ac_status=$? 2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184 (exit $ac_status); }; }; then 2185 ac_cv_prog_cc_stdc=$ac_arg 2186break 2187else 2188 echo "$as_me: failed program was:" >&5 2189sed 's/^/| /' conftest.$ac_ext >&5 2190 2191fi 2192rm -f conftest.err conftest.$ac_objext 2193done 2194rm -f conftest.$ac_ext conftest.$ac_objext 2195CC=$ac_save_CC 2196 2197fi 2198 2199case "x$ac_cv_prog_cc_stdc" in 2200 x|xno) 2201 echo "$as_me:$LINENO: result: none needed" >&5 2202echo "${ECHO_T}none needed" >&6 ;; 2203 *) 2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2205echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2206 CC="$CC $ac_cv_prog_cc_stdc" ;; 2207esac 2208 2209# Some people use a C++ compiler to compile C. Since we use `exit', 2210# in C++ we need to declare it. In case someone uses the same compiler 2211# for both compiling C and C++ we need to have the C++ compiler decide 2212# the declaration of exit, since it's the most demanding environment. 2213cat >conftest.$ac_ext <<_ACEOF 2214#ifndef __cplusplus 2215 choke me 2216#endif 2217_ACEOF 2218rm -f conftest.$ac_objext 2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2220 (eval $ac_compile) 2>conftest.er1 2221 ac_status=$? 2222 grep -v '^ *+' conftest.er1 >conftest.err 2223 rm -f conftest.er1 2224 cat conftest.err >&5 2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2226 (exit $ac_status); } && 2227 { ac_try='test -z "$ac_c_werror_flag" 2228 || test ! -s conftest.err' 2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2230 (eval $ac_try) 2>&5 2231 ac_status=$? 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2233 (exit $ac_status); }; } && 2234 { ac_try='test -s conftest.$ac_objext' 2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2236 (eval $ac_try) 2>&5 2237 ac_status=$? 2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2239 (exit $ac_status); }; }; then 2240 for ac_declaration in \ 2241 '' \ 2242 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2243 'extern "C" void std::exit (int); using std::exit;' \ 2244 'extern "C" void exit (int) throw ();' \ 2245 'extern "C" void exit (int);' \ 2246 'void exit (int);' 2247do 2248 cat >conftest.$ac_ext <<_ACEOF 2249/* confdefs.h. */ 2250_ACEOF 2251cat confdefs.h >>conftest.$ac_ext 2252cat >>conftest.$ac_ext <<_ACEOF 2253/* end confdefs.h. */ 2254$ac_declaration 2255#include <stdlib.h> 2256int 2257main () 2258{ 2259exit (42); 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264rm -f conftest.$ac_objext 2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2266 (eval $ac_compile) 2>conftest.er1 2267 ac_status=$? 2268 grep -v '^ *+' conftest.er1 >conftest.err 2269 rm -f conftest.er1 2270 cat conftest.err >&5 2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2272 (exit $ac_status); } && 2273 { ac_try='test -z "$ac_c_werror_flag" 2274 || test ! -s conftest.err' 2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2276 (eval $ac_try) 2>&5 2277 ac_status=$? 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2279 (exit $ac_status); }; } && 2280 { ac_try='test -s conftest.$ac_objext' 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2282 (eval $ac_try) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; }; then 2286 : 2287else 2288 echo "$as_me: failed program was:" >&5 2289sed 's/^/| /' conftest.$ac_ext >&5 2290 2291continue 2292fi 2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2294 cat >conftest.$ac_ext <<_ACEOF 2295/* confdefs.h. */ 2296_ACEOF 2297cat confdefs.h >>conftest.$ac_ext 2298cat >>conftest.$ac_ext <<_ACEOF 2299/* end confdefs.h. */ 2300$ac_declaration 2301int 2302main () 2303{ 2304exit (42); 2305 ; 2306 return 0; 2307} 2308_ACEOF 2309rm -f conftest.$ac_objext 2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2311 (eval $ac_compile) 2>conftest.er1 2312 ac_status=$? 2313 grep -v '^ *+' conftest.er1 >conftest.err 2314 rm -f conftest.er1 2315 cat conftest.err >&5 2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2317 (exit $ac_status); } && 2318 { ac_try='test -z "$ac_c_werror_flag" 2319 || test ! -s conftest.err' 2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2321 (eval $ac_try) 2>&5 2322 ac_status=$? 2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2324 (exit $ac_status); }; } && 2325 { ac_try='test -s conftest.$ac_objext' 2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2327 (eval $ac_try) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); }; }; then 2331 break 2332else 2333 echo "$as_me: failed program was:" >&5 2334sed 's/^/| /' conftest.$ac_ext >&5 2335 2336fi 2337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2338done 2339rm -f conftest* 2340if test -n "$ac_declaration"; then 2341 echo '#ifdef __cplusplus' >>confdefs.h 2342 echo $ac_declaration >>confdefs.h 2343 echo '#endif' >>confdefs.h 2344fi 2345 2346else 2347 echo "$as_me: failed program was:" >&5 2348sed 's/^/| /' conftest.$ac_ext >&5 2349 2350fi 2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2352ac_ext=c 2353ac_cpp='$CPP $CPPFLAGS' 2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2356ac_compiler_gnu=$ac_cv_c_compiler_gnu 2357 2358 2359echo "$as_me:$LINENO: checking for library containing strerror" >&5 2360echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2361if test "${ac_cv_search_strerror+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 ac_func_search_save_LIBS=$LIBS 2365ac_cv_search_strerror=no 2366cat >conftest.$ac_ext <<_ACEOF 2367/* confdefs.h. */ 2368_ACEOF 2369cat confdefs.h >>conftest.$ac_ext 2370cat >>conftest.$ac_ext <<_ACEOF 2371/* end confdefs.h. */ 2372 2373/* Override any gcc2 internal prototype to avoid an error. */ 2374#ifdef __cplusplus 2375extern "C" 2376#endif 2377/* We use char because int might match the return type of a gcc2 2378 builtin and then its argument prototype would still apply. */ 2379char strerror (); 2380int 2381main () 2382{ 2383strerror (); 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388rm -f conftest.$ac_objext conftest$ac_exeext 2389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2390 (eval $ac_link) 2>conftest.er1 2391 ac_status=$? 2392 grep -v '^ *+' conftest.er1 >conftest.err 2393 rm -f conftest.er1 2394 cat conftest.err >&5 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } && 2397 { ac_try='test -z "$ac_c_werror_flag" 2398 || test ! -s conftest.err' 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); }; } && 2404 { ac_try='test -s conftest$ac_exeext' 2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2406 (eval $ac_try) 2>&5 2407 ac_status=$? 2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2409 (exit $ac_status); }; }; then 2410 ac_cv_search_strerror="none required" 2411else 2412 echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415fi 2416rm -f conftest.err conftest.$ac_objext \ 2417 conftest$ac_exeext conftest.$ac_ext 2418if test "$ac_cv_search_strerror" = no; then 2419 for ac_lib in cposix; do 2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2421 cat >conftest.$ac_ext <<_ACEOF 2422/* confdefs.h. */ 2423_ACEOF 2424cat confdefs.h >>conftest.$ac_ext 2425cat >>conftest.$ac_ext <<_ACEOF 2426/* end confdefs.h. */ 2427 2428/* Override any gcc2 internal prototype to avoid an error. */ 2429#ifdef __cplusplus 2430extern "C" 2431#endif 2432/* We use char because int might match the return type of a gcc2 2433 builtin and then its argument prototype would still apply. */ 2434char strerror (); 2435int 2436main () 2437{ 2438strerror (); 2439 ; 2440 return 0; 2441} 2442_ACEOF 2443rm -f conftest.$ac_objext conftest$ac_exeext 2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2445 (eval $ac_link) 2>conftest.er1 2446 ac_status=$? 2447 grep -v '^ *+' conftest.er1 >conftest.err 2448 rm -f conftest.er1 2449 cat conftest.err >&5 2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2451 (exit $ac_status); } && 2452 { ac_try='test -z "$ac_c_werror_flag" 2453 || test ! -s conftest.err' 2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2455 (eval $ac_try) 2>&5 2456 ac_status=$? 2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2458 (exit $ac_status); }; } && 2459 { ac_try='test -s conftest$ac_exeext' 2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2461 (eval $ac_try) 2>&5 2462 ac_status=$? 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); }; }; then 2465 ac_cv_search_strerror="-l$ac_lib" 2466break 2467else 2468 echo "$as_me: failed program was:" >&5 2469sed 's/^/| /' conftest.$ac_ext >&5 2470 2471fi 2472rm -f conftest.err conftest.$ac_objext \ 2473 conftest$ac_exeext conftest.$ac_ext 2474 done 2475fi 2476LIBS=$ac_func_search_save_LIBS 2477fi 2478echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2479echo "${ECHO_T}$ac_cv_search_strerror" >&6 2480if test "$ac_cv_search_strerror" != no; then 2481 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2482 2483fi 2484 2485 2486BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 2487am__api_version="1.9" 2488# Find a good install program. We prefer a C program (faster), 2489# so one script is as good as another. But avoid the broken or 2490# incompatible versions: 2491# SysV /etc/install, /usr/sbin/install 2492# SunOS /usr/etc/install 2493# IRIX /sbin/install 2494# AIX /bin/install 2495# AmigaOS /C/install, which installs bootblocks on floppy discs 2496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2497# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2499# OS/2's system install, which has a completely different semantic 2500# ./install, which can be erroneously created by make from ./install.sh. 2501echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2502echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2503if test -z "$INSTALL"; then 2504if test "${ac_cv_path_install+set}" = set; then 2505 echo $ECHO_N "(cached) $ECHO_C" >&6 2506else 2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 # Account for people who put trailing slashes in PATH elements. 2513case $as_dir/ in 2514 ./ | .// | /cC/* | \ 2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2517 /usr/ucb/* ) ;; 2518 *) 2519 # OSF1 and SCO ODT 3.0 have their own names for install. 2520 # Don't use installbsd from OSF since it installs stuff as root 2521 # by default. 2522 for ac_prog in ginstall scoinst install; do 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2525 if test $ac_prog = install && 2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2527 # AIX install. It has an incompatible calling convention. 2528 : 2529 elif test $ac_prog = install && 2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2531 # program-specific install script used by HP pwplus--don't use. 2532 : 2533 else 2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2535 break 3 2536 fi 2537 fi 2538 done 2539 done 2540 ;; 2541esac 2542done 2543 2544 2545fi 2546 if test "${ac_cv_path_install+set}" = set; then 2547 INSTALL=$ac_cv_path_install 2548 else 2549 # As a last resort, use the slow shell script. We don't cache a 2550 # path for INSTALL within a source directory, because that will 2551 # break other packages using the cache if that directory is 2552 # removed, or if the path is relative. 2553 INSTALL=$ac_install_sh 2554 fi 2555fi 2556echo "$as_me:$LINENO: result: $INSTALL" >&5 2557echo "${ECHO_T}$INSTALL" >&6 2558 2559# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2560# It thinks the first close brace ends the variable substitution. 2561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2562 2563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2564 2565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2566 2567echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2568echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2569# Just in case 2570sleep 1 2571echo timestamp > conftest.file 2572# Do `set' in a subshell so we don't clobber the current shell's 2573# arguments. Must try -L first in case configure is actually a 2574# symlink; some systems play weird games with the mod time of symlinks 2575# (eg FreeBSD returns the mod time of the symlink's containing 2576# directory). 2577if ( 2578 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2579 if test "$*" = "X"; then 2580 # -L didn't work. 2581 set X `ls -t $srcdir/configure conftest.file` 2582 fi 2583 rm -f conftest.file 2584 if test "$*" != "X $srcdir/configure conftest.file" \ 2585 && test "$*" != "X conftest.file $srcdir/configure"; then 2586 2587 # If neither matched, then we have a broken ls. This can happen 2588 # if, for instance, CONFIG_SHELL is bash and it inherits a 2589 # broken ls alias from the environment. This has actually 2590 # happened. Such a system could not be considered "sane". 2591 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2592alias in your environment" >&5 2593echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2594alias in your environment" >&2;} 2595 { (exit 1); exit 1; }; } 2596 fi 2597 2598 test "$2" = conftest.file 2599 ) 2600then 2601 # Ok. 2602 : 2603else 2604 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2605Check your system clock" >&5 2606echo "$as_me: error: newly created file is older than distributed files! 2607Check your system clock" >&2;} 2608 { (exit 1); exit 1; }; } 2609fi 2610echo "$as_me:$LINENO: result: yes" >&5 2611echo "${ECHO_T}yes" >&6 2612test "$program_prefix" != NONE && 2613 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2614# Use a double $ so make ignores it. 2615test "$program_suffix" != NONE && 2616 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2617# Double any \ or $. echo might interpret backslashes. 2618# By default was `s,x,x', remove it if useless. 2619cat <<\_ACEOF >conftest.sed 2620s/[\\$]/&&/g;s/;s,x,x,$// 2621_ACEOF 2622program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2623rm conftest.sed 2624 2625# expand $ac_aux_dir to an absolute path 2626am_aux_dir=`cd $ac_aux_dir && pwd` 2627 2628test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2629# Use eval to expand $SHELL 2630if eval "$MISSING --run true"; then 2631 am_missing_run="$MISSING --run " 2632else 2633 am_missing_run= 2634 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2635echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2636fi 2637 2638if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2639 # We used to keeping the `.' as first argument, in order to 2640 # allow $(mkdir_p) to be used without argument. As in 2641 # $(mkdir_p) $(somedir) 2642 # where $(somedir) is conditionally defined. However this is wrong 2643 # for two reasons: 2644 # 1. if the package is installed by a user who cannot write `.' 2645 # make install will fail, 2646 # 2. the above comment should most certainly read 2647 # $(mkdir_p) $(DESTDIR)$(somedir) 2648 # so it does not work when $(somedir) is undefined and 2649 # $(DESTDIR) is not. 2650 # To support the latter case, we have to write 2651 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2652 # so the `.' trick is pointless. 2653 mkdir_p='mkdir -p --' 2654else 2655 # On NextStep and OpenStep, the `mkdir' command does not 2656 # recognize any option. It will interpret all options as 2657 # directories to create, and then abort because `.' already 2658 # exists. 2659 for d in ./-p ./--version; 2660 do 2661 test -d $d && rmdir $d 2662 done 2663 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2664 if test -f "$ac_aux_dir/mkinstalldirs"; then 2665 mkdir_p='$(mkinstalldirs)' 2666 else 2667 mkdir_p='$(install_sh) -d' 2668 fi 2669fi 2670 2671for ac_prog in gawk mawk nawk awk 2672do 2673 # Extract the first word of "$ac_prog", so it can be a program name with args. 2674set dummy $ac_prog; ac_word=$2 2675echo "$as_me:$LINENO: checking for $ac_word" >&5 2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2677if test "${ac_cv_prog_AWK+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 if test -n "$AWK"; then 2681 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 ac_cv_prog_AWK="$ac_prog" 2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695done 2696 2697fi 2698fi 2699AWK=$ac_cv_prog_AWK 2700if test -n "$AWK"; then 2701 echo "$as_me:$LINENO: result: $AWK" >&5 2702echo "${ECHO_T}$AWK" >&6 2703else 2704 echo "$as_me:$LINENO: result: no" >&5 2705echo "${ECHO_T}no" >&6 2706fi 2707 2708 test -n "$AWK" && break 2709done 2710 2711echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2712echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2713set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2714if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2715 echo $ECHO_N "(cached) $ECHO_C" >&6 2716else 2717 cat >conftest.make <<\_ACEOF 2718all: 2719 @echo 'ac_maketemp="$(MAKE)"' 2720_ACEOF 2721# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2722eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2723if test -n "$ac_maketemp"; then 2724 eval ac_cv_prog_make_${ac_make}_set=yes 2725else 2726 eval ac_cv_prog_make_${ac_make}_set=no 2727fi 2728rm -f conftest.make 2729fi 2730if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2731 echo "$as_me:$LINENO: result: yes" >&5 2732echo "${ECHO_T}yes" >&6 2733 SET_MAKE= 2734else 2735 echo "$as_me:$LINENO: result: no" >&5 2736echo "${ECHO_T}no" >&6 2737 SET_MAKE="MAKE=${MAKE-make}" 2738fi 2739 2740rm -rf .tst 2>/dev/null 2741mkdir .tst 2>/dev/null 2742if test -d .tst; then 2743 am__leading_dot=. 2744else 2745 am__leading_dot=_ 2746fi 2747rmdir .tst 2>/dev/null 2748 2749DEPDIR="${am__leading_dot}deps" 2750 2751 ac_config_commands="$ac_config_commands depfiles" 2752 2753 2754am_make=${MAKE-make} 2755cat > confinc << 'END' 2756am__doit: 2757 @echo done 2758.PHONY: am__doit 2759END 2760# If we don't find an include directive, just comment out the code. 2761echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2762echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2763am__include="#" 2764am__quote= 2765_am_result=none 2766# First try GNU make style include. 2767echo "include confinc" > confmf 2768# We grep out `Entering directory' and `Leaving directory' 2769# messages which can occur if `w' ends up in MAKEFLAGS. 2770# In particular we don't look at `^make:' because GNU make might 2771# be invoked under some other name (usually "gmake"), in which 2772# case it prints its new name instead of `make'. 2773if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2774 am__include=include 2775 am__quote= 2776 _am_result=GNU 2777fi 2778# Now try BSD make style include. 2779if test "$am__include" = "#"; then 2780 echo '.include "confinc"' > confmf 2781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2782 am__include=.include 2783 am__quote="\"" 2784 _am_result=BSD 2785 fi 2786fi 2787 2788 2789echo "$as_me:$LINENO: result: $_am_result" >&5 2790echo "${ECHO_T}$_am_result" >&6 2791rm -f confinc confmf 2792 2793# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2794if test "${enable_dependency_tracking+set}" = set; then 2795 enableval="$enable_dependency_tracking" 2796 2797fi; 2798if test "x$enable_dependency_tracking" != xno; then 2799 am_depcomp="$ac_aux_dir/depcomp" 2800 AMDEPBACKSLASH='\' 2801fi 2802 2803 2804if test "x$enable_dependency_tracking" != xno; then 2805 AMDEP_TRUE= 2806 AMDEP_FALSE='#' 2807else 2808 AMDEP_TRUE='#' 2809 AMDEP_FALSE= 2810fi 2811 2812 2813 2814# test to see if srcdir already configured 2815if test "`cd $srcdir && pwd`" != "`pwd`" && 2816 test -f $srcdir/config.status; then 2817 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2818echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2819 { (exit 1); exit 1; }; } 2820fi 2821 2822# test whether we have cygpath 2823if test -z "$CYGPATH_W"; then 2824 if (cygpath --version) >/dev/null 2>/dev/null; then 2825 CYGPATH_W='cygpath -w' 2826 else 2827 CYGPATH_W=echo 2828 fi 2829fi 2830 2831 2832# Define the identity of the package. 2833 PACKAGE=gprof 2834 VERSION=${BFD_VERSION} 2835 2836 2837cat >>confdefs.h <<_ACEOF 2838#define PACKAGE "$PACKAGE" 2839_ACEOF 2840 2841 2842cat >>confdefs.h <<_ACEOF 2843#define VERSION "$VERSION" 2844_ACEOF 2845 2846# Some tools Automake needs. 2847 2848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2849 2850 2851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2852 2853 2854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2855 2856 2857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2858 2859 2860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2861 2862install_sh=${install_sh-"$am_aux_dir/install-sh"} 2863 2864# Installed binaries are usually stripped using `strip' when the user 2865# run `make install-strip'. However `strip' might not be the right 2866# tool to use in cross-compilation environments, therefore Automake 2867# will honor the `STRIP' environment variable to overrule this program. 2868if test "$cross_compiling" != no; then 2869 if test -n "$ac_tool_prefix"; then 2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2871set dummy ${ac_tool_prefix}strip; ac_word=$2 2872echo "$as_me:$LINENO: checking for $ac_word" >&5 2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2874if test "${ac_cv_prog_STRIP+set}" = set; then 2875 echo $ECHO_N "(cached) $ECHO_C" >&6 2876else 2877 if test -n "$STRIP"; then 2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2879else 2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2881for as_dir in $PATH 2882do 2883 IFS=$as_save_IFS 2884 test -z "$as_dir" && as_dir=. 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2889 break 2 2890 fi 2891done 2892done 2893 2894fi 2895fi 2896STRIP=$ac_cv_prog_STRIP 2897if test -n "$STRIP"; then 2898 echo "$as_me:$LINENO: result: $STRIP" >&5 2899echo "${ECHO_T}$STRIP" >&6 2900else 2901 echo "$as_me:$LINENO: result: no" >&5 2902echo "${ECHO_T}no" >&6 2903fi 2904 2905fi 2906if test -z "$ac_cv_prog_STRIP"; then 2907 ac_ct_STRIP=$STRIP 2908 # Extract the first word of "strip", so it can be a program name with args. 2909set dummy strip; ac_word=$2 2910echo "$as_me:$LINENO: checking for $ac_word" >&5 2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2913 echo $ECHO_N "(cached) $ECHO_C" >&6 2914else 2915 if test -n "$ac_ct_STRIP"; then 2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2917else 2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2919for as_dir in $PATH 2920do 2921 IFS=$as_save_IFS 2922 test -z "$as_dir" && as_dir=. 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2925 ac_cv_prog_ac_ct_STRIP="strip" 2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930done 2931 2932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2933fi 2934fi 2935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2936if test -n "$ac_ct_STRIP"; then 2937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2938echo "${ECHO_T}$ac_ct_STRIP" >&6 2939else 2940 echo "$as_me:$LINENO: result: no" >&5 2941echo "${ECHO_T}no" >&6 2942fi 2943 2944 STRIP=$ac_ct_STRIP 2945else 2946 STRIP="$ac_cv_prog_STRIP" 2947fi 2948 2949fi 2950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2951 2952# We need awk for the "check" target. The system "awk" is bad on 2953# some platforms. 2954# Always define AMTAR for backward compatibility. 2955 2956AMTAR=${AMTAR-"${am_missing_run}tar"} 2957 2958am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2959 2960 2961 2962 2963depcc="$CC" am_compiler_list= 2964 2965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2967if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2968 echo $ECHO_N "(cached) $ECHO_C" >&6 2969else 2970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2971 # We make a subdir and do the tests there. Otherwise we can end up 2972 # making bogus files that we don't know about and never remove. For 2973 # instance it was reported that on HP-UX the gcc test will end up 2974 # making a dummy file named `D' -- because `-MD' means `put the output 2975 # in D'. 2976 mkdir conftest.dir 2977 # Copy depcomp to subdir because otherwise we won't find it if we're 2978 # using a relative directory. 2979 cp "$am_depcomp" conftest.dir 2980 cd conftest.dir 2981 # We will build objects and dependencies in a subdirectory because 2982 # it helps to detect inapplicable dependency modes. For instance 2983 # both Tru64's cc and ICC support -MD to output dependencies as a 2984 # side effect of compilation, but ICC will put the dependencies in 2985 # the current directory while Tru64 will put them in the object 2986 # directory. 2987 mkdir sub 2988 2989 am_cv_CC_dependencies_compiler_type=none 2990 if test "$am_compiler_list" = ""; then 2991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2992 fi 2993 for depmode in $am_compiler_list; do 2994 # Setup a source with many dependencies, because some compilers 2995 # like to wrap large dependency lists on column 80 (with \), and 2996 # we should not choose a depcomp mode which is confused by this. 2997 # 2998 # We need to recreate these files for each test, as the compiler may 2999 # overwrite some of them when testing with obscure command lines. 3000 # This happens at least with the AIX C compiler. 3001 : > sub/conftest.c 3002 for i in 1 2 3 4 5 6; do 3003 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3005 # Solaris 8's {/usr,}/bin/sh. 3006 touch sub/conftst$i.h 3007 done 3008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3009 3010 case $depmode in 3011 nosideeffect) 3012 # after this tag, mechanisms are not by side-effect, so they'll 3013 # only be used when explicitly requested 3014 if test "x$enable_dependency_tracking" = xyes; then 3015 continue 3016 else 3017 break 3018 fi 3019 ;; 3020 none) break ;; 3021 esac 3022 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3023 # mode. It turns out that the SunPro C++ compiler does not properly 3024 # handle `-M -o', and we need to detect this. 3025 if depmode=$depmode \ 3026 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3028 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3029 >/dev/null 2>conftest.err && 3030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3031 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3033 # icc doesn't choke on unknown options, it will just issue warnings 3034 # or remarks (even with -Werror). So we grep stderr for any message 3035 # that says an option was ignored or not supported. 3036 # When given -MP, icc 7.0 and 7.1 complain thusly: 3037 # icc: Command line warning: ignoring option '-M'; no argument required 3038 # The diagnosis changed in icc 8.0: 3039 # icc: Command line remark: option '-MP' not supported 3040 if (grep 'ignoring option' conftest.err || 3041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3042 am_cv_CC_dependencies_compiler_type=$depmode 3043 break 3044 fi 3045 fi 3046 done 3047 3048 cd .. 3049 rm -rf conftest.dir 3050else 3051 am_cv_CC_dependencies_compiler_type=none 3052fi 3053 3054fi 3055echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3056echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3058 3059 3060 3061if 3062 test "x$enable_dependency_tracking" != xno \ 3063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3064 am__fastdepCC_TRUE= 3065 am__fastdepCC_FALSE='#' 3066else 3067 am__fastdepCC_TRUE='#' 3068 am__fastdepCC_FALSE= 3069fi 3070 3071 3072 3073 3074# Check whether --enable-shared or --disable-shared was given. 3075if test "${enable_shared+set}" = set; then 3076 enableval="$enable_shared" 3077 p=${PACKAGE-default} 3078case $enableval in 3079yes) enable_shared=yes ;; 3080no) enable_shared=no ;; 3081*) 3082 enable_shared=no 3083 # Look at the argument we got. We use all the common list separators. 3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3085 for pkg in $enableval; do 3086 if test "X$pkg" = "X$p"; then 3087 enable_shared=yes 3088 fi 3089 done 3090 IFS="$ac_save_ifs" 3091 ;; 3092esac 3093else 3094 enable_shared=yes 3095fi; 3096# Check whether --enable-static or --disable-static was given. 3097if test "${enable_static+set}" = set; then 3098 enableval="$enable_static" 3099 p=${PACKAGE-default} 3100case $enableval in 3101yes) enable_static=yes ;; 3102no) enable_static=no ;; 3103*) 3104 enable_static=no 3105 # Look at the argument we got. We use all the common list separators. 3106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3107 for pkg in $enableval; do 3108 if test "X$pkg" = "X$p"; then 3109 enable_static=yes 3110 fi 3111 done 3112 IFS="$ac_save_ifs" 3113 ;; 3114esac 3115else 3116 enable_static=yes 3117fi; 3118# Check whether --enable-fast-install or --disable-fast-install was given. 3119if test "${enable_fast_install+set}" = set; then 3120 enableval="$enable_fast_install" 3121 p=${PACKAGE-default} 3122case $enableval in 3123yes) enable_fast_install=yes ;; 3124no) enable_fast_install=no ;; 3125*) 3126 enable_fast_install=no 3127 # Look at the argument we got. We use all the common list separators. 3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3129 for pkg in $enableval; do 3130 if test "X$pkg" = "X$p"; then 3131 enable_fast_install=yes 3132 fi 3133 done 3134 IFS="$ac_save_ifs" 3135 ;; 3136esac 3137else 3138 enable_fast_install=yes 3139fi; 3140 3141# Check whether --with-gnu-ld or --without-gnu-ld was given. 3142if test "${with_gnu_ld+set}" = set; then 3143 withval="$with_gnu_ld" 3144 test "$withval" = no || with_gnu_ld=yes 3145else 3146 with_gnu_ld=no 3147fi; 3148ac_prog=ld 3149if test "$GCC" = yes; then 3150 # Check if gcc -print-prog-name=ld gives a path. 3151 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3152echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3153 case $host in 3154 *-*-mingw*) 3155 # gcc leaves a trailing carriage return which upsets mingw 3156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3157 *) 3158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3159 esac 3160 case $ac_prog in 3161 # Accept absolute paths. 3162 [\\/]* | [A-Za-z]:[\\/]*) 3163 re_direlt='/[^/][^/]*/\.\./' 3164 # Canonicalize the path of ld 3165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3168 done 3169 test -z "$LD" && LD="$ac_prog" 3170 ;; 3171 "") 3172 # If it fails, then pretend we aren't using GCC. 3173 ac_prog=ld 3174 ;; 3175 *) 3176 # If it is relative, then search for the first ld in PATH. 3177 with_gnu_ld=unknown 3178 ;; 3179 esac 3180elif test "$with_gnu_ld" = yes; then 3181 echo "$as_me:$LINENO: checking for GNU ld" >&5 3182echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3183else 3184 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3185echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3186fi 3187if test "${lt_cv_path_LD+set}" = set; then 3188 echo $ECHO_N "(cached) $ECHO_C" >&6 3189else 3190 if test -z "$LD"; then 3191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3192 for ac_dir in $PATH; do 3193 test -z "$ac_dir" && ac_dir=. 3194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3195 lt_cv_path_LD="$ac_dir/$ac_prog" 3196 # Check to see if the program is GNU ld. I'd rather use --version, 3197 # but apparently some GNU ld's only accept -v. 3198 # Break only if it was the GNU/non-GNU ld that we prefer. 3199 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3200 test "$with_gnu_ld" != no && break 3201 else 3202 test "$with_gnu_ld" != yes && break 3203 fi 3204 fi 3205 done 3206 IFS="$ac_save_ifs" 3207else 3208 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3209fi 3210fi 3211 3212LD="$lt_cv_path_LD" 3213if test -n "$LD"; then 3214 echo "$as_me:$LINENO: result: $LD" >&5 3215echo "${ECHO_T}$LD" >&6 3216else 3217 echo "$as_me:$LINENO: result: no" >&5 3218echo "${ECHO_T}no" >&6 3219fi 3220test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3221echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3222 { (exit 1); exit 1; }; } 3223echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3224echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3225if test "${lt_cv_prog_gnu_ld+set}" = set; then 3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227else 3228 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3229if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3230 lt_cv_prog_gnu_ld=yes 3231else 3232 lt_cv_prog_gnu_ld=no 3233fi 3234fi 3235echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3236echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3237with_gnu_ld=$lt_cv_prog_gnu_ld 3238 3239 3240echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3241echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3242if test "${lt_cv_ld_reload_flag+set}" = set; then 3243 echo $ECHO_N "(cached) $ECHO_C" >&6 3244else 3245 lt_cv_ld_reload_flag='-r' 3246fi 3247echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3248echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3249reload_flag=$lt_cv_ld_reload_flag 3250test -n "$reload_flag" && reload_flag=" $reload_flag" 3251 3252echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3253echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3254if test "${lt_cv_path_NM+set}" = set; then 3255 echo $ECHO_N "(cached) $ECHO_C" >&6 3256else 3257 if test -n "$NM"; then 3258 # Let the user override the test. 3259 lt_cv_path_NM="$NM" 3260else 3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3262 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3263 test -z "$ac_dir" && ac_dir=. 3264 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3265 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3266 # Check to see if the nm accepts a BSD-compat flag. 3267 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3268 # nm: unknown option "B" ignored 3269 # Tru64's nm complains that /dev/null is an invalid object file 3270 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3271 lt_cv_path_NM="$tmp_nm -B" 3272 break 3273 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3274 lt_cv_path_NM="$tmp_nm -p" 3275 break 3276 else 3277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3278 continue # so that we can try to find one that supports BSD flags 3279 fi 3280 fi 3281 done 3282 IFS="$ac_save_ifs" 3283 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3284fi 3285fi 3286 3287NM="$lt_cv_path_NM" 3288echo "$as_me:$LINENO: result: $NM" >&5 3289echo "${ECHO_T}$NM" >&6 3290 3291echo "$as_me:$LINENO: checking whether ln -s works" >&5 3292echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3293LN_S=$as_ln_s 3294if test "$LN_S" = "ln -s"; then 3295 echo "$as_me:$LINENO: result: yes" >&5 3296echo "${ECHO_T}yes" >&6 3297else 3298 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3299echo "${ECHO_T}no, using $LN_S" >&6 3300fi 3301 3302echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3303echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3304if test "${lt_cv_deplibs_check_method+set}" = set; then 3305 echo $ECHO_N "(cached) $ECHO_C" >&6 3306else 3307 lt_cv_file_magic_cmd='$MAGIC_CMD' 3308lt_cv_file_magic_test_file= 3309lt_cv_deplibs_check_method='unknown' 3310# Need to set the preceding variable on all platforms that support 3311# interlibrary dependencies. 3312# 'none' -- dependencies not supported. 3313# `unknown' -- same as none, but documents that we really don't know. 3314# 'pass_all' -- all dependencies passed with no checks. 3315# 'test_compile' -- check by making test program. 3316# 'file_magic [regex]' -- check by looking for files in library path 3317# which responds to the $file_magic_cmd with a given egrep regex. 3318# If you have `file' or equivalent on your system and you're not sure 3319# whether `pass_all' will *always* work, you probably want this one. 3320 3321case $host_os in 3322aix*) 3323 lt_cv_deplibs_check_method=pass_all 3324 ;; 3325 3326beos*) 3327 lt_cv_deplibs_check_method=pass_all 3328 ;; 3329 3330bsdi4*) 3331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3332 lt_cv_file_magic_cmd='/usr/bin/file -L' 3333 lt_cv_file_magic_test_file=/shlib/libc.so 3334 ;; 3335 3336cygwin* | mingw* |pw32*) 3337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3338 lt_cv_file_magic_cmd='$OBJDUMP -f' 3339 ;; 3340 3341darwin* | rhapsody*) 3342 # this will be overwritten by pass_all, but leave it in just in case 3343 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3344 lt_cv_file_magic_cmd='/usr/bin/file -L' 3345 case "$host_os" in 3346 rhapsody* | darwin1.012) 3347 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 3348 ;; 3349 *) # Darwin 1.3 on 3350 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3351 ;; 3352 esac 3353 lt_cv_deplibs_check_method=pass_all 3354 ;; 3355 3356freebsd* | kfreebsd*-gnu) 3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3358 case $host_cpu in 3359 i*86 ) 3360 # Not sure whether the presence of OpenBSD here was a mistake. 3361 # Let's accept both of them until this is cleared up. 3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3363 lt_cv_file_magic_cmd=/usr/bin/file 3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3365 ;; 3366 esac 3367 else 3368 lt_cv_deplibs_check_method=pass_all 3369 fi 3370 ;; 3371 3372gnu*) 3373 lt_cv_deplibs_check_method=pass_all 3374 ;; 3375 3376hpux10.20*|hpux11*) 3377 case $host_cpu in 3378 hppa*) 3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3380 lt_cv_file_magic_cmd=/usr/bin/file 3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3382 ;; 3383 ia64*) 3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3385 lt_cv_file_magic_cmd=/usr/bin/file 3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3387 ;; 3388 esac 3389 ;; 3390 3391irix5* | irix6*) 3392 case $host_os in 3393 irix5*) 3394 # this will be overridden with pass_all, but let us keep it just in case 3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3396 ;; 3397 *) 3398 case $LD in 3399 *-32|*"-32 ") libmagic=32-bit;; 3400 *-n32|*"-n32 ") libmagic=N32;; 3401 *-64|*"-64 ") libmagic=64-bit;; 3402 *) libmagic=never-match;; 3403 esac 3404 # this will be overridden with pass_all, but let us keep it just in case 3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3406 ;; 3407 esac 3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3409 lt_cv_deplibs_check_method=pass_all 3410 ;; 3411 3412# This must be Linux ELF. 3413linux-gnu*) 3414 lt_cv_deplibs_check_method=pass_all 3415 ;; 3416 3417netbsd* | knetbsd*-gnu) 3418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3420 else 3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3422 fi 3423 ;; 3424 3425newsos6) 3426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3427 lt_cv_file_magic_cmd=/usr/bin/file 3428 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3429 ;; 3430 3431osf3* | osf4* | osf5*) 3432 # this will be overridden with pass_all, but let us keep it just in case 3433 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3434 lt_cv_file_magic_test_file=/shlib/libc.so 3435 lt_cv_deplibs_check_method=pass_all 3436 ;; 3437 3438sco3.2v5*) 3439 lt_cv_deplibs_check_method=pass_all 3440 ;; 3441 3442solaris*) 3443 lt_cv_deplibs_check_method=pass_all 3444 lt_cv_file_magic_test_file=/lib/libc.so 3445 ;; 3446 3447sysv5uw[78]* | sysv4*uw2*) 3448 lt_cv_deplibs_check_method=pass_all 3449 ;; 3450 3451sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3452 case $host_vendor in 3453 ncr) 3454 lt_cv_deplibs_check_method=pass_all 3455 ;; 3456 motorola) 3457 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]' 3458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3459 ;; 3460 esac 3461 ;; 3462esac 3463 3464fi 3465echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3466echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3467file_magic_cmd=$lt_cv_file_magic_cmd 3468deplibs_check_method=$lt_cv_deplibs_check_method 3469 3470 3471 3472 3473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 3474 3475# find the maximum length of command line arguments 3476echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3477echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 3478if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3479 echo $ECHO_N "(cached) $ECHO_C" >&6 3480else 3481 i=0 3482 teststring="ABCD" 3483 3484 case $build_os in 3485 msdosdjgpp*) 3486 # On DJGPP, this test can blow up pretty badly due to problems in libc 3487 # (any single argument exceeding 2000 bytes causes a buffer overrun 3488 # during glob expansion). Even if it were fixed, the result of this 3489 # check would be larger than it should be. 3490 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3491 ;; 3492 3493 cygwin* | mingw*) 3494 # On Win9x/ME, this test blows up -- it succeeds, but takes 3495 # about 5 minutes as the teststring grows exponentially. 3496 # Worse, since 9x/ME are not pre-emptively multitasking, 3497 # you end up with a "frozen" computer, even though with patience 3498 # the test eventually succeeds (with a max line length of 256k). 3499 # Instead, let's just punt: use the minimum linelength reported by 3500 # all of the supported platforms: 8192 (on NT/2K/XP). 3501 lt_cv_sys_max_cmd_len=8192; 3502 ;; 3503 3504 amigaos*) 3505 # On AmigaOS with pdksh, this test takes hours, literally. 3506 # So we just punt and use a minimum line length of 8192. 3507 lt_cv_sys_max_cmd_len=8192; 3508 ;; 3509 3510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3511 # This has been around since 386BSD, at least. Likely further. 3512 if test -x /sbin/sysctl; then 3513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3514 elif test -x /usr/sbin/sysctl; then 3515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3516 else 3517 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 3518 fi 3519 # And add a safety zone 3520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3522 ;; 3523 esac 3524 3525fi 3526 3527if test -n "$lt_cv_sys_max_cmd_len" ; then 3528 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3529echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 3530else 3531 echo "$as_me:$LINENO: result: none" >&5 3532echo "${ECHO_T}none" >&6 3533fi 3534 3535 3536# Only perform the check for file, if the check method requires it 3537case $deplibs_check_method in 3538file_magic*) 3539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3540 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 3541echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 3542if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3543 echo $ECHO_N "(cached) $ECHO_C" >&6 3544else 3545 case $MAGIC_CMD in 3546 /*) 3547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3548 ;; 3549 ?:/*) 3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3551 ;; 3552 *) 3553 ac_save_MAGIC_CMD="$MAGIC_CMD" 3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3555 ac_dummy="/usr/bin:$PATH" 3556 for ac_dir in $ac_dummy; do 3557 test -z "$ac_dir" && ac_dir=. 3558 if test -f $ac_dir/${ac_tool_prefix}file; then 3559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 3560 if test -n "$file_magic_test_file"; then 3561 case $deplibs_check_method in 3562 "file_magic "*) 3563 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3566 egrep "$file_magic_regex" > /dev/null; then 3567 : 3568 else 3569 cat <<EOF 1>&2 3570 3571*** Warning: the command libtool uses to detect shared libraries, 3572*** $file_magic_cmd, produces output that libtool cannot recognize. 3573*** The result is that libtool may fail to recognize shared libraries 3574*** as such. This will affect the creation of libtool libraries that 3575*** depend on shared libraries, but programs linked with such libtool 3576*** libraries will work regardless of this problem. Nevertheless, you 3577*** may want to report the problem to your system manager and/or to 3578*** bug-libtool@gnu.org 3579 3580EOF 3581 fi ;; 3582 esac 3583 fi 3584 break 3585 fi 3586 done 3587 IFS="$ac_save_ifs" 3588 MAGIC_CMD="$ac_save_MAGIC_CMD" 3589 ;; 3590esac 3591fi 3592 3593MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3594if test -n "$MAGIC_CMD"; then 3595 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 3596echo "${ECHO_T}$MAGIC_CMD" >&6 3597else 3598 echo "$as_me:$LINENO: result: no" >&5 3599echo "${ECHO_T}no" >&6 3600fi 3601 3602if test -z "$lt_cv_path_MAGIC_CMD"; then 3603 if test -n "$ac_tool_prefix"; then 3604 echo "$as_me:$LINENO: checking for file" >&5 3605echo $ECHO_N "checking for file... $ECHO_C" >&6 3606if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 case $MAGIC_CMD in 3610 /*) 3611 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3612 ;; 3613 ?:/*) 3614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3615 ;; 3616 *) 3617 ac_save_MAGIC_CMD="$MAGIC_CMD" 3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3619 ac_dummy="/usr/bin:$PATH" 3620 for ac_dir in $ac_dummy; do 3621 test -z "$ac_dir" && ac_dir=. 3622 if test -f $ac_dir/file; then 3623 lt_cv_path_MAGIC_CMD="$ac_dir/file" 3624 if test -n "$file_magic_test_file"; then 3625 case $deplibs_check_method in 3626 "file_magic "*) 3627 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3630 egrep "$file_magic_regex" > /dev/null; then 3631 : 3632 else 3633 cat <<EOF 1>&2 3634 3635*** Warning: the command libtool uses to detect shared libraries, 3636*** $file_magic_cmd, produces output that libtool cannot recognize. 3637*** The result is that libtool may fail to recognize shared libraries 3638*** as such. This will affect the creation of libtool libraries that 3639*** depend on shared libraries, but programs linked with such libtool 3640*** libraries will work regardless of this problem. Nevertheless, you 3641*** may want to report the problem to your system manager and/or to 3642*** bug-libtool@gnu.org 3643 3644EOF 3645 fi ;; 3646 esac 3647 fi 3648 break 3649 fi 3650 done 3651 IFS="$ac_save_ifs" 3652 MAGIC_CMD="$ac_save_MAGIC_CMD" 3653 ;; 3654esac 3655fi 3656 3657MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3658if test -n "$MAGIC_CMD"; then 3659 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 3660echo "${ECHO_T}$MAGIC_CMD" >&6 3661else 3662 echo "$as_me:$LINENO: result: no" >&5 3663echo "${ECHO_T}no" >&6 3664fi 3665 3666 else 3667 MAGIC_CMD=: 3668 fi 3669fi 3670 3671 fi 3672 ;; 3673esac 3674 3675if test -n "$ac_tool_prefix"; then 3676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3677set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3678echo "$as_me:$LINENO: checking for $ac_word" >&5 3679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3680if test "${ac_cv_prog_RANLIB+set}" = set; then 3681 echo $ECHO_N "(cached) $ECHO_C" >&6 3682else 3683 if test -n "$RANLIB"; then 3684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3685else 3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3687for as_dir in $PATH 3688do 3689 IFS=$as_save_IFS 3690 test -z "$as_dir" && as_dir=. 3691 for ac_exec_ext in '' $ac_executable_extensions; do 3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3695 break 2 3696 fi 3697done 3698done 3699 3700fi 3701fi 3702RANLIB=$ac_cv_prog_RANLIB 3703if test -n "$RANLIB"; then 3704 echo "$as_me:$LINENO: result: $RANLIB" >&5 3705echo "${ECHO_T}$RANLIB" >&6 3706else 3707 echo "$as_me:$LINENO: result: no" >&5 3708echo "${ECHO_T}no" >&6 3709fi 3710 3711fi 3712if test -z "$ac_cv_prog_RANLIB"; then 3713 ac_ct_RANLIB=$RANLIB 3714 # Extract the first word of "ranlib", so it can be a program name with args. 3715set dummy ranlib; ac_word=$2 3716echo "$as_me:$LINENO: checking for $ac_word" >&5 3717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3718if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3719 echo $ECHO_N "(cached) $ECHO_C" >&6 3720else 3721 if test -n "$ac_ct_RANLIB"; then 3722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3723else 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3731 ac_cv_prog_ac_ct_RANLIB="ranlib" 3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735done 3736done 3737 3738 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3739fi 3740fi 3741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3742if test -n "$ac_ct_RANLIB"; then 3743 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3744echo "${ECHO_T}$ac_ct_RANLIB" >&6 3745else 3746 echo "$as_me:$LINENO: result: no" >&5 3747echo "${ECHO_T}no" >&6 3748fi 3749 3750 RANLIB=$ac_ct_RANLIB 3751else 3752 RANLIB="$ac_cv_prog_RANLIB" 3753fi 3754 3755if test -n "$ac_tool_prefix"; then 3756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3757set dummy ${ac_tool_prefix}strip; ac_word=$2 3758echo "$as_me:$LINENO: checking for $ac_word" >&5 3759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3760if test "${ac_cv_prog_STRIP+set}" = set; then 3761 echo $ECHO_N "(cached) $ECHO_C" >&6 3762else 3763 if test -n "$STRIP"; then 3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3765else 3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767for as_dir in $PATH 3768do 3769 IFS=$as_save_IFS 3770 test -z "$as_dir" && as_dir=. 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3773 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3775 break 2 3776 fi 3777done 3778done 3779 3780fi 3781fi 3782STRIP=$ac_cv_prog_STRIP 3783if test -n "$STRIP"; then 3784 echo "$as_me:$LINENO: result: $STRIP" >&5 3785echo "${ECHO_T}$STRIP" >&6 3786else 3787 echo "$as_me:$LINENO: result: no" >&5 3788echo "${ECHO_T}no" >&6 3789fi 3790 3791fi 3792if test -z "$ac_cv_prog_STRIP"; then 3793 ac_ct_STRIP=$STRIP 3794 # Extract the first word of "strip", so it can be a program name with args. 3795set dummy strip; ac_word=$2 3796echo "$as_me:$LINENO: checking for $ac_word" >&5 3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3799 echo $ECHO_N "(cached) $ECHO_C" >&6 3800else 3801 if test -n "$ac_ct_STRIP"; then 3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3803else 3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3805for as_dir in $PATH 3806do 3807 IFS=$as_save_IFS 3808 test -z "$as_dir" && as_dir=. 3809 for ac_exec_ext in '' $ac_executable_extensions; do 3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3811 ac_cv_prog_ac_ct_STRIP="strip" 3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3813 break 2 3814 fi 3815done 3816done 3817 3818 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3819fi 3820fi 3821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3822if test -n "$ac_ct_STRIP"; then 3823 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3824echo "${ECHO_T}$ac_ct_STRIP" >&6 3825else 3826 echo "$as_me:$LINENO: result: no" >&5 3827echo "${ECHO_T}no" >&6 3828fi 3829 3830 STRIP=$ac_ct_STRIP 3831else 3832 STRIP="$ac_cv_prog_STRIP" 3833fi 3834 3835 3836# Check for any special flags to pass to ltconfig. 3837libtool_flags="--cache-file=$cache_file" 3838test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 3839test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 3840test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 3841test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 3842test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 3843 3844 3845# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3846if test "${enable_libtool_lock+set}" = set; then 3847 enableval="$enable_libtool_lock" 3848 3849fi; 3850test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 3851test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 3852 3853 3854# Check whether --with-pic or --without-pic was given. 3855if test "${with_pic+set}" = set; then 3856 withval="$with_pic" 3857 pic_mode="$withval" 3858else 3859 pic_mode=default 3860fi; 3861test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 3862test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 3863 3864# Some flags need to be propagated to the compiler or linker for good 3865# libtool support. 3866case $host in 3867*-*-irix6*) 3868 # Find out which ABI we are using. 3869 echo '#line 3869 "configure"' > conftest.$ac_ext 3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3871 (eval $ac_compile) 2>&5 3872 ac_status=$? 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); }; then 3875 if test "$lt_cv_prog_gnu_ld" = yes; then 3876 case `/usr/bin/file conftest.$ac_objext` in 3877 *32-bit*) 3878 LD="${LD-ld} -melf32bsmip" 3879 ;; 3880 *N32*) 3881 LD="${LD-ld} -melf32bmipn32" 3882 ;; 3883 *64-bit*) 3884 LD="${LD-ld} -melf64bmip" 3885 ;; 3886 esac 3887 else 3888 case `/usr/bin/file conftest.$ac_objext` in 3889 *32-bit*) 3890 LD="${LD-ld} -32" 3891 ;; 3892 *N32*) 3893 LD="${LD-ld} -n32" 3894 ;; 3895 *64-bit*) 3896 LD="${LD-ld} -64" 3897 ;; 3898 esac 3899 fi 3900 fi 3901 rm -rf conftest* 3902 ;; 3903 3904ia64-*-hpux*) 3905 # Find out which ABI we are using. 3906 echo 'int i;' > conftest.$ac_ext 3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3908 (eval $ac_compile) 2>&5 3909 ac_status=$? 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3911 (exit $ac_status); }; then 3912 case "`/usr/bin/file conftest.o`" in 3913 *ELF-32*) 3914 HPUX_IA64_MODE="32" 3915 ;; 3916 *ELF-64*) 3917 HPUX_IA64_MODE="64" 3918 ;; 3919 esac 3920 fi 3921 rm -rf conftest* 3922 ;; 3923 3924x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3925 # Find out which ABI we are using. 3926 echo 'int i;' > conftest.$ac_ext 3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3928 (eval $ac_compile) 2>&5 3929 ac_status=$? 3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3931 (exit $ac_status); }; then 3932 case "`/usr/bin/file conftest.o`" in 3933 *32-bit*) 3934 case $host in 3935 x86_64-*linux*) 3936 LD="${LD-ld} -m elf_i386" 3937 ;; 3938 ppc64-*linux*|powerpc64-*linux*) 3939 LD="${LD-ld} -m elf32ppclinux" 3940 ;; 3941 s390x-*linux*) 3942 LD="${LD-ld} -m elf_s390" 3943 ;; 3944 sparc64-*linux*) 3945 LD="${LD-ld} -m elf32_sparc" 3946 ;; 3947 esac 3948 ;; 3949 *64-bit*) 3950 case $host in 3951 x86_64-*linux*) 3952 LD="${LD-ld} -m elf_x86_64" 3953 ;; 3954 ppc*-*linux*|powerpc*-*linux*) 3955 LD="${LD-ld} -m elf64ppc" 3956 ;; 3957 s390*-*linux*) 3958 LD="${LD-ld} -m elf64_s390" 3959 ;; 3960 sparc*-*linux*) 3961 LD="${LD-ld} -m elf64_sparc" 3962 ;; 3963 esac 3964 ;; 3965 esac 3966 fi 3967 rm -rf conftest* 3968 ;; 3969 3970*-*-sco3.2v5*) 3971 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3972 SAVE_CFLAGS="$CFLAGS" 3973 CFLAGS="$CFLAGS -belf" 3974 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3975echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3976if test "${lt_cv_cc_needs_belf+set}" = set; then 3977 echo $ECHO_N "(cached) $ECHO_C" >&6 3978else 3979 3980 3981 ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986 3987 cat >conftest.$ac_ext <<_ACEOF 3988/* confdefs.h. */ 3989_ACEOF 3990cat confdefs.h >>conftest.$ac_ext 3991cat >>conftest.$ac_ext <<_ACEOF 3992/* end confdefs.h. */ 3993 3994int 3995main () 3996{ 3997 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002rm -f conftest.$ac_objext conftest$ac_exeext 4003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4004 (eval $ac_link) 2>conftest.er1 4005 ac_status=$? 4006 grep -v '^ *+' conftest.er1 >conftest.err 4007 rm -f conftest.er1 4008 cat conftest.err >&5 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4010 (exit $ac_status); } && 4011 { ac_try='test -z "$ac_c_werror_flag" 4012 || test ! -s conftest.err' 4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4014 (eval $ac_try) 2>&5 4015 ac_status=$? 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); }; } && 4018 { ac_try='test -s conftest$ac_exeext' 4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4020 (eval $ac_try) 2>&5 4021 ac_status=$? 4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4023 (exit $ac_status); }; }; then 4024 lt_cv_cc_needs_belf=yes 4025else 4026 echo "$as_me: failed program was:" >&5 4027sed 's/^/| /' conftest.$ac_ext >&5 4028 4029lt_cv_cc_needs_belf=no 4030fi 4031rm -f conftest.err conftest.$ac_objext \ 4032 conftest$ac_exeext conftest.$ac_ext 4033 ac_ext=c 4034ac_cpp='$CPP $CPPFLAGS' 4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4037ac_compiler_gnu=$ac_cv_c_compiler_gnu 4038 4039fi 4040echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4041echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4044 CFLAGS="$SAVE_CFLAGS" 4045 fi 4046 ;; 4047 4048 4049esac 4050 4051 4052# Save cache, so that ltconfig can load it 4053cat >confcache <<\_ACEOF 4054# This file is a shell script that caches the results of configure 4055# tests run on this system so they can be shared between configure 4056# scripts and configure runs, see configure's option --config-cache. 4057# It is not useful on other systems. If it contains results you don't 4058# want to keep, you may remove or edit it. 4059# 4060# config.status only pays attention to the cache file if you give it 4061# the --recheck option to rerun configure. 4062# 4063# `ac_cv_env_foo' variables (set or unset) will be overridden when 4064# loading this file, other *unset* `ac_cv_foo' will be assigned the 4065# following values. 4066 4067_ACEOF 4068 4069# The following way of writing the cache mishandles newlines in values, 4070# but we know of no workaround that is simple, portable, and efficient. 4071# So, don't put newlines in cache variables' values. 4072# Ultrix sh set writes to stderr and can't be redirected directly, 4073# and sets the high bit in the cache file unless we assign to the vars. 4074{ 4075 (set) 2>&1 | 4076 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4077 *ac_space=\ *) 4078 # `set' does not quote correctly, so add quotes (double-quote 4079 # substitution turns \\\\ into \\, and sed turns \\ into \). 4080 sed -n \ 4081 "s/'/'\\\\''/g; 4082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4083 ;; 4084 *) 4085 # `set' quotes correctly as required by POSIX, so do not add quotes. 4086 sed -n \ 4087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4088 ;; 4089 esac; 4090} | 4091 sed ' 4092 t clear 4093 : clear 4094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4095 t end 4096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4097 : end' >>confcache 4098if diff $cache_file confcache >/dev/null 2>&1; then :; else 4099 if test -w $cache_file; then 4100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4101 cat confcache >$cache_file 4102 else 4103 echo "not updating unwritable cache $cache_file" 4104 fi 4105fi 4106rm -f confcache 4107 4108# Actually configure libtool. ac_aux_dir is where install-sh is found. 4109AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 4110MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 4111LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 4112AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 4113objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 4114deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 4115${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 4116$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 4117|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 4118echo "$as_me: error: libtool configure failed" >&2;} 4119 { (exit 1); exit 1; }; } 4120 4121# Reload cache, that may have been modified by ltconfig 4122if test -r "$cache_file"; then 4123 # Some versions of bash will fail to source /dev/null (special 4124 # files actually), so we avoid doing that. 4125 if test -f "$cache_file"; then 4126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 4127echo "$as_me: loading cache $cache_file" >&6;} 4128 case $cache_file in 4129 [\\/]* | ?:[\\/]* ) . $cache_file;; 4130 *) . ./$cache_file;; 4131 esac 4132 fi 4133else 4134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 4135echo "$as_me: creating cache $cache_file" >&6;} 4136 >$cache_file 4137fi 4138 4139 4140# This can be used to rebuild libtool when needed 4141LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 4142 4143# Always use our own libtool. 4144LIBTOOL='$(SHELL) $(top_builddir)/libtool' 4145 4146# Redirect the config.log output again, so that the ltconfig log is not 4147# clobbered by the next message. 4148exec 5>>./config.log 4149 4150 4151 4152 4153 4154 4155 4156 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" 4157 4158 4159ac_ext=c 4160ac_cpp='$CPP $CPPFLAGS' 4161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4163ac_compiler_gnu=$ac_cv_c_compiler_gnu 4164if test -n "$ac_tool_prefix"; then 4165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4166set dummy ${ac_tool_prefix}gcc; ac_word=$2 4167echo "$as_me:$LINENO: checking for $ac_word" >&5 4168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4169if test "${ac_cv_prog_CC+set}" = set; then 4170 echo $ECHO_N "(cached) $ECHO_C" >&6 4171else 4172 if test -n "$CC"; then 4173 ac_cv_prog_CC="$CC" # Let the user override the test. 4174else 4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176for as_dir in $PATH 4177do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4182 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4184 break 2 4185 fi 4186done 4187done 4188 4189fi 4190fi 4191CC=$ac_cv_prog_CC 4192if test -n "$CC"; then 4193 echo "$as_me:$LINENO: result: $CC" >&5 4194echo "${ECHO_T}$CC" >&6 4195else 4196 echo "$as_me:$LINENO: result: no" >&5 4197echo "${ECHO_T}no" >&6 4198fi 4199 4200fi 4201if test -z "$ac_cv_prog_CC"; then 4202 ac_ct_CC=$CC 4203 # Extract the first word of "gcc", so it can be a program name with args. 4204set dummy gcc; ac_word=$2 4205echo "$as_me:$LINENO: checking for $ac_word" >&5 4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4207if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4208 echo $ECHO_N "(cached) $ECHO_C" >&6 4209else 4210 if test -n "$ac_ct_CC"; then 4211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4212else 4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4214for as_dir in $PATH 4215do 4216 IFS=$as_save_IFS 4217 test -z "$as_dir" && as_dir=. 4218 for ac_exec_ext in '' $ac_executable_extensions; do 4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4220 ac_cv_prog_ac_ct_CC="gcc" 4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4222 break 2 4223 fi 4224done 4225done 4226 4227fi 4228fi 4229ac_ct_CC=$ac_cv_prog_ac_ct_CC 4230if test -n "$ac_ct_CC"; then 4231 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4232echo "${ECHO_T}$ac_ct_CC" >&6 4233else 4234 echo "$as_me:$LINENO: result: no" >&5 4235echo "${ECHO_T}no" >&6 4236fi 4237 4238 CC=$ac_ct_CC 4239else 4240 CC="$ac_cv_prog_CC" 4241fi 4242 4243if test -z "$CC"; then 4244 if test -n "$ac_tool_prefix"; then 4245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4246set dummy ${ac_tool_prefix}cc; ac_word=$2 4247echo "$as_me:$LINENO: checking for $ac_word" >&5 4248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4249if test "${ac_cv_prog_CC+set}" = set; then 4250 echo $ECHO_N "(cached) $ECHO_C" >&6 4251else 4252 if test -n "$CC"; then 4253 ac_cv_prog_CC="$CC" # Let the user override the test. 4254else 4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4256for as_dir in $PATH 4257do 4258 IFS=$as_save_IFS 4259 test -z "$as_dir" && as_dir=. 4260 for ac_exec_ext in '' $ac_executable_extensions; do 4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4262 ac_cv_prog_CC="${ac_tool_prefix}cc" 4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4264 break 2 4265 fi 4266done 4267done 4268 4269fi 4270fi 4271CC=$ac_cv_prog_CC 4272if test -n "$CC"; then 4273 echo "$as_me:$LINENO: result: $CC" >&5 4274echo "${ECHO_T}$CC" >&6 4275else 4276 echo "$as_me:$LINENO: result: no" >&5 4277echo "${ECHO_T}no" >&6 4278fi 4279 4280fi 4281if test -z "$ac_cv_prog_CC"; then 4282 ac_ct_CC=$CC 4283 # Extract the first word of "cc", so it can be a program name with args. 4284set dummy cc; ac_word=$2 4285echo "$as_me:$LINENO: checking for $ac_word" >&5 4286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4287if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4288 echo $ECHO_N "(cached) $ECHO_C" >&6 4289else 4290 if test -n "$ac_ct_CC"; then 4291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4292else 4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4294for as_dir in $PATH 4295do 4296 IFS=$as_save_IFS 4297 test -z "$as_dir" && as_dir=. 4298 for ac_exec_ext in '' $ac_executable_extensions; do 4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4300 ac_cv_prog_ac_ct_CC="cc" 4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4302 break 2 4303 fi 4304done 4305done 4306 4307fi 4308fi 4309ac_ct_CC=$ac_cv_prog_ac_ct_CC 4310if test -n "$ac_ct_CC"; then 4311 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4312echo "${ECHO_T}$ac_ct_CC" >&6 4313else 4314 echo "$as_me:$LINENO: result: no" >&5 4315echo "${ECHO_T}no" >&6 4316fi 4317 4318 CC=$ac_ct_CC 4319else 4320 CC="$ac_cv_prog_CC" 4321fi 4322 4323fi 4324if test -z "$CC"; then 4325 # Extract the first word of "cc", so it can be a program name with args. 4326set dummy cc; ac_word=$2 4327echo "$as_me:$LINENO: checking for $ac_word" >&5 4328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4329if test "${ac_cv_prog_CC+set}" = set; then 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 4331else 4332 if test -n "$CC"; then 4333 ac_cv_prog_CC="$CC" # Let the user override the test. 4334else 4335 ac_prog_rejected=no 4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4337for as_dir in $PATH 4338do 4339 IFS=$as_save_IFS 4340 test -z "$as_dir" && as_dir=. 4341 for ac_exec_ext in '' $ac_executable_extensions; do 4342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4343 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4344 ac_prog_rejected=yes 4345 continue 4346 fi 4347 ac_cv_prog_CC="cc" 4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4349 break 2 4350 fi 4351done 4352done 4353 4354if test $ac_prog_rejected = yes; then 4355 # We found a bogon in the path, so make sure we never use it. 4356 set dummy $ac_cv_prog_CC 4357 shift 4358 if test $# != 0; then 4359 # We chose a different compiler from the bogus one. 4360 # However, it has the same basename, so the bogon will be chosen 4361 # first if we set CC to just the basename; use the full file name. 4362 shift 4363 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4364 fi 4365fi 4366fi 4367fi 4368CC=$ac_cv_prog_CC 4369if test -n "$CC"; then 4370 echo "$as_me:$LINENO: result: $CC" >&5 4371echo "${ECHO_T}$CC" >&6 4372else 4373 echo "$as_me:$LINENO: result: no" >&5 4374echo "${ECHO_T}no" >&6 4375fi 4376 4377fi 4378if test -z "$CC"; then 4379 if test -n "$ac_tool_prefix"; then 4380 for ac_prog in cl 4381 do 4382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4383set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4384echo "$as_me:$LINENO: checking for $ac_word" >&5 4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4386if test "${ac_cv_prog_CC+set}" = set; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388else 4389 if test -n "$CC"; then 4390 ac_cv_prog_CC="$CC" # Let the user override the test. 4391else 4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393for as_dir in $PATH 4394do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_exec_ext in '' $ac_executable_extensions; do 4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4401 break 2 4402 fi 4403done 4404done 4405 4406fi 4407fi 4408CC=$ac_cv_prog_CC 4409if test -n "$CC"; then 4410 echo "$as_me:$LINENO: result: $CC" >&5 4411echo "${ECHO_T}$CC" >&6 4412else 4413 echo "$as_me:$LINENO: result: no" >&5 4414echo "${ECHO_T}no" >&6 4415fi 4416 4417 test -n "$CC" && break 4418 done 4419fi 4420if test -z "$CC"; then 4421 ac_ct_CC=$CC 4422 for ac_prog in cl 4423do 4424 # Extract the first word of "$ac_prog", so it can be a program name with args. 4425set dummy $ac_prog; ac_word=$2 4426echo "$as_me:$LINENO: checking for $ac_word" >&5 4427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4429 echo $ECHO_N "(cached) $ECHO_C" >&6 4430else 4431 if test -n "$ac_ct_CC"; then 4432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4433else 4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4435for as_dir in $PATH 4436do 4437 IFS=$as_save_IFS 4438 test -z "$as_dir" && as_dir=. 4439 for ac_exec_ext in '' $ac_executable_extensions; do 4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4441 ac_cv_prog_ac_ct_CC="$ac_prog" 4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4443 break 2 4444 fi 4445done 4446done 4447 4448fi 4449fi 4450ac_ct_CC=$ac_cv_prog_ac_ct_CC 4451if test -n "$ac_ct_CC"; then 4452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4453echo "${ECHO_T}$ac_ct_CC" >&6 4454else 4455 echo "$as_me:$LINENO: result: no" >&5 4456echo "${ECHO_T}no" >&6 4457fi 4458 4459 test -n "$ac_ct_CC" && break 4460done 4461 4462 CC=$ac_ct_CC 4463fi 4464 4465fi 4466 4467 4468test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4469See \`config.log' for more details." >&5 4470echo "$as_me: error: no acceptable C compiler found in \$PATH 4471See \`config.log' for more details." >&2;} 4472 { (exit 1); exit 1; }; } 4473 4474# Provide some information about the compiler. 4475echo "$as_me:$LINENO:" \ 4476 "checking for C compiler version" >&5 4477ac_compiler=`set X $ac_compile; echo $2` 4478{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4479 (eval $ac_compiler --version </dev/null >&5) 2>&5 4480 ac_status=$? 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } 4483{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4484 (eval $ac_compiler -v </dev/null >&5) 2>&5 4485 ac_status=$? 4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4487 (exit $ac_status); } 4488{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4489 (eval $ac_compiler -V </dev/null >&5) 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); } 4493 4494echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4495echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 4496if test "${ac_cv_c_compiler_gnu+set}" = set; then 4497 echo $ECHO_N "(cached) $ECHO_C" >&6 4498else 4499 cat >conftest.$ac_ext <<_ACEOF 4500/* confdefs.h. */ 4501_ACEOF 4502cat confdefs.h >>conftest.$ac_ext 4503cat >>conftest.$ac_ext <<_ACEOF 4504/* end confdefs.h. */ 4505 4506int 4507main () 4508{ 4509#ifndef __GNUC__ 4510 choke me 4511#endif 4512 4513 ; 4514 return 0; 4515} 4516_ACEOF 4517rm -f conftest.$ac_objext 4518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4519 (eval $ac_compile) 2>conftest.er1 4520 ac_status=$? 4521 grep -v '^ *+' conftest.er1 >conftest.err 4522 rm -f conftest.er1 4523 cat conftest.err >&5 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); } && 4526 { ac_try='test -z "$ac_c_werror_flag" 4527 || test ! -s conftest.err' 4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4529 (eval $ac_try) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); }; } && 4533 { ac_try='test -s conftest.$ac_objext' 4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535 (eval $ac_try) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 ac_compiler_gnu=yes 4540else 4541 echo "$as_me: failed program was:" >&5 4542sed 's/^/| /' conftest.$ac_ext >&5 4543 4544ac_compiler_gnu=no 4545fi 4546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4547ac_cv_c_compiler_gnu=$ac_compiler_gnu 4548 4549fi 4550echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4551echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 4552GCC=`test $ac_compiler_gnu = yes && echo yes` 4553ac_test_CFLAGS=${CFLAGS+set} 4554ac_save_CFLAGS=$CFLAGS 4555CFLAGS="-g" 4556echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4557echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 4558if test "${ac_cv_prog_cc_g+set}" = set; then 4559 echo $ECHO_N "(cached) $ECHO_C" >&6 4560else 4561 cat >conftest.$ac_ext <<_ACEOF 4562/* confdefs.h. */ 4563_ACEOF 4564cat confdefs.h >>conftest.$ac_ext 4565cat >>conftest.$ac_ext <<_ACEOF 4566/* end confdefs.h. */ 4567 4568int 4569main () 4570{ 4571 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576rm -f conftest.$ac_objext 4577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4578 (eval $ac_compile) 2>conftest.er1 4579 ac_status=$? 4580 grep -v '^ *+' conftest.er1 >conftest.err 4581 rm -f conftest.er1 4582 cat conftest.err >&5 4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4584 (exit $ac_status); } && 4585 { ac_try='test -z "$ac_c_werror_flag" 4586 || test ! -s conftest.err' 4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4588 (eval $ac_try) 2>&5 4589 ac_status=$? 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); }; } && 4592 { ac_try='test -s conftest.$ac_objext' 4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4594 (eval $ac_try) 2>&5 4595 ac_status=$? 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); }; }; then 4598 ac_cv_prog_cc_g=yes 4599else 4600 echo "$as_me: failed program was:" >&5 4601sed 's/^/| /' conftest.$ac_ext >&5 4602 4603ac_cv_prog_cc_g=no 4604fi 4605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4606fi 4607echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4608echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 4609if test "$ac_test_CFLAGS" = set; then 4610 CFLAGS=$ac_save_CFLAGS 4611elif test $ac_cv_prog_cc_g = yes; then 4612 if test "$GCC" = yes; then 4613 CFLAGS="-g -O2" 4614 else 4615 CFLAGS="-g" 4616 fi 4617else 4618 if test "$GCC" = yes; then 4619 CFLAGS="-O2" 4620 else 4621 CFLAGS= 4622 fi 4623fi 4624echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 4625echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 4626if test "${ac_cv_prog_cc_stdc+set}" = set; then 4627 echo $ECHO_N "(cached) $ECHO_C" >&6 4628else 4629 ac_cv_prog_cc_stdc=no 4630ac_save_CC=$CC 4631cat >conftest.$ac_ext <<_ACEOF 4632/* confdefs.h. */ 4633_ACEOF 4634cat confdefs.h >>conftest.$ac_ext 4635cat >>conftest.$ac_ext <<_ACEOF 4636/* end confdefs.h. */ 4637#include <stdarg.h> 4638#include <stdio.h> 4639#include <sys/types.h> 4640#include <sys/stat.h> 4641/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4642struct buf { int x; }; 4643FILE * (*rcsopen) (struct buf *, struct stat *, int); 4644static char *e (p, i) 4645 char **p; 4646 int i; 4647{ 4648 return p[i]; 4649} 4650static char *f (char * (*g) (char **, int), char **p, ...) 4651{ 4652 char *s; 4653 va_list v; 4654 va_start (v,p); 4655 s = g (p, va_arg (v,int)); 4656 va_end (v); 4657 return s; 4658} 4659 4660/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4661 function prototypes and stuff, but not '\xHH' hex character constants. 4662 These don't provoke an error unfortunately, instead are silently treated 4663 as 'x'. The following induces an error, until -std1 is added to get 4664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4665 array size at least. It's necessary to write '\x00'==0 to get something 4666 that's true only with -std1. */ 4667int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4668 4669int test (int i, double x); 4670struct s1 {int (*f) (int a);}; 4671struct s2 {int (*f) (double a);}; 4672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4673int argc; 4674char **argv; 4675int 4676main () 4677{ 4678return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4679 ; 4680 return 0; 4681} 4682_ACEOF 4683# Don't try gcc -ansi; that turns off useful extensions and 4684# breaks some systems' header files. 4685# AIX -qlanglvl=ansi 4686# Ultrix and OSF/1 -std1 4687# HP-UX 10.20 and later -Ae 4688# HP-UX older versions -Aa -D_HPUX_SOURCE 4689# SVR4 -Xc -D__EXTENSIONS__ 4690for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4691do 4692 CC="$ac_save_CC $ac_arg" 4693 rm -f conftest.$ac_objext 4694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4695 (eval $ac_compile) 2>conftest.er1 4696 ac_status=$? 4697 grep -v '^ *+' conftest.er1 >conftest.err 4698 rm -f conftest.er1 4699 cat conftest.err >&5 4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4701 (exit $ac_status); } && 4702 { ac_try='test -z "$ac_c_werror_flag" 4703 || test ! -s conftest.err' 4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4705 (eval $ac_try) 2>&5 4706 ac_status=$? 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); }; } && 4709 { ac_try='test -s conftest.$ac_objext' 4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4711 (eval $ac_try) 2>&5 4712 ac_status=$? 4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); }; }; then 4715 ac_cv_prog_cc_stdc=$ac_arg 4716break 4717else 4718 echo "$as_me: failed program was:" >&5 4719sed 's/^/| /' conftest.$ac_ext >&5 4720 4721fi 4722rm -f conftest.err conftest.$ac_objext 4723done 4724rm -f conftest.$ac_ext conftest.$ac_objext 4725CC=$ac_save_CC 4726 4727fi 4728 4729case "x$ac_cv_prog_cc_stdc" in 4730 x|xno) 4731 echo "$as_me:$LINENO: result: none needed" >&5 4732echo "${ECHO_T}none needed" >&6 ;; 4733 *) 4734 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 4735echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 4736 CC="$CC $ac_cv_prog_cc_stdc" ;; 4737esac 4738 4739# Some people use a C++ compiler to compile C. Since we use `exit', 4740# in C++ we need to declare it. In case someone uses the same compiler 4741# for both compiling C and C++ we need to have the C++ compiler decide 4742# the declaration of exit, since it's the most demanding environment. 4743cat >conftest.$ac_ext <<_ACEOF 4744#ifndef __cplusplus 4745 choke me 4746#endif 4747_ACEOF 4748rm -f conftest.$ac_objext 4749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4750 (eval $ac_compile) 2>conftest.er1 4751 ac_status=$? 4752 grep -v '^ *+' conftest.er1 >conftest.err 4753 rm -f conftest.er1 4754 cat conftest.err >&5 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); } && 4757 { ac_try='test -z "$ac_c_werror_flag" 4758 || test ! -s conftest.err' 4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4760 (eval $ac_try) 2>&5 4761 ac_status=$? 4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4763 (exit $ac_status); }; } && 4764 { ac_try='test -s conftest.$ac_objext' 4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4766 (eval $ac_try) 2>&5 4767 ac_status=$? 4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4769 (exit $ac_status); }; }; then 4770 for ac_declaration in \ 4771 '' \ 4772 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4773 'extern "C" void std::exit (int); using std::exit;' \ 4774 'extern "C" void exit (int) throw ();' \ 4775 'extern "C" void exit (int);' \ 4776 'void exit (int);' 4777do 4778 cat >conftest.$ac_ext <<_ACEOF 4779/* confdefs.h. */ 4780_ACEOF 4781cat confdefs.h >>conftest.$ac_ext 4782cat >>conftest.$ac_ext <<_ACEOF 4783/* end confdefs.h. */ 4784$ac_declaration 4785#include <stdlib.h> 4786int 4787main () 4788{ 4789exit (42); 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794rm -f conftest.$ac_objext 4795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4796 (eval $ac_compile) 2>conftest.er1 4797 ac_status=$? 4798 grep -v '^ *+' conftest.er1 >conftest.err 4799 rm -f conftest.er1 4800 cat conftest.err >&5 4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4802 (exit $ac_status); } && 4803 { ac_try='test -z "$ac_c_werror_flag" 4804 || test ! -s conftest.err' 4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4806 (eval $ac_try) 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; } && 4810 { ac_try='test -s conftest.$ac_objext' 4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4812 (eval $ac_try) 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); }; }; then 4816 : 4817else 4818 echo "$as_me: failed program was:" >&5 4819sed 's/^/| /' conftest.$ac_ext >&5 4820 4821continue 4822fi 4823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4824 cat >conftest.$ac_ext <<_ACEOF 4825/* confdefs.h. */ 4826_ACEOF 4827cat confdefs.h >>conftest.$ac_ext 4828cat >>conftest.$ac_ext <<_ACEOF 4829/* end confdefs.h. */ 4830$ac_declaration 4831int 4832main () 4833{ 4834exit (42); 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest.$ac_objext 4840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4841 (eval $ac_compile) 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } && 4848 { ac_try='test -z "$ac_c_werror_flag" 4849 || test ! -s conftest.err' 4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4851 (eval $ac_try) 2>&5 4852 ac_status=$? 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); }; } && 4855 { ac_try='test -s conftest.$ac_objext' 4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4857 (eval $ac_try) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; }; then 4861 break 4862else 4863 echo "$as_me: failed program was:" >&5 4864sed 's/^/| /' conftest.$ac_ext >&5 4865 4866fi 4867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4868done 4869rm -f conftest* 4870if test -n "$ac_declaration"; then 4871 echo '#ifdef __cplusplus' >>confdefs.h 4872 echo $ac_declaration >>confdefs.h 4873 echo '#endif' >>confdefs.h 4874fi 4875 4876else 4877 echo "$as_me: failed program was:" >&5 4878sed 's/^/| /' conftest.$ac_ext >&5 4879 4880fi 4881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4882ac_ext=c 4883ac_cpp='$CPP $CPPFLAGS' 4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4886ac_compiler_gnu=$ac_cv_c_compiler_gnu 4887 4888# Find a good install program. We prefer a C program (faster), 4889# so one script is as good as another. But avoid the broken or 4890# incompatible versions: 4891# SysV /etc/install, /usr/sbin/install 4892# SunOS /usr/etc/install 4893# IRIX /sbin/install 4894# AIX /bin/install 4895# AmigaOS /C/install, which installs bootblocks on floppy discs 4896# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4897# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4898# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4899# OS/2's system install, which has a completely different semantic 4900# ./install, which can be erroneously created by make from ./install.sh. 4901echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4902echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4903if test -z "$INSTALL"; then 4904if test "${ac_cv_path_install+set}" = set; then 4905 echo $ECHO_N "(cached) $ECHO_C" >&6 4906else 4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4908for as_dir in $PATH 4909do 4910 IFS=$as_save_IFS 4911 test -z "$as_dir" && as_dir=. 4912 # Account for people who put trailing slashes in PATH elements. 4913case $as_dir/ in 4914 ./ | .// | /cC/* | \ 4915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4916 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4917 /usr/ucb/* ) ;; 4918 *) 4919 # OSF1 and SCO ODT 3.0 have their own names for install. 4920 # Don't use installbsd from OSF since it installs stuff as root 4921 # by default. 4922 for ac_prog in ginstall scoinst install; do 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4925 if test $ac_prog = install && 4926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4927 # AIX install. It has an incompatible calling convention. 4928 : 4929 elif test $ac_prog = install && 4930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4931 # program-specific install script used by HP pwplus--don't use. 4932 : 4933 else 4934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4935 break 3 4936 fi 4937 fi 4938 done 4939 done 4940 ;; 4941esac 4942done 4943 4944 4945fi 4946 if test "${ac_cv_path_install+set}" = set; then 4947 INSTALL=$ac_cv_path_install 4948 else 4949 # As a last resort, use the slow shell script. We don't cache a 4950 # path for INSTALL within a source directory, because that will 4951 # break other packages using the cache if that directory is 4952 # removed, or if the path is relative. 4953 INSTALL=$ac_install_sh 4954 fi 4955fi 4956echo "$as_me:$LINENO: result: $INSTALL" >&5 4957echo "${ECHO_T}$INSTALL" >&6 4958 4959# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4960# It thinks the first close brace ends the variable substitution. 4961test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4962 4963test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4964 4965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4966 4967 4968 4969for ac_func in setmode 4970do 4971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4972echo "$as_me:$LINENO: checking for $ac_func" >&5 4973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4974if eval "test \"\${$as_ac_var+set}\" = set"; then 4975 echo $ECHO_N "(cached) $ECHO_C" >&6 4976else 4977 cat >conftest.$ac_ext <<_ACEOF 4978/* confdefs.h. */ 4979_ACEOF 4980cat confdefs.h >>conftest.$ac_ext 4981cat >>conftest.$ac_ext <<_ACEOF 4982/* end confdefs.h. */ 4983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4984 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4985#define $ac_func innocuous_$ac_func 4986 4987/* System header to define __stub macros and hopefully few prototypes, 4988 which can conflict with char $ac_func (); below. 4989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4990 <limits.h> exists even on freestanding compilers. */ 4991 4992#ifdef __STDC__ 4993# include <limits.h> 4994#else 4995# include <assert.h> 4996#endif 4997 4998#undef $ac_func 4999 5000/* Override any gcc2 internal prototype to avoid an error. */ 5001#ifdef __cplusplus 5002extern "C" 5003{ 5004#endif 5005/* We use char because int might match the return type of a gcc2 5006 builtin and then its argument prototype would still apply. */ 5007char $ac_func (); 5008/* The GNU C library defines this for functions which it implements 5009 to always fail with ENOSYS. Some functions are actually named 5010 something starting with __ and the normal name is an alias. */ 5011#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5012choke me 5013#else 5014char (*f) () = $ac_func; 5015#endif 5016#ifdef __cplusplus 5017} 5018#endif 5019 5020int 5021main () 5022{ 5023return f != $ac_func; 5024 ; 5025 return 0; 5026} 5027_ACEOF 5028rm -f conftest.$ac_objext conftest$ac_exeext 5029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5030 (eval $ac_link) 2>conftest.er1 5031 ac_status=$? 5032 grep -v '^ *+' conftest.er1 >conftest.err 5033 rm -f conftest.er1 5034 cat conftest.err >&5 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); } && 5037 { ac_try='test -z "$ac_c_werror_flag" 5038 || test ! -s conftest.err' 5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5040 (eval $ac_try) 2>&5 5041 ac_status=$? 5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5043 (exit $ac_status); }; } && 5044 { ac_try='test -s conftest$ac_exeext' 5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5046 (eval $ac_try) 2>&5 5047 ac_status=$? 5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5049 (exit $ac_status); }; }; then 5050 eval "$as_ac_var=yes" 5051else 5052 echo "$as_me: failed program was:" >&5 5053sed 's/^/| /' conftest.$ac_ext >&5 5054 5055eval "$as_ac_var=no" 5056fi 5057rm -f conftest.err conftest.$ac_objext \ 5058 conftest$ac_exeext conftest.$ac_ext 5059fi 5060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5062if test `eval echo '${'$as_ac_var'}'` = yes; then 5063 cat >>confdefs.h <<_ACEOF 5064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5065_ACEOF 5066 5067fi 5068done 5069 5070 5071ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga" 5072if test -n "$ac_tool_prefix"; then 5073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5074set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5075echo "$as_me:$LINENO: checking for $ac_word" >&5 5076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5077if test "${ac_cv_prog_RANLIB+set}" = set; then 5078 echo $ECHO_N "(cached) $ECHO_C" >&6 5079else 5080 if test -n "$RANLIB"; then 5081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5082else 5083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5084for as_dir in $PATH 5085do 5086 IFS=$as_save_IFS 5087 test -z "$as_dir" && as_dir=. 5088 for ac_exec_ext in '' $ac_executable_extensions; do 5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5092 break 2 5093 fi 5094done 5095done 5096 5097fi 5098fi 5099RANLIB=$ac_cv_prog_RANLIB 5100if test -n "$RANLIB"; then 5101 echo "$as_me:$LINENO: result: $RANLIB" >&5 5102echo "${ECHO_T}$RANLIB" >&6 5103else 5104 echo "$as_me:$LINENO: result: no" >&5 5105echo "${ECHO_T}no" >&6 5106fi 5107 5108fi 5109if test -z "$ac_cv_prog_RANLIB"; then 5110 ac_ct_RANLIB=$RANLIB 5111 # Extract the first word of "ranlib", so it can be a program name with args. 5112set dummy ranlib; ac_word=$2 5113echo "$as_me:$LINENO: checking for $ac_word" >&5 5114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5115if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5116 echo $ECHO_N "(cached) $ECHO_C" >&6 5117else 5118 if test -n "$ac_ct_RANLIB"; then 5119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5120else 5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5122for as_dir in $PATH 5123do 5124 IFS=$as_save_IFS 5125 test -z "$as_dir" && as_dir=. 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5128 ac_cv_prog_ac_ct_RANLIB="ranlib" 5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5130 break 2 5131 fi 5132done 5133done 5134 5135 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5136fi 5137fi 5138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5139if test -n "$ac_ct_RANLIB"; then 5140 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5141echo "${ECHO_T}$ac_ct_RANLIB" >&6 5142else 5143 echo "$as_me:$LINENO: result: no" >&5 5144echo "${ECHO_T}no" >&6 5145fi 5146 5147 RANLIB=$ac_ct_RANLIB 5148else 5149 RANLIB="$ac_cv_prog_RANLIB" 5150fi 5151 5152ac_ext=c 5153ac_cpp='$CPP $CPPFLAGS' 5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5156ac_compiler_gnu=$ac_cv_c_compiler_gnu 5157echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5158echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5159# On Suns, sometimes $CPP names a directory. 5160if test -n "$CPP" && test -d "$CPP"; then 5161 CPP= 5162fi 5163if test -z "$CPP"; then 5164 if test "${ac_cv_prog_CPP+set}" = set; then 5165 echo $ECHO_N "(cached) $ECHO_C" >&6 5166else 5167 # Double quotes because CPP needs to be expanded 5168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5169 do 5170 ac_preproc_ok=false 5171for ac_c_preproc_warn_flag in '' yes 5172do 5173 # Use a header file that comes with gcc, so configuring glibc 5174 # with a fresh cross-compiler works. 5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5176 # <limits.h> exists even on freestanding compilers. 5177 # On the NeXT, cc -E runs the code through the compiler's parser, 5178 # not just through cpp. "Syntax error" is here to catch this case. 5179 cat >conftest.$ac_ext <<_ACEOF 5180/* confdefs.h. */ 5181_ACEOF 5182cat confdefs.h >>conftest.$ac_ext 5183cat >>conftest.$ac_ext <<_ACEOF 5184/* end confdefs.h. */ 5185#ifdef __STDC__ 5186# include <limits.h> 5187#else 5188# include <assert.h> 5189#endif 5190 Syntax error 5191_ACEOF 5192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5194 ac_status=$? 5195 grep -v '^ *+' conftest.er1 >conftest.err 5196 rm -f conftest.er1 5197 cat conftest.err >&5 5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5199 (exit $ac_status); } >/dev/null; then 5200 if test -s conftest.err; then 5201 ac_cpp_err=$ac_c_preproc_warn_flag 5202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5203 else 5204 ac_cpp_err= 5205 fi 5206else 5207 ac_cpp_err=yes 5208fi 5209if test -z "$ac_cpp_err"; then 5210 : 5211else 5212 echo "$as_me: failed program was:" >&5 5213sed 's/^/| /' conftest.$ac_ext >&5 5214 5215 # Broken: fails on valid input. 5216continue 5217fi 5218rm -f conftest.err conftest.$ac_ext 5219 5220 # OK, works on sane cases. Now check whether non-existent headers 5221 # can be detected and how. 5222 cat >conftest.$ac_ext <<_ACEOF 5223/* confdefs.h. */ 5224_ACEOF 5225cat confdefs.h >>conftest.$ac_ext 5226cat >>conftest.$ac_ext <<_ACEOF 5227/* end confdefs.h. */ 5228#include <ac_nonexistent.h> 5229_ACEOF 5230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5232 ac_status=$? 5233 grep -v '^ *+' conftest.er1 >conftest.err 5234 rm -f conftest.er1 5235 cat conftest.err >&5 5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5237 (exit $ac_status); } >/dev/null; then 5238 if test -s conftest.err; then 5239 ac_cpp_err=$ac_c_preproc_warn_flag 5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5241 else 5242 ac_cpp_err= 5243 fi 5244else 5245 ac_cpp_err=yes 5246fi 5247if test -z "$ac_cpp_err"; then 5248 # Broken: success on invalid input. 5249continue 5250else 5251 echo "$as_me: failed program was:" >&5 5252sed 's/^/| /' conftest.$ac_ext >&5 5253 5254 # Passes both tests. 5255ac_preproc_ok=: 5256break 5257fi 5258rm -f conftest.err conftest.$ac_ext 5259 5260done 5261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5262rm -f conftest.err conftest.$ac_ext 5263if $ac_preproc_ok; then 5264 break 5265fi 5266 5267 done 5268 ac_cv_prog_CPP=$CPP 5269 5270fi 5271 CPP=$ac_cv_prog_CPP 5272else 5273 ac_cv_prog_CPP=$CPP 5274fi 5275echo "$as_me:$LINENO: result: $CPP" >&5 5276echo "${ECHO_T}$CPP" >&6 5277ac_preproc_ok=false 5278for ac_c_preproc_warn_flag in '' yes 5279do 5280 # Use a header file that comes with gcc, so configuring glibc 5281 # with a fresh cross-compiler works. 5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5283 # <limits.h> exists even on freestanding compilers. 5284 # On the NeXT, cc -E runs the code through the compiler's parser, 5285 # not just through cpp. "Syntax error" is here to catch this case. 5286 cat >conftest.$ac_ext <<_ACEOF 5287/* confdefs.h. */ 5288_ACEOF 5289cat confdefs.h >>conftest.$ac_ext 5290cat >>conftest.$ac_ext <<_ACEOF 5291/* end confdefs.h. */ 5292#ifdef __STDC__ 5293# include <limits.h> 5294#else 5295# include <assert.h> 5296#endif 5297 Syntax error 5298_ACEOF 5299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5301 ac_status=$? 5302 grep -v '^ *+' conftest.er1 >conftest.err 5303 rm -f conftest.er1 5304 cat conftest.err >&5 5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5306 (exit $ac_status); } >/dev/null; then 5307 if test -s conftest.err; then 5308 ac_cpp_err=$ac_c_preproc_warn_flag 5309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5310 else 5311 ac_cpp_err= 5312 fi 5313else 5314 ac_cpp_err=yes 5315fi 5316if test -z "$ac_cpp_err"; then 5317 : 5318else 5319 echo "$as_me: failed program was:" >&5 5320sed 's/^/| /' conftest.$ac_ext >&5 5321 5322 # Broken: fails on valid input. 5323continue 5324fi 5325rm -f conftest.err conftest.$ac_ext 5326 5327 # OK, works on sane cases. Now check whether non-existent headers 5328 # can be detected and how. 5329 cat >conftest.$ac_ext <<_ACEOF 5330/* confdefs.h. */ 5331_ACEOF 5332cat confdefs.h >>conftest.$ac_ext 5333cat >>conftest.$ac_ext <<_ACEOF 5334/* end confdefs.h. */ 5335#include <ac_nonexistent.h> 5336_ACEOF 5337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5339 ac_status=$? 5340 grep -v '^ *+' conftest.er1 >conftest.err 5341 rm -f conftest.er1 5342 cat conftest.err >&5 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } >/dev/null; then 5345 if test -s conftest.err; then 5346 ac_cpp_err=$ac_c_preproc_warn_flag 5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5348 else 5349 ac_cpp_err= 5350 fi 5351else 5352 ac_cpp_err=yes 5353fi 5354if test -z "$ac_cpp_err"; then 5355 # Broken: success on invalid input. 5356continue 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361 # Passes both tests. 5362ac_preproc_ok=: 5363break 5364fi 5365rm -f conftest.err conftest.$ac_ext 5366 5367done 5368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5369rm -f conftest.err conftest.$ac_ext 5370if $ac_preproc_ok; then 5371 : 5372else 5373 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5374See \`config.log' for more details." >&5 5375echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5376See \`config.log' for more details." >&2;} 5377 { (exit 1); exit 1; }; } 5378fi 5379 5380ac_ext=c 5381ac_cpp='$CPP $CPPFLAGS' 5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5384ac_compiler_gnu=$ac_cv_c_compiler_gnu 5385 5386 5387echo "$as_me:$LINENO: checking for egrep" >&5 5388echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5389if test "${ac_cv_prog_egrep+set}" = set; then 5390 echo $ECHO_N "(cached) $ECHO_C" >&6 5391else 5392 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 5393 then ac_cv_prog_egrep='grep -E' 5394 else ac_cv_prog_egrep='egrep' 5395 fi 5396fi 5397echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 5398echo "${ECHO_T}$ac_cv_prog_egrep" >&6 5399 EGREP=$ac_cv_prog_egrep 5400 5401 5402echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5403echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5404if test "${ac_cv_header_stdc+set}" = set; then 5405 echo $ECHO_N "(cached) $ECHO_C" >&6 5406else 5407 cat >conftest.$ac_ext <<_ACEOF 5408/* confdefs.h. */ 5409_ACEOF 5410cat confdefs.h >>conftest.$ac_ext 5411cat >>conftest.$ac_ext <<_ACEOF 5412/* end confdefs.h. */ 5413#include <stdlib.h> 5414#include <stdarg.h> 5415#include <string.h> 5416#include <float.h> 5417 5418int 5419main () 5420{ 5421 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426rm -f conftest.$ac_objext 5427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5428 (eval $ac_compile) 2>conftest.er1 5429 ac_status=$? 5430 grep -v '^ *+' conftest.er1 >conftest.err 5431 rm -f conftest.er1 5432 cat conftest.err >&5 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && 5435 { ac_try='test -z "$ac_c_werror_flag" 5436 || test ! -s conftest.err' 5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5438 (eval $ac_try) 2>&5 5439 ac_status=$? 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); }; } && 5442 { ac_try='test -s conftest.$ac_objext' 5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5444 (eval $ac_try) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); }; }; then 5448 ac_cv_header_stdc=yes 5449else 5450 echo "$as_me: failed program was:" >&5 5451sed 's/^/| /' conftest.$ac_ext >&5 5452 5453ac_cv_header_stdc=no 5454fi 5455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5456 5457if test $ac_cv_header_stdc = yes; then 5458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5459 cat >conftest.$ac_ext <<_ACEOF 5460/* confdefs.h. */ 5461_ACEOF 5462cat confdefs.h >>conftest.$ac_ext 5463cat >>conftest.$ac_ext <<_ACEOF 5464/* end confdefs.h. */ 5465#include <string.h> 5466 5467_ACEOF 5468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5469 $EGREP "memchr" >/dev/null 2>&1; then 5470 : 5471else 5472 ac_cv_header_stdc=no 5473fi 5474rm -f conftest* 5475 5476fi 5477 5478if test $ac_cv_header_stdc = yes; then 5479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5480 cat >conftest.$ac_ext <<_ACEOF 5481/* confdefs.h. */ 5482_ACEOF 5483cat confdefs.h >>conftest.$ac_ext 5484cat >>conftest.$ac_ext <<_ACEOF 5485/* end confdefs.h. */ 5486#include <stdlib.h> 5487 5488_ACEOF 5489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5490 $EGREP "free" >/dev/null 2>&1; then 5491 : 5492else 5493 ac_cv_header_stdc=no 5494fi 5495rm -f conftest* 5496 5497fi 5498 5499if test $ac_cv_header_stdc = yes; then 5500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5501 if test "$cross_compiling" = yes; then 5502 : 5503else 5504 cat >conftest.$ac_ext <<_ACEOF 5505/* confdefs.h. */ 5506_ACEOF 5507cat confdefs.h >>conftest.$ac_ext 5508cat >>conftest.$ac_ext <<_ACEOF 5509/* end confdefs.h. */ 5510#include <ctype.h> 5511#if ((' ' & 0x0FF) == 0x020) 5512# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5513# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5514#else 5515# define ISLOWER(c) \ 5516 (('a' <= (c) && (c) <= 'i') \ 5517 || ('j' <= (c) && (c) <= 'r') \ 5518 || ('s' <= (c) && (c) <= 'z')) 5519# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5520#endif 5521 5522#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5523int 5524main () 5525{ 5526 int i; 5527 for (i = 0; i < 256; i++) 5528 if (XOR (islower (i), ISLOWER (i)) 5529 || toupper (i) != TOUPPER (i)) 5530 exit(2); 5531 exit (0); 5532} 5533_ACEOF 5534rm -f conftest$ac_exeext 5535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5536 (eval $ac_link) 2>&5 5537 ac_status=$? 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5541 (eval $ac_try) 2>&5 5542 ac_status=$? 5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5544 (exit $ac_status); }; }; then 5545 : 5546else 5547 echo "$as_me: program exited with status $ac_status" >&5 5548echo "$as_me: failed program was:" >&5 5549sed 's/^/| /' conftest.$ac_ext >&5 5550 5551( exit $ac_status ) 5552ac_cv_header_stdc=no 5553fi 5554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5555fi 5556fi 5557fi 5558echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5559echo "${ECHO_T}$ac_cv_header_stdc" >&6 5560if test $ac_cv_header_stdc = yes; then 5561 5562cat >>confdefs.h <<\_ACEOF 5563#define STDC_HEADERS 1 5564_ACEOF 5565 5566fi 5567 5568echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5569echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5570if test "${ac_cv_c_const+set}" = set; then 5571 echo $ECHO_N "(cached) $ECHO_C" >&6 5572else 5573 cat >conftest.$ac_ext <<_ACEOF 5574/* confdefs.h. */ 5575_ACEOF 5576cat confdefs.h >>conftest.$ac_ext 5577cat >>conftest.$ac_ext <<_ACEOF 5578/* end confdefs.h. */ 5579 5580int 5581main () 5582{ 5583/* FIXME: Include the comments suggested by Paul. */ 5584#ifndef __cplusplus 5585 /* Ultrix mips cc rejects this. */ 5586 typedef int charset[2]; 5587 const charset x; 5588 /* SunOS 4.1.1 cc rejects this. */ 5589 char const *const *ccp; 5590 char **p; 5591 /* NEC SVR4.0.2 mips cc rejects this. */ 5592 struct point {int x, y;}; 5593 static struct point const zero = {0,0}; 5594 /* AIX XL C 1.02.0.0 rejects this. 5595 It does not let you subtract one const X* pointer from another in 5596 an arm of an if-expression whose if-part is not a constant 5597 expression */ 5598 const char *g = "string"; 5599 ccp = &g + (g ? g-g : 0); 5600 /* HPUX 7.0 cc rejects these. */ 5601 ++ccp; 5602 p = (char**) ccp; 5603 ccp = (char const *const *) p; 5604 { /* SCO 3.2v4 cc rejects this. */ 5605 char *t; 5606 char const *s = 0 ? (char *) 0 : (char const *) 0; 5607 5608 *t++ = 0; 5609 } 5610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5611 int x[] = {25, 17}; 5612 const int *foo = &x[0]; 5613 ++foo; 5614 } 5615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5616 typedef const int *iptr; 5617 iptr p = 0; 5618 ++p; 5619 } 5620 { /* AIX XL C 1.02.0.0 rejects this saying 5621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5622 struct s { int j; const int *ap[3]; }; 5623 struct s *b; b->j = 5; 5624 } 5625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5626 const int foo = 10; 5627 } 5628#endif 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634rm -f conftest.$ac_objext 5635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5636 (eval $ac_compile) 2>conftest.er1 5637 ac_status=$? 5638 grep -v '^ *+' conftest.er1 >conftest.err 5639 rm -f conftest.er1 5640 cat conftest.err >&5 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); } && 5643 { ac_try='test -z "$ac_c_werror_flag" 5644 || test ! -s conftest.err' 5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5646 (eval $ac_try) 2>&5 5647 ac_status=$? 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5649 (exit $ac_status); }; } && 5650 { ac_try='test -s conftest.$ac_objext' 5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5652 (eval $ac_try) 2>&5 5653 ac_status=$? 5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5655 (exit $ac_status); }; }; then 5656 ac_cv_c_const=yes 5657else 5658 echo "$as_me: failed program was:" >&5 5659sed 's/^/| /' conftest.$ac_ext >&5 5660 5661ac_cv_c_const=no 5662fi 5663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5664fi 5665echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5666echo "${ECHO_T}$ac_cv_c_const" >&6 5667if test $ac_cv_c_const = no; then 5668 5669cat >>confdefs.h <<\_ACEOF 5670#define const 5671_ACEOF 5672 5673fi 5674 5675echo "$as_me:$LINENO: checking for inline" >&5 5676echo $ECHO_N "checking for inline... $ECHO_C" >&6 5677if test "${ac_cv_c_inline+set}" = set; then 5678 echo $ECHO_N "(cached) $ECHO_C" >&6 5679else 5680 ac_cv_c_inline=no 5681for ac_kw in inline __inline__ __inline; do 5682 cat >conftest.$ac_ext <<_ACEOF 5683/* confdefs.h. */ 5684_ACEOF 5685cat confdefs.h >>conftest.$ac_ext 5686cat >>conftest.$ac_ext <<_ACEOF 5687/* end confdefs.h. */ 5688#ifndef __cplusplus 5689typedef int foo_t; 5690static $ac_kw foo_t static_foo () {return 0; } 5691$ac_kw foo_t foo () {return 0; } 5692#endif 5693 5694_ACEOF 5695rm -f conftest.$ac_objext 5696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5697 (eval $ac_compile) 2>conftest.er1 5698 ac_status=$? 5699 grep -v '^ *+' conftest.er1 >conftest.err 5700 rm -f conftest.er1 5701 cat conftest.err >&5 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); } && 5704 { ac_try='test -z "$ac_c_werror_flag" 5705 || test ! -s conftest.err' 5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5707 (eval $ac_try) 2>&5 5708 ac_status=$? 5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 (exit $ac_status); }; } && 5711 { ac_try='test -s conftest.$ac_objext' 5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5713 (eval $ac_try) 2>&5 5714 ac_status=$? 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); }; }; then 5717 ac_cv_c_inline=$ac_kw; break 5718else 5719 echo "$as_me: failed program was:" >&5 5720sed 's/^/| /' conftest.$ac_ext >&5 5721 5722fi 5723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5724done 5725 5726fi 5727echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5728echo "${ECHO_T}$ac_cv_c_inline" >&6 5729 5730 5731case $ac_cv_c_inline in 5732 inline | yes) ;; 5733 *) 5734 case $ac_cv_c_inline in 5735 no) ac_val=;; 5736 *) ac_val=$ac_cv_c_inline;; 5737 esac 5738 cat >>confdefs.h <<_ACEOF 5739#ifndef __cplusplus 5740#define inline $ac_val 5741#endif 5742_ACEOF 5743 ;; 5744esac 5745 5746# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5757 inttypes.h stdint.h unistd.h 5758do 5759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5760echo "$as_me:$LINENO: checking for $ac_header" >&5 5761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5762if eval "test \"\${$as_ac_Header+set}\" = set"; then 5763 echo $ECHO_N "(cached) $ECHO_C" >&6 5764else 5765 cat >conftest.$ac_ext <<_ACEOF 5766/* confdefs.h. */ 5767_ACEOF 5768cat confdefs.h >>conftest.$ac_ext 5769cat >>conftest.$ac_ext <<_ACEOF 5770/* end confdefs.h. */ 5771$ac_includes_default 5772 5773#include <$ac_header> 5774_ACEOF 5775rm -f conftest.$ac_objext 5776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5777 (eval $ac_compile) 2>conftest.er1 5778 ac_status=$? 5779 grep -v '^ *+' conftest.er1 >conftest.err 5780 rm -f conftest.er1 5781 cat conftest.err >&5 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); } && 5784 { ac_try='test -z "$ac_c_werror_flag" 5785 || test ! -s conftest.err' 5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5787 (eval $ac_try) 2>&5 5788 ac_status=$? 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5790 (exit $ac_status); }; } && 5791 { ac_try='test -s conftest.$ac_objext' 5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5793 (eval $ac_try) 2>&5 5794 ac_status=$? 5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5796 (exit $ac_status); }; }; then 5797 eval "$as_ac_Header=yes" 5798else 5799 echo "$as_me: failed program was:" >&5 5800sed 's/^/| /' conftest.$ac_ext >&5 5801 5802eval "$as_ac_Header=no" 5803fi 5804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5805fi 5806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5808if test `eval echo '${'$as_ac_Header'}'` = yes; then 5809 cat >>confdefs.h <<_ACEOF 5810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5811_ACEOF 5812 5813fi 5814 5815done 5816 5817 5818echo "$as_me:$LINENO: checking for off_t" >&5 5819echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5820if test "${ac_cv_type_off_t+set}" = set; then 5821 echo $ECHO_N "(cached) $ECHO_C" >&6 5822else 5823 cat >conftest.$ac_ext <<_ACEOF 5824/* confdefs.h. */ 5825_ACEOF 5826cat confdefs.h >>conftest.$ac_ext 5827cat >>conftest.$ac_ext <<_ACEOF 5828/* end confdefs.h. */ 5829$ac_includes_default 5830int 5831main () 5832{ 5833if ((off_t *) 0) 5834 return 0; 5835if (sizeof (off_t)) 5836 return 0; 5837 ; 5838 return 0; 5839} 5840_ACEOF 5841rm -f conftest.$ac_objext 5842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5843 (eval $ac_compile) 2>conftest.er1 5844 ac_status=$? 5845 grep -v '^ *+' conftest.er1 >conftest.err 5846 rm -f conftest.er1 5847 cat conftest.err >&5 5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5849 (exit $ac_status); } && 5850 { ac_try='test -z "$ac_c_werror_flag" 5851 || test ! -s conftest.err' 5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5853 (eval $ac_try) 2>&5 5854 ac_status=$? 5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5856 (exit $ac_status); }; } && 5857 { ac_try='test -s conftest.$ac_objext' 5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5859 (eval $ac_try) 2>&5 5860 ac_status=$? 5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5862 (exit $ac_status); }; }; then 5863 ac_cv_type_off_t=yes 5864else 5865 echo "$as_me: failed program was:" >&5 5866sed 's/^/| /' conftest.$ac_ext >&5 5867 5868ac_cv_type_off_t=no 5869fi 5870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5871fi 5872echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5873echo "${ECHO_T}$ac_cv_type_off_t" >&6 5874if test $ac_cv_type_off_t = yes; then 5875 : 5876else 5877 5878cat >>confdefs.h <<_ACEOF 5879#define off_t long 5880_ACEOF 5881 5882fi 5883 5884echo "$as_me:$LINENO: checking for size_t" >&5 5885echo $ECHO_N "checking for size_t... $ECHO_C" >&6 5886if test "${ac_cv_type_size_t+set}" = set; then 5887 echo $ECHO_N "(cached) $ECHO_C" >&6 5888else 5889 cat >conftest.$ac_ext <<_ACEOF 5890/* confdefs.h. */ 5891_ACEOF 5892cat confdefs.h >>conftest.$ac_ext 5893cat >>conftest.$ac_ext <<_ACEOF 5894/* end confdefs.h. */ 5895$ac_includes_default 5896int 5897main () 5898{ 5899if ((size_t *) 0) 5900 return 0; 5901if (sizeof (size_t)) 5902 return 0; 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907rm -f conftest.$ac_objext 5908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5909 (eval $ac_compile) 2>conftest.er1 5910 ac_status=$? 5911 grep -v '^ *+' conftest.er1 >conftest.err 5912 rm -f conftest.er1 5913 cat conftest.err >&5 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } && 5916 { ac_try='test -z "$ac_c_werror_flag" 5917 || test ! -s conftest.err' 5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5919 (eval $ac_try) 2>&5 5920 ac_status=$? 5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5922 (exit $ac_status); }; } && 5923 { ac_try='test -s conftest.$ac_objext' 5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5925 (eval $ac_try) 2>&5 5926 ac_status=$? 5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5928 (exit $ac_status); }; }; then 5929 ac_cv_type_size_t=yes 5930else 5931 echo "$as_me: failed program was:" >&5 5932sed 's/^/| /' conftest.$ac_ext >&5 5933 5934ac_cv_type_size_t=no 5935fi 5936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5937fi 5938echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5939echo "${ECHO_T}$ac_cv_type_size_t" >&6 5940if test $ac_cv_type_size_t = yes; then 5941 : 5942else 5943 5944cat >>confdefs.h <<_ACEOF 5945#define size_t unsigned 5946_ACEOF 5947 5948fi 5949 5950# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5951# for constant arguments. Useless! 5952echo "$as_me:$LINENO: checking for working alloca.h" >&5 5953echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5954if test "${ac_cv_working_alloca_h+set}" = set; then 5955 echo $ECHO_N "(cached) $ECHO_C" >&6 5956else 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963#include <alloca.h> 5964int 5965main () 5966{ 5967char *p = (char *) alloca (2 * sizeof (int)); 5968 ; 5969 return 0; 5970} 5971_ACEOF 5972rm -f conftest.$ac_objext conftest$ac_exeext 5973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5974 (eval $ac_link) 2>conftest.er1 5975 ac_status=$? 5976 grep -v '^ *+' conftest.er1 >conftest.err 5977 rm -f conftest.er1 5978 cat conftest.err >&5 5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5980 (exit $ac_status); } && 5981 { ac_try='test -z "$ac_c_werror_flag" 5982 || test ! -s conftest.err' 5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5984 (eval $ac_try) 2>&5 5985 ac_status=$? 5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5987 (exit $ac_status); }; } && 5988 { ac_try='test -s conftest$ac_exeext' 5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5990 (eval $ac_try) 2>&5 5991 ac_status=$? 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); }; }; then 5994 ac_cv_working_alloca_h=yes 5995else 5996 echo "$as_me: failed program was:" >&5 5997sed 's/^/| /' conftest.$ac_ext >&5 5998 5999ac_cv_working_alloca_h=no 6000fi 6001rm -f conftest.err conftest.$ac_objext \ 6002 conftest$ac_exeext conftest.$ac_ext 6003fi 6004echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 6005echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 6006if test $ac_cv_working_alloca_h = yes; then 6007 6008cat >>confdefs.h <<\_ACEOF 6009#define HAVE_ALLOCA_H 1 6010_ACEOF 6011 6012fi 6013 6014echo "$as_me:$LINENO: checking for alloca" >&5 6015echo $ECHO_N "checking for alloca... $ECHO_C" >&6 6016if test "${ac_cv_func_alloca_works+set}" = set; then 6017 echo $ECHO_N "(cached) $ECHO_C" >&6 6018else 6019 cat >conftest.$ac_ext <<_ACEOF 6020/* confdefs.h. */ 6021_ACEOF 6022cat confdefs.h >>conftest.$ac_ext 6023cat >>conftest.$ac_ext <<_ACEOF 6024/* end confdefs.h. */ 6025#ifdef __GNUC__ 6026# define alloca __builtin_alloca 6027#else 6028# ifdef _MSC_VER 6029# include <malloc.h> 6030# define alloca _alloca 6031# else 6032# if HAVE_ALLOCA_H 6033# include <alloca.h> 6034# else 6035# ifdef _AIX 6036 #pragma alloca 6037# else 6038# ifndef alloca /* predefined by HP cc +Olibcalls */ 6039char *alloca (); 6040# endif 6041# endif 6042# endif 6043# endif 6044#endif 6045 6046int 6047main () 6048{ 6049char *p = (char *) alloca (1); 6050 ; 6051 return 0; 6052} 6053_ACEOF 6054rm -f conftest.$ac_objext conftest$ac_exeext 6055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6056 (eval $ac_link) 2>conftest.er1 6057 ac_status=$? 6058 grep -v '^ *+' conftest.er1 >conftest.err 6059 rm -f conftest.er1 6060 cat conftest.err >&5 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); } && 6063 { ac_try='test -z "$ac_c_werror_flag" 6064 || test ! -s conftest.err' 6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6066 (eval $ac_try) 2>&5 6067 ac_status=$? 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); }; } && 6070 { ac_try='test -s conftest$ac_exeext' 6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6072 (eval $ac_try) 2>&5 6073 ac_status=$? 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); }; }; then 6076 ac_cv_func_alloca_works=yes 6077else 6078 echo "$as_me: failed program was:" >&5 6079sed 's/^/| /' conftest.$ac_ext >&5 6080 6081ac_cv_func_alloca_works=no 6082fi 6083rm -f conftest.err conftest.$ac_objext \ 6084 conftest$ac_exeext conftest.$ac_ext 6085fi 6086echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 6087echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 6088 6089if test $ac_cv_func_alloca_works = yes; then 6090 6091cat >>confdefs.h <<\_ACEOF 6092#define HAVE_ALLOCA 1 6093_ACEOF 6094 6095else 6096 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6097# that cause trouble. Some versions do not even contain alloca or 6098# contain a buggy version. If you still want to use their alloca, 6099# use ar to extract alloca.o from them instead of compiling alloca.c. 6100 6101ALLOCA=alloca.$ac_objext 6102 6103cat >>confdefs.h <<\_ACEOF 6104#define C_ALLOCA 1 6105_ACEOF 6106 6107 6108echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 6109echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 6110if test "${ac_cv_os_cray+set}" = set; then 6111 echo $ECHO_N "(cached) $ECHO_C" >&6 6112else 6113 cat >conftest.$ac_ext <<_ACEOF 6114/* confdefs.h. */ 6115_ACEOF 6116cat confdefs.h >>conftest.$ac_ext 6117cat >>conftest.$ac_ext <<_ACEOF 6118/* end confdefs.h. */ 6119#if defined(CRAY) && ! defined(CRAY2) 6120webecray 6121#else 6122wenotbecray 6123#endif 6124 6125_ACEOF 6126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6127 $EGREP "webecray" >/dev/null 2>&1; then 6128 ac_cv_os_cray=yes 6129else 6130 ac_cv_os_cray=no 6131fi 6132rm -f conftest* 6133 6134fi 6135echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 6136echo "${ECHO_T}$ac_cv_os_cray" >&6 6137if test $ac_cv_os_cray = yes; then 6138 for ac_func in _getb67 GETB67 getb67; do 6139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6140echo "$as_me:$LINENO: checking for $ac_func" >&5 6141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6142if eval "test \"\${$as_ac_var+set}\" = set"; then 6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6144else 6145 cat >conftest.$ac_ext <<_ACEOF 6146/* confdefs.h. */ 6147_ACEOF 6148cat confdefs.h >>conftest.$ac_ext 6149cat >>conftest.$ac_ext <<_ACEOF 6150/* end confdefs.h. */ 6151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6152 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6153#define $ac_func innocuous_$ac_func 6154 6155/* System header to define __stub macros and hopefully few prototypes, 6156 which can conflict with char $ac_func (); below. 6157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6158 <limits.h> exists even on freestanding compilers. */ 6159 6160#ifdef __STDC__ 6161# include <limits.h> 6162#else 6163# include <assert.h> 6164#endif 6165 6166#undef $ac_func 6167 6168/* Override any gcc2 internal prototype to avoid an error. */ 6169#ifdef __cplusplus 6170extern "C" 6171{ 6172#endif 6173/* We use char because int might match the return type of a gcc2 6174 builtin and then its argument prototype would still apply. */ 6175char $ac_func (); 6176/* The GNU C library defines this for functions which it implements 6177 to always fail with ENOSYS. Some functions are actually named 6178 something starting with __ and the normal name is an alias. */ 6179#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6180choke me 6181#else 6182char (*f) () = $ac_func; 6183#endif 6184#ifdef __cplusplus 6185} 6186#endif 6187 6188int 6189main () 6190{ 6191return f != $ac_func; 6192 ; 6193 return 0; 6194} 6195_ACEOF 6196rm -f conftest.$ac_objext conftest$ac_exeext 6197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6198 (eval $ac_link) 2>conftest.er1 6199 ac_status=$? 6200 grep -v '^ *+' conftest.er1 >conftest.err 6201 rm -f conftest.er1 6202 cat conftest.err >&5 6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204 (exit $ac_status); } && 6205 { ac_try='test -z "$ac_c_werror_flag" 6206 || test ! -s conftest.err' 6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6208 (eval $ac_try) 2>&5 6209 ac_status=$? 6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6211 (exit $ac_status); }; } && 6212 { ac_try='test -s conftest$ac_exeext' 6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6214 (eval $ac_try) 2>&5 6215 ac_status=$? 6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6217 (exit $ac_status); }; }; then 6218 eval "$as_ac_var=yes" 6219else 6220 echo "$as_me: failed program was:" >&5 6221sed 's/^/| /' conftest.$ac_ext >&5 6222 6223eval "$as_ac_var=no" 6224fi 6225rm -f conftest.err conftest.$ac_objext \ 6226 conftest$ac_exeext conftest.$ac_ext 6227fi 6228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6229echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6230if test `eval echo '${'$as_ac_var'}'` = yes; then 6231 6232cat >>confdefs.h <<_ACEOF 6233#define CRAY_STACKSEG_END $ac_func 6234_ACEOF 6235 6236 break 6237fi 6238 6239 done 6240fi 6241 6242echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 6243echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 6244if test "${ac_cv_c_stack_direction+set}" = set; then 6245 echo $ECHO_N "(cached) $ECHO_C" >&6 6246else 6247 if test "$cross_compiling" = yes; then 6248 ac_cv_c_stack_direction=0 6249else 6250 cat >conftest.$ac_ext <<_ACEOF 6251/* confdefs.h. */ 6252_ACEOF 6253cat confdefs.h >>conftest.$ac_ext 6254cat >>conftest.$ac_ext <<_ACEOF 6255/* end confdefs.h. */ 6256int 6257find_stack_direction () 6258{ 6259 static char *addr = 0; 6260 auto char dummy; 6261 if (addr == 0) 6262 { 6263 addr = &dummy; 6264 return find_stack_direction (); 6265 } 6266 else 6267 return (&dummy > addr) ? 1 : -1; 6268} 6269 6270int 6271main () 6272{ 6273 exit (find_stack_direction () < 0); 6274} 6275_ACEOF 6276rm -f conftest$ac_exeext 6277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6278 (eval $ac_link) 2>&5 6279 ac_status=$? 6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6283 (eval $ac_try) 2>&5 6284 ac_status=$? 6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6286 (exit $ac_status); }; }; then 6287 ac_cv_c_stack_direction=1 6288else 6289 echo "$as_me: program exited with status $ac_status" >&5 6290echo "$as_me: failed program was:" >&5 6291sed 's/^/| /' conftest.$ac_ext >&5 6292 6293( exit $ac_status ) 6294ac_cv_c_stack_direction=-1 6295fi 6296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6297fi 6298fi 6299echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 6300echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 6301 6302cat >>confdefs.h <<_ACEOF 6303#define STACK_DIRECTION $ac_cv_c_stack_direction 6304_ACEOF 6305 6306 6307fi 6308 6309 6310 6311for ac_header in stdlib.h unistd.h 6312do 6313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6314if eval "test \"\${$as_ac_Header+set}\" = set"; then 6315 echo "$as_me:$LINENO: checking for $ac_header" >&5 6316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6317if eval "test \"\${$as_ac_Header+set}\" = set"; then 6318 echo $ECHO_N "(cached) $ECHO_C" >&6 6319fi 6320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6322else 6323 # Is the header compilable? 6324echo "$as_me:$LINENO: checking $ac_header usability" >&5 6325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6326cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332$ac_includes_default 6333#include <$ac_header> 6334_ACEOF 6335rm -f conftest.$ac_objext 6336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6337 (eval $ac_compile) 2>conftest.er1 6338 ac_status=$? 6339 grep -v '^ *+' conftest.er1 >conftest.err 6340 rm -f conftest.er1 6341 cat conftest.err >&5 6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6343 (exit $ac_status); } && 6344 { ac_try='test -z "$ac_c_werror_flag" 6345 || test ! -s conftest.err' 6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6347 (eval $ac_try) 2>&5 6348 ac_status=$? 6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6350 (exit $ac_status); }; } && 6351 { ac_try='test -s conftest.$ac_objext' 6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6353 (eval $ac_try) 2>&5 6354 ac_status=$? 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); }; }; then 6357 ac_header_compiler=yes 6358else 6359 echo "$as_me: failed program was:" >&5 6360sed 's/^/| /' conftest.$ac_ext >&5 6361 6362ac_header_compiler=no 6363fi 6364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6366echo "${ECHO_T}$ac_header_compiler" >&6 6367 6368# Is the header present? 6369echo "$as_me:$LINENO: checking $ac_header presence" >&5 6370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6371cat >conftest.$ac_ext <<_ACEOF 6372/* confdefs.h. */ 6373_ACEOF 6374cat confdefs.h >>conftest.$ac_ext 6375cat >>conftest.$ac_ext <<_ACEOF 6376/* end confdefs.h. */ 6377#include <$ac_header> 6378_ACEOF 6379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6381 ac_status=$? 6382 grep -v '^ *+' conftest.er1 >conftest.err 6383 rm -f conftest.er1 6384 cat conftest.err >&5 6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6386 (exit $ac_status); } >/dev/null; then 6387 if test -s conftest.err; then 6388 ac_cpp_err=$ac_c_preproc_warn_flag 6389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6390 else 6391 ac_cpp_err= 6392 fi 6393else 6394 ac_cpp_err=yes 6395fi 6396if test -z "$ac_cpp_err"; then 6397 ac_header_preproc=yes 6398else 6399 echo "$as_me: failed program was:" >&5 6400sed 's/^/| /' conftest.$ac_ext >&5 6401 6402 ac_header_preproc=no 6403fi 6404rm -f conftest.err conftest.$ac_ext 6405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6406echo "${ECHO_T}$ac_header_preproc" >&6 6407 6408# So? What about this header? 6409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6410 yes:no: ) 6411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6414echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6415 ac_header_preproc=yes 6416 ;; 6417 no:yes:* ) 6418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6423echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6425echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6429echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6430 ( 6431 cat <<\_ASBOX 6432## ------------------------------------------ ## 6433## Report this to the AC_PACKAGE_NAME lists. ## 6434## ------------------------------------------ ## 6435_ASBOX 6436 ) | 6437 sed "s/^/$as_me: WARNING: /" >&2 6438 ;; 6439esac 6440echo "$as_me:$LINENO: checking for $ac_header" >&5 6441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6442if eval "test \"\${$as_ac_Header+set}\" = set"; then 6443 echo $ECHO_N "(cached) $ECHO_C" >&6 6444else 6445 eval "$as_ac_Header=\$ac_header_preproc" 6446fi 6447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6449 6450fi 6451if test `eval echo '${'$as_ac_Header'}'` = yes; then 6452 cat >>confdefs.h <<_ACEOF 6453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6454_ACEOF 6455 6456fi 6457 6458done 6459 6460 6461for ac_func in getpagesize 6462do 6463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6464echo "$as_me:$LINENO: checking for $ac_func" >&5 6465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6466if eval "test \"\${$as_ac_var+set}\" = set"; then 6467 echo $ECHO_N "(cached) $ECHO_C" >&6 6468else 6469 cat >conftest.$ac_ext <<_ACEOF 6470/* confdefs.h. */ 6471_ACEOF 6472cat confdefs.h >>conftest.$ac_ext 6473cat >>conftest.$ac_ext <<_ACEOF 6474/* end confdefs.h. */ 6475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6476 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6477#define $ac_func innocuous_$ac_func 6478 6479/* System header to define __stub macros and hopefully few prototypes, 6480 which can conflict with char $ac_func (); below. 6481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6482 <limits.h> exists even on freestanding compilers. */ 6483 6484#ifdef __STDC__ 6485# include <limits.h> 6486#else 6487# include <assert.h> 6488#endif 6489 6490#undef $ac_func 6491 6492/* Override any gcc2 internal prototype to avoid an error. */ 6493#ifdef __cplusplus 6494extern "C" 6495{ 6496#endif 6497/* We use char because int might match the return type of a gcc2 6498 builtin and then its argument prototype would still apply. */ 6499char $ac_func (); 6500/* The GNU C library defines this for functions which it implements 6501 to always fail with ENOSYS. Some functions are actually named 6502 something starting with __ and the normal name is an alias. */ 6503#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6504choke me 6505#else 6506char (*f) () = $ac_func; 6507#endif 6508#ifdef __cplusplus 6509} 6510#endif 6511 6512int 6513main () 6514{ 6515return f != $ac_func; 6516 ; 6517 return 0; 6518} 6519_ACEOF 6520rm -f conftest.$ac_objext conftest$ac_exeext 6521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6522 (eval $ac_link) 2>conftest.er1 6523 ac_status=$? 6524 grep -v '^ *+' conftest.er1 >conftest.err 6525 rm -f conftest.er1 6526 cat conftest.err >&5 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); } && 6529 { ac_try='test -z "$ac_c_werror_flag" 6530 || test ! -s conftest.err' 6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6532 (eval $ac_try) 2>&5 6533 ac_status=$? 6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6535 (exit $ac_status); }; } && 6536 { ac_try='test -s conftest$ac_exeext' 6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6538 (eval $ac_try) 2>&5 6539 ac_status=$? 6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6541 (exit $ac_status); }; }; then 6542 eval "$as_ac_var=yes" 6543else 6544 echo "$as_me: failed program was:" >&5 6545sed 's/^/| /' conftest.$ac_ext >&5 6546 6547eval "$as_ac_var=no" 6548fi 6549rm -f conftest.err conftest.$ac_objext \ 6550 conftest$ac_exeext conftest.$ac_ext 6551fi 6552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6554if test `eval echo '${'$as_ac_var'}'` = yes; then 6555 cat >>confdefs.h <<_ACEOF 6556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6557_ACEOF 6558 6559fi 6560done 6561 6562echo "$as_me:$LINENO: checking for working mmap" >&5 6563echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 6564if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6565 echo $ECHO_N "(cached) $ECHO_C" >&6 6566else 6567 if test "$cross_compiling" = yes; then 6568 ac_cv_func_mmap_fixed_mapped=no 6569else 6570 cat >conftest.$ac_ext <<_ACEOF 6571/* confdefs.h. */ 6572_ACEOF 6573cat confdefs.h >>conftest.$ac_ext 6574cat >>conftest.$ac_ext <<_ACEOF 6575/* end confdefs.h. */ 6576$ac_includes_default 6577/* malloc might have been renamed as rpl_malloc. */ 6578#undef malloc 6579 6580/* Thanks to Mike Haertel and Jim Avera for this test. 6581 Here is a matrix of mmap possibilities: 6582 mmap private not fixed 6583 mmap private fixed at somewhere currently unmapped 6584 mmap private fixed at somewhere already mapped 6585 mmap shared not fixed 6586 mmap shared fixed at somewhere currently unmapped 6587 mmap shared fixed at somewhere already mapped 6588 For private mappings, we should verify that changes cannot be read() 6589 back from the file, nor mmap's back from the file at a different 6590 address. (There have been systems where private was not correctly 6591 implemented like the infamous i386 svr4.0, and systems where the 6592 VM page cache was not coherent with the file system buffer cache 6593 like early versions of FreeBSD and possibly contemporary NetBSD.) 6594 For shared mappings, we should conversely verify that changes get 6595 propagated back to all the places they're supposed to be. 6596 6597 Grep wants private fixed already mapped. 6598 The main things grep needs to know about mmap are: 6599 * does it exist and is it safe to write into the mmap'd area 6600 * how to use it (BSD variants) */ 6601 6602#include <fcntl.h> 6603#include <sys/mman.h> 6604 6605#if !STDC_HEADERS && !HAVE_STDLIB_H 6606char *malloc (); 6607#endif 6608 6609/* This mess was copied from the GNU getpagesize.h. */ 6610#if !HAVE_GETPAGESIZE 6611/* Assume that all systems that can run configure have sys/param.h. */ 6612# if !HAVE_SYS_PARAM_H 6613# define HAVE_SYS_PARAM_H 1 6614# endif 6615 6616# ifdef _SC_PAGESIZE 6617# define getpagesize() sysconf(_SC_PAGESIZE) 6618# else /* no _SC_PAGESIZE */ 6619# if HAVE_SYS_PARAM_H 6620# include <sys/param.h> 6621# ifdef EXEC_PAGESIZE 6622# define getpagesize() EXEC_PAGESIZE 6623# else /* no EXEC_PAGESIZE */ 6624# ifdef NBPG 6625# define getpagesize() NBPG * CLSIZE 6626# ifndef CLSIZE 6627# define CLSIZE 1 6628# endif /* no CLSIZE */ 6629# else /* no NBPG */ 6630# ifdef NBPC 6631# define getpagesize() NBPC 6632# else /* no NBPC */ 6633# ifdef PAGESIZE 6634# define getpagesize() PAGESIZE 6635# endif /* PAGESIZE */ 6636# endif /* no NBPC */ 6637# endif /* no NBPG */ 6638# endif /* no EXEC_PAGESIZE */ 6639# else /* no HAVE_SYS_PARAM_H */ 6640# define getpagesize() 8192 /* punt totally */ 6641# endif /* no HAVE_SYS_PARAM_H */ 6642# endif /* no _SC_PAGESIZE */ 6643 6644#endif /* no HAVE_GETPAGESIZE */ 6645 6646int 6647main () 6648{ 6649 char *data, *data2, *data3; 6650 int i, pagesize; 6651 int fd; 6652 6653 pagesize = getpagesize (); 6654 6655 /* First, make a file with some known garbage in it. */ 6656 data = (char *) malloc (pagesize); 6657 if (!data) 6658 exit (1); 6659 for (i = 0; i < pagesize; ++i) 6660 *(data + i) = rand (); 6661 umask (0); 6662 fd = creat ("conftest.mmap", 0600); 6663 if (fd < 0) 6664 exit (1); 6665 if (write (fd, data, pagesize) != pagesize) 6666 exit (1); 6667 close (fd); 6668 6669 /* Next, try to mmap the file at a fixed address which already has 6670 something else allocated at it. If we can, also make sure that 6671 we see the same garbage. */ 6672 fd = open ("conftest.mmap", O_RDWR); 6673 if (fd < 0) 6674 exit (1); 6675 data2 = (char *) malloc (2 * pagesize); 6676 if (!data2) 6677 exit (1); 6678 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 6679 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6680 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6681 exit (1); 6682 for (i = 0; i < pagesize; ++i) 6683 if (*(data + i) != *(data2 + i)) 6684 exit (1); 6685 6686 /* Finally, make sure that changes to the mapped area do not 6687 percolate back to the file as seen by read(). (This is a bug on 6688 some variants of i386 svr4.0.) */ 6689 for (i = 0; i < pagesize; ++i) 6690 *(data2 + i) = *(data2 + i) + 1; 6691 data3 = (char *) malloc (pagesize); 6692 if (!data3) 6693 exit (1); 6694 if (read (fd, data3, pagesize) != pagesize) 6695 exit (1); 6696 for (i = 0; i < pagesize; ++i) 6697 if (*(data + i) != *(data3 + i)) 6698 exit (1); 6699 close (fd); 6700 exit (0); 6701} 6702_ACEOF 6703rm -f conftest$ac_exeext 6704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6705 (eval $ac_link) 2>&5 6706 ac_status=$? 6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6710 (eval $ac_try) 2>&5 6711 ac_status=$? 6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 (exit $ac_status); }; }; then 6714 ac_cv_func_mmap_fixed_mapped=yes 6715else 6716 echo "$as_me: program exited with status $ac_status" >&5 6717echo "$as_me: failed program was:" >&5 6718sed 's/^/| /' conftest.$ac_ext >&5 6719 6720( exit $ac_status ) 6721ac_cv_func_mmap_fixed_mapped=no 6722fi 6723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6724fi 6725fi 6726echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 6727echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 6728if test $ac_cv_func_mmap_fixed_mapped = yes; then 6729 6730cat >>confdefs.h <<\_ACEOF 6731#define HAVE_MMAP 1 6732_ACEOF 6733 6734fi 6735rm -f conftest.mmap 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 6748unistd.h values.h sys/param.h 6749do 6750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6751if eval "test \"\${$as_ac_Header+set}\" = set"; then 6752 echo "$as_me:$LINENO: checking for $ac_header" >&5 6753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6754if eval "test \"\${$as_ac_Header+set}\" = set"; then 6755 echo $ECHO_N "(cached) $ECHO_C" >&6 6756fi 6757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6759else 6760 # Is the header compilable? 6761echo "$as_me:$LINENO: checking $ac_header usability" >&5 6762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6763cat >conftest.$ac_ext <<_ACEOF 6764/* confdefs.h. */ 6765_ACEOF 6766cat confdefs.h >>conftest.$ac_ext 6767cat >>conftest.$ac_ext <<_ACEOF 6768/* end confdefs.h. */ 6769$ac_includes_default 6770#include <$ac_header> 6771_ACEOF 6772rm -f conftest.$ac_objext 6773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6774 (eval $ac_compile) 2>conftest.er1 6775 ac_status=$? 6776 grep -v '^ *+' conftest.er1 >conftest.err 6777 rm -f conftest.er1 6778 cat conftest.err >&5 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); } && 6781 { ac_try='test -z "$ac_c_werror_flag" 6782 || test ! -s conftest.err' 6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6784 (eval $ac_try) 2>&5 6785 ac_status=$? 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787 (exit $ac_status); }; } && 6788 { ac_try='test -s conftest.$ac_objext' 6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6790 (eval $ac_try) 2>&5 6791 ac_status=$? 6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6793 (exit $ac_status); }; }; then 6794 ac_header_compiler=yes 6795else 6796 echo "$as_me: failed program was:" >&5 6797sed 's/^/| /' conftest.$ac_ext >&5 6798 6799ac_header_compiler=no 6800fi 6801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6803echo "${ECHO_T}$ac_header_compiler" >&6 6804 6805# Is the header present? 6806echo "$as_me:$LINENO: checking $ac_header presence" >&5 6807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6808cat >conftest.$ac_ext <<_ACEOF 6809/* confdefs.h. */ 6810_ACEOF 6811cat confdefs.h >>conftest.$ac_ext 6812cat >>conftest.$ac_ext <<_ACEOF 6813/* end confdefs.h. */ 6814#include <$ac_header> 6815_ACEOF 6816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6818 ac_status=$? 6819 grep -v '^ *+' conftest.er1 >conftest.err 6820 rm -f conftest.er1 6821 cat conftest.err >&5 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6823 (exit $ac_status); } >/dev/null; then 6824 if test -s conftest.err; then 6825 ac_cpp_err=$ac_c_preproc_warn_flag 6826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6827 else 6828 ac_cpp_err= 6829 fi 6830else 6831 ac_cpp_err=yes 6832fi 6833if test -z "$ac_cpp_err"; then 6834 ac_header_preproc=yes 6835else 6836 echo "$as_me: failed program was:" >&5 6837sed 's/^/| /' conftest.$ac_ext >&5 6838 6839 ac_header_preproc=no 6840fi 6841rm -f conftest.err conftest.$ac_ext 6842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6843echo "${ECHO_T}$ac_header_preproc" >&6 6844 6845# So? What about this header? 6846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6847 yes:no: ) 6848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6852 ac_header_preproc=yes 6853 ;; 6854 no:yes:* ) 6855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6867 ( 6868 cat <<\_ASBOX 6869## ------------------------------------------ ## 6870## Report this to the AC_PACKAGE_NAME lists. ## 6871## ------------------------------------------ ## 6872_ASBOX 6873 ) | 6874 sed "s/^/$as_me: WARNING: /" >&2 6875 ;; 6876esac 6877echo "$as_me:$LINENO: checking for $ac_header" >&5 6878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6879if eval "test \"\${$as_ac_Header+set}\" = set"; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881else 6882 eval "$as_ac_Header=\$ac_header_preproc" 6883fi 6884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6886 6887fi 6888if test `eval echo '${'$as_ac_Header'}'` = yes; then 6889 cat >>confdefs.h <<_ACEOF 6890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6891_ACEOF 6892 6893fi 6894 6895done 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 6908__argz_count __argz_stringify __argz_next 6909do 6910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6911echo "$as_me:$LINENO: checking for $ac_func" >&5 6912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6913if eval "test \"\${$as_ac_var+set}\" = set"; then 6914 echo $ECHO_N "(cached) $ECHO_C" >&6 6915else 6916 cat >conftest.$ac_ext <<_ACEOF 6917/* confdefs.h. */ 6918_ACEOF 6919cat confdefs.h >>conftest.$ac_ext 6920cat >>conftest.$ac_ext <<_ACEOF 6921/* end confdefs.h. */ 6922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6923 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6924#define $ac_func innocuous_$ac_func 6925 6926/* System header to define __stub macros and hopefully few prototypes, 6927 which can conflict with char $ac_func (); below. 6928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6929 <limits.h> exists even on freestanding compilers. */ 6930 6931#ifdef __STDC__ 6932# include <limits.h> 6933#else 6934# include <assert.h> 6935#endif 6936 6937#undef $ac_func 6938 6939/* Override any gcc2 internal prototype to avoid an error. */ 6940#ifdef __cplusplus 6941extern "C" 6942{ 6943#endif 6944/* We use char because int might match the return type of a gcc2 6945 builtin and then its argument prototype would still apply. */ 6946char $ac_func (); 6947/* The GNU C library defines this for functions which it implements 6948 to always fail with ENOSYS. Some functions are actually named 6949 something starting with __ and the normal name is an alias. */ 6950#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6951choke me 6952#else 6953char (*f) () = $ac_func; 6954#endif 6955#ifdef __cplusplus 6956} 6957#endif 6958 6959int 6960main () 6961{ 6962return f != $ac_func; 6963 ; 6964 return 0; 6965} 6966_ACEOF 6967rm -f conftest.$ac_objext conftest$ac_exeext 6968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6969 (eval $ac_link) 2>conftest.er1 6970 ac_status=$? 6971 grep -v '^ *+' conftest.er1 >conftest.err 6972 rm -f conftest.er1 6973 cat conftest.err >&5 6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6975 (exit $ac_status); } && 6976 { ac_try='test -z "$ac_c_werror_flag" 6977 || test ! -s conftest.err' 6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6979 (eval $ac_try) 2>&5 6980 ac_status=$? 6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6982 (exit $ac_status); }; } && 6983 { ac_try='test -s conftest$ac_exeext' 6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6985 (eval $ac_try) 2>&5 6986 ac_status=$? 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); }; }; then 6989 eval "$as_ac_var=yes" 6990else 6991 echo "$as_me: failed program was:" >&5 6992sed 's/^/| /' conftest.$ac_ext >&5 6993 6994eval "$as_ac_var=no" 6995fi 6996rm -f conftest.err conftest.$ac_objext \ 6997 conftest$ac_exeext conftest.$ac_ext 6998fi 6999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7001if test `eval echo '${'$as_ac_var'}'` = yes; then 7002 cat >>confdefs.h <<_ACEOF 7003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7004_ACEOF 7005 7006fi 7007done 7008 7009 7010 if test "${ac_cv_func_stpcpy+set}" != "set"; then 7011 7012for ac_func in stpcpy 7013do 7014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7015echo "$as_me:$LINENO: checking for $ac_func" >&5 7016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7017if eval "test \"\${$as_ac_var+set}\" = set"; then 7018 echo $ECHO_N "(cached) $ECHO_C" >&6 7019else 7020 cat >conftest.$ac_ext <<_ACEOF 7021/* confdefs.h. */ 7022_ACEOF 7023cat confdefs.h >>conftest.$ac_ext 7024cat >>conftest.$ac_ext <<_ACEOF 7025/* end confdefs.h. */ 7026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7027 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7028#define $ac_func innocuous_$ac_func 7029 7030/* System header to define __stub macros and hopefully few prototypes, 7031 which can conflict with char $ac_func (); below. 7032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7033 <limits.h> exists even on freestanding compilers. */ 7034 7035#ifdef __STDC__ 7036# include <limits.h> 7037#else 7038# include <assert.h> 7039#endif 7040 7041#undef $ac_func 7042 7043/* Override any gcc2 internal prototype to avoid an error. */ 7044#ifdef __cplusplus 7045extern "C" 7046{ 7047#endif 7048/* We use char because int might match the return type of a gcc2 7049 builtin and then its argument prototype would still apply. */ 7050char $ac_func (); 7051/* The GNU C library defines this for functions which it implements 7052 to always fail with ENOSYS. Some functions are actually named 7053 something starting with __ and the normal name is an alias. */ 7054#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7055choke me 7056#else 7057char (*f) () = $ac_func; 7058#endif 7059#ifdef __cplusplus 7060} 7061#endif 7062 7063int 7064main () 7065{ 7066return f != $ac_func; 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071rm -f conftest.$ac_objext conftest$ac_exeext 7072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7073 (eval $ac_link) 2>conftest.er1 7074 ac_status=$? 7075 grep -v '^ *+' conftest.er1 >conftest.err 7076 rm -f conftest.er1 7077 cat conftest.err >&5 7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7079 (exit $ac_status); } && 7080 { ac_try='test -z "$ac_c_werror_flag" 7081 || test ! -s conftest.err' 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7083 (eval $ac_try) 2>&5 7084 ac_status=$? 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7086 (exit $ac_status); }; } && 7087 { ac_try='test -s conftest$ac_exeext' 7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7089 (eval $ac_try) 2>&5 7090 ac_status=$? 7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7092 (exit $ac_status); }; }; then 7093 eval "$as_ac_var=yes" 7094else 7095 echo "$as_me: failed program was:" >&5 7096sed 's/^/| /' conftest.$ac_ext >&5 7097 7098eval "$as_ac_var=no" 7099fi 7100rm -f conftest.err conftest.$ac_objext \ 7101 conftest$ac_exeext conftest.$ac_ext 7102fi 7103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7105if test `eval echo '${'$as_ac_var'}'` = yes; then 7106 cat >>confdefs.h <<_ACEOF 7107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7108_ACEOF 7109 7110fi 7111done 7112 7113 fi 7114 if test "${ac_cv_func_stpcpy}" = "yes"; then 7115 7116cat >>confdefs.h <<\_ACEOF 7117#define HAVE_STPCPY 1 7118_ACEOF 7119 7120 fi 7121 7122 if test $ac_cv_header_locale_h = yes; then 7123 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 7124echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 7125if test "${am_cv_val_LC_MESSAGES+set}" = set; then 7126 echo $ECHO_N "(cached) $ECHO_C" >&6 7127else 7128 cat >conftest.$ac_ext <<_ACEOF 7129/* confdefs.h. */ 7130_ACEOF 7131cat confdefs.h >>conftest.$ac_ext 7132cat >>conftest.$ac_ext <<_ACEOF 7133/* end confdefs.h. */ 7134#include <locale.h> 7135int 7136main () 7137{ 7138return LC_MESSAGES 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143rm -f conftest.$ac_objext conftest$ac_exeext 7144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7145 (eval $ac_link) 2>conftest.er1 7146 ac_status=$? 7147 grep -v '^ *+' conftest.er1 >conftest.err 7148 rm -f conftest.er1 7149 cat conftest.err >&5 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 (exit $ac_status); } && 7152 { ac_try='test -z "$ac_c_werror_flag" 7153 || test ! -s conftest.err' 7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7155 (eval $ac_try) 2>&5 7156 ac_status=$? 7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7158 (exit $ac_status); }; } && 7159 { ac_try='test -s conftest$ac_exeext' 7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7161 (eval $ac_try) 2>&5 7162 ac_status=$? 7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7164 (exit $ac_status); }; }; then 7165 am_cv_val_LC_MESSAGES=yes 7166else 7167 echo "$as_me: failed program was:" >&5 7168sed 's/^/| /' conftest.$ac_ext >&5 7169 7170am_cv_val_LC_MESSAGES=no 7171fi 7172rm -f conftest.err conftest.$ac_objext \ 7173 conftest$ac_exeext conftest.$ac_ext 7174fi 7175echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 7176echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 7177 if test $am_cv_val_LC_MESSAGES = yes; then 7178 7179cat >>confdefs.h <<\_ACEOF 7180#define HAVE_LC_MESSAGES 1 7181_ACEOF 7182 7183 fi 7184 fi 7185 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7186echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7187 # Check whether --enable-nls or --disable-nls was given. 7188if test "${enable_nls+set}" = set; then 7189 enableval="$enable_nls" 7190 USE_NLS=$enableval 7191else 7192 USE_NLS=yes 7193fi; 7194 echo "$as_me:$LINENO: result: $USE_NLS" >&5 7195echo "${ECHO_T}$USE_NLS" >&6 7196 7197 7198 USE_INCLUDED_LIBINTL=no 7199 7200 if test "$USE_NLS" = "yes"; then 7201 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 7202echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 7203 7204# Check whether --with-included-gettext or --without-included-gettext was given. 7205if test "${with_included_gettext+set}" = set; then 7206 withval="$with_included_gettext" 7207 nls_cv_force_use_gnu_gettext=$withval 7208else 7209 nls_cv_force_use_gnu_gettext=no 7210fi; 7211 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 7212echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 7213 7214 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 7215 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 7216 nls_cv_header_intl= 7217 nls_cv_header_libgt= 7218 CATOBJEXT= 7219 7220 if test "${ac_cv_header_libintl_h+set}" = set; then 7221 echo "$as_me:$LINENO: checking for libintl.h" >&5 7222echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 7223if test "${ac_cv_header_libintl_h+set}" = set; then 7224 echo $ECHO_N "(cached) $ECHO_C" >&6 7225fi 7226echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 7227echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 7228else 7229 # Is the header compilable? 7230echo "$as_me:$LINENO: checking libintl.h usability" >&5 7231echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 7232cat >conftest.$ac_ext <<_ACEOF 7233/* confdefs.h. */ 7234_ACEOF 7235cat confdefs.h >>conftest.$ac_ext 7236cat >>conftest.$ac_ext <<_ACEOF 7237/* end confdefs.h. */ 7238$ac_includes_default 7239#include <libintl.h> 7240_ACEOF 7241rm -f conftest.$ac_objext 7242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7243 (eval $ac_compile) 2>conftest.er1 7244 ac_status=$? 7245 grep -v '^ *+' conftest.er1 >conftest.err 7246 rm -f conftest.er1 7247 cat conftest.err >&5 7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7249 (exit $ac_status); } && 7250 { ac_try='test -z "$ac_c_werror_flag" 7251 || test ! -s conftest.err' 7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7253 (eval $ac_try) 2>&5 7254 ac_status=$? 7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7256 (exit $ac_status); }; } && 7257 { ac_try='test -s conftest.$ac_objext' 7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7259 (eval $ac_try) 2>&5 7260 ac_status=$? 7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7262 (exit $ac_status); }; }; then 7263 ac_header_compiler=yes 7264else 7265 echo "$as_me: failed program was:" >&5 7266sed 's/^/| /' conftest.$ac_ext >&5 7267 7268ac_header_compiler=no 7269fi 7270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7272echo "${ECHO_T}$ac_header_compiler" >&6 7273 7274# Is the header present? 7275echo "$as_me:$LINENO: checking libintl.h presence" >&5 7276echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 7277cat >conftest.$ac_ext <<_ACEOF 7278/* confdefs.h. */ 7279_ACEOF 7280cat confdefs.h >>conftest.$ac_ext 7281cat >>conftest.$ac_ext <<_ACEOF 7282/* end confdefs.h. */ 7283#include <libintl.h> 7284_ACEOF 7285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7287 ac_status=$? 7288 grep -v '^ *+' conftest.er1 >conftest.err 7289 rm -f conftest.er1 7290 cat conftest.err >&5 7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7292 (exit $ac_status); } >/dev/null; then 7293 if test -s conftest.err; then 7294 ac_cpp_err=$ac_c_preproc_warn_flag 7295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7296 else 7297 ac_cpp_err= 7298 fi 7299else 7300 ac_cpp_err=yes 7301fi 7302if test -z "$ac_cpp_err"; then 7303 ac_header_preproc=yes 7304else 7305 echo "$as_me: failed program was:" >&5 7306sed 's/^/| /' conftest.$ac_ext >&5 7307 7308 ac_header_preproc=no 7309fi 7310rm -f conftest.err conftest.$ac_ext 7311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7312echo "${ECHO_T}$ac_header_preproc" >&6 7313 7314# So? What about this header? 7315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7316 yes:no: ) 7317 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 7318echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7319 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 7320echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 7321 ac_header_preproc=yes 7322 ;; 7323 no:yes:* ) 7324 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 7325echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 7326 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 7327echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 7328 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 7329echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 7330 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 7331echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 7332 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 7333echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 7334 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 7335echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 7336 ( 7337 cat <<\_ASBOX 7338## ------------------------------------------ ## 7339## Report this to the AC_PACKAGE_NAME lists. ## 7340## ------------------------------------------ ## 7341_ASBOX 7342 ) | 7343 sed "s/^/$as_me: WARNING: /" >&2 7344 ;; 7345esac 7346echo "$as_me:$LINENO: checking for libintl.h" >&5 7347echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 7348if test "${ac_cv_header_libintl_h+set}" = set; then 7349 echo $ECHO_N "(cached) $ECHO_C" >&6 7350else 7351 ac_cv_header_libintl_h=$ac_header_preproc 7352fi 7353echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 7354echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 7355 7356fi 7357if test $ac_cv_header_libintl_h = yes; then 7358 echo "$as_me:$LINENO: checking for gettext in libc" >&5 7359echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 7360if test "${gt_cv_func_gettext_libc+set}" = set; then 7361 echo $ECHO_N "(cached) $ECHO_C" >&6 7362else 7363 cat >conftest.$ac_ext <<_ACEOF 7364/* confdefs.h. */ 7365_ACEOF 7366cat confdefs.h >>conftest.$ac_ext 7367cat >>conftest.$ac_ext <<_ACEOF 7368/* end confdefs.h. */ 7369#include <libintl.h> 7370int 7371main () 7372{ 7373return (int) gettext ("") 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378rm -f conftest.$ac_objext conftest$ac_exeext 7379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7380 (eval $ac_link) 2>conftest.er1 7381 ac_status=$? 7382 grep -v '^ *+' conftest.er1 >conftest.err 7383 rm -f conftest.er1 7384 cat conftest.err >&5 7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7386 (exit $ac_status); } && 7387 { ac_try='test -z "$ac_c_werror_flag" 7388 || test ! -s conftest.err' 7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7390 (eval $ac_try) 2>&5 7391 ac_status=$? 7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7393 (exit $ac_status); }; } && 7394 { ac_try='test -s conftest$ac_exeext' 7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7396 (eval $ac_try) 2>&5 7397 ac_status=$? 7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7399 (exit $ac_status); }; }; then 7400 gt_cv_func_gettext_libc=yes 7401else 7402 echo "$as_me: failed program was:" >&5 7403sed 's/^/| /' conftest.$ac_ext >&5 7404 7405gt_cv_func_gettext_libc=no 7406fi 7407rm -f conftest.err conftest.$ac_objext \ 7408 conftest$ac_exeext conftest.$ac_ext 7409fi 7410echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 7411echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 7412 7413 if test "$gt_cv_func_gettext_libc" != "yes"; then 7414 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 7415echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 7416if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418else 7419 ac_check_lib_save_LIBS=$LIBS 7420LIBS="-lintl $LIBS" 7421cat >conftest.$ac_ext <<_ACEOF 7422/* confdefs.h. */ 7423_ACEOF 7424cat confdefs.h >>conftest.$ac_ext 7425cat >>conftest.$ac_ext <<_ACEOF 7426/* end confdefs.h. */ 7427 7428/* Override any gcc2 internal prototype to avoid an error. */ 7429#ifdef __cplusplus 7430extern "C" 7431#endif 7432/* We use char because int might match the return type of a gcc2 7433 builtin and then its argument prototype would still apply. */ 7434char bindtextdomain (); 7435int 7436main () 7437{ 7438bindtextdomain (); 7439 ; 7440 return 0; 7441} 7442_ACEOF 7443rm -f conftest.$ac_objext conftest$ac_exeext 7444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7445 (eval $ac_link) 2>conftest.er1 7446 ac_status=$? 7447 grep -v '^ *+' conftest.er1 >conftest.err 7448 rm -f conftest.er1 7449 cat conftest.err >&5 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); } && 7452 { ac_try='test -z "$ac_c_werror_flag" 7453 || test ! -s conftest.err' 7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7455 (eval $ac_try) 2>&5 7456 ac_status=$? 7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 (exit $ac_status); }; } && 7459 { ac_try='test -s conftest$ac_exeext' 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7461 (eval $ac_try) 2>&5 7462 ac_status=$? 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); }; }; then 7465 ac_cv_lib_intl_bindtextdomain=yes 7466else 7467 echo "$as_me: failed program was:" >&5 7468sed 's/^/| /' conftest.$ac_ext >&5 7469 7470ac_cv_lib_intl_bindtextdomain=no 7471fi 7472rm -f conftest.err conftest.$ac_objext \ 7473 conftest$ac_exeext conftest.$ac_ext 7474LIBS=$ac_check_lib_save_LIBS 7475fi 7476echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 7477echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 7478if test $ac_cv_lib_intl_bindtextdomain = yes; then 7479 echo "$as_me:$LINENO: checking for gettext in libintl" >&5 7480echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 7481if test "${gt_cv_func_gettext_libintl+set}" = set; then 7482 echo $ECHO_N "(cached) $ECHO_C" >&6 7483else 7484 cat >conftest.$ac_ext <<_ACEOF 7485/* confdefs.h. */ 7486_ACEOF 7487cat confdefs.h >>conftest.$ac_ext 7488cat >>conftest.$ac_ext <<_ACEOF 7489/* end confdefs.h. */ 7490 7491int 7492main () 7493{ 7494return (int) gettext ("") 7495 ; 7496 return 0; 7497} 7498_ACEOF 7499rm -f conftest.$ac_objext conftest$ac_exeext 7500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7501 (eval $ac_link) 2>conftest.er1 7502 ac_status=$? 7503 grep -v '^ *+' conftest.er1 >conftest.err 7504 rm -f conftest.er1 7505 cat conftest.err >&5 7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7507 (exit $ac_status); } && 7508 { ac_try='test -z "$ac_c_werror_flag" 7509 || test ! -s conftest.err' 7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7511 (eval $ac_try) 2>&5 7512 ac_status=$? 7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7514 (exit $ac_status); }; } && 7515 { ac_try='test -s conftest$ac_exeext' 7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7517 (eval $ac_try) 2>&5 7518 ac_status=$? 7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 (exit $ac_status); }; }; then 7521 gt_cv_func_gettext_libintl=yes 7522else 7523 echo "$as_me: failed program was:" >&5 7524sed 's/^/| /' conftest.$ac_ext >&5 7525 7526gt_cv_func_gettext_libintl=no 7527fi 7528rm -f conftest.err conftest.$ac_objext \ 7529 conftest$ac_exeext conftest.$ac_ext 7530fi 7531echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 7532echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 7533fi 7534 7535 fi 7536 7537 if test "$gt_cv_func_gettext_libc" = "yes" \ 7538 || test "$gt_cv_func_gettext_libintl" = "yes"; then 7539 7540cat >>confdefs.h <<\_ACEOF 7541#define HAVE_GETTEXT 1 7542_ACEOF 7543 7544 # Extract the first word of "msgfmt", so it can be a program name with args. 7545set dummy msgfmt; ac_word=$2 7546echo "$as_me:$LINENO: checking for $ac_word" >&5 7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7548if test "${ac_cv_path_MSGFMT+set}" = set; then 7549 echo $ECHO_N "(cached) $ECHO_C" >&6 7550else 7551 case "$MSGFMT" in 7552 /*) 7553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7554 ;; 7555 *) 7556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7557 for ac_dir in $PATH; do 7558 test -z "$ac_dir" && ac_dir=. 7559 if test -f $ac_dir/$ac_word; then 7560 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 7561 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7562 break 7563 fi 7564 fi 7565 done 7566 IFS="$ac_save_ifs" 7567 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 7568 ;; 7569esac 7570fi 7571MSGFMT="$ac_cv_path_MSGFMT" 7572if test -n "$MSGFMT"; then 7573 echo "$as_me:$LINENO: result: $MSGFMT" >&5 7574echo "${ECHO_T}$MSGFMT" >&6 7575else 7576 echo "$as_me:$LINENO: result: no" >&5 7577echo "${ECHO_T}no" >&6 7578fi 7579 if test "$MSGFMT" != "no"; then 7580 7581for ac_func in dcgettext 7582do 7583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7584echo "$as_me:$LINENO: checking for $ac_func" >&5 7585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7586if eval "test \"\${$as_ac_var+set}\" = set"; then 7587 echo $ECHO_N "(cached) $ECHO_C" >&6 7588else 7589 cat >conftest.$ac_ext <<_ACEOF 7590/* confdefs.h. */ 7591_ACEOF 7592cat confdefs.h >>conftest.$ac_ext 7593cat >>conftest.$ac_ext <<_ACEOF 7594/* end confdefs.h. */ 7595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7596 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7597#define $ac_func innocuous_$ac_func 7598 7599/* System header to define __stub macros and hopefully few prototypes, 7600 which can conflict with char $ac_func (); below. 7601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7602 <limits.h> exists even on freestanding compilers. */ 7603 7604#ifdef __STDC__ 7605# include <limits.h> 7606#else 7607# include <assert.h> 7608#endif 7609 7610#undef $ac_func 7611 7612/* Override any gcc2 internal prototype to avoid an error. */ 7613#ifdef __cplusplus 7614extern "C" 7615{ 7616#endif 7617/* We use char because int might match the return type of a gcc2 7618 builtin and then its argument prototype would still apply. */ 7619char $ac_func (); 7620/* The GNU C library defines this for functions which it implements 7621 to always fail with ENOSYS. Some functions are actually named 7622 something starting with __ and the normal name is an alias. */ 7623#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7624choke me 7625#else 7626char (*f) () = $ac_func; 7627#endif 7628#ifdef __cplusplus 7629} 7630#endif 7631 7632int 7633main () 7634{ 7635return f != $ac_func; 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640rm -f conftest.$ac_objext conftest$ac_exeext 7641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7642 (eval $ac_link) 2>conftest.er1 7643 ac_status=$? 7644 grep -v '^ *+' conftest.er1 >conftest.err 7645 rm -f conftest.er1 7646 cat conftest.err >&5 7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 (exit $ac_status); } && 7649 { ac_try='test -z "$ac_c_werror_flag" 7650 || test ! -s conftest.err' 7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7652 (eval $ac_try) 2>&5 7653 ac_status=$? 7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7655 (exit $ac_status); }; } && 7656 { ac_try='test -s conftest$ac_exeext' 7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7658 (eval $ac_try) 2>&5 7659 ac_status=$? 7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7661 (exit $ac_status); }; }; then 7662 eval "$as_ac_var=yes" 7663else 7664 echo "$as_me: failed program was:" >&5 7665sed 's/^/| /' conftest.$ac_ext >&5 7666 7667eval "$as_ac_var=no" 7668fi 7669rm -f conftest.err conftest.$ac_objext \ 7670 conftest$ac_exeext conftest.$ac_ext 7671fi 7672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7674if test `eval echo '${'$as_ac_var'}'` = yes; then 7675 cat >>confdefs.h <<_ACEOF 7676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7677_ACEOF 7678 7679fi 7680done 7681 7682 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7683set dummy gmsgfmt; ac_word=$2 7684echo "$as_me:$LINENO: checking for $ac_word" >&5 7685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7686if test "${ac_cv_path_GMSGFMT+set}" = set; then 7687 echo $ECHO_N "(cached) $ECHO_C" >&6 7688else 7689 case $GMSGFMT in 7690 [\\/]* | ?:[\\/]*) 7691 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7692 ;; 7693 *) 7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7695for as_dir in $PATH 7696do 7697 IFS=$as_save_IFS 7698 test -z "$as_dir" && as_dir=. 7699 for ac_exec_ext in '' $ac_executable_extensions; do 7700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7701 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7703 break 2 7704 fi 7705done 7706done 7707 7708 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7709 ;; 7710esac 7711fi 7712GMSGFMT=$ac_cv_path_GMSGFMT 7713 7714if test -n "$GMSGFMT"; then 7715 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7716echo "${ECHO_T}$GMSGFMT" >&6 7717else 7718 echo "$as_me:$LINENO: result: no" >&5 7719echo "${ECHO_T}no" >&6 7720fi 7721 7722 # Extract the first word of "xgettext", so it can be a program name with args. 7723set dummy xgettext; ac_word=$2 7724echo "$as_me:$LINENO: checking for $ac_word" >&5 7725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7726if test "${ac_cv_path_XGETTEXT+set}" = set; then 7727 echo $ECHO_N "(cached) $ECHO_C" >&6 7728else 7729 case "$XGETTEXT" in 7730 /*) 7731 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7732 ;; 7733 *) 7734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7735 for ac_dir in $PATH; do 7736 test -z "$ac_dir" && ac_dir=. 7737 if test -f $ac_dir/$ac_word; then 7738 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 7739 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7740 break 7741 fi 7742 fi 7743 done 7744 IFS="$ac_save_ifs" 7745 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7746 ;; 7747esac 7748fi 7749XGETTEXT="$ac_cv_path_XGETTEXT" 7750if test -n "$XGETTEXT"; then 7751 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7752echo "${ECHO_T}$XGETTEXT" >&6 7753else 7754 echo "$as_me:$LINENO: result: no" >&5 7755echo "${ECHO_T}no" >&6 7756fi 7757 7758 cat >conftest.$ac_ext <<_ACEOF 7759/* confdefs.h. */ 7760_ACEOF 7761cat confdefs.h >>conftest.$ac_ext 7762cat >>conftest.$ac_ext <<_ACEOF 7763/* end confdefs.h. */ 7764 7765int 7766main () 7767{ 7768extern int _nl_msg_cat_cntr; 7769 return _nl_msg_cat_cntr 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774rm -f conftest.$ac_objext conftest$ac_exeext 7775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7776 (eval $ac_link) 2>conftest.er1 7777 ac_status=$? 7778 grep -v '^ *+' conftest.er1 >conftest.err 7779 rm -f conftest.er1 7780 cat conftest.err >&5 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } && 7783 { ac_try='test -z "$ac_c_werror_flag" 7784 || test ! -s conftest.err' 7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7786 (eval $ac_try) 2>&5 7787 ac_status=$? 7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7789 (exit $ac_status); }; } && 7790 { ac_try='test -s conftest$ac_exeext' 7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7792 (eval $ac_try) 2>&5 7793 ac_status=$? 7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 (exit $ac_status); }; }; then 7796 CATOBJEXT=.gmo 7797 DATADIRNAME=share 7798else 7799 echo "$as_me: failed program was:" >&5 7800sed 's/^/| /' conftest.$ac_ext >&5 7801 7802CATOBJEXT=.mo 7803 DATADIRNAME=lib 7804fi 7805rm -f conftest.err conftest.$ac_objext \ 7806 conftest$ac_exeext conftest.$ac_ext 7807 INSTOBJEXT=.mo 7808 fi 7809 fi 7810 7811fi 7812 7813 7814 7815 7816 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then 7817 # Neither gettext nor catgets in included in the C library. 7818 # Fall back on GNU gettext library (assuming it is present). 7819 nls_cv_use_gnu_gettext=yes 7820 fi 7821 fi 7822 7823 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7824 INTLOBJS="\$(GETTOBJS)" 7825 # Extract the first word of "msgfmt", so it can be a program name with args. 7826set dummy msgfmt; ac_word=$2 7827echo "$as_me:$LINENO: checking for $ac_word" >&5 7828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7829if test "${ac_cv_path_MSGFMT+set}" = set; then 7830 echo $ECHO_N "(cached) $ECHO_C" >&6 7831else 7832 case "$MSGFMT" in 7833 /*) 7834 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7835 ;; 7836 *) 7837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7838 for ac_dir in $PATH; do 7839 test -z "$ac_dir" && ac_dir=. 7840 if test -f $ac_dir/$ac_word; then 7841 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 7842 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7843 break 7844 fi 7845 fi 7846 done 7847 IFS="$ac_save_ifs" 7848 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 7849 ;; 7850esac 7851fi 7852MSGFMT="$ac_cv_path_MSGFMT" 7853if test -n "$MSGFMT"; then 7854 echo "$as_me:$LINENO: result: $MSGFMT" >&5 7855echo "${ECHO_T}$MSGFMT" >&6 7856else 7857 echo "$as_me:$LINENO: result: no" >&5 7858echo "${ECHO_T}no" >&6 7859fi 7860 7861 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7862set dummy gmsgfmt; ac_word=$2 7863echo "$as_me:$LINENO: checking for $ac_word" >&5 7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7865if test "${ac_cv_path_GMSGFMT+set}" = set; then 7866 echo $ECHO_N "(cached) $ECHO_C" >&6 7867else 7868 case $GMSGFMT in 7869 [\\/]* | ?:[\\/]*) 7870 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7871 ;; 7872 *) 7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7874for as_dir in $PATH 7875do 7876 IFS=$as_save_IFS 7877 test -z "$as_dir" && as_dir=. 7878 for ac_exec_ext in '' $ac_executable_extensions; do 7879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7880 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7882 break 2 7883 fi 7884done 7885done 7886 7887 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7888 ;; 7889esac 7890fi 7891GMSGFMT=$ac_cv_path_GMSGFMT 7892 7893if test -n "$GMSGFMT"; then 7894 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7895echo "${ECHO_T}$GMSGFMT" >&6 7896else 7897 echo "$as_me:$LINENO: result: no" >&5 7898echo "${ECHO_T}no" >&6 7899fi 7900 7901 # Extract the first word of "xgettext", so it can be a program name with args. 7902set dummy xgettext; ac_word=$2 7903echo "$as_me:$LINENO: checking for $ac_word" >&5 7904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7905if test "${ac_cv_path_XGETTEXT+set}" = set; then 7906 echo $ECHO_N "(cached) $ECHO_C" >&6 7907else 7908 case "$XGETTEXT" in 7909 /*) 7910 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7911 ;; 7912 *) 7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7914 for ac_dir in $PATH; do 7915 test -z "$ac_dir" && ac_dir=. 7916 if test -f $ac_dir/$ac_word; then 7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 7918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7919 break 7920 fi 7921 fi 7922 done 7923 IFS="$ac_save_ifs" 7924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7925 ;; 7926esac 7927fi 7928XGETTEXT="$ac_cv_path_XGETTEXT" 7929if test -n "$XGETTEXT"; then 7930 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7931echo "${ECHO_T}$XGETTEXT" >&6 7932else 7933 echo "$as_me:$LINENO: result: no" >&5 7934echo "${ECHO_T}no" >&6 7935fi 7936 7937 7938 USE_INCLUDED_LIBINTL=yes 7939 CATOBJEXT=.gmo 7940 INSTOBJEXT=.mo 7941 DATADIRNAME=share 7942 INTLDEPS='$(top_builddir)/../intl/libintl.a' 7943 INTLLIBS=$INTLDEPS 7944 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 7945 nls_cv_header_intl=libintl.h 7946 nls_cv_header_libgt=libgettext.h 7947 fi 7948 7949 if test "$XGETTEXT" != ":"; then 7950 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 7951 : ; 7952 else 7953 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 7954echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 7955 XGETTEXT=":" 7956 fi 7957 fi 7958 7959 # We need to process the po/ directory. 7960 POSUB=po 7961 else 7962 DATADIRNAME=share 7963 nls_cv_header_intl=libintl.h 7964 nls_cv_header_libgt=libgettext.h 7965 fi 7966 7967 # If this is used in GNU gettext we have to set USE_NLS to `yes' 7968 # because some of the sources are only built for this goal. 7969 if test "$PACKAGE" = gettext; then 7970 USE_NLS=yes 7971 USE_INCLUDED_LIBINTL=yes 7972 fi 7973 7974 for lang in $ALL_LINGUAS; do 7975 GMOFILES="$GMOFILES $lang.gmo" 7976 POFILES="$POFILES $lang.po" 7977 done 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 if test "x$CATOBJEXT" != "x"; then 7991 7992cat >>confdefs.h <<\_ACEOF 7993#define ENABLE_NLS 1 7994_ACEOF 7995 7996 fi 7997 7998 7999 if test "x$CATOBJEXT" != "x"; then 8000 if test "x$ALL_LINGUAS" = "x"; then 8001 LINGUAS= 8002 else 8003 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 8004echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 8005 NEW_LINGUAS= 8006 for lang in ${LINGUAS=$ALL_LINGUAS}; do 8007 case "$ALL_LINGUAS" in 8008 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 8009 esac 8010 done 8011 LINGUAS=$NEW_LINGUAS 8012 echo "$as_me:$LINENO: result: $LINGUAS" >&5 8013echo "${ECHO_T}$LINGUAS" >&6 8014 fi 8015 8016 if test -n "$LINGUAS"; then 8017 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 8018 fi 8019 fi 8020 8021 if test $ac_cv_header_locale_h = yes; then 8022 INCLUDE_LOCALE_H="#include <locale.h>" 8023 else 8024 INCLUDE_LOCALE_H="\ 8025/* The system does not provide the header <locale.h>. Take care yourself. */" 8026 fi 8027 8028 8029 if test -f $srcdir/po2tbl.sed.in; then 8030 if test "$CATOBJEXT" = ".cat"; then 8031 if test "${ac_cv_header_linux_version_h+set}" = set; then 8032 echo "$as_me:$LINENO: checking for linux/version.h" >&5 8033echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 8034if test "${ac_cv_header_linux_version_h+set}" = set; then 8035 echo $ECHO_N "(cached) $ECHO_C" >&6 8036fi 8037echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 8038echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 8039else 8040 # Is the header compilable? 8041echo "$as_me:$LINENO: checking linux/version.h usability" >&5 8042echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 8043cat >conftest.$ac_ext <<_ACEOF 8044/* confdefs.h. */ 8045_ACEOF 8046cat confdefs.h >>conftest.$ac_ext 8047cat >>conftest.$ac_ext <<_ACEOF 8048/* end confdefs.h. */ 8049$ac_includes_default 8050#include <linux/version.h> 8051_ACEOF 8052rm -f conftest.$ac_objext 8053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8054 (eval $ac_compile) 2>conftest.er1 8055 ac_status=$? 8056 grep -v '^ *+' conftest.er1 >conftest.err 8057 rm -f conftest.er1 8058 cat conftest.err >&5 8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8060 (exit $ac_status); } && 8061 { ac_try='test -z "$ac_c_werror_flag" 8062 || test ! -s conftest.err' 8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8064 (eval $ac_try) 2>&5 8065 ac_status=$? 8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8067 (exit $ac_status); }; } && 8068 { ac_try='test -s conftest.$ac_objext' 8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8070 (eval $ac_try) 2>&5 8071 ac_status=$? 8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 (exit $ac_status); }; }; then 8074 ac_header_compiler=yes 8075else 8076 echo "$as_me: failed program was:" >&5 8077sed 's/^/| /' conftest.$ac_ext >&5 8078 8079ac_header_compiler=no 8080fi 8081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8083echo "${ECHO_T}$ac_header_compiler" >&6 8084 8085# Is the header present? 8086echo "$as_me:$LINENO: checking linux/version.h presence" >&5 8087echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 8088cat >conftest.$ac_ext <<_ACEOF 8089/* confdefs.h. */ 8090_ACEOF 8091cat confdefs.h >>conftest.$ac_ext 8092cat >>conftest.$ac_ext <<_ACEOF 8093/* end confdefs.h. */ 8094#include <linux/version.h> 8095_ACEOF 8096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8098 ac_status=$? 8099 grep -v '^ *+' conftest.er1 >conftest.err 8100 rm -f conftest.er1 8101 cat conftest.err >&5 8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8103 (exit $ac_status); } >/dev/null; then 8104 if test -s conftest.err; then 8105 ac_cpp_err=$ac_c_preproc_warn_flag 8106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8107 else 8108 ac_cpp_err= 8109 fi 8110else 8111 ac_cpp_err=yes 8112fi 8113if test -z "$ac_cpp_err"; then 8114 ac_header_preproc=yes 8115else 8116 echo "$as_me: failed program was:" >&5 8117sed 's/^/| /' conftest.$ac_ext >&5 8118 8119 ac_header_preproc=no 8120fi 8121rm -f conftest.err conftest.$ac_ext 8122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8123echo "${ECHO_T}$ac_header_preproc" >&6 8124 8125# So? What about this header? 8126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8127 yes:no: ) 8128 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 8129echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8130 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 8131echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} 8132 ac_header_preproc=yes 8133 ;; 8134 no:yes:* ) 8135 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 8136echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} 8137 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 8138echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} 8139 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 8140echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} 8141 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 8142echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} 8143 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 8144echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} 8145 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 8146echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} 8147 ( 8148 cat <<\_ASBOX 8149## ------------------------------------------ ## 8150## Report this to the AC_PACKAGE_NAME lists. ## 8151## ------------------------------------------ ## 8152_ASBOX 8153 ) | 8154 sed "s/^/$as_me: WARNING: /" >&2 8155 ;; 8156esac 8157echo "$as_me:$LINENO: checking for linux/version.h" >&5 8158echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 8159if test "${ac_cv_header_linux_version_h+set}" = set; then 8160 echo $ECHO_N "(cached) $ECHO_C" >&6 8161else 8162 ac_cv_header_linux_version_h=$ac_header_preproc 8163fi 8164echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 8165echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 8166 8167fi 8168if test $ac_cv_header_linux_version_h = yes; then 8169 msgformat=linux 8170else 8171 msgformat=xopen 8172fi 8173 8174 8175 8176 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 8177 fi 8178 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 8179 $srcdir/po2tbl.sed.in > po2tbl.sed 8180 fi 8181 8182 if test "$PACKAGE" = "gettext"; then 8183 GT_NO="#NO#" 8184 GT_YES= 8185 else 8186 GT_NO= 8187 GT_YES="#YES#" 8188 fi 8189 8190 8191 8192 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 8193 8194 8195 l= 8196 8197 8198 if test -f $srcdir/po/POTFILES.in; then 8199 test -d po || mkdir po 8200 if test "x$srcdir" != "x."; then 8201 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 8202 posrcprefix="$srcdir/" 8203 else 8204 posrcprefix="../$srcdir/" 8205 fi 8206 else 8207 posrcprefix="../" 8208 fi 8209 rm -f po/POTFILES 8210 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 8211 < $srcdir/po/POTFILES.in > po/POTFILES 8212 fi 8213 8214 8215echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 8216echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 8217 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 8218if test "${enable_maintainer_mode+set}" = set; then 8219 enableval="$enable_maintainer_mode" 8220 USE_MAINTAINER_MODE=$enableval 8221else 8222 USE_MAINTAINER_MODE=no 8223fi; 8224 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 8225echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 8226 8227 8228if test $USE_MAINTAINER_MODE = yes; then 8229 MAINTAINER_MODE_TRUE= 8230 MAINTAINER_MODE_FALSE='#' 8231else 8232 MAINTAINER_MODE_TRUE='#' 8233 MAINTAINER_MODE_FALSE= 8234fi 8235 8236 MAINT=$MAINTAINER_MODE_TRUE 8237 8238 8239 8240 8241 8242for ac_header in sys/gmon_out.h 8243do 8244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8245if eval "test \"\${$as_ac_Header+set}\" = set"; then 8246 echo "$as_me:$LINENO: checking for $ac_header" >&5 8247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8248if eval "test \"\${$as_ac_Header+set}\" = set"; then 8249 echo $ECHO_N "(cached) $ECHO_C" >&6 8250fi 8251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8253else 8254 # Is the header compilable? 8255echo "$as_me:$LINENO: checking $ac_header usability" >&5 8256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8257cat >conftest.$ac_ext <<_ACEOF 8258/* confdefs.h. */ 8259_ACEOF 8260cat confdefs.h >>conftest.$ac_ext 8261cat >>conftest.$ac_ext <<_ACEOF 8262/* end confdefs.h. */ 8263$ac_includes_default 8264#include <$ac_header> 8265_ACEOF 8266rm -f conftest.$ac_objext 8267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8268 (eval $ac_compile) 2>conftest.er1 8269 ac_status=$? 8270 grep -v '^ *+' conftest.er1 >conftest.err 8271 rm -f conftest.er1 8272 cat conftest.err >&5 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8274 (exit $ac_status); } && 8275 { ac_try='test -z "$ac_c_werror_flag" 8276 || test ! -s conftest.err' 8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8278 (eval $ac_try) 2>&5 8279 ac_status=$? 8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8281 (exit $ac_status); }; } && 8282 { ac_try='test -s conftest.$ac_objext' 8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8284 (eval $ac_try) 2>&5 8285 ac_status=$? 8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8287 (exit $ac_status); }; }; then 8288 ac_header_compiler=yes 8289else 8290 echo "$as_me: failed program was:" >&5 8291sed 's/^/| /' conftest.$ac_ext >&5 8292 8293ac_header_compiler=no 8294fi 8295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8297echo "${ECHO_T}$ac_header_compiler" >&6 8298 8299# Is the header present? 8300echo "$as_me:$LINENO: checking $ac_header presence" >&5 8301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8302cat >conftest.$ac_ext <<_ACEOF 8303/* confdefs.h. */ 8304_ACEOF 8305cat confdefs.h >>conftest.$ac_ext 8306cat >>conftest.$ac_ext <<_ACEOF 8307/* end confdefs.h. */ 8308#include <$ac_header> 8309_ACEOF 8310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8312 ac_status=$? 8313 grep -v '^ *+' conftest.er1 >conftest.err 8314 rm -f conftest.er1 8315 cat conftest.err >&5 8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 (exit $ac_status); } >/dev/null; then 8318 if test -s conftest.err; then 8319 ac_cpp_err=$ac_c_preproc_warn_flag 8320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8321 else 8322 ac_cpp_err= 8323 fi 8324else 8325 ac_cpp_err=yes 8326fi 8327if test -z "$ac_cpp_err"; then 8328 ac_header_preproc=yes 8329else 8330 echo "$as_me: failed program was:" >&5 8331sed 's/^/| /' conftest.$ac_ext >&5 8332 8333 ac_header_preproc=no 8334fi 8335rm -f conftest.err conftest.$ac_ext 8336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8337echo "${ECHO_T}$ac_header_preproc" >&6 8338 8339# So? What about this header? 8340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8341 yes:no: ) 8342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8346 ac_header_preproc=yes 8347 ;; 8348 no:yes:* ) 8349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8361 ( 8362 cat <<\_ASBOX 8363## ------------------------------------------ ## 8364## Report this to the AC_PACKAGE_NAME lists. ## 8365## ------------------------------------------ ## 8366_ASBOX 8367 ) | 8368 sed "s/^/$as_me: WARNING: /" >&2 8369 ;; 8370esac 8371echo "$as_me:$LINENO: checking for $ac_header" >&5 8372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8373if eval "test \"\${$as_ac_Header+set}\" = set"; then 8374 echo $ECHO_N "(cached) $ECHO_C" >&6 8375else 8376 eval "$as_ac_Header=\$ac_header_preproc" 8377fi 8378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8380 8381fi 8382if test `eval echo '${'$as_ac_Header'}'` = yes; then 8383 cat >>confdefs.h <<_ACEOF 8384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8385_ACEOF 8386 8387fi 8388 8389done 8390 8391 8392echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 8393echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 8394if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then 8395 echo $ECHO_N "(cached) $ECHO_C" >&6 8396else 8397 cat >conftest.$ac_ext <<_ACEOF 8398/* confdefs.h. */ 8399_ACEOF 8400cat confdefs.h >>conftest.$ac_ext 8401cat >>conftest.$ac_ext <<_ACEOF 8402/* end confdefs.h. */ 8403#include <unistd.h> 8404int 8405main () 8406{ 8407extern int getopt (int, char *const*, const char *); 8408 ; 8409 return 0; 8410} 8411_ACEOF 8412rm -f conftest.$ac_objext 8413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8414 (eval $ac_compile) 2>conftest.er1 8415 ac_status=$? 8416 grep -v '^ *+' conftest.er1 >conftest.err 8417 rm -f conftest.er1 8418 cat conftest.err >&5 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); } && 8421 { ac_try='test -z "$ac_c_werror_flag" 8422 || test ! -s conftest.err' 8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8424 (eval $ac_try) 2>&5 8425 ac_status=$? 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 (exit $ac_status); }; } && 8428 { ac_try='test -s conftest.$ac_objext' 8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8430 (eval $ac_try) 2>&5 8431 ac_status=$? 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8433 (exit $ac_status); }; }; then 8434 gprof_cv_decl_getopt_unistd_h=yes 8435else 8436 echo "$as_me: failed program was:" >&5 8437sed 's/^/| /' conftest.$ac_ext >&5 8438 8439gprof_cv_decl_getopt_unistd_h=no 8440fi 8441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8442fi 8443 8444echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5 8445echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6 8446if test $gprof_cv_decl_getopt_unistd_h = yes; then 8447 8448cat >>confdefs.h <<\_ACEOF 8449#define HAVE_DECL_GETOPT 1 8450_ACEOF 8451 8452fi 8453 8454 8455GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 8456 8457# Check whether --enable-werror or --disable-werror was given. 8458if test "${enable_werror+set}" = set; then 8459 enableval="$enable_werror" 8460 case "${enableval}" in 8461 yes | y) ERROR_ON_WARNING="yes" ;; 8462 no | n) ERROR_ON_WARNING="no" ;; 8463 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 8464echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} 8465 { (exit 1); exit 1; }; } ;; 8466 esac 8467fi; 8468 8469# Enable -Werror by default when using gcc 8470if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 8471 ERROR_ON_WARNING=yes 8472fi 8473 8474NO_WERROR= 8475if test "${ERROR_ON_WARNING}" = yes ; then 8476 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 8477 NO_WERROR="-Wno-error" 8478fi 8479 8480if test "${GCC}" = yes ; then 8481 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 8482fi 8483 8484# Check whether --enable-build-warnings or --disable-build-warnings was given. 8485if test "${enable_build_warnings+set}" = set; then 8486 enableval="$enable_build_warnings" 8487 case "${enableval}" in 8488 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; 8489 no) if test "${GCC}" = yes ; then 8490 WARN_CFLAGS="-w" 8491 fi;; 8492 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 8493 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; 8494 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 8495 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; 8496 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 8497esac 8498fi; 8499 8500if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 8501 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 8502fi 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 8513 8514 ac_config_commands="$ac_config_commands default" 8515 8516cat >confcache <<\_ACEOF 8517# This file is a shell script that caches the results of configure 8518# tests run on this system so they can be shared between configure 8519# scripts and configure runs, see configure's option --config-cache. 8520# It is not useful on other systems. If it contains results you don't 8521# want to keep, you may remove or edit it. 8522# 8523# config.status only pays attention to the cache file if you give it 8524# the --recheck option to rerun configure. 8525# 8526# `ac_cv_env_foo' variables (set or unset) will be overridden when 8527# loading this file, other *unset* `ac_cv_foo' will be assigned the 8528# following values. 8529 8530_ACEOF 8531 8532# The following way of writing the cache mishandles newlines in values, 8533# but we know of no workaround that is simple, portable, and efficient. 8534# So, don't put newlines in cache variables' values. 8535# Ultrix sh set writes to stderr and can't be redirected directly, 8536# and sets the high bit in the cache file unless we assign to the vars. 8537{ 8538 (set) 2>&1 | 8539 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8540 *ac_space=\ *) 8541 # `set' does not quote correctly, so add quotes (double-quote 8542 # substitution turns \\\\ into \\, and sed turns \\ into \). 8543 sed -n \ 8544 "s/'/'\\\\''/g; 8545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8546 ;; 8547 *) 8548 # `set' quotes correctly as required by POSIX, so do not add quotes. 8549 sed -n \ 8550 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8551 ;; 8552 esac; 8553} | 8554 sed ' 8555 t clear 8556 : clear 8557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8558 t end 8559 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8560 : end' >>confcache 8561if diff $cache_file confcache >/dev/null 2>&1; then :; else 8562 if test -w $cache_file; then 8563 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8564 cat confcache >$cache_file 8565 else 8566 echo "not updating unwritable cache $cache_file" 8567 fi 8568fi 8569rm -f confcache 8570 8571test "x$prefix" = xNONE && prefix=$ac_default_prefix 8572# Let make expand exec_prefix. 8573test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8574 8575# VPATH may cause trouble with some makes, so we remove $(srcdir), 8576# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8577# trailing colons and then remove the whole line if VPATH becomes empty 8578# (actually we leave an empty line to preserve line numbers). 8579if test "x$srcdir" = x.; then 8580 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8581s/:*\$(srcdir):*/:/; 8582s/:*\${srcdir}:*/:/; 8583s/:*@srcdir@:*/:/; 8584s/^\([^=]*=[ ]*\):*/\1/; 8585s/:*$//; 8586s/^[^=]*=[ ]*$//; 8587}' 8588fi 8589 8590DEFS=-DHAVE_CONFIG_H 8591 8592ac_libobjs= 8593ac_ltlibobjs= 8594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8595 # 1. Remove the extension, and $U if already installed. 8596 ac_i=`echo "$ac_i" | 8597 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8598 # 2. Add them. 8599 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8600 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8601done 8602LIBOBJS=$ac_libobjs 8603 8604LTLIBOBJS=$ac_ltlibobjs 8605 8606 8607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8608 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 8609Usually this means the macro was only invoked conditionally." >&5 8610echo "$as_me: error: conditional \"AMDEP\" was never defined. 8611Usually this means the macro was only invoked conditionally." >&2;} 8612 { (exit 1); exit 1; }; } 8613fi 8614if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8615 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 8616Usually this means the macro was only invoked conditionally." >&5 8617echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 8618Usually this means the macro was only invoked conditionally." >&2;} 8619 { (exit 1); exit 1; }; } 8620fi 8621if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 8622 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 8623Usually this means the macro was only invoked conditionally." >&5 8624echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 8625Usually this means the macro was only invoked conditionally." >&2;} 8626 { (exit 1); exit 1; }; } 8627fi 8628 8629: ${CONFIG_STATUS=./config.status} 8630ac_clean_files_save=$ac_clean_files 8631ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8632{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8633echo "$as_me: creating $CONFIG_STATUS" >&6;} 8634cat >$CONFIG_STATUS <<_ACEOF 8635#! $SHELL 8636# Generated by $as_me. 8637# Run this file to recreate the current configuration. 8638# Compiler output produced by configure, useful for debugging 8639# configure, is in config.log if it exists. 8640 8641debug=false 8642ac_cs_recheck=false 8643ac_cs_silent=false 8644SHELL=\${CONFIG_SHELL-$SHELL} 8645_ACEOF 8646 8647cat >>$CONFIG_STATUS <<\_ACEOF 8648## --------------------- ## 8649## M4sh Initialization. ## 8650## --------------------- ## 8651 8652# Be Bourne compatible 8653if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8654 emulate sh 8655 NULLCMD=: 8656 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8657 # is contrary to our usage. Disable this feature. 8658 alias -g '${1+"$@"}'='"$@"' 8659elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8660 set -o posix 8661fi 8662DUALCASE=1; export DUALCASE # for MKS sh 8663 8664# Support unset when possible. 8665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8666 as_unset=unset 8667else 8668 as_unset=false 8669fi 8670 8671 8672# Work around bugs in pre-3.0 UWIN ksh. 8673$as_unset ENV MAIL MAILPATH 8674PS1='$ ' 8675PS2='> ' 8676PS4='+ ' 8677 8678# NLS nuisances. 8679for as_var in \ 8680 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8681 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8682 LC_TELEPHONE LC_TIME 8683do 8684 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8685 eval $as_var=C; export $as_var 8686 else 8687 $as_unset $as_var 8688 fi 8689done 8690 8691# Required to use basename. 8692if expr a : '\(a\)' >/dev/null 2>&1; then 8693 as_expr=expr 8694else 8695 as_expr=false 8696fi 8697 8698if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8699 as_basename=basename 8700else 8701 as_basename=false 8702fi 8703 8704 8705# Name of the executable. 8706as_me=`$as_basename "$0" || 8707$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8708 X"$0" : 'X\(//\)$' \| \ 8709 X"$0" : 'X\(/\)$' \| \ 8710 . : '\(.\)' 2>/dev/null || 8711echo X/"$0" | 8712 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8713 /^X\/\(\/\/\)$/{ s//\1/; q; } 8714 /^X\/\(\/\).*/{ s//\1/; q; } 8715 s/.*/./; q'` 8716 8717 8718# PATH needs CR, and LINENO needs CR and PATH. 8719# Avoid depending upon Character Ranges. 8720as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8721as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8722as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8723as_cr_digits='0123456789' 8724as_cr_alnum=$as_cr_Letters$as_cr_digits 8725 8726# The user is always right. 8727if test "${PATH_SEPARATOR+set}" != set; then 8728 echo "#! /bin/sh" >conf$$.sh 8729 echo "exit 0" >>conf$$.sh 8730 chmod +x conf$$.sh 8731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8732 PATH_SEPARATOR=';' 8733 else 8734 PATH_SEPARATOR=: 8735 fi 8736 rm -f conf$$.sh 8737fi 8738 8739 8740 as_lineno_1=$LINENO 8741 as_lineno_2=$LINENO 8742 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8743 test "x$as_lineno_1" != "x$as_lineno_2" && 8744 test "x$as_lineno_3" = "x$as_lineno_2" || { 8745 # Find who we are. Look in the path if we contain no path at all 8746 # relative or not. 8747 case $0 in 8748 *[\\/]* ) as_myself=$0 ;; 8749 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8750for as_dir in $PATH 8751do 8752 IFS=$as_save_IFS 8753 test -z "$as_dir" && as_dir=. 8754 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8755done 8756 8757 ;; 8758 esac 8759 # We did not find ourselves, most probably we were run as `sh COMMAND' 8760 # in which case we are not to be found in the path. 8761 if test "x$as_myself" = x; then 8762 as_myself=$0 8763 fi 8764 if test ! -f "$as_myself"; then 8765 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 8766echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 8767 { (exit 1); exit 1; }; } 8768 fi 8769 case $CONFIG_SHELL in 8770 '') 8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8772for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 8773do 8774 IFS=$as_save_IFS 8775 test -z "$as_dir" && as_dir=. 8776 for as_base in sh bash ksh sh5; do 8777 case $as_dir in 8778 /*) 8779 if ("$as_dir/$as_base" -c ' 8780 as_lineno_1=$LINENO 8781 as_lineno_2=$LINENO 8782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8783 test "x$as_lineno_1" != "x$as_lineno_2" && 8784 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8785 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8786 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8787 CONFIG_SHELL=$as_dir/$as_base 8788 export CONFIG_SHELL 8789 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8790 fi;; 8791 esac 8792 done 8793done 8794;; 8795 esac 8796 8797 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8798 # uniformly replaced by the line number. The first 'sed' inserts a 8799 # line-number line before each line; the second 'sed' does the real 8800 # work. The second script uses 'N' to pair each line-number line 8801 # with the numbered line, and appends trailing '-' during 8802 # substitution so that $LINENO is not a special case at line end. 8803 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8804 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 8805 sed '=' <$as_myself | 8806 sed ' 8807 N 8808 s,$,-, 8809 : loop 8810 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 8811 t loop 8812 s,-$,, 8813 s,^['$as_cr_digits']*\n,, 8814 ' >$as_me.lineno && 8815 chmod +x $as_me.lineno || 8816 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 8817echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 8818 { (exit 1); exit 1; }; } 8819 8820 # Don't try to exec as it changes $[0], causing all sort of problems 8821 # (the dirname of $[0] is not the place where we might find the 8822 # original and so on. Autoconf is especially sensible to this). 8823 . ./$as_me.lineno 8824 # Exit status is that of the last command. 8825 exit 8826} 8827 8828 8829case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 8830 *c*,-n*) ECHO_N= ECHO_C=' 8831' ECHO_T=' ' ;; 8832 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 8833 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 8834esac 8835 8836if expr a : '\(a\)' >/dev/null 2>&1; then 8837 as_expr=expr 8838else 8839 as_expr=false 8840fi 8841 8842rm -f conf$$ conf$$.exe conf$$.file 8843echo >conf$$.file 8844if ln -s conf$$.file conf$$ 2>/dev/null; then 8845 # We could just check for DJGPP; but this test a) works b) is more generic 8846 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 8847 if test -f conf$$.exe; then 8848 # Don't use ln at all; we don't have any links 8849 as_ln_s='cp -p' 8850 else 8851 as_ln_s='ln -s' 8852 fi 8853elif ln conf$$.file conf$$ 2>/dev/null; then 8854 as_ln_s=ln 8855else 8856 as_ln_s='cp -p' 8857fi 8858rm -f conf$$ conf$$.exe conf$$.file 8859 8860if mkdir -p . 2>/dev/null; then 8861 as_mkdir_p=: 8862else 8863 test -d ./-p && rmdir ./-p 8864 as_mkdir_p=false 8865fi 8866 8867as_executable_p="test -f" 8868 8869# Sed expression to map a string onto a valid CPP name. 8870as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8871 8872# Sed expression to map a string onto a valid variable name. 8873as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8874 8875 8876# IFS 8877# We need space, tab and new line, in precisely that order. 8878as_nl=' 8879' 8880IFS=" $as_nl" 8881 8882# CDPATH. 8883$as_unset CDPATH 8884 8885exec 6>&1 8886 8887# Open the log real soon, to keep \$[0] and so on meaningful, and to 8888# report actual input values of CONFIG_FILES etc. instead of their 8889# values after options handling. Logging --version etc. is OK. 8890exec 5>>config.log 8891{ 8892 echo 8893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8894## Running $as_me. ## 8895_ASBOX 8896} >&5 8897cat >&5 <<_CSEOF 8898 8899This file was extended by $as_me, which was 8900generated by GNU Autoconf 2.59. Invocation command line was 8901 8902 CONFIG_FILES = $CONFIG_FILES 8903 CONFIG_HEADERS = $CONFIG_HEADERS 8904 CONFIG_LINKS = $CONFIG_LINKS 8905 CONFIG_COMMANDS = $CONFIG_COMMANDS 8906 $ $0 $@ 8907 8908_CSEOF 8909echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8910echo >&5 8911_ACEOF 8912 8913# Files that config.status was made for. 8914if test -n "$ac_config_files"; then 8915 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8916fi 8917 8918if test -n "$ac_config_headers"; then 8919 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 8920fi 8921 8922if test -n "$ac_config_links"; then 8923 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 8924fi 8925 8926if test -n "$ac_config_commands"; then 8927 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 8928fi 8929 8930cat >>$CONFIG_STATUS <<\_ACEOF 8931 8932ac_cs_usage="\ 8933\`$as_me' instantiates files from templates according to the 8934current configuration. 8935 8936Usage: $0 [OPTIONS] [FILE]... 8937 8938 -h, --help print this help, then exit 8939 -V, --version print version number, then exit 8940 -q, --quiet do not print progress messages 8941 -d, --debug don't remove temporary files 8942 --recheck update $as_me by reconfiguring in the same conditions 8943 --file=FILE[:TEMPLATE] 8944 instantiate the configuration file FILE 8945 --header=FILE[:TEMPLATE] 8946 instantiate the configuration header FILE 8947 8948Configuration files: 8949$config_files 8950 8951Configuration headers: 8952$config_headers 8953 8954Configuration commands: 8955$config_commands 8956 8957Report bugs to <bug-autoconf@gnu.org>." 8958_ACEOF 8959 8960cat >>$CONFIG_STATUS <<_ACEOF 8961ac_cs_version="\\ 8962config.status 8963configured by $0, generated by GNU Autoconf 2.59, 8964 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8965 8966Copyright (C) 2003 Free Software Foundation, Inc. 8967This config.status script is free software; the Free Software Foundation 8968gives unlimited permission to copy, distribute and modify it." 8969srcdir=$srcdir 8970INSTALL="$INSTALL" 8971_ACEOF 8972 8973cat >>$CONFIG_STATUS <<\_ACEOF 8974# If no file are specified by the user, then we need to provide default 8975# value. By we need to know if files were specified by the user. 8976ac_need_defaults=: 8977while test $# != 0 8978do 8979 case $1 in 8980 --*=*) 8981 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8982 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8983 ac_shift=: 8984 ;; 8985 -*) 8986 ac_option=$1 8987 ac_optarg=$2 8988 ac_shift=shift 8989 ;; 8990 *) # This is not an option, so the user has probably given explicit 8991 # arguments. 8992 ac_option=$1 8993 ac_need_defaults=false;; 8994 esac 8995 8996 case $ac_option in 8997 # Handling of the options. 8998_ACEOF 8999cat >>$CONFIG_STATUS <<\_ACEOF 9000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9001 ac_cs_recheck=: ;; 9002 --version | --vers* | -V ) 9003 echo "$ac_cs_version"; exit 0 ;; 9004 --he | --h) 9005 # Conflict between --help and --header 9006 { { echo "$as_me:$LINENO: error: ambiguous option: $1 9007Try \`$0 --help' for more information." >&5 9008echo "$as_me: error: ambiguous option: $1 9009Try \`$0 --help' for more information." >&2;} 9010 { (exit 1); exit 1; }; };; 9011 --help | --hel | -h ) 9012 echo "$ac_cs_usage"; exit 0 ;; 9013 --debug | --d* | -d ) 9014 debug=: ;; 9015 --file | --fil | --fi | --f ) 9016 $ac_shift 9017 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 9018 ac_need_defaults=false;; 9019 --header | --heade | --head | --hea ) 9020 $ac_shift 9021 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 9022 ac_need_defaults=false;; 9023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9024 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9025 ac_cs_silent=: ;; 9026 9027 # This is an error. 9028 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 9029Try \`$0 --help' for more information." >&5 9030echo "$as_me: error: unrecognized option: $1 9031Try \`$0 --help' for more information." >&2;} 9032 { (exit 1); exit 1; }; } ;; 9033 9034 *) ac_config_targets="$ac_config_targets $1" ;; 9035 9036 esac 9037 shift 9038done 9039 9040ac_configure_extra_args= 9041 9042if $ac_cs_silent; then 9043 exec 6>/dev/null 9044 ac_configure_extra_args="$ac_configure_extra_args --silent" 9045fi 9046 9047_ACEOF 9048cat >>$CONFIG_STATUS <<_ACEOF 9049if \$ac_cs_recheck; then 9050 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 9051 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9052fi 9053 9054_ACEOF 9055 9056cat >>$CONFIG_STATUS <<_ACEOF 9057# 9058# INIT-COMMANDS section. 9059# 9060 9061AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9062 9063 9064_ACEOF 9065 9066 9067 9068cat >>$CONFIG_STATUS <<\_ACEOF 9069for ac_config_target in $ac_config_targets 9070do 9071 case "$ac_config_target" in 9072 # Handling of arguments. 9073 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9074 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 9075 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9076 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 9077 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; 9078 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 9079echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9080 { (exit 1); exit 1; }; };; 9081 esac 9082done 9083 9084# If the user did not use the arguments to specify the items to instantiate, 9085# then the envvar interface is used. Set only those that are not. 9086# We use the long form for the default assignment because of an extremely 9087# bizarre bug on SunOS 4.1.3. 9088if $ac_need_defaults; then 9089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9092fi 9093 9094# Have a temporary directory for convenience. Make it in the build tree 9095# simply because there is no reason to put it here, and in addition, 9096# creating and moving files from /tmp can sometimes cause problems. 9097# Create a temporary directory, and hook for its removal unless debugging. 9098$debug || 9099{ 9100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 9101 trap '{ (exit 1); exit 1; }' 1 2 13 15 9102} 9103 9104# Create a (secure) tmp directory for tmp files. 9105 9106{ 9107 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 9108 test -n "$tmp" && test -d "$tmp" 9109} || 9110{ 9111 tmp=./confstat$$-$RANDOM 9112 (umask 077 && mkdir $tmp) 9113} || 9114{ 9115 echo "$me: cannot create a temporary directory in ." >&2 9116 { (exit 1); exit 1; } 9117} 9118 9119_ACEOF 9120 9121cat >>$CONFIG_STATUS <<_ACEOF 9122 9123# 9124# CONFIG_FILES section. 9125# 9126 9127# No need to generate the scripts if there are no CONFIG_FILES. 9128# This happens for instance when ./config.status config.h 9129if test -n "\$CONFIG_FILES"; then 9130 # Protect against being on the right side of a sed subst in config.status. 9131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 9132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 9133s,@SHELL@,$SHELL,;t t 9134s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 9135s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 9136s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 9137s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 9138s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 9139s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 9140s,@exec_prefix@,$exec_prefix,;t t 9141s,@prefix@,$prefix,;t t 9142s,@program_transform_name@,$program_transform_name,;t t 9143s,@bindir@,$bindir,;t t 9144s,@sbindir@,$sbindir,;t t 9145s,@libexecdir@,$libexecdir,;t t 9146s,@datadir@,$datadir,;t t 9147s,@sysconfdir@,$sysconfdir,;t t 9148s,@sharedstatedir@,$sharedstatedir,;t t 9149s,@localstatedir@,$localstatedir,;t t 9150s,@libdir@,$libdir,;t t 9151s,@includedir@,$includedir,;t t 9152s,@oldincludedir@,$oldincludedir,;t t 9153s,@infodir@,$infodir,;t t 9154s,@mandir@,$mandir,;t t 9155s,@build_alias@,$build_alias,;t t 9156s,@host_alias@,$host_alias,;t t 9157s,@target_alias@,$target_alias,;t t 9158s,@DEFS@,$DEFS,;t t 9159s,@ECHO_C@,$ECHO_C,;t t 9160s,@ECHO_N@,$ECHO_N,;t t 9161s,@ECHO_T@,$ECHO_T,;t t 9162s,@LIBS@,$LIBS,;t t 9163s,@build@,$build,;t t 9164s,@build_cpu@,$build_cpu,;t t 9165s,@build_vendor@,$build_vendor,;t t 9166s,@build_os@,$build_os,;t t 9167s,@host@,$host,;t t 9168s,@host_cpu@,$host_cpu,;t t 9169s,@host_vendor@,$host_vendor,;t t 9170s,@host_os@,$host_os,;t t 9171s,@target@,$target,;t t 9172s,@target_cpu@,$target_cpu,;t t 9173s,@target_vendor@,$target_vendor,;t t 9174s,@target_os@,$target_os,;t t 9175s,@CC@,$CC,;t t 9176s,@CFLAGS@,$CFLAGS,;t t 9177s,@LDFLAGS@,$LDFLAGS,;t t 9178s,@CPPFLAGS@,$CPPFLAGS,;t t 9179s,@ac_ct_CC@,$ac_ct_CC,;t t 9180s,@EXEEXT@,$EXEEXT,;t t 9181s,@OBJEXT@,$OBJEXT,;t t 9182s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 9183s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 9184s,@INSTALL_DATA@,$INSTALL_DATA,;t t 9185s,@CYGPATH_W@,$CYGPATH_W,;t t 9186s,@PACKAGE@,$PACKAGE,;t t 9187s,@VERSION@,$VERSION,;t t 9188s,@ACLOCAL@,$ACLOCAL,;t t 9189s,@AUTOCONF@,$AUTOCONF,;t t 9190s,@AUTOMAKE@,$AUTOMAKE,;t t 9191s,@AUTOHEADER@,$AUTOHEADER,;t t 9192s,@MAKEINFO@,$MAKEINFO,;t t 9193s,@install_sh@,$install_sh,;t t 9194s,@STRIP@,$STRIP,;t t 9195s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 9196s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 9197s,@mkdir_p@,$mkdir_p,;t t 9198s,@AWK@,$AWK,;t t 9199s,@SET_MAKE@,$SET_MAKE,;t t 9200s,@am__leading_dot@,$am__leading_dot,;t t 9201s,@AMTAR@,$AMTAR,;t t 9202s,@am__tar@,$am__tar,;t t 9203s,@am__untar@,$am__untar,;t t 9204s,@DEPDIR@,$DEPDIR,;t t 9205s,@am__include@,$am__include,;t t 9206s,@am__quote@,$am__quote,;t t 9207s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 9208s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 9209s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 9210s,@CCDEPMODE@,$CCDEPMODE,;t t 9211s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 9212s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 9213s,@LN_S@,$LN_S,;t t 9214s,@RANLIB@,$RANLIB,;t t 9215s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 9216s,@LIBTOOL@,$LIBTOOL,;t t 9217s,@CPP@,$CPP,;t t 9218s,@EGREP@,$EGREP,;t t 9219s,@ALLOCA@,$ALLOCA,;t t 9220s,@USE_NLS@,$USE_NLS,;t t 9221s,@MSGFMT@,$MSGFMT,;t t 9222s,@GMSGFMT@,$GMSGFMT,;t t 9223s,@XGETTEXT@,$XGETTEXT,;t t 9224s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 9225s,@CATALOGS@,$CATALOGS,;t t 9226s,@CATOBJEXT@,$CATOBJEXT,;t t 9227s,@DATADIRNAME@,$DATADIRNAME,;t t 9228s,@GMOFILES@,$GMOFILES,;t t 9229s,@INSTOBJEXT@,$INSTOBJEXT,;t t 9230s,@INTLDEPS@,$INTLDEPS,;t t 9231s,@INTLLIBS@,$INTLLIBS,;t t 9232s,@INTLOBJS@,$INTLOBJS,;t t 9233s,@POFILES@,$POFILES,;t t 9234s,@POSUB@,$POSUB,;t t 9235s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t 9236s,@GT_NO@,$GT_NO,;t t 9237s,@GT_YES@,$GT_YES,;t t 9238s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 9239s,@l@,$l,;t t 9240s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 9241s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 9242s,@MAINT@,$MAINT,;t t 9243s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t 9244s,@NO_WERROR@,$NO_WERROR,;t t 9245s,@datarootdir@,$datarootdir,;t t 9246s,@docdir@,$docdir,;t t 9247s,@htmldir@,$htmldir,;t t 9248s,@LIBOBJS@,$LIBOBJS,;t t 9249s,@LTLIBOBJS@,$LTLIBOBJS,;t t 9250CEOF 9251 9252_ACEOF 9253 9254 cat >>$CONFIG_STATUS <<\_ACEOF 9255 # Split the substitutions into bite-sized pieces for seds with 9256 # small command number limits, like on Digital OSF/1 and HP-UX. 9257 ac_max_sed_lines=48 9258 ac_sed_frag=1 # Number of current file. 9259 ac_beg=1 # First line for current file. 9260 ac_end=$ac_max_sed_lines # Line after last line for current file. 9261 ac_more_lines=: 9262 ac_sed_cmds= 9263 while $ac_more_lines; do 9264 if test $ac_beg -gt 1; then 9265 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9266 else 9267 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9268 fi 9269 if test ! -s $tmp/subs.frag; then 9270 ac_more_lines=false 9271 else 9272 # The purpose of the label and of the branching condition is to 9273 # speed up the sed processing (if there are no `@' at all, there 9274 # is no need to browse any of the substitutions). 9275 # These are the two extra sed commands mentioned above. 9276 (echo ':t 9277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 9278 if test -z "$ac_sed_cmds"; then 9279 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 9280 else 9281 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 9282 fi 9283 ac_sed_frag=`expr $ac_sed_frag + 1` 9284 ac_beg=$ac_end 9285 ac_end=`expr $ac_end + $ac_max_sed_lines` 9286 fi 9287 done 9288 if test -z "$ac_sed_cmds"; then 9289 ac_sed_cmds=cat 9290 fi 9291fi # test -n "$CONFIG_FILES" 9292 9293_ACEOF 9294cat >>$CONFIG_STATUS <<\_ACEOF 9295for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 9296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9297 case $ac_file in 9298 - | *:- | *:-:* ) # input from stdin 9299 cat >$tmp/stdin 9300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9304 * ) ac_file_in=$ac_file.in ;; 9305 esac 9306 9307 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9308 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9310 X"$ac_file" : 'X\(//\)[^/]' \| \ 9311 X"$ac_file" : 'X\(//\)$' \| \ 9312 X"$ac_file" : 'X\(/\)' \| \ 9313 . : '\(.\)' 2>/dev/null || 9314echo X"$ac_file" | 9315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9316 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9317 /^X\(\/\/\)$/{ s//\1/; q; } 9318 /^X\(\/\).*/{ s//\1/; q; } 9319 s/.*/./; q'` 9320 { if $as_mkdir_p; then 9321 mkdir -p "$ac_dir" 9322 else 9323 as_dir="$ac_dir" 9324 as_dirs= 9325 while test ! -d "$as_dir"; do 9326 as_dirs="$as_dir $as_dirs" 9327 as_dir=`(dirname "$as_dir") 2>/dev/null || 9328$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9329 X"$as_dir" : 'X\(//\)[^/]' \| \ 9330 X"$as_dir" : 'X\(//\)$' \| \ 9331 X"$as_dir" : 'X\(/\)' \| \ 9332 . : '\(.\)' 2>/dev/null || 9333echo X"$as_dir" | 9334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9335 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9336 /^X\(\/\/\)$/{ s//\1/; q; } 9337 /^X\(\/\).*/{ s//\1/; q; } 9338 s/.*/./; q'` 9339 done 9340 test ! -n "$as_dirs" || mkdir $as_dirs 9341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9342echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9343 { (exit 1); exit 1; }; }; } 9344 9345 ac_builddir=. 9346 9347if test "$ac_dir" != .; then 9348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9349 # A "../" for each directory in $ac_dir_suffix. 9350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9351else 9352 ac_dir_suffix= ac_top_builddir= 9353fi 9354 9355case $srcdir in 9356 .) # No --srcdir option. We are building in place. 9357 ac_srcdir=. 9358 if test -z "$ac_top_builddir"; then 9359 ac_top_srcdir=. 9360 else 9361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9362 fi ;; 9363 [\\/]* | ?:[\\/]* ) # Absolute path. 9364 ac_srcdir=$srcdir$ac_dir_suffix; 9365 ac_top_srcdir=$srcdir ;; 9366 *) # Relative path. 9367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9368 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9369esac 9370 9371# Do not use `cd foo && pwd` to compute absolute paths, because 9372# the directories may not exist. 9373case `pwd` in 9374.) ac_abs_builddir="$ac_dir";; 9375*) 9376 case "$ac_dir" in 9377 .) ac_abs_builddir=`pwd`;; 9378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9379 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9380 esac;; 9381esac 9382case $ac_abs_builddir in 9383.) ac_abs_top_builddir=${ac_top_builddir}.;; 9384*) 9385 case ${ac_top_builddir}. in 9386 .) ac_abs_top_builddir=$ac_abs_builddir;; 9387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9389 esac;; 9390esac 9391case $ac_abs_builddir in 9392.) ac_abs_srcdir=$ac_srcdir;; 9393*) 9394 case $ac_srcdir in 9395 .) ac_abs_srcdir=$ac_abs_builddir;; 9396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9398 esac;; 9399esac 9400case $ac_abs_builddir in 9401.) ac_abs_top_srcdir=$ac_top_srcdir;; 9402*) 9403 case $ac_top_srcdir in 9404 .) ac_abs_top_srcdir=$ac_abs_builddir;; 9405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9407 esac;; 9408esac 9409 9410 9411 case $INSTALL in 9412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9413 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9414 esac 9415 9416 if test x"$ac_file" != x-; then 9417 { echo "$as_me:$LINENO: creating $ac_file" >&5 9418echo "$as_me: creating $ac_file" >&6;} 9419 rm -f "$ac_file" 9420 fi 9421 # Let's still pretend it is `configure' which instantiates (i.e., don't 9422 # use $as_me), people would be surprised to read: 9423 # /* config.h. Generated by config.status. */ 9424 if test x"$ac_file" = x-; then 9425 configure_input= 9426 else 9427 configure_input="$ac_file. " 9428 fi 9429 configure_input=$configure_input"Generated from `echo $ac_file_in | 9430 sed 's,.*/,,'` by configure." 9431 9432 # First look for the input files in the build tree, otherwise in the 9433 # src tree. 9434 ac_file_inputs=`IFS=: 9435 for f in $ac_file_in; do 9436 case $f in 9437 -) echo $tmp/stdin ;; 9438 [\\/$]*) 9439 # Absolute (can't be DOS-style, as IFS=:) 9440 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9441echo "$as_me: error: cannot find input file: $f" >&2;} 9442 { (exit 1); exit 1; }; } 9443 echo "$f";; 9444 *) # Relative 9445 if test -f "$f"; then 9446 # Build tree 9447 echo "$f" 9448 elif test -f "$srcdir/$f"; then 9449 # Source tree 9450 echo "$srcdir/$f" 9451 else 9452 # /dev/null tree 9453 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9454echo "$as_me: error: cannot find input file: $f" >&2;} 9455 { (exit 1); exit 1; }; } 9456 fi;; 9457 esac 9458 done` || { (exit 1); exit 1; } 9459_ACEOF 9460cat >>$CONFIG_STATUS <<_ACEOF 9461 sed "$ac_vpsub 9462$extrasub 9463_ACEOF 9464cat >>$CONFIG_STATUS <<\_ACEOF 9465:t 9466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9467s,@configure_input@,$configure_input,;t t 9468s,@srcdir@,$ac_srcdir,;t t 9469s,@abs_srcdir@,$ac_abs_srcdir,;t t 9470s,@top_srcdir@,$ac_top_srcdir,;t t 9471s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9472s,@builddir@,$ac_builddir,;t t 9473s,@abs_builddir@,$ac_abs_builddir,;t t 9474s,@top_builddir@,$ac_top_builddir,;t t 9475s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9476s,@INSTALL@,$ac_INSTALL,;t t 9477" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9478 rm -f $tmp/stdin 9479 if test x"$ac_file" != x-; then 9480 mv $tmp/out $ac_file 9481 else 9482 cat $tmp/out 9483 rm -f $tmp/out 9484 fi 9485 9486done 9487_ACEOF 9488cat >>$CONFIG_STATUS <<\_ACEOF 9489 9490# 9491# CONFIG_HEADER section. 9492# 9493 9494# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9495# NAME is the cpp macro being defined and VALUE is the value it is being given. 9496# 9497# ac_d sets the value in "#define NAME VALUE" lines. 9498ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9499ac_dB='[ ].*$,\1#\2' 9500ac_dC=' ' 9501ac_dD=',;t' 9502# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9503ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9504ac_uB='$,\1#\2define\3' 9505ac_uC=' ' 9506ac_uD=',;t' 9507 9508for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 9509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9510 case $ac_file in 9511 - | *:- | *:-:* ) # input from stdin 9512 cat >$tmp/stdin 9513 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9515 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9517 * ) ac_file_in=$ac_file.in ;; 9518 esac 9519 9520 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 9521echo "$as_me: creating $ac_file" >&6;} 9522 9523 # First look for the input files in the build tree, otherwise in the 9524 # src tree. 9525 ac_file_inputs=`IFS=: 9526 for f in $ac_file_in; do 9527 case $f in 9528 -) echo $tmp/stdin ;; 9529 [\\/$]*) 9530 # Absolute (can't be DOS-style, as IFS=:) 9531 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9532echo "$as_me: error: cannot find input file: $f" >&2;} 9533 { (exit 1); exit 1; }; } 9534 # Do quote $f, to prevent DOS paths from being IFS'd. 9535 echo "$f";; 9536 *) # Relative 9537 if test -f "$f"; then 9538 # Build tree 9539 echo "$f" 9540 elif test -f "$srcdir/$f"; then 9541 # Source tree 9542 echo "$srcdir/$f" 9543 else 9544 # /dev/null tree 9545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9546echo "$as_me: error: cannot find input file: $f" >&2;} 9547 { (exit 1); exit 1; }; } 9548 fi;; 9549 esac 9550 done` || { (exit 1); exit 1; } 9551 # Remove the trailing spaces. 9552 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9553 9554_ACEOF 9555 9556# Transform confdefs.h into two sed scripts, `conftest.defines' and 9557# `conftest.undefs', that substitutes the proper values into 9558# config.h.in to produce config.h. The first handles `#define' 9559# templates, and the second `#undef' templates. 9560# And first: Protect against being on the right side of a sed subst in 9561# config.status. Protect against being in an unquoted here document 9562# in config.status. 9563rm -f conftest.defines conftest.undefs 9564# Using a here document instead of a string reduces the quoting nightmare. 9565# Putting comments in sed scripts is not portable. 9566# 9567# `end' is used to avoid that the second main sed command (meant for 9568# 0-ary CPP macros) applies to n-ary macro definitions. 9569# See the Autoconf documentation for `clear'. 9570cat >confdef2sed.sed <<\_ACEOF 9571s/[\\&,]/\\&/g 9572s,[\\$`],\\&,g 9573t clear 9574: clear 9575s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9576t end 9577s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9578: end 9579_ACEOF 9580# If some macros were called several times there might be several times 9581# the same #defines, which is useless. Nevertheless, we may not want to 9582# sort them, since we want the *last* AC-DEFINE to be honored. 9583uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9584sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9585rm -f confdef2sed.sed 9586 9587# This sed command replaces #undef with comments. This is necessary, for 9588# example, in the case of _POSIX_SOURCE, which is predefined and required 9589# on some systems where configure will not decide to define it. 9590cat >>conftest.undefs <<\_ACEOF 9591s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9592_ACEOF 9593 9594# Break up conftest.defines because some shells have a limit on the size 9595# of here documents, and old seds have small limits too (100 cmds). 9596echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9597echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9598echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9599echo ' :' >>$CONFIG_STATUS 9600rm -f conftest.tail 9601while grep . conftest.defines >/dev/null 9602do 9603 # Write a limited-size here document to $tmp/defines.sed. 9604 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9605 # Speed up: don't consider the non `#define' lines. 9606 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9607 # Work around the forget-to-reset-the-flag bug. 9608 echo 't clr' >>$CONFIG_STATUS 9609 echo ': clr' >>$CONFIG_STATUS 9610 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9611 echo 'CEOF 9612 sed -f $tmp/defines.sed $tmp/in >$tmp/out 9613 rm -f $tmp/in 9614 mv $tmp/out $tmp/in 9615' >>$CONFIG_STATUS 9616 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9617 rm -f conftest.defines 9618 mv conftest.tail conftest.defines 9619done 9620rm -f conftest.defines 9621echo ' fi # grep' >>$CONFIG_STATUS 9622echo >>$CONFIG_STATUS 9623 9624# Break up conftest.undefs because some shells have a limit on the size 9625# of here documents, and old seds have small limits too (100 cmds). 9626echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9627rm -f conftest.tail 9628while grep . conftest.undefs >/dev/null 9629do 9630 # Write a limited-size here document to $tmp/undefs.sed. 9631 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9632 # Speed up: don't consider the non `#undef' 9633 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9634 # Work around the forget-to-reset-the-flag bug. 9635 echo 't clr' >>$CONFIG_STATUS 9636 echo ': clr' >>$CONFIG_STATUS 9637 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9638 echo 'CEOF 9639 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9640 rm -f $tmp/in 9641 mv $tmp/out $tmp/in 9642' >>$CONFIG_STATUS 9643 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9644 rm -f conftest.undefs 9645 mv conftest.tail conftest.undefs 9646done 9647rm -f conftest.undefs 9648 9649cat >>$CONFIG_STATUS <<\_ACEOF 9650 # Let's still pretend it is `configure' which instantiates (i.e., don't 9651 # use $as_me), people would be surprised to read: 9652 # /* config.h. Generated by config.status. */ 9653 if test x"$ac_file" = x-; then 9654 echo "/* Generated by configure. */" >$tmp/config.h 9655 else 9656 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9657 fi 9658 cat $tmp/in >>$tmp/config.h 9659 rm -f $tmp/in 9660 if test x"$ac_file" != x-; then 9661 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9663echo "$as_me: $ac_file is unchanged" >&6;} 9664 else 9665 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9666$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9667 X"$ac_file" : 'X\(//\)[^/]' \| \ 9668 X"$ac_file" : 'X\(//\)$' \| \ 9669 X"$ac_file" : 'X\(/\)' \| \ 9670 . : '\(.\)' 2>/dev/null || 9671echo X"$ac_file" | 9672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9673 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9674 /^X\(\/\/\)$/{ s//\1/; q; } 9675 /^X\(\/\).*/{ s//\1/; q; } 9676 s/.*/./; q'` 9677 { if $as_mkdir_p; then 9678 mkdir -p "$ac_dir" 9679 else 9680 as_dir="$ac_dir" 9681 as_dirs= 9682 while test ! -d "$as_dir"; do 9683 as_dirs="$as_dir $as_dirs" 9684 as_dir=`(dirname "$as_dir") 2>/dev/null || 9685$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9686 X"$as_dir" : 'X\(//\)[^/]' \| \ 9687 X"$as_dir" : 'X\(//\)$' \| \ 9688 X"$as_dir" : 'X\(/\)' \| \ 9689 . : '\(.\)' 2>/dev/null || 9690echo X"$as_dir" | 9691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9692 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9693 /^X\(\/\/\)$/{ s//\1/; q; } 9694 /^X\(\/\).*/{ s//\1/; q; } 9695 s/.*/./; q'` 9696 done 9697 test ! -n "$as_dirs" || mkdir $as_dirs 9698 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9699echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9700 { (exit 1); exit 1; }; }; } 9701 9702 rm -f $ac_file 9703 mv $tmp/config.h $ac_file 9704 fi 9705 else 9706 cat $tmp/config.h 9707 rm -f $tmp/config.h 9708 fi 9709# Compute $ac_file's index in $config_headers. 9710_am_stamp_count=1 9711for _am_header in $config_headers :; do 9712 case $_am_header in 9713 $ac_file | $ac_file:* ) 9714 break ;; 9715 * ) 9716 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9717 esac 9718done 9719echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 9720$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9721 X$ac_file : 'X\(//\)[^/]' \| \ 9722 X$ac_file : 'X\(//\)$' \| \ 9723 X$ac_file : 'X\(/\)' \| \ 9724 . : '\(.\)' 2>/dev/null || 9725echo X$ac_file | 9726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9727 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9728 /^X\(\/\/\)$/{ s//\1/; q; } 9729 /^X\(\/\).*/{ s//\1/; q; } 9730 s/.*/./; q'`/stamp-h$_am_stamp_count 9731done 9732_ACEOF 9733cat >>$CONFIG_STATUS <<\_ACEOF 9734 9735# 9736# CONFIG_COMMANDS section. 9737# 9738for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 9739 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 9740 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 9741 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 9742$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9743 X"$ac_dest" : 'X\(//\)[^/]' \| \ 9744 X"$ac_dest" : 'X\(//\)$' \| \ 9745 X"$ac_dest" : 'X\(/\)' \| \ 9746 . : '\(.\)' 2>/dev/null || 9747echo X"$ac_dest" | 9748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9749 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9750 /^X\(\/\/\)$/{ s//\1/; q; } 9751 /^X\(\/\).*/{ s//\1/; q; } 9752 s/.*/./; q'` 9753 { if $as_mkdir_p; then 9754 mkdir -p "$ac_dir" 9755 else 9756 as_dir="$ac_dir" 9757 as_dirs= 9758 while test ! -d "$as_dir"; do 9759 as_dirs="$as_dir $as_dirs" 9760 as_dir=`(dirname "$as_dir") 2>/dev/null || 9761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9762 X"$as_dir" : 'X\(//\)[^/]' \| \ 9763 X"$as_dir" : 'X\(//\)$' \| \ 9764 X"$as_dir" : 'X\(/\)' \| \ 9765 . : '\(.\)' 2>/dev/null || 9766echo X"$as_dir" | 9767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9768 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9769 /^X\(\/\/\)$/{ s//\1/; q; } 9770 /^X\(\/\).*/{ s//\1/; q; } 9771 s/.*/./; q'` 9772 done 9773 test ! -n "$as_dirs" || mkdir $as_dirs 9774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9775echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9776 { (exit 1); exit 1; }; }; } 9777 9778 ac_builddir=. 9779 9780if test "$ac_dir" != .; then 9781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9782 # A "../" for each directory in $ac_dir_suffix. 9783 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9784else 9785 ac_dir_suffix= ac_top_builddir= 9786fi 9787 9788case $srcdir in 9789 .) # No --srcdir option. We are building in place. 9790 ac_srcdir=. 9791 if test -z "$ac_top_builddir"; then 9792 ac_top_srcdir=. 9793 else 9794 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9795 fi ;; 9796 [\\/]* | ?:[\\/]* ) # Absolute path. 9797 ac_srcdir=$srcdir$ac_dir_suffix; 9798 ac_top_srcdir=$srcdir ;; 9799 *) # Relative path. 9800 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9801 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9802esac 9803 9804# Do not use `cd foo && pwd` to compute absolute paths, because 9805# the directories may not exist. 9806case `pwd` in 9807.) ac_abs_builddir="$ac_dir";; 9808*) 9809 case "$ac_dir" in 9810 .) ac_abs_builddir=`pwd`;; 9811 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9812 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9813 esac;; 9814esac 9815case $ac_abs_builddir in 9816.) ac_abs_top_builddir=${ac_top_builddir}.;; 9817*) 9818 case ${ac_top_builddir}. in 9819 .) ac_abs_top_builddir=$ac_abs_builddir;; 9820 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9821 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9822 esac;; 9823esac 9824case $ac_abs_builddir in 9825.) ac_abs_srcdir=$ac_srcdir;; 9826*) 9827 case $ac_srcdir in 9828 .) ac_abs_srcdir=$ac_abs_builddir;; 9829 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9830 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9831 esac;; 9832esac 9833case $ac_abs_builddir in 9834.) ac_abs_top_srcdir=$ac_top_srcdir;; 9835*) 9836 case $ac_top_srcdir in 9837 .) ac_abs_top_srcdir=$ac_abs_builddir;; 9838 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9839 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9840 esac;; 9841esac 9842 9843 9844 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 9845echo "$as_me: executing $ac_dest commands" >&6;} 9846 case $ac_dest in 9847 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 9848 # Strip MF so we end up with the name of the file. 9849 mf=`echo "$mf" | sed -e 's/:.*$//'` 9850 # Check whether this is an Automake generated Makefile or not. 9851 # We used to match only the files named `Makefile.in', but 9852 # some people rename them; so instead we look at the file content. 9853 # Grep'ing the first line is not enough: some people post-process 9854 # each Makefile.in and add a new line on top of each file to say so. 9855 # So let's grep whole file. 9856 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 9857 dirpart=`(dirname "$mf") 2>/dev/null || 9858$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9859 X"$mf" : 'X\(//\)[^/]' \| \ 9860 X"$mf" : 'X\(//\)$' \| \ 9861 X"$mf" : 'X\(/\)' \| \ 9862 . : '\(.\)' 2>/dev/null || 9863echo X"$mf" | 9864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9865 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9866 /^X\(\/\/\)$/{ s//\1/; q; } 9867 /^X\(\/\).*/{ s//\1/; q; } 9868 s/.*/./; q'` 9869 else 9870 continue 9871 fi 9872 # Extract the definition of DEPDIR, am__include, and am__quote 9873 # from the Makefile without running `make'. 9874 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9875 test -z "$DEPDIR" && continue 9876 am__include=`sed -n 's/^am__include = //p' < "$mf"` 9877 test -z "am__include" && continue 9878 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9879 # When using ansi2knr, U may be empty or an underscore; expand it 9880 U=`sed -n 's/^U = //p' < "$mf"` 9881 # Find all dependency output files, they are included files with 9882 # $(DEPDIR) in their names. We invoke sed twice because it is the 9883 # simplest approach to changing $(DEPDIR) to its actual value in the 9884 # expansion. 9885 for file in `sed -n " 9886 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9887 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9888 # Make sure the directory exists. 9889 test -f "$dirpart/$file" && continue 9890 fdir=`(dirname "$file") 2>/dev/null || 9891$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9892 X"$file" : 'X\(//\)[^/]' \| \ 9893 X"$file" : 'X\(//\)$' \| \ 9894 X"$file" : 'X\(/\)' \| \ 9895 . : '\(.\)' 2>/dev/null || 9896echo X"$file" | 9897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9898 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9899 /^X\(\/\/\)$/{ s//\1/; q; } 9900 /^X\(\/\).*/{ s//\1/; q; } 9901 s/.*/./; q'` 9902 { if $as_mkdir_p; then 9903 mkdir -p $dirpart/$fdir 9904 else 9905 as_dir=$dirpart/$fdir 9906 as_dirs= 9907 while test ! -d "$as_dir"; do 9908 as_dirs="$as_dir $as_dirs" 9909 as_dir=`(dirname "$as_dir") 2>/dev/null || 9910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9911 X"$as_dir" : 'X\(//\)[^/]' \| \ 9912 X"$as_dir" : 'X\(//\)$' \| \ 9913 X"$as_dir" : 'X\(/\)' \| \ 9914 . : '\(.\)' 2>/dev/null || 9915echo X"$as_dir" | 9916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9917 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9918 /^X\(\/\/\)$/{ s//\1/; q; } 9919 /^X\(\/\).*/{ s//\1/; q; } 9920 s/.*/./; q'` 9921 done 9922 test ! -n "$as_dirs" || mkdir $as_dirs 9923 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 9924echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 9925 { (exit 1); exit 1; }; }; } 9926 9927 # echo "creating $dirpart/$file" 9928 echo '# dummy' > "$dirpart/$file" 9929 done 9930done 9931 ;; 9932 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; 9933 esac 9934done 9935_ACEOF 9936 9937cat >>$CONFIG_STATUS <<\_ACEOF 9938 9939{ (exit 0); exit 0; } 9940_ACEOF 9941chmod +x $CONFIG_STATUS 9942ac_clean_files=$ac_clean_files_save 9943 9944 9945# configure is writing to config.log, and then calls config.status. 9946# config.status does its own redirection, appending to config.log. 9947# Unfortunately, on DOS this fails, as config.log is still kept open 9948# by configure, so config.status won't be able to write to it; its 9949# output is simply discarded. So we exec the FD to /dev/null, 9950# effectively closing config.log, so it can be properly (re)opened and 9951# appended to by config.status. When coming back to configure, we 9952# need to make the FD available again. 9953if test "$no_create" != yes; then 9954 ac_cs_success=: 9955 ac_config_status_args= 9956 test "$silent" = yes && 9957 ac_config_status_args="$ac_config_status_args --quiet" 9958 exec 5>/dev/null 9959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9960 exec 5>>config.log 9961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9962 # would make configure fail if this is the last instruction. 9963 $ac_cs_success || { (exit 1); exit 1; } 9964fi 9965 9966