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