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