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