configure revision 128345
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.54 for less 1. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# Support unset when possible. 25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME 40do 41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 42 eval $as_var=C; export $as_var 43 else 44 $as_unset $as_var 45 fi 46done 47 48# Required to use basename. 49if expr a : '\(a\)' >/dev/null 2>&1; then 50 as_expr=expr 51else 52 as_expr=false 53fi 54 55if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 56 as_basename=basename 57else 58 as_basename=false 59fi 60 61 62# Name of the executable. 63as_me=`$as_basename "$0" || 64$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 65 X"$0" : 'X\(//\)$' \| \ 66 X"$0" : 'X\(/\)$' \| \ 67 . : '\(.\)' 2>/dev/null || 68echo X/"$0" | 69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 70 /^X\/\(\/\/\)$/{ s//\1/; q; } 71 /^X\/\(\/\).*/{ s//\1/; q; } 72 s/.*/./; q'` 73 74 75# PATH needs CR, and LINENO needs CR and PATH. 76# Avoid depending upon Character Ranges. 77as_cr_letters='abcdefghijklmnopqrstuvwxyz' 78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 79as_cr_Letters=$as_cr_letters$as_cr_LETTERS 80as_cr_digits='0123456789' 81as_cr_alnum=$as_cr_Letters$as_cr_digits 82 83# The user is always right. 84if test "${PATH_SEPARATOR+set}" != set; then 85 echo "#! /bin/sh" >conftest.sh 86 echo "exit 0" >>conftest.sh 87 chmod +x conftest.sh 88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then 89 PATH_SEPARATOR=';' 90 else 91 PATH_SEPARATOR=: 92 fi 93 rm -f conftest.sh 94fi 95 96 97 as_lineno_1=$LINENO 98 as_lineno_2=$LINENO 99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 100 test "x$as_lineno_1" != "x$as_lineno_2" && 101 test "x$as_lineno_3" = "x$as_lineno_2" || { 102 # Find who we are. Look in the path if we contain no path at all 103 # relative or not. 104 case $0 in 105 *[\\/]* ) as_myself=$0 ;; 106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 107for as_dir in $PATH 108do 109 IFS=$as_save_IFS 110 test -z "$as_dir" && as_dir=. 111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 112done 113 114 ;; 115 esac 116 # We did not find ourselves, most probably we were run as `sh COMMAND' 117 # in which case we are not to be found in the path. 118 if test "x$as_myself" = x; then 119 as_myself=$0 120 fi 121 if test ! -f "$as_myself"; then 122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 123 { (exit 1); exit 1; }; } 124 fi 125 case $CONFIG_SHELL in 126 '') 127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 129do 130 IFS=$as_save_IFS 131 test -z "$as_dir" && as_dir=. 132 for as_base in sh bash ksh sh5; do 133 case $as_dir in 134 /*) 135 if ("$as_dir/$as_base" -c ' 136 as_lineno_1=$LINENO 137 as_lineno_2=$LINENO 138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 139 test "x$as_lineno_1" != "x$as_lineno_2" && 140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 143 CONFIG_SHELL=$as_dir/$as_base 144 export CONFIG_SHELL 145 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 146 fi;; 147 esac 148 done 149done 150;; 151 esac 152 153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 154 # uniformly replaced by the line number. The first 'sed' inserts a 155 # line-number line before each line; the second 'sed' does the real 156 # work. The second script uses 'N' to pair each line-number line 157 # with the numbered line, and appends trailing '-' during 158 # substitution so that $LINENO is not a special case at line end. 159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 161 sed '=' <$as_myself | 162 sed ' 163 N 164 s,$,-, 165 : loop 166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 167 t loop 168 s,-$,, 169 s,^['$as_cr_digits']*\n,, 170 ' >$as_me.lineno && 171 chmod +x $as_me.lineno || 172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 173 { (exit 1); exit 1; }; } 174 175 # Don't try to exec as it changes $[0], causing all sort of problems 176 # (the dirname of $[0] is not the place where we might find the 177 # original and so on. Autoconf is especially sensible to this). 178 . ./$as_me.lineno 179 # Exit status is that of the last command. 180 exit 181} 182 183 184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 185 *c*,-n*) ECHO_N= ECHO_C=' 186' ECHO_T=' ' ;; 187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 189esac 190 191if expr a : '\(a\)' >/dev/null 2>&1; then 192 as_expr=expr 193else 194 as_expr=false 195fi 196 197rm -f conf$$ conf$$.exe conf$$.file 198echo >conf$$.file 199if ln -s conf$$.file conf$$ 2>/dev/null; then 200 # We could just check for DJGPP; but this test a) works b) is more generic 201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 202 if test -f conf$$.exe; then 203 # Don't use ln at all; we don't have any links 204 as_ln_s='cp -p' 205 else 206 as_ln_s='ln -s' 207 fi 208elif ln conf$$.file conf$$ 2>/dev/null; then 209 as_ln_s=ln 210else 211 as_ln_s='cp -p' 212fi 213rm -f conf$$ conf$$.exe conf$$.file 214 215if mkdir -p . 2>/dev/null; then 216 as_mkdir_p=: 217else 218 as_mkdir_p=false 219fi 220 221as_executable_p="test -f" 222 223# Sed expression to map a string onto a valid CPP name. 224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 225 226# Sed expression to map a string onto a valid variable name. 227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 228 229 230# IFS 231# We need space, tab and new line, in precisely that order. 232as_nl=' 233' 234IFS=" $as_nl" 235 236# CDPATH. 237$as_unset CDPATH 238 239 240# Name of the host. 241# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 242# so uname gets run too. 243ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 244 245exec 6>&1 246 247# 248# Initializations. 249# 250ac_default_prefix=/usr/local 251ac_config_libobj_dir=. 252cross_compiling=no 253subdirs= 254MFLAGS= 255MAKEFLAGS= 256SHELL=${CONFIG_SHELL-/bin/sh} 257 258# Maximum number of lines to put in a shell here document. 259# This variable seems obsolete. It should probably be removed, and 260# only ac_max_sed_lines should be used. 261: ${ac_max_here_lines=38} 262 263# Identity of this package. 264PACKAGE_NAME='less' 265PACKAGE_TARNAME='less' 266PACKAGE_VERSION='1' 267PACKAGE_STRING='less 1' 268PACKAGE_BUGREPORT='' 269 270ac_unique_file="forwback.c" 271# Factoring default headers for most tests. 272ac_includes_default="\ 273#include <stdio.h> 274#if HAVE_SYS_TYPES_H 275# include <sys/types.h> 276#endif 277#if HAVE_SYS_STAT_H 278# include <sys/stat.h> 279#endif 280#if STDC_HEADERS 281# include <stdlib.h> 282# include <stddef.h> 283#else 284# if HAVE_STDLIB_H 285# include <stdlib.h> 286# endif 287#endif 288#if HAVE_STRING_H 289# if !STDC_HEADERS && HAVE_MEMORY_H 290# include <memory.h> 291# endif 292# include <string.h> 293#endif 294#if HAVE_STRINGS_H 295# include <strings.h> 296#endif 297#if HAVE_INTTYPES_H 298# include <inttypes.h> 299#else 300# if HAVE_STDINT_H 301# include <stdint.h> 302# endif 303#endif 304#if HAVE_UNISTD_H 305# include <unistd.h> 306#endif" 307 308ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA REGEX_O LIBOBJS LTLIBOBJS' 309ac_subst_files='' 310 311# Initialize some variables set by options. 312ac_init_help= 313ac_init_version=false 314# The variables have the same names as the options, with 315# dashes changed to underlines. 316cache_file=/dev/null 317exec_prefix=NONE 318no_create= 319no_recursion= 320prefix=NONE 321program_prefix=NONE 322program_suffix=NONE 323program_transform_name=s,x,x, 324silent= 325site= 326srcdir= 327verbose= 328x_includes=NONE 329x_libraries=NONE 330 331# Installation directory options. 332# These are left unexpanded so users can "make install exec_prefix=/foo" 333# and all the variables that are supposed to be based on exec_prefix 334# by default will actually change. 335# Use braces instead of parens because sh, perl, etc. also accept them. 336bindir='${exec_prefix}/bin' 337sbindir='${exec_prefix}/sbin' 338libexecdir='${exec_prefix}/libexec' 339datadir='${prefix}/share' 340sysconfdir='${prefix}/etc' 341sharedstatedir='${prefix}/com' 342localstatedir='${prefix}/var' 343libdir='${exec_prefix}/lib' 344includedir='${prefix}/include' 345oldincludedir='/usr/include' 346infodir='${prefix}/info' 347mandir='${prefix}/man' 348 349ac_prev= 350for ac_option 351do 352 # If the previous option needs an argument, assign it. 353 if test -n "$ac_prev"; then 354 eval "$ac_prev=\$ac_option" 355 ac_prev= 356 continue 357 fi 358 359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 360 361 # Accept the important Cygnus configure options, so we can diagnose typos. 362 363 case $ac_option in 364 365 -bindir | --bindir | --bindi | --bind | --bin | --bi) 366 ac_prev=bindir ;; 367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 368 bindir=$ac_optarg ;; 369 370 -build | --build | --buil | --bui | --bu) 371 ac_prev=build_alias ;; 372 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 373 build_alias=$ac_optarg ;; 374 375 -cache-file | --cache-file | --cache-fil | --cache-fi \ 376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 377 ac_prev=cache_file ;; 378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 380 cache_file=$ac_optarg ;; 381 382 --config-cache | -C) 383 cache_file=config.cache ;; 384 385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 386 ac_prev=datadir ;; 387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 388 | --da=*) 389 datadir=$ac_optarg ;; 390 391 -disable-* | --disable-*) 392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 393 # Reject names that are not valid shell variable names. 394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 396 { (exit 1); exit 1; }; } 397 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 398 eval "enable_$ac_feature=no" ;; 399 400 -enable-* | --enable-*) 401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 402 # Reject names that are not valid shell variable names. 403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 405 { (exit 1); exit 1; }; } 406 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 407 case $ac_option in 408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 409 *) ac_optarg=yes ;; 410 esac 411 eval "enable_$ac_feature='$ac_optarg'" ;; 412 413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 415 | --exec | --exe | --ex) 416 ac_prev=exec_prefix ;; 417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 419 | --exec=* | --exe=* | --ex=*) 420 exec_prefix=$ac_optarg ;; 421 422 -gas | --gas | --ga | --g) 423 # Obsolete; use --with-gas. 424 with_gas=yes ;; 425 426 -help | --help | --hel | --he | -h) 427 ac_init_help=long ;; 428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 429 ac_init_help=recursive ;; 430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 431 ac_init_help=short ;; 432 433 -host | --host | --hos | --ho) 434 ac_prev=host_alias ;; 435 -host=* | --host=* | --hos=* | --ho=*) 436 host_alias=$ac_optarg ;; 437 438 -includedir | --includedir | --includedi | --included | --include \ 439 | --includ | --inclu | --incl | --inc) 440 ac_prev=includedir ;; 441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 442 | --includ=* | --inclu=* | --incl=* | --inc=*) 443 includedir=$ac_optarg ;; 444 445 -infodir | --infodir | --infodi | --infod | --info | --inf) 446 ac_prev=infodir ;; 447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 448 infodir=$ac_optarg ;; 449 450 -libdir | --libdir | --libdi | --libd) 451 ac_prev=libdir ;; 452 -libdir=* | --libdir=* | --libdi=* | --libd=*) 453 libdir=$ac_optarg ;; 454 455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 456 | --libexe | --libex | --libe) 457 ac_prev=libexecdir ;; 458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 459 | --libexe=* | --libex=* | --libe=*) 460 libexecdir=$ac_optarg ;; 461 462 -localstatedir | --localstatedir | --localstatedi | --localstated \ 463 | --localstate | --localstat | --localsta | --localst \ 464 | --locals | --local | --loca | --loc | --lo) 465 ac_prev=localstatedir ;; 466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 469 localstatedir=$ac_optarg ;; 470 471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 472 ac_prev=mandir ;; 473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 474 mandir=$ac_optarg ;; 475 476 -nfp | --nfp | --nf) 477 # Obsolete; use --without-fp. 478 with_fp=no ;; 479 480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 481 | --no-cr | --no-c | -n) 482 no_create=yes ;; 483 484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 486 no_recursion=yes ;; 487 488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 490 | --oldin | --oldi | --old | --ol | --o) 491 ac_prev=oldincludedir ;; 492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 495 oldincludedir=$ac_optarg ;; 496 497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 498 ac_prev=prefix ;; 499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 500 prefix=$ac_optarg ;; 501 502 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 503 | --program-pre | --program-pr | --program-p) 504 ac_prev=program_prefix ;; 505 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 507 program_prefix=$ac_optarg ;; 508 509 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 510 | --program-suf | --program-su | --program-s) 511 ac_prev=program_suffix ;; 512 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 514 program_suffix=$ac_optarg ;; 515 516 -program-transform-name | --program-transform-name \ 517 | --program-transform-nam | --program-transform-na \ 518 | --program-transform-n | --program-transform- \ 519 | --program-transform | --program-transfor \ 520 | --program-transfo | --program-transf \ 521 | --program-trans | --program-tran \ 522 | --progr-tra | --program-tr | --program-t) 523 ac_prev=program_transform_name ;; 524 -program-transform-name=* | --program-transform-name=* \ 525 | --program-transform-nam=* | --program-transform-na=* \ 526 | --program-transform-n=* | --program-transform-=* \ 527 | --program-transform=* | --program-transfor=* \ 528 | --program-transfo=* | --program-transf=* \ 529 | --program-trans=* | --program-tran=* \ 530 | --progr-tra=* | --program-tr=* | --program-t=*) 531 program_transform_name=$ac_optarg ;; 532 533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 534 | -silent | --silent | --silen | --sile | --sil) 535 silent=yes ;; 536 537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 538 ac_prev=sbindir ;; 539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 540 | --sbi=* | --sb=*) 541 sbindir=$ac_optarg ;; 542 543 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 545 | --sharedst | --shareds | --shared | --share | --shar \ 546 | --sha | --sh) 547 ac_prev=sharedstatedir ;; 548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 551 | --sha=* | --sh=*) 552 sharedstatedir=$ac_optarg ;; 553 554 -site | --site | --sit) 555 ac_prev=site ;; 556 -site=* | --site=* | --sit=*) 557 site=$ac_optarg ;; 558 559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 560 ac_prev=srcdir ;; 561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 562 srcdir=$ac_optarg ;; 563 564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 565 | --syscon | --sysco | --sysc | --sys | --sy) 566 ac_prev=sysconfdir ;; 567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 569 sysconfdir=$ac_optarg ;; 570 571 -target | --target | --targe | --targ | --tar | --ta | --t) 572 ac_prev=target_alias ;; 573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 574 target_alias=$ac_optarg ;; 575 576 -v | -verbose | --verbose | --verbos | --verbo | --verb) 577 verbose=yes ;; 578 579 -version | --version | --versio | --versi | --vers | -V) 580 ac_init_version=: ;; 581 582 -with-* | --with-*) 583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 584 # Reject names that are not valid shell variable names. 585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 586 { echo "$as_me: error: invalid package name: $ac_package" >&2 587 { (exit 1); exit 1; }; } 588 ac_package=`echo $ac_package| sed 's/-/_/g'` 589 case $ac_option in 590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 591 *) ac_optarg=yes ;; 592 esac 593 eval "with_$ac_package='$ac_optarg'" ;; 594 595 -without-* | --without-*) 596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 597 # Reject names that are not valid shell variable names. 598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 599 { echo "$as_me: error: invalid package name: $ac_package" >&2 600 { (exit 1); exit 1; }; } 601 ac_package=`echo $ac_package | sed 's/-/_/g'` 602 eval "with_$ac_package=no" ;; 603 604 --x) 605 # Obsolete; use --with-x. 606 with_x=yes ;; 607 608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 609 | --x-incl | --x-inc | --x-in | --x-i) 610 ac_prev=x_includes ;; 611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 613 x_includes=$ac_optarg ;; 614 615 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 617 ac_prev=x_libraries ;; 618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 620 x_libraries=$ac_optarg ;; 621 622 -*) { echo "$as_me: error: unrecognized option: $ac_option 623Try \`$0 --help' for more information." >&2 624 { (exit 1); exit 1; }; } 625 ;; 626 627 *=*) 628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 629 # Reject names that are not valid shell variable names. 630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 632 { (exit 1); exit 1; }; } 633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 634 eval "$ac_envvar='$ac_optarg'" 635 export $ac_envvar ;; 636 637 *) 638 # FIXME: should be removed in autoconf 3.0. 639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 643 ;; 644 645 esac 646done 647 648if test -n "$ac_prev"; then 649 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 650 { echo "$as_me: error: missing argument to $ac_option" >&2 651 { (exit 1); exit 1; }; } 652fi 653 654# Be sure to have absolute paths. 655for ac_var in exec_prefix prefix 656do 657 eval ac_val=$`echo $ac_var` 658 case $ac_val in 659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 661 { (exit 1); exit 1; }; };; 662 esac 663done 664 665# Be sure to have absolute paths. 666for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 667 localstatedir libdir includedir oldincludedir infodir mandir 668do 669 eval ac_val=$`echo $ac_var` 670 case $ac_val in 671 [\\/$]* | ?:[\\/]* ) ;; 672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 673 { (exit 1); exit 1; }; };; 674 esac 675done 676 677# There might be people who depend on the old broken behavior: `$host' 678# used to hold the argument of --host etc. 679# FIXME: To remove some day. 680build=$build_alias 681host=$host_alias 682target=$target_alias 683 684# FIXME: To remove some day. 685if test "x$host_alias" != x; then 686 if test "x$build_alias" = x; then 687 cross_compiling=maybe 688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 689 If a cross compiler is detected then cross compile mode will be used." >&2 690 elif test "x$build_alias" != "x$host_alias"; then 691 cross_compiling=yes 692 fi 693fi 694 695ac_tool_prefix= 696test -n "$host_alias" && ac_tool_prefix=$host_alias- 697 698test "$silent" = yes && exec 6>/dev/null 699 700 701# Find the source files, if location was not specified. 702if test -z "$srcdir"; then 703 ac_srcdir_defaulted=yes 704 # Try the directory containing this script, then its parent. 705 ac_confdir=`(dirname "$0") 2>/dev/null || 706$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 707 X"$0" : 'X\(//\)[^/]' \| \ 708 X"$0" : 'X\(//\)$' \| \ 709 X"$0" : 'X\(/\)' \| \ 710 . : '\(.\)' 2>/dev/null || 711echo X"$0" | 712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 713 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 714 /^X\(\/\/\)$/{ s//\1/; q; } 715 /^X\(\/\).*/{ s//\1/; q; } 716 s/.*/./; q'` 717 srcdir=$ac_confdir 718 if test ! -r $srcdir/$ac_unique_file; then 719 srcdir=.. 720 fi 721else 722 ac_srcdir_defaulted=no 723fi 724if test ! -r $srcdir/$ac_unique_file; then 725 if test "$ac_srcdir_defaulted" = yes; then 726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 727 { (exit 1); exit 1; }; } 728 else 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 730 { (exit 1); exit 1; }; } 731 fi 732fi 733(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 735 { (exit 1); exit 1; }; } 736srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 737ac_env_build_alias_set=${build_alias+set} 738ac_env_build_alias_value=$build_alias 739ac_cv_env_build_alias_set=${build_alias+set} 740ac_cv_env_build_alias_value=$build_alias 741ac_env_host_alias_set=${host_alias+set} 742ac_env_host_alias_value=$host_alias 743ac_cv_env_host_alias_set=${host_alias+set} 744ac_cv_env_host_alias_value=$host_alias 745ac_env_target_alias_set=${target_alias+set} 746ac_env_target_alias_value=$target_alias 747ac_cv_env_target_alias_set=${target_alias+set} 748ac_cv_env_target_alias_value=$target_alias 749ac_env_CC_set=${CC+set} 750ac_env_CC_value=$CC 751ac_cv_env_CC_set=${CC+set} 752ac_cv_env_CC_value=$CC 753ac_env_CFLAGS_set=${CFLAGS+set} 754ac_env_CFLAGS_value=$CFLAGS 755ac_cv_env_CFLAGS_set=${CFLAGS+set} 756ac_cv_env_CFLAGS_value=$CFLAGS 757ac_env_LDFLAGS_set=${LDFLAGS+set} 758ac_env_LDFLAGS_value=$LDFLAGS 759ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 760ac_cv_env_LDFLAGS_value=$LDFLAGS 761ac_env_CPPFLAGS_set=${CPPFLAGS+set} 762ac_env_CPPFLAGS_value=$CPPFLAGS 763ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 764ac_cv_env_CPPFLAGS_value=$CPPFLAGS 765ac_env_CPP_set=${CPP+set} 766ac_env_CPP_value=$CPP 767ac_cv_env_CPP_set=${CPP+set} 768ac_cv_env_CPP_value=$CPP 769 770# 771# Report the --help message. 772# 773if test "$ac_init_help" = "long"; then 774 # Omit some internal or obsolete options to make the list less imposing. 775 # This message is too long to be a string in the A/UX 3.1 sh. 776 cat <<_ACEOF 777\`configure' configures less 1 to adapt to many kinds of systems. 778 779Usage: $0 [OPTION]... [VAR=VALUE]... 780 781To assign environment variables (e.g., CC, CFLAGS...), specify them as 782VAR=VALUE. See below for descriptions of some of the useful variables. 783 784Defaults for the options are specified in brackets. 785 786Configuration: 787 -h, --help display this help and exit 788 --help=short display options specific to this package 789 --help=recursive display the short help of all the included packages 790 -V, --version display version information and exit 791 -q, --quiet, --silent do not print \`checking...' messages 792 --cache-file=FILE cache test results in FILE [disabled] 793 -C, --config-cache alias for \`--cache-file=config.cache' 794 -n, --no-create do not create output files 795 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 796 797_ACEOF 798 799 cat <<_ACEOF 800Installation directories: 801 --prefix=PREFIX install architecture-independent files in PREFIX 802 [$ac_default_prefix] 803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 804 [PREFIX] 805 806By default, \`make install' will install all the files in 807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 808an installation prefix other than \`$ac_default_prefix' using \`--prefix', 809for instance \`--prefix=\$HOME'. 810 811For better control, use the options below. 812 813Fine tuning of the installation directories: 814 --bindir=DIR user executables [EPREFIX/bin] 815 --sbindir=DIR system admin executables [EPREFIX/sbin] 816 --libexecdir=DIR program executables [EPREFIX/libexec] 817 --datadir=DIR read-only architecture-independent data [PREFIX/share] 818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 820 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 821 --libdir=DIR object code libraries [EPREFIX/lib] 822 --includedir=DIR C header files [PREFIX/include] 823 --oldincludedir=DIR C header files for non-gcc [/usr/include] 824 --infodir=DIR info documentation [PREFIX/info] 825 --mandir=DIR man documentation [PREFIX/man] 826_ACEOF 827 828 cat <<\_ACEOF 829_ACEOF 830fi 831 832if test -n "$ac_init_help"; then 833 case $ac_init_help in 834 short | recursive ) echo "Configuration of less 1:";; 835 esac 836 cat <<\_ACEOF 837 838Optional Features: 839 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 840 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 841 --disable-largefile omit support for large files 842 843Optional Packages: 844 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 845 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 846 --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto 847 --with-editor=PROGRAM use PROGRAM as the default editor vi 848 849Some influential environment variables: 850 CC C compiler command 851 CFLAGS C compiler flags 852 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 853 nonstandard directory <lib dir> 854 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 855 headers in a nonstandard directory <include dir> 856 CPP C preprocessor 857 858Use these variables to override the choices made by `configure' or to help 859it to find libraries and programs with nonstandard names/locations. 860 861_ACEOF 862fi 863 864if test "$ac_init_help" = "recursive"; then 865 # If there are subdirs, report their specific --help. 866 ac_popdir=`pwd` 867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 868 test -d $ac_dir || continue 869 ac_builddir=. 870 871if test "$ac_dir" != .; then 872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 873 # A "../" for each directory in $ac_dir_suffix. 874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 875else 876 ac_dir_suffix= ac_top_builddir= 877fi 878 879case $srcdir in 880 .) # No --srcdir option. We are building in place. 881 ac_srcdir=. 882 if test -z "$ac_top_builddir"; then 883 ac_top_srcdir=. 884 else 885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 886 fi ;; 887 [\\/]* | ?:[\\/]* ) # Absolute path. 888 ac_srcdir=$srcdir$ac_dir_suffix; 889 ac_top_srcdir=$srcdir ;; 890 *) # Relative path. 891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 892 ac_top_srcdir=$ac_top_builddir$srcdir ;; 893esac 894# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 895# absolute. 896ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 897ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 898ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 899ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 900 901 cd $ac_dir 902 # Check for guested configure; otherwise get Cygnus style configure. 903 if test -f $ac_srcdir/configure.gnu; then 904 echo 905 $SHELL $ac_srcdir/configure.gnu --help=recursive 906 elif test -f $ac_srcdir/configure; then 907 echo 908 $SHELL $ac_srcdir/configure --help=recursive 909 elif test -f $ac_srcdir/configure.ac || 910 test -f $ac_srcdir/configure.in; then 911 echo 912 $ac_configure --help 913 else 914 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 915 fi 916 cd $ac_popdir 917 done 918fi 919 920test -n "$ac_init_help" && exit 0 921if $ac_init_version; then 922 cat <<\_ACEOF 923less configure 1 924generated by GNU Autoconf 2.54 925 926Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 927Free Software Foundation, Inc. 928This configure script is free software; the Free Software Foundation 929gives unlimited permission to copy, distribute and modify it. 930_ACEOF 931 exit 0 932fi 933exec 5>config.log 934cat >&5 <<_ACEOF 935This file contains any messages produced by compilers while 936running configure, to aid debugging if configure makes a mistake. 937 938It was created by less $as_me 1, which was 939generated by GNU Autoconf 2.54. Invocation command line was 940 941 $ $0 $@ 942 943_ACEOF 944{ 945cat <<_ASUNAME 946## --------- ## 947## Platform. ## 948## --------- ## 949 950hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 951uname -m = `(uname -m) 2>/dev/null || echo unknown` 952uname -r = `(uname -r) 2>/dev/null || echo unknown` 953uname -s = `(uname -s) 2>/dev/null || echo unknown` 954uname -v = `(uname -v) 2>/dev/null || echo unknown` 955 956/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 957/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 958 959/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 960/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 961/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 962hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 963/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 964/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 965/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 966 967_ASUNAME 968 969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 970for as_dir in $PATH 971do 972 IFS=$as_save_IFS 973 test -z "$as_dir" && as_dir=. 974 echo "PATH: $as_dir" 975done 976 977} >&5 978 979cat >&5 <<_ACEOF 980 981 982## ----------- ## 983## Core tests. ## 984## ----------- ## 985 986_ACEOF 987 988 989# Keep a trace of the command line. 990# Strip out --no-create and --no-recursion so they do not pile up. 991# Also quote any args containing shell meta-characters. 992ac_configure_args= 993ac_sep= 994for ac_arg 995do 996 case $ac_arg in 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n ) continue ;; 999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1001 continue ;; 1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1004 esac 1005 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1006 # Get rid of the leading space. 1007 ac_sep=" " 1008done 1009 1010# When interrupted or exit'd, cleanup temporary files, and complete 1011# config.log. We remove comments because anyway the quotes in there 1012# would cause problems or look ugly. 1013# WARNING: Be sure not to use single quotes in there, as some shells, 1014# such as our DU 5.0 friend, will then `close' the trap. 1015trap 'exit_status=$? 1016 # Save into config.log some information that might help in debugging. 1017 { 1018 echo 1019 1020 cat <<\_ASBOX 1021## ---------------- ## 1022## Cache variables. ## 1023## ---------------- ## 1024_ASBOX 1025 echo 1026 # The following way of writing the cache mishandles newlines in values, 1027{ 1028 (set) 2>&1 | 1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1030 *ac_space=\ *) 1031 sed -n \ 1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1034 ;; 1035 *) 1036 sed -n \ 1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1038 ;; 1039 esac; 1040} 1041 echo 1042 1043 cat <<\_ASBOX 1044## ----------------- ## 1045## Output variables. ## 1046## ----------------- ## 1047_ASBOX 1048 echo 1049 for ac_var in $ac_subst_vars 1050 do 1051 eval ac_val=$`echo $ac_var` 1052 echo "$ac_var='"'"'$ac_val'"'"'" 1053 done | sort 1054 echo 1055 1056 if test -n "$ac_subst_files"; then 1057 cat <<\_ASBOX 1058## ------------- ## 1059## Output files. ## 1060## ------------- ## 1061_ASBOX 1062 echo 1063 for ac_var in $ac_subst_files 1064 do 1065 eval ac_val=$`echo $ac_var` 1066 echo "$ac_var='"'"'$ac_val'"'"'" 1067 done | sort 1068 echo 1069 fi 1070 1071 if test -s confdefs.h; then 1072 cat <<\_ASBOX 1073## ----------- ## 1074## confdefs.h. ## 1075## ----------- ## 1076_ASBOX 1077 echo 1078 sed "/^$/d" confdefs.h | sort 1079 echo 1080 fi 1081 test "$ac_signal" != 0 && 1082 echo "$as_me: caught signal $ac_signal" 1083 echo "$as_me: exit $exit_status" 1084 } >&5 1085 rm -f core core.* *.core && 1086 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1087 exit $exit_status 1088 ' 0 1089for ac_signal in 1 2 13 15; do 1090 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1091done 1092ac_signal=0 1093 1094# confdefs.h avoids OS command line length limits that DEFS can exceed. 1095rm -rf conftest* confdefs.h 1096# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1097echo >confdefs.h 1098 1099# Predefined preprocessor variables. 1100 1101cat >>confdefs.h <<_ACEOF 1102#define PACKAGE_NAME "$PACKAGE_NAME" 1103_ACEOF 1104 1105 1106cat >>confdefs.h <<_ACEOF 1107#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1108_ACEOF 1109 1110 1111cat >>confdefs.h <<_ACEOF 1112#define PACKAGE_VERSION "$PACKAGE_VERSION" 1113_ACEOF 1114 1115 1116cat >>confdefs.h <<_ACEOF 1117#define PACKAGE_STRING "$PACKAGE_STRING" 1118_ACEOF 1119 1120 1121cat >>confdefs.h <<_ACEOF 1122#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1123_ACEOF 1124 1125 1126# Let the site file select an alternate cache file if it wants to. 1127# Prefer explicitly selected file to automatically selected ones. 1128if test -z "$CONFIG_SITE"; then 1129 if test "x$prefix" != xNONE; then 1130 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1131 else 1132 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1133 fi 1134fi 1135for ac_site_file in $CONFIG_SITE; do 1136 if test -r "$ac_site_file"; then 1137 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1138echo "$as_me: loading site script $ac_site_file" >&6;} 1139 sed 's/^/| /' "$ac_site_file" >&5 1140 . "$ac_site_file" 1141 fi 1142done 1143 1144if test -r "$cache_file"; then 1145 # Some versions of bash will fail to source /dev/null (special 1146 # files actually), so we avoid doing that. 1147 if test -f "$cache_file"; then 1148 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1149echo "$as_me: loading cache $cache_file" >&6;} 1150 case $cache_file in 1151 [\\/]* | ?:[\\/]* ) . $cache_file;; 1152 *) . ./$cache_file;; 1153 esac 1154 fi 1155else 1156 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1157echo "$as_me: creating cache $cache_file" >&6;} 1158 >$cache_file 1159fi 1160 1161# Check that the precious variables saved in the cache have kept the same 1162# value. 1163ac_cache_corrupted=false 1164for ac_var in `(set) 2>&1 | 1165 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1167 eval ac_new_set=\$ac_env_${ac_var}_set 1168 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1169 eval ac_new_val="\$ac_env_${ac_var}_value" 1170 case $ac_old_set,$ac_new_set in 1171 set,) 1172 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1173echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1174 ac_cache_corrupted=: ;; 1175 ,set) 1176 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1177echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1178 ac_cache_corrupted=: ;; 1179 ,);; 1180 *) 1181 if test "x$ac_old_val" != "x$ac_new_val"; then 1182 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1183echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1184 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1185echo "$as_me: former value: $ac_old_val" >&2;} 1186 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1187echo "$as_me: current value: $ac_new_val" >&2;} 1188 ac_cache_corrupted=: 1189 fi;; 1190 esac 1191 # Pass precious variables to config.status. 1192 if test "$ac_new_set" = set; then 1193 case $ac_new_val in 1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1195 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1196 *) ac_arg=$ac_var=$ac_new_val ;; 1197 esac 1198 case " $ac_configure_args " in 1199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1200 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1201 esac 1202 fi 1203done 1204if $ac_cache_corrupted; then 1205 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1206echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1207 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1208echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1209 { (exit 1); exit 1; }; } 1210fi 1211 1212ac_ext=c 1213ac_cpp='$CPP $CPPFLAGS' 1214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1216ac_compiler_gnu=$ac_cv_c_compiler_gnu 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 ac_config_headers="$ac_config_headers defines.h" 1246 1247 1248# Checks for programs. 1249ac_ext=c 1250ac_cpp='$CPP $CPPFLAGS' 1251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1253ac_compiler_gnu=$ac_cv_c_compiler_gnu 1254if test -n "$ac_tool_prefix"; then 1255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1256set dummy ${ac_tool_prefix}gcc; ac_word=$2 1257echo "$as_me:$LINENO: checking for $ac_word" >&5 1258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1259if test "${ac_cv_prog_CC+set}" = set; then 1260 echo $ECHO_N "(cached) $ECHO_C" >&6 1261else 1262 if test -n "$CC"; then 1263 ac_cv_prog_CC="$CC" # Let the user override the test. 1264else 1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1266for as_dir in $PATH 1267do 1268 IFS=$as_save_IFS 1269 test -z "$as_dir" && as_dir=. 1270 for ac_exec_ext in '' $ac_executable_extensions; do 1271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1272 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1274 break 2 1275 fi 1276done 1277done 1278 1279fi 1280fi 1281CC=$ac_cv_prog_CC 1282if test -n "$CC"; then 1283 echo "$as_me:$LINENO: result: $CC" >&5 1284echo "${ECHO_T}$CC" >&6 1285else 1286 echo "$as_me:$LINENO: result: no" >&5 1287echo "${ECHO_T}no" >&6 1288fi 1289 1290fi 1291if test -z "$ac_cv_prog_CC"; then 1292 ac_ct_CC=$CC 1293 # Extract the first word of "gcc", so it can be a program name with args. 1294set dummy gcc; ac_word=$2 1295echo "$as_me:$LINENO: checking for $ac_word" >&5 1296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1298 echo $ECHO_N "(cached) $ECHO_C" >&6 1299else 1300 if test -n "$ac_ct_CC"; then 1301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1302else 1303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1304for as_dir in $PATH 1305do 1306 IFS=$as_save_IFS 1307 test -z "$as_dir" && as_dir=. 1308 for ac_exec_ext in '' $ac_executable_extensions; do 1309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1310 ac_cv_prog_ac_ct_CC="gcc" 1311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1312 break 2 1313 fi 1314done 1315done 1316 1317fi 1318fi 1319ac_ct_CC=$ac_cv_prog_ac_ct_CC 1320if test -n "$ac_ct_CC"; then 1321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1322echo "${ECHO_T}$ac_ct_CC" >&6 1323else 1324 echo "$as_me:$LINENO: result: no" >&5 1325echo "${ECHO_T}no" >&6 1326fi 1327 1328 CC=$ac_ct_CC 1329else 1330 CC="$ac_cv_prog_CC" 1331fi 1332 1333if test -z "$CC"; then 1334 if test -n "$ac_tool_prefix"; then 1335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1336set dummy ${ac_tool_prefix}cc; ac_word=$2 1337echo "$as_me:$LINENO: checking for $ac_word" >&5 1338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1339if test "${ac_cv_prog_CC+set}" = set; then 1340 echo $ECHO_N "(cached) $ECHO_C" >&6 1341else 1342 if test -n "$CC"; then 1343 ac_cv_prog_CC="$CC" # Let the user override the test. 1344else 1345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1346for as_dir in $PATH 1347do 1348 IFS=$as_save_IFS 1349 test -z "$as_dir" && as_dir=. 1350 for ac_exec_ext in '' $ac_executable_extensions; do 1351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1352 ac_cv_prog_CC="${ac_tool_prefix}cc" 1353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1354 break 2 1355 fi 1356done 1357done 1358 1359fi 1360fi 1361CC=$ac_cv_prog_CC 1362if test -n "$CC"; then 1363 echo "$as_me:$LINENO: result: $CC" >&5 1364echo "${ECHO_T}$CC" >&6 1365else 1366 echo "$as_me:$LINENO: result: no" >&5 1367echo "${ECHO_T}no" >&6 1368fi 1369 1370fi 1371if test -z "$ac_cv_prog_CC"; then 1372 ac_ct_CC=$CC 1373 # Extract the first word of "cc", so it can be a program name with args. 1374set dummy cc; ac_word=$2 1375echo "$as_me:$LINENO: checking for $ac_word" >&5 1376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1378 echo $ECHO_N "(cached) $ECHO_C" >&6 1379else 1380 if test -n "$ac_ct_CC"; then 1381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1382else 1383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1384for as_dir in $PATH 1385do 1386 IFS=$as_save_IFS 1387 test -z "$as_dir" && as_dir=. 1388 for ac_exec_ext in '' $ac_executable_extensions; do 1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1390 ac_cv_prog_ac_ct_CC="cc" 1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1392 break 2 1393 fi 1394done 1395done 1396 1397fi 1398fi 1399ac_ct_CC=$ac_cv_prog_ac_ct_CC 1400if test -n "$ac_ct_CC"; then 1401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1402echo "${ECHO_T}$ac_ct_CC" >&6 1403else 1404 echo "$as_me:$LINENO: result: no" >&5 1405echo "${ECHO_T}no" >&6 1406fi 1407 1408 CC=$ac_ct_CC 1409else 1410 CC="$ac_cv_prog_CC" 1411fi 1412 1413fi 1414if test -z "$CC"; then 1415 # Extract the first word of "cc", so it can be a program name with args. 1416set dummy cc; ac_word=$2 1417echo "$as_me:$LINENO: checking for $ac_word" >&5 1418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1419if test "${ac_cv_prog_CC+set}" = set; then 1420 echo $ECHO_N "(cached) $ECHO_C" >&6 1421else 1422 if test -n "$CC"; then 1423 ac_cv_prog_CC="$CC" # Let the user override the test. 1424else 1425 ac_prog_rejected=no 1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1427for as_dir in $PATH 1428do 1429 IFS=$as_save_IFS 1430 test -z "$as_dir" && as_dir=. 1431 for ac_exec_ext in '' $ac_executable_extensions; do 1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1434 ac_prog_rejected=yes 1435 continue 1436 fi 1437 ac_cv_prog_CC="cc" 1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1439 break 2 1440 fi 1441done 1442done 1443 1444if test $ac_prog_rejected = yes; then 1445 # We found a bogon in the path, so make sure we never use it. 1446 set dummy $ac_cv_prog_CC 1447 shift 1448 if test $# != 0; then 1449 # We chose a different compiler from the bogus one. 1450 # However, it has the same basename, so the bogon will be chosen 1451 # first if we set CC to just the basename; use the full file name. 1452 shift 1453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1454 fi 1455fi 1456fi 1457fi 1458CC=$ac_cv_prog_CC 1459if test -n "$CC"; then 1460 echo "$as_me:$LINENO: result: $CC" >&5 1461echo "${ECHO_T}$CC" >&6 1462else 1463 echo "$as_me:$LINENO: result: no" >&5 1464echo "${ECHO_T}no" >&6 1465fi 1466 1467fi 1468if test -z "$CC"; then 1469 if test -n "$ac_tool_prefix"; then 1470 for ac_prog in cl 1471 do 1472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1473set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1474echo "$as_me:$LINENO: checking for $ac_word" >&5 1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1476if test "${ac_cv_prog_CC+set}" = set; then 1477 echo $ECHO_N "(cached) $ECHO_C" >&6 1478else 1479 if test -n "$CC"; then 1480 ac_cv_prog_CC="$CC" # Let the user override the test. 1481else 1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1483for as_dir in $PATH 1484do 1485 IFS=$as_save_IFS 1486 test -z "$as_dir" && as_dir=. 1487 for ac_exec_ext in '' $ac_executable_extensions; do 1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1491 break 2 1492 fi 1493done 1494done 1495 1496fi 1497fi 1498CC=$ac_cv_prog_CC 1499if test -n "$CC"; then 1500 echo "$as_me:$LINENO: result: $CC" >&5 1501echo "${ECHO_T}$CC" >&6 1502else 1503 echo "$as_me:$LINENO: result: no" >&5 1504echo "${ECHO_T}no" >&6 1505fi 1506 1507 test -n "$CC" && break 1508 done 1509fi 1510if test -z "$CC"; then 1511 ac_ct_CC=$CC 1512 for ac_prog in cl 1513do 1514 # Extract the first word of "$ac_prog", so it can be a program name with args. 1515set dummy $ac_prog; ac_word=$2 1516echo "$as_me:$LINENO: checking for $ac_word" >&5 1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1519 echo $ECHO_N "(cached) $ECHO_C" >&6 1520else 1521 if test -n "$ac_ct_CC"; then 1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1523else 1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1525for as_dir in $PATH 1526do 1527 IFS=$as_save_IFS 1528 test -z "$as_dir" && as_dir=. 1529 for ac_exec_ext in '' $ac_executable_extensions; do 1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1531 ac_cv_prog_ac_ct_CC="$ac_prog" 1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1533 break 2 1534 fi 1535done 1536done 1537 1538fi 1539fi 1540ac_ct_CC=$ac_cv_prog_ac_ct_CC 1541if test -n "$ac_ct_CC"; then 1542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1543echo "${ECHO_T}$ac_ct_CC" >&6 1544else 1545 echo "$as_me:$LINENO: result: no" >&5 1546echo "${ECHO_T}no" >&6 1547fi 1548 1549 test -n "$ac_ct_CC" && break 1550done 1551 1552 CC=$ac_ct_CC 1553fi 1554 1555fi 1556 1557 1558test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 1559echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 1560 { (exit 1); exit 1; }; } 1561 1562# Provide some information about the compiler. 1563echo "$as_me:$LINENO:" \ 1564 "checking for C compiler version" >&5 1565ac_compiler=`set X $ac_compile; echo $2` 1566{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1567 (eval $ac_compiler --version </dev/null >&5) 2>&5 1568 ac_status=$? 1569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1570 (exit $ac_status); } 1571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1572 (eval $ac_compiler -v </dev/null >&5) 2>&5 1573 ac_status=$? 1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1575 (exit $ac_status); } 1576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1577 (eval $ac_compiler -V </dev/null >&5) 2>&5 1578 ac_status=$? 1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1580 (exit $ac_status); } 1581 1582cat >conftest.$ac_ext <<_ACEOF 1583#line $LINENO "configure" 1584#include "confdefs.h" 1585 1586int 1587main () 1588{ 1589 1590 ; 1591 return 0; 1592} 1593_ACEOF 1594ac_clean_files_save=$ac_clean_files 1595ac_clean_files="$ac_clean_files a.out a.exe" 1596# Try to create an executable without -o first, disregard a.out. 1597# It will help us diagnose broken compilers, and finding out an intuition 1598# of exeext. 1599echo "$as_me:$LINENO: checking for C compiler default output" >&5 1600echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1601ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1602if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1603 (eval $ac_link_default) 2>&5 1604 ac_status=$? 1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1606 (exit $ac_status); }; then 1607 # Find the output, starting from the most likely. This scheme is 1608# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1609# resort. 1610 1611# Be careful to initialize this variable, since it used to be cached. 1612# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1613ac_cv_exeext= 1614for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do 1615 test -f "$ac_file" || continue 1616 case $ac_file in 1617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1618 a.out ) # We found the default executable, but exeext='' is most 1619 # certainly right. 1620 break;; 1621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1622 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1623 export ac_cv_exeext 1624 break;; 1625 * ) break;; 1626 esac 1627done 1628else 1629 echo "$as_me: failed program was:" >&5 1630cat conftest.$ac_ext >&5 1631{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1632check \`config.log' for details." >&5 1633echo "$as_me: error: C compiler cannot create executables 1634check \`config.log' for details." >&2;} 1635 { (exit 77); exit 77; }; } 1636fi 1637 1638ac_exeext=$ac_cv_exeext 1639echo "$as_me:$LINENO: result: $ac_file" >&5 1640echo "${ECHO_T}$ac_file" >&6 1641 1642# Check the compiler produces executables we can run. If not, either 1643# the compiler is broken, or we cross compile. 1644echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1645echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1646# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1647# If not cross compiling, check that we can run a simple program. 1648if test "$cross_compiling" != yes; then 1649 if { ac_try='./$ac_file' 1650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1651 (eval $ac_try) 2>&5 1652 ac_status=$? 1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1654 (exit $ac_status); }; }; then 1655 cross_compiling=no 1656 else 1657 if test "$cross_compiling" = maybe; then 1658 cross_compiling=yes 1659 else 1660 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1661If you meant to cross compile, use \`--host'." >&5 1662echo "$as_me: error: cannot run C compiled programs. 1663If you meant to cross compile, use \`--host'." >&2;} 1664 { (exit 1); exit 1; }; } 1665 fi 1666 fi 1667fi 1668echo "$as_me:$LINENO: result: yes" >&5 1669echo "${ECHO_T}yes" >&6 1670 1671rm -f a.out a.exe conftest$ac_cv_exeext 1672ac_clean_files=$ac_clean_files_save 1673# Check the compiler produces executables we can run. If not, either 1674# the compiler is broken, or we cross compile. 1675echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1676echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1677echo "$as_me:$LINENO: result: $cross_compiling" >&5 1678echo "${ECHO_T}$cross_compiling" >&6 1679 1680echo "$as_me:$LINENO: checking for suffix of executables" >&5 1681echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1683 (eval $ac_link) 2>&5 1684 ac_status=$? 1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1686 (exit $ac_status); }; then 1687 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1688# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1689# work properly (i.e., refer to `conftest.exe'), while it won't with 1690# `rm'. 1691for ac_file in conftest.exe conftest conftest.*; do 1692 test -f "$ac_file" || continue 1693 case $ac_file in 1694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1696 export ac_cv_exeext 1697 break;; 1698 * ) break;; 1699 esac 1700done 1701else 1702 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 1703echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 1704 { (exit 1); exit 1; }; } 1705fi 1706 1707rm -f conftest$ac_cv_exeext 1708echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1709echo "${ECHO_T}$ac_cv_exeext" >&6 1710 1711rm -f conftest.$ac_ext 1712EXEEXT=$ac_cv_exeext 1713ac_exeext=$EXEEXT 1714echo "$as_me:$LINENO: checking for suffix of object files" >&5 1715echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1716if test "${ac_cv_objext+set}" = set; then 1717 echo $ECHO_N "(cached) $ECHO_C" >&6 1718else 1719 cat >conftest.$ac_ext <<_ACEOF 1720#line $LINENO "configure" 1721#include "confdefs.h" 1722 1723int 1724main () 1725{ 1726 1727 ; 1728 return 0; 1729} 1730_ACEOF 1731rm -f conftest.o conftest.obj 1732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1733 (eval $ac_compile) 2>&5 1734 ac_status=$? 1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1736 (exit $ac_status); }; then 1737 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1738 case $ac_file in 1739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1741 break;; 1742 esac 1743done 1744else 1745 echo "$as_me: failed program was:" >&5 1746cat conftest.$ac_ext >&5 1747{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 1748echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 1749 { (exit 1); exit 1; }; } 1750fi 1751 1752rm -f conftest.$ac_cv_objext conftest.$ac_ext 1753fi 1754echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1755echo "${ECHO_T}$ac_cv_objext" >&6 1756OBJEXT=$ac_cv_objext 1757ac_objext=$OBJEXT 1758echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1759echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1760if test "${ac_cv_c_compiler_gnu+set}" = set; then 1761 echo $ECHO_N "(cached) $ECHO_C" >&6 1762else 1763 cat >conftest.$ac_ext <<_ACEOF 1764#line $LINENO "configure" 1765#include "confdefs.h" 1766 1767int 1768main () 1769{ 1770#ifndef __GNUC__ 1771 choke me 1772#endif 1773 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778rm -f conftest.$ac_objext 1779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1780 (eval $ac_compile) 2>&5 1781 ac_status=$? 1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1783 (exit $ac_status); } && 1784 { ac_try='test -s conftest.$ac_objext' 1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1786 (eval $ac_try) 2>&5 1787 ac_status=$? 1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1789 (exit $ac_status); }; }; then 1790 ac_compiler_gnu=yes 1791else 1792 echo "$as_me: failed program was:" >&5 1793cat conftest.$ac_ext >&5 1794ac_compiler_gnu=no 1795fi 1796rm -f conftest.$ac_objext conftest.$ac_ext 1797ac_cv_c_compiler_gnu=$ac_compiler_gnu 1798 1799fi 1800echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1801echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1802GCC=`test $ac_compiler_gnu = yes && echo yes` 1803ac_test_CFLAGS=${CFLAGS+set} 1804ac_save_CFLAGS=$CFLAGS 1805CFLAGS="-g" 1806echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1807echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1808if test "${ac_cv_prog_cc_g+set}" = set; then 1809 echo $ECHO_N "(cached) $ECHO_C" >&6 1810else 1811 cat >conftest.$ac_ext <<_ACEOF 1812#line $LINENO "configure" 1813#include "confdefs.h" 1814 1815int 1816main () 1817{ 1818 1819 ; 1820 return 0; 1821} 1822_ACEOF 1823rm -f conftest.$ac_objext 1824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1825 (eval $ac_compile) 2>&5 1826 ac_status=$? 1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1828 (exit $ac_status); } && 1829 { ac_try='test -s conftest.$ac_objext' 1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1831 (eval $ac_try) 2>&5 1832 ac_status=$? 1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1834 (exit $ac_status); }; }; then 1835 ac_cv_prog_cc_g=yes 1836else 1837 echo "$as_me: failed program was:" >&5 1838cat conftest.$ac_ext >&5 1839ac_cv_prog_cc_g=no 1840fi 1841rm -f conftest.$ac_objext conftest.$ac_ext 1842fi 1843echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1844echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1845if test "$ac_test_CFLAGS" = set; then 1846 CFLAGS=$ac_save_CFLAGS 1847elif test $ac_cv_prog_cc_g = yes; then 1848 if test "$GCC" = yes; then 1849 CFLAGS="-g -O2" 1850 else 1851 CFLAGS="-g" 1852 fi 1853else 1854 if test "$GCC" = yes; then 1855 CFLAGS="-O2" 1856 else 1857 CFLAGS= 1858 fi 1859fi 1860echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1861echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1862if test "${ac_cv_prog_cc_stdc+set}" = set; then 1863 echo $ECHO_N "(cached) $ECHO_C" >&6 1864else 1865 ac_cv_prog_cc_stdc=no 1866ac_save_CC=$CC 1867cat >conftest.$ac_ext <<_ACEOF 1868#line $LINENO "configure" 1869#include "confdefs.h" 1870#include <stdarg.h> 1871#include <stdio.h> 1872#include <sys/types.h> 1873#include <sys/stat.h> 1874/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1875struct buf { int x; }; 1876FILE * (*rcsopen) (struct buf *, struct stat *, int); 1877static char *e (p, i) 1878 char **p; 1879 int i; 1880{ 1881 return p[i]; 1882} 1883static char *f (char * (*g) (char **, int), char **p, ...) 1884{ 1885 char *s; 1886 va_list v; 1887 va_start (v,p); 1888 s = g (p, va_arg (v,int)); 1889 va_end (v); 1890 return s; 1891} 1892int test (int i, double x); 1893struct s1 {int (*f) (int a);}; 1894struct s2 {int (*f) (double a);}; 1895int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1896int argc; 1897char **argv; 1898int 1899main () 1900{ 1901return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1902 ; 1903 return 0; 1904} 1905_ACEOF 1906# Don't try gcc -ansi; that turns off useful extensions and 1907# breaks some systems' header files. 1908# AIX -qlanglvl=ansi 1909# Ultrix and OSF/1 -std1 1910# HP-UX 10.20 and later -Ae 1911# HP-UX older versions -Aa -D_HPUX_SOURCE 1912# SVR4 -Xc -D__EXTENSIONS__ 1913for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1914do 1915 CC="$ac_save_CC $ac_arg" 1916 rm -f conftest.$ac_objext 1917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1918 (eval $ac_compile) 2>&5 1919 ac_status=$? 1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1921 (exit $ac_status); } && 1922 { ac_try='test -s conftest.$ac_objext' 1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1924 (eval $ac_try) 2>&5 1925 ac_status=$? 1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1927 (exit $ac_status); }; }; then 1928 ac_cv_prog_cc_stdc=$ac_arg 1929break 1930else 1931 echo "$as_me: failed program was:" >&5 1932cat conftest.$ac_ext >&5 1933fi 1934rm -f conftest.$ac_objext 1935done 1936rm -f conftest.$ac_ext conftest.$ac_objext 1937CC=$ac_save_CC 1938 1939fi 1940 1941case "x$ac_cv_prog_cc_stdc" in 1942 x|xno) 1943 echo "$as_me:$LINENO: result: none needed" >&5 1944echo "${ECHO_T}none needed" >&6 ;; 1945 *) 1946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 1947echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1948 CC="$CC $ac_cv_prog_cc_stdc" ;; 1949esac 1950 1951# Some people use a C++ compiler to compile C. Since we use `exit', 1952# in C++ we need to declare it. In case someone uses the same compiler 1953# for both compiling C and C++ we need to have the C++ compiler decide 1954# the declaration of exit, since it's the most demanding environment. 1955cat >conftest.$ac_ext <<_ACEOF 1956#ifndef __cplusplus 1957 choke me 1958#endif 1959_ACEOF 1960rm -f conftest.$ac_objext 1961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1962 (eval $ac_compile) 2>&5 1963 ac_status=$? 1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1965 (exit $ac_status); } && 1966 { ac_try='test -s conftest.$ac_objext' 1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1968 (eval $ac_try) 2>&5 1969 ac_status=$? 1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1971 (exit $ac_status); }; }; then 1972 for ac_declaration in \ 1973 ''\ 1974 '#include <stdlib.h>' \ 1975 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1976 'extern "C" void std::exit (int); using std::exit;' \ 1977 'extern "C" void exit (int) throw ();' \ 1978 'extern "C" void exit (int);' \ 1979 'void exit (int);' 1980do 1981 cat >conftest.$ac_ext <<_ACEOF 1982#line $LINENO "configure" 1983#include "confdefs.h" 1984#include <stdlib.h> 1985$ac_declaration 1986int 1987main () 1988{ 1989exit (42); 1990 ; 1991 return 0; 1992} 1993_ACEOF 1994rm -f conftest.$ac_objext 1995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1996 (eval $ac_compile) 2>&5 1997 ac_status=$? 1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1999 (exit $ac_status); } && 2000 { ac_try='test -s conftest.$ac_objext' 2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2002 (eval $ac_try) 2>&5 2003 ac_status=$? 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2005 (exit $ac_status); }; }; then 2006 : 2007else 2008 echo "$as_me: failed program was:" >&5 2009cat conftest.$ac_ext >&5 2010continue 2011fi 2012rm -f conftest.$ac_objext conftest.$ac_ext 2013 cat >conftest.$ac_ext <<_ACEOF 2014#line $LINENO "configure" 2015#include "confdefs.h" 2016$ac_declaration 2017int 2018main () 2019{ 2020exit (42); 2021 ; 2022 return 0; 2023} 2024_ACEOF 2025rm -f conftest.$ac_objext 2026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2027 (eval $ac_compile) 2>&5 2028 ac_status=$? 2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2030 (exit $ac_status); } && 2031 { ac_try='test -s conftest.$ac_objext' 2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2033 (eval $ac_try) 2>&5 2034 ac_status=$? 2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2036 (exit $ac_status); }; }; then 2037 break 2038else 2039 echo "$as_me: failed program was:" >&5 2040cat conftest.$ac_ext >&5 2041fi 2042rm -f conftest.$ac_objext conftest.$ac_ext 2043done 2044rm -f conftest* 2045if test -n "$ac_declaration"; then 2046 echo '#ifdef __cplusplus' >>confdefs.h 2047 echo $ac_declaration >>confdefs.h 2048 echo '#endif' >>confdefs.h 2049fi 2050 2051else 2052 echo "$as_me: failed program was:" >&5 2053cat conftest.$ac_ext >&5 2054fi 2055rm -f conftest.$ac_objext conftest.$ac_ext 2056ac_ext=c 2057ac_cpp='$CPP $CPPFLAGS' 2058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2060ac_compiler_gnu=$ac_cv_c_compiler_gnu 2061 2062 2063echo "$as_me:$LINENO: checking for library containing strerror" >&5 2064echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2065if test "${ac_cv_search_strerror+set}" = set; then 2066 echo $ECHO_N "(cached) $ECHO_C" >&6 2067else 2068 ac_func_search_save_LIBS=$LIBS 2069ac_cv_search_strerror=no 2070cat >conftest.$ac_ext <<_ACEOF 2071#line $LINENO "configure" 2072#include "confdefs.h" 2073 2074/* Override any gcc2 internal prototype to avoid an error. */ 2075#ifdef __cplusplus 2076extern "C" 2077#endif 2078/* We use char because int might match the return type of a gcc2 2079 builtin and then its argument prototype would still apply. */ 2080char strerror (); 2081int 2082main () 2083{ 2084strerror (); 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089rm -f conftest.$ac_objext conftest$ac_exeext 2090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2091 (eval $ac_link) 2>&5 2092 ac_status=$? 2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2094 (exit $ac_status); } && 2095 { ac_try='test -s conftest$ac_exeext' 2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2097 (eval $ac_try) 2>&5 2098 ac_status=$? 2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2100 (exit $ac_status); }; }; then 2101 ac_cv_search_strerror="none required" 2102else 2103 echo "$as_me: failed program was:" >&5 2104cat conftest.$ac_ext >&5 2105fi 2106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2107if test "$ac_cv_search_strerror" = no; then 2108 for ac_lib in cposix; do 2109 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2110 cat >conftest.$ac_ext <<_ACEOF 2111#line $LINENO "configure" 2112#include "confdefs.h" 2113 2114/* Override any gcc2 internal prototype to avoid an error. */ 2115#ifdef __cplusplus 2116extern "C" 2117#endif 2118/* We use char because int might match the return type of a gcc2 2119 builtin and then its argument prototype would still apply. */ 2120char strerror (); 2121int 2122main () 2123{ 2124strerror (); 2125 ; 2126 return 0; 2127} 2128_ACEOF 2129rm -f conftest.$ac_objext conftest$ac_exeext 2130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2131 (eval $ac_link) 2>&5 2132 ac_status=$? 2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2134 (exit $ac_status); } && 2135 { ac_try='test -s conftest$ac_exeext' 2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2137 (eval $ac_try) 2>&5 2138 ac_status=$? 2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2140 (exit $ac_status); }; }; then 2141 ac_cv_search_strerror="-l$ac_lib" 2142break 2143else 2144 echo "$as_me: failed program was:" >&5 2145cat conftest.$ac_ext >&5 2146fi 2147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2148 done 2149fi 2150LIBS=$ac_func_search_save_LIBS 2151fi 2152echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2153echo "${ECHO_T}$ac_cv_search_strerror" >&6 2154if test "$ac_cv_search_strerror" != no; then 2155 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2156 2157fi 2158 2159ac_ext=c 2160ac_cpp='$CPP $CPPFLAGS' 2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2163ac_compiler_gnu=$ac_cv_c_compiler_gnu 2164echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2165echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2166# On Suns, sometimes $CPP names a directory. 2167if test -n "$CPP" && test -d "$CPP"; then 2168 CPP= 2169fi 2170if test -z "$CPP"; then 2171 if test "${ac_cv_prog_CPP+set}" = set; then 2172 echo $ECHO_N "(cached) $ECHO_C" >&6 2173else 2174 # Double quotes because CPP needs to be expanded 2175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2176 do 2177 ac_preproc_ok=false 2178for ac_c_preproc_warn_flag in '' yes 2179do 2180 # Use a header file that comes with gcc, so configuring glibc 2181 # with a fresh cross-compiler works. 2182 # On the NeXT, cc -E runs the code through the compiler's parser, 2183 # not just through cpp. "Syntax error" is here to catch this case. 2184 cat >conftest.$ac_ext <<_ACEOF 2185#line $LINENO "configure" 2186#include "confdefs.h" 2187#include <assert.h> 2188 Syntax error 2189_ACEOF 2190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2192 ac_status=$? 2193 grep -v '^ *+' conftest.er1 >conftest.err 2194 rm -f conftest.er1 2195 cat conftest.err >&5 2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2197 (exit $ac_status); } >/dev/null; then 2198 if test -s conftest.err; then 2199 ac_cpp_err=$ac_c_preproc_warn_flag 2200 else 2201 ac_cpp_err= 2202 fi 2203else 2204 ac_cpp_err=yes 2205fi 2206if test -z "$ac_cpp_err"; then 2207 : 2208else 2209 echo "$as_me: failed program was:" >&5 2210 cat conftest.$ac_ext >&5 2211 # Broken: fails on valid input. 2212continue 2213fi 2214rm -f conftest.err conftest.$ac_ext 2215 2216 # OK, works on sane cases. Now check whether non-existent headers 2217 # can be detected and how. 2218 cat >conftest.$ac_ext <<_ACEOF 2219#line $LINENO "configure" 2220#include "confdefs.h" 2221#include <ac_nonexistent.h> 2222_ACEOF 2223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2225 ac_status=$? 2226 grep -v '^ *+' conftest.er1 >conftest.err 2227 rm -f conftest.er1 2228 cat conftest.err >&5 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2230 (exit $ac_status); } >/dev/null; then 2231 if test -s conftest.err; then 2232 ac_cpp_err=$ac_c_preproc_warn_flag 2233 else 2234 ac_cpp_err= 2235 fi 2236else 2237 ac_cpp_err=yes 2238fi 2239if test -z "$ac_cpp_err"; then 2240 # Broken: success on invalid input. 2241continue 2242else 2243 echo "$as_me: failed program was:" >&5 2244 cat conftest.$ac_ext >&5 2245 # Passes both tests. 2246ac_preproc_ok=: 2247break 2248fi 2249rm -f conftest.err conftest.$ac_ext 2250 2251done 2252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2253rm -f conftest.err conftest.$ac_ext 2254if $ac_preproc_ok; then 2255 break 2256fi 2257 2258 done 2259 ac_cv_prog_CPP=$CPP 2260 2261fi 2262 CPP=$ac_cv_prog_CPP 2263else 2264 ac_cv_prog_CPP=$CPP 2265fi 2266echo "$as_me:$LINENO: result: $CPP" >&5 2267echo "${ECHO_T}$CPP" >&6 2268ac_preproc_ok=false 2269for ac_c_preproc_warn_flag in '' yes 2270do 2271 # Use a header file that comes with gcc, so configuring glibc 2272 # with a fresh cross-compiler works. 2273 # On the NeXT, cc -E runs the code through the compiler's parser, 2274 # not just through cpp. "Syntax error" is here to catch this case. 2275 cat >conftest.$ac_ext <<_ACEOF 2276#line $LINENO "configure" 2277#include "confdefs.h" 2278#include <assert.h> 2279 Syntax error 2280_ACEOF 2281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2283 ac_status=$? 2284 grep -v '^ *+' conftest.er1 >conftest.err 2285 rm -f conftest.er1 2286 cat conftest.err >&5 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); } >/dev/null; then 2289 if test -s conftest.err; then 2290 ac_cpp_err=$ac_c_preproc_warn_flag 2291 else 2292 ac_cpp_err= 2293 fi 2294else 2295 ac_cpp_err=yes 2296fi 2297if test -z "$ac_cpp_err"; then 2298 : 2299else 2300 echo "$as_me: failed program was:" >&5 2301 cat conftest.$ac_ext >&5 2302 # Broken: fails on valid input. 2303continue 2304fi 2305rm -f conftest.err conftest.$ac_ext 2306 2307 # OK, works on sane cases. Now check whether non-existent headers 2308 # can be detected and how. 2309 cat >conftest.$ac_ext <<_ACEOF 2310#line $LINENO "configure" 2311#include "confdefs.h" 2312#include <ac_nonexistent.h> 2313_ACEOF 2314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2316 ac_status=$? 2317 grep -v '^ *+' conftest.er1 >conftest.err 2318 rm -f conftest.er1 2319 cat conftest.err >&5 2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2321 (exit $ac_status); } >/dev/null; then 2322 if test -s conftest.err; then 2323 ac_cpp_err=$ac_c_preproc_warn_flag 2324 else 2325 ac_cpp_err= 2326 fi 2327else 2328 ac_cpp_err=yes 2329fi 2330if test -z "$ac_cpp_err"; then 2331 # Broken: success on invalid input. 2332continue 2333else 2334 echo "$as_me: failed program was:" >&5 2335 cat conftest.$ac_ext >&5 2336 # Passes both tests. 2337ac_preproc_ok=: 2338break 2339fi 2340rm -f conftest.err conftest.$ac_ext 2341 2342done 2343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2344rm -f conftest.err conftest.$ac_ext 2345if $ac_preproc_ok; then 2346 : 2347else 2348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 2349echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2350 { (exit 1); exit 1; }; } 2351fi 2352 2353ac_ext=c 2354ac_cpp='$CPP $CPPFLAGS' 2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2357ac_compiler_gnu=$ac_cv_c_compiler_gnu 2358 2359 2360echo "$as_me:$LINENO: checking for egrep" >&5 2361echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2362if test "${ac_cv_prog_egrep+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2366 then ac_cv_prog_egrep='grep -E' 2367 else ac_cv_prog_egrep='egrep' 2368 fi 2369fi 2370echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2371echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2372 EGREP=$ac_cv_prog_egrep 2373 2374 2375if test $ac_cv_c_compiler_gnu = yes; then 2376 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 2377echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2378if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2379 echo $ECHO_N "(cached) $ECHO_C" >&6 2380else 2381 ac_pattern="Autoconf.*'x'" 2382 cat >conftest.$ac_ext <<_ACEOF 2383#line $LINENO "configure" 2384#include "confdefs.h" 2385#include <sgtty.h> 2386Autoconf TIOCGETP 2387_ACEOF 2388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2389 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2390 ac_cv_prog_gcc_traditional=yes 2391else 2392 ac_cv_prog_gcc_traditional=no 2393fi 2394rm -f conftest* 2395 2396 2397 if test $ac_cv_prog_gcc_traditional = no; then 2398 cat >conftest.$ac_ext <<_ACEOF 2399#line $LINENO "configure" 2400#include "confdefs.h" 2401#include <termio.h> 2402Autoconf TCGETA 2403_ACEOF 2404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2405 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2406 ac_cv_prog_gcc_traditional=yes 2407fi 2408rm -f conftest* 2409 2410 fi 2411fi 2412echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 2413echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2414 if test $ac_cv_prog_gcc_traditional = yes; then 2415 CC="$CC -traditional" 2416 fi 2417fi 2418 2419ac_aux_dir= 2420for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2421 if test -f $ac_dir/install-sh; then 2422 ac_aux_dir=$ac_dir 2423 ac_install_sh="$ac_aux_dir/install-sh -c" 2424 break 2425 elif test -f $ac_dir/install.sh; then 2426 ac_aux_dir=$ac_dir 2427 ac_install_sh="$ac_aux_dir/install.sh -c" 2428 break 2429 elif test -f $ac_dir/shtool; then 2430 ac_aux_dir=$ac_dir 2431 ac_install_sh="$ac_aux_dir/shtool install -c" 2432 break 2433 fi 2434done 2435if test -z "$ac_aux_dir"; then 2436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2437echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2438 { (exit 1); exit 1; }; } 2439fi 2440ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2441ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2442ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2443 2444# Find a good install program. We prefer a C program (faster), 2445# so one script is as good as another. But avoid the broken or 2446# incompatible versions: 2447# SysV /etc/install, /usr/sbin/install 2448# SunOS /usr/etc/install 2449# IRIX /sbin/install 2450# AIX /bin/install 2451# AmigaOS /C/install, which installs bootblocks on floppy discs 2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2455# ./install, which can be erroneously created by make from ./install.sh. 2456echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2457echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2458if test -z "$INSTALL"; then 2459if test "${ac_cv_path_install+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461else 2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 # Account for people who put trailing slashes in PATH elements. 2468case $as_dir/ in 2469 ./ | .// | /cC/* | \ 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2471 /usr/ucb/* ) ;; 2472 *) 2473 # OSF1 and SCO ODT 3.0 have their own names for install. 2474 # Don't use installbsd from OSF since it installs stuff as root 2475 # by default. 2476 for ac_prog in ginstall scoinst install; do 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2479 if test $ac_prog = install && 2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2481 # AIX install. It has an incompatible calling convention. 2482 : 2483 elif test $ac_prog = install && 2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2485 # program-specific install script used by HP pwplus--don't use. 2486 : 2487 else 2488 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2489 break 3 2490 fi 2491 fi 2492 done 2493 done 2494 ;; 2495esac 2496done 2497 2498 2499fi 2500 if test "${ac_cv_path_install+set}" = set; then 2501 INSTALL=$ac_cv_path_install 2502 else 2503 # As a last resort, use the slow shell script. We don't cache a 2504 # path for INSTALL within a source directory, because that will 2505 # break other packages using the cache if that directory is 2506 # removed, or if the path is relative. 2507 INSTALL=$ac_install_sh 2508 fi 2509fi 2510echo "$as_me:$LINENO: result: $INSTALL" >&5 2511echo "${ECHO_T}$INSTALL" >&6 2512 2513# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2514# It thinks the first close brace ends the variable substitution. 2515test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2516 2517test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2518 2519test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2520 2521 2522# Checks for compilation model. 2523# Check whether --enable-largefile or --disable-largefile was given. 2524if test "${enable_largefile+set}" = set; then 2525 enableval="$enable_largefile" 2526 2527fi; 2528if test "$enable_largefile" != no; then 2529 2530 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 2531echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 2532if test "${ac_cv_sys_largefile_CC+set}" = set; then 2533 echo $ECHO_N "(cached) $ECHO_C" >&6 2534else 2535 ac_cv_sys_largefile_CC=no 2536 if test "$GCC" != yes; then 2537 ac_save_CC=$CC 2538 while :; do 2539 # IRIX 6.2 and later do not support large files by default, 2540 # so use the C compiler's -n32 option if that helps. 2541 cat >conftest.$ac_ext <<_ACEOF 2542#line $LINENO "configure" 2543#include "confdefs.h" 2544#include <sys/types.h> 2545 /* Check that off_t can represent 2**63 - 1 correctly. 2546 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2547 since some C++ compilers masquerading as C compilers 2548 incorrectly reject 9223372036854775807. */ 2549#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2551 && LARGE_OFF_T % 2147483647 == 1) 2552 ? 1 : -1]; 2553int 2554main () 2555{ 2556 2557 ; 2558 return 0; 2559} 2560_ACEOF 2561 rm -f conftest.$ac_objext 2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2563 (eval $ac_compile) 2>&5 2564 ac_status=$? 2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2566 (exit $ac_status); } && 2567 { ac_try='test -s conftest.$ac_objext' 2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2569 (eval $ac_try) 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); }; }; then 2573 break 2574else 2575 echo "$as_me: failed program was:" >&5 2576cat conftest.$ac_ext >&5 2577fi 2578rm -f conftest.$ac_objext 2579 CC="$CC -n32" 2580 rm -f conftest.$ac_objext 2581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2582 (eval $ac_compile) 2>&5 2583 ac_status=$? 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); } && 2586 { ac_try='test -s conftest.$ac_objext' 2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2588 (eval $ac_try) 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; }; then 2592 ac_cv_sys_largefile_CC=' -n32'; break 2593else 2594 echo "$as_me: failed program was:" >&5 2595cat conftest.$ac_ext >&5 2596fi 2597rm -f conftest.$ac_objext 2598 break 2599 done 2600 CC=$ac_save_CC 2601 rm -f conftest.$ac_ext 2602 fi 2603fi 2604echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 2605echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 2606 if test "$ac_cv_sys_largefile_CC" != no; then 2607 CC=$CC$ac_cv_sys_largefile_CC 2608 fi 2609 2610 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2611echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 2612if test "${ac_cv_sys_file_offset_bits+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614else 2615 while :; do 2616 ac_cv_sys_file_offset_bits=no 2617 cat >conftest.$ac_ext <<_ACEOF 2618#line $LINENO "configure" 2619#include "confdefs.h" 2620#include <sys/types.h> 2621 /* Check that off_t can represent 2**63 - 1 correctly. 2622 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2623 since some C++ compilers masquerading as C compilers 2624 incorrectly reject 9223372036854775807. */ 2625#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2627 && LARGE_OFF_T % 2147483647 == 1) 2628 ? 1 : -1]; 2629int 2630main () 2631{ 2632 2633 ; 2634 return 0; 2635} 2636_ACEOF 2637rm -f conftest.$ac_objext 2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2639 (eval $ac_compile) 2>&5 2640 ac_status=$? 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2642 (exit $ac_status); } && 2643 { ac_try='test -s conftest.$ac_objext' 2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2645 (eval $ac_try) 2>&5 2646 ac_status=$? 2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2648 (exit $ac_status); }; }; then 2649 break 2650else 2651 echo "$as_me: failed program was:" >&5 2652cat conftest.$ac_ext >&5 2653fi 2654rm -f conftest.$ac_objext conftest.$ac_ext 2655 cat >conftest.$ac_ext <<_ACEOF 2656#line $LINENO "configure" 2657#include "confdefs.h" 2658#define _FILE_OFFSET_BITS 64 2659#include <sys/types.h> 2660 /* Check that off_t can represent 2**63 - 1 correctly. 2661 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2662 since some C++ compilers masquerading as C compilers 2663 incorrectly reject 9223372036854775807. */ 2664#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2666 && LARGE_OFF_T % 2147483647 == 1) 2667 ? 1 : -1]; 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>&5 2679 ac_status=$? 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 (exit $ac_status); } && 2682 { ac_try='test -s conftest.$ac_objext' 2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2684 (eval $ac_try) 2>&5 2685 ac_status=$? 2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2687 (exit $ac_status); }; }; then 2688 ac_cv_sys_file_offset_bits=64; break 2689else 2690 echo "$as_me: failed program was:" >&5 2691cat conftest.$ac_ext >&5 2692fi 2693rm -f conftest.$ac_objext conftest.$ac_ext 2694 break 2695done 2696fi 2697echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 2698echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 2699if test "$ac_cv_sys_file_offset_bits" != no; then 2700 2701cat >>confdefs.h <<_ACEOF 2702#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2703_ACEOF 2704 2705fi 2706rm -f conftest* 2707 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 2708echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 2709if test "${ac_cv_sys_large_files+set}" = set; then 2710 echo $ECHO_N "(cached) $ECHO_C" >&6 2711else 2712 while :; do 2713 ac_cv_sys_large_files=no 2714 cat >conftest.$ac_ext <<_ACEOF 2715#line $LINENO "configure" 2716#include "confdefs.h" 2717#include <sys/types.h> 2718 /* Check that off_t can represent 2**63 - 1 correctly. 2719 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2720 since some C++ compilers masquerading as C compilers 2721 incorrectly reject 9223372036854775807. */ 2722#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2724 && LARGE_OFF_T % 2147483647 == 1) 2725 ? 1 : -1]; 2726int 2727main () 2728{ 2729 2730 ; 2731 return 0; 2732} 2733_ACEOF 2734rm -f conftest.$ac_objext 2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2736 (eval $ac_compile) 2>&5 2737 ac_status=$? 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); } && 2740 { ac_try='test -s conftest.$ac_objext' 2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2742 (eval $ac_try) 2>&5 2743 ac_status=$? 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); }; }; then 2746 break 2747else 2748 echo "$as_me: failed program was:" >&5 2749cat conftest.$ac_ext >&5 2750fi 2751rm -f conftest.$ac_objext conftest.$ac_ext 2752 cat >conftest.$ac_ext <<_ACEOF 2753#line $LINENO "configure" 2754#include "confdefs.h" 2755#define _LARGE_FILES 1 2756#include <sys/types.h> 2757 /* Check that off_t can represent 2**63 - 1 correctly. 2758 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2759 since some C++ compilers masquerading as C compilers 2760 incorrectly reject 9223372036854775807. */ 2761#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2763 && LARGE_OFF_T % 2147483647 == 1) 2764 ? 1 : -1]; 2765int 2766main () 2767{ 2768 2769 ; 2770 return 0; 2771} 2772_ACEOF 2773rm -f conftest.$ac_objext 2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2775 (eval $ac_compile) 2>&5 2776 ac_status=$? 2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2778 (exit $ac_status); } && 2779 { ac_try='test -s conftest.$ac_objext' 2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2781 (eval $ac_try) 2>&5 2782 ac_status=$? 2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2784 (exit $ac_status); }; }; then 2785 ac_cv_sys_large_files=1; break 2786else 2787 echo "$as_me: failed program was:" >&5 2788cat conftest.$ac_ext >&5 2789fi 2790rm -f conftest.$ac_objext conftest.$ac_ext 2791 break 2792done 2793fi 2794echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 2795echo "${ECHO_T}$ac_cv_sys_large_files" >&6 2796if test "$ac_cv_sys_large_files" != no; then 2797 2798cat >>confdefs.h <<_ACEOF 2799#define _LARGE_FILES $ac_cv_sys_large_files 2800_ACEOF 2801 2802fi 2803rm -f conftest* 2804fi 2805 2806 2807# Checks for general libraries. 2808echo "$as_me:$LINENO: checking for initscr in -lxcurses" >&5 2809echo $ECHO_N "checking for initscr in -lxcurses... $ECHO_C" >&6 2810if test "${ac_cv_lib_xcurses_initscr+set}" = set; then 2811 echo $ECHO_N "(cached) $ECHO_C" >&6 2812else 2813 ac_check_lib_save_LIBS=$LIBS 2814LIBS="-lxcurses $LIBS" 2815cat >conftest.$ac_ext <<_ACEOF 2816#line $LINENO "configure" 2817#include "confdefs.h" 2818 2819/* Override any gcc2 internal prototype to avoid an error. */ 2820#ifdef __cplusplus 2821extern "C" 2822#endif 2823/* We use char because int might match the return type of a gcc2 2824 builtin and then its argument prototype would still apply. */ 2825char initscr (); 2826int 2827main () 2828{ 2829initscr (); 2830 ; 2831 return 0; 2832} 2833_ACEOF 2834rm -f conftest.$ac_objext conftest$ac_exeext 2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2836 (eval $ac_link) 2>&5 2837 ac_status=$? 2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2839 (exit $ac_status); } && 2840 { ac_try='test -s conftest$ac_exeext' 2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2842 (eval $ac_try) 2>&5 2843 ac_status=$? 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); }; }; then 2846 ac_cv_lib_xcurses_initscr=yes 2847else 2848 echo "$as_me: failed program was:" >&5 2849cat conftest.$ac_ext >&5 2850ac_cv_lib_xcurses_initscr=no 2851fi 2852rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2853LIBS=$ac_check_lib_save_LIBS 2854fi 2855echo "$as_me:$LINENO: result: $ac_cv_lib_xcurses_initscr" >&5 2856echo "${ECHO_T}$ac_cv_lib_xcurses_initscr" >&6 2857if test $ac_cv_lib_xcurses_initscr = yes; then 2858 have_xcurses=yes 2859else 2860 have_xcurses=no 2861fi 2862 2863echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 2864echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6 2865if test "${ac_cv_lib_ncurses_initscr+set}" = set; then 2866 echo $ECHO_N "(cached) $ECHO_C" >&6 2867else 2868 ac_check_lib_save_LIBS=$LIBS 2869LIBS="-lncurses $LIBS" 2870cat >conftest.$ac_ext <<_ACEOF 2871#line $LINENO "configure" 2872#include "confdefs.h" 2873 2874/* Override any gcc2 internal prototype to avoid an error. */ 2875#ifdef __cplusplus 2876extern "C" 2877#endif 2878/* We use char because int might match the return type of a gcc2 2879 builtin and then its argument prototype would still apply. */ 2880char initscr (); 2881int 2882main () 2883{ 2884initscr (); 2885 ; 2886 return 0; 2887} 2888_ACEOF 2889rm -f conftest.$ac_objext conftest$ac_exeext 2890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2891 (eval $ac_link) 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); } && 2895 { ac_try='test -s conftest$ac_exeext' 2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2897 (eval $ac_try) 2>&5 2898 ac_status=$? 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); }; }; then 2901 ac_cv_lib_ncurses_initscr=yes 2902else 2903 echo "$as_me: failed program was:" >&5 2904cat conftest.$ac_ext >&5 2905ac_cv_lib_ncurses_initscr=no 2906fi 2907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2908LIBS=$ac_check_lib_save_LIBS 2909fi 2910echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 2911echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6 2912if test $ac_cv_lib_ncurses_initscr = yes; then 2913 have_ncurses=yes 2914else 2915 have_ncurses=no 2916fi 2917 2918echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5 2919echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6 2920if test "${ac_cv_lib_curses_initscr+set}" = set; then 2921 echo $ECHO_N "(cached) $ECHO_C" >&6 2922else 2923 ac_check_lib_save_LIBS=$LIBS 2924LIBS="-lcurses $LIBS" 2925cat >conftest.$ac_ext <<_ACEOF 2926#line $LINENO "configure" 2927#include "confdefs.h" 2928 2929/* Override any gcc2 internal prototype to avoid an error. */ 2930#ifdef __cplusplus 2931extern "C" 2932#endif 2933/* We use char because int might match the return type of a gcc2 2934 builtin and then its argument prototype would still apply. */ 2935char initscr (); 2936int 2937main () 2938{ 2939initscr (); 2940 ; 2941 return 0; 2942} 2943_ACEOF 2944rm -f conftest.$ac_objext conftest$ac_exeext 2945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2946 (eval $ac_link) 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); } && 2950 { ac_try='test -s conftest$ac_exeext' 2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2952 (eval $ac_try) 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; }; then 2956 ac_cv_lib_curses_initscr=yes 2957else 2958 echo "$as_me: failed program was:" >&5 2959cat conftest.$ac_ext >&5 2960ac_cv_lib_curses_initscr=no 2961fi 2962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2963LIBS=$ac_check_lib_save_LIBS 2964fi 2965echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5 2966echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6 2967if test $ac_cv_lib_curses_initscr = yes; then 2968 have_curses=yes 2969else 2970 have_curses=no 2971fi 2972 2973echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 2974echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 2975if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 2976 echo $ECHO_N "(cached) $ECHO_C" >&6 2977else 2978 ac_check_lib_save_LIBS=$LIBS 2979LIBS="-ltermcap $LIBS" 2980cat >conftest.$ac_ext <<_ACEOF 2981#line $LINENO "configure" 2982#include "confdefs.h" 2983 2984/* Override any gcc2 internal prototype to avoid an error. */ 2985#ifdef __cplusplus 2986extern "C" 2987#endif 2988/* We use char because int might match the return type of a gcc2 2989 builtin and then its argument prototype would still apply. */ 2990char tgetent (); 2991int 2992main () 2993{ 2994tgetent (); 2995 ; 2996 return 0; 2997} 2998_ACEOF 2999rm -f conftest.$ac_objext conftest$ac_exeext 3000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3001 (eval $ac_link) 2>&5 3002 ac_status=$? 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); } && 3005 { ac_try='test -s conftest$ac_exeext' 3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3007 (eval $ac_try) 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; }; then 3011 ac_cv_lib_termcap_tgetent=yes 3012else 3013 echo "$as_me: failed program was:" >&5 3014cat conftest.$ac_ext >&5 3015ac_cv_lib_termcap_tgetent=no 3016fi 3017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3018LIBS=$ac_check_lib_save_LIBS 3019fi 3020echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 3021echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 3022if test $ac_cv_lib_termcap_tgetent = yes; then 3023 have_termcap=yes 3024else 3025 have_termcap=no 3026fi 3027 3028echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5 3029echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6 3030if test "${ac_cv_lib_termlib_tgetent+set}" = set; then 3031 echo $ECHO_N "(cached) $ECHO_C" >&6 3032else 3033 ac_check_lib_save_LIBS=$LIBS 3034LIBS="-ltermlib $LIBS" 3035cat >conftest.$ac_ext <<_ACEOF 3036#line $LINENO "configure" 3037#include "confdefs.h" 3038 3039/* Override any gcc2 internal prototype to avoid an error. */ 3040#ifdef __cplusplus 3041extern "C" 3042#endif 3043/* We use char because int might match the return type of a gcc2 3044 builtin and then its argument prototype would still apply. */ 3045char tgetent (); 3046int 3047main () 3048{ 3049tgetent (); 3050 ; 3051 return 0; 3052} 3053_ACEOF 3054rm -f conftest.$ac_objext conftest$ac_exeext 3055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3056 (eval $ac_link) 2>&5 3057 ac_status=$? 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } && 3060 { ac_try='test -s conftest$ac_exeext' 3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3062 (eval $ac_try) 2>&5 3063 ac_status=$? 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); }; }; then 3066 ac_cv_lib_termlib_tgetent=yes 3067else 3068 echo "$as_me: failed program was:" >&5 3069cat conftest.$ac_ext >&5 3070ac_cv_lib_termlib_tgetent=no 3071fi 3072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3073LIBS=$ac_check_lib_save_LIBS 3074fi 3075echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5 3076echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6 3077if test $ac_cv_lib_termlib_tgetent = yes; then 3078 have_termlib=yes 3079else 3080 have_termlib=no 3081fi 3082 3083# Regular expressions (regcmp) are in -lgen on Solaris 2, 3084# and in -lintl on SCO Unix. 3085 3086echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5 3087echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6 3088if test "${ac_cv_lib_gen_regcmp+set}" = set; then 3089 echo $ECHO_N "(cached) $ECHO_C" >&6 3090else 3091 ac_check_lib_save_LIBS=$LIBS 3092LIBS="-lgen $LIBS" 3093cat >conftest.$ac_ext <<_ACEOF 3094#line $LINENO "configure" 3095#include "confdefs.h" 3096 3097/* Override any gcc2 internal prototype to avoid an error. */ 3098#ifdef __cplusplus 3099extern "C" 3100#endif 3101/* We use char because int might match the return type of a gcc2 3102 builtin and then its argument prototype would still apply. */ 3103char regcmp (); 3104int 3105main () 3106{ 3107regcmp (); 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112rm -f conftest.$ac_objext conftest$ac_exeext 3113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3114 (eval $ac_link) 2>&5 3115 ac_status=$? 3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3117 (exit $ac_status); } && 3118 { ac_try='test -s conftest$ac_exeext' 3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3120 (eval $ac_try) 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); }; }; then 3124 ac_cv_lib_gen_regcmp=yes 3125else 3126 echo "$as_me: failed program was:" >&5 3127cat conftest.$ac_ext >&5 3128ac_cv_lib_gen_regcmp=no 3129fi 3130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3131LIBS=$ac_check_lib_save_LIBS 3132fi 3133echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5 3134echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6 3135if test $ac_cv_lib_gen_regcmp = yes; then 3136 cat >>confdefs.h <<_ACEOF 3137#define HAVE_LIBGEN 1 3138_ACEOF 3139 3140 LIBS="-lgen $LIBS" 3141 3142fi 3143 3144 3145echo "$as_me:$LINENO: checking for regcmp in -lintl" >&5 3146echo $ECHO_N "checking for regcmp in -lintl... $ECHO_C" >&6 3147if test "${ac_cv_lib_intl_regcmp+set}" = set; then 3148 echo $ECHO_N "(cached) $ECHO_C" >&6 3149else 3150 ac_check_lib_save_LIBS=$LIBS 3151LIBS="-lintl $LIBS" 3152cat >conftest.$ac_ext <<_ACEOF 3153#line $LINENO "configure" 3154#include "confdefs.h" 3155 3156/* Override any gcc2 internal prototype to avoid an error. */ 3157#ifdef __cplusplus 3158extern "C" 3159#endif 3160/* We use char because int might match the return type of a gcc2 3161 builtin and then its argument prototype would still apply. */ 3162char regcmp (); 3163int 3164main () 3165{ 3166regcmp (); 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171rm -f conftest.$ac_objext conftest$ac_exeext 3172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3173 (eval $ac_link) 2>&5 3174 ac_status=$? 3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3176 (exit $ac_status); } && 3177 { ac_try='test -s conftest$ac_exeext' 3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3179 (eval $ac_try) 2>&5 3180 ac_status=$? 3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; }; then 3183 ac_cv_lib_intl_regcmp=yes 3184else 3185 echo "$as_me: failed program was:" >&5 3186cat conftest.$ac_ext >&5 3187ac_cv_lib_intl_regcmp=no 3188fi 3189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3190LIBS=$ac_check_lib_save_LIBS 3191fi 3192echo "$as_me:$LINENO: result: $ac_cv_lib_intl_regcmp" >&5 3193echo "${ECHO_T}$ac_cv_lib_intl_regcmp" >&6 3194if test $ac_cv_lib_intl_regcmp = yes; then 3195 cat >>confdefs.h <<_ACEOF 3196#define HAVE_LIBINTL 1 3197_ACEOF 3198 3199 LIBS="-lintl $LIBS" 3200 3201fi 3202 3203 3204echo "$as_me:$LINENO: checking for regcmp in -lPW" >&5 3205echo $ECHO_N "checking for regcmp in -lPW... $ECHO_C" >&6 3206if test "${ac_cv_lib_PW_regcmp+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208else 3209 ac_check_lib_save_LIBS=$LIBS 3210LIBS="-lPW $LIBS" 3211cat >conftest.$ac_ext <<_ACEOF 3212#line $LINENO "configure" 3213#include "confdefs.h" 3214 3215/* Override any gcc2 internal prototype to avoid an error. */ 3216#ifdef __cplusplus 3217extern "C" 3218#endif 3219/* We use char because int might match the return type of a gcc2 3220 builtin and then its argument prototype would still apply. */ 3221char regcmp (); 3222int 3223main () 3224{ 3225regcmp (); 3226 ; 3227 return 0; 3228} 3229_ACEOF 3230rm -f conftest.$ac_objext conftest$ac_exeext 3231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3232 (eval $ac_link) 2>&5 3233 ac_status=$? 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); } && 3236 { ac_try='test -s conftest$ac_exeext' 3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3238 (eval $ac_try) 2>&5 3239 ac_status=$? 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); }; }; then 3242 ac_cv_lib_PW_regcmp=yes 3243else 3244 echo "$as_me: failed program was:" >&5 3245cat conftest.$ac_ext >&5 3246ac_cv_lib_PW_regcmp=no 3247fi 3248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3249LIBS=$ac_check_lib_save_LIBS 3250fi 3251echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regcmp" >&5 3252echo "${ECHO_T}$ac_cv_lib_PW_regcmp" >&6 3253if test $ac_cv_lib_PW_regcmp = yes; then 3254 cat >>confdefs.h <<_ACEOF 3255#define HAVE_LIBPW 1 3256_ACEOF 3257 3258 LIBS="-lPW $LIBS" 3259 3260fi 3261 3262 3263# Checks for terminal libraries 3264echo "$as_me:$LINENO: checking for working terminal libraries" >&5 3265echo $ECHO_N "checking for working terminal libraries... $ECHO_C" >&6 3266TERMLIBS= 3267 3268# Check for systems where curses is broken. 3269curses_broken=0 3270if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then 3271if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then 3272 curses_broken=1 3273fi 3274if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then 3275 curses_broken=1 3276fi 3277fi 3278 3279if test $curses_broken = 0; then 3280# -- Try xcurses. 3281if test "x$TERMLIBS" = x; then 3282 if test $have_xcurses = yes; then 3283 TERMLIBS="-lxcurses" 3284 SAVE_LIBS=$LIBS 3285 LIBS="$LIBS $TERMLIBS" 3286 cat >conftest.$ac_ext <<_ACEOF 3287#line $LINENO "configure" 3288#include "confdefs.h" 3289 3290int 3291main () 3292{ 3293tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 3294 ; 3295 return 0; 3296} 3297_ACEOF 3298rm -f conftest.$ac_objext conftest$ac_exeext 3299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3300 (eval $ac_link) 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } && 3304 { ac_try='test -s conftest$ac_exeext' 3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3306 (eval $ac_try) 2>&5 3307 ac_status=$? 3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); }; }; then 3310 termok=yes 3311else 3312 echo "$as_me: failed program was:" >&5 3313cat conftest.$ac_ext >&5 3314termok=no 3315fi 3316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3317 LIBS=$SAVE_LIBS 3318 if test $termok = no; then TERMLIBS=""; fi 3319 fi 3320fi 3321 3322# -- Try ncurses. 3323if test "x$TERMLIBS" = x; then 3324 if test $have_ncurses = yes; then 3325 TERMLIBS="-lncurses" 3326 SAVE_LIBS=$LIBS 3327 LIBS="$LIBS $TERMLIBS" 3328 cat >conftest.$ac_ext <<_ACEOF 3329#line $LINENO "configure" 3330#include "confdefs.h" 3331 3332int 3333main () 3334{ 3335tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340rm -f conftest.$ac_objext conftest$ac_exeext 3341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3342 (eval $ac_link) 2>&5 3343 ac_status=$? 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); } && 3346 { ac_try='test -s conftest$ac_exeext' 3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3348 (eval $ac_try) 2>&5 3349 ac_status=$? 3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3351 (exit $ac_status); }; }; then 3352 termok=yes 3353else 3354 echo "$as_me: failed program was:" >&5 3355cat conftest.$ac_ext >&5 3356termok=no 3357fi 3358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3359 LIBS=$SAVE_LIBS 3360 if test $termok = no; then TERMLIBS=""; fi 3361 fi 3362fi 3363 3364# -- Try curses. 3365if test "x$TERMLIBS" = x; then 3366 if test $have_curses = yes; then 3367 TERMLIBS="-lcurses" 3368 SAVE_LIBS=$LIBS 3369 LIBS="$LIBS $TERMLIBS" 3370 cat >conftest.$ac_ext <<_ACEOF 3371#line $LINENO "configure" 3372#include "confdefs.h" 3373 3374int 3375main () 3376{ 3377tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382rm -f conftest.$ac_objext conftest$ac_exeext 3383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3384 (eval $ac_link) 2>&5 3385 ac_status=$? 3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387 (exit $ac_status); } && 3388 { ac_try='test -s conftest$ac_exeext' 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 termok=yes 3395else 3396 echo "$as_me: failed program was:" >&5 3397cat conftest.$ac_ext >&5 3398termok=no 3399fi 3400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3401 LIBS=$SAVE_LIBS 3402 if test $termok = no; then TERMLIBS=""; fi 3403 fi 3404fi 3405 3406# -- Try curses & termcap. 3407if test "x$TERMLIBS" = x; then 3408 if test $have_curses = yes; then 3409 if test $have_termcap = yes; then 3410 TERMLIBS="-lcurses -ltermcap" 3411 SAVE_LIBS=$LIBS 3412 LIBS="$LIBS $TERMLIBS" 3413 cat >conftest.$ac_ext <<_ACEOF 3414#line $LINENO "configure" 3415#include "confdefs.h" 3416 3417int 3418main () 3419{ 3420tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425rm -f conftest.$ac_objext conftest$ac_exeext 3426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3427 (eval $ac_link) 2>&5 3428 ac_status=$? 3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3430 (exit $ac_status); } && 3431 { ac_try='test -s conftest$ac_exeext' 3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3433 (eval $ac_try) 2>&5 3434 ac_status=$? 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); }; }; then 3437 termok=yes 3438else 3439 echo "$as_me: failed program was:" >&5 3440cat conftest.$ac_ext >&5 3441termok=no 3442fi 3443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3444 LIBS=$SAVE_LIBS 3445 if test $termok = no; then TERMLIBS=""; fi 3446 fi 3447 fi 3448fi 3449fi 3450 3451# -- Try termcap. 3452if test "x$TERMLIBS" = x; then 3453 if test $have_termcap = yes; then 3454 TERMLIBS="-ltermcap" 3455 SAVE_LIBS=$LIBS 3456 LIBS="$LIBS $TERMLIBS" 3457 cat >conftest.$ac_ext <<_ACEOF 3458#line $LINENO "configure" 3459#include "confdefs.h" 3460 3461int 3462main () 3463{ 3464tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 3465 ; 3466 return 0; 3467} 3468_ACEOF 3469rm -f conftest.$ac_objext conftest$ac_exeext 3470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3471 (eval $ac_link) 2>&5 3472 ac_status=$? 3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3474 (exit $ac_status); } && 3475 { ac_try='test -s conftest$ac_exeext' 3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3477 (eval $ac_try) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; }; then 3481 termok=yes 3482else 3483 echo "$as_me: failed program was:" >&5 3484cat conftest.$ac_ext >&5 3485termok=no 3486fi 3487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3488 LIBS=$SAVE_LIBS 3489 if test $termok = no; then TERMLIBS=""; fi 3490 fi 3491fi 3492 3493# -- Try termlib. 3494if test "x$TERMLIBS" = x; then 3495 if test $have_termlib = yes; then 3496 TERMLIBS="-lcurses -ltermlib" 3497 SAVE_LIBS=$LIBS 3498 LIBS="$LIBS $TERMLIBS" 3499 cat >conftest.$ac_ext <<_ACEOF 3500#line $LINENO "configure" 3501#include "confdefs.h" 3502 3503int 3504main () 3505{ 3506tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511rm -f conftest.$ac_objext conftest$ac_exeext 3512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3513 (eval $ac_link) 2>&5 3514 ac_status=$? 3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3516 (exit $ac_status); } && 3517 { ac_try='test -s conftest$ac_exeext' 3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3519 (eval $ac_try) 2>&5 3520 ac_status=$? 3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3522 (exit $ac_status); }; }; then 3523 termok=yes 3524else 3525 echo "$as_me: failed program was:" >&5 3526cat conftest.$ac_ext >&5 3527termok=no 3528fi 3529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3530 LIBS=$SAVE_LIBS 3531 if test $termok = no; then TERMLIBS=""; fi 3532 fi 3533fi 3534 3535if test "x$TERMLIBS" = x; then 3536 echo "$as_me:$LINENO: result: Cannot find terminal libraries - configure failed" >&5 3537echo "${ECHO_T}Cannot find terminal libraries - configure failed" >&6 3538 exit 1 3539fi 3540echo "$as_me:$LINENO: result: using $TERMLIBS" >&5 3541echo "${ECHO_T}using $TERMLIBS" >&6 3542LIBS="$LIBS $TERMLIBS" 3543 3544# Checks for header files. 3545echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3546echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3547if test "${ac_cv_header_stdc+set}" = set; then 3548 echo $ECHO_N "(cached) $ECHO_C" >&6 3549else 3550 cat >conftest.$ac_ext <<_ACEOF 3551#line $LINENO "configure" 3552#include "confdefs.h" 3553#include <stdlib.h> 3554#include <stdarg.h> 3555#include <string.h> 3556#include <float.h> 3557 3558_ACEOF 3559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3561 ac_status=$? 3562 grep -v '^ *+' conftest.er1 >conftest.err 3563 rm -f conftest.er1 3564 cat conftest.err >&5 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); } >/dev/null; then 3567 if test -s conftest.err; then 3568 ac_cpp_err=$ac_c_preproc_warn_flag 3569 else 3570 ac_cpp_err= 3571 fi 3572else 3573 ac_cpp_err=yes 3574fi 3575if test -z "$ac_cpp_err"; then 3576 ac_cv_header_stdc=yes 3577else 3578 echo "$as_me: failed program was:" >&5 3579 cat conftest.$ac_ext >&5 3580 ac_cv_header_stdc=no 3581fi 3582rm -f conftest.err conftest.$ac_ext 3583 3584if test $ac_cv_header_stdc = yes; then 3585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3586 cat >conftest.$ac_ext <<_ACEOF 3587#line $LINENO "configure" 3588#include "confdefs.h" 3589#include <string.h> 3590 3591_ACEOF 3592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3593 $EGREP "memchr" >/dev/null 2>&1; then 3594 : 3595else 3596 ac_cv_header_stdc=no 3597fi 3598rm -f conftest* 3599 3600fi 3601 3602if test $ac_cv_header_stdc = yes; then 3603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3604 cat >conftest.$ac_ext <<_ACEOF 3605#line $LINENO "configure" 3606#include "confdefs.h" 3607#include <stdlib.h> 3608 3609_ACEOF 3610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3611 $EGREP "free" >/dev/null 2>&1; then 3612 : 3613else 3614 ac_cv_header_stdc=no 3615fi 3616rm -f conftest* 3617 3618fi 3619 3620if test $ac_cv_header_stdc = yes; then 3621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3622 if test "$cross_compiling" = yes; then 3623 : 3624else 3625 cat >conftest.$ac_ext <<_ACEOF 3626#line $LINENO "configure" 3627#include "confdefs.h" 3628#include <ctype.h> 3629#if ((' ' & 0x0FF) == 0x020) 3630# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3631# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3632#else 3633# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3634 || ('j' <= (c) && (c) <= 'r') \ 3635 || ('s' <= (c) && (c) <= 'z')) 3636# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3637#endif 3638 3639#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3640int 3641main () 3642{ 3643 int i; 3644 for (i = 0; i < 256; i++) 3645 if (XOR (islower (i), ISLOWER (i)) 3646 || toupper (i) != TOUPPER (i)) 3647 exit(2); 3648 exit (0); 3649} 3650_ACEOF 3651rm -f conftest$ac_exeext 3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3653 (eval $ac_link) 2>&5 3654 ac_status=$? 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3658 (eval $ac_try) 2>&5 3659 ac_status=$? 3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3661 (exit $ac_status); }; }; then 3662 : 3663else 3664 echo "$as_me: program exited with status $ac_status" >&5 3665echo "$as_me: failed program was:" >&5 3666cat conftest.$ac_ext >&5 3667( exit $ac_status ) 3668ac_cv_header_stdc=no 3669fi 3670rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3671fi 3672fi 3673fi 3674echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3675echo "${ECHO_T}$ac_cv_header_stdc" >&6 3676if test $ac_cv_header_stdc = yes; then 3677 3678cat >>confdefs.h <<\_ACEOF 3679#define STDC_HEADERS 1 3680_ACEOF 3681 3682fi 3683 3684# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3695 inttypes.h stdint.h unistd.h 3696do 3697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3698echo "$as_me:$LINENO: checking for $ac_header" >&5 3699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3700if eval "test \"\${$as_ac_Header+set}\" = set"; then 3701 echo $ECHO_N "(cached) $ECHO_C" >&6 3702else 3703 cat >conftest.$ac_ext <<_ACEOF 3704#line $LINENO "configure" 3705#include "confdefs.h" 3706$ac_includes_default 3707 3708#include <$ac_header> 3709_ACEOF 3710rm -f conftest.$ac_objext 3711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3712 (eval $ac_compile) 2>&5 3713 ac_status=$? 3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); } && 3716 { ac_try='test -s conftest.$ac_objext' 3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3718 (eval $ac_try) 2>&5 3719 ac_status=$? 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); }; }; then 3722 eval "$as_ac_Header=yes" 3723else 3724 echo "$as_me: failed program was:" >&5 3725cat conftest.$ac_ext >&5 3726eval "$as_ac_Header=no" 3727fi 3728rm -f conftest.$ac_objext conftest.$ac_ext 3729fi 3730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3732if test `eval echo '${'$as_ac_Header'}'` = yes; then 3733 cat >>confdefs.h <<_ACEOF 3734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3735_ACEOF 3736 3737fi 3738 3739done 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h 3759do 3760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3761if eval "test \"\${$as_ac_Header+set}\" = set"; then 3762 echo "$as_me:$LINENO: checking for $ac_header" >&5 3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3764if eval "test \"\${$as_ac_Header+set}\" = set"; then 3765 echo $ECHO_N "(cached) $ECHO_C" >&6 3766fi 3767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3769else 3770 # Is the header compilable? 3771echo "$as_me:$LINENO: checking $ac_header usability" >&5 3772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3773cat >conftest.$ac_ext <<_ACEOF 3774#line $LINENO "configure" 3775#include "confdefs.h" 3776$ac_includes_default 3777#include <$ac_header> 3778_ACEOF 3779rm -f conftest.$ac_objext 3780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3781 (eval $ac_compile) 2>&5 3782 ac_status=$? 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); } && 3785 { ac_try='test -s conftest.$ac_objext' 3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3787 (eval $ac_try) 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); }; }; then 3791 ac_header_compiler=yes 3792else 3793 echo "$as_me: failed program was:" >&5 3794cat conftest.$ac_ext >&5 3795ac_header_compiler=no 3796fi 3797rm -f conftest.$ac_objext conftest.$ac_ext 3798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3799echo "${ECHO_T}$ac_header_compiler" >&6 3800 3801# Is the header present? 3802echo "$as_me:$LINENO: checking $ac_header presence" >&5 3803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3804cat >conftest.$ac_ext <<_ACEOF 3805#line $LINENO "configure" 3806#include "confdefs.h" 3807#include <$ac_header> 3808_ACEOF 3809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3811 ac_status=$? 3812 grep -v '^ *+' conftest.er1 >conftest.err 3813 rm -f conftest.er1 3814 cat conftest.err >&5 3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3816 (exit $ac_status); } >/dev/null; then 3817 if test -s conftest.err; then 3818 ac_cpp_err=$ac_c_preproc_warn_flag 3819 else 3820 ac_cpp_err= 3821 fi 3822else 3823 ac_cpp_err=yes 3824fi 3825if test -z "$ac_cpp_err"; then 3826 ac_header_preproc=yes 3827else 3828 echo "$as_me: failed program was:" >&5 3829 cat conftest.$ac_ext >&5 3830 ac_header_preproc=no 3831fi 3832rm -f conftest.err conftest.$ac_ext 3833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3834echo "${ECHO_T}$ac_header_preproc" >&6 3835 3836# So? What about this header? 3837case $ac_header_compiler:$ac_header_preproc in 3838 yes:no ) 3839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3843 no:yes ) 3844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3850esac 3851echo "$as_me:$LINENO: checking for $ac_header" >&5 3852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3853if eval "test \"\${$as_ac_Header+set}\" = set"; then 3854 echo $ECHO_N "(cached) $ECHO_C" >&6 3855else 3856 eval "$as_ac_Header=$ac_header_preproc" 3857fi 3858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3860 3861fi 3862if test `eval echo '${'$as_ac_Header'}'` = yes; then 3863 cat >>confdefs.h <<_ACEOF 3864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3865_ACEOF 3866 3867fi 3868 3869done 3870 3871 3872# Checks for typedefs, structures, and compiler characteristics. 3873echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 3874echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 3875if test "${ac_cv_header_stat_broken+set}" = set; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877else 3878 cat >conftest.$ac_ext <<_ACEOF 3879#line $LINENO "configure" 3880#include "confdefs.h" 3881#include <sys/types.h> 3882#include <sys/stat.h> 3883 3884#if defined(S_ISBLK) && defined(S_IFDIR) 3885# if S_ISBLK (S_IFDIR) 3886You lose. 3887# endif 3888#endif 3889 3890#if defined(S_ISBLK) && defined(S_IFCHR) 3891# if S_ISBLK (S_IFCHR) 3892You lose. 3893# endif 3894#endif 3895 3896#if defined(S_ISLNK) && defined(S_IFREG) 3897# if S_ISLNK (S_IFREG) 3898You lose. 3899# endif 3900#endif 3901 3902#if defined(S_ISSOCK) && defined(S_IFREG) 3903# if S_ISSOCK (S_IFREG) 3904You lose. 3905# endif 3906#endif 3907 3908_ACEOF 3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3910 $EGREP "You lose" >/dev/null 2>&1; then 3911 ac_cv_header_stat_broken=yes 3912else 3913 ac_cv_header_stat_broken=no 3914fi 3915rm -f conftest* 3916 3917fi 3918echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 3919echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 3920if test $ac_cv_header_stat_broken = yes; then 3921 3922cat >>confdefs.h <<\_ACEOF 3923#define STAT_MACROS_BROKEN 1 3924_ACEOF 3925 3926fi 3927 3928echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3929echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3930if test "${ac_cv_c_const+set}" = set; then 3931 echo $ECHO_N "(cached) $ECHO_C" >&6 3932else 3933 cat >conftest.$ac_ext <<_ACEOF 3934#line $LINENO "configure" 3935#include "confdefs.h" 3936 3937int 3938main () 3939{ 3940/* FIXME: Include the comments suggested by Paul. */ 3941#ifndef __cplusplus 3942 /* Ultrix mips cc rejects this. */ 3943 typedef int charset[2]; 3944 const charset x; 3945 /* SunOS 4.1.1 cc rejects this. */ 3946 char const *const *ccp; 3947 char **p; 3948 /* NEC SVR4.0.2 mips cc rejects this. */ 3949 struct point {int x, y;}; 3950 static struct point const zero = {0,0}; 3951 /* AIX XL C 1.02.0.0 rejects this. 3952 It does not let you subtract one const X* pointer from another in 3953 an arm of an if-expression whose if-part is not a constant 3954 expression */ 3955 const char *g = "string"; 3956 ccp = &g + (g ? g-g : 0); 3957 /* HPUX 7.0 cc rejects these. */ 3958 ++ccp; 3959 p = (char**) ccp; 3960 ccp = (char const *const *) p; 3961 { /* SCO 3.2v4 cc rejects this. */ 3962 char *t; 3963 char const *s = 0 ? (char *) 0 : (char const *) 0; 3964 3965 *t++ = 0; 3966 } 3967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3968 int x[] = {25, 17}; 3969 const int *foo = &x[0]; 3970 ++foo; 3971 } 3972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3973 typedef const int *iptr; 3974 iptr p = 0; 3975 ++p; 3976 } 3977 { /* AIX XL C 1.02.0.0 rejects this saying 3978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3979 struct s { int j; const int *ap[3]; }; 3980 struct s *b; b->j = 5; 3981 } 3982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3983 const int foo = 10; 3984 } 3985#endif 3986 3987 ; 3988 return 0; 3989} 3990_ACEOF 3991rm -f conftest.$ac_objext 3992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3993 (eval $ac_compile) 2>&5 3994 ac_status=$? 3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3996 (exit $ac_status); } && 3997 { ac_try='test -s conftest.$ac_objext' 3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3999 (eval $ac_try) 2>&5 4000 ac_status=$? 4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4002 (exit $ac_status); }; }; then 4003 ac_cv_c_const=yes 4004else 4005 echo "$as_me: failed program was:" >&5 4006cat conftest.$ac_ext >&5 4007ac_cv_c_const=no 4008fi 4009rm -f conftest.$ac_objext conftest.$ac_ext 4010fi 4011echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4012echo "${ECHO_T}$ac_cv_c_const" >&6 4013if test $ac_cv_c_const = no; then 4014 4015cat >>confdefs.h <<\_ACEOF 4016#define const 4017_ACEOF 4018 4019fi 4020 4021echo "$as_me:$LINENO: checking for off_t" >&5 4022echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4023if test "${ac_cv_type_off_t+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 cat >conftest.$ac_ext <<_ACEOF 4027#line $LINENO "configure" 4028#include "confdefs.h" 4029$ac_includes_default 4030int 4031main () 4032{ 4033if ((off_t *) 0) 4034 return 0; 4035if (sizeof (off_t)) 4036 return 0; 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041rm -f conftest.$ac_objext 4042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4043 (eval $ac_compile) 2>&5 4044 ac_status=$? 4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4046 (exit $ac_status); } && 4047 { ac_try='test -s conftest.$ac_objext' 4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4049 (eval $ac_try) 2>&5 4050 ac_status=$? 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4052 (exit $ac_status); }; }; then 4053 ac_cv_type_off_t=yes 4054else 4055 echo "$as_me: failed program was:" >&5 4056cat conftest.$ac_ext >&5 4057ac_cv_type_off_t=no 4058fi 4059rm -f conftest.$ac_objext conftest.$ac_ext 4060fi 4061echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4062echo "${ECHO_T}$ac_cv_type_off_t" >&6 4063if test $ac_cv_type_off_t = yes; then 4064 : 4065else 4066 4067cat >>confdefs.h <<_ACEOF 4068#define off_t long 4069_ACEOF 4070 4071fi 4072 4073echo "$as_me:$LINENO: checking for size_t" >&5 4074echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4075if test "${ac_cv_type_size_t+set}" = set; then 4076 echo $ECHO_N "(cached) $ECHO_C" >&6 4077else 4078 cat >conftest.$ac_ext <<_ACEOF 4079#line $LINENO "configure" 4080#include "confdefs.h" 4081$ac_includes_default 4082int 4083main () 4084{ 4085if ((size_t *) 0) 4086 return 0; 4087if (sizeof (size_t)) 4088 return 0; 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093rm -f conftest.$ac_objext 4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>&5 4096 ac_status=$? 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 (exit $ac_status); } && 4099 { ac_try='test -s conftest.$ac_objext' 4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4101 (eval $ac_try) 2>&5 4102 ac_status=$? 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); }; }; then 4105 ac_cv_type_size_t=yes 4106else 4107 echo "$as_me: failed program was:" >&5 4108cat conftest.$ac_ext >&5 4109ac_cv_type_size_t=no 4110fi 4111rm -f conftest.$ac_objext conftest.$ac_ext 4112fi 4113echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4114echo "${ECHO_T}$ac_cv_type_size_t" >&6 4115if test $ac_cv_type_size_t = yes; then 4116 : 4117else 4118 4119cat >>confdefs.h <<_ACEOF 4120#define size_t unsigned 4121_ACEOF 4122 4123fi 4124 4125echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4126echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4127if test "${ac_cv_header_time+set}" = set; then 4128 echo $ECHO_N "(cached) $ECHO_C" >&6 4129else 4130 cat >conftest.$ac_ext <<_ACEOF 4131#line $LINENO "configure" 4132#include "confdefs.h" 4133#include <sys/types.h> 4134#include <sys/time.h> 4135#include <time.h> 4136 4137int 4138main () 4139{ 4140if ((struct tm *) 0) 4141return 0; 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146rm -f conftest.$ac_objext 4147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4148 (eval $ac_compile) 2>&5 4149 ac_status=$? 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4151 (exit $ac_status); } && 4152 { ac_try='test -s conftest.$ac_objext' 4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4154 (eval $ac_try) 2>&5 4155 ac_status=$? 4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4157 (exit $ac_status); }; }; then 4158 ac_cv_header_time=yes 4159else 4160 echo "$as_me: failed program was:" >&5 4161cat conftest.$ac_ext >&5 4162ac_cv_header_time=no 4163fi 4164rm -f conftest.$ac_objext conftest.$ac_ext 4165fi 4166echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4167echo "${ECHO_T}$ac_cv_header_time" >&6 4168if test $ac_cv_header_time = yes; then 4169 4170cat >>confdefs.h <<\_ACEOF 4171#define TIME_WITH_SYS_TIME 1 4172_ACEOF 4173 4174fi 4175 4176 4177# Autoheader templates for symbols defined later by AC_DEFINE. 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225# Checks for identifiers. 4226echo "$as_me:$LINENO: checking for off_t" >&5 4227echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4228if test "${ac_cv_type_off_t+set}" = set; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 cat >conftest.$ac_ext <<_ACEOF 4232#line $LINENO "configure" 4233#include "confdefs.h" 4234$ac_includes_default 4235int 4236main () 4237{ 4238if ((off_t *) 0) 4239 return 0; 4240if (sizeof (off_t)) 4241 return 0; 4242 ; 4243 return 0; 4244} 4245_ACEOF 4246rm -f conftest.$ac_objext 4247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4248 (eval $ac_compile) 2>&5 4249 ac_status=$? 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4251 (exit $ac_status); } && 4252 { ac_try='test -s conftest.$ac_objext' 4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4254 (eval $ac_try) 2>&5 4255 ac_status=$? 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); }; }; then 4258 ac_cv_type_off_t=yes 4259else 4260 echo "$as_me: failed program was:" >&5 4261cat conftest.$ac_ext >&5 4262ac_cv_type_off_t=no 4263fi 4264rm -f conftest.$ac_objext conftest.$ac_ext 4265fi 4266echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4267echo "${ECHO_T}$ac_cv_type_off_t" >&6 4268if test $ac_cv_type_off_t = yes; then 4269 : 4270else 4271 4272cat >>confdefs.h <<_ACEOF 4273#define off_t long 4274_ACEOF 4275 4276fi 4277 4278echo "$as_me:$LINENO: checking for void" >&5 4279echo $ECHO_N "checking for void... $ECHO_C" >&6 4280cat >conftest.$ac_ext <<_ACEOF 4281#line $LINENO "configure" 4282#include "confdefs.h" 4283 4284int 4285main () 4286{ 4287void *foo = 0; 4288 ; 4289 return 0; 4290} 4291_ACEOF 4292rm -f conftest.$ac_objext 4293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4294 (eval $ac_compile) 2>&5 4295 ac_status=$? 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); } && 4298 { ac_try='test -s conftest.$ac_objext' 4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4300 (eval $ac_try) 2>&5 4301 ac_status=$? 4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4303 (exit $ac_status); }; }; then 4304 echo "$as_me:$LINENO: result: yes" >&5 4305echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4306#define HAVE_VOID 1 4307_ACEOF 4308 4309else 4310 echo "$as_me: failed program was:" >&5 4311cat conftest.$ac_ext >&5 4312echo "$as_me:$LINENO: result: no" >&5 4313echo "${ECHO_T}no" >&6 4314fi 4315rm -f conftest.$ac_objext conftest.$ac_ext 4316echo "$as_me:$LINENO: checking for const" >&5 4317echo $ECHO_N "checking for const... $ECHO_C" >&6 4318cat >conftest.$ac_ext <<_ACEOF 4319#line $LINENO "configure" 4320#include "confdefs.h" 4321 4322int 4323main () 4324{ 4325const int foo = 0; 4326 ; 4327 return 0; 4328} 4329_ACEOF 4330rm -f conftest.$ac_objext 4331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4332 (eval $ac_compile) 2>&5 4333 ac_status=$? 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4335 (exit $ac_status); } && 4336 { ac_try='test -s conftest.$ac_objext' 4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4338 (eval $ac_try) 2>&5 4339 ac_status=$? 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); }; }; then 4342 echo "$as_me:$LINENO: result: yes" >&5 4343echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4344#define HAVE_CONST 1 4345_ACEOF 4346 4347else 4348 echo "$as_me: failed program was:" >&5 4349cat conftest.$ac_ext >&5 4350echo "$as_me:$LINENO: result: no" >&5 4351echo "${ECHO_T}no" >&6 4352fi 4353rm -f conftest.$ac_objext conftest.$ac_ext 4354echo "$as_me:$LINENO: checking for time_t" >&5 4355echo $ECHO_N "checking for time_t... $ECHO_C" >&6 4356cat >conftest.$ac_ext <<_ACEOF 4357#line $LINENO "configure" 4358#include "confdefs.h" 4359#include <time.h> 4360int 4361main () 4362{ 4363time_t t = 0; 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368rm -f conftest.$ac_objext 4369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4370 (eval $ac_compile) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); } && 4374 { ac_try='test -s conftest.$ac_objext' 4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4376 (eval $ac_try) 2>&5 4377 ac_status=$? 4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 (exit $ac_status); }; }; then 4380 echo "$as_me:$LINENO: result: yes" >&5 4381echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4382#define HAVE_TIME_T 1 4383_ACEOF 4384 4385else 4386 echo "$as_me: failed program was:" >&5 4387cat conftest.$ac_ext >&5 4388echo "$as_me:$LINENO: result: no" >&5 4389echo "${ECHO_T}no" >&6 4390fi 4391rm -f conftest.$ac_objext conftest.$ac_ext 4392 4393# Checks for library functions. 4394echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4395echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4396if test "${ac_cv_type_signal+set}" = set; then 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 4398else 4399 cat >conftest.$ac_ext <<_ACEOF 4400#line $LINENO "configure" 4401#include "confdefs.h" 4402#include <sys/types.h> 4403#include <signal.h> 4404#ifdef signal 4405# undef signal 4406#endif 4407#ifdef __cplusplus 4408extern "C" void (*signal (int, void (*)(int)))(int); 4409#else 4410void (*signal ()) (); 4411#endif 4412 4413int 4414main () 4415{ 4416int i; 4417 ; 4418 return 0; 4419} 4420_ACEOF 4421rm -f conftest.$ac_objext 4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4423 (eval $ac_compile) 2>&5 4424 ac_status=$? 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); } && 4427 { ac_try='test -s conftest.$ac_objext' 4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4429 (eval $ac_try) 2>&5 4430 ac_status=$? 4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4432 (exit $ac_status); }; }; then 4433 ac_cv_type_signal=void 4434else 4435 echo "$as_me: failed program was:" >&5 4436cat conftest.$ac_ext >&5 4437ac_cv_type_signal=int 4438fi 4439rm -f conftest.$ac_objext conftest.$ac_ext 4440fi 4441echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4442echo "${ECHO_T}$ac_cv_type_signal" >&6 4443 4444cat >>confdefs.h <<_ACEOF 4445#define RETSIGTYPE $ac_cv_type_signal 4446_ACEOF 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459for ac_func in fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system 4460do 4461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4462echo "$as_me:$LINENO: checking for $ac_func" >&5 4463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4464if eval "test \"\${$as_ac_var+set}\" = set"; then 4465 echo $ECHO_N "(cached) $ECHO_C" >&6 4466else 4467 cat >conftest.$ac_ext <<_ACEOF 4468#line $LINENO "configure" 4469#include "confdefs.h" 4470/* System header to define __stub macros and hopefully few prototypes, 4471 which can conflict with char $ac_func (); below. */ 4472#include <assert.h> 4473/* Override any gcc2 internal prototype to avoid an error. */ 4474#ifdef __cplusplus 4475extern "C" 4476#endif 4477/* We use char because int might match the return type of a gcc2 4478 builtin and then its argument prototype would still apply. */ 4479char $ac_func (); 4480char (*f) (); 4481 4482int 4483main () 4484{ 4485/* The GNU C library defines this for functions which it implements 4486 to always fail with ENOSYS. Some functions are actually named 4487 something starting with __ and the normal name is an alias. */ 4488#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4489choke me 4490#else 4491f = $ac_func; 4492#endif 4493 4494 ; 4495 return 0; 4496} 4497_ACEOF 4498rm -f conftest.$ac_objext conftest$ac_exeext 4499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4500 (eval $ac_link) 2>&5 4501 ac_status=$? 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); } && 4504 { ac_try='test -s conftest$ac_exeext' 4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4506 (eval $ac_try) 2>&5 4507 ac_status=$? 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); }; }; then 4510 eval "$as_ac_var=yes" 4511else 4512 echo "$as_me: failed program was:" >&5 4513cat conftest.$ac_ext >&5 4514eval "$as_ac_var=no" 4515fi 4516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4517fi 4518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4520if test `eval echo '${'$as_ac_var'}'` = yes; then 4521 cat >>confdefs.h <<_ACEOF 4522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4523_ACEOF 4524 4525fi 4526done 4527 4528 4529# Some systems have termios.h but not the corresponding functions. 4530echo "$as_me:$LINENO: checking for tcgetattr" >&5 4531echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6 4532if test "${ac_cv_func_tcgetattr+set}" = set; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 cat >conftest.$ac_ext <<_ACEOF 4536#line $LINENO "configure" 4537#include "confdefs.h" 4538/* System header to define __stub macros and hopefully few prototypes, 4539 which can conflict with char tcgetattr (); below. */ 4540#include <assert.h> 4541/* Override any gcc2 internal prototype to avoid an error. */ 4542#ifdef __cplusplus 4543extern "C" 4544#endif 4545/* We use char because int might match the return type of a gcc2 4546 builtin and then its argument prototype would still apply. */ 4547char tcgetattr (); 4548char (*f) (); 4549 4550int 4551main () 4552{ 4553/* The GNU C library defines this for functions which it implements 4554 to always fail with ENOSYS. Some functions are actually named 4555 something starting with __ and the normal name is an alias. */ 4556#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr) 4557choke me 4558#else 4559f = tcgetattr; 4560#endif 4561 4562 ; 4563 return 0; 4564} 4565_ACEOF 4566rm -f conftest.$ac_objext conftest$ac_exeext 4567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4568 (eval $ac_link) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); } && 4572 { ac_try='test -s conftest$ac_exeext' 4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4574 (eval $ac_try) 2>&5 4575 ac_status=$? 4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4577 (exit $ac_status); }; }; then 4578 ac_cv_func_tcgetattr=yes 4579else 4580 echo "$as_me: failed program was:" >&5 4581cat conftest.$ac_ext >&5 4582ac_cv_func_tcgetattr=no 4583fi 4584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4585fi 4586echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5 4587echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6 4588if test $ac_cv_func_tcgetattr = yes; then 4589 cat >>confdefs.h <<\_ACEOF 4590#define HAVE_TERMIOS_FUNCS 1 4591_ACEOF 4592 4593fi 4594 4595 4596echo "$as_me:$LINENO: checking for fileno" >&5 4597echo $ECHO_N "checking for fileno... $ECHO_C" >&6 4598cat >conftest.$ac_ext <<_ACEOF 4599#line $LINENO "configure" 4600#include "confdefs.h" 4601 4602#if HAVE_STDIO_H 4603#include <stdio.h> 4604#endif 4605int 4606main () 4607{ 4608static int x; x = fileno(stdin); 4609 ; 4610 return 0; 4611} 4612_ACEOF 4613rm -f conftest.$ac_objext conftest$ac_exeext 4614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4615 (eval $ac_link) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); } && 4619 { ac_try='test -s conftest$ac_exeext' 4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621 (eval $ac_try) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); }; }; then 4625 echo "$as_me:$LINENO: result: yes" >&5 4626echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4627#define HAVE_FILENO 1 4628_ACEOF 4629 4630else 4631 echo "$as_me: failed program was:" >&5 4632cat conftest.$ac_ext >&5 4633echo "$as_me:$LINENO: result: no" >&5 4634echo "${ECHO_T}no" >&6 4635fi 4636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4637 4638echo "$as_me:$LINENO: checking for strerror" >&5 4639echo $ECHO_N "checking for strerror... $ECHO_C" >&6 4640cat >conftest.$ac_ext <<_ACEOF 4641#line $LINENO "configure" 4642#include "confdefs.h" 4643 4644#if HAVE_STDIO_H 4645#include <stdio.h> 4646#endif 4647#if HAVE_STRING_H 4648#include <string.h> 4649#endif 4650#if HAVE_ERRNO_H 4651#include <errno.h> 4652#endif 4653int 4654main () 4655{ 4656static char *x; x = strerror(0); 4657 ; 4658 return 0; 4659} 4660_ACEOF 4661rm -f conftest.$ac_objext conftest$ac_exeext 4662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4663 (eval $ac_link) 2>&5 4664 ac_status=$? 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); } && 4667 { ac_try='test -s conftest$ac_exeext' 4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4669 (eval $ac_try) 2>&5 4670 ac_status=$? 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); }; }; then 4673 echo "$as_me:$LINENO: result: yes" >&5 4674echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4675#define HAVE_STRERROR 1 4676_ACEOF 4677 4678else 4679 echo "$as_me: failed program was:" >&5 4680cat conftest.$ac_ext >&5 4681echo "$as_me:$LINENO: result: no" >&5 4682echo "${ECHO_T}no" >&6 4683fi 4684rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4685 4686echo "$as_me:$LINENO: checking for sys_errlist" >&5 4687echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6 4688cat >conftest.$ac_ext <<_ACEOF 4689#line $LINENO "configure" 4690#include "confdefs.h" 4691 4692int 4693main () 4694{ 4695extern char *sys_errlist[]; static char **x; x = sys_errlist; 4696 ; 4697 return 0; 4698} 4699_ACEOF 4700rm -f conftest.$ac_objext conftest$ac_exeext 4701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4702 (eval $ac_link) 2>&5 4703 ac_status=$? 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); } && 4706 { ac_try='test -s conftest$ac_exeext' 4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4708 (eval $ac_try) 2>&5 4709 ac_status=$? 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); }; }; then 4712 echo "$as_me:$LINENO: result: yes" >&5 4713echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4714#define HAVE_SYS_ERRLIST 1 4715_ACEOF 4716 4717else 4718 echo "$as_me: failed program was:" >&5 4719cat conftest.$ac_ext >&5 4720echo "$as_me:$LINENO: result: no" >&5 4721echo "${ECHO_T}no" >&6 4722fi 4723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4724 4725echo "$as_me:$LINENO: checking for sigset_t" >&5 4726echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6 4727cat >conftest.$ac_ext <<_ACEOF 4728#line $LINENO "configure" 4729#include "confdefs.h" 4730 4731#include <signal.h> 4732 4733int 4734main () 4735{ 4736sigset_t s; s = 0; 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741rm -f conftest.$ac_objext conftest$ac_exeext 4742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4743 (eval $ac_link) 2>&5 4744 ac_status=$? 4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4746 (exit $ac_status); } && 4747 { ac_try='test -s conftest$ac_exeext' 4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4749 (eval $ac_try) 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); }; }; then 4753 echo "$as_me:$LINENO: result: yes" >&5 4754echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4755#define HAVE_SIGSET_T 1 4756_ACEOF 4757 4758else 4759 echo "$as_me: failed program was:" >&5 4760cat conftest.$ac_ext >&5 4761echo "$as_me:$LINENO: result: no" >&5 4762echo "${ECHO_T}no" >&6 4763fi 4764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4765 4766echo "$as_me:$LINENO: checking for sigemptyset" >&5 4767echo $ECHO_N "checking for sigemptyset... $ECHO_C" >&6 4768cat >conftest.$ac_ext <<_ACEOF 4769#line $LINENO "configure" 4770#include "confdefs.h" 4771 4772#include <signal.h> 4773 4774int 4775main () 4776{ 4777sigset_t s; sigemptyset(&s); 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782rm -f conftest.$ac_objext conftest$ac_exeext 4783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4784 (eval $ac_link) 2>&5 4785 ac_status=$? 4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4787 (exit $ac_status); } && 4788 { ac_try='test -s conftest$ac_exeext' 4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4790 (eval $ac_try) 2>&5 4791 ac_status=$? 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4793 (exit $ac_status); }; }; then 4794 echo "$as_me:$LINENO: result: yes" >&5 4795echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4796#define HAVE_SIGEMPTYSET 1 4797_ACEOF 4798 4799else 4800 echo "$as_me: failed program was:" >&5 4801cat conftest.$ac_ext >&5 4802echo "$as_me:$LINENO: result: no" >&5 4803echo "${ECHO_T}no" >&6 4804fi 4805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4806 4807have_errno=no 4808echo "$as_me:$LINENO: checking for errno" >&5 4809echo $ECHO_N "checking for errno... $ECHO_C" >&6 4810cat >conftest.$ac_ext <<_ACEOF 4811#line $LINENO "configure" 4812#include "confdefs.h" 4813 4814#if HAVE_ERRNO_H 4815#include <errno.h> 4816#endif 4817int 4818main () 4819{ 4820static int x; x = errno; 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825rm -f conftest.$ac_objext conftest$ac_exeext 4826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4827 (eval $ac_link) 2>&5 4828 ac_status=$? 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); } && 4831 { ac_try='test -s conftest$ac_exeext' 4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4833 (eval $ac_try) 2>&5 4834 ac_status=$? 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); }; }; then 4837 echo "$as_me:$LINENO: result: yes - in errno.h" >&5 4838echo "${ECHO_T}yes - in errno.h" >&6; cat >>confdefs.h <<\_ACEOF 4839#define HAVE_ERRNO 1 4840_ACEOF 4841 have_errno=yes 4842else 4843 echo "$as_me: failed program was:" >&5 4844cat conftest.$ac_ext >&5 4845fi 4846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4847if test $have_errno = no; then 4848cat >conftest.$ac_ext <<_ACEOF 4849#line $LINENO "configure" 4850#include "confdefs.h" 4851 4852#if HAVE_ERRNO_H 4853#include <errno.h> 4854#endif 4855int 4856main () 4857{ 4858extern int errno; static int x; x = errno; 4859 ; 4860 return 0; 4861} 4862_ACEOF 4863rm -f conftest.$ac_objext conftest$ac_exeext 4864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4865 (eval $ac_link) 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); } && 4869 { ac_try='test -s conftest$ac_exeext' 4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4871 (eval $ac_try) 2>&5 4872 ac_status=$? 4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4874 (exit $ac_status); }; }; then 4875 echo "$as_me:$LINENO: result: yes - must define" >&5 4876echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h <<\_ACEOF 4877#define HAVE_ERRNO 1 4878_ACEOF 4879 cat >>confdefs.h <<\_ACEOF 4880#define MUST_DEFINE_ERRNO 1 4881_ACEOF 4882 4883else 4884 echo "$as_me: failed program was:" >&5 4885cat conftest.$ac_ext >&5 4886echo "$as_me:$LINENO: result: no" >&5 4887echo "${ECHO_T}no" >&6 4888fi 4889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4890fi 4891 4892echo "$as_me:$LINENO: checking for locale" >&5 4893echo $ECHO_N "checking for locale... $ECHO_C" >&6 4894cat >conftest.$ac_ext <<_ACEOF 4895#line $LINENO "configure" 4896#include "confdefs.h" 4897#include <locale.h> 4898#include <ctype.h> 4899int 4900main () 4901{ 4902setlocale(LC_CTYPE,""); isprint(0); iscntrl(0); 4903 ; 4904 return 0; 4905} 4906_ACEOF 4907rm -f conftest.$ac_objext conftest$ac_exeext 4908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4909 (eval $ac_link) 2>&5 4910 ac_status=$? 4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4912 (exit $ac_status); } && 4913 { ac_try='test -s conftest$ac_exeext' 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4915 (eval $ac_try) 2>&5 4916 ac_status=$? 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); }; }; then 4919 echo "$as_me:$LINENO: result: yes" >&5 4920echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4921#define HAVE_LOCALE 1 4922_ACEOF 4923 4924else 4925 echo "$as_me: failed program was:" >&5 4926cat conftest.$ac_ext >&5 4927echo "$as_me:$LINENO: result: no" >&5 4928echo "${ECHO_T}no" >&6 4929fi 4930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4931echo "$as_me:$LINENO: checking for ctype functions" >&5 4932echo $ECHO_N "checking for ctype functions... $ECHO_C" >&6 4933cat >conftest.$ac_ext <<_ACEOF 4934#line $LINENO "configure" 4935#include "confdefs.h" 4936 4937#if HAVE_CTYPE_H 4938#include <ctype.h> 4939#endif 4940int 4941main () 4942{ 4943static int x; x = isupper(x); x = tolower(x); x = toupper(x); 4944 ; 4945 return 0; 4946} 4947_ACEOF 4948rm -f conftest.$ac_objext conftest$ac_exeext 4949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4950 (eval $ac_link) 2>&5 4951 ac_status=$? 4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4953 (exit $ac_status); } && 4954 { ac_try='test -s conftest$ac_exeext' 4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4956 (eval $ac_try) 2>&5 4957 ac_status=$? 4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4959 (exit $ac_status); }; }; then 4960 echo "$as_me:$LINENO: result: yes" >&5 4961echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 4962#define HAVE_UPPER_LOWER 1 4963_ACEOF 4964 4965else 4966 echo "$as_me: failed program was:" >&5 4967cat conftest.$ac_ext >&5 4968echo "$as_me:$LINENO: result: no" >&5 4969echo "${ECHO_T}no" >&6 4970fi 4971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4972 4973# Checks for external variable ospeed in the termcap library. 4974have_ospeed=no 4975echo "$as_me:$LINENO: checking termcap for ospeed" >&5 4976echo $ECHO_N "checking termcap for ospeed... $ECHO_C" >&6 4977cat >conftest.$ac_ext <<_ACEOF 4978#line $LINENO "configure" 4979#include "confdefs.h" 4980 4981#include <sys/types.h> 4982#if HAVE_TERMIOS_H 4983#include <termios.h> 4984#endif 4985#if HAVE_TERMCAP_H 4986#include <termcap.h> 4987#endif 4988int 4989main () 4990{ 4991ospeed = 0; 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996rm -f conftest.$ac_objext conftest$ac_exeext 4997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4998 (eval $ac_link) 2>&5 4999 ac_status=$? 5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5001 (exit $ac_status); } && 5002 { ac_try='test -s conftest$ac_exeext' 5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5004 (eval $ac_try) 2>&5 5005 ac_status=$? 5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5007 (exit $ac_status); }; }; then 5008 echo "$as_me:$LINENO: result: yes - in termcap.h" >&5 5009echo "${ECHO_T}yes - in termcap.h" >&6; cat >>confdefs.h <<\_ACEOF 5010#define HAVE_OSPEED 1 5011_ACEOF 5012 have_ospeed=yes 5013else 5014 echo "$as_me: failed program was:" >&5 5015cat conftest.$ac_ext >&5 5016fi 5017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5018if test $have_ospeed = no; then 5019cat >conftest.$ac_ext <<_ACEOF 5020#line $LINENO "configure" 5021#include "confdefs.h" 5022 5023int 5024main () 5025{ 5026extern short ospeed; ospeed = 0; 5027 ; 5028 return 0; 5029} 5030_ACEOF 5031rm -f conftest.$ac_objext conftest$ac_exeext 5032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5033 (eval $ac_link) 2>&5 5034 ac_status=$? 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); } && 5037 { ac_try='test -s conftest$ac_exeext' 5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5039 (eval $ac_try) 2>&5 5040 ac_status=$? 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5042 (exit $ac_status); }; }; then 5043 echo "$as_me:$LINENO: result: yes - must define" >&5 5044echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h <<\_ACEOF 5045#define HAVE_OSPEED 1 5046_ACEOF 5047 cat >>confdefs.h <<\_ACEOF 5048#define MUST_DEFINE_OSPEED 1 5049_ACEOF 5050 5051else 5052 echo "$as_me: failed program was:" >&5 5053cat conftest.$ac_ext >&5 5054echo "$as_me:$LINENO: result: no" >&5 5055echo "${ECHO_T}no" >&6 5056fi 5057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5058fi 5059 5060# Checks for regular expression functions. 5061have_regex=no 5062have_posix_regex=unknown 5063echo "$as_me:$LINENO: checking for regcomp" >&5 5064echo $ECHO_N "checking for regcomp... $ECHO_C" >&6 5065 5066WANT_REGEX=auto 5067 5068# Check whether --with-regex or --without-regex was given. 5069if test "${with_regex+set}" = set; then 5070 withval="$with_regex" 5071 WANT_REGEX="$withval" 5072fi; 5073 5074if test $have_regex = no; then 5075if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then 5076# Some versions of Solaris have a regcomp() function, but it doesn't work! 5077# So we run a test program. If we're cross-compiling, do it the old way. 5078if test "$cross_compiling" = yes; then 5079 have_posix_regex=unknown 5080else 5081 cat >conftest.$ac_ext <<_ACEOF 5082#line $LINENO "configure" 5083#include "confdefs.h" 5084 5085#include <sys/types.h> 5086#include <regex.h> 5087main() { regex_t r; regmatch_t rm; char *text = "xabcy"; 5088if (regcomp(&r, "abc", 0)) exit(1); 5089if (regexec(&r, text, 1, &rm, 0)) exit(1); 5090#ifndef __WATCOMC__ 5091if (rm.rm_so != 1) exit(1); /* check for correct offset */ 5092#else 5093if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */ 5094#endif 5095exit(0); } 5096_ACEOF 5097rm -f conftest$ac_exeext 5098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5099 (eval $ac_link) 2>&5 5100 ac_status=$? 5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5104 (eval $ac_try) 2>&5 5105 ac_status=$? 5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5107 (exit $ac_status); }; }; then 5108 have_posix_regex=yes 5109else 5110 echo "$as_me: program exited with status $ac_status" >&5 5111echo "$as_me: failed program was:" >&5 5112cat conftest.$ac_ext >&5 5113( exit $ac_status ) 5114have_posix_regex=no 5115fi 5116rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5117fi 5118if test $have_posix_regex = yes; then 5119 echo "$as_me:$LINENO: result: using POSIX regcomp" >&5 5120echo "${ECHO_T}using POSIX regcomp" >&6 5121 cat >>confdefs.h <<\_ACEOF 5122#define HAVE_POSIX_REGCOMP 1 5123_ACEOF 5124 5125 have_regex=yes 5126elif test $have_posix_regex = unknown; then 5127 cat >conftest.$ac_ext <<_ACEOF 5128#line $LINENO "configure" 5129#include "confdefs.h" 5130 5131#include <sys/types.h> 5132#include <regex.h> 5133int 5134main () 5135{ 5136regex_t *r; regfree(r); 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141rm -f conftest.$ac_objext conftest$ac_exeext 5142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5143 (eval $ac_link) 2>&5 5144 ac_status=$? 5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); } && 5147 { ac_try='test -s conftest$ac_exeext' 5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5149 (eval $ac_try) 2>&5 5150 ac_status=$? 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); }; }; then 5153 echo "$as_me:$LINENO: result: using POSIX regcomp" >&5 5154echo "${ECHO_T}using POSIX regcomp" >&6 5155 cat >>confdefs.h <<\_ACEOF 5156#define HAVE_POSIX_REGCOMP 1 5157_ACEOF 5158 have_regex=yes 5159else 5160 echo "$as_me: failed program was:" >&5 5161cat conftest.$ac_ext >&5 5162fi 5163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5164else 5165 echo "$as_me:$LINENO: result: no" >&5 5166echo "${ECHO_T}no" >&6 5167fi 5168fi 5169fi 5170 5171if test $have_regex = no; then 5172if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then 5173echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5 5174echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6 5175if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 5176 echo $ECHO_N "(cached) $ECHO_C" >&6 5177else 5178 ac_check_lib_save_LIBS=$LIBS 5179LIBS="-lpcre $LIBS" 5180cat >conftest.$ac_ext <<_ACEOF 5181#line $LINENO "configure" 5182#include "confdefs.h" 5183 5184/* Override any gcc2 internal prototype to avoid an error. */ 5185#ifdef __cplusplus 5186extern "C" 5187#endif 5188/* We use char because int might match the return type of a gcc2 5189 builtin and then its argument prototype would still apply. */ 5190char pcre_compile (); 5191int 5192main () 5193{ 5194pcre_compile (); 5195 ; 5196 return 0; 5197} 5198_ACEOF 5199rm -f conftest.$ac_objext conftest$ac_exeext 5200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5201 (eval $ac_link) 2>&5 5202 ac_status=$? 5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5204 (exit $ac_status); } && 5205 { ac_try='test -s conftest$ac_exeext' 5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5207 (eval $ac_try) 2>&5 5208 ac_status=$? 5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5210 (exit $ac_status); }; }; then 5211 ac_cv_lib_pcre_pcre_compile=yes 5212else 5213 echo "$as_me: failed program was:" >&5 5214cat conftest.$ac_ext >&5 5215ac_cv_lib_pcre_pcre_compile=no 5216fi 5217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5218LIBS=$ac_check_lib_save_LIBS 5219fi 5220echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5 5221echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6 5222if test $ac_cv_lib_pcre_pcre_compile = yes; then 5223 echo "$as_me:$LINENO: result: using pcre" >&5 5224echo "${ECHO_T}using pcre" >&6; cat >>confdefs.h <<\_ACEOF 5225#define HAVE_PCRE 1 5226_ACEOF 5227 LIBS="$LIBS -lpcre" have_regex=yes 5228fi 5229 5230fi 5231fi 5232 5233if test $have_regex = no; then 5234if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then 5235echo "$as_me:$LINENO: checking for regcmp" >&5 5236echo $ECHO_N "checking for regcmp... $ECHO_C" >&6 5237if test "${ac_cv_func_regcmp+set}" = set; then 5238 echo $ECHO_N "(cached) $ECHO_C" >&6 5239else 5240 cat >conftest.$ac_ext <<_ACEOF 5241#line $LINENO "configure" 5242#include "confdefs.h" 5243/* System header to define __stub macros and hopefully few prototypes, 5244 which can conflict with char regcmp (); below. */ 5245#include <assert.h> 5246/* Override any gcc2 internal prototype to avoid an error. */ 5247#ifdef __cplusplus 5248extern "C" 5249#endif 5250/* We use char because int might match the return type of a gcc2 5251 builtin and then its argument prototype would still apply. */ 5252char regcmp (); 5253char (*f) (); 5254 5255int 5256main () 5257{ 5258/* The GNU C library defines this for functions which it implements 5259 to always fail with ENOSYS. Some functions are actually named 5260 something starting with __ and the normal name is an alias. */ 5261#if defined (__stub_regcmp) || defined (__stub___regcmp) 5262choke me 5263#else 5264f = regcmp; 5265#endif 5266 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271rm -f conftest.$ac_objext conftest$ac_exeext 5272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5273 (eval $ac_link) 2>&5 5274 ac_status=$? 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); } && 5277 { ac_try='test -s conftest$ac_exeext' 5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5279 (eval $ac_try) 2>&5 5280 ac_status=$? 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); }; }; then 5283 ac_cv_func_regcmp=yes 5284else 5285 echo "$as_me: failed program was:" >&5 5286cat conftest.$ac_ext >&5 5287ac_cv_func_regcmp=no 5288fi 5289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5290fi 5291echo "$as_me:$LINENO: result: $ac_cv_func_regcmp" >&5 5292echo "${ECHO_T}$ac_cv_func_regcmp" >&6 5293if test $ac_cv_func_regcmp = yes; then 5294 echo "$as_me:$LINENO: result: using regcmp" >&5 5295echo "${ECHO_T}using regcmp" >&6; cat >>confdefs.h <<\_ACEOF 5296#define HAVE_REGCMP 1 5297_ACEOF 5298 have_regex=yes 5299fi 5300 5301fi 5302fi 5303 5304if test $have_regex = no; then 5305if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then 5306cat >conftest.$ac_ext <<_ACEOF 5307#line $LINENO "configure" 5308#include "confdefs.h" 5309 5310#include "regexp.h" 5311int 5312main () 5313{ 5314regcomp(""); 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319rm -f conftest.$ac_objext conftest$ac_exeext 5320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5321 (eval $ac_link) 2>&5 5322 ac_status=$? 5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 (exit $ac_status); } && 5325 { ac_try='test -s conftest$ac_exeext' 5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5327 (eval $ac_try) 2>&5 5328 ac_status=$? 5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5330 (exit $ac_status); }; }; then 5331 echo "$as_me:$LINENO: result: using V8 regcomp" >&5 5332echo "${ECHO_T}using V8 regcomp" >&6; cat >>confdefs.h <<\_ACEOF 5333#define HAVE_V8_REGCOMP 1 5334_ACEOF 5335 have_regex=yes 5336else 5337 echo "$as_me: failed program was:" >&5 5338cat conftest.$ac_ext >&5 5339fi 5340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5341fi 5342fi 5343 5344if test $have_regex = no && test -f ${srcdir}/regexp.c; then 5345if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then 5346echo "$as_me:$LINENO: result: using V8 regcomp -- local source" >&5 5347echo "${ECHO_T}using V8 regcomp -- local source" >&6; cat >>confdefs.h <<\_ACEOF 5348#define HAVE_V8_REGCOMP 1 5349_ACEOF 5350 cat >>confdefs.h <<\_ACEOF 5351#define HAVE_REGEXEC2 1 5352_ACEOF 5353 REGEX_O='regexp.$(O)' have_regex=yes 5354fi 5355fi 5356 5357if test $have_regex = no; then 5358if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then 5359echo "$as_me:$LINENO: result: using re_comp" >&5 5360echo "${ECHO_T}using re_comp" >&6; echo "$as_me:$LINENO: checking for re_comp" >&5 5361echo $ECHO_N "checking for re_comp... $ECHO_C" >&6 5362if test "${ac_cv_func_re_comp+set}" = set; then 5363 echo $ECHO_N "(cached) $ECHO_C" >&6 5364else 5365 cat >conftest.$ac_ext <<_ACEOF 5366#line $LINENO "configure" 5367#include "confdefs.h" 5368/* System header to define __stub macros and hopefully few prototypes, 5369 which can conflict with char re_comp (); below. */ 5370#include <assert.h> 5371/* Override any gcc2 internal prototype to avoid an error. */ 5372#ifdef __cplusplus 5373extern "C" 5374#endif 5375/* We use char because int might match the return type of a gcc2 5376 builtin and then its argument prototype would still apply. */ 5377char re_comp (); 5378char (*f) (); 5379 5380int 5381main () 5382{ 5383/* The GNU C library defines this for functions which it implements 5384 to always fail with ENOSYS. Some functions are actually named 5385 something starting with __ and the normal name is an alias. */ 5386#if defined (__stub_re_comp) || defined (__stub___re_comp) 5387choke me 5388#else 5389f = re_comp; 5390#endif 5391 5392 ; 5393 return 0; 5394} 5395_ACEOF 5396rm -f conftest.$ac_objext conftest$ac_exeext 5397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5398 (eval $ac_link) 2>&5 5399 ac_status=$? 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } && 5402 { ac_try='test -s conftest$ac_exeext' 5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5404 (eval $ac_try) 2>&5 5405 ac_status=$? 5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 (exit $ac_status); }; }; then 5408 ac_cv_func_re_comp=yes 5409else 5410 echo "$as_me: failed program was:" >&5 5411cat conftest.$ac_ext >&5 5412ac_cv_func_re_comp=no 5413fi 5414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5415fi 5416echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5 5417echo "${ECHO_T}$ac_cv_func_re_comp" >&6 5418if test $ac_cv_func_re_comp = yes; then 5419 cat >>confdefs.h <<\_ACEOF 5420#define HAVE_RE_COMP 1 5421_ACEOF 5422 have_regex=yes 5423fi 5424 5425fi 5426fi 5427 5428if test $have_regex = no; then 5429echo "$as_me:$LINENO: result: cannot find regular expression library" >&5 5430echo "${ECHO_T}cannot find regular expression library" >&6; cat >>confdefs.h <<\_ACEOF 5431#define NO_REGEX 1 5432_ACEOF 5433 5434fi 5435 5436 5437# Check whether --with-editor or --without-editor was given. 5438if test "${with_editor+set}" = set; then 5439 withval="$with_editor" 5440 cat >>confdefs.h <<_ACEOF 5441#define EDIT_PGM "$withval" 5442_ACEOF 5443 5444else 5445 cat >>confdefs.h <<\_ACEOF 5446#define EDIT_PGM "vi" 5447_ACEOF 5448 5449fi; 5450 5451 5452 5453 5454 ac_config_files="$ac_config_files Makefile" 5455 5456cat >confcache <<\_ACEOF 5457# This file is a shell script that caches the results of configure 5458# tests run on this system so they can be shared between configure 5459# scripts and configure runs, see configure's option --config-cache. 5460# It is not useful on other systems. If it contains results you don't 5461# want to keep, you may remove or edit it. 5462# 5463# config.status only pays attention to the cache file if you give it 5464# the --recheck option to rerun configure. 5465# 5466# `ac_cv_env_foo' variables (set or unset) will be overridden when 5467# loading this file, other *unset* `ac_cv_foo' will be assigned the 5468# following values. 5469 5470_ACEOF 5471 5472# The following way of writing the cache mishandles newlines in values, 5473# but we know of no workaround that is simple, portable, and efficient. 5474# So, don't put newlines in cache variables' values. 5475# Ultrix sh set writes to stderr and can't be redirected directly, 5476# and sets the high bit in the cache file unless we assign to the vars. 5477{ 5478 (set) 2>&1 | 5479 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5480 *ac_space=\ *) 5481 # `set' does not quote correctly, so add quotes (double-quote 5482 # substitution turns \\\\ into \\, and sed turns \\ into \). 5483 sed -n \ 5484 "s/'/'\\\\''/g; 5485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5486 ;; 5487 *) 5488 # `set' quotes correctly as required by POSIX, so do not add quotes. 5489 sed -n \ 5490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5491 ;; 5492 esac; 5493} | 5494 sed ' 5495 t clear 5496 : clear 5497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5498 t end 5499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5500 : end' >>confcache 5501if cmp -s $cache_file confcache; then :; else 5502 if test -w $cache_file; then 5503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5504 cat confcache >$cache_file 5505 else 5506 echo "not updating unwritable cache $cache_file" 5507 fi 5508fi 5509rm -f confcache 5510 5511test "x$prefix" = xNONE && prefix=$ac_default_prefix 5512# Let make expand exec_prefix. 5513test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5514 5515# VPATH may cause trouble with some makes, so we remove $(srcdir), 5516# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5517# trailing colons and then remove the whole line if VPATH becomes empty 5518# (actually we leave an empty line to preserve line numbers). 5519if test "x$srcdir" = x.; then 5520 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5521s/:*\$(srcdir):*/:/; 5522s/:*\${srcdir}:*/:/; 5523s/:*@srcdir@:*/:/; 5524s/^\([^=]*=[ ]*\):*/\1/; 5525s/:*$//; 5526s/^[^=]*=[ ]*$//; 5527}' 5528fi 5529 5530DEFS=-DHAVE_CONFIG_H 5531 5532ac_libobjs= 5533ac_ltlibobjs= 5534for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5535 # 1. Remove the extension, and $U if already installed. 5536 ac_i=`echo "$ac_i" | 5537 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5538 # 2. Add them. 5539 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5540 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5541done 5542LIBOBJS=$ac_libobjs 5543 5544LTLIBOBJS=$ac_ltlibobjs 5545 5546 5547 5548: ${CONFIG_STATUS=./config.status} 5549ac_clean_files_save=$ac_clean_files 5550ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5551{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5552echo "$as_me: creating $CONFIG_STATUS" >&6;} 5553cat >$CONFIG_STATUS <<_ACEOF 5554#! $SHELL 5555# Generated by $as_me. 5556# Run this file to recreate the current configuration. 5557# Compiler output produced by configure, useful for debugging 5558# configure, is in config.log if it exists. 5559 5560debug=false 5561SHELL=\${CONFIG_SHELL-$SHELL} 5562_ACEOF 5563 5564cat >>$CONFIG_STATUS <<\_ACEOF 5565## --------------------- ## 5566## M4sh Initialization. ## 5567## --------------------- ## 5568 5569# Be Bourne compatible 5570if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5571 emulate sh 5572 NULLCMD=: 5573 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5574 # is contrary to our usage. Disable this feature. 5575 alias -g '${1+"$@"}'='"$@"' 5576elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5577 set -o posix 5578fi 5579 5580# Support unset when possible. 5581if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5582 as_unset=unset 5583else 5584 as_unset=false 5585fi 5586 5587 5588# Work around bugs in pre-3.0 UWIN ksh. 5589$as_unset ENV MAIL MAILPATH 5590PS1='$ ' 5591PS2='> ' 5592PS4='+ ' 5593 5594# NLS nuisances. 5595for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME 5596do 5597 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 5598 eval $as_var=C; export $as_var 5599 else 5600 $as_unset $as_var 5601 fi 5602done 5603 5604# Required to use basename. 5605if expr a : '\(a\)' >/dev/null 2>&1; then 5606 as_expr=expr 5607else 5608 as_expr=false 5609fi 5610 5611if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5612 as_basename=basename 5613else 5614 as_basename=false 5615fi 5616 5617 5618# Name of the executable. 5619as_me=`$as_basename "$0" || 5620$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5621 X"$0" : 'X\(//\)$' \| \ 5622 X"$0" : 'X\(/\)$' \| \ 5623 . : '\(.\)' 2>/dev/null || 5624echo X/"$0" | 5625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5626 /^X\/\(\/\/\)$/{ s//\1/; q; } 5627 /^X\/\(\/\).*/{ s//\1/; q; } 5628 s/.*/./; q'` 5629 5630 5631# PATH needs CR, and LINENO needs CR and PATH. 5632# Avoid depending upon Character Ranges. 5633as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5635as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5636as_cr_digits='0123456789' 5637as_cr_alnum=$as_cr_Letters$as_cr_digits 5638 5639# The user is always right. 5640if test "${PATH_SEPARATOR+set}" != set; then 5641 echo "#! /bin/sh" >conftest.sh 5642 echo "exit 0" >>conftest.sh 5643 chmod +x conftest.sh 5644 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then 5645 PATH_SEPARATOR=';' 5646 else 5647 PATH_SEPARATOR=: 5648 fi 5649 rm -f conftest.sh 5650fi 5651 5652 5653 as_lineno_1=$LINENO 5654 as_lineno_2=$LINENO 5655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5656 test "x$as_lineno_1" != "x$as_lineno_2" && 5657 test "x$as_lineno_3" = "x$as_lineno_2" || { 5658 # Find who we are. Look in the path if we contain no path at all 5659 # relative or not. 5660 case $0 in 5661 *[\\/]* ) as_myself=$0 ;; 5662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5663for as_dir in $PATH 5664do 5665 IFS=$as_save_IFS 5666 test -z "$as_dir" && as_dir=. 5667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5668done 5669 5670 ;; 5671 esac 5672 # We did not find ourselves, most probably we were run as `sh COMMAND' 5673 # in which case we are not to be found in the path. 5674 if test "x$as_myself" = x; then 5675 as_myself=$0 5676 fi 5677 if test ! -f "$as_myself"; then 5678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5679echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5680 { (exit 1); exit 1; }; } 5681 fi 5682 case $CONFIG_SHELL in 5683 '') 5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5685for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5686do 5687 IFS=$as_save_IFS 5688 test -z "$as_dir" && as_dir=. 5689 for as_base in sh bash ksh sh5; do 5690 case $as_dir in 5691 /*) 5692 if ("$as_dir/$as_base" -c ' 5693 as_lineno_1=$LINENO 5694 as_lineno_2=$LINENO 5695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5696 test "x$as_lineno_1" != "x$as_lineno_2" && 5697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5698 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5699 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5700 CONFIG_SHELL=$as_dir/$as_base 5701 export CONFIG_SHELL 5702 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5703 fi;; 5704 esac 5705 done 5706done 5707;; 5708 esac 5709 5710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5711 # uniformly replaced by the line number. The first 'sed' inserts a 5712 # line-number line before each line; the second 'sed' does the real 5713 # work. The second script uses 'N' to pair each line-number line 5714 # with the numbered line, and appends trailing '-' during 5715 # substitution so that $LINENO is not a special case at line end. 5716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5718 sed '=' <$as_myself | 5719 sed ' 5720 N 5721 s,$,-, 5722 : loop 5723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5724 t loop 5725 s,-$,, 5726 s,^['$as_cr_digits']*\n,, 5727 ' >$as_me.lineno && 5728 chmod +x $as_me.lineno || 5729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5730echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5731 { (exit 1); exit 1; }; } 5732 5733 # Don't try to exec as it changes $[0], causing all sort of problems 5734 # (the dirname of $[0] is not the place where we might find the 5735 # original and so on. Autoconf is especially sensible to this). 5736 . ./$as_me.lineno 5737 # Exit status is that of the last command. 5738 exit 5739} 5740 5741 5742case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5743 *c*,-n*) ECHO_N= ECHO_C=' 5744' ECHO_T=' ' ;; 5745 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5746 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5747esac 5748 5749if expr a : '\(a\)' >/dev/null 2>&1; then 5750 as_expr=expr 5751else 5752 as_expr=false 5753fi 5754 5755rm -f conf$$ conf$$.exe conf$$.file 5756echo >conf$$.file 5757if ln -s conf$$.file conf$$ 2>/dev/null; then 5758 # We could just check for DJGPP; but this test a) works b) is more generic 5759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5760 if test -f conf$$.exe; then 5761 # Don't use ln at all; we don't have any links 5762 as_ln_s='cp -p' 5763 else 5764 as_ln_s='ln -s' 5765 fi 5766elif ln conf$$.file conf$$ 2>/dev/null; then 5767 as_ln_s=ln 5768else 5769 as_ln_s='cp -p' 5770fi 5771rm -f conf$$ conf$$.exe conf$$.file 5772 5773if mkdir -p . 2>/dev/null; then 5774 as_mkdir_p=: 5775else 5776 as_mkdir_p=false 5777fi 5778 5779as_executable_p="test -f" 5780 5781# Sed expression to map a string onto a valid CPP name. 5782as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 5783 5784# Sed expression to map a string onto a valid variable name. 5785as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 5786 5787 5788# IFS 5789# We need space, tab and new line, in precisely that order. 5790as_nl=' 5791' 5792IFS=" $as_nl" 5793 5794# CDPATH. 5795$as_unset CDPATH 5796 5797exec 6>&1 5798 5799# Open the log real soon, to keep \$[0] and so on meaningful, and to 5800# report actual input values of CONFIG_FILES etc. instead of their 5801# values after options handling. Logging --version etc. is OK. 5802exec 5>>config.log 5803{ 5804 echo 5805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5806## Running $as_me. ## 5807_ASBOX 5808} >&5 5809cat >&5 <<_CSEOF 5810 5811This file was extended by less $as_me 1, which was 5812generated by GNU Autoconf 2.54. Invocation command line was 5813 5814 CONFIG_FILES = $CONFIG_FILES 5815 CONFIG_HEADERS = $CONFIG_HEADERS 5816 CONFIG_LINKS = $CONFIG_LINKS 5817 CONFIG_COMMANDS = $CONFIG_COMMANDS 5818 $ $0 $@ 5819 5820_CSEOF 5821echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5822echo >&5 5823_ACEOF 5824 5825# Files that config.status was made for. 5826if test -n "$ac_config_files"; then 5827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5828fi 5829 5830if test -n "$ac_config_headers"; then 5831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5832fi 5833 5834if test -n "$ac_config_links"; then 5835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5836fi 5837 5838if test -n "$ac_config_commands"; then 5839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5840fi 5841 5842cat >>$CONFIG_STATUS <<\_ACEOF 5843 5844ac_cs_usage="\ 5845\`$as_me' instantiates files from templates according to the 5846current configuration. 5847 5848Usage: $0 [OPTIONS] [FILE]... 5849 5850 -h, --help print this help, then exit 5851 -V, --version print version number, then exit 5852 -d, --debug don't remove temporary files 5853 --recheck update $as_me by reconfiguring in the same conditions 5854 --file=FILE[:TEMPLATE] 5855 instantiate the configuration file FILE 5856 --header=FILE[:TEMPLATE] 5857 instantiate the configuration header FILE 5858 5859Configuration files: 5860$config_files 5861 5862Configuration headers: 5863$config_headers 5864 5865Report bugs to <bug-autoconf@gnu.org>." 5866_ACEOF 5867 5868cat >>$CONFIG_STATUS <<_ACEOF 5869ac_cs_version="\\ 5870less config.status 1 5871configured by $0, generated by GNU Autoconf 2.54, 5872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5873 5874Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5875Free Software Foundation, Inc. 5876This config.status script is free software; the Free Software Foundation 5877gives unlimited permission to copy, distribute and modify it." 5878srcdir=$srcdir 5879INSTALL="$INSTALL" 5880_ACEOF 5881 5882cat >>$CONFIG_STATUS <<\_ACEOF 5883# If no file are specified by the user, then we need to provide default 5884# value. By we need to know if files were specified by the user. 5885ac_need_defaults=: 5886while test $# != 0 5887do 5888 case $1 in 5889 --*=*) 5890 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5891 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5892 ac_shift=: 5893 ;; 5894 -*) 5895 ac_option=$1 5896 ac_optarg=$2 5897 ac_shift=shift 5898 ;; 5899 *) # This is not an option, so the user has probably given explicit 5900 # arguments. 5901 ac_option=$1 5902 ac_need_defaults=false;; 5903 esac 5904 5905 case $ac_option in 5906 # Handling of the options. 5907_ACEOF 5908cat >>$CONFIG_STATUS <<_ACEOF 5909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5910 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5911 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5912_ACEOF 5913cat >>$CONFIG_STATUS <<\_ACEOF 5914 --version | --vers* | -V ) 5915 echo "$ac_cs_version"; exit 0 ;; 5916 --he | --h) 5917 # Conflict between --help and --header 5918 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5919Try \`$0 --help' for more information." >&5 5920echo "$as_me: error: ambiguous option: $1 5921Try \`$0 --help' for more information." >&2;} 5922 { (exit 1); exit 1; }; };; 5923 --help | --hel | -h ) 5924 echo "$ac_cs_usage"; exit 0 ;; 5925 --debug | --d* | -d ) 5926 debug=: ;; 5927 --file | --fil | --fi | --f ) 5928 $ac_shift 5929 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5930 ac_need_defaults=false;; 5931 --header | --heade | --head | --hea ) 5932 $ac_shift 5933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5934 ac_need_defaults=false;; 5935 5936 # This is an error. 5937 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5938Try \`$0 --help' for more information." >&5 5939echo "$as_me: error: unrecognized option: $1 5940Try \`$0 --help' for more information." >&2;} 5941 { (exit 1); exit 1; }; } ;; 5942 5943 *) ac_config_targets="$ac_config_targets $1" ;; 5944 5945 esac 5946 shift 5947done 5948 5949_ACEOF 5950 5951 5952 5953 5954 5955cat >>$CONFIG_STATUS <<\_ACEOF 5956for ac_config_target in $ac_config_targets 5957do 5958 case "$ac_config_target" in 5959 # Handling of arguments. 5960 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5961 "defines.h" ) CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;; 5962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5963echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5964 { (exit 1); exit 1; }; };; 5965 esac 5966done 5967 5968# If the user did not use the arguments to specify the items to instantiate, 5969# then the envvar interface is used. Set only those that are not. 5970# We use the long form for the default assignment because of an extremely 5971# bizarre bug on SunOS 4.1.3. 5972if $ac_need_defaults; then 5973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5975fi 5976 5977# Create a temporary directory, and hook for its removal unless debugging. 5978$debug || 5979{ 5980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5981 trap '{ (exit 1); exit 1; }' 1 2 13 15 5982} 5983 5984# Create a (secure) tmp directory for tmp files. 5985: ${TMPDIR=/tmp} 5986{ 5987 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5988 test -n "$tmp" && test -d "$tmp" 5989} || 5990{ 5991 tmp=$TMPDIR/cs$$-$RANDOM 5992 (umask 077 && mkdir $tmp) 5993} || 5994{ 5995 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5996 { (exit 1); exit 1; } 5997} 5998 5999_ACEOF 6000 6001cat >>$CONFIG_STATUS <<_ACEOF 6002 6003# 6004# CONFIG_FILES section. 6005# 6006 6007# No need to generate the scripts if there are no CONFIG_FILES. 6008# This happens for instance when ./config.status config.h 6009if test -n "\$CONFIG_FILES"; then 6010 # Protect against being on the right side of a sed subst in config.status. 6011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 6012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 6013s,@SHELL@,$SHELL,;t t 6014s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6015s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6016s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6017s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6018s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6019s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6020s,@exec_prefix@,$exec_prefix,;t t 6021s,@prefix@,$prefix,;t t 6022s,@program_transform_name@,$program_transform_name,;t t 6023s,@bindir@,$bindir,;t t 6024s,@sbindir@,$sbindir,;t t 6025s,@libexecdir@,$libexecdir,;t t 6026s,@datadir@,$datadir,;t t 6027s,@sysconfdir@,$sysconfdir,;t t 6028s,@sharedstatedir@,$sharedstatedir,;t t 6029s,@localstatedir@,$localstatedir,;t t 6030s,@libdir@,$libdir,;t t 6031s,@includedir@,$includedir,;t t 6032s,@oldincludedir@,$oldincludedir,;t t 6033s,@infodir@,$infodir,;t t 6034s,@mandir@,$mandir,;t t 6035s,@build_alias@,$build_alias,;t t 6036s,@host_alias@,$host_alias,;t t 6037s,@target_alias@,$target_alias,;t t 6038s,@DEFS@,$DEFS,;t t 6039s,@ECHO_C@,$ECHO_C,;t t 6040s,@ECHO_N@,$ECHO_N,;t t 6041s,@ECHO_T@,$ECHO_T,;t t 6042s,@LIBS@,$LIBS,;t t 6043s,@CC@,$CC,;t t 6044s,@CFLAGS@,$CFLAGS,;t t 6045s,@LDFLAGS@,$LDFLAGS,;t t 6046s,@CPPFLAGS@,$CPPFLAGS,;t t 6047s,@ac_ct_CC@,$ac_ct_CC,;t t 6048s,@EXEEXT@,$EXEEXT,;t t 6049s,@OBJEXT@,$OBJEXT,;t t 6050s,@CPP@,$CPP,;t t 6051s,@EGREP@,$EGREP,;t t 6052s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 6053s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 6054s,@INSTALL_DATA@,$INSTALL_DATA,;t t 6055s,@REGEX_O@,$REGEX_O,;t t 6056s,@LIBOBJS@,$LIBOBJS,;t t 6057s,@LTLIBOBJS@,$LTLIBOBJS,;t t 6058CEOF 6059 6060_ACEOF 6061 6062 cat >>$CONFIG_STATUS <<\_ACEOF 6063 # Split the substitutions into bite-sized pieces for seds with 6064 # small command number limits, like on Digital OSF/1 and HP-UX. 6065 ac_max_sed_lines=48 6066 ac_sed_frag=1 # Number of current file. 6067 ac_beg=1 # First line for current file. 6068 ac_end=$ac_max_sed_lines # Line after last line for current file. 6069 ac_more_lines=: 6070 ac_sed_cmds= 6071 while $ac_more_lines; do 6072 if test $ac_beg -gt 1; then 6073 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6074 else 6075 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6076 fi 6077 if test ! -s $tmp/subs.frag; then 6078 ac_more_lines=false 6079 else 6080 # The purpose of the label and of the branching condition is to 6081 # speed up the sed processing (if there are no `@' at all, there 6082 # is no need to browse any of the substitutions). 6083 # These are the two extra sed commands mentioned above. 6084 (echo ':t 6085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 6086 if test -z "$ac_sed_cmds"; then 6087 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 6088 else 6089 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 6090 fi 6091 ac_sed_frag=`expr $ac_sed_frag + 1` 6092 ac_beg=$ac_end 6093 ac_end=`expr $ac_end + $ac_max_sed_lines` 6094 fi 6095 done 6096 if test -z "$ac_sed_cmds"; then 6097 ac_sed_cmds=cat 6098 fi 6099fi # test -n "$CONFIG_FILES" 6100 6101_ACEOF 6102cat >>$CONFIG_STATUS <<\_ACEOF 6103for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 6104 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6105 case $ac_file in 6106 - | *:- | *:-:* ) # input from stdin 6107 cat >$tmp/stdin 6108 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6110 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6112 * ) ac_file_in=$ac_file.in ;; 6113 esac 6114 6115 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 6116 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6117$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6118 X"$ac_file" : 'X\(//\)[^/]' \| \ 6119 X"$ac_file" : 'X\(//\)$' \| \ 6120 X"$ac_file" : 'X\(/\)' \| \ 6121 . : '\(.\)' 2>/dev/null || 6122echo X"$ac_file" | 6123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6124 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6125 /^X\(\/\/\)$/{ s//\1/; q; } 6126 /^X\(\/\).*/{ s//\1/; q; } 6127 s/.*/./; q'` 6128 { if $as_mkdir_p; then 6129 mkdir -p "$ac_dir" 6130 else 6131 as_dir="$ac_dir" 6132 as_dirs= 6133 while test ! -d "$as_dir"; do 6134 as_dirs="$as_dir $as_dirs" 6135 as_dir=`(dirname "$as_dir") 2>/dev/null || 6136$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6137 X"$as_dir" : 'X\(//\)[^/]' \| \ 6138 X"$as_dir" : 'X\(//\)$' \| \ 6139 X"$as_dir" : 'X\(/\)' \| \ 6140 . : '\(.\)' 2>/dev/null || 6141echo X"$as_dir" | 6142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6143 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6144 /^X\(\/\/\)$/{ s//\1/; q; } 6145 /^X\(\/\).*/{ s//\1/; q; } 6146 s/.*/./; q'` 6147 done 6148 test ! -n "$as_dirs" || mkdir $as_dirs 6149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6150echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6151 { (exit 1); exit 1; }; }; } 6152 6153 ac_builddir=. 6154 6155if test "$ac_dir" != .; then 6156 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6157 # A "../" for each directory in $ac_dir_suffix. 6158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6159else 6160 ac_dir_suffix= ac_top_builddir= 6161fi 6162 6163case $srcdir in 6164 .) # No --srcdir option. We are building in place. 6165 ac_srcdir=. 6166 if test -z "$ac_top_builddir"; then 6167 ac_top_srcdir=. 6168 else 6169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6170 fi ;; 6171 [\\/]* | ?:[\\/]* ) # Absolute path. 6172 ac_srcdir=$srcdir$ac_dir_suffix; 6173 ac_top_srcdir=$srcdir ;; 6174 *) # Relative path. 6175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6176 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6177esac 6178# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 6179# absolute. 6180ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 6181ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 6182ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 6183ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 6184 6185 6186 case $INSTALL in 6187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6188 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 6189 esac 6190 6191 if test x"$ac_file" != x-; then 6192 { echo "$as_me:$LINENO: creating $ac_file" >&5 6193echo "$as_me: creating $ac_file" >&6;} 6194 rm -f "$ac_file" 6195 fi 6196 # Let's still pretend it is `configure' which instantiates (i.e., don't 6197 # use $as_me), people would be surprised to read: 6198 # /* config.h. Generated by config.status. */ 6199 if test x"$ac_file" = x-; then 6200 configure_input= 6201 else 6202 configure_input="$ac_file. " 6203 fi 6204 configure_input=$configure_input"Generated from `echo $ac_file_in | 6205 sed 's,.*/,,'` by configure." 6206 6207 # First look for the input files in the build tree, otherwise in the 6208 # src tree. 6209 ac_file_inputs=`IFS=: 6210 for f in $ac_file_in; do 6211 case $f in 6212 -) echo $tmp/stdin ;; 6213 [\\/$]*) 6214 # Absolute (can't be DOS-style, as IFS=:) 6215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6216echo "$as_me: error: cannot find input file: $f" >&2;} 6217 { (exit 1); exit 1; }; } 6218 echo $f;; 6219 *) # Relative 6220 if test -f "$f"; then 6221 # Build tree 6222 echo $f 6223 elif test -f "$srcdir/$f"; then 6224 # Source tree 6225 echo $srcdir/$f 6226 else 6227 # /dev/null tree 6228 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6229echo "$as_me: error: cannot find input file: $f" >&2;} 6230 { (exit 1); exit 1; }; } 6231 fi;; 6232 esac 6233 done` || { (exit 1); exit 1; } 6234_ACEOF 6235cat >>$CONFIG_STATUS <<_ACEOF 6236 sed "$ac_vpsub 6237$extrasub 6238_ACEOF 6239cat >>$CONFIG_STATUS <<\_ACEOF 6240:t 6241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6242s,@configure_input@,$configure_input,;t t 6243s,@srcdir@,$ac_srcdir,;t t 6244s,@abs_srcdir@,$ac_abs_srcdir,;t t 6245s,@top_srcdir@,$ac_top_srcdir,;t t 6246s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 6247s,@builddir@,$ac_builddir,;t t 6248s,@abs_builddir@,$ac_abs_builddir,;t t 6249s,@top_builddir@,$ac_top_builddir,;t t 6250s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 6251s,@INSTALL@,$ac_INSTALL,;t t 6252" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6253 rm -f $tmp/stdin 6254 if test x"$ac_file" != x-; then 6255 mv $tmp/out $ac_file 6256 else 6257 cat $tmp/out 6258 rm -f $tmp/out 6259 fi 6260 6261done 6262_ACEOF 6263cat >>$CONFIG_STATUS <<\_ACEOF 6264 6265# 6266# CONFIG_HEADER section. 6267# 6268 6269# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6270# NAME is the cpp macro being defined and VALUE is the value it is being given. 6271# 6272# ac_d sets the value in "#define NAME VALUE" lines. 6273ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6274ac_dB='[ ].*$,\1#\2' 6275ac_dC=' ' 6276ac_dD=',;t' 6277# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6278ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6279ac_uB='$,\1#\2define\3' 6280ac_uC=' ' 6281ac_uD=',;t' 6282 6283for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 6284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6285 case $ac_file in 6286 - | *:- | *:-:* ) # input from stdin 6287 cat >$tmp/stdin 6288 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6290 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6292 * ) ac_file_in=$ac_file.in ;; 6293 esac 6294 6295 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 6296echo "$as_me: creating $ac_file" >&6;} 6297 6298 # First look for the input files in the build tree, otherwise in the 6299 # src tree. 6300 ac_file_inputs=`IFS=: 6301 for f in $ac_file_in; do 6302 case $f in 6303 -) echo $tmp/stdin ;; 6304 [\\/$]*) 6305 # Absolute (can't be DOS-style, as IFS=:) 6306 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6307echo "$as_me: error: cannot find input file: $f" >&2;} 6308 { (exit 1); exit 1; }; } 6309 echo $f;; 6310 *) # Relative 6311 if test -f "$f"; then 6312 # Build tree 6313 echo $f 6314 elif test -f "$srcdir/$f"; then 6315 # Source tree 6316 echo $srcdir/$f 6317 else 6318 # /dev/null tree 6319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6320echo "$as_me: error: cannot find input file: $f" >&2;} 6321 { (exit 1); exit 1; }; } 6322 fi;; 6323 esac 6324 done` || { (exit 1); exit 1; } 6325 # Remove the trailing spaces. 6326 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6327 6328_ACEOF 6329 6330# Transform confdefs.h into two sed scripts, `conftest.defines' and 6331# `conftest.undefs', that substitutes the proper values into 6332# config.h.in to produce config.h. The first handles `#define' 6333# templates, and the second `#undef' templates. 6334# And first: Protect against being on the right side of a sed subst in 6335# config.status. Protect against being in an unquoted here document 6336# in config.status. 6337rm -f conftest.defines conftest.undefs 6338# Using a here document instead of a string reduces the quoting nightmare. 6339# Putting comments in sed scripts is not portable. 6340# 6341# `end' is used to avoid that the second main sed command (meant for 6342# 0-ary CPP macros) applies to n-ary macro definitions. 6343# See the Autoconf documentation for `clear'. 6344cat >confdef2sed.sed <<\_ACEOF 6345s/[\\&,]/\\&/g 6346s,[\\$`],\\&,g 6347t clear 6348: clear 6349s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6350t end 6351s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6352: end 6353_ACEOF 6354# If some macros were called several times there might be several times 6355# the same #defines, which is useless. Nevertheless, we may not want to 6356# sort them, since we want the *last* AC-DEFINE to be honored. 6357uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6358sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6359rm -f confdef2sed.sed 6360 6361# This sed command replaces #undef with comments. This is necessary, for 6362# example, in the case of _POSIX_SOURCE, which is predefined and required 6363# on some systems where configure will not decide to define it. 6364cat >>conftest.undefs <<\_ACEOF 6365s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6366_ACEOF 6367 6368# Break up conftest.defines because some shells have a limit on the size 6369# of here documents, and old seds have small limits too (100 cmds). 6370echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6371echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6372echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6373echo ' :' >>$CONFIG_STATUS 6374rm -f conftest.tail 6375while grep . conftest.defines >/dev/null 6376do 6377 # Write a limited-size here document to $tmp/defines.sed. 6378 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6379 # Speed up: don't consider the non `#define' lines. 6380 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6381 # Work around the forget-to-reset-the-flag bug. 6382 echo 't clr' >>$CONFIG_STATUS 6383 echo ': clr' >>$CONFIG_STATUS 6384 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6385 echo 'CEOF 6386 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6387 rm -f $tmp/in 6388 mv $tmp/out $tmp/in 6389' >>$CONFIG_STATUS 6390 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6391 rm -f conftest.defines 6392 mv conftest.tail conftest.defines 6393done 6394rm -f conftest.defines 6395echo ' fi # grep' >>$CONFIG_STATUS 6396echo >>$CONFIG_STATUS 6397 6398# Break up conftest.undefs because some shells have a limit on the size 6399# of here documents, and old seds have small limits too (100 cmds). 6400echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6401rm -f conftest.tail 6402while grep . conftest.undefs >/dev/null 6403do 6404 # Write a limited-size here document to $tmp/undefs.sed. 6405 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6406 # Speed up: don't consider the non `#undef' 6407 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6408 # Work around the forget-to-reset-the-flag bug. 6409 echo 't clr' >>$CONFIG_STATUS 6410 echo ': clr' >>$CONFIG_STATUS 6411 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6412 echo 'CEOF 6413 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6414 rm -f $tmp/in 6415 mv $tmp/out $tmp/in 6416' >>$CONFIG_STATUS 6417 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6418 rm -f conftest.undefs 6419 mv conftest.tail conftest.undefs 6420done 6421rm -f conftest.undefs 6422 6423cat >>$CONFIG_STATUS <<\_ACEOF 6424 # Let's still pretend it is `configure' which instantiates (i.e., don't 6425 # use $as_me), people would be surprised to read: 6426 # /* config.h. Generated by config.status. */ 6427 if test x"$ac_file" = x-; then 6428 echo "/* Generated by configure. */" >$tmp/config.h 6429 else 6430 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6431 fi 6432 cat $tmp/in >>$tmp/config.h 6433 rm -f $tmp/in 6434 if test x"$ac_file" != x-; then 6435 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 6436 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6437echo "$as_me: $ac_file is unchanged" >&6;} 6438 else 6439 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6440$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6441 X"$ac_file" : 'X\(//\)[^/]' \| \ 6442 X"$ac_file" : 'X\(//\)$' \| \ 6443 X"$ac_file" : 'X\(/\)' \| \ 6444 . : '\(.\)' 2>/dev/null || 6445echo X"$ac_file" | 6446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6447 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6448 /^X\(\/\/\)$/{ s//\1/; q; } 6449 /^X\(\/\).*/{ s//\1/; q; } 6450 s/.*/./; q'` 6451 { if $as_mkdir_p; then 6452 mkdir -p "$ac_dir" 6453 else 6454 as_dir="$ac_dir" 6455 as_dirs= 6456 while test ! -d "$as_dir"; do 6457 as_dirs="$as_dir $as_dirs" 6458 as_dir=`(dirname "$as_dir") 2>/dev/null || 6459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6460 X"$as_dir" : 'X\(//\)[^/]' \| \ 6461 X"$as_dir" : 'X\(//\)$' \| \ 6462 X"$as_dir" : 'X\(/\)' \| \ 6463 . : '\(.\)' 2>/dev/null || 6464echo X"$as_dir" | 6465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6466 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6467 /^X\(\/\/\)$/{ s//\1/; q; } 6468 /^X\(\/\).*/{ s//\1/; q; } 6469 s/.*/./; q'` 6470 done 6471 test ! -n "$as_dirs" || mkdir $as_dirs 6472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6473echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6474 { (exit 1); exit 1; }; }; } 6475 6476 rm -f $ac_file 6477 mv $tmp/config.h $ac_file 6478 fi 6479 else 6480 cat $tmp/config.h 6481 rm -f $tmp/config.h 6482 fi 6483done 6484_ACEOF 6485 6486cat >>$CONFIG_STATUS <<\_ACEOF 6487 6488{ (exit 0); exit 0; } 6489_ACEOF 6490chmod +x $CONFIG_STATUS 6491ac_clean_files=$ac_clean_files_save 6492 6493 6494# configure is writing to config.log, and then calls config.status. 6495# config.status does its own redirection, appending to config.log. 6496# Unfortunately, on DOS this fails, as config.log is still kept open 6497# by configure, so config.status won't be able to write to it; its 6498# output is simply discarded. So we exec the FD to /dev/null, 6499# effectively closing config.log, so it can be properly (re)opened and 6500# appended to by config.status. When coming back to configure, we 6501# need to make the FD available again. 6502if test "$no_create" != yes; then 6503 ac_cs_success=: 6504 exec 5>/dev/null 6505 $SHELL $CONFIG_STATUS || ac_cs_success=false 6506 exec 5>>config.log 6507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6508 # would make configure fail if this is the last instruction. 6509 $ac_cs_success || { (exit 1); exit 1; } 6510fi 6511 6512