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