1157184Sache#! /bin/sh 2157184Sache# Guess values for system-dependent variables and create Makefiles. 3157184Sache# Generated by GNU Autoconf 2.59. 4157184Sache# 5157184Sache# Copyright (C) 2003 Free Software Foundation, Inc. 6157184Sache# This configure script is free software; the Free Software Foundation 7157184Sache# gives unlimited permission to copy, distribute and modify it. 8157184Sache## --------------------- ## 9157184Sache## M4sh Initialization. ## 10157184Sache## --------------------- ## 11157184Sache 12157184Sache# Be Bourne compatible 13157184Sacheif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14157184Sache emulate sh 15157184Sache NULLCMD=: 16157184Sache # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17157184Sache # is contrary to our usage. Disable this feature. 18157184Sache alias -g '${1+"$@"}'='"$@"' 19157184Sacheelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20157184Sache set -o posix 21157184Sachefi 22157184SacheDUALCASE=1; export DUALCASE # for MKS sh 23157184Sache 24157184Sache# Support unset when possible. 25157184Sacheif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26157184Sache as_unset=unset 27157184Sacheelse 28157184Sache as_unset=false 29157184Sachefi 30157184Sache 31157184Sache 32157184Sache# Work around bugs in pre-3.0 UWIN ksh. 33157184Sache$as_unset ENV MAIL MAILPATH 34157184SachePS1='$ ' 35157184SachePS2='> ' 36157184SachePS4='+ ' 37157184Sache 38157184Sache# NLS nuisances. 39157184Sachefor as_var in \ 40157184Sache LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41157184Sache LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42157184Sache LC_TELEPHONE LC_TIME 43157184Sachedo 44157184Sache if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45157184Sache eval $as_var=C; export $as_var 46157184Sache else 47157184Sache $as_unset $as_var 48157184Sache fi 49157184Sachedone 50157184Sache 51157184Sache# Required to use basename. 52157184Sacheif expr a : '\(a\)' >/dev/null 2>&1; then 53157184Sache as_expr=expr 54157184Sacheelse 55157184Sache as_expr=false 56157184Sachefi 57157184Sache 58157184Sacheif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59157184Sache as_basename=basename 60157184Sacheelse 61157184Sache as_basename=false 62157184Sachefi 63157184Sache 64157184Sache 65157184Sache# Name of the executable. 66157184Sacheas_me=`$as_basename "$0" || 67157184Sache$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68157184Sache X"$0" : 'X\(//\)$' \| \ 69157184Sache X"$0" : 'X\(/\)$' \| \ 70157184Sache . : '\(.\)' 2>/dev/null || 71157184Sacheecho X/"$0" | 72157184Sache sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73157184Sache /^X\/\(\/\/\)$/{ s//\1/; q; } 74157184Sache /^X\/\(\/\).*/{ s//\1/; q; } 75157184Sache s/.*/./; q'` 76157184Sache 77157184Sache 78157184Sache# PATH needs CR, and LINENO needs CR and PATH. 79157184Sache# Avoid depending upon Character Ranges. 80157184Sacheas_cr_letters='abcdefghijklmnopqrstuvwxyz' 81157184Sacheas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82157184Sacheas_cr_Letters=$as_cr_letters$as_cr_LETTERS 83157184Sacheas_cr_digits='0123456789' 84157184Sacheas_cr_alnum=$as_cr_Letters$as_cr_digits 85157184Sache 86157184Sache# The user is always right. 87157184Sacheif test "${PATH_SEPARATOR+set}" != set; then 88157184Sache echo "#! /bin/sh" >conf$$.sh 89157184Sache echo "exit 0" >>conf$$.sh 90157184Sache chmod +x conf$$.sh 91157184Sache if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92157184Sache PATH_SEPARATOR=';' 93157184Sache else 94157184Sache PATH_SEPARATOR=: 95157184Sache fi 96157184Sache rm -f conf$$.sh 97157184Sachefi 98157184Sache 99157184Sache 100157184Sache as_lineno_1=$LINENO 101157184Sache as_lineno_2=$LINENO 102157184Sache as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103157184Sache test "x$as_lineno_1" != "x$as_lineno_2" && 104157184Sache test "x$as_lineno_3" = "x$as_lineno_2" || { 105157184Sache # Find who we are. Look in the path if we contain no path at all 106157184Sache # relative or not. 107157184Sache case $0 in 108157184Sache *[\\/]* ) as_myself=$0 ;; 109157184Sache *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110157184Sachefor as_dir in $PATH 111157184Sachedo 112157184Sache IFS=$as_save_IFS 113157184Sache test -z "$as_dir" && as_dir=. 114157184Sache test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115157184Sachedone 116157184Sache 117157184Sache ;; 118157184Sache esac 119157184Sache # We did not find ourselves, most probably we were run as `sh COMMAND' 120157184Sache # in which case we are not to be found in the path. 121157184Sache if test "x$as_myself" = x; then 122157184Sache as_myself=$0 123157184Sache fi 124157184Sache if test ! -f "$as_myself"; then 125157184Sache { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126157184Sache { (exit 1); exit 1; }; } 127157184Sache fi 128157184Sache case $CONFIG_SHELL in 129157184Sache '') 130157184Sache as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131157184Sachefor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132157184Sachedo 133157184Sache IFS=$as_save_IFS 134157184Sache test -z "$as_dir" && as_dir=. 135157184Sache for as_base in sh bash ksh sh5; do 136157184Sache case $as_dir in 137157184Sache /*) 138157184Sache if ("$as_dir/$as_base" -c ' 139157184Sache as_lineno_1=$LINENO 140157184Sache as_lineno_2=$LINENO 141157184Sache as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142157184Sache test "x$as_lineno_1" != "x$as_lineno_2" && 143157184Sache test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144157184Sache $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145157184Sache $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146157184Sache CONFIG_SHELL=$as_dir/$as_base 147157184Sache export CONFIG_SHELL 148157184Sache exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149157184Sache fi;; 150157184Sache esac 151157184Sache done 152157184Sachedone 153157184Sache;; 154157184Sache esac 155157184Sache 156157184Sache # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157157184Sache # uniformly replaced by the line number. The first 'sed' inserts a 158157184Sache # line-number line before each line; the second 'sed' does the real 159157184Sache # work. The second script uses 'N' to pair each line-number line 160157184Sache # with the numbered line, and appends trailing '-' during 161157184Sache # substitution so that $LINENO is not a special case at line end. 162157184Sache # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163157184Sache # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164157184Sache sed '=' <$as_myself | 165157184Sache sed ' 166157184Sache N 167157184Sache s,$,-, 168157184Sache : loop 169157184Sache s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170157184Sache t loop 171157184Sache s,-$,, 172157184Sache s,^['$as_cr_digits']*\n,, 173157184Sache ' >$as_me.lineno && 174157184Sache chmod +x $as_me.lineno || 175157184Sache { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176157184Sache { (exit 1); exit 1; }; } 177157184Sache 178157184Sache # Don't try to exec as it changes $[0], causing all sort of problems 179157184Sache # (the dirname of $[0] is not the place where we might find the 180157184Sache # original and so on. Autoconf is especially sensible to this). 181157184Sache . ./$as_me.lineno 182157184Sache # Exit status is that of the last command. 183157184Sache exit 184157184Sache} 185157184Sache 186157184Sache 187157184Sachecase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188157184Sache *c*,-n*) ECHO_N= ECHO_C=' 189157184Sache' ECHO_T=' ' ;; 190157184Sache *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191157184Sache *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192157184Sacheesac 193157184Sache 194157184Sacheif expr a : '\(a\)' >/dev/null 2>&1; then 195157184Sache as_expr=expr 196157184Sacheelse 197157184Sache as_expr=false 198157184Sachefi 199157184Sache 200157184Sacherm -f conf$$ conf$$.exe conf$$.file 201157184Sacheecho >conf$$.file 202157184Sacheif ln -s conf$$.file conf$$ 2>/dev/null; then 203157184Sache # We could just check for DJGPP; but this test a) works b) is more generic 204157184Sache # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205157184Sache if test -f conf$$.exe; then 206157184Sache # Don't use ln at all; we don't have any links 207157184Sache as_ln_s='cp -p' 208157184Sache else 209157184Sache as_ln_s='ln -s' 210157184Sache fi 211157184Sacheelif ln conf$$.file conf$$ 2>/dev/null; then 212157184Sache as_ln_s=ln 213157184Sacheelse 214157184Sache as_ln_s='cp -p' 215157184Sachefi 216157184Sacherm -f conf$$ conf$$.exe conf$$.file 217157184Sache 218157184Sacheif mkdir -p . 2>/dev/null; then 219157184Sache as_mkdir_p=: 220157184Sacheelse 221157184Sache test -d ./-p && rmdir ./-p 222157184Sache as_mkdir_p=false 223157184Sachefi 224157184Sache 225157184Sacheas_executable_p="test -f" 226157184Sache 227157184Sache# Sed expression to map a string onto a valid CPP name. 228157184Sacheas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229157184Sache 230157184Sache# Sed expression to map a string onto a valid variable name. 231157184Sacheas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232157184Sache 233157184Sache 234157184Sache# IFS 235157184Sache# We need space, tab and new line, in precisely that order. 236157184Sacheas_nl=' 237157184Sache' 238157184SacheIFS=" $as_nl" 239157184Sache 240157184Sache# CDPATH. 241157184Sache$as_unset CDPATH 242157184Sache 243157184Sache 244157184Sache# Name of the host. 245157184Sache# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246157184Sache# so uname gets run too. 247157184Sacheac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248157184Sache 249157184Sacheexec 6>&1 250157184Sache 251157184Sache# 252157184Sache# Initializations. 253157184Sache# 254157184Sacheac_default_prefix=/usr/local 255157184Sacheac_config_libobj_dir=. 256157184Sachecross_compiling=no 257157184Sachesubdirs= 258157184SacheMFLAGS= 259157184SacheMAKEFLAGS= 260157184SacheSHELL=${CONFIG_SHELL-/bin/sh} 261157184Sache 262157184Sache# Maximum number of lines to put in a shell here document. 263157184Sache# This variable seems obsolete. It should probably be removed, and 264157184Sache# only ac_max_sed_lines should be used. 265157184Sache: ${ac_max_here_lines=38} 266157184Sache 267157184Sache# Identity of this package. 268157184SachePACKAGE_NAME= 269157184SachePACKAGE_TARNAME= 270157184SachePACKAGE_VERSION= 271157184SachePACKAGE_STRING= 272157184SachePACKAGE_BUGREPORT= 273157184Sache 274157184Sacheac_unique_file="rlfe.c" 275157184Sacheac_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 VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS' 276157184Sacheac_subst_files='' 277157184Sache 278157184Sache# Initialize some variables set by options. 279157184Sacheac_init_help= 280157184Sacheac_init_version=false 281157184Sache# The variables have the same names as the options, with 282157184Sache# dashes changed to underlines. 283157184Sachecache_file=/dev/null 284157184Sacheexec_prefix=NONE 285157184Sacheno_create= 286157184Sacheno_recursion= 287157184Sacheprefix=NONE 288157184Sacheprogram_prefix=NONE 289157184Sacheprogram_suffix=NONE 290157184Sacheprogram_transform_name=s,x,x, 291157184Sachesilent= 292157184Sachesite= 293157184Sachesrcdir= 294157184Sacheverbose= 295157184Sachex_includes=NONE 296157184Sachex_libraries=NONE 297157184Sache 298157184Sache# Installation directory options. 299157184Sache# These are left unexpanded so users can "make install exec_prefix=/foo" 300157184Sache# and all the variables that are supposed to be based on exec_prefix 301157184Sache# by default will actually change. 302157184Sache# Use braces instead of parens because sh, perl, etc. also accept them. 303157184Sachebindir='${exec_prefix}/bin' 304157184Sachesbindir='${exec_prefix}/sbin' 305157184Sachelibexecdir='${exec_prefix}/libexec' 306157184Sachedatadir='${prefix}/share' 307157184Sachesysconfdir='${prefix}/etc' 308157184Sachesharedstatedir='${prefix}/com' 309157184Sachelocalstatedir='${prefix}/var' 310157184Sachelibdir='${exec_prefix}/lib' 311157184Sacheincludedir='${prefix}/include' 312157184Sacheoldincludedir='/usr/include' 313157184Sacheinfodir='${prefix}/info' 314157184Sachemandir='${prefix}/man' 315157184Sache 316157184Sacheac_prev= 317157184Sachefor ac_option 318157184Sachedo 319157184Sache # If the previous option needs an argument, assign it. 320157184Sache if test -n "$ac_prev"; then 321157184Sache eval "$ac_prev=\$ac_option" 322157184Sache ac_prev= 323157184Sache continue 324157184Sache fi 325157184Sache 326157184Sache ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 327157184Sache 328157184Sache # Accept the important Cygnus configure options, so we can diagnose typos. 329157184Sache 330157184Sache case $ac_option in 331157184Sache 332157184Sache -bindir | --bindir | --bindi | --bind | --bin | --bi) 333157184Sache ac_prev=bindir ;; 334157184Sache -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 335157184Sache bindir=$ac_optarg ;; 336157184Sache 337157184Sache -build | --build | --buil | --bui | --bu) 338157184Sache ac_prev=build_alias ;; 339157184Sache -build=* | --build=* | --buil=* | --bui=* | --bu=*) 340157184Sache build_alias=$ac_optarg ;; 341157184Sache 342157184Sache -cache-file | --cache-file | --cache-fil | --cache-fi \ 343157184Sache | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 344157184Sache ac_prev=cache_file ;; 345157184Sache -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 346157184Sache | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 347157184Sache cache_file=$ac_optarg ;; 348157184Sache 349157184Sache --config-cache | -C) 350157184Sache cache_file=config.cache ;; 351157184Sache 352157184Sache -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 353157184Sache ac_prev=datadir ;; 354157184Sache -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 355157184Sache | --da=*) 356157184Sache datadir=$ac_optarg ;; 357157184Sache 358157184Sache -disable-* | --disable-*) 359157184Sache ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 360157184Sache # Reject names that are not valid shell variable names. 361157184Sache expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 362157184Sache { echo "$as_me: error: invalid feature name: $ac_feature" >&2 363157184Sache { (exit 1); exit 1; }; } 364157184Sache ac_feature=`echo $ac_feature | sed 's/-/_/g'` 365157184Sache eval "enable_$ac_feature=no" ;; 366157184Sache 367157184Sache -enable-* | --enable-*) 368157184Sache ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 369157184Sache # Reject names that are not valid shell variable names. 370157184Sache expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 371157184Sache { echo "$as_me: error: invalid feature name: $ac_feature" >&2 372157184Sache { (exit 1); exit 1; }; } 373157184Sache ac_feature=`echo $ac_feature | sed 's/-/_/g'` 374157184Sache case $ac_option in 375157184Sache *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 376157184Sache *) ac_optarg=yes ;; 377157184Sache esac 378157184Sache eval "enable_$ac_feature='$ac_optarg'" ;; 379157184Sache 380157184Sache -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 381157184Sache | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 382157184Sache | --exec | --exe | --ex) 383157184Sache ac_prev=exec_prefix ;; 384157184Sache -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 385157184Sache | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 386157184Sache | --exec=* | --exe=* | --ex=*) 387157184Sache exec_prefix=$ac_optarg ;; 388157184Sache 389157184Sache -gas | --gas | --ga | --g) 390157184Sache # Obsolete; use --with-gas. 391157184Sache with_gas=yes ;; 392157184Sache 393157184Sache -help | --help | --hel | --he | -h) 394157184Sache ac_init_help=long ;; 395157184Sache -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 396157184Sache ac_init_help=recursive ;; 397157184Sache -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 398157184Sache ac_init_help=short ;; 399157184Sache 400157184Sache -host | --host | --hos | --ho) 401157184Sache ac_prev=host_alias ;; 402157184Sache -host=* | --host=* | --hos=* | --ho=*) 403157184Sache host_alias=$ac_optarg ;; 404157184Sache 405157184Sache -includedir | --includedir | --includedi | --included | --include \ 406157184Sache | --includ | --inclu | --incl | --inc) 407157184Sache ac_prev=includedir ;; 408157184Sache -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 409157184Sache | --includ=* | --inclu=* | --incl=* | --inc=*) 410157184Sache includedir=$ac_optarg ;; 411157184Sache 412157184Sache -infodir | --infodir | --infodi | --infod | --info | --inf) 413157184Sache ac_prev=infodir ;; 414157184Sache -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 415157184Sache infodir=$ac_optarg ;; 416157184Sache 417157184Sache -libdir | --libdir | --libdi | --libd) 418157184Sache ac_prev=libdir ;; 419157184Sache -libdir=* | --libdir=* | --libdi=* | --libd=*) 420157184Sache libdir=$ac_optarg ;; 421157184Sache 422157184Sache -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 423157184Sache | --libexe | --libex | --libe) 424157184Sache ac_prev=libexecdir ;; 425157184Sache -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 426157184Sache | --libexe=* | --libex=* | --libe=*) 427157184Sache libexecdir=$ac_optarg ;; 428157184Sache 429157184Sache -localstatedir | --localstatedir | --localstatedi | --localstated \ 430157184Sache | --localstate | --localstat | --localsta | --localst \ 431157184Sache | --locals | --local | --loca | --loc | --lo) 432157184Sache ac_prev=localstatedir ;; 433157184Sache -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 434157184Sache | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 435157184Sache | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 436157184Sache localstatedir=$ac_optarg ;; 437157184Sache 438157184Sache -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 439157184Sache ac_prev=mandir ;; 440157184Sache -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 441157184Sache mandir=$ac_optarg ;; 442157184Sache 443157184Sache -nfp | --nfp | --nf) 444157184Sache # Obsolete; use --without-fp. 445157184Sache with_fp=no ;; 446157184Sache 447157184Sache -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 448157184Sache | --no-cr | --no-c | -n) 449157184Sache no_create=yes ;; 450157184Sache 451157184Sache -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 452157184Sache | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 453157184Sache no_recursion=yes ;; 454157184Sache 455157184Sache -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 456157184Sache | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 457157184Sache | --oldin | --oldi | --old | --ol | --o) 458157184Sache ac_prev=oldincludedir ;; 459157184Sache -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 460157184Sache | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 461157184Sache | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 462157184Sache oldincludedir=$ac_optarg ;; 463157184Sache 464157184Sache -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 465157184Sache ac_prev=prefix ;; 466157184Sache -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 467157184Sache prefix=$ac_optarg ;; 468157184Sache 469157184Sache -program-prefix | --program-prefix | --program-prefi | --program-pref \ 470157184Sache | --program-pre | --program-pr | --program-p) 471157184Sache ac_prev=program_prefix ;; 472157184Sache -program-prefix=* | --program-prefix=* | --program-prefi=* \ 473157184Sache | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 474157184Sache program_prefix=$ac_optarg ;; 475157184Sache 476157184Sache -program-suffix | --program-suffix | --program-suffi | --program-suff \ 477157184Sache | --program-suf | --program-su | --program-s) 478157184Sache ac_prev=program_suffix ;; 479157184Sache -program-suffix=* | --program-suffix=* | --program-suffi=* \ 480157184Sache | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 481157184Sache program_suffix=$ac_optarg ;; 482157184Sache 483157184Sache -program-transform-name | --program-transform-name \ 484157184Sache | --program-transform-nam | --program-transform-na \ 485157184Sache | --program-transform-n | --program-transform- \ 486157184Sache | --program-transform | --program-transfor \ 487157184Sache | --program-transfo | --program-transf \ 488157184Sache | --program-trans | --program-tran \ 489157184Sache | --progr-tra | --program-tr | --program-t) 490157184Sache ac_prev=program_transform_name ;; 491157184Sache -program-transform-name=* | --program-transform-name=* \ 492157184Sache | --program-transform-nam=* | --program-transform-na=* \ 493157184Sache | --program-transform-n=* | --program-transform-=* \ 494157184Sache | --program-transform=* | --program-transfor=* \ 495157184Sache | --program-transfo=* | --program-transf=* \ 496157184Sache | --program-trans=* | --program-tran=* \ 497157184Sache | --progr-tra=* | --program-tr=* | --program-t=*) 498157184Sache program_transform_name=$ac_optarg ;; 499157184Sache 500157184Sache -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 501157184Sache | -silent | --silent | --silen | --sile | --sil) 502157184Sache silent=yes ;; 503157184Sache 504157184Sache -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 505157184Sache ac_prev=sbindir ;; 506157184Sache -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 507157184Sache | --sbi=* | --sb=*) 508157184Sache sbindir=$ac_optarg ;; 509157184Sache 510157184Sache -sharedstatedir | --sharedstatedir | --sharedstatedi \ 511157184Sache | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 512157184Sache | --sharedst | --shareds | --shared | --share | --shar \ 513157184Sache | --sha | --sh) 514157184Sache ac_prev=sharedstatedir ;; 515157184Sache -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 516157184Sache | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 517157184Sache | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 518157184Sache | --sha=* | --sh=*) 519157184Sache sharedstatedir=$ac_optarg ;; 520157184Sache 521157184Sache -site | --site | --sit) 522157184Sache ac_prev=site ;; 523157184Sache -site=* | --site=* | --sit=*) 524157184Sache site=$ac_optarg ;; 525157184Sache 526157184Sache -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 527157184Sache ac_prev=srcdir ;; 528157184Sache -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 529157184Sache srcdir=$ac_optarg ;; 530157184Sache 531157184Sache -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 532157184Sache | --syscon | --sysco | --sysc | --sys | --sy) 533157184Sache ac_prev=sysconfdir ;; 534157184Sache -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 535157184Sache | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 536157184Sache sysconfdir=$ac_optarg ;; 537157184Sache 538157184Sache -target | --target | --targe | --targ | --tar | --ta | --t) 539157184Sache ac_prev=target_alias ;; 540157184Sache -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 541157184Sache target_alias=$ac_optarg ;; 542157184Sache 543157184Sache -v | -verbose | --verbose | --verbos | --verbo | --verb) 544157184Sache verbose=yes ;; 545157184Sache 546157184Sache -version | --version | --versio | --versi | --vers | -V) 547157184Sache ac_init_version=: ;; 548157184Sache 549157184Sache -with-* | --with-*) 550157184Sache ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 551157184Sache # Reject names that are not valid shell variable names. 552157184Sache expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 553157184Sache { echo "$as_me: error: invalid package name: $ac_package" >&2 554157184Sache { (exit 1); exit 1; }; } 555157184Sache ac_package=`echo $ac_package| sed 's/-/_/g'` 556157184Sache case $ac_option in 557157184Sache *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 558157184Sache *) ac_optarg=yes ;; 559157184Sache esac 560157184Sache eval "with_$ac_package='$ac_optarg'" ;; 561157184Sache 562157184Sache -without-* | --without-*) 563157184Sache ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 564157184Sache # Reject names that are not valid shell variable names. 565157184Sache expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 566157184Sache { echo "$as_me: error: invalid package name: $ac_package" >&2 567157184Sache { (exit 1); exit 1; }; } 568157184Sache ac_package=`echo $ac_package | sed 's/-/_/g'` 569157184Sache eval "with_$ac_package=no" ;; 570157184Sache 571157184Sache --x) 572157184Sache # Obsolete; use --with-x. 573157184Sache with_x=yes ;; 574157184Sache 575157184Sache -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 576157184Sache | --x-incl | --x-inc | --x-in | --x-i) 577157184Sache ac_prev=x_includes ;; 578157184Sache -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 579157184Sache | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 580157184Sache x_includes=$ac_optarg ;; 581157184Sache 582157184Sache -x-libraries | --x-libraries | --x-librarie | --x-librari \ 583157184Sache | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 584157184Sache ac_prev=x_libraries ;; 585157184Sache -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 586157184Sache | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 587157184Sache x_libraries=$ac_optarg ;; 588157184Sache 589157184Sache -*) { echo "$as_me: error: unrecognized option: $ac_option 590157184SacheTry \`$0 --help' for more information." >&2 591157184Sache { (exit 1); exit 1; }; } 592157184Sache ;; 593157184Sache 594157184Sache *=*) 595157184Sache ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 596157184Sache # Reject names that are not valid shell variable names. 597157184Sache expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 598157184Sache { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 599157184Sache { (exit 1); exit 1; }; } 600157184Sache ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 601157184Sache eval "$ac_envvar='$ac_optarg'" 602157184Sache export $ac_envvar ;; 603157184Sache 604157184Sache *) 605157184Sache # FIXME: should be removed in autoconf 3.0. 606157184Sache echo "$as_me: WARNING: you should use --build, --host, --target" >&2 607157184Sache expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 608157184Sache echo "$as_me: WARNING: invalid host type: $ac_option" >&2 609157184Sache : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 610157184Sache ;; 611157184Sache 612157184Sache esac 613157184Sachedone 614157184Sache 615157184Sacheif test -n "$ac_prev"; then 616157184Sache ac_option=--`echo $ac_prev | sed 's/_/-/g'` 617157184Sache { echo "$as_me: error: missing argument to $ac_option" >&2 618157184Sache { (exit 1); exit 1; }; } 619157184Sachefi 620157184Sache 621157184Sache# Be sure to have absolute paths. 622157184Sachefor ac_var in exec_prefix prefix 623157184Sachedo 624157184Sache eval ac_val=$`echo $ac_var` 625157184Sache case $ac_val in 626157184Sache [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 627157184Sache *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 628157184Sache { (exit 1); exit 1; }; };; 629157184Sache esac 630157184Sachedone 631157184Sache 632157184Sache# Be sure to have absolute paths. 633157184Sachefor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 634157184Sache localstatedir libdir includedir oldincludedir infodir mandir 635157184Sachedo 636157184Sache eval ac_val=$`echo $ac_var` 637157184Sache case $ac_val in 638157184Sache [\\/$]* | ?:[\\/]* ) ;; 639157184Sache *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 640157184Sache { (exit 1); exit 1; }; };; 641157184Sache esac 642157184Sachedone 643157184Sache 644157184Sache# There might be people who depend on the old broken behavior: `$host' 645157184Sache# used to hold the argument of --host etc. 646157184Sache# FIXME: To remove some day. 647157184Sachebuild=$build_alias 648157184Sachehost=$host_alias 649157184Sachetarget=$target_alias 650157184Sache 651157184Sache# FIXME: To remove some day. 652157184Sacheif test "x$host_alias" != x; then 653157184Sache if test "x$build_alias" = x; then 654157184Sache cross_compiling=maybe 655157184Sache echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 656157184Sache If a cross compiler is detected then cross compile mode will be used." >&2 657157184Sache elif test "x$build_alias" != "x$host_alias"; then 658157184Sache cross_compiling=yes 659157184Sache fi 660157184Sachefi 661157184Sache 662157184Sacheac_tool_prefix= 663157184Sachetest -n "$host_alias" && ac_tool_prefix=$host_alias- 664157184Sache 665157184Sachetest "$silent" = yes && exec 6>/dev/null 666157184Sache 667157184Sache 668157184Sache# Find the source files, if location was not specified. 669157184Sacheif test -z "$srcdir"; then 670157184Sache ac_srcdir_defaulted=yes 671157184Sache # Try the directory containing this script, then its parent. 672157184Sache ac_confdir=`(dirname "$0") 2>/dev/null || 673157184Sache$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 674157184Sache X"$0" : 'X\(//\)[^/]' \| \ 675157184Sache X"$0" : 'X\(//\)$' \| \ 676157184Sache X"$0" : 'X\(/\)' \| \ 677157184Sache . : '\(.\)' 2>/dev/null || 678157184Sacheecho X"$0" | 679157184Sache sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 680157184Sache /^X\(\/\/\)[^/].*/{ s//\1/; q; } 681157184Sache /^X\(\/\/\)$/{ s//\1/; q; } 682157184Sache /^X\(\/\).*/{ s//\1/; q; } 683157184Sache s/.*/./; q'` 684157184Sache srcdir=$ac_confdir 685157184Sache if test ! -r $srcdir/$ac_unique_file; then 686157184Sache srcdir=.. 687157184Sache fi 688157184Sacheelse 689157184Sache ac_srcdir_defaulted=no 690157184Sachefi 691157184Sacheif test ! -r $srcdir/$ac_unique_file; then 692157184Sache if test "$ac_srcdir_defaulted" = yes; then 693157184Sache { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 694157184Sache { (exit 1); exit 1; }; } 695157184Sache else 696157184Sache { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 697157184Sache { (exit 1); exit 1; }; } 698157184Sache fi 699157184Sachefi 700157184Sache(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 701157184Sache { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 702157184Sache { (exit 1); exit 1; }; } 703157184Sachesrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 704157184Sacheac_env_build_alias_set=${build_alias+set} 705157184Sacheac_env_build_alias_value=$build_alias 706157184Sacheac_cv_env_build_alias_set=${build_alias+set} 707157184Sacheac_cv_env_build_alias_value=$build_alias 708157184Sacheac_env_host_alias_set=${host_alias+set} 709157184Sacheac_env_host_alias_value=$host_alias 710157184Sacheac_cv_env_host_alias_set=${host_alias+set} 711157184Sacheac_cv_env_host_alias_value=$host_alias 712157184Sacheac_env_target_alias_set=${target_alias+set} 713157184Sacheac_env_target_alias_value=$target_alias 714157184Sacheac_cv_env_target_alias_set=${target_alias+set} 715157184Sacheac_cv_env_target_alias_value=$target_alias 716157184Sacheac_env_CC_set=${CC+set} 717157184Sacheac_env_CC_value=$CC 718157184Sacheac_cv_env_CC_set=${CC+set} 719157184Sacheac_cv_env_CC_value=$CC 720157184Sacheac_env_CFLAGS_set=${CFLAGS+set} 721157184Sacheac_env_CFLAGS_value=$CFLAGS 722157184Sacheac_cv_env_CFLAGS_set=${CFLAGS+set} 723157184Sacheac_cv_env_CFLAGS_value=$CFLAGS 724157184Sacheac_env_LDFLAGS_set=${LDFLAGS+set} 725157184Sacheac_env_LDFLAGS_value=$LDFLAGS 726157184Sacheac_cv_env_LDFLAGS_set=${LDFLAGS+set} 727157184Sacheac_cv_env_LDFLAGS_value=$LDFLAGS 728157184Sacheac_env_CPPFLAGS_set=${CPPFLAGS+set} 729157184Sacheac_env_CPPFLAGS_value=$CPPFLAGS 730157184Sacheac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 731157184Sacheac_cv_env_CPPFLAGS_value=$CPPFLAGS 732157184Sacheac_env_CPP_set=${CPP+set} 733157184Sacheac_env_CPP_value=$CPP 734157184Sacheac_cv_env_CPP_set=${CPP+set} 735157184Sacheac_cv_env_CPP_value=$CPP 736157184Sache 737157184Sache# 738157184Sache# Report the --help message. 739157184Sache# 740157184Sacheif test "$ac_init_help" = "long"; then 741157184Sache # Omit some internal or obsolete options to make the list less imposing. 742157184Sache # This message is too long to be a string in the A/UX 3.1 sh. 743157184Sache cat <<_ACEOF 744157184Sache\`configure' configures this package to adapt to many kinds of systems. 745157184Sache 746157184SacheUsage: $0 [OPTION]... [VAR=VALUE]... 747157184Sache 748157184SacheTo assign environment variables (e.g., CC, CFLAGS...), specify them as 749157184SacheVAR=VALUE. See below for descriptions of some of the useful variables. 750157184Sache 751157184SacheDefaults for the options are specified in brackets. 752157184Sache 753157184SacheConfiguration: 754157184Sache -h, --help display this help and exit 755157184Sache --help=short display options specific to this package 756157184Sache --help=recursive display the short help of all the included packages 757157184Sache -V, --version display version information and exit 758157184Sache -q, --quiet, --silent do not print \`checking...' messages 759157184Sache --cache-file=FILE cache test results in FILE [disabled] 760157184Sache -C, --config-cache alias for \`--cache-file=config.cache' 761157184Sache -n, --no-create do not create output files 762157184Sache --srcdir=DIR find the sources in DIR [configure dir or \`..'] 763157184Sache 764157184Sache_ACEOF 765157184Sache 766157184Sache cat <<_ACEOF 767157184SacheInstallation directories: 768157184Sache --prefix=PREFIX install architecture-independent files in PREFIX 769157184Sache [$ac_default_prefix] 770157184Sache --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 771157184Sache [PREFIX] 772157184Sache 773157184SacheBy default, \`make install' will install all the files in 774157184Sache\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 775157184Sachean installation prefix other than \`$ac_default_prefix' using \`--prefix', 776157184Sachefor instance \`--prefix=\$HOME'. 777157184Sache 778157184SacheFor better control, use the options below. 779157184Sache 780157184SacheFine tuning of the installation directories: 781157184Sache --bindir=DIR user executables [EPREFIX/bin] 782157184Sache --sbindir=DIR system admin executables [EPREFIX/sbin] 783157184Sache --libexecdir=DIR program executables [EPREFIX/libexec] 784157184Sache --datadir=DIR read-only architecture-independent data [PREFIX/share] 785157184Sache --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 786157184Sache --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 787157184Sache --localstatedir=DIR modifiable single-machine data [PREFIX/var] 788157184Sache --libdir=DIR object code libraries [EPREFIX/lib] 789157184Sache --includedir=DIR C header files [PREFIX/include] 790157184Sache --oldincludedir=DIR C header files for non-gcc [/usr/include] 791157184Sache --infodir=DIR info documentation [PREFIX/info] 792157184Sache --mandir=DIR man documentation [PREFIX/man] 793157184Sache_ACEOF 794157184Sache 795157184Sache cat <<\_ACEOF 796157184Sache_ACEOF 797157184Sachefi 798157184Sache 799157184Sacheif test -n "$ac_init_help"; then 800157184Sache 801157184Sache cat <<\_ACEOF 802157184Sache 803157184SacheOptional Packages: 804157184Sache --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 805157184Sache --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 806157184Sache --with-pty-mode=mode default mode for ptys 807157184Sache --with-pty-group=group default group for ptys 808157184Sache 809157184SacheSome influential environment variables: 810157184Sache CC C compiler command 811157184Sache CFLAGS C compiler flags 812157184Sache LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 813157184Sache nonstandard directory <lib dir> 814157184Sache CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 815157184Sache headers in a nonstandard directory <include dir> 816157184Sache CPP C preprocessor 817157184Sache 818157184SacheUse these variables to override the choices made by `configure' or to help 819157184Sacheit to find libraries and programs with nonstandard names/locations. 820157184Sache 821157184Sache_ACEOF 822157184Sachefi 823157184Sache 824157184Sacheif test "$ac_init_help" = "recursive"; then 825157184Sache # If there are subdirs, report their specific --help. 826157184Sache ac_popdir=`pwd` 827157184Sache for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 828157184Sache test -d $ac_dir || continue 829157184Sache ac_builddir=. 830157184Sache 831157184Sacheif test "$ac_dir" != .; then 832157184Sache ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 833157184Sache # A "../" for each directory in $ac_dir_suffix. 834157184Sache ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 835157184Sacheelse 836157184Sache ac_dir_suffix= ac_top_builddir= 837157184Sachefi 838157184Sache 839157184Sachecase $srcdir in 840157184Sache .) # No --srcdir option. We are building in place. 841157184Sache ac_srcdir=. 842157184Sache if test -z "$ac_top_builddir"; then 843157184Sache ac_top_srcdir=. 844157184Sache else 845157184Sache ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 846157184Sache fi ;; 847157184Sache [\\/]* | ?:[\\/]* ) # Absolute path. 848157184Sache ac_srcdir=$srcdir$ac_dir_suffix; 849157184Sache ac_top_srcdir=$srcdir ;; 850157184Sache *) # Relative path. 851157184Sache ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 852157184Sache ac_top_srcdir=$ac_top_builddir$srcdir ;; 853157184Sacheesac 854157184Sache 855157184Sache# Do not use `cd foo && pwd` to compute absolute paths, because 856157184Sache# the directories may not exist. 857157184Sachecase `pwd` in 858157184Sache.) ac_abs_builddir="$ac_dir";; 859157184Sache*) 860157184Sache case "$ac_dir" in 861157184Sache .) ac_abs_builddir=`pwd`;; 862157184Sache [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 863157184Sache *) ac_abs_builddir=`pwd`/"$ac_dir";; 864157184Sache esac;; 865157184Sacheesac 866157184Sachecase $ac_abs_builddir in 867157184Sache.) ac_abs_top_builddir=${ac_top_builddir}.;; 868157184Sache*) 869157184Sache case ${ac_top_builddir}. in 870157184Sache .) ac_abs_top_builddir=$ac_abs_builddir;; 871157184Sache [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 872157184Sache *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 873157184Sache esac;; 874157184Sacheesac 875157184Sachecase $ac_abs_builddir in 876157184Sache.) ac_abs_srcdir=$ac_srcdir;; 877157184Sache*) 878157184Sache case $ac_srcdir in 879157184Sache .) ac_abs_srcdir=$ac_abs_builddir;; 880157184Sache [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 881157184Sache *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 882157184Sache esac;; 883157184Sacheesac 884157184Sachecase $ac_abs_builddir in 885157184Sache.) ac_abs_top_srcdir=$ac_top_srcdir;; 886157184Sache*) 887157184Sache case $ac_top_srcdir in 888157184Sache .) ac_abs_top_srcdir=$ac_abs_builddir;; 889157184Sache [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 890157184Sache *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 891157184Sache esac;; 892157184Sacheesac 893157184Sache 894157184Sache cd $ac_dir 895157184Sache # Check for guested configure; otherwise get Cygnus style configure. 896157184Sache if test -f $ac_srcdir/configure.gnu; then 897157184Sache echo 898157184Sache $SHELL $ac_srcdir/configure.gnu --help=recursive 899157184Sache elif test -f $ac_srcdir/configure; then 900157184Sache echo 901157184Sache $SHELL $ac_srcdir/configure --help=recursive 902157184Sache elif test -f $ac_srcdir/configure.ac || 903157184Sache test -f $ac_srcdir/configure.in; then 904157184Sache echo 905157184Sache $ac_configure --help 906157184Sache else 907157184Sache echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 908157184Sache fi 909157184Sache cd $ac_popdir 910157184Sache done 911157184Sachefi 912157184Sache 913157184Sachetest -n "$ac_init_help" && exit 0 914157184Sacheif $ac_init_version; then 915157184Sache cat <<\_ACEOF 916157184Sache 917157184SacheCopyright (C) 2003 Free Software Foundation, Inc. 918157184SacheThis configure script is free software; the Free Software Foundation 919157184Sachegives unlimited permission to copy, distribute and modify it. 920157184Sache_ACEOF 921157184Sache exit 0 922157184Sachefi 923157184Sacheexec 5>config.log 924157184Sachecat >&5 <<_ACEOF 925157184SacheThis file contains any messages produced by compilers while 926157184Sacherunning configure, to aid debugging if configure makes a mistake. 927157184Sache 928157184SacheIt was created by $as_me, which was 929157184Sachegenerated by GNU Autoconf 2.59. Invocation command line was 930157184Sache 931157184Sache $ $0 $@ 932157184Sache 933157184Sache_ACEOF 934157184Sache{ 935157184Sachecat <<_ASUNAME 936157184Sache## --------- ## 937157184Sache## Platform. ## 938157184Sache## --------- ## 939157184Sache 940157184Sachehostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 941157184Sacheuname -m = `(uname -m) 2>/dev/null || echo unknown` 942157184Sacheuname -r = `(uname -r) 2>/dev/null || echo unknown` 943157184Sacheuname -s = `(uname -s) 2>/dev/null || echo unknown` 944157184Sacheuname -v = `(uname -v) 2>/dev/null || echo unknown` 945157184Sache 946157184Sache/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 947157184Sache/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 948157184Sache 949157184Sache/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 950157184Sache/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 951157184Sache/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 952157184Sachehostinfo = `(hostinfo) 2>/dev/null || echo unknown` 953157184Sache/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 954157184Sache/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 955157184Sache/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 956157184Sache 957157184Sache_ASUNAME 958157184Sache 959157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 960157184Sachefor as_dir in $PATH 961157184Sachedo 962157184Sache IFS=$as_save_IFS 963157184Sache test -z "$as_dir" && as_dir=. 964157184Sache echo "PATH: $as_dir" 965157184Sachedone 966157184Sache 967157184Sache} >&5 968157184Sache 969157184Sachecat >&5 <<_ACEOF 970157184Sache 971157184Sache 972157184Sache## ----------- ## 973157184Sache## Core tests. ## 974157184Sache## ----------- ## 975157184Sache 976157184Sache_ACEOF 977157184Sache 978157184Sache 979157184Sache# Keep a trace of the command line. 980157184Sache# Strip out --no-create and --no-recursion so they do not pile up. 981157184Sache# Strip out --silent because we don't want to record it for future runs. 982157184Sache# Also quote any args containing shell meta-characters. 983157184Sache# Make two passes to allow for proper duplicate-argument suppression. 984157184Sacheac_configure_args= 985157184Sacheac_configure_args0= 986157184Sacheac_configure_args1= 987157184Sacheac_sep= 988157184Sacheac_must_keep_next=false 989157184Sachefor ac_pass in 1 2 990157184Sachedo 991157184Sache for ac_arg 992157184Sache do 993157184Sache case $ac_arg in 994157184Sache -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 995157184Sache -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 996157184Sache | -silent | --silent | --silen | --sile | --sil) 997157184Sache continue ;; 998157184Sache *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 999157184Sache ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1000157184Sache esac 1001157184Sache case $ac_pass in 1002157184Sache 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1003157184Sache 2) 1004157184Sache ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1005157184Sache if test $ac_must_keep_next = true; then 1006157184Sache ac_must_keep_next=false # Got value, back to normal. 1007157184Sache else 1008157184Sache case $ac_arg in 1009157184Sache *=* | --config-cache | -C | -disable-* | --disable-* \ 1010157184Sache | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1011157184Sache | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1012157184Sache | -with-* | --with-* | -without-* | --without-* | --x) 1013157184Sache case "$ac_configure_args0 " in 1014157184Sache "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1015157184Sache esac 1016157184Sache ;; 1017157184Sache -* ) ac_must_keep_next=true ;; 1018157184Sache esac 1019157184Sache fi 1020157184Sache ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1021157184Sache # Get rid of the leading space. 1022157184Sache ac_sep=" " 1023157184Sache ;; 1024157184Sache esac 1025157184Sache done 1026157184Sachedone 1027157184Sache$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1028157184Sache$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1029157184Sache 1030157184Sache# When interrupted or exit'd, cleanup temporary files, and complete 1031157184Sache# config.log. We remove comments because anyway the quotes in there 1032157184Sache# would cause problems or look ugly. 1033157184Sache# WARNING: Be sure not to use single quotes in there, as some shells, 1034157184Sache# such as our DU 5.0 friend, will then `close' the trap. 1035157184Sachetrap 'exit_status=$? 1036157184Sache # Save into config.log some information that might help in debugging. 1037157184Sache { 1038157184Sache echo 1039157184Sache 1040157184Sache cat <<\_ASBOX 1041157184Sache## ---------------- ## 1042157184Sache## Cache variables. ## 1043157184Sache## ---------------- ## 1044157184Sache_ASBOX 1045157184Sache echo 1046157184Sache # The following way of writing the cache mishandles newlines in values, 1047157184Sache{ 1048157184Sache (set) 2>&1 | 1049157184Sache case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1050157184Sache *ac_space=\ *) 1051157184Sache sed -n \ 1052157184Sache "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1053157184Sache s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1054157184Sache ;; 1055157184Sache *) 1056157184Sache sed -n \ 1057157184Sache "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1058157184Sache ;; 1059157184Sache esac; 1060157184Sache} 1061157184Sache echo 1062157184Sache 1063157184Sache cat <<\_ASBOX 1064157184Sache## ----------------- ## 1065157184Sache## Output variables. ## 1066157184Sache## ----------------- ## 1067157184Sache_ASBOX 1068157184Sache echo 1069157184Sache for ac_var in $ac_subst_vars 1070157184Sache do 1071157184Sache eval ac_val=$`echo $ac_var` 1072157184Sache echo "$ac_var='"'"'$ac_val'"'"'" 1073157184Sache done | sort 1074157184Sache echo 1075157184Sache 1076157184Sache if test -n "$ac_subst_files"; then 1077157184Sache cat <<\_ASBOX 1078157184Sache## ------------- ## 1079157184Sache## Output files. ## 1080157184Sache## ------------- ## 1081157184Sache_ASBOX 1082157184Sache echo 1083157184Sache for ac_var in $ac_subst_files 1084157184Sache do 1085157184Sache eval ac_val=$`echo $ac_var` 1086157184Sache echo "$ac_var='"'"'$ac_val'"'"'" 1087157184Sache done | sort 1088157184Sache echo 1089157184Sache fi 1090157184Sache 1091157184Sache if test -s confdefs.h; then 1092157184Sache cat <<\_ASBOX 1093157184Sache## ----------- ## 1094157184Sache## confdefs.h. ## 1095157184Sache## ----------- ## 1096157184Sache_ASBOX 1097157184Sache echo 1098157184Sache sed "/^$/d" confdefs.h | sort 1099157184Sache echo 1100157184Sache fi 1101157184Sache test "$ac_signal" != 0 && 1102157184Sache echo "$as_me: caught signal $ac_signal" 1103157184Sache echo "$as_me: exit $exit_status" 1104157184Sache } >&5 1105157184Sache rm -f core *.core && 1106157184Sache rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1107157184Sache exit $exit_status 1108157184Sache ' 0 1109157184Sachefor ac_signal in 1 2 13 15; do 1110157184Sache trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1111157184Sachedone 1112157184Sacheac_signal=0 1113157184Sache 1114157184Sache# confdefs.h avoids OS command line length limits that DEFS can exceed. 1115157184Sacherm -rf conftest* confdefs.h 1116157184Sache# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1117157184Sacheecho >confdefs.h 1118157184Sache 1119157184Sache# Predefined preprocessor variables. 1120157184Sache 1121157184Sachecat >>confdefs.h <<_ACEOF 1122157184Sache#define PACKAGE_NAME "$PACKAGE_NAME" 1123157184Sache_ACEOF 1124157184Sache 1125157184Sache 1126157184Sachecat >>confdefs.h <<_ACEOF 1127157184Sache#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1128157184Sache_ACEOF 1129157184Sache 1130157184Sache 1131157184Sachecat >>confdefs.h <<_ACEOF 1132157184Sache#define PACKAGE_VERSION "$PACKAGE_VERSION" 1133157184Sache_ACEOF 1134157184Sache 1135157184Sache 1136157184Sachecat >>confdefs.h <<_ACEOF 1137157184Sache#define PACKAGE_STRING "$PACKAGE_STRING" 1138157184Sache_ACEOF 1139157184Sache 1140157184Sache 1141157184Sachecat >>confdefs.h <<_ACEOF 1142157184Sache#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1143157184Sache_ACEOF 1144157184Sache 1145157184Sache 1146157184Sache# Let the site file select an alternate cache file if it wants to. 1147157184Sache# Prefer explicitly selected file to automatically selected ones. 1148157184Sacheif test -z "$CONFIG_SITE"; then 1149157184Sache if test "x$prefix" != xNONE; then 1150157184Sache CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1151157184Sache else 1152157184Sache CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1153157184Sache fi 1154157184Sachefi 1155157184Sachefor ac_site_file in $CONFIG_SITE; do 1156157184Sache if test -r "$ac_site_file"; then 1157157184Sache { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1158157184Sacheecho "$as_me: loading site script $ac_site_file" >&6;} 1159157184Sache sed 's/^/| /' "$ac_site_file" >&5 1160157184Sache . "$ac_site_file" 1161157184Sache fi 1162157184Sachedone 1163157184Sache 1164157184Sacheif test -r "$cache_file"; then 1165157184Sache # Some versions of bash will fail to source /dev/null (special 1166157184Sache # files actually), so we avoid doing that. 1167157184Sache if test -f "$cache_file"; then 1168157184Sache { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1169157184Sacheecho "$as_me: loading cache $cache_file" >&6;} 1170157184Sache case $cache_file in 1171157184Sache [\\/]* | ?:[\\/]* ) . $cache_file;; 1172157184Sache *) . ./$cache_file;; 1173157184Sache esac 1174157184Sache fi 1175157184Sacheelse 1176157184Sache { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1177157184Sacheecho "$as_me: creating cache $cache_file" >&6;} 1178157184Sache >$cache_file 1179157184Sachefi 1180157184Sache 1181157184Sache# Check that the precious variables saved in the cache have kept the same 1182157184Sache# value. 1183157184Sacheac_cache_corrupted=false 1184157184Sachefor ac_var in `(set) 2>&1 | 1185157184Sache sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1186157184Sache eval ac_old_set=\$ac_cv_env_${ac_var}_set 1187157184Sache eval ac_new_set=\$ac_env_${ac_var}_set 1188157184Sache eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1189157184Sache eval ac_new_val="\$ac_env_${ac_var}_value" 1190157184Sache case $ac_old_set,$ac_new_set in 1191157184Sache set,) 1192157184Sache { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1193157184Sacheecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1194157184Sache ac_cache_corrupted=: ;; 1195157184Sache ,set) 1196157184Sache { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1197157184Sacheecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1198157184Sache ac_cache_corrupted=: ;; 1199157184Sache ,);; 1200157184Sache *) 1201157184Sache if test "x$ac_old_val" != "x$ac_new_val"; then 1202157184Sache { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1203157184Sacheecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1204157184Sache { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1205157184Sacheecho "$as_me: former value: $ac_old_val" >&2;} 1206157184Sache { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1207157184Sacheecho "$as_me: current value: $ac_new_val" >&2;} 1208157184Sache ac_cache_corrupted=: 1209157184Sache fi;; 1210157184Sache esac 1211157184Sache # Pass precious variables to config.status. 1212157184Sache if test "$ac_new_set" = set; then 1213157184Sache case $ac_new_val in 1214157184Sache *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1215157184Sache ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1216157184Sache *) ac_arg=$ac_var=$ac_new_val ;; 1217157184Sache esac 1218157184Sache case " $ac_configure_args " in 1219157184Sache *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1220157184Sache *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1221157184Sache esac 1222157184Sache fi 1223157184Sachedone 1224157184Sacheif $ac_cache_corrupted; then 1225157184Sache { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1226157184Sacheecho "$as_me: error: changes in the environment can compromise the build" >&2;} 1227157184Sache { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1228157184Sacheecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1229157184Sache { (exit 1); exit 1; }; } 1230157184Sachefi 1231157184Sache 1232157184Sacheac_ext=c 1233157184Sacheac_cpp='$CPP $CPPFLAGS' 1234157184Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1235157184Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1236157184Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu 1237157184Sache 1238157184Sache 1239157184Sache 1240157184Sache 1241157184Sache 1242157184Sache 1243157184Sache 1244157184Sache 1245157184Sache 1246157184Sache 1247157184Sache 1248157184Sache 1249157184Sache 1250157184Sache 1251157184Sache 1252157184Sache 1253157184Sache 1254157184Sache 1255157184Sache 1256157184Sache ac_config_headers="$ac_config_headers config.h" 1257157184Sache 1258157184SacheVERSION=0.4 1259157184Sache 1260157184Sache 1261157184Sache 1262157184Sacheold_CFLAGS="$CFLAGS" 1263157184Sacheac_ext=c 1264157184Sacheac_cpp='$CPP $CPPFLAGS' 1265157184Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1266157184Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1267157184Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu 1268157184Sacheif test -n "$ac_tool_prefix"; then 1269157184Sache # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1270157184Sacheset dummy ${ac_tool_prefix}gcc; ac_word=$2 1271157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1272157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1273157184Sacheif test "${ac_cv_prog_CC+set}" = set; then 1274157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1275157184Sacheelse 1276157184Sache if test -n "$CC"; then 1277157184Sache ac_cv_prog_CC="$CC" # Let the user override the test. 1278157184Sacheelse 1279157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1280157184Sachefor as_dir in $PATH 1281157184Sachedo 1282157184Sache IFS=$as_save_IFS 1283157184Sache test -z "$as_dir" && as_dir=. 1284157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1285157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1286157184Sache ac_cv_prog_CC="${ac_tool_prefix}gcc" 1287157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1288157184Sache break 2 1289157184Sache fi 1290157184Sachedone 1291157184Sachedone 1292157184Sache 1293157184Sachefi 1294157184Sachefi 1295157184SacheCC=$ac_cv_prog_CC 1296157184Sacheif test -n "$CC"; then 1297157184Sache echo "$as_me:$LINENO: result: $CC" >&5 1298157184Sacheecho "${ECHO_T}$CC" >&6 1299157184Sacheelse 1300157184Sache echo "$as_me:$LINENO: result: no" >&5 1301157184Sacheecho "${ECHO_T}no" >&6 1302157184Sachefi 1303157184Sache 1304157184Sachefi 1305157184Sacheif test -z "$ac_cv_prog_CC"; then 1306157184Sache ac_ct_CC=$CC 1307157184Sache # Extract the first word of "gcc", so it can be a program name with args. 1308157184Sacheset dummy gcc; ac_word=$2 1309157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1310157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1311157184Sacheif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1312157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1313157184Sacheelse 1314157184Sache if test -n "$ac_ct_CC"; then 1315157184Sache ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1316157184Sacheelse 1317157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1318157184Sachefor as_dir in $PATH 1319157184Sachedo 1320157184Sache IFS=$as_save_IFS 1321157184Sache test -z "$as_dir" && as_dir=. 1322157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1323157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1324157184Sache ac_cv_prog_ac_ct_CC="gcc" 1325157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1326157184Sache break 2 1327157184Sache fi 1328157184Sachedone 1329157184Sachedone 1330157184Sache 1331157184Sachefi 1332157184Sachefi 1333157184Sacheac_ct_CC=$ac_cv_prog_ac_ct_CC 1334157184Sacheif test -n "$ac_ct_CC"; then 1335157184Sache echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1336157184Sacheecho "${ECHO_T}$ac_ct_CC" >&6 1337157184Sacheelse 1338157184Sache echo "$as_me:$LINENO: result: no" >&5 1339157184Sacheecho "${ECHO_T}no" >&6 1340157184Sachefi 1341157184Sache 1342157184Sache CC=$ac_ct_CC 1343157184Sacheelse 1344157184Sache CC="$ac_cv_prog_CC" 1345157184Sachefi 1346157184Sache 1347157184Sacheif test -z "$CC"; then 1348157184Sache if test -n "$ac_tool_prefix"; then 1349157184Sache # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1350157184Sacheset dummy ${ac_tool_prefix}cc; ac_word=$2 1351157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1352157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1353157184Sacheif test "${ac_cv_prog_CC+set}" = set; then 1354157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1355157184Sacheelse 1356157184Sache if test -n "$CC"; then 1357157184Sache ac_cv_prog_CC="$CC" # Let the user override the test. 1358157184Sacheelse 1359157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1360157184Sachefor as_dir in $PATH 1361157184Sachedo 1362157184Sache IFS=$as_save_IFS 1363157184Sache test -z "$as_dir" && as_dir=. 1364157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1365157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1366157184Sache ac_cv_prog_CC="${ac_tool_prefix}cc" 1367157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1368157184Sache break 2 1369157184Sache fi 1370157184Sachedone 1371157184Sachedone 1372157184Sache 1373157184Sachefi 1374157184Sachefi 1375157184SacheCC=$ac_cv_prog_CC 1376157184Sacheif test -n "$CC"; then 1377157184Sache echo "$as_me:$LINENO: result: $CC" >&5 1378157184Sacheecho "${ECHO_T}$CC" >&6 1379157184Sacheelse 1380157184Sache echo "$as_me:$LINENO: result: no" >&5 1381157184Sacheecho "${ECHO_T}no" >&6 1382157184Sachefi 1383157184Sache 1384157184Sachefi 1385157184Sacheif test -z "$ac_cv_prog_CC"; then 1386157184Sache ac_ct_CC=$CC 1387157184Sache # Extract the first word of "cc", so it can be a program name with args. 1388157184Sacheset dummy cc; ac_word=$2 1389157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1390157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1391157184Sacheif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1392157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1393157184Sacheelse 1394157184Sache if test -n "$ac_ct_CC"; then 1395157184Sache ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1396157184Sacheelse 1397157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1398157184Sachefor as_dir in $PATH 1399157184Sachedo 1400157184Sache IFS=$as_save_IFS 1401157184Sache test -z "$as_dir" && as_dir=. 1402157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1403157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1404157184Sache ac_cv_prog_ac_ct_CC="cc" 1405157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1406157184Sache break 2 1407157184Sache fi 1408157184Sachedone 1409157184Sachedone 1410157184Sache 1411157184Sachefi 1412157184Sachefi 1413157184Sacheac_ct_CC=$ac_cv_prog_ac_ct_CC 1414157184Sacheif test -n "$ac_ct_CC"; then 1415157184Sache echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1416157184Sacheecho "${ECHO_T}$ac_ct_CC" >&6 1417157184Sacheelse 1418157184Sache echo "$as_me:$LINENO: result: no" >&5 1419157184Sacheecho "${ECHO_T}no" >&6 1420157184Sachefi 1421157184Sache 1422157184Sache CC=$ac_ct_CC 1423157184Sacheelse 1424157184Sache CC="$ac_cv_prog_CC" 1425157184Sachefi 1426157184Sache 1427157184Sachefi 1428157184Sacheif test -z "$CC"; then 1429157184Sache # Extract the first word of "cc", so it can be a program name with args. 1430157184Sacheset dummy cc; ac_word=$2 1431157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1432157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1433157184Sacheif test "${ac_cv_prog_CC+set}" = set; then 1434157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1435157184Sacheelse 1436157184Sache if test -n "$CC"; then 1437157184Sache ac_cv_prog_CC="$CC" # Let the user override the test. 1438157184Sacheelse 1439157184Sache ac_prog_rejected=no 1440157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1441157184Sachefor as_dir in $PATH 1442157184Sachedo 1443157184Sache IFS=$as_save_IFS 1444157184Sache test -z "$as_dir" && as_dir=. 1445157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1446157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1447157184Sache if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1448157184Sache ac_prog_rejected=yes 1449157184Sache continue 1450157184Sache fi 1451157184Sache ac_cv_prog_CC="cc" 1452157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1453157184Sache break 2 1454157184Sache fi 1455157184Sachedone 1456157184Sachedone 1457157184Sache 1458157184Sacheif test $ac_prog_rejected = yes; then 1459157184Sache # We found a bogon in the path, so make sure we never use it. 1460157184Sache set dummy $ac_cv_prog_CC 1461157184Sache shift 1462157184Sache if test $# != 0; then 1463157184Sache # We chose a different compiler from the bogus one. 1464157184Sache # However, it has the same basename, so the bogon will be chosen 1465157184Sache # first if we set CC to just the basename; use the full file name. 1466157184Sache shift 1467157184Sache ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1468157184Sache fi 1469157184Sachefi 1470157184Sachefi 1471157184Sachefi 1472157184SacheCC=$ac_cv_prog_CC 1473157184Sacheif test -n "$CC"; then 1474157184Sache echo "$as_me:$LINENO: result: $CC" >&5 1475157184Sacheecho "${ECHO_T}$CC" >&6 1476157184Sacheelse 1477157184Sache echo "$as_me:$LINENO: result: no" >&5 1478157184Sacheecho "${ECHO_T}no" >&6 1479157184Sachefi 1480157184Sache 1481157184Sachefi 1482157184Sacheif test -z "$CC"; then 1483157184Sache if test -n "$ac_tool_prefix"; then 1484157184Sache for ac_prog in cl 1485157184Sache do 1486157184Sache # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1487157184Sacheset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1488157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1489157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1490157184Sacheif test "${ac_cv_prog_CC+set}" = set; then 1491157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1492157184Sacheelse 1493157184Sache if test -n "$CC"; then 1494157184Sache ac_cv_prog_CC="$CC" # Let the user override the test. 1495157184Sacheelse 1496157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1497157184Sachefor as_dir in $PATH 1498157184Sachedo 1499157184Sache IFS=$as_save_IFS 1500157184Sache test -z "$as_dir" && as_dir=. 1501157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1502157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1503157184Sache ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1504157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1505157184Sache break 2 1506157184Sache fi 1507157184Sachedone 1508157184Sachedone 1509157184Sache 1510157184Sachefi 1511157184Sachefi 1512157184SacheCC=$ac_cv_prog_CC 1513157184Sacheif test -n "$CC"; then 1514157184Sache echo "$as_me:$LINENO: result: $CC" >&5 1515157184Sacheecho "${ECHO_T}$CC" >&6 1516157184Sacheelse 1517157184Sache echo "$as_me:$LINENO: result: no" >&5 1518157184Sacheecho "${ECHO_T}no" >&6 1519157184Sachefi 1520157184Sache 1521157184Sache test -n "$CC" && break 1522157184Sache done 1523157184Sachefi 1524157184Sacheif test -z "$CC"; then 1525157184Sache ac_ct_CC=$CC 1526157184Sache for ac_prog in cl 1527157184Sachedo 1528157184Sache # Extract the first word of "$ac_prog", so it can be a program name with args. 1529157184Sacheset dummy $ac_prog; ac_word=$2 1530157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 1531157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1532157184Sacheif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1533157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1534157184Sacheelse 1535157184Sache if test -n "$ac_ct_CC"; then 1536157184Sache ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1537157184Sacheelse 1538157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1539157184Sachefor as_dir in $PATH 1540157184Sachedo 1541157184Sache IFS=$as_save_IFS 1542157184Sache test -z "$as_dir" && as_dir=. 1543157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 1544157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1545157184Sache ac_cv_prog_ac_ct_CC="$ac_prog" 1546157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1547157184Sache break 2 1548157184Sache fi 1549157184Sachedone 1550157184Sachedone 1551157184Sache 1552157184Sachefi 1553157184Sachefi 1554157184Sacheac_ct_CC=$ac_cv_prog_ac_ct_CC 1555157184Sacheif test -n "$ac_ct_CC"; then 1556157184Sache echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1557157184Sacheecho "${ECHO_T}$ac_ct_CC" >&6 1558157184Sacheelse 1559157184Sache echo "$as_me:$LINENO: result: no" >&5 1560157184Sacheecho "${ECHO_T}no" >&6 1561157184Sachefi 1562157184Sache 1563157184Sache test -n "$ac_ct_CC" && break 1564157184Sachedone 1565157184Sache 1566157184Sache CC=$ac_ct_CC 1567157184Sachefi 1568157184Sache 1569157184Sachefi 1570157184Sache 1571157184Sache 1572157184Sachetest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1573157184SacheSee \`config.log' for more details." >&5 1574157184Sacheecho "$as_me: error: no acceptable C compiler found in \$PATH 1575157184SacheSee \`config.log' for more details." >&2;} 1576157184Sache { (exit 1); exit 1; }; } 1577157184Sache 1578157184Sache# Provide some information about the compiler. 1579157184Sacheecho "$as_me:$LINENO:" \ 1580157184Sache "checking for C compiler version" >&5 1581157184Sacheac_compiler=`set X $ac_compile; echo $2` 1582157184Sache{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1583157184Sache (eval $ac_compiler --version </dev/null >&5) 2>&5 1584157184Sache ac_status=$? 1585157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1586157184Sache (exit $ac_status); } 1587157184Sache{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1588157184Sache (eval $ac_compiler -v </dev/null >&5) 2>&5 1589157184Sache ac_status=$? 1590157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1591157184Sache (exit $ac_status); } 1592157184Sache{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1593157184Sache (eval $ac_compiler -V </dev/null >&5) 2>&5 1594157184Sache ac_status=$? 1595157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1596157184Sache (exit $ac_status); } 1597157184Sache 1598157184Sachecat >conftest.$ac_ext <<_ACEOF 1599157184Sache/* confdefs.h. */ 1600157184Sache_ACEOF 1601157184Sachecat confdefs.h >>conftest.$ac_ext 1602157184Sachecat >>conftest.$ac_ext <<_ACEOF 1603157184Sache/* end confdefs.h. */ 1604157184Sache 1605157184Sacheint 1606157184Sachemain () 1607157184Sache{ 1608157184Sache 1609157184Sache ; 1610157184Sache return 0; 1611157184Sache} 1612157184Sache_ACEOF 1613157184Sacheac_clean_files_save=$ac_clean_files 1614157184Sacheac_clean_files="$ac_clean_files a.out a.exe b.out" 1615157184Sache# Try to create an executable without -o first, disregard a.out. 1616157184Sache# It will help us diagnose broken compilers, and finding out an intuition 1617157184Sache# of exeext. 1618157184Sacheecho "$as_me:$LINENO: checking for C compiler default output file name" >&5 1619157184Sacheecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1620157184Sacheac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1621157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1622157184Sache (eval $ac_link_default) 2>&5 1623157184Sache ac_status=$? 1624157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1625157184Sache (exit $ac_status); }; then 1626157184Sache # Find the output, starting from the most likely. This scheme is 1627157184Sache# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1628157184Sache# resort. 1629157184Sache 1630157184Sache# Be careful to initialize this variable, since it used to be cached. 1631157184Sache# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1632157184Sacheac_cv_exeext= 1633157184Sache# b.out is created by i960 compilers. 1634157184Sachefor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1635157184Sachedo 1636157184Sache test -f "$ac_file" || continue 1637157184Sache case $ac_file in 1638157184Sache *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1639157184Sache ;; 1640157184Sache conftest.$ac_ext ) 1641157184Sache # This is the source file. 1642157184Sache ;; 1643157184Sache [ab].out ) 1644157184Sache # We found the default executable, but exeext='' is most 1645157184Sache # certainly right. 1646157184Sache break;; 1647157184Sache *.* ) 1648157184Sache ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1649157184Sache # FIXME: I believe we export ac_cv_exeext for Libtool, 1650157184Sache # but it would be cool to find out if it's true. Does anybody 1651157184Sache # maintain Libtool? --akim. 1652157184Sache export ac_cv_exeext 1653157184Sache break;; 1654157184Sache * ) 1655157184Sache break;; 1656157184Sache esac 1657157184Sachedone 1658157184Sacheelse 1659157184Sache echo "$as_me: failed program was:" >&5 1660157184Sachesed 's/^/| /' conftest.$ac_ext >&5 1661157184Sache 1662157184Sache{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1663157184SacheSee \`config.log' for more details." >&5 1664157184Sacheecho "$as_me: error: C compiler cannot create executables 1665157184SacheSee \`config.log' for more details." >&2;} 1666157184Sache { (exit 77); exit 77; }; } 1667157184Sachefi 1668157184Sache 1669157184Sacheac_exeext=$ac_cv_exeext 1670157184Sacheecho "$as_me:$LINENO: result: $ac_file" >&5 1671157184Sacheecho "${ECHO_T}$ac_file" >&6 1672157184Sache 1673157184Sache# Check the compiler produces executables we can run. If not, either 1674157184Sache# the compiler is broken, or we cross compile. 1675157184Sacheecho "$as_me:$LINENO: checking whether the C compiler works" >&5 1676157184Sacheecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1677157184Sache# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1678157184Sache# If not cross compiling, check that we can run a simple program. 1679157184Sacheif test "$cross_compiling" != yes; then 1680157184Sache if { ac_try='./$ac_file' 1681157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1682157184Sache (eval $ac_try) 2>&5 1683157184Sache ac_status=$? 1684157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1685157184Sache (exit $ac_status); }; }; then 1686157184Sache cross_compiling=no 1687157184Sache else 1688157184Sache if test "$cross_compiling" = maybe; then 1689157184Sache cross_compiling=yes 1690157184Sache else 1691157184Sache { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1692157184SacheIf you meant to cross compile, use \`--host'. 1693157184SacheSee \`config.log' for more details." >&5 1694157184Sacheecho "$as_me: error: cannot run C compiled programs. 1695157184SacheIf you meant to cross compile, use \`--host'. 1696157184SacheSee \`config.log' for more details." >&2;} 1697157184Sache { (exit 1); exit 1; }; } 1698157184Sache fi 1699157184Sache fi 1700157184Sachefi 1701157184Sacheecho "$as_me:$LINENO: result: yes" >&5 1702157184Sacheecho "${ECHO_T}yes" >&6 1703157184Sache 1704157184Sacherm -f a.out a.exe conftest$ac_cv_exeext b.out 1705157184Sacheac_clean_files=$ac_clean_files_save 1706157184Sache# Check the compiler produces executables we can run. If not, either 1707157184Sache# the compiler is broken, or we cross compile. 1708157184Sacheecho "$as_me:$LINENO: checking whether we are cross compiling" >&5 1709157184Sacheecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1710157184Sacheecho "$as_me:$LINENO: result: $cross_compiling" >&5 1711157184Sacheecho "${ECHO_T}$cross_compiling" >&6 1712157184Sache 1713157184Sacheecho "$as_me:$LINENO: checking for suffix of executables" >&5 1714157184Sacheecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1715157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1716157184Sache (eval $ac_link) 2>&5 1717157184Sache ac_status=$? 1718157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1719157184Sache (exit $ac_status); }; then 1720157184Sache # If both `conftest.exe' and `conftest' are `present' (well, observable) 1721157184Sache# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1722157184Sache# work properly (i.e., refer to `conftest.exe'), while it won't with 1723157184Sache# `rm'. 1724157184Sachefor ac_file in conftest.exe conftest conftest.*; do 1725157184Sache test -f "$ac_file" || continue 1726157184Sache case $ac_file in 1727157184Sache *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1728157184Sache *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1729157184Sache export ac_cv_exeext 1730157184Sache break;; 1731157184Sache * ) break;; 1732157184Sache esac 1733157184Sachedone 1734157184Sacheelse 1735157184Sache { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1736157184SacheSee \`config.log' for more details." >&5 1737157184Sacheecho "$as_me: error: cannot compute suffix of executables: cannot compile and link 1738157184SacheSee \`config.log' for more details." >&2;} 1739157184Sache { (exit 1); exit 1; }; } 1740157184Sachefi 1741157184Sache 1742157184Sacherm -f conftest$ac_cv_exeext 1743157184Sacheecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1744157184Sacheecho "${ECHO_T}$ac_cv_exeext" >&6 1745157184Sache 1746157184Sacherm -f conftest.$ac_ext 1747157184SacheEXEEXT=$ac_cv_exeext 1748157184Sacheac_exeext=$EXEEXT 1749157184Sacheecho "$as_me:$LINENO: checking for suffix of object files" >&5 1750157184Sacheecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1751157184Sacheif test "${ac_cv_objext+set}" = set; then 1752157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1753157184Sacheelse 1754157184Sache cat >conftest.$ac_ext <<_ACEOF 1755157184Sache/* confdefs.h. */ 1756157184Sache_ACEOF 1757157184Sachecat confdefs.h >>conftest.$ac_ext 1758157184Sachecat >>conftest.$ac_ext <<_ACEOF 1759157184Sache/* end confdefs.h. */ 1760157184Sache 1761157184Sacheint 1762157184Sachemain () 1763157184Sache{ 1764157184Sache 1765157184Sache ; 1766157184Sache return 0; 1767157184Sache} 1768157184Sache_ACEOF 1769157184Sacherm -f conftest.o conftest.obj 1770157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1771157184Sache (eval $ac_compile) 2>&5 1772157184Sache ac_status=$? 1773157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1774157184Sache (exit $ac_status); }; then 1775157184Sache for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1776157184Sache case $ac_file in 1777157184Sache *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1778157184Sache *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1779157184Sache break;; 1780157184Sache esac 1781157184Sachedone 1782157184Sacheelse 1783157184Sache echo "$as_me: failed program was:" >&5 1784157184Sachesed 's/^/| /' conftest.$ac_ext >&5 1785157184Sache 1786157184Sache{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1787157184SacheSee \`config.log' for more details." >&5 1788157184Sacheecho "$as_me: error: cannot compute suffix of object files: cannot compile 1789157184SacheSee \`config.log' for more details." >&2;} 1790157184Sache { (exit 1); exit 1; }; } 1791157184Sachefi 1792157184Sache 1793157184Sacherm -f conftest.$ac_cv_objext conftest.$ac_ext 1794157184Sachefi 1795157184Sacheecho "$as_me:$LINENO: result: $ac_cv_objext" >&5 1796157184Sacheecho "${ECHO_T}$ac_cv_objext" >&6 1797157184SacheOBJEXT=$ac_cv_objext 1798157184Sacheac_objext=$OBJEXT 1799157184Sacheecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1800157184Sacheecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1801157184Sacheif test "${ac_cv_c_compiler_gnu+set}" = set; then 1802157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1803157184Sacheelse 1804157184Sache cat >conftest.$ac_ext <<_ACEOF 1805157184Sache/* confdefs.h. */ 1806157184Sache_ACEOF 1807157184Sachecat confdefs.h >>conftest.$ac_ext 1808157184Sachecat >>conftest.$ac_ext <<_ACEOF 1809157184Sache/* end confdefs.h. */ 1810157184Sache 1811157184Sacheint 1812157184Sachemain () 1813157184Sache{ 1814157184Sache#ifndef __GNUC__ 1815157184Sache choke me 1816157184Sache#endif 1817157184Sache 1818157184Sache ; 1819157184Sache return 0; 1820157184Sache} 1821157184Sache_ACEOF 1822157184Sacherm -f conftest.$ac_objext 1823157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1824157184Sache (eval $ac_compile) 2>conftest.er1 1825157184Sache ac_status=$? 1826157184Sache grep -v '^ *+' conftest.er1 >conftest.err 1827157184Sache rm -f conftest.er1 1828157184Sache cat conftest.err >&5 1829157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830157184Sache (exit $ac_status); } && 1831157184Sache { ac_try='test -z "$ac_c_werror_flag" 1832157184Sache || test ! -s conftest.err' 1833157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1834157184Sache (eval $ac_try) 2>&5 1835157184Sache ac_status=$? 1836157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1837157184Sache (exit $ac_status); }; } && 1838157184Sache { ac_try='test -s conftest.$ac_objext' 1839157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1840157184Sache (eval $ac_try) 2>&5 1841157184Sache ac_status=$? 1842157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1843157184Sache (exit $ac_status); }; }; then 1844157184Sache ac_compiler_gnu=yes 1845157184Sacheelse 1846157184Sache echo "$as_me: failed program was:" >&5 1847157184Sachesed 's/^/| /' conftest.$ac_ext >&5 1848157184Sache 1849157184Sacheac_compiler_gnu=no 1850157184Sachefi 1851157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1852157184Sacheac_cv_c_compiler_gnu=$ac_compiler_gnu 1853157184Sache 1854157184Sachefi 1855157184Sacheecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1856157184Sacheecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1857157184SacheGCC=`test $ac_compiler_gnu = yes && echo yes` 1858157184Sacheac_test_CFLAGS=${CFLAGS+set} 1859157184Sacheac_save_CFLAGS=$CFLAGS 1860157184SacheCFLAGS="-g" 1861157184Sacheecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1862157184Sacheecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1863157184Sacheif test "${ac_cv_prog_cc_g+set}" = set; then 1864157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1865157184Sacheelse 1866157184Sache cat >conftest.$ac_ext <<_ACEOF 1867157184Sache/* confdefs.h. */ 1868157184Sache_ACEOF 1869157184Sachecat confdefs.h >>conftest.$ac_ext 1870157184Sachecat >>conftest.$ac_ext <<_ACEOF 1871157184Sache/* end confdefs.h. */ 1872157184Sache 1873157184Sacheint 1874157184Sachemain () 1875157184Sache{ 1876157184Sache 1877157184Sache ; 1878157184Sache return 0; 1879157184Sache} 1880157184Sache_ACEOF 1881157184Sacherm -f conftest.$ac_objext 1882157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1883157184Sache (eval $ac_compile) 2>conftest.er1 1884157184Sache ac_status=$? 1885157184Sache grep -v '^ *+' conftest.er1 >conftest.err 1886157184Sache rm -f conftest.er1 1887157184Sache cat conftest.err >&5 1888157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1889157184Sache (exit $ac_status); } && 1890157184Sache { ac_try='test -z "$ac_c_werror_flag" 1891157184Sache || test ! -s conftest.err' 1892157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1893157184Sache (eval $ac_try) 2>&5 1894157184Sache ac_status=$? 1895157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1896157184Sache (exit $ac_status); }; } && 1897157184Sache { ac_try='test -s conftest.$ac_objext' 1898157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1899157184Sache (eval $ac_try) 2>&5 1900157184Sache ac_status=$? 1901157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 1902157184Sache (exit $ac_status); }; }; then 1903157184Sache ac_cv_prog_cc_g=yes 1904157184Sacheelse 1905157184Sache echo "$as_me: failed program was:" >&5 1906157184Sachesed 's/^/| /' conftest.$ac_ext >&5 1907157184Sache 1908157184Sacheac_cv_prog_cc_g=no 1909157184Sachefi 1910157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1911157184Sachefi 1912157184Sacheecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1913157184Sacheecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 1914157184Sacheif test "$ac_test_CFLAGS" = set; then 1915157184Sache CFLAGS=$ac_save_CFLAGS 1916157184Sacheelif test $ac_cv_prog_cc_g = yes; then 1917157184Sache if test "$GCC" = yes; then 1918157184Sache CFLAGS="-g -O2" 1919157184Sache else 1920157184Sache CFLAGS="-g" 1921157184Sache fi 1922157184Sacheelse 1923157184Sache if test "$GCC" = yes; then 1924157184Sache CFLAGS="-O2" 1925157184Sache else 1926157184Sache CFLAGS= 1927157184Sache fi 1928157184Sachefi 1929157184Sacheecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1930157184Sacheecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1931157184Sacheif test "${ac_cv_prog_cc_stdc+set}" = set; then 1932157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 1933157184Sacheelse 1934157184Sache ac_cv_prog_cc_stdc=no 1935157184Sacheac_save_CC=$CC 1936157184Sachecat >conftest.$ac_ext <<_ACEOF 1937157184Sache/* confdefs.h. */ 1938157184Sache_ACEOF 1939157184Sachecat confdefs.h >>conftest.$ac_ext 1940157184Sachecat >>conftest.$ac_ext <<_ACEOF 1941157184Sache/* end confdefs.h. */ 1942157184Sache#include <stdarg.h> 1943157184Sache#include <stdio.h> 1944157184Sache#include <sys/types.h> 1945157184Sache#include <sys/stat.h> 1946157184Sache/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1947157184Sachestruct buf { int x; }; 1948157184SacheFILE * (*rcsopen) (struct buf *, struct stat *, int); 1949157184Sachestatic char *e (p, i) 1950157184Sache char **p; 1951157184Sache int i; 1952157184Sache{ 1953157184Sache return p[i]; 1954157184Sache} 1955157184Sachestatic char *f (char * (*g) (char **, int), char **p, ...) 1956157184Sache{ 1957157184Sache char *s; 1958157184Sache va_list v; 1959157184Sache va_start (v,p); 1960157184Sache s = g (p, va_arg (v,int)); 1961157184Sache va_end (v); 1962157184Sache return s; 1963157184Sache} 1964157184Sache 1965157184Sache/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 1966157184Sache function prototypes and stuff, but not '\xHH' hex character constants. 1967157184Sache These don't provoke an error unfortunately, instead are silently treated 1968157184Sache as 'x'. The following induces an error, until -std1 is added to get 1969157184Sache proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 1970157184Sache array size at least. It's necessary to write '\x00'==0 to get something 1971157184Sache that's true only with -std1. */ 1972157184Sacheint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 1973157184Sache 1974157184Sacheint test (int i, double x); 1975157184Sachestruct s1 {int (*f) (int a);}; 1976157184Sachestruct s2 {int (*f) (double a);}; 1977157184Sacheint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1978157184Sacheint argc; 1979157184Sachechar **argv; 1980157184Sacheint 1981157184Sachemain () 1982157184Sache{ 1983157184Sachereturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1984157184Sache ; 1985157184Sache return 0; 1986157184Sache} 1987157184Sache_ACEOF 1988157184Sache# Don't try gcc -ansi; that turns off useful extensions and 1989157184Sache# breaks some systems' header files. 1990157184Sache# AIX -qlanglvl=ansi 1991157184Sache# Ultrix and OSF/1 -std1 1992157184Sache# HP-UX 10.20 and later -Ae 1993157184Sache# HP-UX older versions -Aa -D_HPUX_SOURCE 1994157184Sache# SVR4 -Xc -D__EXTENSIONS__ 1995157184Sachefor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1996157184Sachedo 1997157184Sache CC="$ac_save_CC $ac_arg" 1998157184Sache rm -f conftest.$ac_objext 1999157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2000157184Sache (eval $ac_compile) 2>conftest.er1 2001157184Sache ac_status=$? 2002157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2003157184Sache rm -f conftest.er1 2004157184Sache cat conftest.err >&5 2005157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2006157184Sache (exit $ac_status); } && 2007157184Sache { ac_try='test -z "$ac_c_werror_flag" 2008157184Sache || test ! -s conftest.err' 2009157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2010157184Sache (eval $ac_try) 2>&5 2011157184Sache ac_status=$? 2012157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2013157184Sache (exit $ac_status); }; } && 2014157184Sache { ac_try='test -s conftest.$ac_objext' 2015157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2016157184Sache (eval $ac_try) 2>&5 2017157184Sache ac_status=$? 2018157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2019157184Sache (exit $ac_status); }; }; then 2020157184Sache ac_cv_prog_cc_stdc=$ac_arg 2021157184Sachebreak 2022157184Sacheelse 2023157184Sache echo "$as_me: failed program was:" >&5 2024157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2025157184Sache 2026157184Sachefi 2027157184Sacherm -f conftest.err conftest.$ac_objext 2028157184Sachedone 2029157184Sacherm -f conftest.$ac_ext conftest.$ac_objext 2030157184SacheCC=$ac_save_CC 2031157184Sache 2032157184Sachefi 2033157184Sache 2034157184Sachecase "x$ac_cv_prog_cc_stdc" in 2035157184Sache x|xno) 2036157184Sache echo "$as_me:$LINENO: result: none needed" >&5 2037157184Sacheecho "${ECHO_T}none needed" >&6 ;; 2038157184Sache *) 2039157184Sache echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2040157184Sacheecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2041157184Sache CC="$CC $ac_cv_prog_cc_stdc" ;; 2042157184Sacheesac 2043157184Sache 2044157184Sache# Some people use a C++ compiler to compile C. Since we use `exit', 2045157184Sache# in C++ we need to declare it. In case someone uses the same compiler 2046157184Sache# for both compiling C and C++ we need to have the C++ compiler decide 2047157184Sache# the declaration of exit, since it's the most demanding environment. 2048157184Sachecat >conftest.$ac_ext <<_ACEOF 2049157184Sache#ifndef __cplusplus 2050157184Sache choke me 2051157184Sache#endif 2052157184Sache_ACEOF 2053157184Sacherm -f conftest.$ac_objext 2054157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2055157184Sache (eval $ac_compile) 2>conftest.er1 2056157184Sache ac_status=$? 2057157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2058157184Sache rm -f conftest.er1 2059157184Sache cat conftest.err >&5 2060157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2061157184Sache (exit $ac_status); } && 2062157184Sache { ac_try='test -z "$ac_c_werror_flag" 2063157184Sache || test ! -s conftest.err' 2064157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2065157184Sache (eval $ac_try) 2>&5 2066157184Sache ac_status=$? 2067157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2068157184Sache (exit $ac_status); }; } && 2069157184Sache { ac_try='test -s conftest.$ac_objext' 2070157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2071157184Sache (eval $ac_try) 2>&5 2072157184Sache ac_status=$? 2073157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2074157184Sache (exit $ac_status); }; }; then 2075157184Sache for ac_declaration in \ 2076157184Sache '' \ 2077157184Sache 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2078157184Sache 'extern "C" void std::exit (int); using std::exit;' \ 2079157184Sache 'extern "C" void exit (int) throw ();' \ 2080157184Sache 'extern "C" void exit (int);' \ 2081157184Sache 'void exit (int);' 2082157184Sachedo 2083157184Sache cat >conftest.$ac_ext <<_ACEOF 2084157184Sache/* confdefs.h. */ 2085157184Sache_ACEOF 2086157184Sachecat confdefs.h >>conftest.$ac_ext 2087157184Sachecat >>conftest.$ac_ext <<_ACEOF 2088157184Sache/* end confdefs.h. */ 2089157184Sache$ac_declaration 2090157184Sache#include <stdlib.h> 2091157184Sacheint 2092157184Sachemain () 2093157184Sache{ 2094157184Sacheexit (42); 2095157184Sache ; 2096157184Sache return 0; 2097157184Sache} 2098157184Sache_ACEOF 2099157184Sacherm -f conftest.$ac_objext 2100157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2101157184Sache (eval $ac_compile) 2>conftest.er1 2102157184Sache ac_status=$? 2103157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2104157184Sache rm -f conftest.er1 2105157184Sache cat conftest.err >&5 2106157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2107157184Sache (exit $ac_status); } && 2108157184Sache { ac_try='test -z "$ac_c_werror_flag" 2109157184Sache || test ! -s conftest.err' 2110157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2111157184Sache (eval $ac_try) 2>&5 2112157184Sache ac_status=$? 2113157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2114157184Sache (exit $ac_status); }; } && 2115157184Sache { ac_try='test -s conftest.$ac_objext' 2116157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2117157184Sache (eval $ac_try) 2>&5 2118157184Sache ac_status=$? 2119157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2120157184Sache (exit $ac_status); }; }; then 2121157184Sache : 2122157184Sacheelse 2123157184Sache echo "$as_me: failed program was:" >&5 2124157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2125157184Sache 2126157184Sachecontinue 2127157184Sachefi 2128157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2129157184Sache cat >conftest.$ac_ext <<_ACEOF 2130157184Sache/* confdefs.h. */ 2131157184Sache_ACEOF 2132157184Sachecat confdefs.h >>conftest.$ac_ext 2133157184Sachecat >>conftest.$ac_ext <<_ACEOF 2134157184Sache/* end confdefs.h. */ 2135157184Sache$ac_declaration 2136157184Sacheint 2137157184Sachemain () 2138157184Sache{ 2139157184Sacheexit (42); 2140157184Sache ; 2141157184Sache return 0; 2142157184Sache} 2143157184Sache_ACEOF 2144157184Sacherm -f conftest.$ac_objext 2145157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2146157184Sache (eval $ac_compile) 2>conftest.er1 2147157184Sache ac_status=$? 2148157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2149157184Sache rm -f conftest.er1 2150157184Sache cat conftest.err >&5 2151157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2152157184Sache (exit $ac_status); } && 2153157184Sache { ac_try='test -z "$ac_c_werror_flag" 2154157184Sache || test ! -s conftest.err' 2155157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2156157184Sache (eval $ac_try) 2>&5 2157157184Sache ac_status=$? 2158157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2159157184Sache (exit $ac_status); }; } && 2160157184Sache { ac_try='test -s conftest.$ac_objext' 2161157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2162157184Sache (eval $ac_try) 2>&5 2163157184Sache ac_status=$? 2164157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2165157184Sache (exit $ac_status); }; }; then 2166157184Sache break 2167157184Sacheelse 2168157184Sache echo "$as_me: failed program was:" >&5 2169157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2170157184Sache 2171157184Sachefi 2172157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2173157184Sachedone 2174157184Sacherm -f conftest* 2175157184Sacheif test -n "$ac_declaration"; then 2176157184Sache echo '#ifdef __cplusplus' >>confdefs.h 2177157184Sache echo $ac_declaration >>confdefs.h 2178157184Sache echo '#endif' >>confdefs.h 2179157184Sachefi 2180157184Sache 2181157184Sacheelse 2182157184Sache echo "$as_me: failed program was:" >&5 2183157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2184157184Sache 2185157184Sachefi 2186157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2187157184Sacheac_ext=c 2188157184Sacheac_cpp='$CPP $CPPFLAGS' 2189157184Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2190157184Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2191157184Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu 2192157184Sache 2193157184Sacheac_ext=c 2194157184Sacheac_cpp='$CPP $CPPFLAGS' 2195157184Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2196157184Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2197157184Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu 2198157184Sacheecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2199157184Sacheecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2200157184Sache# On Suns, sometimes $CPP names a directory. 2201157184Sacheif test -n "$CPP" && test -d "$CPP"; then 2202157184Sache CPP= 2203157184Sachefi 2204157184Sacheif test -z "$CPP"; then 2205157184Sache if test "${ac_cv_prog_CPP+set}" = set; then 2206157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 2207157184Sacheelse 2208157184Sache # Double quotes because CPP needs to be expanded 2209157184Sache for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2210157184Sache do 2211157184Sache ac_preproc_ok=false 2212157184Sachefor ac_c_preproc_warn_flag in '' yes 2213157184Sachedo 2214157184Sache # Use a header file that comes with gcc, so configuring glibc 2215157184Sache # with a fresh cross-compiler works. 2216157184Sache # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2217157184Sache # <limits.h> exists even on freestanding compilers. 2218157184Sache # On the NeXT, cc -E runs the code through the compiler's parser, 2219157184Sache # not just through cpp. "Syntax error" is here to catch this case. 2220157184Sache cat >conftest.$ac_ext <<_ACEOF 2221157184Sache/* confdefs.h. */ 2222157184Sache_ACEOF 2223157184Sachecat confdefs.h >>conftest.$ac_ext 2224157184Sachecat >>conftest.$ac_ext <<_ACEOF 2225157184Sache/* end confdefs.h. */ 2226157184Sache#ifdef __STDC__ 2227157184Sache# include <limits.h> 2228157184Sache#else 2229157184Sache# include <assert.h> 2230157184Sache#endif 2231157184Sache Syntax error 2232157184Sache_ACEOF 2233157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2234157184Sache (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2235157184Sache ac_status=$? 2236157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2237157184Sache rm -f conftest.er1 2238157184Sache cat conftest.err >&5 2239157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2240157184Sache (exit $ac_status); } >/dev/null; then 2241157184Sache if test -s conftest.err; then 2242157184Sache ac_cpp_err=$ac_c_preproc_warn_flag 2243157184Sache ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2244157184Sache else 2245157184Sache ac_cpp_err= 2246157184Sache fi 2247157184Sacheelse 2248157184Sache ac_cpp_err=yes 2249157184Sachefi 2250157184Sacheif test -z "$ac_cpp_err"; then 2251157184Sache : 2252157184Sacheelse 2253157184Sache echo "$as_me: failed program was:" >&5 2254157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2255157184Sache 2256157184Sache # Broken: fails on valid input. 2257157184Sachecontinue 2258157184Sachefi 2259157184Sacherm -f conftest.err conftest.$ac_ext 2260157184Sache 2261157184Sache # OK, works on sane cases. Now check whether non-existent headers 2262157184Sache # can be detected and how. 2263157184Sache cat >conftest.$ac_ext <<_ACEOF 2264157184Sache/* confdefs.h. */ 2265157184Sache_ACEOF 2266157184Sachecat confdefs.h >>conftest.$ac_ext 2267157184Sachecat >>conftest.$ac_ext <<_ACEOF 2268157184Sache/* end confdefs.h. */ 2269157184Sache#include <ac_nonexistent.h> 2270157184Sache_ACEOF 2271157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2272157184Sache (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2273157184Sache ac_status=$? 2274157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2275157184Sache rm -f conftest.er1 2276157184Sache cat conftest.err >&5 2277157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2278157184Sache (exit $ac_status); } >/dev/null; then 2279157184Sache if test -s conftest.err; then 2280157184Sache ac_cpp_err=$ac_c_preproc_warn_flag 2281157184Sache ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2282157184Sache else 2283157184Sache ac_cpp_err= 2284157184Sache fi 2285157184Sacheelse 2286157184Sache ac_cpp_err=yes 2287157184Sachefi 2288157184Sacheif test -z "$ac_cpp_err"; then 2289157184Sache # Broken: success on invalid input. 2290157184Sachecontinue 2291157184Sacheelse 2292157184Sache echo "$as_me: failed program was:" >&5 2293157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2294157184Sache 2295157184Sache # Passes both tests. 2296157184Sacheac_preproc_ok=: 2297157184Sachebreak 2298157184Sachefi 2299157184Sacherm -f conftest.err conftest.$ac_ext 2300157184Sache 2301157184Sachedone 2302157184Sache# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2303157184Sacherm -f conftest.err conftest.$ac_ext 2304157184Sacheif $ac_preproc_ok; then 2305157184Sache break 2306157184Sachefi 2307157184Sache 2308157184Sache done 2309157184Sache ac_cv_prog_CPP=$CPP 2310157184Sache 2311157184Sachefi 2312157184Sache CPP=$ac_cv_prog_CPP 2313157184Sacheelse 2314157184Sache ac_cv_prog_CPP=$CPP 2315157184Sachefi 2316157184Sacheecho "$as_me:$LINENO: result: $CPP" >&5 2317157184Sacheecho "${ECHO_T}$CPP" >&6 2318157184Sacheac_preproc_ok=false 2319157184Sachefor ac_c_preproc_warn_flag in '' yes 2320157184Sachedo 2321157184Sache # Use a header file that comes with gcc, so configuring glibc 2322157184Sache # with a fresh cross-compiler works. 2323157184Sache # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2324157184Sache # <limits.h> exists even on freestanding compilers. 2325157184Sache # On the NeXT, cc -E runs the code through the compiler's parser, 2326157184Sache # not just through cpp. "Syntax error" is here to catch this case. 2327157184Sache cat >conftest.$ac_ext <<_ACEOF 2328157184Sache/* confdefs.h. */ 2329157184Sache_ACEOF 2330157184Sachecat confdefs.h >>conftest.$ac_ext 2331157184Sachecat >>conftest.$ac_ext <<_ACEOF 2332157184Sache/* end confdefs.h. */ 2333157184Sache#ifdef __STDC__ 2334157184Sache# include <limits.h> 2335157184Sache#else 2336157184Sache# include <assert.h> 2337157184Sache#endif 2338157184Sache Syntax error 2339157184Sache_ACEOF 2340157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2341157184Sache (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2342157184Sache ac_status=$? 2343157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2344157184Sache rm -f conftest.er1 2345157184Sache cat conftest.err >&5 2346157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2347157184Sache (exit $ac_status); } >/dev/null; then 2348157184Sache if test -s conftest.err; then 2349157184Sache ac_cpp_err=$ac_c_preproc_warn_flag 2350157184Sache ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2351157184Sache else 2352157184Sache ac_cpp_err= 2353157184Sache fi 2354157184Sacheelse 2355157184Sache ac_cpp_err=yes 2356157184Sachefi 2357157184Sacheif test -z "$ac_cpp_err"; then 2358157184Sache : 2359157184Sacheelse 2360157184Sache echo "$as_me: failed program was:" >&5 2361157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2362157184Sache 2363157184Sache # Broken: fails on valid input. 2364157184Sachecontinue 2365157184Sachefi 2366157184Sacherm -f conftest.err conftest.$ac_ext 2367157184Sache 2368157184Sache # OK, works on sane cases. Now check whether non-existent headers 2369157184Sache # can be detected and how. 2370157184Sache cat >conftest.$ac_ext <<_ACEOF 2371157184Sache/* confdefs.h. */ 2372157184Sache_ACEOF 2373157184Sachecat confdefs.h >>conftest.$ac_ext 2374157184Sachecat >>conftest.$ac_ext <<_ACEOF 2375157184Sache/* end confdefs.h. */ 2376157184Sache#include <ac_nonexistent.h> 2377157184Sache_ACEOF 2378157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2379157184Sache (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2380157184Sache ac_status=$? 2381157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2382157184Sache rm -f conftest.er1 2383157184Sache cat conftest.err >&5 2384157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2385157184Sache (exit $ac_status); } >/dev/null; then 2386157184Sache if test -s conftest.err; then 2387157184Sache ac_cpp_err=$ac_c_preproc_warn_flag 2388157184Sache ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2389157184Sache else 2390157184Sache ac_cpp_err= 2391157184Sache fi 2392157184Sacheelse 2393157184Sache ac_cpp_err=yes 2394157184Sachefi 2395157184Sacheif test -z "$ac_cpp_err"; then 2396157184Sache # Broken: success on invalid input. 2397157184Sachecontinue 2398157184Sacheelse 2399157184Sache echo "$as_me: failed program was:" >&5 2400157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2401157184Sache 2402157184Sache # Passes both tests. 2403157184Sacheac_preproc_ok=: 2404157184Sachebreak 2405157184Sachefi 2406157184Sacherm -f conftest.err conftest.$ac_ext 2407157184Sache 2408157184Sachedone 2409157184Sache# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2410157184Sacherm -f conftest.err conftest.$ac_ext 2411157184Sacheif $ac_preproc_ok; then 2412157184Sache : 2413157184Sacheelse 2414157184Sache { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2415157184SacheSee \`config.log' for more details." >&5 2416157184Sacheecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2417157184SacheSee \`config.log' for more details." >&2;} 2418157184Sache { (exit 1); exit 1; }; } 2419157184Sachefi 2420157184Sache 2421157184Sacheac_ext=c 2422157184Sacheac_cpp='$CPP $CPPFLAGS' 2423157184Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2424157184Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2425157184Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu 2426157184Sache 2427157184Sache 2428157184Sache 2429157184Sacheecho "$as_me:$LINENO: checking for egrep" >&5 2430157184Sacheecho $ECHO_N "checking for egrep... $ECHO_C" >&6 2431157184Sacheif test "${ac_cv_prog_egrep+set}" = set; then 2432157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 2433157184Sacheelse 2434157184Sache if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2435157184Sache then ac_cv_prog_egrep='grep -E' 2436157184Sache else ac_cv_prog_egrep='egrep' 2437157184Sache fi 2438157184Sachefi 2439157184Sacheecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2440157184Sacheecho "${ECHO_T}$ac_cv_prog_egrep" >&6 2441157184Sache EGREP=$ac_cv_prog_egrep 2442157184Sache 2443157184Sache 2444157184Sacheif test $ac_cv_c_compiler_gnu = yes; then 2445157184Sache echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 2446157184Sacheecho $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2447157184Sacheif test "${ac_cv_prog_gcc_traditional+set}" = set; then 2448157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 2449157184Sacheelse 2450157184Sache ac_pattern="Autoconf.*'x'" 2451157184Sache cat >conftest.$ac_ext <<_ACEOF 2452157184Sache/* confdefs.h. */ 2453157184Sache_ACEOF 2454157184Sachecat confdefs.h >>conftest.$ac_ext 2455157184Sachecat >>conftest.$ac_ext <<_ACEOF 2456157184Sache/* end confdefs.h. */ 2457157184Sache#include <sgtty.h> 2458157184SacheAutoconf TIOCGETP 2459157184Sache_ACEOF 2460157184Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2461157184Sache $EGREP "$ac_pattern" >/dev/null 2>&1; then 2462157184Sache ac_cv_prog_gcc_traditional=yes 2463157184Sacheelse 2464157184Sache ac_cv_prog_gcc_traditional=no 2465157184Sachefi 2466157184Sacherm -f conftest* 2467157184Sache 2468157184Sache 2469157184Sache if test $ac_cv_prog_gcc_traditional = no; then 2470157184Sache cat >conftest.$ac_ext <<_ACEOF 2471157184Sache/* confdefs.h. */ 2472157184Sache_ACEOF 2473157184Sachecat confdefs.h >>conftest.$ac_ext 2474157184Sachecat >>conftest.$ac_ext <<_ACEOF 2475157184Sache/* end confdefs.h. */ 2476157184Sache#include <termio.h> 2477157184SacheAutoconf TCGETA 2478157184Sache_ACEOF 2479157184Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2480157184Sache $EGREP "$ac_pattern" >/dev/null 2>&1; then 2481157184Sache ac_cv_prog_gcc_traditional=yes 2482157184Sachefi 2483157184Sacherm -f conftest* 2484157184Sache 2485157184Sache fi 2486157184Sachefi 2487157184Sacheecho "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 2488157184Sacheecho "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2489157184Sache if test $ac_cv_prog_gcc_traditional = yes; then 2490157184Sache CC="$CC -traditional" 2491157184Sache fi 2492157184Sachefi 2493157184Sache 2494157184Sacheecho "$as_me:$LINENO: checking for library containing strerror" >&5 2495157184Sacheecho $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2496157184Sacheif test "${ac_cv_search_strerror+set}" = set; then 2497157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 2498157184Sacheelse 2499157184Sache ac_func_search_save_LIBS=$LIBS 2500157184Sacheac_cv_search_strerror=no 2501157184Sachecat >conftest.$ac_ext <<_ACEOF 2502157184Sache/* confdefs.h. */ 2503157184Sache_ACEOF 2504157184Sachecat confdefs.h >>conftest.$ac_ext 2505157184Sachecat >>conftest.$ac_ext <<_ACEOF 2506157184Sache/* end confdefs.h. */ 2507157184Sache 2508157184Sache/* Override any gcc2 internal prototype to avoid an error. */ 2509157184Sache#ifdef __cplusplus 2510157184Sacheextern "C" 2511157184Sache#endif 2512157184Sache/* We use char because int might match the return type of a gcc2 2513157184Sache builtin and then its argument prototype would still apply. */ 2514157184Sachechar strerror (); 2515157184Sacheint 2516157184Sachemain () 2517157184Sache{ 2518157184Sachestrerror (); 2519157184Sache ; 2520157184Sache return 0; 2521157184Sache} 2522157184Sache_ACEOF 2523157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 2524157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2525157184Sache (eval $ac_link) 2>conftest.er1 2526157184Sache ac_status=$? 2527157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2528157184Sache rm -f conftest.er1 2529157184Sache cat conftest.err >&5 2530157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531157184Sache (exit $ac_status); } && 2532157184Sache { ac_try='test -z "$ac_c_werror_flag" 2533157184Sache || test ! -s conftest.err' 2534157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535157184Sache (eval $ac_try) 2>&5 2536157184Sache ac_status=$? 2537157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538157184Sache (exit $ac_status); }; } && 2539157184Sache { ac_try='test -s conftest$ac_exeext' 2540157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2541157184Sache (eval $ac_try) 2>&5 2542157184Sache ac_status=$? 2543157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2544157184Sache (exit $ac_status); }; }; then 2545157184Sache ac_cv_search_strerror="none required" 2546157184Sacheelse 2547157184Sache echo "$as_me: failed program was:" >&5 2548157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2549157184Sache 2550157184Sachefi 2551157184Sacherm -f conftest.err conftest.$ac_objext \ 2552157184Sache conftest$ac_exeext conftest.$ac_ext 2553157184Sacheif test "$ac_cv_search_strerror" = no; then 2554157184Sache for ac_lib in cposix; do 2555157184Sache LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2556157184Sache cat >conftest.$ac_ext <<_ACEOF 2557157184Sache/* confdefs.h. */ 2558157184Sache_ACEOF 2559157184Sachecat confdefs.h >>conftest.$ac_ext 2560157184Sachecat >>conftest.$ac_ext <<_ACEOF 2561157184Sache/* end confdefs.h. */ 2562157184Sache 2563157184Sache/* Override any gcc2 internal prototype to avoid an error. */ 2564157184Sache#ifdef __cplusplus 2565157184Sacheextern "C" 2566157184Sache#endif 2567157184Sache/* We use char because int might match the return type of a gcc2 2568157184Sache builtin and then its argument prototype would still apply. */ 2569157184Sachechar strerror (); 2570157184Sacheint 2571157184Sachemain () 2572157184Sache{ 2573157184Sachestrerror (); 2574157184Sache ; 2575157184Sache return 0; 2576157184Sache} 2577157184Sache_ACEOF 2578157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 2579157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2580157184Sache (eval $ac_link) 2>conftest.er1 2581157184Sache ac_status=$? 2582157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2583157184Sache rm -f conftest.er1 2584157184Sache cat conftest.err >&5 2585157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586157184Sache (exit $ac_status); } && 2587157184Sache { ac_try='test -z "$ac_c_werror_flag" 2588157184Sache || test ! -s conftest.err' 2589157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2590157184Sache (eval $ac_try) 2>&5 2591157184Sache ac_status=$? 2592157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593157184Sache (exit $ac_status); }; } && 2594157184Sache { ac_try='test -s conftest$ac_exeext' 2595157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2596157184Sache (eval $ac_try) 2>&5 2597157184Sache ac_status=$? 2598157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599157184Sache (exit $ac_status); }; }; then 2600157184Sache ac_cv_search_strerror="-l$ac_lib" 2601157184Sachebreak 2602157184Sacheelse 2603157184Sache echo "$as_me: failed program was:" >&5 2604157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2605157184Sache 2606157184Sachefi 2607157184Sacherm -f conftest.err conftest.$ac_objext \ 2608157184Sache conftest$ac_exeext conftest.$ac_ext 2609157184Sache done 2610157184Sachefi 2611157184SacheLIBS=$ac_func_search_save_LIBS 2612157184Sachefi 2613157184Sacheecho "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2614157184Sacheecho "${ECHO_T}$ac_cv_search_strerror" >&6 2615157184Sacheif test "$ac_cv_search_strerror" != no; then 2616157184Sache test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2617157184Sache 2618157184Sachefi 2619157184Sache 2620157184Sache 2621157184Sacheif test "$cross_compiling" = yes; then 2622157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2623157184SacheSee \`config.log' for more details." >&5 2624157184Sacheecho "$as_me: error: cannot run test program while cross compiling 2625157184SacheSee \`config.log' for more details." >&2;} 2626157184Sache { (exit 1); exit 1; }; } 2627157184Sacheelse 2628157184Sache cat >conftest.$ac_ext <<_ACEOF 2629157184Sache/* confdefs.h. */ 2630157184Sache_ACEOF 2631157184Sachecat confdefs.h >>conftest.$ac_ext 2632157184Sachecat >>conftest.$ac_ext <<_ACEOF 2633157184Sache/* end confdefs.h. */ 2634157184Sachemain(){exit(0);} 2635157184Sache_ACEOF 2636157184Sacherm -f conftest$ac_exeext 2637157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2638157184Sache (eval $ac_link) 2>&5 2639157184Sache ac_status=$? 2640157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2642157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2643157184Sache (eval $ac_try) 2>&5 2644157184Sache ac_status=$? 2645157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646157184Sache (exit $ac_status); }; }; then 2647157184Sache : 2648157184Sacheelse 2649157184Sache echo "$as_me: program exited with status $ac_status" >&5 2650157184Sacheecho "$as_me: failed program was:" >&5 2651157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2652157184Sache 2653157184Sache( exit $ac_status ) 2654157184Sache 2655157184Sacheif test $CC != cc ; then 2656157184Sacheecho "Your $CC failed - restarting with CC=cc" 1>&6 2657157184Sache 2658157184Sacheecho "" 1>&6 2659157184Sache 2660157184SacheCC=cc 2661157184Sacheexport CC 2662157184Sacheexec $0 $configure_args 2663157184Sachefi 2664157184Sache 2665157184Sachefi 2666157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2667157184Sachefi 2668157184Sache 2669157184Sacheif test "$cross_compiling" = yes; then 2670157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2671157184SacheSee \`config.log' for more details." >&5 2672157184Sacheecho "$as_me: error: cannot run test program while cross compiling 2673157184SacheSee \`config.log' for more details." >&2;} 2674157184Sache { (exit 1); exit 1; }; } 2675157184Sacheelse 2676157184Sache cat >conftest.$ac_ext <<_ACEOF 2677157184Sache/* confdefs.h. */ 2678157184Sache_ACEOF 2679157184Sachecat confdefs.h >>conftest.$ac_ext 2680157184Sachecat >>conftest.$ac_ext <<_ACEOF 2681157184Sache/* end confdefs.h. */ 2682157184Sachemain(){exit(0);} 2683157184Sache_ACEOF 2684157184Sacherm -f conftest$ac_exeext 2685157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2686157184Sache (eval $ac_link) 2>&5 2687157184Sache ac_status=$? 2688157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2689157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2690157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2691157184Sache (eval $ac_try) 2>&5 2692157184Sache ac_status=$? 2693157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2694157184Sache (exit $ac_status); }; }; then 2695157184Sache : 2696157184Sacheelse 2697157184Sache echo "$as_me: program exited with status $ac_status" >&5 2698157184Sacheecho "$as_me: failed program was:" >&5 2699157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2700157184Sache 2701157184Sache( exit $ac_status ) 2702157184Sacheexec 5>&2 2703157184Sacheeval $ac_link 2704157184Sacheecho "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6 2705157184Sache 2706157184Sacheecho "$ac_compile" 1>&6 2707157184Sache 2708157184Sache{ { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5 2709157184Sacheecho "$as_me: error: Can't run the compiler - sorry" >&2;} 2710157184Sache { (exit 1); exit 1; }; } 2711157184Sachefi 2712157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2713157184Sachefi 2714157184Sache 2715157184Sacheif test "$cross_compiling" = yes; then 2716157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2717157184SacheSee \`config.log' for more details." >&5 2718157184Sacheecho "$as_me: error: cannot run test program while cross compiling 2719157184SacheSee \`config.log' for more details." >&2;} 2720157184Sache { (exit 1); exit 1; }; } 2721157184Sacheelse 2722157184Sache cat >conftest.$ac_ext <<_ACEOF 2723157184Sache/* confdefs.h. */ 2724157184Sache_ACEOF 2725157184Sachecat confdefs.h >>conftest.$ac_ext 2726157184Sachecat >>conftest.$ac_ext <<_ACEOF 2727157184Sache/* end confdefs.h. */ 2728157184Sache 2729157184Sachemain() 2730157184Sache{ 2731157184Sache int __something_strange_(); 2732157184Sache __something_strange_(0); 2733157184Sache} 2734157184Sache 2735157184Sache_ACEOF 2736157184Sacherm -f conftest$ac_exeext 2737157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2738157184Sache (eval $ac_link) 2>&5 2739157184Sache ac_status=$? 2740157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2742157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2743157184Sache (eval $ac_try) 2>&5 2744157184Sache ac_status=$? 2745157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746157184Sache (exit $ac_status); }; }; then 2747157184Sache { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5 2748157184Sacheecho "$as_me: error: Your compiler does not set the exit status - sorry" >&2;} 2749157184Sache { (exit 1); exit 1; }; } 2750157184Sacheelse 2751157184Sache echo "$as_me: program exited with status $ac_status" >&5 2752157184Sacheecho "$as_me: failed program was:" >&5 2753157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2754157184Sache 2755157184Sachefi 2756157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2757157184Sachefi 2758157184Sache 2759157184Sachefor ac_prog in gawk mawk nawk awk 2760157184Sachedo 2761157184Sache # Extract the first word of "$ac_prog", so it can be a program name with args. 2762157184Sacheset dummy $ac_prog; ac_word=$2 2763157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 2764157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2765157184Sacheif test "${ac_cv_prog_AWK+set}" = set; then 2766157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 2767157184Sacheelse 2768157184Sache if test -n "$AWK"; then 2769157184Sache ac_cv_prog_AWK="$AWK" # Let the user override the test. 2770157184Sacheelse 2771157184Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772157184Sachefor as_dir in $PATH 2773157184Sachedo 2774157184Sache IFS=$as_save_IFS 2775157184Sache test -z "$as_dir" && as_dir=. 2776157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 2777157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2778157184Sache ac_cv_prog_AWK="$ac_prog" 2779157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2780157184Sache break 2 2781157184Sache fi 2782157184Sachedone 2783157184Sachedone 2784157184Sache 2785157184Sachefi 2786157184Sachefi 2787157184SacheAWK=$ac_cv_prog_AWK 2788157184Sacheif test -n "$AWK"; then 2789157184Sache echo "$as_me:$LINENO: result: $AWK" >&5 2790157184Sacheecho "${ECHO_T}$AWK" >&6 2791157184Sacheelse 2792157184Sache echo "$as_me:$LINENO: result: no" >&5 2793157184Sacheecho "${ECHO_T}no" >&6 2794157184Sachefi 2795157184Sache 2796157184Sache test -n "$AWK" && break 2797157184Sachedone 2798157184Sache 2799157184Sache 2800157184Sacheif test -f etc/toolcheck; then 2801157184Sache{ echo "$as_me:$LINENO: checking for buggy tools..." >&5 2802157184Sacheecho "$as_me: checking for buggy tools..." >&6;} 2803157184Sachesh etc/toolcheck 1>&6 2804157184Sachefi 2805157184Sache 2806157184Sache 2807157184Sache{ echo "$as_me:$LINENO: checking for System V..." >&5 2808157184Sacheecho "$as_me: checking for System V..." >&6;} 2809157184Sachecat >conftest.$ac_ext <<_ACEOF 2810157184Sache/* confdefs.h. */ 2811157184Sache_ACEOF 2812157184Sachecat confdefs.h >>conftest.$ac_ext 2813157184Sachecat >>conftest.$ac_ext <<_ACEOF 2814157184Sache/* end confdefs.h. */ 2815157184Sache#include <sys/types.h> 2816157184Sache#include <signal.h> 2817157184Sache#include <fcntl.h> 2818157184Sacheint 2819157184Sachemain () 2820157184Sache{ 2821157184Sacheint x = SIGCHLD | FNDELAY; 2822157184Sache ; 2823157184Sache return 0; 2824157184Sache} 2825157184Sache_ACEOF 2826157184Sacherm -f conftest.$ac_objext 2827157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2828157184Sache (eval $ac_compile) 2>conftest.er1 2829157184Sache ac_status=$? 2830157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2831157184Sache rm -f conftest.er1 2832157184Sache cat conftest.err >&5 2833157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834157184Sache (exit $ac_status); } && 2835157184Sache { ac_try='test -z "$ac_c_werror_flag" 2836157184Sache || test ! -s conftest.err' 2837157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2838157184Sache (eval $ac_try) 2>&5 2839157184Sache ac_status=$? 2840157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841157184Sache (exit $ac_status); }; } && 2842157184Sache { ac_try='test -s conftest.$ac_objext' 2843157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2844157184Sache (eval $ac_try) 2>&5 2845157184Sache ac_status=$? 2846157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847157184Sache (exit $ac_status); }; }; then 2848157184Sache : 2849157184Sacheelse 2850157184Sache echo "$as_me: failed program was:" >&5 2851157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2852157184Sache 2853157184Sachecat >>confdefs.h <<\_ACEOF 2854157184Sache#define SYSV 1 2855157184Sache_ACEOF 2856157184Sache 2857157184Sachefi 2858157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2859157184Sache 2860157184Sache{ echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5 2861157184Sacheecho "$as_me: checking for Solaris 2.x..." >&6;} 2862157184Sachecat >conftest.$ac_ext <<_ACEOF 2863157184Sache/* confdefs.h. */ 2864157184Sache_ACEOF 2865157184Sachecat confdefs.h >>conftest.$ac_ext 2866157184Sachecat >>conftest.$ac_ext <<_ACEOF 2867157184Sache/* end confdefs.h. */ 2868157184Sache#if defined(SVR4) && defined(sun) 2869157184Sache yes 2870157184Sache#endif 2871157184Sache 2872157184Sache_ACEOF 2873157184Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2874157184Sache $EGREP "yes" >/dev/null 2>&1; then 2875157184Sache LIBS="$LIBS -lsocket -lnsl -lkstat" 2876157184Sachefi 2877157184Sacherm -f conftest* 2878157184Sache 2879157184Sache 2880157184Sache 2881157184Sache{ echo "$as_me:$LINENO: checking select..." >&5 2882157184Sacheecho "$as_me: checking select..." >&6;} 2883157184Sachecat >conftest.$ac_ext <<_ACEOF 2884157184Sache/* confdefs.h. */ 2885157184Sache_ACEOF 2886157184Sachecat confdefs.h >>conftest.$ac_ext 2887157184Sachecat >>conftest.$ac_ext <<_ACEOF 2888157184Sache/* end confdefs.h. */ 2889157184Sache 2890157184Sacheint 2891157184Sachemain () 2892157184Sache{ 2893157184Sacheselect(0, 0, 0, 0, 0); 2894157184Sache ; 2895157184Sache return 0; 2896157184Sache} 2897157184Sache_ACEOF 2898157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 2899157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2900157184Sache (eval $ac_link) 2>conftest.er1 2901157184Sache ac_status=$? 2902157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2903157184Sache rm -f conftest.er1 2904157184Sache cat conftest.err >&5 2905157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906157184Sache (exit $ac_status); } && 2907157184Sache { ac_try='test -z "$ac_c_werror_flag" 2908157184Sache || test ! -s conftest.err' 2909157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2910157184Sache (eval $ac_try) 2>&5 2911157184Sache ac_status=$? 2912157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2913157184Sache (exit $ac_status); }; } && 2914157184Sache { ac_try='test -s conftest$ac_exeext' 2915157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2916157184Sache (eval $ac_try) 2>&5 2917157184Sache ac_status=$? 2918157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2919157184Sache (exit $ac_status); }; }; then 2920157184Sache : 2921157184Sacheelse 2922157184Sache echo "$as_me: failed program was:" >&5 2923157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2924157184Sache 2925157184SacheLIBS="$LIBS -lnet -lnsl" 2926157184Sache{ echo "$as_me:$LINENO: checking select with $LIBS..." >&5 2927157184Sacheecho "$as_me: checking select with $LIBS..." >&6;} 2928157184Sachecat >conftest.$ac_ext <<_ACEOF 2929157184Sache/* confdefs.h. */ 2930157184Sache_ACEOF 2931157184Sachecat confdefs.h >>conftest.$ac_ext 2932157184Sachecat >>conftest.$ac_ext <<_ACEOF 2933157184Sache/* end confdefs.h. */ 2934157184Sache 2935157184Sacheint 2936157184Sachemain () 2937157184Sache{ 2938157184Sacheselect(0, 0, 0, 0, 0); 2939157184Sache ; 2940157184Sache return 0; 2941157184Sache} 2942157184Sache_ACEOF 2943157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 2944157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2945157184Sache (eval $ac_link) 2>conftest.er1 2946157184Sache ac_status=$? 2947157184Sache grep -v '^ *+' conftest.er1 >conftest.err 2948157184Sache rm -f conftest.er1 2949157184Sache cat conftest.err >&5 2950157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951157184Sache (exit $ac_status); } && 2952157184Sache { ac_try='test -z "$ac_c_werror_flag" 2953157184Sache || test ! -s conftest.err' 2954157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2955157184Sache (eval $ac_try) 2>&5 2956157184Sache ac_status=$? 2957157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958157184Sache (exit $ac_status); }; } && 2959157184Sache { ac_try='test -s conftest$ac_exeext' 2960157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2961157184Sache (eval $ac_try) 2>&5 2962157184Sache ac_status=$? 2963157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964157184Sache (exit $ac_status); }; }; then 2965157184Sache : 2966157184Sacheelse 2967157184Sache echo "$as_me: failed program was:" >&5 2968157184Sachesed 's/^/| /' conftest.$ac_ext >&5 2969157184Sache 2970157184Sache{ { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5 2971157184Sacheecho "$as_me: error: !!! no select - no screen" >&2;} 2972157184Sache { (exit 1); exit 1; }; } 2973157184Sachefi 2974157184Sacherm -f conftest.err conftest.$ac_objext \ 2975157184Sache conftest$ac_exeext conftest.$ac_ext 2976157184Sache 2977157184Sachefi 2978157184Sacherm -f conftest.err conftest.$ac_objext \ 2979157184Sache conftest$ac_exeext conftest.$ac_ext 2980157184Sache 2981157184Sache{ echo "$as_me:$LINENO: checking select return value..." >&5 2982157184Sacheecho "$as_me: checking select return value..." >&6;} 2983157184Sacheif test "$cross_compiling" = yes; then 2984157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 2985157184SacheSee \`config.log' for more details." >&5 2986157184Sacheecho "$as_me: error: cannot run test program while cross compiling 2987157184SacheSee \`config.log' for more details." >&2;} 2988157184Sache { (exit 1); exit 1; }; } 2989157184Sacheelse 2990157184Sache cat >conftest.$ac_ext <<_ACEOF 2991157184Sache/* confdefs.h. */ 2992157184Sache_ACEOF 2993157184Sachecat confdefs.h >>conftest.$ac_ext 2994157184Sachecat >>conftest.$ac_ext <<_ACEOF 2995157184Sache/* end confdefs.h. */ 2996157184Sache 2997157184Sache#include <sys/types.h> 2998157184Sache#include <sys/stat.h> 2999157184Sache#include <fcntl.h> 3000157184Sache 3001157184Sachechar *nam = "/tmp/conftest$$"; 3002157184Sache 3003157184Sache#ifdef NAMEDPIPE 3004157184Sache 3005157184Sache#ifndef O_NONBLOCK 3006157184Sache#define O_NONBLOCK O_NDELAY 3007157184Sache#endif 3008157184Sache#ifndef S_IFIFO 3009157184Sache#define S_IFIFO 0010000 3010157184Sache#endif 3011157184Sache 3012157184Sache 3013157184Sachemain() 3014157184Sache{ 3015157184Sache#ifdef FD_SET 3016157184Sache fd_set f; 3017157184Sache#else 3018157184Sache int f; 3019157184Sache#endif 3020157184Sache 3021157184Sache#ifdef __FreeBSD__ 3022157184Sache/* From Andrew A. Chernov (ache@astral.msk.su): 3023157184Sache * opening RDWR fifo fails in BSD 4.4, but select return values are 3024157184Sache * right. 3025157184Sache */ 3026157184Sache exit(0); 3027157184Sache#endif 3028157184Sache (void)alarm(5); 3029157184Sache#ifdef POSIX 3030157184Sache if (mkfifo(nam, 0777)) 3031157184Sache#else 3032157184Sache if (mknod(nam, S_IFIFO|0777, 0)) 3033157184Sache#endif 3034157184Sache exit(1); 3035157184Sache close(0); 3036157184Sache if (open(nam, O_RDWR | O_NONBLOCK)) 3037157184Sache exit(1); 3038157184Sache if (write(0, "TEST", 4) == -1) 3039157184Sache exit(1); 3040157184Sache 3041157184Sache#else 3042157184Sache 3043157184Sache#include <sys/types.h> 3044157184Sache#include <sys/socket.h> 3045157184Sache#include <sys/un.h> 3046157184Sache 3047157184Sachemain() 3048157184Sache{ 3049157184Sache int s1, s2, l; 3050157184Sache struct sockaddr_un a; 3051157184Sache#ifdef FD_SET 3052157184Sache fd_set f; 3053157184Sache#else 3054157184Sache int f; 3055157184Sache#endif 3056157184Sache 3057157184Sache (void)alarm(5); 3058157184Sache if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) 3059157184Sache exit(1); 3060157184Sache a.sun_family = AF_UNIX; 3061157184Sache strcpy(a.sun_path, nam); 3062157184Sache (void) unlink(nam); 3063157184Sache if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1) 3064157184Sache exit(1); 3065157184Sache if (listen(s1, 2)) 3066157184Sache exit(1); 3067157184Sache if (fork() == 0) 3068157184Sache { 3069157184Sache if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) 3070157184Sache kill(getppid(), 3); 3071157184Sache (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2); 3072157184Sache if (write(s2, "HELLO", 5) == -1) 3073157184Sache kill(getppid(), 3); 3074157184Sache exit(0); 3075157184Sache } 3076157184Sache l = sizeof(a); 3077157184Sache close(0); 3078157184Sache if (accept(s1, (struct sockaddr *)&a, &l)) 3079157184Sache exit(1); 3080157184Sache#endif 3081157184Sache 3082157184Sache 3083157184Sache#ifdef FD_SET 3084157184Sache FD_SET(0, &f); 3085157184Sache#else 3086157184Sache f = 1; 3087157184Sache#endif 3088157184Sache if (select(1, &f, 0, 0, 0) == -1) 3089157184Sache exit(1); 3090157184Sache if (select(1, &f, &f, 0, 0) != 2) 3091157184Sache exit(1); 3092157184Sache exit(0); 3093157184Sache} 3094157184Sache 3095157184Sache_ACEOF 3096157184Sacherm -f conftest$ac_exeext 3097157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3098157184Sache (eval $ac_link) 2>&5 3099157184Sache ac_status=$? 3100157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3102157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3103157184Sache (eval $ac_try) 2>&5 3104157184Sache ac_status=$? 3105157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3106157184Sache (exit $ac_status); }; }; then 3107157184Sache echo "- select is ok" 1>&6 3108157184Sache 3109157184Sacheelse 3110157184Sache echo "$as_me: program exited with status $ac_status" >&5 3111157184Sacheecho "$as_me: failed program was:" >&5 3112157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3113157184Sache 3114157184Sache( exit $ac_status ) 3115157184Sacheecho "- select can't count" 1>&6 3116157184Sache cat >>confdefs.h <<\_ACEOF 3117157184Sache#define SELECT_BROKEN 1 3118157184Sache_ACEOF 3119157184Sache 3120157184Sachefi 3121157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3122157184Sachefi 3123157184Sache 3124157184Sache{ echo "$as_me:$LINENO: checking for tgetent..." >&5 3125157184Sacheecho "$as_me: checking for tgetent..." >&6;} 3126157184Sachecat >conftest.$ac_ext <<_ACEOF 3127157184Sache/* confdefs.h. */ 3128157184Sache_ACEOF 3129157184Sachecat confdefs.h >>conftest.$ac_ext 3130157184Sachecat >>conftest.$ac_ext <<_ACEOF 3131157184Sache/* end confdefs.h. */ 3132157184Sache 3133157184Sacheint 3134157184Sachemain () 3135157184Sache{ 3136157184Sachetgetent((char *)0, (char *)0); 3137157184Sache ; 3138157184Sache return 0; 3139157184Sache} 3140157184Sache_ACEOF 3141157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3142157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3143157184Sache (eval $ac_link) 2>conftest.er1 3144157184Sache ac_status=$? 3145157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3146157184Sache rm -f conftest.er1 3147157184Sache cat conftest.err >&5 3148157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149157184Sache (exit $ac_status); } && 3150157184Sache { ac_try='test -z "$ac_c_werror_flag" 3151157184Sache || test ! -s conftest.err' 3152157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3153157184Sache (eval $ac_try) 2>&5 3154157184Sache ac_status=$? 3155157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156157184Sache (exit $ac_status); }; } && 3157157184Sache { ac_try='test -s conftest$ac_exeext' 3158157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3159157184Sache (eval $ac_try) 2>&5 3160157184Sache ac_status=$? 3161157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162157184Sache (exit $ac_status); }; }; then 3163157184Sache : 3164157184Sacheelse 3165157184Sache echo "$as_me: failed program was:" >&5 3166157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3167157184Sache 3168157184Sacheolibs="$LIBS" 3169157184SacheLIBS="-lcurses $olibs" 3170157184Sache{ echo "$as_me:$LINENO: checking libcurses..." >&5 3171157184Sacheecho "$as_me: checking libcurses..." >&6;} 3172157184Sachecat >conftest.$ac_ext <<_ACEOF 3173157184Sache/* confdefs.h. */ 3174157184Sache_ACEOF 3175157184Sachecat confdefs.h >>conftest.$ac_ext 3176157184Sachecat >>conftest.$ac_ext <<_ACEOF 3177157184Sache/* end confdefs.h. */ 3178157184Sache 3179157184Sacheint 3180157184Sachemain () 3181157184Sache{ 3182157184Sache 3183157184Sache#ifdef __hpux 3184157184Sache__sorry_hpux_libcurses_is_totally_broken_in_10_10(); 3185157184Sache#else 3186157184Sachetgetent((char *)0, (char *)0); 3187157184Sache#endif 3188157184Sache 3189157184Sache ; 3190157184Sache return 0; 3191157184Sache} 3192157184Sache_ACEOF 3193157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3194157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3195157184Sache (eval $ac_link) 2>conftest.er1 3196157184Sache ac_status=$? 3197157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3198157184Sache rm -f conftest.er1 3199157184Sache cat conftest.err >&5 3200157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3201157184Sache (exit $ac_status); } && 3202157184Sache { ac_try='test -z "$ac_c_werror_flag" 3203157184Sache || test ! -s conftest.err' 3204157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3205157184Sache (eval $ac_try) 2>&5 3206157184Sache ac_status=$? 3207157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208157184Sache (exit $ac_status); }; } && 3209157184Sache { ac_try='test -s conftest$ac_exeext' 3210157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3211157184Sache (eval $ac_try) 2>&5 3212157184Sache ac_status=$? 3213157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214157184Sache (exit $ac_status); }; }; then 3215157184Sache : 3216157184Sacheelse 3217157184Sache echo "$as_me: failed program was:" >&5 3218157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3219157184Sache 3220157184SacheLIBS="-ltermcap $olibs" 3221157184Sache{ echo "$as_me:$LINENO: checking libtermcap..." >&5 3222157184Sacheecho "$as_me: checking libtermcap..." >&6;} 3223157184Sachecat >conftest.$ac_ext <<_ACEOF 3224157184Sache/* confdefs.h. */ 3225157184Sache_ACEOF 3226157184Sachecat confdefs.h >>conftest.$ac_ext 3227157184Sachecat >>conftest.$ac_ext <<_ACEOF 3228157184Sache/* end confdefs.h. */ 3229157184Sache 3230157184Sacheint 3231157184Sachemain () 3232157184Sache{ 3233157184Sachetgetent((char *)0, (char *)0); 3234157184Sache ; 3235157184Sache return 0; 3236157184Sache} 3237157184Sache_ACEOF 3238157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3239157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3240157184Sache (eval $ac_link) 2>conftest.er1 3241157184Sache ac_status=$? 3242157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3243157184Sache rm -f conftest.er1 3244157184Sache cat conftest.err >&5 3245157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3246157184Sache (exit $ac_status); } && 3247157184Sache { ac_try='test -z "$ac_c_werror_flag" 3248157184Sache || test ! -s conftest.err' 3249157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3250157184Sache (eval $ac_try) 2>&5 3251157184Sache ac_status=$? 3252157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253157184Sache (exit $ac_status); }; } && 3254157184Sache { ac_try='test -s conftest$ac_exeext' 3255157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3256157184Sache (eval $ac_try) 2>&5 3257157184Sache ac_status=$? 3258157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259157184Sache (exit $ac_status); }; }; then 3260157184Sache : 3261157184Sacheelse 3262157184Sache echo "$as_me: failed program was:" >&5 3263157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3264157184Sache 3265157184SacheLIBS="-ltermlib $olibs" 3266157184Sache{ echo "$as_me:$LINENO: checking libtermlib..." >&5 3267157184Sacheecho "$as_me: checking libtermlib..." >&6;} 3268157184Sachecat >conftest.$ac_ext <<_ACEOF 3269157184Sache/* confdefs.h. */ 3270157184Sache_ACEOF 3271157184Sachecat confdefs.h >>conftest.$ac_ext 3272157184Sachecat >>conftest.$ac_ext <<_ACEOF 3273157184Sache/* end confdefs.h. */ 3274157184Sache 3275157184Sacheint 3276157184Sachemain () 3277157184Sache{ 3278157184Sachetgetent((char *)0, (char *)0); 3279157184Sache ; 3280157184Sache return 0; 3281157184Sache} 3282157184Sache_ACEOF 3283157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3284157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3285157184Sache (eval $ac_link) 2>conftest.er1 3286157184Sache ac_status=$? 3287157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3288157184Sache rm -f conftest.er1 3289157184Sache cat conftest.err >&5 3290157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291157184Sache (exit $ac_status); } && 3292157184Sache { ac_try='test -z "$ac_c_werror_flag" 3293157184Sache || test ! -s conftest.err' 3294157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3295157184Sache (eval $ac_try) 2>&5 3296157184Sache ac_status=$? 3297157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298157184Sache (exit $ac_status); }; } && 3299157184Sache { ac_try='test -s conftest$ac_exeext' 3300157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3301157184Sache (eval $ac_try) 2>&5 3302157184Sache ac_status=$? 3303157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304157184Sache (exit $ac_status); }; }; then 3305157184Sache : 3306157184Sacheelse 3307157184Sache echo "$as_me: failed program was:" >&5 3308157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3309157184Sache 3310157184SacheLIBS="-lncurses $olibs" 3311157184Sache{ echo "$as_me:$LINENO: checking libncurses..." >&5 3312157184Sacheecho "$as_me: checking libncurses..." >&6;} 3313157184Sachecat >conftest.$ac_ext <<_ACEOF 3314157184Sache/* confdefs.h. */ 3315157184Sache_ACEOF 3316157184Sachecat confdefs.h >>conftest.$ac_ext 3317157184Sachecat >>conftest.$ac_ext <<_ACEOF 3318157184Sache/* end confdefs.h. */ 3319157184Sache 3320157184Sacheint 3321157184Sachemain () 3322157184Sache{ 3323157184Sachetgetent((char *)0, (char *)0); 3324157184Sache ; 3325157184Sache return 0; 3326157184Sache} 3327157184Sache_ACEOF 3328157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3329157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3330157184Sache (eval $ac_link) 2>conftest.er1 3331157184Sache ac_status=$? 3332157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3333157184Sache rm -f conftest.er1 3334157184Sache cat conftest.err >&5 3335157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336157184Sache (exit $ac_status); } && 3337157184Sache { ac_try='test -z "$ac_c_werror_flag" 3338157184Sache || test ! -s conftest.err' 3339157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3340157184Sache (eval $ac_try) 2>&5 3341157184Sache ac_status=$? 3342157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343157184Sache (exit $ac_status); }; } && 3344157184Sache { ac_try='test -s conftest$ac_exeext' 3345157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3346157184Sache (eval $ac_try) 2>&5 3347157184Sache ac_status=$? 3348157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349157184Sache (exit $ac_status); }; }; then 3350157184Sache : 3351157184Sacheelse 3352157184Sache echo "$as_me: failed program was:" >&5 3353157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3354157184Sache 3355157184Sache{ { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5 3356157184Sacheecho "$as_me: error: !!! no tgetent - no screen" >&2;} 3357157184Sache { (exit 1); exit 1; }; } 3358157184Sachefi 3359157184Sacherm -f conftest.err conftest.$ac_objext \ 3360157184Sache conftest$ac_exeext conftest.$ac_ext 3361157184Sachefi 3362157184Sacherm -f conftest.err conftest.$ac_objext \ 3363157184Sache conftest$ac_exeext conftest.$ac_ext 3364157184Sachefi 3365157184Sacherm -f conftest.err conftest.$ac_objext \ 3366157184Sache conftest$ac_exeext conftest.$ac_ext 3367157184Sachefi 3368157184Sacherm -f conftest.err conftest.$ac_objext \ 3369157184Sache conftest$ac_exeext conftest.$ac_ext 3370157184Sachefi 3371157184Sacherm -f conftest.err conftest.$ac_objext \ 3372157184Sache conftest$ac_exeext conftest.$ac_ext 3373157184Sache 3374157184Sacheif test "$cross_compiling" = yes; then 3375157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3376157184SacheSee \`config.log' for more details." >&5 3377157184Sacheecho "$as_me: error: cannot run test program while cross compiling 3378157184SacheSee \`config.log' for more details." >&2;} 3379157184Sache { (exit 1); exit 1; }; } 3380157184Sacheelse 3381157184Sache cat >conftest.$ac_ext <<_ACEOF 3382157184Sache/* confdefs.h. */ 3383157184Sache_ACEOF 3384157184Sachecat confdefs.h >>conftest.$ac_ext 3385157184Sachecat >>conftest.$ac_ext <<_ACEOF 3386157184Sache/* end confdefs.h. */ 3387157184Sache 3388157184Sachemain() 3389157184Sache{ 3390157184Sache exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1); 3391157184Sache} 3392157184Sache_ACEOF 3393157184Sacherm -f conftest$ac_exeext 3394157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3395157184Sache (eval $ac_link) 2>&5 3396157184Sache ac_status=$? 3397157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3398157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3399157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3400157184Sache (eval $ac_try) 2>&5 3401157184Sache ac_status=$? 3402157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3403157184Sache (exit $ac_status); }; }; then 3404157184Sache echo "- you use the termcap database" 1>&6 3405157184Sache 3406157184Sacheelse 3407157184Sache echo "$as_me: program exited with status $ac_status" >&5 3408157184Sacheecho "$as_me: failed program was:" >&5 3409157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3410157184Sache 3411157184Sache( exit $ac_status ) 3412157184Sacheecho "- you use the terminfo database" 1>&6 3413157184Sache cat >>confdefs.h <<\_ACEOF 3414157184Sache#define TERMINFO 1 3415157184Sache_ACEOF 3416157184Sache 3417157184Sachefi 3418157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3419157184Sachefi 3420157184Sache{ echo "$as_me:$LINENO: checking ospeed..." >&5 3421157184Sacheecho "$as_me: checking ospeed..." >&6;} 3422157184Sachecat >conftest.$ac_ext <<_ACEOF 3423157184Sache/* confdefs.h. */ 3424157184Sache_ACEOF 3425157184Sachecat confdefs.h >>conftest.$ac_ext 3426157184Sachecat >>conftest.$ac_ext <<_ACEOF 3427157184Sache/* end confdefs.h. */ 3428157184Sacheextern short ospeed; 3429157184Sacheint 3430157184Sachemain () 3431157184Sache{ 3432157184Sacheospeed=5; 3433157184Sache ; 3434157184Sache return 0; 3435157184Sache} 3436157184Sache_ACEOF 3437157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3438157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3439157184Sache (eval $ac_link) 2>conftest.er1 3440157184Sache ac_status=$? 3441157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3442157184Sache rm -f conftest.er1 3443157184Sache cat conftest.err >&5 3444157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445157184Sache (exit $ac_status); } && 3446157184Sache { ac_try='test -z "$ac_c_werror_flag" 3447157184Sache || test ! -s conftest.err' 3448157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3449157184Sache (eval $ac_try) 2>&5 3450157184Sache ac_status=$? 3451157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452157184Sache (exit $ac_status); }; } && 3453157184Sache { ac_try='test -s conftest$ac_exeext' 3454157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3455157184Sache (eval $ac_try) 2>&5 3456157184Sache ac_status=$? 3457157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458157184Sache (exit $ac_status); }; }; then 3459157184Sache : 3460157184Sacheelse 3461157184Sache echo "$as_me: failed program was:" >&5 3462157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3463157184Sache 3464157184Sachecat >>confdefs.h <<\_ACEOF 3465157184Sache#define NEED_OSPEED 1 3466157184Sache_ACEOF 3467157184Sache 3468157184Sachefi 3469157184Sacherm -f conftest.err conftest.$ac_objext \ 3470157184Sache conftest$ac_exeext conftest.$ac_ext 3471157184Sache 3472157184Sache{ echo "$as_me:$LINENO: checking for /dev/ptc..." >&5 3473157184Sacheecho "$as_me: checking for /dev/ptc..." >&6;} 3474157184Sacheif test -r /dev/ptc; then 3475157184Sachecat >>confdefs.h <<\_ACEOF 3476157184Sache#define HAVE_DEV_PTC 1 3477157184Sache_ACEOF 3478157184Sache 3479157184Sachefi 3480157184Sache 3481157184Sache{ echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5 3482157184Sacheecho "$as_me: checking for SVR4 ptys..." >&6;} 3483157184Sachesysvr4ptys= 3484157184Sacheif test -c /dev/ptmx ; then 3485157184Sachecat >conftest.$ac_ext <<_ACEOF 3486157184Sache/* confdefs.h. */ 3487157184Sache_ACEOF 3488157184Sachecat confdefs.h >>conftest.$ac_ext 3489157184Sachecat >>conftest.$ac_ext <<_ACEOF 3490157184Sache/* end confdefs.h. */ 3491157184Sache 3492157184Sacheint 3493157184Sachemain () 3494157184Sache{ 3495157184Sacheptsname(0);grantpt(0);unlockpt(0); 3496157184Sache ; 3497157184Sache return 0; 3498157184Sache} 3499157184Sache_ACEOF 3500157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3501157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3502157184Sache (eval $ac_link) 2>conftest.er1 3503157184Sache ac_status=$? 3504157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3505157184Sache rm -f conftest.er1 3506157184Sache cat conftest.err >&5 3507157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3508157184Sache (exit $ac_status); } && 3509157184Sache { ac_try='test -z "$ac_c_werror_flag" 3510157184Sache || test ! -s conftest.err' 3511157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3512157184Sache (eval $ac_try) 2>&5 3513157184Sache ac_status=$? 3514157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3515157184Sache (exit $ac_status); }; } && 3516157184Sache { ac_try='test -s conftest$ac_exeext' 3517157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3518157184Sache (eval $ac_try) 2>&5 3519157184Sache ac_status=$? 3520157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521157184Sache (exit $ac_status); }; }; then 3522157184Sache cat >>confdefs.h <<\_ACEOF 3523157184Sache#define HAVE_SVR4_PTYS 1 3524157184Sache_ACEOF 3525157184Sache 3526157184Sachesysvr4ptys=1 3527157184Sacheelse 3528157184Sache echo "$as_me: failed program was:" >&5 3529157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3530157184Sache 3531157184Sachefi 3532157184Sacherm -f conftest.err conftest.$ac_objext \ 3533157184Sache conftest$ac_exeext conftest.$ac_ext 3534157184Sachefi 3535157184Sache 3536157184Sache 3537157184Sachefor ac_func in getpt 3538157184Sachedo 3539157184Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3540157184Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5 3541157184Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3542157184Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then 3543157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 3544157184Sacheelse 3545157184Sache cat >conftest.$ac_ext <<_ACEOF 3546157184Sache/* confdefs.h. */ 3547157184Sache_ACEOF 3548157184Sachecat confdefs.h >>conftest.$ac_ext 3549157184Sachecat >>conftest.$ac_ext <<_ACEOF 3550157184Sache/* end confdefs.h. */ 3551157184Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3552157184Sache For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3553157184Sache#define $ac_func innocuous_$ac_func 3554157184Sache 3555157184Sache/* System header to define __stub macros and hopefully few prototypes, 3556157184Sache which can conflict with char $ac_func (); below. 3557157184Sache Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3558157184Sache <limits.h> exists even on freestanding compilers. */ 3559157184Sache 3560157184Sache#ifdef __STDC__ 3561157184Sache# include <limits.h> 3562157184Sache#else 3563157184Sache# include <assert.h> 3564157184Sache#endif 3565157184Sache 3566157184Sache#undef $ac_func 3567157184Sache 3568157184Sache/* Override any gcc2 internal prototype to avoid an error. */ 3569157184Sache#ifdef __cplusplus 3570157184Sacheextern "C" 3571157184Sache{ 3572157184Sache#endif 3573157184Sache/* We use char because int might match the return type of a gcc2 3574157184Sache builtin and then its argument prototype would still apply. */ 3575157184Sachechar $ac_func (); 3576157184Sache/* The GNU C library defines this for functions which it implements 3577157184Sache to always fail with ENOSYS. Some functions are actually named 3578157184Sache something starting with __ and the normal name is an alias. */ 3579157184Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3580157184Sachechoke me 3581157184Sache#else 3582157184Sachechar (*f) () = $ac_func; 3583157184Sache#endif 3584157184Sache#ifdef __cplusplus 3585157184Sache} 3586157184Sache#endif 3587157184Sache 3588157184Sacheint 3589157184Sachemain () 3590157184Sache{ 3591157184Sachereturn f != $ac_func; 3592157184Sache ; 3593157184Sache return 0; 3594157184Sache} 3595157184Sache_ACEOF 3596157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3597157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3598157184Sache (eval $ac_link) 2>conftest.er1 3599157184Sache ac_status=$? 3600157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3601157184Sache rm -f conftest.er1 3602157184Sache cat conftest.err >&5 3603157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3604157184Sache (exit $ac_status); } && 3605157184Sache { ac_try='test -z "$ac_c_werror_flag" 3606157184Sache || test ! -s conftest.err' 3607157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3608157184Sache (eval $ac_try) 2>&5 3609157184Sache ac_status=$? 3610157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611157184Sache (exit $ac_status); }; } && 3612157184Sache { ac_try='test -s conftest$ac_exeext' 3613157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3614157184Sache (eval $ac_try) 2>&5 3615157184Sache ac_status=$? 3616157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617157184Sache (exit $ac_status); }; }; then 3618157184Sache eval "$as_ac_var=yes" 3619157184Sacheelse 3620157184Sache echo "$as_me: failed program was:" >&5 3621157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3622157184Sache 3623157184Sacheeval "$as_ac_var=no" 3624157184Sachefi 3625157184Sacherm -f conftest.err conftest.$ac_objext \ 3626157184Sache conftest$ac_exeext conftest.$ac_ext 3627157184Sachefi 3628157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3629157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3630157184Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then 3631157184Sache cat >>confdefs.h <<_ACEOF 3632157184Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3633157184Sache_ACEOF 3634157184Sache 3635157184Sachefi 3636157184Sachedone 3637157184Sache 3638157184Sache 3639157184Sacheif test -z "$sysvr4ptys"; then 3640157184Sache 3641157184Sachefor ac_func in openpty 3642157184Sachedo 3643157184Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3644157184Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5 3645157184Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3646157184Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then 3647157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 3648157184Sacheelse 3649157184Sache cat >conftest.$ac_ext <<_ACEOF 3650157184Sache/* confdefs.h. */ 3651157184Sache_ACEOF 3652157184Sachecat confdefs.h >>conftest.$ac_ext 3653157184Sachecat >>conftest.$ac_ext <<_ACEOF 3654157184Sache/* end confdefs.h. */ 3655157184Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3656157184Sache For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3657157184Sache#define $ac_func innocuous_$ac_func 3658157184Sache 3659157184Sache/* System header to define __stub macros and hopefully few prototypes, 3660157184Sache which can conflict with char $ac_func (); below. 3661157184Sache Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3662157184Sache <limits.h> exists even on freestanding compilers. */ 3663157184Sache 3664157184Sache#ifdef __STDC__ 3665157184Sache# include <limits.h> 3666157184Sache#else 3667157184Sache# include <assert.h> 3668157184Sache#endif 3669157184Sache 3670157184Sache#undef $ac_func 3671157184Sache 3672157184Sache/* Override any gcc2 internal prototype to avoid an error. */ 3673157184Sache#ifdef __cplusplus 3674157184Sacheextern "C" 3675157184Sache{ 3676157184Sache#endif 3677157184Sache/* We use char because int might match the return type of a gcc2 3678157184Sache builtin and then its argument prototype would still apply. */ 3679157184Sachechar $ac_func (); 3680157184Sache/* The GNU C library defines this for functions which it implements 3681157184Sache to always fail with ENOSYS. Some functions are actually named 3682157184Sache something starting with __ and the normal name is an alias. */ 3683157184Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3684157184Sachechoke me 3685157184Sache#else 3686157184Sachechar (*f) () = $ac_func; 3687157184Sache#endif 3688157184Sache#ifdef __cplusplus 3689157184Sache} 3690157184Sache#endif 3691157184Sache 3692157184Sacheint 3693157184Sachemain () 3694157184Sache{ 3695157184Sachereturn f != $ac_func; 3696157184Sache ; 3697157184Sache return 0; 3698157184Sache} 3699157184Sache_ACEOF 3700157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3701157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3702157184Sache (eval $ac_link) 2>conftest.er1 3703157184Sache ac_status=$? 3704157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3705157184Sache rm -f conftest.er1 3706157184Sache cat conftest.err >&5 3707157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708157184Sache (exit $ac_status); } && 3709157184Sache { ac_try='test -z "$ac_c_werror_flag" 3710157184Sache || test ! -s conftest.err' 3711157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3712157184Sache (eval $ac_try) 2>&5 3713157184Sache ac_status=$? 3714157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715157184Sache (exit $ac_status); }; } && 3716157184Sache { ac_try='test -s conftest$ac_exeext' 3717157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3718157184Sache (eval $ac_try) 2>&5 3719157184Sache ac_status=$? 3720157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721157184Sache (exit $ac_status); }; }; then 3722157184Sache eval "$as_ac_var=yes" 3723157184Sacheelse 3724157184Sache echo "$as_me: failed program was:" >&5 3725157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3726157184Sache 3727157184Sacheeval "$as_ac_var=no" 3728157184Sachefi 3729157184Sacherm -f conftest.err conftest.$ac_objext \ 3730157184Sache conftest$ac_exeext conftest.$ac_ext 3731157184Sachefi 3732157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3733157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3734157184Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then 3735157184Sache cat >>confdefs.h <<_ACEOF 3736157184Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3737157184Sache_ACEOF 3738157184Sache 3739157184Sacheelse 3740157184Sache echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 3741157184Sacheecho $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 3742157184Sacheif test "${ac_cv_lib_util_openpty+set}" = set; then 3743157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 3744157184Sacheelse 3745157184Sache ac_check_lib_save_LIBS=$LIBS 3746157184SacheLIBS="-lutil $LIBS" 3747157184Sachecat >conftest.$ac_ext <<_ACEOF 3748157184Sache/* confdefs.h. */ 3749157184Sache_ACEOF 3750157184Sachecat confdefs.h >>conftest.$ac_ext 3751157184Sachecat >>conftest.$ac_ext <<_ACEOF 3752157184Sache/* end confdefs.h. */ 3753157184Sache 3754157184Sache/* Override any gcc2 internal prototype to avoid an error. */ 3755157184Sache#ifdef __cplusplus 3756157184Sacheextern "C" 3757157184Sache#endif 3758157184Sache/* We use char because int might match the return type of a gcc2 3759157184Sache builtin and then its argument prototype would still apply. */ 3760157184Sachechar openpty (); 3761157184Sacheint 3762157184Sachemain () 3763157184Sache{ 3764157184Sacheopenpty (); 3765157184Sache ; 3766157184Sache return 0; 3767157184Sache} 3768157184Sache_ACEOF 3769157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 3770157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3771157184Sache (eval $ac_link) 2>conftest.er1 3772157184Sache ac_status=$? 3773157184Sache grep -v '^ *+' conftest.er1 >conftest.err 3774157184Sache rm -f conftest.er1 3775157184Sache cat conftest.err >&5 3776157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777157184Sache (exit $ac_status); } && 3778157184Sache { ac_try='test -z "$ac_c_werror_flag" 3779157184Sache || test ! -s conftest.err' 3780157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3781157184Sache (eval $ac_try) 2>&5 3782157184Sache ac_status=$? 3783157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784157184Sache (exit $ac_status); }; } && 3785157184Sache { ac_try='test -s conftest$ac_exeext' 3786157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3787157184Sache (eval $ac_try) 2>&5 3788157184Sache ac_status=$? 3789157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790157184Sache (exit $ac_status); }; }; then 3791157184Sache ac_cv_lib_util_openpty=yes 3792157184Sacheelse 3793157184Sache echo "$as_me: failed program was:" >&5 3794157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3795157184Sache 3796157184Sacheac_cv_lib_util_openpty=no 3797157184Sachefi 3798157184Sacherm -f conftest.err conftest.$ac_objext \ 3799157184Sache conftest$ac_exeext conftest.$ac_ext 3800157184SacheLIBS=$ac_check_lib_save_LIBS 3801157184Sachefi 3802157184Sacheecho "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 3803157184Sacheecho "${ECHO_T}$ac_cv_lib_util_openpty" >&6 3804157184Sacheif test $ac_cv_lib_util_openpty = yes; then 3805157184Sache cat >>confdefs.h <<\_ACEOF 3806157184Sache#define HAVE_OPENPTY 1 3807157184Sache_ACEOF 3808157184Sache LIBS="$LIBS -lutil" 3809157184Sachefi 3810157184Sache 3811157184Sachefi 3812157184Sachedone 3813157184Sache 3814157184Sachefi 3815157184Sache 3816157184Sache{ echo "$as_me:$LINENO: checking for ptyranges..." >&5 3817157184Sacheecho "$as_me: checking for ptyranges..." >&6;} 3818157184Sacheif test -d /dev/ptym ; then 3819157184Sachepdir='/dev/ptym' 3820157184Sacheelse 3821157184Sachepdir='/dev' 3822157184Sachefi 3823157184Sachecat >conftest.$ac_ext <<_ACEOF 3824157184Sache/* confdefs.h. */ 3825157184Sache_ACEOF 3826157184Sachecat confdefs.h >>conftest.$ac_ext 3827157184Sachecat >>conftest.$ac_ext <<_ACEOF 3828157184Sache/* end confdefs.h. */ 3829157184Sache#ifdef M_UNIX 3830157184Sache yes; 3831157184Sache#endif 3832157184Sache 3833157184Sache_ACEOF 3834157184Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3835157184Sache $EGREP "yes" >/dev/null 2>&1; then 3836157184Sache ptys=`echo /dev/ptyp??` 3837157184Sacheelse 3838157184Sache ptys=`echo $pdir/pty??` 3839157184Sachefi 3840157184Sacherm -f conftest* 3841157184Sache 3842157184Sacheif test "$ptys" != "$pdir/pty??" ; then 3843157184Sachep0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 3844157184Sachep1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 3845157184Sachecat >>confdefs.h <<_ACEOF 3846157184Sache#define PTYRANGE0 "$p0" 3847157184Sache_ACEOF 3848157184Sache 3849157184Sachecat >>confdefs.h <<_ACEOF 3850157184Sache#define PTYRANGE1 "$p1" 3851157184Sache_ACEOF 3852157184Sache 3853157184Sachefi 3854157184Sache 3855157184Sache 3856157184Sache# Check whether --with-pty-mode or --without-pty-mode was given. 3857157184Sacheif test "${with_pty_mode+set}" = set; then 3858157184Sache withval="$with_pty_mode" 3859157184Sache ptymode="${withval}" 3860157184Sachefi; 3861157184Sache 3862157184Sache# Check whether --with-pty-group or --without-pty-group was given. 3863157184Sacheif test "${with_pty_group+set}" = set; then 3864157184Sache withval="$with_pty_group" 3865157184Sache ptygrp="${withval}" 3866157184Sachefi; 3867157184Sachetest -n "$ptymode" || ptymode=0620 3868157184Sacheif test -n "$ptygrp" ; then 3869157184Sachecat >>confdefs.h <<_ACEOF 3870157184Sache#define PTYMODE $ptymode 3871157184Sache_ACEOF 3872157184Sache 3873157184Sachecat >>confdefs.h <<_ACEOF 3874157184Sache#define PTYGROUP $ptygrp 3875157184Sache_ACEOF 3876157184Sache 3877157184Sacheelse 3878157184Sache 3879157184Sache{ echo "$as_me:$LINENO: checking default tty permissions/group..." >&5 3880157184Sacheecho "$as_me: checking default tty permissions/group..." >&6;} 3881157184Sacherm -f conftest_grp 3882157184Sacheif test "$cross_compiling" = yes; then 3883157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 3884157184SacheSee \`config.log' for more details." >&5 3885157184Sacheecho "$as_me: error: cannot run test program while cross compiling 3886157184SacheSee \`config.log' for more details." >&2;} 3887157184Sache { (exit 1); exit 1; }; } 3888157184Sacheelse 3889157184Sache cat >conftest.$ac_ext <<_ACEOF 3890157184Sache/* confdefs.h. */ 3891157184Sache_ACEOF 3892157184Sachecat confdefs.h >>conftest.$ac_ext 3893157184Sachecat >>conftest.$ac_ext <<_ACEOF 3894157184Sache/* end confdefs.h. */ 3895157184Sache 3896157184Sache#include <sys/types.h> 3897157184Sache#include <sys/stat.h> 3898157184Sache#include <stdio.h> 3899157184Sachemain() 3900157184Sache{ 3901157184Sache struct stat sb; 3902157184Sache char *x,*ttyname(); 3903157184Sache int om, m; 3904157184Sache FILE *fp; 3905157184Sache 3906157184Sache if (!(x = ttyname(0))) exit(1); 3907157184Sache if (stat(x, &sb)) exit(1); 3908157184Sache om = sb.st_mode; 3909157184Sache if (om & 002) exit(0); 3910157184Sache m = system("mesg y"); 3911157184Sache if (m == -1 || m == 127) exit(1); 3912157184Sache if (stat(x, &sb)) exit(1); 3913157184Sache m = sb.st_mode; 3914157184Sache if (chmod(x, om)) exit(1); 3915157184Sache if (m & 002) exit(0); 3916157184Sache if (sb.st_gid == getgid()) exit(1); 3917157184Sache if (!(fp=fopen("conftest_grp", "w"))) 3918157184Sache exit(1); 3919157184Sache fprintf(fp, "%d\n", sb.st_gid); 3920157184Sache fclose(fp); 3921157184Sache exit(0); 3922157184Sache} 3923157184Sache 3924157184Sache_ACEOF 3925157184Sacherm -f conftest$ac_exeext 3926157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3927157184Sache (eval $ac_link) 2>&5 3928157184Sache ac_status=$? 3929157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3931157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3932157184Sache (eval $ac_try) 2>&5 3933157184Sache ac_status=$? 3934157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935157184Sache (exit $ac_status); }; }; then 3936157184Sache 3937157184Sache if test -f conftest_grp; then 3938157184Sache ptygrp=`cat conftest_grp` 3939157184Sache echo "- pty mode: $ptymode, group: $ptygrp" 1>&6 3940157184Sache 3941157184Sache cat >>confdefs.h <<_ACEOF 3942157184Sache#define PTYMODE $ptymode 3943157184Sache_ACEOF 3944157184Sache 3945157184Sache cat >>confdefs.h <<_ACEOF 3946157184Sache#define PTYGROUP $ptygrp 3947157184Sache_ACEOF 3948157184Sache 3949157184Sache else 3950157184Sache echo "- ptys are world accessable" 1>&6 3951157184Sache 3952157184Sache fi 3953157184Sache 3954157184Sacheelse 3955157184Sache echo "$as_me: program exited with status $ac_status" >&5 3956157184Sacheecho "$as_me: failed program was:" >&5 3957157184Sachesed 's/^/| /' conftest.$ac_ext >&5 3958157184Sache 3959157184Sache( exit $ac_status ) 3960157184Sache 3961157184Sache WRITEPATH='' 3962157184Sache XTERMPATH='' 3963157184Sache # Extract the first word of "write", so it can be a program name with args. 3964157184Sacheset dummy write; ac_word=$2 3965157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 3966157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3967157184Sacheif test "${ac_cv_path_WRITEPATH+set}" = set; then 3968157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 3969157184Sacheelse 3970157184Sache case $WRITEPATH in 3971157184Sache [\\/]* | ?:[\\/]*) 3972157184Sache ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path. 3973157184Sache ;; 3974157184Sache *) 3975157184Sache as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976157184Sachefor as_dir in $PATH 3977157184Sachedo 3978157184Sache IFS=$as_save_IFS 3979157184Sache test -z "$as_dir" && as_dir=. 3980157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 3981157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3982157184Sache ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext" 3983157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3984157184Sache break 2 3985157184Sache fi 3986157184Sachedone 3987157184Sachedone 3988157184Sache 3989157184Sache ;; 3990157184Sacheesac 3991157184Sachefi 3992157184SacheWRITEPATH=$ac_cv_path_WRITEPATH 3993157184Sache 3994157184Sacheif test -n "$WRITEPATH"; then 3995157184Sache echo "$as_me:$LINENO: result: $WRITEPATH" >&5 3996157184Sacheecho "${ECHO_T}$WRITEPATH" >&6 3997157184Sacheelse 3998157184Sache echo "$as_me:$LINENO: result: no" >&5 3999157184Sacheecho "${ECHO_T}no" >&6 4000157184Sachefi 4001157184Sache 4002157184Sache # Extract the first word of "xterm", so it can be a program name with args. 4003157184Sacheset dummy xterm; ac_word=$2 4004157184Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5 4005157184Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4006157184Sacheif test "${ac_cv_path_XTERMPATH+set}" = set; then 4007157184Sache echo $ECHO_N "(cached) $ECHO_C" >&6 4008157184Sacheelse 4009157184Sache case $XTERMPATH in 4010157184Sache [\\/]* | ?:[\\/]*) 4011157184Sache ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path. 4012157184Sache ;; 4013157184Sache *) 4014157184Sache as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4015157184Sachefor as_dir in $PATH 4016157184Sachedo 4017157184Sache IFS=$as_save_IFS 4018157184Sache test -z "$as_dir" && as_dir=. 4019157184Sache for ac_exec_ext in '' $ac_executable_extensions; do 4020157184Sache if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4021157184Sache ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext" 4022157184Sache echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4023157184Sache break 2 4024157184Sache fi 4025157184Sachedone 4026157184Sachedone 4027157184Sache 4028157184Sache ;; 4029157184Sacheesac 4030157184Sachefi 4031157184SacheXTERMPATH=$ac_cv_path_XTERMPATH 4032157184Sache 4033157184Sacheif test -n "$XTERMPATH"; then 4034157184Sache echo "$as_me:$LINENO: result: $XTERMPATH" >&5 4035157184Sacheecho "${ECHO_T}$XTERMPATH" >&6 4036157184Sacheelse 4037157184Sache echo "$as_me:$LINENO: result: no" >&5 4038157184Sacheecho "${ECHO_T}no" >&6 4039157184Sachefi 4040157184Sache 4041157184Sache found= 4042157184Sache if test -n "$WRITEPATH$XTERMPATH"; then 4043157184Sache findfollow= 4044157184Sache lsfollow= 4045157184Sache found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null` 4046157184Sache if test -n "$found"; then 4047157184Sache findfollow=-follow 4048157184Sache lsfollow=L 4049157184Sache fi 4050157184Sache if test -n "$XTERMPATH"; then 4051157184Sache ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'` 4052157184Sache if test tty != "$ptygrpn"; then 4053157184Sache XTERMPATH= 4054157184Sache fi 4055157184Sache fi 4056157184Sache fi 4057157184Sache if test -n "$WRITEPATH$XTERMPATH"; then 4058157184Sache found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print` 4059157184Sache if test -n "$found"; then 4060157184Sache ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'` 4061157184Sache echo "- pty mode: $ptymode, group: $ptygrp" 1>&6 4062157184Sache 4063157184Sache cat >>confdefs.h <<_ACEOF 4064157184Sache#define PTYMODE $ptymode 4065157184Sache_ACEOF 4066157184Sache 4067157184Sache cat >>confdefs.h <<_ACEOF 4068157184Sache#define PTYGROUP $ptygrp 4069157184Sache_ACEOF 4070157184Sache 4071157184Sache else 4072157184Sache echo "- ptys are world accessable" 1>&6 4073157184Sache 4074157184Sache fi 4075157184Sache else 4076157184Sache echo "- can't determine - assume ptys are world accessable" 1>&6 4077157184Sache 4078157184Sache fi 4079157184Sache 4080157184Sache 4081157184Sachefi 4082157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4083157184Sachefi 4084157184Sacherm -f conftest_grp 4085157184Sachefi 4086157184Sache 4087157184Sacheif test -n "$posix" ; then 4088157184Sache 4089157184Sacheecho "assuming posix signal definition" 1>&6 4090157184Sache 4091157184Sachecat >>confdefs.h <<\_ACEOF 4092157184Sache#define SIGVOID 1 4093157184Sache_ACEOF 4094157184Sache 4095157184Sache 4096157184Sacheelse 4097157184Sache 4098157184Sache{ echo "$as_me:$LINENO: checking return type of signal handlers..." >&5 4099157184Sacheecho "$as_me: checking return type of signal handlers..." >&6;} 4100157184Sachecat >conftest.$ac_ext <<_ACEOF 4101157184Sache/* confdefs.h. */ 4102157184Sache_ACEOF 4103157184Sachecat confdefs.h >>conftest.$ac_ext 4104157184Sachecat >>conftest.$ac_ext <<_ACEOF 4105157184Sache/* end confdefs.h. */ 4106157184Sache#include <sys/types.h> 4107157184Sache#include <signal.h> 4108157184Sache#ifdef signal 4109157184Sache#undef signal 4110157184Sache#endif 4111157184Sacheextern void (*signal ()) (); 4112157184Sacheint 4113157184Sachemain () 4114157184Sache{ 4115157184Sacheint i; 4116157184Sache ; 4117157184Sache return 0; 4118157184Sache} 4119157184Sache_ACEOF 4120157184Sacherm -f conftest.$ac_objext 4121157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4122157184Sache (eval $ac_compile) 2>conftest.er1 4123157184Sache ac_status=$? 4124157184Sache grep -v '^ *+' conftest.er1 >conftest.err 4125157184Sache rm -f conftest.er1 4126157184Sache cat conftest.err >&5 4127157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4128157184Sache (exit $ac_status); } && 4129157184Sache { ac_try='test -z "$ac_c_werror_flag" 4130157184Sache || test ! -s conftest.err' 4131157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4132157184Sache (eval $ac_try) 2>&5 4133157184Sache ac_status=$? 4134157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4135157184Sache (exit $ac_status); }; } && 4136157184Sache { ac_try='test -s conftest.$ac_objext' 4137157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4138157184Sache (eval $ac_try) 2>&5 4139157184Sache ac_status=$? 4140157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4141157184Sache (exit $ac_status); }; }; then 4142157184Sache cat >>confdefs.h <<\_ACEOF 4143157184Sache#define SIGVOID 1 4144157184Sache_ACEOF 4145157184Sache 4146157184Sacheelse 4147157184Sache echo "$as_me: failed program was:" >&5 4148157184Sachesed 's/^/| /' conftest.$ac_ext >&5 4149157184Sache 4150157184Sachefi 4151157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4152157184Sache{ echo "$as_me:$LINENO: checking sigset..." >&5 4153157184Sacheecho "$as_me: checking sigset..." >&6;} 4154157184Sachecat >conftest.$ac_ext <<_ACEOF 4155157184Sache/* confdefs.h. */ 4156157184Sache_ACEOF 4157157184Sachecat confdefs.h >>conftest.$ac_ext 4158157184Sachecat >>conftest.$ac_ext <<_ACEOF 4159157184Sache/* end confdefs.h. */ 4160157184Sache 4161157184Sache#include <sys/types.h> 4162157184Sache#include <signal.h> 4163157184Sache 4164157184Sacheint 4165157184Sachemain () 4166157184Sache{ 4167157184Sache 4168157184Sache#ifdef SIGVOID 4169157184Sachesigset(0, (void (*)())0); 4170157184Sache#else 4171157184Sachesigset(0, (int (*)())0); 4172157184Sache#endif 4173157184Sache 4174157184Sache ; 4175157184Sache return 0; 4176157184Sache} 4177157184Sache_ACEOF 4178157184Sacherm -f conftest.$ac_objext conftest$ac_exeext 4179157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4180157184Sache (eval $ac_link) 2>conftest.er1 4181157184Sache ac_status=$? 4182157184Sache grep -v '^ *+' conftest.er1 >conftest.err 4183157184Sache rm -f conftest.er1 4184157184Sache cat conftest.err >&5 4185157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186157184Sache (exit $ac_status); } && 4187157184Sache { ac_try='test -z "$ac_c_werror_flag" 4188157184Sache || test ! -s conftest.err' 4189157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4190157184Sache (eval $ac_try) 2>&5 4191157184Sache ac_status=$? 4192157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4193157184Sache (exit $ac_status); }; } && 4194157184Sache { ac_try='test -s conftest$ac_exeext' 4195157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4196157184Sache (eval $ac_try) 2>&5 4197157184Sache ac_status=$? 4198157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199157184Sache (exit $ac_status); }; }; then 4200157184Sache cat >>confdefs.h <<\_ACEOF 4201157184Sache#define USESIGSET 1 4202157184Sache_ACEOF 4203157184Sache 4204157184Sacheelse 4205157184Sache echo "$as_me: failed program was:" >&5 4206157184Sachesed 's/^/| /' conftest.$ac_ext >&5 4207157184Sache 4208157184Sachefi 4209157184Sacherm -f conftest.err conftest.$ac_objext \ 4210157184Sache conftest$ac_exeext conftest.$ac_ext 4211157184Sache{ echo "$as_me:$LINENO: checking signal implementation..." >&5 4212157184Sacheecho "$as_me: checking signal implementation..." >&6;} 4213157184Sacheif test "$cross_compiling" = yes; then 4214157184Sache { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4215157184SacheSee \`config.log' for more details." >&5 4216157184Sacheecho "$as_me: error: cannot run test program while cross compiling 4217157184SacheSee \`config.log' for more details." >&2;} 4218157184Sache { (exit 1); exit 1; }; } 4219157184Sacheelse 4220157184Sache cat >conftest.$ac_ext <<_ACEOF 4221157184Sache/* confdefs.h. */ 4222157184Sache_ACEOF 4223157184Sachecat confdefs.h >>conftest.$ac_ext 4224157184Sachecat >>conftest.$ac_ext <<_ACEOF 4225157184Sache/* end confdefs.h. */ 4226157184Sache 4227157184Sache#include <sys/types.h> 4228157184Sache#include <signal.h> 4229157184Sache 4230157184Sache#ifndef SIGCLD 4231157184Sache#define SIGCLD SIGCHLD 4232157184Sache#endif 4233157184Sache#ifdef USESIGSET 4234157184Sache#define signal sigset 4235157184Sache#endif 4236157184Sache 4237157184Sacheint got; 4238157184Sache 4239157184Sache#ifdef SIGVOID 4240157184Sachevoid 4241157184Sache#endif 4242157184Sachehand() 4243157184Sache{ 4244157184Sache got++; 4245157184Sache} 4246157184Sache 4247157184Sachemain() 4248157184Sache{ 4249157184Sache /* on hpux we use sigvec to get bsd signals */ 4250157184Sache#ifdef __hpux 4251157184Sache (void)signal(SIGCLD, hand); 4252157184Sache kill(getpid(), SIGCLD); 4253157184Sache kill(getpid(), SIGCLD); 4254157184Sache if (got < 2) 4255157184Sache exit(1); 4256157184Sache#endif 4257157184Sache exit(0); 4258157184Sache} 4259157184Sache 4260157184Sache_ACEOF 4261157184Sacherm -f conftest$ac_exeext 4262157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4263157184Sache (eval $ac_link) 2>&5 4264157184Sache ac_status=$? 4265157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4266157184Sache (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4267157184Sache { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4268157184Sache (eval $ac_try) 2>&5 4269157184Sache ac_status=$? 4270157184Sache echo "$as_me:$LINENO: \$? = $ac_status" >&5 4271157184Sache (exit $ac_status); }; }; then 4272157184Sache : 4273157184Sacheelse 4274157184Sache echo "$as_me: program exited with status $ac_status" >&5 4275157184Sacheecho "$as_me: failed program was:" >&5 4276157184Sachesed 's/^/| /' conftest.$ac_ext >&5 4277157184Sache 4278157184Sache( exit $ac_status ) 4279157184Sachecat >>confdefs.h <<\_ACEOF 4280157184Sache#define SYSVSIGS 1 4281157184Sache_ACEOF 4282157184Sache 4283157184Sachefi 4284157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4285157184Sachefi 4286157184Sache 4287157184Sachefi 4288157184Sache 4289157184Sache ac_config_files="$ac_config_files Makefile" 4290157184Sachecat >confcache <<\_ACEOF 4291157184Sache# This file is a shell script that caches the results of configure 4292157184Sache# tests run on this system so they can be shared between configure 4293157184Sache# scripts and configure runs, see configure's option --config-cache. 4294157184Sache# It is not useful on other systems. If it contains results you don't 4295157184Sache# want to keep, you may remove or edit it. 4296157184Sache# 4297157184Sache# config.status only pays attention to the cache file if you give it 4298157184Sache# the --recheck option to rerun configure. 4299157184Sache# 4300157184Sache# `ac_cv_env_foo' variables (set or unset) will be overridden when 4301157184Sache# loading this file, other *unset* `ac_cv_foo' will be assigned the 4302157184Sache# following values. 4303157184Sache 4304157184Sache_ACEOF 4305157184Sache 4306157184Sache# The following way of writing the cache mishandles newlines in values, 4307157184Sache# but we know of no workaround that is simple, portable, and efficient. 4308157184Sache# So, don't put newlines in cache variables' values. 4309157184Sache# Ultrix sh set writes to stderr and can't be redirected directly, 4310157184Sache# and sets the high bit in the cache file unless we assign to the vars. 4311157184Sache{ 4312157184Sache (set) 2>&1 | 4313157184Sache case `(ac_space=' '; set | grep ac_space) 2>&1` in 4314157184Sache *ac_space=\ *) 4315157184Sache # `set' does not quote correctly, so add quotes (double-quote 4316157184Sache # substitution turns \\\\ into \\, and sed turns \\ into \). 4317157184Sache sed -n \ 4318157184Sache "s/'/'\\\\''/g; 4319157184Sache s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4320157184Sache ;; 4321157184Sache *) 4322157184Sache # `set' quotes correctly as required by POSIX, so do not add quotes. 4323157184Sache sed -n \ 4324157184Sache "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4325157184Sache ;; 4326157184Sache esac; 4327157184Sache} | 4328157184Sache sed ' 4329157184Sache t clear 4330157184Sache : clear 4331157184Sache s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4332157184Sache t end 4333157184Sache /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4334157184Sache : end' >>confcache 4335157184Sacheif diff $cache_file confcache >/dev/null 2>&1; then :; else 4336157184Sache if test -w $cache_file; then 4337157184Sache test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4338157184Sache cat confcache >$cache_file 4339157184Sache else 4340157184Sache echo "not updating unwritable cache $cache_file" 4341157184Sache fi 4342157184Sachefi 4343157184Sacherm -f confcache 4344157184Sache 4345157184Sachetest "x$prefix" = xNONE && prefix=$ac_default_prefix 4346157184Sache# Let make expand exec_prefix. 4347157184Sachetest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4348157184Sache 4349157184Sache# VPATH may cause trouble with some makes, so we remove $(srcdir), 4350157184Sache# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4351157184Sache# trailing colons and then remove the whole line if VPATH becomes empty 4352157184Sache# (actually we leave an empty line to preserve line numbers). 4353157184Sacheif test "x$srcdir" = x.; then 4354157184Sache ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4355157184Saches/:*\$(srcdir):*/:/; 4356157184Saches/:*\${srcdir}:*/:/; 4357157184Saches/:*@srcdir@:*/:/; 4358157184Saches/^\([^=]*=[ ]*\):*/\1/; 4359157184Saches/:*$//; 4360157184Saches/^[^=]*=[ ]*$//; 4361157184Sache}' 4362157184Sachefi 4363157184Sache 4364157184SacheDEFS=-DHAVE_CONFIG_H 4365157184Sache 4366157184Sacheac_libobjs= 4367157184Sacheac_ltlibobjs= 4368157184Sachefor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4369157184Sache # 1. Remove the extension, and $U if already installed. 4370157184Sache ac_i=`echo "$ac_i" | 4371157184Sache sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 4372157184Sache # 2. Add them. 4373157184Sache ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 4374157184Sache ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4375157184Sachedone 4376157184SacheLIBOBJS=$ac_libobjs 4377157184Sache 4378157184SacheLTLIBOBJS=$ac_ltlibobjs 4379157184Sache 4380157184Sache 4381157184Sache 4382157184Sache: ${CONFIG_STATUS=./config.status} 4383157184Sacheac_clean_files_save=$ac_clean_files 4384157184Sacheac_clean_files="$ac_clean_files $CONFIG_STATUS" 4385157184Sache{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4386157184Sacheecho "$as_me: creating $CONFIG_STATUS" >&6;} 4387157184Sachecat >$CONFIG_STATUS <<_ACEOF 4388157184Sache#! $SHELL 4389157184Sache# Generated by $as_me. 4390157184Sache# Run this file to recreate the current configuration. 4391157184Sache# Compiler output produced by configure, useful for debugging 4392157184Sache# configure, is in config.log if it exists. 4393157184Sache 4394157184Sachedebug=false 4395157184Sacheac_cs_recheck=false 4396157184Sacheac_cs_silent=false 4397157184SacheSHELL=\${CONFIG_SHELL-$SHELL} 4398157184Sache_ACEOF 4399157184Sache 4400157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 4401157184Sache## --------------------- ## 4402157184Sache## M4sh Initialization. ## 4403157184Sache## --------------------- ## 4404157184Sache 4405157184Sache# Be Bourne compatible 4406157184Sacheif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4407157184Sache emulate sh 4408157184Sache NULLCMD=: 4409157184Sache # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 4410157184Sache # is contrary to our usage. Disable this feature. 4411157184Sache alias -g '${1+"$@"}'='"$@"' 4412157184Sacheelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4413157184Sache set -o posix 4414157184Sachefi 4415157184SacheDUALCASE=1; export DUALCASE # for MKS sh 4416157184Sache 4417157184Sache# Support unset when possible. 4418157184Sacheif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4419157184Sache as_unset=unset 4420157184Sacheelse 4421157184Sache as_unset=false 4422157184Sachefi 4423157184Sache 4424157184Sache 4425157184Sache# Work around bugs in pre-3.0 UWIN ksh. 4426157184Sache$as_unset ENV MAIL MAILPATH 4427157184SachePS1='$ ' 4428157184SachePS2='> ' 4429157184SachePS4='+ ' 4430157184Sache 4431157184Sache# NLS nuisances. 4432157184Sachefor as_var in \ 4433157184Sache LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4434157184Sache LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4435157184Sache LC_TELEPHONE LC_TIME 4436157184Sachedo 4437157184Sache if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4438157184Sache eval $as_var=C; export $as_var 4439157184Sache else 4440157184Sache $as_unset $as_var 4441157184Sache fi 4442157184Sachedone 4443157184Sache 4444157184Sache# Required to use basename. 4445157184Sacheif expr a : '\(a\)' >/dev/null 2>&1; then 4446157184Sache as_expr=expr 4447157184Sacheelse 4448157184Sache as_expr=false 4449157184Sachefi 4450157184Sache 4451157184Sacheif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4452157184Sache as_basename=basename 4453157184Sacheelse 4454157184Sache as_basename=false 4455157184Sachefi 4456157184Sache 4457157184Sache 4458157184Sache# Name of the executable. 4459157184Sacheas_me=`$as_basename "$0" || 4460157184Sache$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4461157184Sache X"$0" : 'X\(//\)$' \| \ 4462157184Sache X"$0" : 'X\(/\)$' \| \ 4463157184Sache . : '\(.\)' 2>/dev/null || 4464157184Sacheecho X/"$0" | 4465157184Sache sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4466157184Sache /^X\/\(\/\/\)$/{ s//\1/; q; } 4467157184Sache /^X\/\(\/\).*/{ s//\1/; q; } 4468157184Sache s/.*/./; q'` 4469157184Sache 4470157184Sache 4471157184Sache# PATH needs CR, and LINENO needs CR and PATH. 4472157184Sache# Avoid depending upon Character Ranges. 4473157184Sacheas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4474157184Sacheas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4475157184Sacheas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4476157184Sacheas_cr_digits='0123456789' 4477157184Sacheas_cr_alnum=$as_cr_Letters$as_cr_digits 4478157184Sache 4479157184Sache# The user is always right. 4480157184Sacheif test "${PATH_SEPARATOR+set}" != set; then 4481157184Sache echo "#! /bin/sh" >conf$$.sh 4482157184Sache echo "exit 0" >>conf$$.sh 4483157184Sache chmod +x conf$$.sh 4484157184Sache if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4485157184Sache PATH_SEPARATOR=';' 4486157184Sache else 4487157184Sache PATH_SEPARATOR=: 4488157184Sache fi 4489157184Sache rm -f conf$$.sh 4490157184Sachefi 4491157184Sache 4492157184Sache 4493157184Sache as_lineno_1=$LINENO 4494157184Sache as_lineno_2=$LINENO 4495157184Sache as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4496157184Sache test "x$as_lineno_1" != "x$as_lineno_2" && 4497157184Sache test "x$as_lineno_3" = "x$as_lineno_2" || { 4498157184Sache # Find who we are. Look in the path if we contain no path at all 4499157184Sache # relative or not. 4500157184Sache case $0 in 4501157184Sache *[\\/]* ) as_myself=$0 ;; 4502157184Sache *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4503157184Sachefor as_dir in $PATH 4504157184Sachedo 4505157184Sache IFS=$as_save_IFS 4506157184Sache test -z "$as_dir" && as_dir=. 4507157184Sache test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4508157184Sachedone 4509157184Sache 4510157184Sache ;; 4511157184Sache esac 4512157184Sache # We did not find ourselves, most probably we were run as `sh COMMAND' 4513157184Sache # in which case we are not to be found in the path. 4514157184Sache if test "x$as_myself" = x; then 4515157184Sache as_myself=$0 4516157184Sache fi 4517157184Sache if test ! -f "$as_myself"; then 4518157184Sache { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4519157184Sacheecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4520157184Sache { (exit 1); exit 1; }; } 4521157184Sache fi 4522157184Sache case $CONFIG_SHELL in 4523157184Sache '') 4524157184Sache as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4525157184Sachefor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4526157184Sachedo 4527157184Sache IFS=$as_save_IFS 4528157184Sache test -z "$as_dir" && as_dir=. 4529157184Sache for as_base in sh bash ksh sh5; do 4530157184Sache case $as_dir in 4531157184Sache /*) 4532157184Sache if ("$as_dir/$as_base" -c ' 4533157184Sache as_lineno_1=$LINENO 4534157184Sache as_lineno_2=$LINENO 4535157184Sache as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4536157184Sache test "x$as_lineno_1" != "x$as_lineno_2" && 4537157184Sache test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4538157184Sache $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4539157184Sache $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4540157184Sache CONFIG_SHELL=$as_dir/$as_base 4541157184Sache export CONFIG_SHELL 4542157184Sache exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4543157184Sache fi;; 4544157184Sache esac 4545157184Sache done 4546157184Sachedone 4547157184Sache;; 4548157184Sache esac 4549157184Sache 4550157184Sache # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4551157184Sache # uniformly replaced by the line number. The first 'sed' inserts a 4552157184Sache # line-number line before each line; the second 'sed' does the real 4553157184Sache # work. The second script uses 'N' to pair each line-number line 4554157184Sache # with the numbered line, and appends trailing '-' during 4555157184Sache # substitution so that $LINENO is not a special case at line end. 4556157184Sache # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4557157184Sache # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4558157184Sache sed '=' <$as_myself | 4559157184Sache sed ' 4560157184Sache N 4561157184Sache s,$,-, 4562157184Sache : loop 4563157184Sache s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 4564157184Sache t loop 4565157184Sache s,-$,, 4566157184Sache s,^['$as_cr_digits']*\n,, 4567157184Sache ' >$as_me.lineno && 4568157184Sache chmod +x $as_me.lineno || 4569157184Sache { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4570157184Sacheecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 4571157184Sache { (exit 1); exit 1; }; } 4572157184Sache 4573157184Sache # Don't try to exec as it changes $[0], causing all sort of problems 4574157184Sache # (the dirname of $[0] is not the place where we might find the 4575157184Sache # original and so on. Autoconf is especially sensible to this). 4576157184Sache . ./$as_me.lineno 4577157184Sache # Exit status is that of the last command. 4578157184Sache exit 4579157184Sache} 4580157184Sache 4581157184Sache 4582157184Sachecase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4583157184Sache *c*,-n*) ECHO_N= ECHO_C=' 4584157184Sache' ECHO_T=' ' ;; 4585157184Sache *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4586157184Sache *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4587157184Sacheesac 4588157184Sache 4589157184Sacheif expr a : '\(a\)' >/dev/null 2>&1; then 4590157184Sache as_expr=expr 4591157184Sacheelse 4592157184Sache as_expr=false 4593157184Sachefi 4594157184Sache 4595157184Sacherm -f conf$$ conf$$.exe conf$$.file 4596157184Sacheecho >conf$$.file 4597157184Sacheif ln -s conf$$.file conf$$ 2>/dev/null; then 4598157184Sache # We could just check for DJGPP; but this test a) works b) is more generic 4599157184Sache # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4600157184Sache if test -f conf$$.exe; then 4601157184Sache # Don't use ln at all; we don't have any links 4602157184Sache as_ln_s='cp -p' 4603157184Sache else 4604157184Sache as_ln_s='ln -s' 4605157184Sache fi 4606157184Sacheelif ln conf$$.file conf$$ 2>/dev/null; then 4607157184Sache as_ln_s=ln 4608157184Sacheelse 4609157184Sache as_ln_s='cp -p' 4610157184Sachefi 4611157184Sacherm -f conf$$ conf$$.exe conf$$.file 4612157184Sache 4613157184Sacheif mkdir -p . 2>/dev/null; then 4614157184Sache as_mkdir_p=: 4615157184Sacheelse 4616157184Sache test -d ./-p && rmdir ./-p 4617157184Sache as_mkdir_p=false 4618157184Sachefi 4619157184Sache 4620157184Sacheas_executable_p="test -f" 4621157184Sache 4622157184Sache# Sed expression to map a string onto a valid CPP name. 4623157184Sacheas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4624157184Sache 4625157184Sache# Sed expression to map a string onto a valid variable name. 4626157184Sacheas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4627157184Sache 4628157184Sache 4629157184Sache# IFS 4630157184Sache# We need space, tab and new line, in precisely that order. 4631157184Sacheas_nl=' 4632157184Sache' 4633157184SacheIFS=" $as_nl" 4634157184Sache 4635157184Sache# CDPATH. 4636157184Sache$as_unset CDPATH 4637157184Sache 4638157184Sacheexec 6>&1 4639157184Sache 4640157184Sache# Open the log real soon, to keep \$[0] and so on meaningful, and to 4641157184Sache# report actual input values of CONFIG_FILES etc. instead of their 4642157184Sache# values after options handling. Logging --version etc. is OK. 4643157184Sacheexec 5>>config.log 4644157184Sache{ 4645157184Sache echo 4646157184Sache sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4647157184Sache## Running $as_me. ## 4648157184Sache_ASBOX 4649157184Sache} >&5 4650157184Sachecat >&5 <<_CSEOF 4651157184Sache 4652157184SacheThis file was extended by $as_me, which was 4653157184Sachegenerated by GNU Autoconf 2.59. Invocation command line was 4654157184Sache 4655157184Sache CONFIG_FILES = $CONFIG_FILES 4656157184Sache CONFIG_HEADERS = $CONFIG_HEADERS 4657157184Sache CONFIG_LINKS = $CONFIG_LINKS 4658157184Sache CONFIG_COMMANDS = $CONFIG_COMMANDS 4659157184Sache $ $0 $@ 4660157184Sache 4661157184Sache_CSEOF 4662157184Sacheecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4663157184Sacheecho >&5 4664157184Sache_ACEOF 4665157184Sache 4666157184Sache# Files that config.status was made for. 4667157184Sacheif test -n "$ac_config_files"; then 4668157184Sache echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4669157184Sachefi 4670157184Sache 4671157184Sacheif test -n "$ac_config_headers"; then 4672157184Sache echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4673157184Sachefi 4674157184Sache 4675157184Sacheif test -n "$ac_config_links"; then 4676157184Sache echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4677157184Sachefi 4678157184Sache 4679157184Sacheif test -n "$ac_config_commands"; then 4680157184Sache echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4681157184Sachefi 4682157184Sache 4683157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 4684157184Sache 4685157184Sacheac_cs_usage="\ 4686157184Sache\`$as_me' instantiates files from templates according to the 4687157184Sachecurrent configuration. 4688157184Sache 4689157184SacheUsage: $0 [OPTIONS] [FILE]... 4690157184Sache 4691157184Sache -h, --help print this help, then exit 4692157184Sache -V, --version print version number, then exit 4693157184Sache -q, --quiet do not print progress messages 4694157184Sache -d, --debug don't remove temporary files 4695157184Sache --recheck update $as_me by reconfiguring in the same conditions 4696157184Sache --file=FILE[:TEMPLATE] 4697157184Sache instantiate the configuration file FILE 4698157184Sache --header=FILE[:TEMPLATE] 4699157184Sache instantiate the configuration header FILE 4700157184Sache 4701157184SacheConfiguration files: 4702157184Sache$config_files 4703157184Sache 4704157184SacheConfiguration headers: 4705157184Sache$config_headers 4706157184Sache 4707157184SacheReport bugs to <bug-autoconf@gnu.org>." 4708157184Sache_ACEOF 4709157184Sache 4710157184Sachecat >>$CONFIG_STATUS <<_ACEOF 4711157184Sacheac_cs_version="\\ 4712157184Sacheconfig.status 4713157184Sacheconfigured by $0, generated by GNU Autoconf 2.59, 4714157184Sache with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4715157184Sache 4716157184SacheCopyright (C) 2003 Free Software Foundation, Inc. 4717157184SacheThis config.status script is free software; the Free Software Foundation 4718157184Sachegives unlimited permission to copy, distribute and modify it." 4719157184Sachesrcdir=$srcdir 4720157184Sache_ACEOF 4721157184Sache 4722157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 4723157184Sache# If no file are specified by the user, then we need to provide default 4724157184Sache# value. By we need to know if files were specified by the user. 4725157184Sacheac_need_defaults=: 4726157184Sachewhile test $# != 0 4727157184Sachedo 4728157184Sache case $1 in 4729157184Sache --*=*) 4730157184Sache ac_option=`expr "x$1" : 'x\([^=]*\)='` 4731157184Sache ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4732157184Sache ac_shift=: 4733157184Sache ;; 4734157184Sache -*) 4735157184Sache ac_option=$1 4736157184Sache ac_optarg=$2 4737157184Sache ac_shift=shift 4738157184Sache ;; 4739157184Sache *) # This is not an option, so the user has probably given explicit 4740157184Sache # arguments. 4741157184Sache ac_option=$1 4742157184Sache ac_need_defaults=false;; 4743157184Sache esac 4744157184Sache 4745157184Sache case $ac_option in 4746157184Sache # Handling of the options. 4747157184Sache_ACEOF 4748157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 4749157184Sache -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4750157184Sache ac_cs_recheck=: ;; 4751157184Sache --version | --vers* | -V ) 4752157184Sache echo "$ac_cs_version"; exit 0 ;; 4753157184Sache --he | --h) 4754157184Sache # Conflict between --help and --header 4755157184Sache { { echo "$as_me:$LINENO: error: ambiguous option: $1 4756157184SacheTry \`$0 --help' for more information." >&5 4757157184Sacheecho "$as_me: error: ambiguous option: $1 4758157184SacheTry \`$0 --help' for more information." >&2;} 4759157184Sache { (exit 1); exit 1; }; };; 4760157184Sache --help | --hel | -h ) 4761157184Sache echo "$ac_cs_usage"; exit 0 ;; 4762157184Sache --debug | --d* | -d ) 4763157184Sache debug=: ;; 4764157184Sache --file | --fil | --fi | --f ) 4765157184Sache $ac_shift 4766157184Sache CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4767157184Sache ac_need_defaults=false;; 4768157184Sache --header | --heade | --head | --hea ) 4769157184Sache $ac_shift 4770157184Sache CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4771157184Sache ac_need_defaults=false;; 4772157184Sache -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4773157184Sache | -silent | --silent | --silen | --sile | --sil | --si | --s) 4774157184Sache ac_cs_silent=: ;; 4775157184Sache 4776157184Sache # This is an error. 4777157184Sache -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4778157184SacheTry \`$0 --help' for more information." >&5 4779157184Sacheecho "$as_me: error: unrecognized option: $1 4780157184SacheTry \`$0 --help' for more information." >&2;} 4781157184Sache { (exit 1); exit 1; }; } ;; 4782157184Sache 4783157184Sache *) ac_config_targets="$ac_config_targets $1" ;; 4784157184Sache 4785157184Sache esac 4786157184Sache shift 4787157184Sachedone 4788157184Sache 4789157184Sacheac_configure_extra_args= 4790157184Sache 4791157184Sacheif $ac_cs_silent; then 4792157184Sache exec 6>/dev/null 4793157184Sache ac_configure_extra_args="$ac_configure_extra_args --silent" 4794157184Sachefi 4795157184Sache 4796157184Sache_ACEOF 4797157184Sachecat >>$CONFIG_STATUS <<_ACEOF 4798157184Sacheif \$ac_cs_recheck; then 4799157184Sache echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4800157184Sache exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4801157184Sachefi 4802157184Sache 4803157184Sache_ACEOF 4804157184Sache 4805157184Sache 4806157184Sache 4807157184Sache 4808157184Sache 4809157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 4810157184Sachefor ac_config_target in $ac_config_targets 4811157184Sachedo 4812157184Sache case "$ac_config_target" in 4813157184Sache # Handling of arguments. 4814157184Sache "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4815157184Sache "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 4816157184Sache *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4817157184Sacheecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 4818157184Sache { (exit 1); exit 1; }; };; 4819157184Sache esac 4820157184Sachedone 4821157184Sache 4822157184Sache# If the user did not use the arguments to specify the items to instantiate, 4823157184Sache# then the envvar interface is used. Set only those that are not. 4824157184Sache# We use the long form for the default assignment because of an extremely 4825157184Sache# bizarre bug on SunOS 4.1.3. 4826157184Sacheif $ac_need_defaults; then 4827157184Sache test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4828157184Sache test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 4829157184Sachefi 4830157184Sache 4831157184Sache# Have a temporary directory for convenience. Make it in the build tree 4832157184Sache# simply because there is no reason to put it here, and in addition, 4833157184Sache# creating and moving files from /tmp can sometimes cause problems. 4834157184Sache# Create a temporary directory, and hook for its removal unless debugging. 4835157184Sache$debug || 4836157184Sache{ 4837157184Sache trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4838157184Sache trap '{ (exit 1); exit 1; }' 1 2 13 15 4839157184Sache} 4840157184Sache 4841157184Sache# Create a (secure) tmp directory for tmp files. 4842157184Sache 4843157184Sache{ 4844157184Sache tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 4845157184Sache test -n "$tmp" && test -d "$tmp" 4846157184Sache} || 4847157184Sache{ 4848157184Sache tmp=./confstat$$-$RANDOM 4849157184Sache (umask 077 && mkdir $tmp) 4850157184Sache} || 4851157184Sache{ 4852157184Sache echo "$me: cannot create a temporary directory in ." >&2 4853157184Sache { (exit 1); exit 1; } 4854157184Sache} 4855157184Sache 4856157184Sache_ACEOF 4857157184Sache 4858157184Sachecat >>$CONFIG_STATUS <<_ACEOF 4859157184Sache 4860157184Sache# 4861157184Sache# CONFIG_FILES section. 4862157184Sache# 4863157184Sache 4864157184Sache# No need to generate the scripts if there are no CONFIG_FILES. 4865157184Sache# This happens for instance when ./config.status config.h 4866157184Sacheif test -n "\$CONFIG_FILES"; then 4867157184Sache # Protect against being on the right side of a sed subst in config.status. 4868157184Sache sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4869157184Sache s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4870157184Saches,@SHELL@,$SHELL,;t t 4871157184Saches,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4872157184Saches,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4873157184Saches,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4874157184Saches,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4875157184Saches,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4876157184Saches,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4877157184Saches,@exec_prefix@,$exec_prefix,;t t 4878157184Saches,@prefix@,$prefix,;t t 4879157184Saches,@program_transform_name@,$program_transform_name,;t t 4880157184Saches,@bindir@,$bindir,;t t 4881157184Saches,@sbindir@,$sbindir,;t t 4882157184Saches,@libexecdir@,$libexecdir,;t t 4883157184Saches,@datadir@,$datadir,;t t 4884157184Saches,@sysconfdir@,$sysconfdir,;t t 4885157184Saches,@sharedstatedir@,$sharedstatedir,;t t 4886157184Saches,@localstatedir@,$localstatedir,;t t 4887157184Saches,@libdir@,$libdir,;t t 4888157184Saches,@includedir@,$includedir,;t t 4889157184Saches,@oldincludedir@,$oldincludedir,;t t 4890157184Saches,@infodir@,$infodir,;t t 4891157184Saches,@mandir@,$mandir,;t t 4892157184Saches,@build_alias@,$build_alias,;t t 4893157184Saches,@host_alias@,$host_alias,;t t 4894157184Saches,@target_alias@,$target_alias,;t t 4895157184Saches,@DEFS@,$DEFS,;t t 4896157184Saches,@ECHO_C@,$ECHO_C,;t t 4897157184Saches,@ECHO_N@,$ECHO_N,;t t 4898157184Saches,@ECHO_T@,$ECHO_T,;t t 4899157184Saches,@LIBS@,$LIBS,;t t 4900157184Saches,@VERSION@,$VERSION,;t t 4901157184Saches,@CC@,$CC,;t t 4902157184Saches,@CFLAGS@,$CFLAGS,;t t 4903157184Saches,@LDFLAGS@,$LDFLAGS,;t t 4904157184Saches,@CPPFLAGS@,$CPPFLAGS,;t t 4905157184Saches,@ac_ct_CC@,$ac_ct_CC,;t t 4906157184Saches,@EXEEXT@,$EXEEXT,;t t 4907157184Saches,@OBJEXT@,$OBJEXT,;t t 4908157184Saches,@CPP@,$CPP,;t t 4909157184Saches,@EGREP@,$EGREP,;t t 4910157184Saches,@AWK@,$AWK,;t t 4911157184Saches,@WRITEPATH@,$WRITEPATH,;t t 4912157184Saches,@XTERMPATH@,$XTERMPATH,;t t 4913157184Saches,@LIBOBJS@,$LIBOBJS,;t t 4914157184Saches,@LTLIBOBJS@,$LTLIBOBJS,;t t 4915157184SacheCEOF 4916157184Sache 4917157184Sache_ACEOF 4918157184Sache 4919157184Sache cat >>$CONFIG_STATUS <<\_ACEOF 4920157184Sache # Split the substitutions into bite-sized pieces for seds with 4921157184Sache # small command number limits, like on Digital OSF/1 and HP-UX. 4922157184Sache ac_max_sed_lines=48 4923157184Sache ac_sed_frag=1 # Number of current file. 4924157184Sache ac_beg=1 # First line for current file. 4925157184Sache ac_end=$ac_max_sed_lines # Line after last line for current file. 4926157184Sache ac_more_lines=: 4927157184Sache ac_sed_cmds= 4928157184Sache while $ac_more_lines; do 4929157184Sache if test $ac_beg -gt 1; then 4930157184Sache sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4931157184Sache else 4932157184Sache sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4933157184Sache fi 4934157184Sache if test ! -s $tmp/subs.frag; then 4935157184Sache ac_more_lines=false 4936157184Sache else 4937157184Sache # The purpose of the label and of the branching condition is to 4938157184Sache # speed up the sed processing (if there are no `@' at all, there 4939157184Sache # is no need to browse any of the substitutions). 4940157184Sache # These are the two extra sed commands mentioned above. 4941157184Sache (echo ':t 4942157184Sache /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4943157184Sache if test -z "$ac_sed_cmds"; then 4944157184Sache ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4945157184Sache else 4946157184Sache ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4947157184Sache fi 4948157184Sache ac_sed_frag=`expr $ac_sed_frag + 1` 4949157184Sache ac_beg=$ac_end 4950157184Sache ac_end=`expr $ac_end + $ac_max_sed_lines` 4951157184Sache fi 4952157184Sache done 4953157184Sache if test -z "$ac_sed_cmds"; then 4954157184Sache ac_sed_cmds=cat 4955157184Sache fi 4956157184Sachefi # test -n "$CONFIG_FILES" 4957157184Sache 4958157184Sache_ACEOF 4959157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 4960157184Sachefor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4961157184Sache # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4962157184Sache case $ac_file in 4963157184Sache - | *:- | *:-:* ) # input from stdin 4964157184Sache cat >$tmp/stdin 4965157184Sache ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4966157184Sache ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4967157184Sache *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4968157184Sache ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4969157184Sache * ) ac_file_in=$ac_file.in ;; 4970157184Sache esac 4971157184Sache 4972157184Sache # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4973157184Sache ac_dir=`(dirname "$ac_file") 2>/dev/null || 4974157184Sache$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4975157184Sache X"$ac_file" : 'X\(//\)[^/]' \| \ 4976157184Sache X"$ac_file" : 'X\(//\)$' \| \ 4977157184Sache X"$ac_file" : 'X\(/\)' \| \ 4978157184Sache . : '\(.\)' 2>/dev/null || 4979157184Sacheecho X"$ac_file" | 4980157184Sache sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4981157184Sache /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4982157184Sache /^X\(\/\/\)$/{ s//\1/; q; } 4983157184Sache /^X\(\/\).*/{ s//\1/; q; } 4984157184Sache s/.*/./; q'` 4985157184Sache { if $as_mkdir_p; then 4986157184Sache mkdir -p "$ac_dir" 4987157184Sache else 4988157184Sache as_dir="$ac_dir" 4989157184Sache as_dirs= 4990157184Sache while test ! -d "$as_dir"; do 4991157184Sache as_dirs="$as_dir $as_dirs" 4992157184Sache as_dir=`(dirname "$as_dir") 2>/dev/null || 4993157184Sache$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4994157184Sache X"$as_dir" : 'X\(//\)[^/]' \| \ 4995157184Sache X"$as_dir" : 'X\(//\)$' \| \ 4996157184Sache X"$as_dir" : 'X\(/\)' \| \ 4997157184Sache . : '\(.\)' 2>/dev/null || 4998157184Sacheecho X"$as_dir" | 4999157184Sache sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5000157184Sache /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5001157184Sache /^X\(\/\/\)$/{ s//\1/; q; } 5002157184Sache /^X\(\/\).*/{ s//\1/; q; } 5003157184Sache s/.*/./; q'` 5004157184Sache done 5005157184Sache test ! -n "$as_dirs" || mkdir $as_dirs 5006157184Sache fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5007157184Sacheecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5008157184Sache { (exit 1); exit 1; }; }; } 5009157184Sache 5010157184Sache ac_builddir=. 5011157184Sache 5012157184Sacheif test "$ac_dir" != .; then 5013157184Sache ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5014157184Sache # A "../" for each directory in $ac_dir_suffix. 5015157184Sache ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5016157184Sacheelse 5017157184Sache ac_dir_suffix= ac_top_builddir= 5018157184Sachefi 5019157184Sache 5020157184Sachecase $srcdir in 5021157184Sache .) # No --srcdir option. We are building in place. 5022157184Sache ac_srcdir=. 5023157184Sache if test -z "$ac_top_builddir"; then 5024157184Sache ac_top_srcdir=. 5025157184Sache else 5026157184Sache ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5027157184Sache fi ;; 5028157184Sache [\\/]* | ?:[\\/]* ) # Absolute path. 5029157184Sache ac_srcdir=$srcdir$ac_dir_suffix; 5030157184Sache ac_top_srcdir=$srcdir ;; 5031157184Sache *) # Relative path. 5032157184Sache ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5033157184Sache ac_top_srcdir=$ac_top_builddir$srcdir ;; 5034157184Sacheesac 5035157184Sache 5036157184Sache# Do not use `cd foo && pwd` to compute absolute paths, because 5037157184Sache# the directories may not exist. 5038157184Sachecase `pwd` in 5039157184Sache.) ac_abs_builddir="$ac_dir";; 5040157184Sache*) 5041157184Sache case "$ac_dir" in 5042157184Sache .) ac_abs_builddir=`pwd`;; 5043157184Sache [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5044157184Sache *) ac_abs_builddir=`pwd`/"$ac_dir";; 5045157184Sache esac;; 5046157184Sacheesac 5047157184Sachecase $ac_abs_builddir in 5048157184Sache.) ac_abs_top_builddir=${ac_top_builddir}.;; 5049157184Sache*) 5050157184Sache case ${ac_top_builddir}. in 5051157184Sache .) ac_abs_top_builddir=$ac_abs_builddir;; 5052157184Sache [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5053157184Sache *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5054157184Sache esac;; 5055157184Sacheesac 5056157184Sachecase $ac_abs_builddir in 5057157184Sache.) ac_abs_srcdir=$ac_srcdir;; 5058157184Sache*) 5059157184Sache case $ac_srcdir in 5060157184Sache .) ac_abs_srcdir=$ac_abs_builddir;; 5061157184Sache [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5062157184Sache *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5063157184Sache esac;; 5064157184Sacheesac 5065157184Sachecase $ac_abs_builddir in 5066157184Sache.) ac_abs_top_srcdir=$ac_top_srcdir;; 5067157184Sache*) 5068157184Sache case $ac_top_srcdir in 5069157184Sache .) ac_abs_top_srcdir=$ac_abs_builddir;; 5070157184Sache [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5071157184Sache *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5072157184Sache esac;; 5073157184Sacheesac 5074157184Sache 5075157184Sache 5076157184Sache 5077157184Sache if test x"$ac_file" != x-; then 5078157184Sache { echo "$as_me:$LINENO: creating $ac_file" >&5 5079157184Sacheecho "$as_me: creating $ac_file" >&6;} 5080157184Sache rm -f "$ac_file" 5081157184Sache fi 5082157184Sache # Let's still pretend it is `configure' which instantiates (i.e., don't 5083157184Sache # use $as_me), people would be surprised to read: 5084157184Sache # /* config.h. Generated by config.status. */ 5085157184Sache if test x"$ac_file" = x-; then 5086157184Sache configure_input= 5087157184Sache else 5088157184Sache configure_input="$ac_file. " 5089157184Sache fi 5090157184Sache configure_input=$configure_input"Generated from `echo $ac_file_in | 5091157184Sache sed 's,.*/,,'` by configure." 5092157184Sache 5093157184Sache # First look for the input files in the build tree, otherwise in the 5094157184Sache # src tree. 5095157184Sache ac_file_inputs=`IFS=: 5096157184Sache for f in $ac_file_in; do 5097157184Sache case $f in 5098157184Sache -) echo $tmp/stdin ;; 5099157184Sache [\\/$]*) 5100157184Sache # Absolute (can't be DOS-style, as IFS=:) 5101157184Sache test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5102157184Sacheecho "$as_me: error: cannot find input file: $f" >&2;} 5103157184Sache { (exit 1); exit 1; }; } 5104157184Sache echo "$f";; 5105157184Sache *) # Relative 5106157184Sache if test -f "$f"; then 5107157184Sache # Build tree 5108157184Sache echo "$f" 5109157184Sache elif test -f "$srcdir/$f"; then 5110157184Sache # Source tree 5111157184Sache echo "$srcdir/$f" 5112157184Sache else 5113157184Sache # /dev/null tree 5114157184Sache { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5115157184Sacheecho "$as_me: error: cannot find input file: $f" >&2;} 5116157184Sache { (exit 1); exit 1; }; } 5117157184Sache fi;; 5118157184Sache esac 5119157184Sache done` || { (exit 1); exit 1; } 5120157184Sache_ACEOF 5121157184Sachecat >>$CONFIG_STATUS <<_ACEOF 5122157184Sache sed "$ac_vpsub 5123157184Sache$extrasub 5124157184Sache_ACEOF 5125157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 5126157184Sache:t 5127157184Sache/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5128157184Saches,@configure_input@,$configure_input,;t t 5129157184Saches,@srcdir@,$ac_srcdir,;t t 5130157184Saches,@abs_srcdir@,$ac_abs_srcdir,;t t 5131157184Saches,@top_srcdir@,$ac_top_srcdir,;t t 5132157184Saches,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5133157184Saches,@builddir@,$ac_builddir,;t t 5134157184Saches,@abs_builddir@,$ac_abs_builddir,;t t 5135157184Saches,@top_builddir@,$ac_top_builddir,;t t 5136157184Saches,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5137157184Sache" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5138157184Sache rm -f $tmp/stdin 5139157184Sache if test x"$ac_file" != x-; then 5140157184Sache mv $tmp/out $ac_file 5141157184Sache else 5142157184Sache cat $tmp/out 5143157184Sache rm -f $tmp/out 5144157184Sache fi 5145157184Sache 5146157184Sachedone 5147157184Sache_ACEOF 5148157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 5149157184Sache 5150157184Sache# 5151157184Sache# CONFIG_HEADER section. 5152157184Sache# 5153157184Sache 5154157184Sache# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5155157184Sache# NAME is the cpp macro being defined and VALUE is the value it is being given. 5156157184Sache# 5157157184Sache# ac_d sets the value in "#define NAME VALUE" lines. 5158157184Sacheac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5159157184Sacheac_dB='[ ].*$,\1#\2' 5160157184Sacheac_dC=' ' 5161157184Sacheac_dD=',;t' 5162157184Sache# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5163157184Sacheac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5164157184Sacheac_uB='$,\1#\2define\3' 5165157184Sacheac_uC=' ' 5166157184Sacheac_uD=',;t' 5167157184Sache 5168157184Sachefor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5169157184Sache # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5170157184Sache case $ac_file in 5171157184Sache - | *:- | *:-:* ) # input from stdin 5172157184Sache cat >$tmp/stdin 5173157184Sache ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5174157184Sache ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5175157184Sache *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5176157184Sache ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5177157184Sache * ) ac_file_in=$ac_file.in ;; 5178157184Sache esac 5179157184Sache 5180157184Sache test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5181157184Sacheecho "$as_me: creating $ac_file" >&6;} 5182157184Sache 5183157184Sache # First look for the input files in the build tree, otherwise in the 5184157184Sache # src tree. 5185157184Sache ac_file_inputs=`IFS=: 5186157184Sache for f in $ac_file_in; do 5187157184Sache case $f in 5188157184Sache -) echo $tmp/stdin ;; 5189157184Sache [\\/$]*) 5190157184Sache # Absolute (can't be DOS-style, as IFS=:) 5191157184Sache test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5192157184Sacheecho "$as_me: error: cannot find input file: $f" >&2;} 5193157184Sache { (exit 1); exit 1; }; } 5194157184Sache # Do quote $f, to prevent DOS paths from being IFS'd. 5195157184Sache echo "$f";; 5196157184Sache *) # Relative 5197157184Sache if test -f "$f"; then 5198157184Sache # Build tree 5199157184Sache echo "$f" 5200157184Sache elif test -f "$srcdir/$f"; then 5201157184Sache # Source tree 5202157184Sache echo "$srcdir/$f" 5203157184Sache else 5204157184Sache # /dev/null tree 5205157184Sache { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5206157184Sacheecho "$as_me: error: cannot find input file: $f" >&2;} 5207157184Sache { (exit 1); exit 1; }; } 5208157184Sache fi;; 5209157184Sache esac 5210157184Sache done` || { (exit 1); exit 1; } 5211157184Sache # Remove the trailing spaces. 5212157184Sache sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5213157184Sache 5214157184Sache_ACEOF 5215157184Sache 5216157184Sache# Transform confdefs.h into two sed scripts, `conftest.defines' and 5217157184Sache# `conftest.undefs', that substitutes the proper values into 5218157184Sache# config.h.in to produce config.h. The first handles `#define' 5219157184Sache# templates, and the second `#undef' templates. 5220157184Sache# And first: Protect against being on the right side of a sed subst in 5221157184Sache# config.status. Protect against being in an unquoted here document 5222157184Sache# in config.status. 5223157184Sacherm -f conftest.defines conftest.undefs 5224157184Sache# Using a here document instead of a string reduces the quoting nightmare. 5225157184Sache# Putting comments in sed scripts is not portable. 5226157184Sache# 5227157184Sache# `end' is used to avoid that the second main sed command (meant for 5228157184Sache# 0-ary CPP macros) applies to n-ary macro definitions. 5229157184Sache# See the Autoconf documentation for `clear'. 5230157184Sachecat >confdef2sed.sed <<\_ACEOF 5231157184Saches/[\\&,]/\\&/g 5232157184Saches,[\\$`],\\&,g 5233157184Sachet clear 5234157184Sache: clear 5235157184Saches,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5236157184Sachet end 5237157184Saches,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5238157184Sache: end 5239157184Sache_ACEOF 5240157184Sache# If some macros were called several times there might be several times 5241157184Sache# the same #defines, which is useless. Nevertheless, we may not want to 5242157184Sache# sort them, since we want the *last* AC-DEFINE to be honored. 5243157184Sacheuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5244157184Sachesed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5245157184Sacherm -f confdef2sed.sed 5246157184Sache 5247157184Sache# This sed command replaces #undef with comments. This is necessary, for 5248157184Sache# example, in the case of _POSIX_SOURCE, which is predefined and required 5249157184Sache# on some systems where configure will not decide to define it. 5250157184Sachecat >>conftest.undefs <<\_ACEOF 5251157184Saches,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5252157184Sache_ACEOF 5253157184Sache 5254157184Sache# Break up conftest.defines because some shells have a limit on the size 5255157184Sache# of here documents, and old seds have small limits too (100 cmds). 5256157184Sacheecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5257157184Sacheecho ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5258157184Sacheecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5259157184Sacheecho ' :' >>$CONFIG_STATUS 5260157184Sacherm -f conftest.tail 5261157184Sachewhile grep . conftest.defines >/dev/null 5262157184Sachedo 5263157184Sache # Write a limited-size here document to $tmp/defines.sed. 5264157184Sache echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5265157184Sache # Speed up: don't consider the non `#define' lines. 5266157184Sache echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5267157184Sache # Work around the forget-to-reset-the-flag bug. 5268157184Sache echo 't clr' >>$CONFIG_STATUS 5269157184Sache echo ': clr' >>$CONFIG_STATUS 5270157184Sache sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5271157184Sache echo 'CEOF 5272157184Sache sed -f $tmp/defines.sed $tmp/in >$tmp/out 5273157184Sache rm -f $tmp/in 5274157184Sache mv $tmp/out $tmp/in 5275157184Sache' >>$CONFIG_STATUS 5276157184Sache sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5277157184Sache rm -f conftest.defines 5278157184Sache mv conftest.tail conftest.defines 5279157184Sachedone 5280157184Sacherm -f conftest.defines 5281157184Sacheecho ' fi # grep' >>$CONFIG_STATUS 5282157184Sacheecho >>$CONFIG_STATUS 5283157184Sache 5284157184Sache# Break up conftest.undefs because some shells have a limit on the size 5285157184Sache# of here documents, and old seds have small limits too (100 cmds). 5286157184Sacheecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 5287157184Sacherm -f conftest.tail 5288157184Sachewhile grep . conftest.undefs >/dev/null 5289157184Sachedo 5290157184Sache # Write a limited-size here document to $tmp/undefs.sed. 5291157184Sache echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5292157184Sache # Speed up: don't consider the non `#undef' 5293157184Sache echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5294157184Sache # Work around the forget-to-reset-the-flag bug. 5295157184Sache echo 't clr' >>$CONFIG_STATUS 5296157184Sache echo ': clr' >>$CONFIG_STATUS 5297157184Sache sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5298157184Sache echo 'CEOF 5299157184Sache sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5300157184Sache rm -f $tmp/in 5301157184Sache mv $tmp/out $tmp/in 5302157184Sache' >>$CONFIG_STATUS 5303157184Sache sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5304157184Sache rm -f conftest.undefs 5305157184Sache mv conftest.tail conftest.undefs 5306157184Sachedone 5307157184Sacherm -f conftest.undefs 5308157184Sache 5309157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 5310157184Sache # Let's still pretend it is `configure' which instantiates (i.e., don't 5311157184Sache # use $as_me), people would be surprised to read: 5312157184Sache # /* config.h. Generated by config.status. */ 5313157184Sache if test x"$ac_file" = x-; then 5314157184Sache echo "/* Generated by configure. */" >$tmp/config.h 5315157184Sache else 5316157184Sache echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5317157184Sache fi 5318157184Sache cat $tmp/in >>$tmp/config.h 5319157184Sache rm -f $tmp/in 5320157184Sache if test x"$ac_file" != x-; then 5321157184Sache if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 5322157184Sache { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5323157184Sacheecho "$as_me: $ac_file is unchanged" >&6;} 5324157184Sache else 5325157184Sache ac_dir=`(dirname "$ac_file") 2>/dev/null || 5326157184Sache$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5327157184Sache X"$ac_file" : 'X\(//\)[^/]' \| \ 5328157184Sache X"$ac_file" : 'X\(//\)$' \| \ 5329157184Sache X"$ac_file" : 'X\(/\)' \| \ 5330157184Sache . : '\(.\)' 2>/dev/null || 5331157184Sacheecho X"$ac_file" | 5332157184Sache sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5333157184Sache /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5334157184Sache /^X\(\/\/\)$/{ s//\1/; q; } 5335157184Sache /^X\(\/\).*/{ s//\1/; q; } 5336157184Sache s/.*/./; q'` 5337157184Sache { if $as_mkdir_p; then 5338157184Sache mkdir -p "$ac_dir" 5339157184Sache else 5340157184Sache as_dir="$ac_dir" 5341157184Sache as_dirs= 5342157184Sache while test ! -d "$as_dir"; do 5343157184Sache as_dirs="$as_dir $as_dirs" 5344157184Sache as_dir=`(dirname "$as_dir") 2>/dev/null || 5345157184Sache$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5346157184Sache X"$as_dir" : 'X\(//\)[^/]' \| \ 5347157184Sache X"$as_dir" : 'X\(//\)$' \| \ 5348157184Sache X"$as_dir" : 'X\(/\)' \| \ 5349157184Sache . : '\(.\)' 2>/dev/null || 5350157184Sacheecho X"$as_dir" | 5351157184Sache sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5352157184Sache /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5353157184Sache /^X\(\/\/\)$/{ s//\1/; q; } 5354157184Sache /^X\(\/\).*/{ s//\1/; q; } 5355157184Sache s/.*/./; q'` 5356157184Sache done 5357157184Sache test ! -n "$as_dirs" || mkdir $as_dirs 5358157184Sache fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5359157184Sacheecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5360157184Sache { (exit 1); exit 1; }; }; } 5361157184Sache 5362157184Sache rm -f $ac_file 5363157184Sache mv $tmp/config.h $ac_file 5364157184Sache fi 5365157184Sache else 5366157184Sache cat $tmp/config.h 5367157184Sache rm -f $tmp/config.h 5368157184Sache fi 5369157184Sachedone 5370157184Sache_ACEOF 5371157184Sache 5372157184Sachecat >>$CONFIG_STATUS <<\_ACEOF 5373157184Sache 5374157184Sache{ (exit 0); exit 0; } 5375157184Sache_ACEOF 5376157184Sachechmod +x $CONFIG_STATUS 5377157184Sacheac_clean_files=$ac_clean_files_save 5378157184Sache 5379157184Sache 5380157184Sache# configure is writing to config.log, and then calls config.status. 5381157184Sache# config.status does its own redirection, appending to config.log. 5382157184Sache# Unfortunately, on DOS this fails, as config.log is still kept open 5383157184Sache# by configure, so config.status won't be able to write to it; its 5384157184Sache# output is simply discarded. So we exec the FD to /dev/null, 5385157184Sache# effectively closing config.log, so it can be properly (re)opened and 5386157184Sache# appended to by config.status. When coming back to configure, we 5387157184Sache# need to make the FD available again. 5388157184Sacheif test "$no_create" != yes; then 5389157184Sache ac_cs_success=: 5390157184Sache ac_config_status_args= 5391157184Sache test "$silent" = yes && 5392157184Sache ac_config_status_args="$ac_config_status_args --quiet" 5393157184Sache exec 5>/dev/null 5394157184Sache $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5395157184Sache exec 5>>config.log 5396157184Sache # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5397157184Sache # would make configure fail if this is the last instruction. 5398157184Sache $ac_cs_success || { (exit 1); exit 1; } 5399157184Sachefi 5400157184Sache 5401