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