1#! /bin/sh 2 3 4 5 6 7 8 9# Guess values for system-dependent variables and create Makefiles. 10# Generated automatically using autoconf version 2.13 11# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15 16# Defaults: 17ac_help= 18ac_default_prefix=/usr/local 19# Any additions from configure.in: 20ac_help="$ac_help 21 --with-sdl use the Simple DirectMedia Layer" 22ac_help="$ac_help 23 --with-svgalib use SVGAlib for graphics" 24ac_help="$ac_help 25 --with-alsa use ALSA for sound output" 26ac_help="$ac_help 27 --with-win32 use Win32 console/sound drivers" 28ac_help="$ac_help 29 --with-amiga use Amiga console/sound drivers" 30ac_help="$ac_help 31 --with-x use the X Window System" 32 33# Initialize some variables set by options. 34# The variables have the same names as the options, with 35# dashes changed to underlines. 36build=NONE 37cache_file=./config.cache 38exec_prefix=NONE 39host=NONE 40no_create= 41nonopt=NONE 42no_recursion= 43prefix=NONE 44program_prefix=NONE 45program_suffix=NONE 46program_transform_name=s,x,x, 47silent= 48site= 49srcdir= 50target=NONE 51verbose= 52x_includes=NONE 53x_libraries=NONE 54bindir='${exec_prefix}/bin' 55sbindir='${exec_prefix}/sbin' 56libexecdir='${exec_prefix}/libexec' 57datadir='${prefix}/share' 58sysconfdir='${prefix}/etc' 59sharedstatedir='${prefix}/com' 60localstatedir='${prefix}/var' 61libdir='${exec_prefix}/lib' 62includedir='${prefix}/include' 63oldincludedir='/usr/include' 64infodir='${prefix}/info' 65mandir='${prefix}/man' 66 67# Initialize some other variables. 68subdirs= 69MFLAGS= MAKEFLAGS= 70SHELL=${CONFIG_SHELL-/bin/sh} 71# Maximum number of lines to put in a shell here document. 72ac_max_here_lines=12 73 74ac_prev= 75for ac_option 76do 77 78 # If the previous option needs an argument, assign it. 79 if test -n "$ac_prev"; then 80 eval "$ac_prev=\$ac_option" 81 ac_prev= 82 continue 83 fi 84 85 case "$ac_option" in 86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 87 *) ac_optarg= ;; 88 esac 89 90 # Accept the important Cygnus configure options, so we can diagnose typos. 91 92 case "$ac_option" in 93 94 -bindir | --bindir | --bindi | --bind | --bin | --bi) 95 ac_prev=bindir ;; 96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 97 bindir="$ac_optarg" ;; 98 99 -build | --build | --buil | --bui | --bu) 100 ac_prev=build ;; 101 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 102 build="$ac_optarg" ;; 103 104 -cache-file | --cache-file | --cache-fil | --cache-fi \ 105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 106 ac_prev=cache_file ;; 107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 109 cache_file="$ac_optarg" ;; 110 111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 112 ac_prev=datadir ;; 113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 114 | --da=*) 115 datadir="$ac_optarg" ;; 116 117 -disable-* | --disable-*) 118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 119 # Reject names that are not valid shell variable names. 120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 122 fi 123 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 124 eval "enable_${ac_feature}=no" ;; 125 126 -enable-* | --enable-*) 127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 128 # Reject names that are not valid shell variable names. 129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 131 fi 132 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 133 case "$ac_option" in 134 *=*) ;; 135 *) ac_optarg=yes ;; 136 esac 137 eval "enable_${ac_feature}='$ac_optarg'" ;; 138 139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 141 | --exec | --exe | --ex) 142 ac_prev=exec_prefix ;; 143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 145 | --exec=* | --exe=* | --ex=*) 146 exec_prefix="$ac_optarg" ;; 147 148 -gas | --gas | --ga | --g) 149 # Obsolete; use --with-gas. 150 with_gas=yes ;; 151 152 -help | --help | --hel | --he) 153 # Omit some internal or obsolete options to make the list less imposing. 154 # This message is too long to be a string in the A/UX 3.1 sh. 155 cat << EOF 156Usage: configure [options] [host] 157Options: [defaults in brackets after descriptions] 158Configuration: 159 --cache-file=FILE cache test results in FILE 160 --help print this message 161 --no-create do not create output files 162 --quiet, --silent do not print \`checking...' messages 163 --version print the version of autoconf that created configure 164Directory and file names: 165 --prefix=PREFIX install architecture-independent files in PREFIX 166 [$ac_default_prefix] 167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 168 [same as prefix] 169 --bindir=DIR user executables in DIR [EPREFIX/bin] 170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 172 --datadir=DIR read-only architecture-independent data in DIR 173 [PREFIX/share] 174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 175 --sharedstatedir=DIR modifiable architecture-independent data in DIR 176 [PREFIX/com] 177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 178 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 179 --includedir=DIR C header files in DIR [PREFIX/include] 180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 181 --infodir=DIR info documentation in DIR [PREFIX/info] 182 --mandir=DIR man documentation in DIR [PREFIX/man] 183 --srcdir=DIR find the sources in DIR [configure dir or ..] 184 --program-prefix=PREFIX prepend PREFIX to installed program names 185 --program-suffix=SUFFIX append SUFFIX to installed program names 186 --program-transform-name=PROGRAM 187 run sed PROGRAM on installed program names 188EOF 189 cat << EOF 190Host type: 191 --build=BUILD configure for building on BUILD [BUILD=HOST] 192 --host=HOST configure for HOST [guessed] 193 --target=TARGET configure for TARGET [TARGET=HOST] 194Features and packages: 195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 199 --x-includes=DIR X include files are in DIR 200 --x-libraries=DIR X library files are in DIR 201EOF 202 if test -n "$ac_help"; then 203 echo "--enable and --with options recognized:$ac_help" 204 fi 205 exit 0 ;; 206 207 -host | --host | --hos | --ho) 208 ac_prev=host ;; 209 -host=* | --host=* | --hos=* | --ho=*) 210 host="$ac_optarg" ;; 211 212 -includedir | --includedir | --includedi | --included | --include \ 213 | --includ | --inclu | --incl | --inc) 214 ac_prev=includedir ;; 215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 216 | --includ=* | --inclu=* | --incl=* | --inc=*) 217 includedir="$ac_optarg" ;; 218 219 -infodir | --infodir | --infodi | --infod | --info | --inf) 220 ac_prev=infodir ;; 221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 222 infodir="$ac_optarg" ;; 223 224 -libdir | --libdir | --libdi | --libd) 225 ac_prev=libdir ;; 226 -libdir=* | --libdir=* | --libdi=* | --libd=*) 227 libdir="$ac_optarg" ;; 228 229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 230 | --libexe | --libex | --libe) 231 ac_prev=libexecdir ;; 232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 233 | --libexe=* | --libex=* | --libe=*) 234 libexecdir="$ac_optarg" ;; 235 236 -localstatedir | --localstatedir | --localstatedi | --localstated \ 237 | --localstate | --localstat | --localsta | --localst \ 238 | --locals | --local | --loca | --loc | --lo) 239 ac_prev=localstatedir ;; 240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 243 localstatedir="$ac_optarg" ;; 244 245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 246 ac_prev=mandir ;; 247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 248 mandir="$ac_optarg" ;; 249 250 -nfp | --nfp | --nf) 251 # Obsolete; use --without-fp. 252 with_fp=no ;; 253 254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 255 | --no-cr | --no-c) 256 no_create=yes ;; 257 258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 260 no_recursion=yes ;; 261 262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 264 | --oldin | --oldi | --old | --ol | --o) 265 ac_prev=oldincludedir ;; 266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 269 oldincludedir="$ac_optarg" ;; 270 271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 272 ac_prev=prefix ;; 273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 274 prefix="$ac_optarg" ;; 275 276 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 277 | --program-pre | --program-pr | --program-p) 278 ac_prev=program_prefix ;; 279 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 281 program_prefix="$ac_optarg" ;; 282 283 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 284 | --program-suf | --program-su | --program-s) 285 ac_prev=program_suffix ;; 286 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 288 program_suffix="$ac_optarg" ;; 289 290 -program-transform-name | --program-transform-name \ 291 | --program-transform-nam | --program-transform-na \ 292 | --program-transform-n | --program-transform- \ 293 | --program-transform | --program-transfor \ 294 | --program-transfo | --program-transf \ 295 | --program-trans | --program-tran \ 296 | --progr-tra | --program-tr | --program-t) 297 ac_prev=program_transform_name ;; 298 -program-transform-name=* | --program-transform-name=* \ 299 | --program-transform-nam=* | --program-transform-na=* \ 300 | --program-transform-n=* | --program-transform-=* \ 301 | --program-transform=* | --program-transfor=* \ 302 | --program-transfo=* | --program-transf=* \ 303 | --program-trans=* | --program-tran=* \ 304 | --progr-tra=* | --program-tr=* | --program-t=*) 305 program_transform_name="$ac_optarg" ;; 306 307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 308 | -silent | --silent | --silen | --sile | --sil) 309 silent=yes ;; 310 311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 312 ac_prev=sbindir ;; 313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 314 | --sbi=* | --sb=*) 315 sbindir="$ac_optarg" ;; 316 317 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 319 | --sharedst | --shareds | --shared | --share | --shar \ 320 | --sha | --sh) 321 ac_prev=sharedstatedir ;; 322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 325 | --sha=* | --sh=*) 326 sharedstatedir="$ac_optarg" ;; 327 328 -site | --site | --sit) 329 ac_prev=site ;; 330 -site=* | --site=* | --sit=*) 331 site="$ac_optarg" ;; 332 333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 334 ac_prev=srcdir ;; 335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 336 srcdir="$ac_optarg" ;; 337 338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 339 | --syscon | --sysco | --sysc | --sys | --sy) 340 ac_prev=sysconfdir ;; 341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 343 sysconfdir="$ac_optarg" ;; 344 345 -target | --target | --targe | --targ | --tar | --ta | --t) 346 ac_prev=target ;; 347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 348 target="$ac_optarg" ;; 349 350 -v | -verbose | --verbose | --verbos | --verbo | --verb) 351 verbose=yes ;; 352 353 -version | --version | --versio | --versi | --vers) 354 echo "configure generated by autoconf version 2.13" 355 exit 0 ;; 356 357 -with-* | --with-*) 358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 359 # Reject names that are not valid shell variable names. 360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 362 fi 363 ac_package=`echo $ac_package| sed 's/-/_/g'` 364 case "$ac_option" in 365 *=*) ;; 366 *) ac_optarg=yes ;; 367 esac 368 eval "with_${ac_package}='$ac_optarg'" ;; 369 370 -without-* | --without-*) 371 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 372 # Reject names that are not valid shell variable names. 373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 375 fi 376 ac_package=`echo $ac_package| sed 's/-/_/g'` 377 eval "with_${ac_package}=no" ;; 378 379 --x) 380 # Obsolete; use --with-x. 381 with_x=yes ;; 382 383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 384 | --x-incl | --x-inc | --x-in | --x-i) 385 ac_prev=x_includes ;; 386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 388 x_includes="$ac_optarg" ;; 389 390 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 392 ac_prev=x_libraries ;; 393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 395 x_libraries="$ac_optarg" ;; 396 397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 398 ;; 399 400 *) 401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 402 echo "configure: warning: $ac_option: invalid host type" 1>&2 403 fi 404 if test "x$nonopt" != xNONE; then 405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 406 fi 407 nonopt="$ac_option" 408 ;; 409 410 esac 411done 412 413if test -n "$ac_prev"; then 414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 415fi 416 417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 418 419# File descriptor usage: 420# 0 standard input 421# 1 file creation 422# 2 errors and warnings 423# 3 some systems may open it to /dev/tty 424# 4 used on the Kubota Titan 425# 6 checking for... messages and results 426# 5 compiler messages saved in config.log 427if test "$silent" = yes; then 428 exec 6>/dev/null 429else 430 exec 6>&1 431fi 432exec 5>./config.log 433 434echo "\ 435This file contains any messages produced by compilers while 436running configure, to aid debugging if configure makes a mistake. 437" 1>&5 438 439# Strip out --no-create and --no-recursion so they do not pile up. 440# Also quote any args containing shell metacharacters. 441ac_configure_args= 442for ac_arg 443do 444 case "$ac_arg" in 445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 446 | --no-cr | --no-c) ;; 447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 450 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 451 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 452 esac 453done 454 455# NLS nuisances. 456# Only set these to C if already set. These must not be set unconditionally 457# because not all systems understand e.g. LANG=C (notably SCO). 458# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 459# Non-C LC_CTYPE values break the ctype check. 460if test "${LANG+set}" = set; then LANG=C; export LANG; fi 461if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 462if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 463if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 464 465# confdefs.h avoids OS command line length limits that DEFS can exceed. 466rm -rf conftest* confdefs.h 467# AIX cpp loses on an empty file, so make sure it contains at least a newline. 468echo > confdefs.h 469 470# A filename unique to this package, relative to the directory that 471# configure is in, which we can look for to find out if srcdir is correct. 472ac_unique_file=src/core/agi.c 473 474# Find the source files, if location was not specified. 475if test -z "$srcdir"; then 476 ac_srcdir_defaulted=yes 477 # Try the directory containing this script, then its parent. 478 ac_prog=$0 479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 481 srcdir=$ac_confdir 482 if test ! -r $srcdir/$ac_unique_file; then 483 srcdir=.. 484 fi 485else 486 ac_srcdir_defaulted=no 487fi 488if test ! -r $srcdir/$ac_unique_file; then 489 if test "$ac_srcdir_defaulted" = yes; then 490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 491 else 492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 493 fi 494fi 495srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 496 497# Prefer explicitly selected file to automatically selected ones. 498if test -z "$CONFIG_SITE"; then 499 if test "x$prefix" != xNONE; then 500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 501 else 502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 503 fi 504fi 505for ac_site_file in $CONFIG_SITE; do 506 if test -r "$ac_site_file"; then 507 echo "loading site script $ac_site_file" 508 . "$ac_site_file" 509 fi 510done 511 512if test -r "$cache_file"; then 513 echo "loading cache $cache_file" 514 . $cache_file 515else 516 echo "creating cache $cache_file" 517 > $cache_file 518fi 519 520ac_ext=c 521# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 522ac_cpp='$CPP $CPPFLAGS' 523ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 524ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 525cross_compiling=$ac_cv_prog_cc_cross 526 527ac_exeext= 528ac_objext=o 529if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 532 ac_n= ac_c=' 533' ac_t=' ' 534 else 535 ac_n=-n ac_c= ac_t= 536 fi 537else 538 ac_n= ac_c='\c' ac_t= 539fi 540 541 542ac_aux_dir= 543for ac_dir in ./scripts $srcdir/./scripts; do 544 if test -f $ac_dir/install-sh; then 545 ac_aux_dir=$ac_dir 546 ac_install_sh="$ac_aux_dir/install-sh -c" 547 break 548 elif test -f $ac_dir/install.sh; then 549 ac_aux_dir=$ac_dir 550 ac_install_sh="$ac_aux_dir/install.sh -c" 551 break 552 fi 553done 554if test -z "$ac_aux_dir"; then 555 { echo "configure: error: can not find install-sh or install.sh in ./scripts $srcdir/./scripts" 1>&2; exit 1; } 556fi 557ac_config_guess=$ac_aux_dir/config.guess 558ac_config_sub=$ac_aux_dir/config.sub 559ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 560 561 562# Make sure we can run config.sub. 563if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 564else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 565fi 566 567echo $ac_n "checking host system type""... $ac_c" 1>&6 568echo "configure:569: checking host system type" >&5 569 570host_alias=$host 571case "$host_alias" in 572NONE) 573 case $nonopt in 574 NONE) 575 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 576 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 577 fi ;; 578 *) host_alias=$nonopt ;; 579 esac ;; 580esac 581 582host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 583host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 584host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 585host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 586echo "$ac_t""$host" 1>&6 587 588 589if test "${target}" = NONE -o "x${target}" = "x"; then 590 target=${host} 591 target_cpu=${host_cpu} 592 target_vendor=${host_vendor} 593 target_os=${host_os} 594else 595 target_cpu=`echo $target | sed 's/^\([^-]*\)-[^-]*-.*$/\1/'` 596 target_vendor=`echo $target | sed 's/^[^-]*-\([^-]*\)-.*$/\1/'` 597 target_os=`echo $target | sed 's/^[^-]*-[^-]*-\(.*\)$/\1/'` 598fi 599 600echo " target: ${target}" 601echo " target CPU: ${target_cpu}" 602echo " target vendor: ${target_vendor}" 603echo " target OS: ${target_os}" 604 605if test "${target_cpu}" != "${host_cpu}" -o \ 606 "${target_os}" != "${host_os}"; then 607 if test "x$CC" = "x"; then 608 CROSS_PREFIX="${target_cpu}-${target_os}-" 609 CC="${CROSS_PREFIX}gcc" 610 fi 611fi 612 613 614# Extract the first word of "gcc", so it can be a program name with args. 615set dummy gcc; ac_word=$2 616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 617echo "configure:618: checking for $ac_word" >&5 618if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 619 echo $ac_n "(cached) $ac_c" 1>&6 620else 621 if test -n "$CC"; then 622 ac_cv_prog_CC="$CC" # Let the user override the test. 623else 624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 625 ac_dummy="$PATH" 626 for ac_dir in $ac_dummy; do 627 test -z "$ac_dir" && ac_dir=. 628 if test -f $ac_dir/$ac_word; then 629 ac_cv_prog_CC="gcc" 630 break 631 fi 632 done 633 IFS="$ac_save_ifs" 634fi 635fi 636CC="$ac_cv_prog_CC" 637if test -n "$CC"; then 638 echo "$ac_t""$CC" 1>&6 639else 640 echo "$ac_t""no" 1>&6 641fi 642 643if test -z "$CC"; then 644 # Extract the first word of "cc", so it can be a program name with args. 645set dummy cc; ac_word=$2 646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 647echo "configure:648: checking for $ac_word" >&5 648if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 649 echo $ac_n "(cached) $ac_c" 1>&6 650else 651 if test -n "$CC"; then 652 ac_cv_prog_CC="$CC" # Let the user override the test. 653else 654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 655 ac_prog_rejected=no 656 ac_dummy="$PATH" 657 for ac_dir in $ac_dummy; do 658 test -z "$ac_dir" && ac_dir=. 659 if test -f $ac_dir/$ac_word; then 660 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 661 ac_prog_rejected=yes 662 continue 663 fi 664 ac_cv_prog_CC="cc" 665 break 666 fi 667 done 668 IFS="$ac_save_ifs" 669if test $ac_prog_rejected = yes; then 670 # We found a bogon in the path, so make sure we never use it. 671 set dummy $ac_cv_prog_CC 672 shift 673 if test $# -gt 0; then 674 # We chose a different compiler from the bogus one. 675 # However, it has the same basename, so the bogon will be chosen 676 # first if we set CC to just the basename; use the full file name. 677 shift 678 set dummy "$ac_dir/$ac_word" "$@" 679 shift 680 ac_cv_prog_CC="$@" 681 fi 682fi 683fi 684fi 685CC="$ac_cv_prog_CC" 686if test -n "$CC"; then 687 echo "$ac_t""$CC" 1>&6 688else 689 echo "$ac_t""no" 1>&6 690fi 691 692 if test -z "$CC"; then 693 case "`uname -s`" in 694 *win32* | *WIN32*) 695 # Extract the first word of "cl", so it can be a program name with args. 696set dummy cl; ac_word=$2 697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 698echo "configure:699: checking for $ac_word" >&5 699if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 700 echo $ac_n "(cached) $ac_c" 1>&6 701else 702 if test -n "$CC"; then 703 ac_cv_prog_CC="$CC" # Let the user override the test. 704else 705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 706 ac_dummy="$PATH" 707 for ac_dir in $ac_dummy; do 708 test -z "$ac_dir" && ac_dir=. 709 if test -f $ac_dir/$ac_word; then 710 ac_cv_prog_CC="cl" 711 break 712 fi 713 done 714 IFS="$ac_save_ifs" 715fi 716fi 717CC="$ac_cv_prog_CC" 718if test -n "$CC"; then 719 echo "$ac_t""$CC" 1>&6 720else 721 echo "$ac_t""no" 1>&6 722fi 723 ;; 724 esac 725 fi 726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 727fi 728 729echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 730echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 731 732ac_ext=c 733# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 734ac_cpp='$CPP $CPPFLAGS' 735ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 736ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 737cross_compiling=$ac_cv_prog_cc_cross 738 739cat > conftest.$ac_ext << EOF 740 741#line 742 "configure" 742#include "confdefs.h" 743 744main(){return(0);} 745EOF 746if { (eval echo configure:747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 747 ac_cv_prog_cc_works=yes 748 # If we can't run a trivial program, we are probably using a cross compiler. 749 if (./conftest; exit) 2>/dev/null; then 750 ac_cv_prog_cc_cross=no 751 else 752 ac_cv_prog_cc_cross=yes 753 fi 754else 755 echo "configure: failed program was:" >&5 756 cat conftest.$ac_ext >&5 757 ac_cv_prog_cc_works=no 758fi 759rm -fr conftest* 760ac_ext=c 761# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 762ac_cpp='$CPP $CPPFLAGS' 763ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 764ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 765cross_compiling=$ac_cv_prog_cc_cross 766 767echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 768if test $ac_cv_prog_cc_works = no; then 769 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 770fi 771echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 772echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 773echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 774cross_compiling=$ac_cv_prog_cc_cross 775 776echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 777echo "configure:778: checking whether we are using GNU C" >&5 778if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 779 echo $ac_n "(cached) $ac_c" 1>&6 780else 781 cat > conftest.c <<EOF 782#ifdef __GNUC__ 783 yes; 784#endif 785EOF 786if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 787 ac_cv_prog_gcc=yes 788else 789 ac_cv_prog_gcc=no 790fi 791fi 792 793echo "$ac_t""$ac_cv_prog_gcc" 1>&6 794 795if test $ac_cv_prog_gcc = yes; then 796 GCC=yes 797else 798 GCC= 799fi 800 801ac_test_CFLAGS="${CFLAGS+set}" 802ac_save_CFLAGS="$CFLAGS" 803CFLAGS= 804echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 805echo "configure:806: checking whether ${CC-cc} accepts -g" >&5 806if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 807 echo $ac_n "(cached) $ac_c" 1>&6 808else 809 echo 'void f(){}' > conftest.c 810if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 811 ac_cv_prog_cc_g=yes 812else 813 ac_cv_prog_cc_g=no 814fi 815rm -f conftest* 816 817fi 818 819echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 820if test "$ac_test_CFLAGS" = set; then 821 CFLAGS="$ac_save_CFLAGS" 822elif test $ac_cv_prog_cc_g = yes; then 823 if test "$GCC" = yes; then 824 CFLAGS="-g -O2" 825 else 826 CFLAGS="-g" 827 fi 828else 829 if test "$GCC" = yes; then 830 CFLAGS="-O2" 831 else 832 CFLAGS= 833 fi 834fi 835 836echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 837echo "configure:838: checking how to run the C preprocessor" >&5 838# On Suns, sometimes $CPP names a directory. 839if test -n "$CPP" && test -d "$CPP"; then 840 CPP= 841fi 842if test -z "$CPP"; then 843if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 844 echo $ac_n "(cached) $ac_c" 1>&6 845else 846 # This must be in double quotes, not single quotes, because CPP may get 847 # substituted into the Makefile and "${CC-cc}" will confuse make. 848 CPP="${CC-cc} -E" 849 # On the NeXT, cc -E runs the code through the compiler's parser, 850 # not just through cpp. 851 cat > conftest.$ac_ext <<EOF 852#line 853 "configure" 853#include "confdefs.h" 854#include <assert.h> 855Syntax Error 856EOF 857ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 858{ (eval echo configure:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 859ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 860if test -z "$ac_err"; then 861 : 862else 863 echo "$ac_err" >&5 864 echo "configure: failed program was:" >&5 865 cat conftest.$ac_ext >&5 866 rm -rf conftest* 867 CPP="${CC-cc} -E -traditional-cpp" 868 cat > conftest.$ac_ext <<EOF 869#line 870 "configure" 870#include "confdefs.h" 871#include <assert.h> 872Syntax Error 873EOF 874ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 875{ (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 876ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 877if test -z "$ac_err"; then 878 : 879else 880 echo "$ac_err" >&5 881 echo "configure: failed program was:" >&5 882 cat conftest.$ac_ext >&5 883 rm -rf conftest* 884 CPP="${CC-cc} -nologo -E" 885 cat > conftest.$ac_ext <<EOF 886#line 887 "configure" 887#include "confdefs.h" 888#include <assert.h> 889Syntax Error 890EOF 891ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 892{ (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 893ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 894if test -z "$ac_err"; then 895 : 896else 897 echo "$ac_err" >&5 898 echo "configure: failed program was:" >&5 899 cat conftest.$ac_ext >&5 900 rm -rf conftest* 901 CPP=/lib/cpp 902fi 903rm -f conftest* 904fi 905rm -f conftest* 906fi 907rm -f conftest* 908 ac_cv_prog_CPP="$CPP" 909fi 910 CPP="$ac_cv_prog_CPP" 911else 912 ac_cv_prog_CPP="$CPP" 913fi 914echo "$ac_t""$CPP" 1>&6 915 916# Extract the first word of "ranlib", so it can be a program name with args. 917set dummy ranlib; ac_word=$2 918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 919echo "configure:920: checking for $ac_word" >&5 920if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 921 echo $ac_n "(cached) $ac_c" 1>&6 922else 923 if test -n "$RANLIB"; then 924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 925else 926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 927 ac_dummy="$PATH" 928 for ac_dir in $ac_dummy; do 929 test -z "$ac_dir" && ac_dir=. 930 if test -f $ac_dir/$ac_word; then 931 ac_cv_prog_RANLIB="ranlib" 932 break 933 fi 934 done 935 IFS="$ac_save_ifs" 936 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 937fi 938fi 939RANLIB="$ac_cv_prog_RANLIB" 940if test -n "$RANLIB"; then 941 echo "$ac_t""$RANLIB" 1>&6 942else 943 echo "$ac_t""no" 1>&6 944fi 945 946# Find a good install program. We prefer a C program (faster), 947# so one script is as good as another. But avoid the broken or 948# incompatible versions: 949# SysV /etc/install, /usr/sbin/install 950# SunOS /usr/etc/install 951# IRIX /sbin/install 952# AIX /bin/install 953# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 954# AFS /usr/afsws/bin/install, which mishandles nonexistent args 955# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 956# ./install, which can be erroneously created by make from ./install.sh. 957echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 958echo "configure:959: checking for a BSD compatible install" >&5 959if test -z "$INSTALL"; then 960if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 961 echo $ac_n "(cached) $ac_c" 1>&6 962else 963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 964 for ac_dir in $PATH; do 965 # Account for people who put trailing slashes in PATH elements. 966 case "$ac_dir/" in 967 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 968 *) 969 # OSF1 and SCO ODT 3.0 have their own names for install. 970 # Don't use installbsd from OSF since it installs stuff as root 971 # by default. 972 for ac_prog in ginstall scoinst install; do 973 if test -f $ac_dir/$ac_prog; then 974 if test $ac_prog = install && 975 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 976 # AIX install. It has an incompatible calling convention. 977 : 978 else 979 ac_cv_path_install="$ac_dir/$ac_prog -c" 980 break 2 981 fi 982 fi 983 done 984 ;; 985 esac 986 done 987 IFS="$ac_save_IFS" 988 989fi 990 if test "${ac_cv_path_install+set}" = set; then 991 INSTALL="$ac_cv_path_install" 992 else 993 # As a last resort, use the slow shell script. We don't cache a 994 # path for INSTALL within a source directory, because that will 995 # break other packages using the cache if that directory is 996 # removed, or if the path is relative. 997 INSTALL="$ac_install_sh" 998 fi 999fi 1000echo "$ac_t""$INSTALL" 1>&6 1001 1002# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1003# It thinks the first close brace ends the variable substitution. 1004test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1005 1006test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1007 1008test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1009 1010echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1011echo "configure:1012: checking whether ${MAKE-make} sets \${MAKE}" >&5 1012set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1013if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1014 echo $ac_n "(cached) $ac_c" 1>&6 1015else 1016 cat > conftestmake <<\EOF 1017all: 1018 @echo 'ac_maketemp="${MAKE}"' 1019EOF 1020# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1021eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1022if test -n "$ac_maketemp"; then 1023 eval ac_cv_prog_make_${ac_make}_set=yes 1024else 1025 eval ac_cv_prog_make_${ac_make}_set=no 1026fi 1027rm -f conftestmake 1028fi 1029if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1030 echo "$ac_t""yes" 1>&6 1031 SET_MAKE= 1032else 1033 echo "$ac_t""no" 1>&6 1034 SET_MAKE="MAKE=${MAKE-make}" 1035fi 1036 1037 1038# Check whether --with-sdl or --without-sdl was given. 1039if test "${with_sdl+set}" = set; then 1040 withval="$with_sdl" 1041 : 1042fi 1043 1044# Check whether --with-svgalib or --without-svgalib was given. 1045if test "${with_svgalib+set}" = set; then 1046 withval="$with_svgalib" 1047 : 1048fi 1049 1050# Check whether --with-alsa or --without-alsa was given. 1051if test "${with_alsa+set}" = set; then 1052 withval="$with_alsa" 1053 : 1054fi 1055 1056# Check whether --with-win32 or --without-win32 was given. 1057if test "${with_win32+set}" = set; then 1058 withval="$with_win32" 1059 : 1060fi 1061 1062# Check whether --with-amiga or --without-amiga was given. 1063if test "${with_amiga+set}" = set; then 1064 withval="$with_amiga" 1065 : 1066fi 1067 1068 1069if test "${GCC-no}" = yes; then 1070 CFLAGS="${CFLAGS} -Wall" 1071fi 1072 1073MAIN_FILE="main" 1074 1075case "${target_os}" in 1076beos*) 1077 CFLAGS="$CFLAGS -I/boot/develop/tools/gnupro/include" 1078 CPPFLAGS="$CPPFLAGS -I/boot/develop/tools/gnupro/include" 1079 with_sdl="yes" 1080 ;; 1081nto*) 1082 for ac_hdr in Pt.h Ph.h 1083do 1084ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1085echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1086echo "configure:1087: checking for $ac_hdr" >&5 1087if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1088 echo $ac_n "(cached) $ac_c" 1>&6 1089else 1090 cat > conftest.$ac_ext <<EOF 1091#line 1092 "configure" 1092#include "confdefs.h" 1093#include <$ac_hdr> 1094EOF 1095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1096{ (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1098if test -z "$ac_err"; then 1099 rm -rf conftest* 1100 eval "ac_cv_header_$ac_safe=yes" 1101else 1102 echo "$ac_err" >&5 1103 echo "configure: failed program was:" >&5 1104 cat conftest.$ac_ext >&5 1105 rm -rf conftest* 1106 eval "ac_cv_header_$ac_safe=no" 1107fi 1108rm -f conftest* 1109fi 1110if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1111 echo "$ac_t""yes" 1>&6 1112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1113 cat >> confdefs.h <<EOF 1114#define $ac_tr_hdr 1 1115EOF 1116 1117else 1118 echo "$ac_t""no" 1>&6 1119fi 1120done 1121 1122 ;; 1123cygwin*|mingw*) 1124 for ac_hdr in wingdi.h 1125do 1126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1128echo "configure:1129: checking for $ac_hdr" >&5 1129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1130 echo $ac_n "(cached) $ac_c" 1>&6 1131else 1132 cat > conftest.$ac_ext <<EOF 1133#line 1134 "configure" 1134#include "confdefs.h" 1135#include <$ac_hdr> 1136EOF 1137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1138{ (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1140if test -z "$ac_err"; then 1141 rm -rf conftest* 1142 eval "ac_cv_header_$ac_safe=yes" 1143else 1144 echo "$ac_err" >&5 1145 echo "configure: failed program was:" >&5 1146 cat conftest.$ac_ext >&5 1147 rm -rf conftest* 1148 eval "ac_cv_header_$ac_safe=no" 1149fi 1150rm -f conftest* 1151fi 1152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1153 echo "$ac_t""yes" 1>&6 1154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1155 cat >> confdefs.h <<EOF 1156#define $ac_tr_hdr 1 1157EOF 1158 1159else 1160 echo "$ac_t""no" 1>&6 1161fi 1162done 1163 1164 MAIN_FILE="winmain" 1165 with_win32="yes" 1166 ;; 1167palmos*) 1168 CFLAGS="$CFLAGS -DPALMOS" 1169 MAIN_FILE="palmos" 1170 ;; 1171amiga*) 1172 CFLAGS="$CFLAGS -DAMIGA -D__AMIGA__ -Uamiga" 1173 ;; 1174esac 1175 1176 1177if test "${with_win32}" = "yes"; then 1178 CFLAGS="${CFLAGS} -DELIDE_CODE" 1179fi 1180 1181 1182echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1183echo "configure:1184: checking for ANSI C header files" >&5 1184if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1185 echo $ac_n "(cached) $ac_c" 1>&6 1186else 1187 cat > conftest.$ac_ext <<EOF 1188#line 1189 "configure" 1189#include "confdefs.h" 1190#include <stdlib.h> 1191#include <stdarg.h> 1192#include <string.h> 1193#include <float.h> 1194EOF 1195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1196{ (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1197ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1198if test -z "$ac_err"; then 1199 rm -rf conftest* 1200 ac_cv_header_stdc=yes 1201else 1202 echo "$ac_err" >&5 1203 echo "configure: failed program was:" >&5 1204 cat conftest.$ac_ext >&5 1205 rm -rf conftest* 1206 ac_cv_header_stdc=no 1207fi 1208rm -f conftest* 1209 1210if test $ac_cv_header_stdc = yes; then 1211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1212cat > conftest.$ac_ext <<EOF 1213#line 1214 "configure" 1214#include "confdefs.h" 1215#include <string.h> 1216EOF 1217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1218 egrep "memchr" >/dev/null 2>&1; then 1219 : 1220else 1221 rm -rf conftest* 1222 ac_cv_header_stdc=no 1223fi 1224rm -f conftest* 1225 1226fi 1227 1228if test $ac_cv_header_stdc = yes; then 1229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1230cat > conftest.$ac_ext <<EOF 1231#line 1232 "configure" 1232#include "confdefs.h" 1233#include <stdlib.h> 1234EOF 1235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1236 egrep "free" >/dev/null 2>&1; then 1237 : 1238else 1239 rm -rf conftest* 1240 ac_cv_header_stdc=no 1241fi 1242rm -f conftest* 1243 1244fi 1245 1246if test $ac_cv_header_stdc = yes; then 1247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1248if test "$cross_compiling" = yes; then 1249 : 1250else 1251 cat > conftest.$ac_ext <<EOF 1252#line 1253 "configure" 1253#include "confdefs.h" 1254#include <ctype.h> 1255#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1256#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1257#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1258int main () { int i; for (i = 0; i < 256; i++) 1259if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1260exit (0); } 1261 1262EOF 1263if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1264then 1265 : 1266else 1267 echo "configure: failed program was:" >&5 1268 cat conftest.$ac_ext >&5 1269 rm -fr conftest* 1270 ac_cv_header_stdc=no 1271fi 1272rm -fr conftest* 1273fi 1274 1275fi 1276fi 1277 1278echo "$ac_t""$ac_cv_header_stdc" 1>&6 1279if test $ac_cv_header_stdc = yes; then 1280 cat >> confdefs.h <<\EOF 1281#define STDC_HEADERS 1 1282EOF 1283 1284fi 1285 1286for ac_hdr in string.h getopt.h dirent.h time.h 1287do 1288ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1289echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1290echo "configure:1291: checking for $ac_hdr" >&5 1291if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1292 echo $ac_n "(cached) $ac_c" 1>&6 1293else 1294 cat > conftest.$ac_ext <<EOF 1295#line 1296 "configure" 1296#include "confdefs.h" 1297#include <$ac_hdr> 1298EOF 1299ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1300{ (eval echo configure:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1301ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1302if test -z "$ac_err"; then 1303 rm -rf conftest* 1304 eval "ac_cv_header_$ac_safe=yes" 1305else 1306 echo "$ac_err" >&5 1307 echo "configure: failed program was:" >&5 1308 cat conftest.$ac_ext >&5 1309 rm -rf conftest* 1310 eval "ac_cv_header_$ac_safe=no" 1311fi 1312rm -f conftest* 1313fi 1314if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1315 echo "$ac_t""yes" 1>&6 1316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1317 cat >> confdefs.h <<EOF 1318#define $ac_tr_hdr 1 1319EOF 1320 1321else 1322 echo "$ac_t""no" 1>&6 1323fi 1324done 1325 1326 1327 1328 1329echo "checking for graphics support" 1>&6 1330echo "configure:1331: checking for graphics support" >&5 1331CONSOLE_DRIVER="none" 1332 1333if test "${ac_cv_header_Ph_h}" = "yes"; then 1334 CONSOLE_DRIVER="photon" 1335 LIBS="${LIBS} -lph -lphrender" 1336elif test "${with_win32}" = "yes"; then 1337 CONSOLE_DRIVER="win32" 1338 echo $ac_n "checking for usleep in -lcygwin""... $ac_c" 1>&6 1339echo "configure:1340: checking for usleep in -lcygwin" >&5 1340ac_lib_var=`echo cygwin'_'usleep | sed 'y%./+-%__p_%'` 1341if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1342 echo $ac_n "(cached) $ac_c" 1>&6 1343else 1344 ac_save_LIBS="$LIBS" 1345LIBS="-lcygwin $LIBS" 1346cat > conftest.$ac_ext <<EOF 1347#line 1348 "configure" 1348#include "confdefs.h" 1349/* Override any gcc2 internal prototype to avoid an error. */ 1350/* We use char because int might match the return type of a gcc2 1351 builtin and then its argument prototype would still apply. */ 1352char usleep(); 1353 1354int main() { 1355usleep() 1356; return 0; } 1357EOF 1358if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1359 rm -rf conftest* 1360 eval "ac_cv_lib_$ac_lib_var=yes" 1361else 1362 echo "configure: failed program was:" >&5 1363 cat conftest.$ac_ext >&5 1364 rm -rf conftest* 1365 eval "ac_cv_lib_$ac_lib_var=no" 1366fi 1367rm -f conftest* 1368LIBS="$ac_save_LIBS" 1369 1370fi 1371if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1372 echo "$ac_t""yes" 1>&6 1373 ac_tr_lib=HAVE_LIB`echo cygwin | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1375 cat >> confdefs.h <<EOF 1376#define $ac_tr_lib 1 1377EOF 1378 1379 LIBS="-lcygwin $LIBS" 1380 1381else 1382 echo "$ac_t""no" 1>&6 1383fi 1384 1385 LIBS="-lgdi32 ${LIBS} -lcomdlg32" 1386elif test "${with_sdl}" = "yes"; then 1387 for ac_hdr in SDL SDL/SDL.h 1388do 1389ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1390echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1391echo "configure:1392: checking for $ac_hdr" >&5 1392if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1393 echo $ac_n "(cached) $ac_c" 1>&6 1394else 1395 cat > conftest.$ac_ext <<EOF 1396#line 1397 "configure" 1397#include "confdefs.h" 1398#include <$ac_hdr> 1399EOF 1400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1401{ (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1403if test -z "$ac_err"; then 1404 rm -rf conftest* 1405 eval "ac_cv_header_$ac_safe=yes" 1406else 1407 echo "$ac_err" >&5 1408 echo "configure: failed program was:" >&5 1409 cat conftest.$ac_ext >&5 1410 rm -rf conftest* 1411 eval "ac_cv_header_$ac_safe=no" 1412fi 1413rm -f conftest* 1414fi 1415if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1416 echo "$ac_t""yes" 1>&6 1417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1418 cat >> confdefs.h <<EOF 1419#define $ac_tr_hdr 1 1420EOF 1421 1422else 1423 echo "$ac_t""no" 1>&6 1424fi 1425done 1426 1427 if test "${ac_cv_header_SDL_h}" = "yes"; then 1428 CONSOLE_DRIVER="sdl" 1429 CFLAGS="`sdl-config --cflags` ${CFLAGS}" 1430 LIBS="`sdl-config --libs` ${LIBS}" 1431 fi 1432 if test "${ac_cv_header_SDL_SDL_h}" = "yes"; then 1433 CONSOLE_DRIVER="sdl" 1434 CFLAGS="`sdl-config --cflags` ${CFLAGS} -ISDL" 1435 LIBS="`sdl-config --libs` ${LIBS}" 1436 fi 1437 with_x="no" 1438elif test "${with_svgalib}" = "yes"; then 1439 for ac_hdr in vga.h 1440do 1441ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1442echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1443echo "configure:1444: checking for $ac_hdr" >&5 1444if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1445 echo $ac_n "(cached) $ac_c" 1>&6 1446else 1447 cat > conftest.$ac_ext <<EOF 1448#line 1449 "configure" 1449#include "confdefs.h" 1450#include <$ac_hdr> 1451EOF 1452ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1453{ (eval echo configure:1454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1454ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1455if test -z "$ac_err"; then 1456 rm -rf conftest* 1457 eval "ac_cv_header_$ac_safe=yes" 1458else 1459 echo "$ac_err" >&5 1460 echo "configure: failed program was:" >&5 1461 cat conftest.$ac_ext >&5 1462 rm -rf conftest* 1463 eval "ac_cv_header_$ac_safe=no" 1464fi 1465rm -f conftest* 1466fi 1467if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1468 echo "$ac_t""yes" 1>&6 1469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1470 cat >> confdefs.h <<EOF 1471#define $ac_tr_hdr 1 1472EOF 1473 1474else 1475 echo "$ac_t""no" 1>&6 1476fi 1477done 1478 1479 if test "${ac_cv_header_vga_h}" = "yes"; then 1480 CONSOLE_DRIVER="svgalib" 1481 LIBS="-lvga ${LIBS}" 1482 fi 1483elif test "${with_amiga}" = "yes"; then 1484 CONSOLE_DRIVER="amiga" 1485 echo $ac_n "checking for usleep in -lamiga""... $ac_c" 1>&6 1486echo "configure:1487: checking for usleep in -lamiga" >&5 1487ac_lib_var=`echo amiga'_'usleep | sed 'y%./+-%__p_%'` 1488if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1489 echo $ac_n "(cached) $ac_c" 1>&6 1490else 1491 ac_save_LIBS="$LIBS" 1492LIBS="-lamiga $LIBS" 1493cat > conftest.$ac_ext <<EOF 1494#line 1495 "configure" 1495#include "confdefs.h" 1496/* Override any gcc2 internal prototype to avoid an error. */ 1497/* We use char because int might match the return type of a gcc2 1498 builtin and then its argument prototype would still apply. */ 1499char usleep(); 1500 1501int main() { 1502usleep() 1503; return 0; } 1504EOF 1505if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1506 rm -rf conftest* 1507 eval "ac_cv_lib_$ac_lib_var=yes" 1508else 1509 echo "configure: failed program was:" >&5 1510 cat conftest.$ac_ext >&5 1511 rm -rf conftest* 1512 eval "ac_cv_lib_$ac_lib_var=no" 1513fi 1514rm -f conftest* 1515LIBS="$ac_save_LIBS" 1516 1517fi 1518if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1519 echo "$ac_t""yes" 1>&6 1520 ac_tr_lib=HAVE_LIB`echo amiga | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1522 cat >> confdefs.h <<EOF 1523#define $ac_tr_lib 1 1524EOF 1525 1526 LIBS="-lamiga $LIBS" 1527 1528else 1529 echo "$ac_t""no" 1>&6 1530fi 1531 1532 LIBS="-m68020 -noixemul -ldebug -lm ${LIBS}" 1533else 1534 # If we find X, set shell vars x_includes and x_libraries to the 1535# paths, otherwise set no_x=yes. 1536# Uses ac_ vars as temps to allow command line to override cache and checks. 1537# --without-x overrides everything else, but does not touch the cache. 1538echo $ac_n "checking for X""... $ac_c" 1>&6 1539echo "configure:1540: checking for X" >&5 1540 1541# Check whether --with-x or --without-x was given. 1542if test "${with_x+set}" = set; then 1543 withval="$with_x" 1544 : 1545fi 1546 1547# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 1548if test "x$with_x" = xno; then 1549 # The user explicitly disabled X. 1550 have_x=disabled 1551else 1552 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 1553 # Both variables are already set. 1554 have_x=yes 1555 else 1556if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 1557 echo $ac_n "(cached) $ac_c" 1>&6 1558else 1559 # One or both of the vars are not set, and there is no cached value. 1560ac_x_includes=NO ac_x_libraries=NO 1561rm -fr conftestdir 1562if mkdir conftestdir; then 1563 cd conftestdir 1564 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 1565 cat > Imakefile <<'EOF' 1566acfindx: 1567 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 1568EOF 1569 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 1570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1571 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 1572 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 1573 for ac_extension in a so sl; do 1574 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 1575 test -f $ac_im_libdir/libX11.$ac_extension; then 1576 ac_im_usrlibdir=$ac_im_libdir; break 1577 fi 1578 done 1579 # Screen out bogus values from the imake configuration. They are 1580 # bogus both because they are the default anyway, and because 1581 # using them would break gcc on systems where it needs fixed includes. 1582 case "$ac_im_incroot" in 1583 /usr/include) ;; 1584 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 1585 esac 1586 case "$ac_im_usrlibdir" in 1587 /usr/lib | /lib) ;; 1588 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 1589 esac 1590 fi 1591 cd .. 1592 rm -fr conftestdir 1593fi 1594 1595if test "$ac_x_includes" = NO; then 1596 # Guess where to find include files, by looking for this one X11 .h file. 1597 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 1598 1599 # First, try using that file with no special directory specified. 1600cat > conftest.$ac_ext <<EOF 1601#line 1602 "configure" 1602#include "confdefs.h" 1603#include <$x_direct_test_include> 1604EOF 1605ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1606{ (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1607ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1608if test -z "$ac_err"; then 1609 rm -rf conftest* 1610 # We can compile using X headers with no special include directory. 1611ac_x_includes= 1612else 1613 echo "$ac_err" >&5 1614 echo "configure: failed program was:" >&5 1615 cat conftest.$ac_ext >&5 1616 rm -rf conftest* 1617 # Look for the header file in a standard set of common directories. 1618# Check X11 before X11Rn because it is often a symlink to the current release. 1619 for ac_dir in \ 1620 /usr/X11/include \ 1621 /usr/X11R6/include \ 1622 /usr/X11R5/include \ 1623 /usr/X11R4/include \ 1624 \ 1625 /usr/include/X11 \ 1626 /usr/include/X11R6 \ 1627 /usr/include/X11R5 \ 1628 /usr/include/X11R4 \ 1629 \ 1630 /usr/local/X11/include \ 1631 /usr/local/X11R6/include \ 1632 /usr/local/X11R5/include \ 1633 /usr/local/X11R4/include \ 1634 \ 1635 /usr/local/include/X11 \ 1636 /usr/local/include/X11R6 \ 1637 /usr/local/include/X11R5 \ 1638 /usr/local/include/X11R4 \ 1639 \ 1640 /usr/X386/include \ 1641 /usr/x386/include \ 1642 /usr/XFree86/include/X11 \ 1643 \ 1644 /usr/include \ 1645 /usr/local/include \ 1646 /usr/unsupported/include \ 1647 /usr/athena/include \ 1648 /usr/local/x11r5/include \ 1649 /usr/lpp/Xamples/include \ 1650 \ 1651 /usr/openwin/include \ 1652 /usr/openwin/share/include \ 1653 ; \ 1654 do 1655 if test -r "$ac_dir/$x_direct_test_include"; then 1656 ac_x_includes=$ac_dir 1657 break 1658 fi 1659 done 1660fi 1661rm -f conftest* 1662fi # $ac_x_includes = NO 1663 1664if test "$ac_x_libraries" = NO; then 1665 # Check for the libraries. 1666 1667 test -z "$x_direct_test_library" && x_direct_test_library=Xt 1668 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 1669 1670 # See if we find them without any special options. 1671 # Don't add to $LIBS permanently. 1672 ac_save_LIBS="$LIBS" 1673 LIBS="-l$x_direct_test_library $LIBS" 1674cat > conftest.$ac_ext <<EOF 1675#line 1676 "configure" 1676#include "confdefs.h" 1677 1678int main() { 1679${x_direct_test_function}() 1680; return 0; } 1681EOF 1682if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1683 rm -rf conftest* 1684 LIBS="$ac_save_LIBS" 1685# We can link X programs with no special library path. 1686ac_x_libraries= 1687else 1688 echo "configure: failed program was:" >&5 1689 cat conftest.$ac_ext >&5 1690 rm -rf conftest* 1691 LIBS="$ac_save_LIBS" 1692# First see if replacing the include by lib works. 1693# Check X11 before X11Rn because it is often a symlink to the current release. 1694for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 1695 /usr/X11/lib \ 1696 /usr/X11R6/lib \ 1697 /usr/X11R5/lib \ 1698 /usr/X11R4/lib \ 1699 \ 1700 /usr/lib/X11 \ 1701 /usr/lib/X11R6 \ 1702 /usr/lib/X11R5 \ 1703 /usr/lib/X11R4 \ 1704 \ 1705 /usr/local/X11/lib \ 1706 /usr/local/X11R6/lib \ 1707 /usr/local/X11R5/lib \ 1708 /usr/local/X11R4/lib \ 1709 \ 1710 /usr/local/lib/X11 \ 1711 /usr/local/lib/X11R6 \ 1712 /usr/local/lib/X11R5 \ 1713 /usr/local/lib/X11R4 \ 1714 \ 1715 /usr/X386/lib \ 1716 /usr/x386/lib \ 1717 /usr/XFree86/lib/X11 \ 1718 \ 1719 /usr/lib \ 1720 /usr/local/lib \ 1721 /usr/unsupported/lib \ 1722 /usr/athena/lib \ 1723 /usr/local/x11r5/lib \ 1724 /usr/lpp/Xamples/lib \ 1725 /lib/usr/lib/X11 \ 1726 \ 1727 /usr/openwin/lib \ 1728 /usr/openwin/share/lib \ 1729 ; \ 1730do 1731 for ac_extension in a so sl; do 1732 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 1733 ac_x_libraries=$ac_dir 1734 break 2 1735 fi 1736 done 1737done 1738fi 1739rm -f conftest* 1740fi # $ac_x_libraries = NO 1741 1742if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 1743 # Didn't find X anywhere. Cache the known absence of X. 1744 ac_cv_have_x="have_x=no" 1745else 1746 # Record where we found X for the cache. 1747 ac_cv_have_x="have_x=yes \ 1748 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 1749fi 1750fi 1751 fi 1752 eval "$ac_cv_have_x" 1753fi # $with_x != no 1754 1755if test "$have_x" != yes; then 1756 echo "$ac_t""$have_x" 1>&6 1757 no_x=yes 1758else 1759 # If each of the values was on the command line, it overrides each guess. 1760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 1761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 1762 # Update the cache value to reflect the command line values. 1763 ac_cv_have_x="have_x=yes \ 1764 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 1765 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 1766fi 1767 1768 if test ! -z "${ac_cv_have_x}"; then 1769 CONSOLE_DRIVER="x11" 1770 if test "$no_x" = yes; then 1771 # Not all programs may use this symbol, but it does not hurt to define it. 1772 cat >> confdefs.h <<\EOF 1773#define X_DISPLAY_MISSING 1 1774EOF 1775 1776 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 1777else 1778 if test -n "$x_includes"; then 1779 X_CFLAGS="$X_CFLAGS -I$x_includes" 1780 fi 1781 1782 # It would also be nice to do this for all -L options, not just this one. 1783 if test -n "$x_libraries"; then 1784 X_LIBS="$X_LIBS -L$x_libraries" 1785 # For Solaris; some versions of Sun CC require a space after -R and 1786 # others require no space. Words are not sufficient . . . . 1787 case "`(uname -sr) 2>/dev/null`" in 1788 "SunOS 5"*) 1789 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 1790echo "configure:1791: checking whether -R must be followed by a space" >&5 1791 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 1792 cat > conftest.$ac_ext <<EOF 1793#line 1794 "configure" 1794#include "confdefs.h" 1795 1796int main() { 1797 1798; return 0; } 1799EOF 1800if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1801 rm -rf conftest* 1802 ac_R_nospace=yes 1803else 1804 echo "configure: failed program was:" >&5 1805 cat conftest.$ac_ext >&5 1806 rm -rf conftest* 1807 ac_R_nospace=no 1808fi 1809rm -f conftest* 1810 if test $ac_R_nospace = yes; then 1811 echo "$ac_t""no" 1>&6 1812 X_LIBS="$X_LIBS -R$x_libraries" 1813 else 1814 LIBS="$ac_xsave_LIBS -R $x_libraries" 1815 cat > conftest.$ac_ext <<EOF 1816#line 1817 "configure" 1817#include "confdefs.h" 1818 1819int main() { 1820 1821; return 0; } 1822EOF 1823if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1824 rm -rf conftest* 1825 ac_R_space=yes 1826else 1827 echo "configure: failed program was:" >&5 1828 cat conftest.$ac_ext >&5 1829 rm -rf conftest* 1830 ac_R_space=no 1831fi 1832rm -f conftest* 1833 if test $ac_R_space = yes; then 1834 echo "$ac_t""yes" 1>&6 1835 X_LIBS="$X_LIBS -R $x_libraries" 1836 else 1837 echo "$ac_t""neither works" 1>&6 1838 fi 1839 fi 1840 LIBS="$ac_xsave_LIBS" 1841 esac 1842 fi 1843 1844 # Check for system-dependent libraries X programs must link with. 1845 # Do this before checking for the system-independent R6 libraries 1846 # (-lICE), since we may need -lsocket or whatever for X linking. 1847 1848 if test "$ISC" = yes; then 1849 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 1850 else 1851 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1852 # libraries were built with DECnet support. And karl@cs.umb.edu says 1853 # the Alpha needs dnet_stub (dnet does not exist). 1854 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 1855echo "configure:1856: checking for dnet_ntoa in -ldnet" >&5 1856ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1857if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1858 echo $ac_n "(cached) $ac_c" 1>&6 1859else 1860 ac_save_LIBS="$LIBS" 1861LIBS="-ldnet $LIBS" 1862cat > conftest.$ac_ext <<EOF 1863#line 1864 "configure" 1864#include "confdefs.h" 1865/* Override any gcc2 internal prototype to avoid an error. */ 1866/* We use char because int might match the return type of a gcc2 1867 builtin and then its argument prototype would still apply. */ 1868char dnet_ntoa(); 1869 1870int main() { 1871dnet_ntoa() 1872; return 0; } 1873EOF 1874if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1875 rm -rf conftest* 1876 eval "ac_cv_lib_$ac_lib_var=yes" 1877else 1878 echo "configure: failed program was:" >&5 1879 cat conftest.$ac_ext >&5 1880 rm -rf conftest* 1881 eval "ac_cv_lib_$ac_lib_var=no" 1882fi 1883rm -f conftest* 1884LIBS="$ac_save_LIBS" 1885 1886fi 1887if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1888 echo "$ac_t""yes" 1>&6 1889 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 1890else 1891 echo "$ac_t""no" 1>&6 1892fi 1893 1894 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 1895 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 1896echo "configure:1897: checking for dnet_ntoa in -ldnet_stub" >&5 1897ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1899 echo $ac_n "(cached) $ac_c" 1>&6 1900else 1901 ac_save_LIBS="$LIBS" 1902LIBS="-ldnet_stub $LIBS" 1903cat > conftest.$ac_ext <<EOF 1904#line 1905 "configure" 1905#include "confdefs.h" 1906/* Override any gcc2 internal prototype to avoid an error. */ 1907/* We use char because int might match the return type of a gcc2 1908 builtin and then its argument prototype would still apply. */ 1909char dnet_ntoa(); 1910 1911int main() { 1912dnet_ntoa() 1913; return 0; } 1914EOF 1915if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1916 rm -rf conftest* 1917 eval "ac_cv_lib_$ac_lib_var=yes" 1918else 1919 echo "configure: failed program was:" >&5 1920 cat conftest.$ac_ext >&5 1921 rm -rf conftest* 1922 eval "ac_cv_lib_$ac_lib_var=no" 1923fi 1924rm -f conftest* 1925LIBS="$ac_save_LIBS" 1926 1927fi 1928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1929 echo "$ac_t""yes" 1>&6 1930 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 1931else 1932 echo "$ac_t""no" 1>&6 1933fi 1934 1935 fi 1936 1937 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 1938 # to get the SysV transport functions. 1939 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 1940 # needs -lnsl. 1941 # The nsl library prevents programs from opening the X display 1942 # on Irix 5.2, according to dickey@clark.net. 1943 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1944echo "configure:1945: checking for gethostbyname" >&5 1945if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1946 echo $ac_n "(cached) $ac_c" 1>&6 1947else 1948 cat > conftest.$ac_ext <<EOF 1949#line 1950 "configure" 1950#include "confdefs.h" 1951/* System header to define __stub macros and hopefully few prototypes, 1952 which can conflict with char gethostbyname(); below. */ 1953#include <assert.h> 1954/* Override any gcc2 internal prototype to avoid an error. */ 1955/* We use char because int might match the return type of a gcc2 1956 builtin and then its argument prototype would still apply. */ 1957char gethostbyname(); 1958 1959int main() { 1960 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1965choke me 1966#else 1967gethostbyname(); 1968#endif 1969 1970; return 0; } 1971EOF 1972if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1973 rm -rf conftest* 1974 eval "ac_cv_func_gethostbyname=yes" 1975else 1976 echo "configure: failed program was:" >&5 1977 cat conftest.$ac_ext >&5 1978 rm -rf conftest* 1979 eval "ac_cv_func_gethostbyname=no" 1980fi 1981rm -f conftest* 1982fi 1983 1984if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1985 echo "$ac_t""yes" 1>&6 1986 : 1987else 1988 echo "$ac_t""no" 1>&6 1989fi 1990 1991 if test $ac_cv_func_gethostbyname = no; then 1992 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1993echo "configure:1994: checking for gethostbyname in -lnsl" >&5 1994ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1996 echo $ac_n "(cached) $ac_c" 1>&6 1997else 1998 ac_save_LIBS="$LIBS" 1999LIBS="-lnsl $LIBS" 2000cat > conftest.$ac_ext <<EOF 2001#line 2002 "configure" 2002#include "confdefs.h" 2003/* Override any gcc2 internal prototype to avoid an error. */ 2004/* We use char because int might match the return type of a gcc2 2005 builtin and then its argument prototype would still apply. */ 2006char gethostbyname(); 2007 2008int main() { 2009gethostbyname() 2010; return 0; } 2011EOF 2012if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2013 rm -rf conftest* 2014 eval "ac_cv_lib_$ac_lib_var=yes" 2015else 2016 echo "configure: failed program was:" >&5 2017 cat conftest.$ac_ext >&5 2018 rm -rf conftest* 2019 eval "ac_cv_lib_$ac_lib_var=no" 2020fi 2021rm -f conftest* 2022LIBS="$ac_save_LIBS" 2023 2024fi 2025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2026 echo "$ac_t""yes" 1>&6 2027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 2028else 2029 echo "$ac_t""no" 1>&6 2030fi 2031 2032 fi 2033 2034 # lieder@skyler.mavd.honeywell.com says without -lsocket, 2035 # socket/setsockopt and other routines are undefined under SCO ODT 2036 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 2037 # on later versions), says simon@lia.di.epfl.ch: it contains 2038 # gethostby* variants that don't use the nameserver (or something). 2039 # -lsocket must be given before -lnsl if both are needed. 2040 # We assume that if connect needs -lnsl, so does gethostbyname. 2041 echo $ac_n "checking for connect""... $ac_c" 1>&6 2042echo "configure:2043: checking for connect" >&5 2043if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 2044 echo $ac_n "(cached) $ac_c" 1>&6 2045else 2046 cat > conftest.$ac_ext <<EOF 2047#line 2048 "configure" 2048#include "confdefs.h" 2049/* System header to define __stub macros and hopefully few prototypes, 2050 which can conflict with char connect(); below. */ 2051#include <assert.h> 2052/* Override any gcc2 internal prototype to avoid an error. */ 2053/* We use char because int might match the return type of a gcc2 2054 builtin and then its argument prototype would still apply. */ 2055char connect(); 2056 2057int main() { 2058 2059/* The GNU C library defines this for functions which it implements 2060 to always fail with ENOSYS. Some functions are actually named 2061 something starting with __ and the normal name is an alias. */ 2062#if defined (__stub_connect) || defined (__stub___connect) 2063choke me 2064#else 2065connect(); 2066#endif 2067 2068; return 0; } 2069EOF 2070if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2071 rm -rf conftest* 2072 eval "ac_cv_func_connect=yes" 2073else 2074 echo "configure: failed program was:" >&5 2075 cat conftest.$ac_ext >&5 2076 rm -rf conftest* 2077 eval "ac_cv_func_connect=no" 2078fi 2079rm -f conftest* 2080fi 2081 2082if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 2083 echo "$ac_t""yes" 1>&6 2084 : 2085else 2086 echo "$ac_t""no" 1>&6 2087fi 2088 2089 if test $ac_cv_func_connect = no; then 2090 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 2091echo "configure:2092: checking for connect in -lsocket" >&5 2092ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 2093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2094 echo $ac_n "(cached) $ac_c" 1>&6 2095else 2096 ac_save_LIBS="$LIBS" 2097LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 2098cat > conftest.$ac_ext <<EOF 2099#line 2100 "configure" 2100#include "confdefs.h" 2101/* Override any gcc2 internal prototype to avoid an error. */ 2102/* We use char because int might match the return type of a gcc2 2103 builtin and then its argument prototype would still apply. */ 2104char connect(); 2105 2106int main() { 2107connect() 2108; return 0; } 2109EOF 2110if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2111 rm -rf conftest* 2112 eval "ac_cv_lib_$ac_lib_var=yes" 2113else 2114 echo "configure: failed program was:" >&5 2115 cat conftest.$ac_ext >&5 2116 rm -rf conftest* 2117 eval "ac_cv_lib_$ac_lib_var=no" 2118fi 2119rm -f conftest* 2120LIBS="$ac_save_LIBS" 2121 2122fi 2123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2124 echo "$ac_t""yes" 1>&6 2125 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 2126else 2127 echo "$ac_t""no" 1>&6 2128fi 2129 2130 fi 2131 2132 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 2133 echo $ac_n "checking for remove""... $ac_c" 1>&6 2134echo "configure:2135: checking for remove" >&5 2135if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137else 2138 cat > conftest.$ac_ext <<EOF 2139#line 2140 "configure" 2140#include "confdefs.h" 2141/* System header to define __stub macros and hopefully few prototypes, 2142 which can conflict with char remove(); below. */ 2143#include <assert.h> 2144/* Override any gcc2 internal prototype to avoid an error. */ 2145/* We use char because int might match the return type of a gcc2 2146 builtin and then its argument prototype would still apply. */ 2147char remove(); 2148 2149int main() { 2150 2151/* The GNU C library defines this for functions which it implements 2152 to always fail with ENOSYS. Some functions are actually named 2153 something starting with __ and the normal name is an alias. */ 2154#if defined (__stub_remove) || defined (__stub___remove) 2155choke me 2156#else 2157remove(); 2158#endif 2159 2160; return 0; } 2161EOF 2162if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2163 rm -rf conftest* 2164 eval "ac_cv_func_remove=yes" 2165else 2166 echo "configure: failed program was:" >&5 2167 cat conftest.$ac_ext >&5 2168 rm -rf conftest* 2169 eval "ac_cv_func_remove=no" 2170fi 2171rm -f conftest* 2172fi 2173 2174if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 2175 echo "$ac_t""yes" 1>&6 2176 : 2177else 2178 echo "$ac_t""no" 1>&6 2179fi 2180 2181 if test $ac_cv_func_remove = no; then 2182 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 2183echo "configure:2184: checking for remove in -lposix" >&5 2184ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 2185if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2186 echo $ac_n "(cached) $ac_c" 1>&6 2187else 2188 ac_save_LIBS="$LIBS" 2189LIBS="-lposix $LIBS" 2190cat > conftest.$ac_ext <<EOF 2191#line 2192 "configure" 2192#include "confdefs.h" 2193/* Override any gcc2 internal prototype to avoid an error. */ 2194/* We use char because int might match the return type of a gcc2 2195 builtin and then its argument prototype would still apply. */ 2196char remove(); 2197 2198int main() { 2199remove() 2200; return 0; } 2201EOF 2202if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2203 rm -rf conftest* 2204 eval "ac_cv_lib_$ac_lib_var=yes" 2205else 2206 echo "configure: failed program was:" >&5 2207 cat conftest.$ac_ext >&5 2208 rm -rf conftest* 2209 eval "ac_cv_lib_$ac_lib_var=no" 2210fi 2211rm -f conftest* 2212LIBS="$ac_save_LIBS" 2213 2214fi 2215if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2216 echo "$ac_t""yes" 1>&6 2217 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 2218else 2219 echo "$ac_t""no" 1>&6 2220fi 2221 2222 fi 2223 2224 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 2225 echo $ac_n "checking for shmat""... $ac_c" 1>&6 2226echo "configure:2227: checking for shmat" >&5 2227if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 2228 echo $ac_n "(cached) $ac_c" 1>&6 2229else 2230 cat > conftest.$ac_ext <<EOF 2231#line 2232 "configure" 2232#include "confdefs.h" 2233/* System header to define __stub macros and hopefully few prototypes, 2234 which can conflict with char shmat(); below. */ 2235#include <assert.h> 2236/* Override any gcc2 internal prototype to avoid an error. */ 2237/* We use char because int might match the return type of a gcc2 2238 builtin and then its argument prototype would still apply. */ 2239char shmat(); 2240 2241int main() { 2242 2243/* The GNU C library defines this for functions which it implements 2244 to always fail with ENOSYS. Some functions are actually named 2245 something starting with __ and the normal name is an alias. */ 2246#if defined (__stub_shmat) || defined (__stub___shmat) 2247choke me 2248#else 2249shmat(); 2250#endif 2251 2252; return 0; } 2253EOF 2254if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2255 rm -rf conftest* 2256 eval "ac_cv_func_shmat=yes" 2257else 2258 echo "configure: failed program was:" >&5 2259 cat conftest.$ac_ext >&5 2260 rm -rf conftest* 2261 eval "ac_cv_func_shmat=no" 2262fi 2263rm -f conftest* 2264fi 2265 2266if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 2267 echo "$ac_t""yes" 1>&6 2268 : 2269else 2270 echo "$ac_t""no" 1>&6 2271fi 2272 2273 if test $ac_cv_func_shmat = no; then 2274 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 2275echo "configure:2276: checking for shmat in -lipc" >&5 2276ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 2277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2278 echo $ac_n "(cached) $ac_c" 1>&6 2279else 2280 ac_save_LIBS="$LIBS" 2281LIBS="-lipc $LIBS" 2282cat > conftest.$ac_ext <<EOF 2283#line 2284 "configure" 2284#include "confdefs.h" 2285/* Override any gcc2 internal prototype to avoid an error. */ 2286/* We use char because int might match the return type of a gcc2 2287 builtin and then its argument prototype would still apply. */ 2288char shmat(); 2289 2290int main() { 2291shmat() 2292; return 0; } 2293EOF 2294if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2295 rm -rf conftest* 2296 eval "ac_cv_lib_$ac_lib_var=yes" 2297else 2298 echo "configure: failed program was:" >&5 2299 cat conftest.$ac_ext >&5 2300 rm -rf conftest* 2301 eval "ac_cv_lib_$ac_lib_var=no" 2302fi 2303rm -f conftest* 2304LIBS="$ac_save_LIBS" 2305 2306fi 2307if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2308 echo "$ac_t""yes" 1>&6 2309 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 2310else 2311 echo "$ac_t""no" 1>&6 2312fi 2313 2314 fi 2315 fi 2316 2317 # Check for libraries that X11R6 Xt/Xaw programs need. 2318 ac_save_LDFLAGS="$LDFLAGS" 2319 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 2320 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 2321 # check for ICE first), but we must link in the order -lSM -lICE or 2322 # we get undefined symbols. So assume we have SM if we have ICE. 2323 # These have to be linked with before -lX11, unlike the other 2324 # libraries we check for below, so use a different variable. 2325 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 2326 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 2327echo "configure:2328: checking for IceConnectionNumber in -lICE" >&5 2328ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 2329if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2330 echo $ac_n "(cached) $ac_c" 1>&6 2331else 2332 ac_save_LIBS="$LIBS" 2333LIBS="-lICE $X_EXTRA_LIBS $LIBS" 2334cat > conftest.$ac_ext <<EOF 2335#line 2336 "configure" 2336#include "confdefs.h" 2337/* Override any gcc2 internal prototype to avoid an error. */ 2338/* We use char because int might match the return type of a gcc2 2339 builtin and then its argument prototype would still apply. */ 2340char IceConnectionNumber(); 2341 2342int main() { 2343IceConnectionNumber() 2344; return 0; } 2345EOF 2346if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2347 rm -rf conftest* 2348 eval "ac_cv_lib_$ac_lib_var=yes" 2349else 2350 echo "configure: failed program was:" >&5 2351 cat conftest.$ac_ext >&5 2352 rm -rf conftest* 2353 eval "ac_cv_lib_$ac_lib_var=no" 2354fi 2355rm -f conftest* 2356LIBS="$ac_save_LIBS" 2357 2358fi 2359if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2360 echo "$ac_t""yes" 1>&6 2361 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 2362else 2363 echo "$ac_t""no" 1>&6 2364fi 2365 2366 LDFLAGS="$ac_save_LDFLAGS" 2367 2368fi 2369 2370 for ac_hdr in X11/extensions/XShm.h 2371do 2372ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2373echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2374echo "configure:2375: checking for $ac_hdr" >&5 2375if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2376 echo $ac_n "(cached) $ac_c" 1>&6 2377else 2378 cat > conftest.$ac_ext <<EOF 2379#line 2380 "configure" 2380#include "confdefs.h" 2381#include <$ac_hdr> 2382EOF 2383ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2384{ (eval echo configure:2385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2385ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2386if test -z "$ac_err"; then 2387 rm -rf conftest* 2388 eval "ac_cv_header_$ac_safe=yes" 2389else 2390 echo "$ac_err" >&5 2391 echo "configure: failed program was:" >&5 2392 cat conftest.$ac_ext >&5 2393 rm -rf conftest* 2394 eval "ac_cv_header_$ac_safe=no" 2395fi 2396rm -f conftest* 2397fi 2398if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2399 echo "$ac_t""yes" 1>&6 2400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2401 cat >> confdefs.h <<EOF 2402#define $ac_tr_hdr 1 2403EOF 2404 2405else 2406 echo "$ac_t""no" 1>&6 2407fi 2408done 2409 2410 2411 if test "${ac_cv_header_X11_extensions_XShm_h}" = "yes"; then 2412 CFLAGS="${CFLAGS} -DMITSHM" 2413 X_LIBS="${X_LIBS} -lXext -lX11" 2414 else 2415 X_LIBS="${X_LIBS} -lX11" 2416 fi 2417 2418 fi 2419fi 2420 2421 2422 2423echo "checking for sound support" 1>&6 2424echo "configure:2425: checking for sound support" >&5 2425SOUND_DRIVER="dummy" 2426if test "${with_sdl}" = "yes"; then 2427 SOUND_DRIVER="sdl" 2428else case ${target_os} in 2429linux*) 2430 case ${target_cpu} in 2431 sparc) 2432 SOUND_DRIVER="bsd" 2433 ;; 2434 i*86|powerpc|alpha*) 2435 for ac_hdr in sys/soundcard.h 2436do 2437ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2438echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2439echo "configure:2440: checking for $ac_hdr" >&5 2440if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2441 echo $ac_n "(cached) $ac_c" 1>&6 2442else 2443 cat > conftest.$ac_ext <<EOF 2444#line 2445 "configure" 2445#include "confdefs.h" 2446#include <$ac_hdr> 2447EOF 2448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2449{ (eval echo configure:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2451if test -z "$ac_err"; then 2452 rm -rf conftest* 2453 eval "ac_cv_header_$ac_safe=yes" 2454else 2455 echo "$ac_err" >&5 2456 echo "configure: failed program was:" >&5 2457 cat conftest.$ac_ext >&5 2458 rm -rf conftest* 2459 eval "ac_cv_header_$ac_safe=no" 2460fi 2461rm -f conftest* 2462fi 2463if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2464 echo "$ac_t""yes" 1>&6 2465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2466 cat >> confdefs.h <<EOF 2467#define $ac_tr_hdr 1 2468EOF 2469 2470else 2471 echo "$ac_t""no" 1>&6 2472fi 2473done 2474 2475 for ac_hdr in sys/asoundlib.h 2476do 2477ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2478echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2479echo "configure:2480: checking for $ac_hdr" >&5 2480if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2481 echo $ac_n "(cached) $ac_c" 1>&6 2482else 2483 cat > conftest.$ac_ext <<EOF 2484#line 2485 "configure" 2485#include "confdefs.h" 2486#include <$ac_hdr> 2487EOF 2488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2489{ (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2491if test -z "$ac_err"; then 2492 rm -rf conftest* 2493 eval "ac_cv_header_$ac_safe=yes" 2494else 2495 echo "$ac_err" >&5 2496 echo "configure: failed program was:" >&5 2497 cat conftest.$ac_ext >&5 2498 rm -rf conftest* 2499 eval "ac_cv_header_$ac_safe=no" 2500fi 2501rm -f conftest* 2502fi 2503if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2504 echo "$ac_t""yes" 1>&6 2505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2506 cat >> confdefs.h <<EOF 2507#define $ac_tr_hdr 1 2508EOF 2509 2510else 2511 echo "$ac_t""no" 1>&6 2512fi 2513done 2514 2515 if test "${ac_cv_header_sys_soundcard_h}" = "yes" -a \ 2516 "${with_alsa}" != "yes"; then 2517 SOUND_DRIVER="oss" 2518 elif test "${ac_cv_header_sys_asoundlib_h}" = "yes"; then 2519 SOUND_DRIVER="alsa" 2520 echo $ac_n "checking for snd_pcm_open in -lasound""... $ac_c" 1>&6 2521echo "configure:2522: checking for snd_pcm_open in -lasound" >&5 2522ac_lib_var=`echo asound'_'snd_pcm_open | sed 'y%./+-%__p_%'` 2523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2524 echo $ac_n "(cached) $ac_c" 1>&6 2525else 2526 ac_save_LIBS="$LIBS" 2527LIBS="-lasound $LIBS" 2528cat > conftest.$ac_ext <<EOF 2529#line 2530 "configure" 2530#include "confdefs.h" 2531/* Override any gcc2 internal prototype to avoid an error. */ 2532/* We use char because int might match the return type of a gcc2 2533 builtin and then its argument prototype would still apply. */ 2534char snd_pcm_open(); 2535 2536int main() { 2537snd_pcm_open() 2538; return 0; } 2539EOF 2540if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2541 rm -rf conftest* 2542 eval "ac_cv_lib_$ac_lib_var=yes" 2543else 2544 echo "configure: failed program was:" >&5 2545 cat conftest.$ac_ext >&5 2546 rm -rf conftest* 2547 eval "ac_cv_lib_$ac_lib_var=no" 2548fi 2549rm -f conftest* 2550LIBS="$ac_save_LIBS" 2551 2552fi 2553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2554 echo "$ac_t""yes" 1>&6 2555 ac_tr_lib=HAVE_LIB`echo asound | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2557 cat >> confdefs.h <<EOF 2558#define $ac_tr_lib 1 2559EOF 2560 2561 LIBS="-lasound $LIBS" 2562 2563else 2564 echo "$ac_t""no" 1>&6 2565fi 2566 2567 fi 2568 ;; 2569 esac 2570 ;; 2571freebsd*) 2572 SOUND_DRIVER="freebsd" 2573 LIBS="${LIBS} -pthread" 2574 ;; 2575nto*) 2576 for ac_hdr in sys/asoundlib.h 2577do 2578ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2579echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2580echo "configure:2581: checking for $ac_hdr" >&5 2581if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2582 echo $ac_n "(cached) $ac_c" 1>&6 2583else 2584 cat > conftest.$ac_ext <<EOF 2585#line 2586 "configure" 2586#include "confdefs.h" 2587#include <$ac_hdr> 2588EOF 2589ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2590{ (eval echo configure:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2591ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2592if test -z "$ac_err"; then 2593 rm -rf conftest* 2594 eval "ac_cv_header_$ac_safe=yes" 2595else 2596 echo "$ac_err" >&5 2597 echo "configure: failed program was:" >&5 2598 cat conftest.$ac_ext >&5 2599 rm -rf conftest* 2600 eval "ac_cv_header_$ac_safe=no" 2601fi 2602rm -f conftest* 2603fi 2604if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2605 echo "$ac_t""yes" 1>&6 2606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2607 cat >> confdefs.h <<EOF 2608#define $ac_tr_hdr 1 2609EOF 2610 2611else 2612 echo "$ac_t""no" 1>&6 2613fi 2614done 2615 2616 SOUND_DRIVER="qnx" 2617 ;; 2618hpux*) 2619 for ac_hdr in sys/audio.h 2620do 2621ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2622echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2623echo "configure:2624: checking for $ac_hdr" >&5 2624if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2625 echo $ac_n "(cached) $ac_c" 1>&6 2626else 2627 cat > conftest.$ac_ext <<EOF 2628#line 2629 "configure" 2629#include "confdefs.h" 2630#include <$ac_hdr> 2631EOF 2632ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2633{ (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2634ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2635if test -z "$ac_err"; then 2636 rm -rf conftest* 2637 eval "ac_cv_header_$ac_safe=yes" 2638else 2639 echo "$ac_err" >&5 2640 echo "configure: failed program was:" >&5 2641 cat conftest.$ac_ext >&5 2642 rm -rf conftest* 2643 eval "ac_cv_header_$ac_safe=no" 2644fi 2645rm -f conftest* 2646fi 2647if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2648 echo "$ac_t""yes" 1>&6 2649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2650 cat >> confdefs.h <<EOF 2651#define $ac_tr_hdr 1 2652EOF 2653 2654else 2655 echo "$ac_t""no" 1>&6 2656fi 2657done 2658 2659 if test "${ac_cv_header_sys_audio_h}" = "yes"; then 2660 SOUND_DRIVER="hpux" 2661 fi 2662 ;; 2663solaris*) 2664 for ac_hdr in sys/audioio.h 2665do 2666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2668echo "configure:2669: checking for $ac_hdr" >&5 2669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2670 echo $ac_n "(cached) $ac_c" 1>&6 2671else 2672 cat > conftest.$ac_ext <<EOF 2673#line 2674 "configure" 2674#include "confdefs.h" 2675#include <$ac_hdr> 2676EOF 2677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2678{ (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2680if test -z "$ac_err"; then 2681 rm -rf conftest* 2682 eval "ac_cv_header_$ac_safe=yes" 2683else 2684 echo "$ac_err" >&5 2685 echo "configure: failed program was:" >&5 2686 cat conftest.$ac_ext >&5 2687 rm -rf conftest* 2688 eval "ac_cv_header_$ac_safe=no" 2689fi 2690rm -f conftest* 2691fi 2692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2693 echo "$ac_t""yes" 1>&6 2694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2695 cat >> confdefs.h <<EOF 2696#define $ac_tr_hdr 1 2697EOF 2698 2699else 2700 echo "$ac_t""no" 1>&6 2701fi 2702done 2703 2704 if test "${ac_cv_header_sys_audioio_h}" = "yes"; then 2705 SOUND_DRIVER="solaris" 2706 fi 2707 ;; 2708netbsd*|openbsd*) 2709 for ac_hdr in sys/audioio.h sys/audio.h 2710do 2711ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2712echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2713echo "configure:2714: checking for $ac_hdr" >&5 2714if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2715 echo $ac_n "(cached) $ac_c" 1>&6 2716else 2717 cat > conftest.$ac_ext <<EOF 2718#line 2719 "configure" 2719#include "confdefs.h" 2720#include <$ac_hdr> 2721EOF 2722ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2723{ (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2724ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2725if test -z "$ac_err"; then 2726 rm -rf conftest* 2727 eval "ac_cv_header_$ac_safe=yes" 2728else 2729 echo "$ac_err" >&5 2730 echo "configure: failed program was:" >&5 2731 cat conftest.$ac_ext >&5 2732 rm -rf conftest* 2733 eval "ac_cv_header_$ac_safe=no" 2734fi 2735rm -f conftest* 2736fi 2737if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2738 echo "$ac_t""yes" 1>&6 2739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2740 cat >> confdefs.h <<EOF 2741#define $ac_tr_hdr 1 2742EOF 2743 2744else 2745 echo "$ac_t""no" 1>&6 2746fi 2747done 2748 2749 if test "${ac_cv_header_sys_audioio_h}" = "yes"; then 2750 SOUND_DRIVER="bsd" 2751 fi 2752 if test "${ac_cv_header_sys_audio_h}" = "yes"; then 2753 SOUND_DRIVER="bsd" 2754 fi 2755 ;; 2756irix*) 2757 for ac_hdr in dmedia/audio.h 2758do 2759ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2760echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2761echo "configure:2762: checking for $ac_hdr" >&5 2762if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2763 echo $ac_n "(cached) $ac_c" 1>&6 2764else 2765 cat > conftest.$ac_ext <<EOF 2766#line 2767 "configure" 2767#include "confdefs.h" 2768#include <$ac_hdr> 2769EOF 2770ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2771{ (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2772ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2773if test -z "$ac_err"; then 2774 rm -rf conftest* 2775 eval "ac_cv_header_$ac_safe=yes" 2776else 2777 echo "$ac_err" >&5 2778 echo "configure: failed program was:" >&5 2779 cat conftest.$ac_ext >&5 2780 rm -rf conftest* 2781 eval "ac_cv_header_$ac_safe=no" 2782fi 2783rm -f conftest* 2784fi 2785if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2786 echo "$ac_t""yes" 1>&6 2787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2788 cat >> confdefs.h <<EOF 2789#define $ac_tr_hdr 1 2790EOF 2791 2792else 2793 echo "$ac_t""no" 1>&6 2794fi 2795done 2796 2797 if test "${ac_cv_header_dmedia_audio_h}" = "yes"; then 2798 SOUND_DRIVER="sgi" 2799 LIBS="${LIBS} -laudio" 2800 fi 2801 ;; 2802cygwin*) 2803 LDFLAGS="${LDFLAGS} -Wl,--subsystem,windows,-e,_mainCRTStartup" 2804 LIBS="-lwinmm ${LIBS}" 2805 SOUND_DRIVER="win32" 2806 ;; 2807amiga*) 2808 LIBS="${LIBS}" 2809 SOUND_DRIVER="amiga" 2810 ;; 2811*) 2812 SOUND_DRIVER="dummy" 2813 ;; 2814esac 2815fi 2816 2817case "${SOUND_DRIVER}" in 2818dummy|win32|sdl|freebsd|qnx|amiga) 2819 ;; 2820*) 2821 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 2822echo "configure:2823: checking for pthread_create in -lpthread" >&5 2823ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` 2824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2825 echo $ac_n "(cached) $ac_c" 1>&6 2826else 2827 ac_save_LIBS="$LIBS" 2828LIBS="-lpthread $LIBS" 2829cat > conftest.$ac_ext <<EOF 2830#line 2831 "configure" 2831#include "confdefs.h" 2832/* Override any gcc2 internal prototype to avoid an error. */ 2833/* We use char because int might match the return type of a gcc2 2834 builtin and then its argument prototype would still apply. */ 2835char pthread_create(); 2836 2837int main() { 2838pthread_create() 2839; return 0; } 2840EOF 2841if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2842 rm -rf conftest* 2843 eval "ac_cv_lib_$ac_lib_var=yes" 2844else 2845 echo "configure: failed program was:" >&5 2846 cat conftest.$ac_ext >&5 2847 rm -rf conftest* 2848 eval "ac_cv_lib_$ac_lib_var=no" 2849fi 2850rm -f conftest* 2851LIBS="$ac_save_LIBS" 2852 2853fi 2854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2855 echo "$ac_t""yes" 1>&6 2856 2857 CFLAGS="${CFLAGS} -D_REENTRANT" 2858 LIBS="-lpthread ${LIBS}" 2859 2860else 2861 echo "$ac_t""no" 1>&6 2862 2863 SOUND_DRIVER="dummy" 2864 2865fi 2866 2867 ;; 2868esac 2869 2870case "${target_os}" in 2871nto*) 2872 if test "${ac_cv_header_sys_asoundlib_h}" = "yes"; then 2873 SOUND_DRIVER="alsa" 2874 echo $ac_n "checking for snd_pcm_open in -lasound""... $ac_c" 1>&6 2875echo "configure:2876: checking for snd_pcm_open in -lasound" >&5 2876ac_lib_var=`echo asound'_'snd_pcm_open | sed 'y%./+-%__p_%'` 2877if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2878 echo $ac_n "(cached) $ac_c" 1>&6 2879else 2880 ac_save_LIBS="$LIBS" 2881LIBS="-lasound $LIBS" 2882cat > conftest.$ac_ext <<EOF 2883#line 2884 "configure" 2884#include "confdefs.h" 2885/* Override any gcc2 internal prototype to avoid an error. */ 2886/* We use char because int might match the return type of a gcc2 2887 builtin and then its argument prototype would still apply. */ 2888char snd_pcm_open(); 2889 2890int main() { 2891snd_pcm_open() 2892; return 0; } 2893EOF 2894if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2895 rm -rf conftest* 2896 eval "ac_cv_lib_$ac_lib_var=yes" 2897else 2898 echo "configure: failed program was:" >&5 2899 cat conftest.$ac_ext >&5 2900 rm -rf conftest* 2901 eval "ac_cv_lib_$ac_lib_var=no" 2902fi 2903rm -f conftest* 2904LIBS="$ac_save_LIBS" 2905 2906fi 2907if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2908 echo "$ac_t""yes" 1>&6 2909 ac_tr_lib=HAVE_LIB`echo asound | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2910 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2911 cat >> confdefs.h <<EOF 2912#define $ac_tr_lib 1 2913EOF 2914 2915 LIBS="-lasound $LIBS" 2916 2917else 2918 echo "$ac_t""no" 1>&6 2919fi 2920 2921 fi 2922 ;; 2923esac 2924 2925 2926echo "checking for file globbing support" 1>&6 2927echo "configure:2928: checking for file globbing support" >&5 2928FILEIO_DRIVER="unix" 2929echo $ac_n "checking for _dos_findfirst""... $ac_c" 1>&6 2930echo "configure:2931: checking for _dos_findfirst" >&5 2931if eval "test \"`echo '$''{'ac_cv_func__dos_findfirst'+set}'`\" = set"; then 2932 echo $ac_n "(cached) $ac_c" 1>&6 2933else 2934 cat > conftest.$ac_ext <<EOF 2935#line 2936 "configure" 2936#include "confdefs.h" 2937/* System header to define __stub macros and hopefully few prototypes, 2938 which can conflict with char _dos_findfirst(); below. */ 2939#include <assert.h> 2940/* Override any gcc2 internal prototype to avoid an error. */ 2941/* We use char because int might match the return type of a gcc2 2942 builtin and then its argument prototype would still apply. */ 2943char _dos_findfirst(); 2944 2945int main() { 2946 2947/* The GNU C library defines this for functions which it implements 2948 to always fail with ENOSYS. Some functions are actually named 2949 something starting with __ and the normal name is an alias. */ 2950#if defined (__stub__dos_findfirst) || defined (__stub____dos_findfirst) 2951choke me 2952#else 2953_dos_findfirst(); 2954#endif 2955 2956; return 0; } 2957EOF 2958if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2959 rm -rf conftest* 2960 eval "ac_cv_func__dos_findfirst=yes" 2961else 2962 echo "configure: failed program was:" >&5 2963 cat conftest.$ac_ext >&5 2964 rm -rf conftest* 2965 eval "ac_cv_func__dos_findfirst=no" 2966fi 2967rm -f conftest* 2968fi 2969 2970if eval "test \"`echo '$ac_cv_func_'_dos_findfirst`\" = yes"; then 2971 echo "$ac_t""yes" 1>&6 2972 FILEIO_DRIVER="msdos" 2973else 2974 echo "$ac_t""no" 1>&6 2975fi 2976 2977echo $ac_n "checking for _findfirst""... $ac_c" 1>&6 2978echo "configure:2979: checking for _findfirst" >&5 2979if eval "test \"`echo '$''{'ac_cv_func__findfirst'+set}'`\" = set"; then 2980 echo $ac_n "(cached) $ac_c" 1>&6 2981else 2982 cat > conftest.$ac_ext <<EOF 2983#line 2984 "configure" 2984#include "confdefs.h" 2985/* System header to define __stub macros and hopefully few prototypes, 2986 which can conflict with char _findfirst(); below. */ 2987#include <assert.h> 2988/* Override any gcc2 internal prototype to avoid an error. */ 2989/* We use char because int might match the return type of a gcc2 2990 builtin and then its argument prototype would still apply. */ 2991char _findfirst(); 2992 2993int main() { 2994 2995/* The GNU C library defines this for functions which it implements 2996 to always fail with ENOSYS. Some functions are actually named 2997 something starting with __ and the normal name is an alias. */ 2998#if defined (__stub__findfirst) || defined (__stub____findfirst) 2999choke me 3000#else 3001_findfirst(); 3002#endif 3003 3004; return 0; } 3005EOF 3006if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3007 rm -rf conftest* 3008 eval "ac_cv_func__findfirst=yes" 3009else 3010 echo "configure: failed program was:" >&5 3011 cat conftest.$ac_ext >&5 3012 rm -rf conftest* 3013 eval "ac_cv_func__findfirst=no" 3014fi 3015rm -f conftest* 3016fi 3017 3018if eval "test \"`echo '$ac_cv_func_'_findfirst`\" = yes"; then 3019 echo "$ac_t""yes" 1>&6 3020 FILEIO_DRIVER="win32" 3021else 3022 echo "$ac_t""no" 1>&6 3023fi 3024 3025 3026 3027 3028echo $ac_n "checking for working const""... $ac_c" 1>&6 3029echo "configure:3030: checking for working const" >&5 3030if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3031 echo $ac_n "(cached) $ac_c" 1>&6 3032else 3033 cat > conftest.$ac_ext <<EOF 3034#line 3035 "configure" 3035#include "confdefs.h" 3036 3037int main() { 3038 3039/* Ultrix mips cc rejects this. */ 3040typedef int charset[2]; const charset x; 3041/* SunOS 4.1.1 cc rejects this. */ 3042char const *const *ccp; 3043char **p; 3044/* NEC SVR4.0.2 mips cc rejects this. */ 3045struct point {int x, y;}; 3046static struct point const zero = {0,0}; 3047/* AIX XL C 1.02.0.0 rejects this. 3048 It does not let you subtract one const X* pointer from another in an arm 3049 of an if-expression whose if-part is not a constant expression */ 3050const char *g = "string"; 3051ccp = &g + (g ? g-g : 0); 3052/* HPUX 7.0 cc rejects these. */ 3053++ccp; 3054p = (char**) ccp; 3055ccp = (char const *const *) p; 3056{ /* SCO 3.2v4 cc rejects this. */ 3057 char *t; 3058 char const *s = 0 ? (char *) 0 : (char const *) 0; 3059 3060 *t++ = 0; 3061} 3062{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3063 int x[] = {25, 17}; 3064 const int *foo = &x[0]; 3065 ++foo; 3066} 3067{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3068 typedef const int *iptr; 3069 iptr p = 0; 3070 ++p; 3071} 3072{ /* AIX XL C 1.02.0.0 rejects this saying 3073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3074 struct s { int j; const int *ap[3]; }; 3075 struct s *b; b->j = 5; 3076} 3077{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3078 const int foo = 10; 3079} 3080 3081; return 0; } 3082EOF 3083if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3084 rm -rf conftest* 3085 ac_cv_c_const=yes 3086else 3087 echo "configure: failed program was:" >&5 3088 cat conftest.$ac_ext >&5 3089 rm -rf conftest* 3090 ac_cv_c_const=no 3091fi 3092rm -f conftest* 3093fi 3094 3095echo "$ac_t""$ac_cv_c_const" 1>&6 3096if test $ac_cv_c_const = no; then 3097 cat >> confdefs.h <<\EOF 3098#define const 3099EOF 3100 3101fi 3102 3103echo $ac_n "checking for inline""... $ac_c" 1>&6 3104echo "configure:3105: checking for inline" >&5 3105if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 3106 echo $ac_n "(cached) $ac_c" 1>&6 3107else 3108 ac_cv_c_inline=no 3109for ac_kw in inline __inline__ __inline; do 3110 cat > conftest.$ac_ext <<EOF 3111#line 3112 "configure" 3112#include "confdefs.h" 3113 3114int main() { 3115} $ac_kw foo() { 3116; return 0; } 3117EOF 3118if { (eval echo configure:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3119 rm -rf conftest* 3120 ac_cv_c_inline=$ac_kw; break 3121else 3122 echo "configure: failed program was:" >&5 3123 cat conftest.$ac_ext >&5 3124fi 3125rm -f conftest* 3126done 3127 3128fi 3129 3130echo "$ac_t""$ac_cv_c_inline" 1>&6 3131case "$ac_cv_c_inline" in 3132 inline | yes) ;; 3133 no) cat >> confdefs.h <<\EOF 3134#define inline 3135EOF 3136 ;; 3137 *) cat >> confdefs.h <<EOF 3138#define inline $ac_cv_c_inline 3139EOF 3140 ;; 3141esac 3142 3143echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3144echo "configure:3145: checking whether time.h and sys/time.h may both be included" >&5 3145if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 3146 echo $ac_n "(cached) $ac_c" 1>&6 3147else 3148 cat > conftest.$ac_ext <<EOF 3149#line 3150 "configure" 3150#include "confdefs.h" 3151#include <sys/types.h> 3152#include <sys/time.h> 3153#include <time.h> 3154int main() { 3155struct tm *tp; 3156; return 0; } 3157EOF 3158if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3159 rm -rf conftest* 3160 ac_cv_header_time=yes 3161else 3162 echo "configure: failed program was:" >&5 3163 cat conftest.$ac_ext >&5 3164 rm -rf conftest* 3165 ac_cv_header_time=no 3166fi 3167rm -f conftest* 3168fi 3169 3170echo "$ac_t""$ac_cv_header_time" 1>&6 3171if test $ac_cv_header_time = yes; then 3172 cat >> confdefs.h <<\EOF 3173#define TIME_WITH_SYS_TIME 1 3174EOF 3175 3176fi 3177 3178 3179if test "${ac_cv_c_inline}" != "no"; then 3180 CFLAGS="${CFLAGS} -DINLINE=${ac_cv_c_inline}"; \ 3181fi 3182 3183 3184 3185if test $ac_cv_prog_gcc = yes; then 3186 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 3187echo "configure:3188: checking whether ${CC-cc} needs -traditional" >&5 3188if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 3189 echo $ac_n "(cached) $ac_c" 1>&6 3190else 3191 ac_pattern="Autoconf.*'x'" 3192 cat > conftest.$ac_ext <<EOF 3193#line 3194 "configure" 3194#include "confdefs.h" 3195#include <sgtty.h> 3196Autoconf TIOCGETP 3197EOF 3198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3199 egrep "$ac_pattern" >/dev/null 2>&1; then 3200 rm -rf conftest* 3201 ac_cv_prog_gcc_traditional=yes 3202else 3203 rm -rf conftest* 3204 ac_cv_prog_gcc_traditional=no 3205fi 3206rm -f conftest* 3207 3208 3209 if test $ac_cv_prog_gcc_traditional = no; then 3210 cat > conftest.$ac_ext <<EOF 3211#line 3212 "configure" 3212#include "confdefs.h" 3213#include <termio.h> 3214Autoconf TCGETA 3215EOF 3216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3217 egrep "$ac_pattern" >/dev/null 2>&1; then 3218 rm -rf conftest* 3219 ac_cv_prog_gcc_traditional=yes 3220fi 3221rm -f conftest* 3222 3223 fi 3224fi 3225 3226echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 3227 if test $ac_cv_prog_gcc_traditional = yes; then 3228 CC="$CC -traditional" 3229 fi 3230fi 3231 3232echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 3233echo "configure:3234: checking for 8-bit clean memcmp" >&5 3234if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then 3235 echo $ac_n "(cached) $ac_c" 1>&6 3236else 3237 if test "$cross_compiling" = yes; then 3238 ac_cv_func_memcmp_clean=no 3239else 3240 cat > conftest.$ac_ext <<EOF 3241#line 3242 "configure" 3242#include "confdefs.h" 3243 3244main() 3245{ 3246 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 3247 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); 3248} 3249 3250EOF 3251if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3252then 3253 ac_cv_func_memcmp_clean=yes 3254else 3255 echo "configure: failed program was:" >&5 3256 cat conftest.$ac_ext >&5 3257 rm -fr conftest* 3258 ac_cv_func_memcmp_clean=no 3259fi 3260rm -fr conftest* 3261fi 3262 3263fi 3264 3265echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 3266test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" 3267 3268echo $ac_n "checking for vprintf""... $ac_c" 1>&6 3269echo "configure:3270: checking for vprintf" >&5 3270if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 3271 echo $ac_n "(cached) $ac_c" 1>&6 3272else 3273 cat > conftest.$ac_ext <<EOF 3274#line 3275 "configure" 3275#include "confdefs.h" 3276/* System header to define __stub macros and hopefully few prototypes, 3277 which can conflict with char vprintf(); below. */ 3278#include <assert.h> 3279/* Override any gcc2 internal prototype to avoid an error. */ 3280/* We use char because int might match the return type of a gcc2 3281 builtin and then its argument prototype would still apply. */ 3282char vprintf(); 3283 3284int main() { 3285 3286/* The GNU C library defines this for functions which it implements 3287 to always fail with ENOSYS. Some functions are actually named 3288 something starting with __ and the normal name is an alias. */ 3289#if defined (__stub_vprintf) || defined (__stub___vprintf) 3290choke me 3291#else 3292vprintf(); 3293#endif 3294 3295; return 0; } 3296EOF 3297if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3298 rm -rf conftest* 3299 eval "ac_cv_func_vprintf=yes" 3300else 3301 echo "configure: failed program was:" >&5 3302 cat conftest.$ac_ext >&5 3303 rm -rf conftest* 3304 eval "ac_cv_func_vprintf=no" 3305fi 3306rm -f conftest* 3307fi 3308 3309if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 3310 echo "$ac_t""yes" 1>&6 3311 cat >> confdefs.h <<\EOF 3312#define HAVE_VPRINTF 1 3313EOF 3314 3315else 3316 echo "$ac_t""no" 1>&6 3317fi 3318 3319if test "$ac_cv_func_vprintf" != yes; then 3320echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 3321echo "configure:3322: checking for _doprnt" >&5 3322if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 3323 echo $ac_n "(cached) $ac_c" 1>&6 3324else 3325 cat > conftest.$ac_ext <<EOF 3326#line 3327 "configure" 3327#include "confdefs.h" 3328/* System header to define __stub macros and hopefully few prototypes, 3329 which can conflict with char _doprnt(); below. */ 3330#include <assert.h> 3331/* Override any gcc2 internal prototype to avoid an error. */ 3332/* We use char because int might match the return type of a gcc2 3333 builtin and then its argument prototype would still apply. */ 3334char _doprnt(); 3335 3336int main() { 3337 3338/* The GNU C library defines this for functions which it implements 3339 to always fail with ENOSYS. Some functions are actually named 3340 something starting with __ and the normal name is an alias. */ 3341#if defined (__stub__doprnt) || defined (__stub____doprnt) 3342choke me 3343#else 3344_doprnt(); 3345#endif 3346 3347; return 0; } 3348EOF 3349if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3350 rm -rf conftest* 3351 eval "ac_cv_func__doprnt=yes" 3352else 3353 echo "configure: failed program was:" >&5 3354 cat conftest.$ac_ext >&5 3355 rm -rf conftest* 3356 eval "ac_cv_func__doprnt=no" 3357fi 3358rm -f conftest* 3359fi 3360 3361if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 3362 echo "$ac_t""yes" 1>&6 3363 cat >> confdefs.h <<\EOF 3364#define HAVE_DOPRNT 1 3365EOF 3366 3367else 3368 echo "$ac_t""no" 1>&6 3369fi 3370 3371fi 3372 3373for ac_func in vsnprintf gettimeofday getopt_long 3374do 3375echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3376echo "configure:3377: checking for $ac_func" >&5 3377if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3378 echo $ac_n "(cached) $ac_c" 1>&6 3379else 3380 cat > conftest.$ac_ext <<EOF 3381#line 3382 "configure" 3382#include "confdefs.h" 3383/* System header to define __stub macros and hopefully few prototypes, 3384 which can conflict with char $ac_func(); below. */ 3385#include <assert.h> 3386/* Override any gcc2 internal prototype to avoid an error. */ 3387/* We use char because int might match the return type of a gcc2 3388 builtin and then its argument prototype would still apply. */ 3389char $ac_func(); 3390 3391int main() { 3392 3393/* The GNU C library defines this for functions which it implements 3394 to always fail with ENOSYS. Some functions are actually named 3395 something starting with __ and the normal name is an alias. */ 3396#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3397choke me 3398#else 3399$ac_func(); 3400#endif 3401 3402; return 0; } 3403EOF 3404if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3405 rm -rf conftest* 3406 eval "ac_cv_func_$ac_func=yes" 3407else 3408 echo "configure: failed program was:" >&5 3409 cat conftest.$ac_ext >&5 3410 rm -rf conftest* 3411 eval "ac_cv_func_$ac_func=no" 3412fi 3413rm -f conftest* 3414fi 3415 3416if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3417 echo "$ac_t""yes" 1>&6 3418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3419 cat >> confdefs.h <<EOF 3420#define $ac_tr_func 1 3421EOF 3422 3423else 3424 echo "$ac_t""no" 1>&6 3425fi 3426done 3427 3428 3429echo "$ac_t""----------------------------------------------------------" 1>&6 3430echo "$ac_t""using console driver: ${CONSOLE_DRIVER}" 1>&6 3431echo "$ac_t""using sound driver: ${SOUND_DRIVER}" 1>&6 3432echo "$ac_t""using file globbing method: ${FILEIO_DRIVER}" 1>&6 3433echo "$ac_t""cflags: ${CFLAGS}" 1>&6 3434echo "$ac_t""----------------------------------------------------------" 1>&6 3435 3436trap '' 1 2 15 3437cat > confcache <<\EOF 3438# This file is a shell script that caches the results of configure 3439# tests run on this system so they can be shared between configure 3440# scripts and configure runs. It is not useful on other systems. 3441# If it contains results you don't want to keep, you may remove or edit it. 3442# 3443# By default, configure uses ./config.cache as the cache file, 3444# creating it if it does not exist already. You can give configure 3445# the --cache-file=FILE option to use a different cache file; that is 3446# what configure does when it calls configure scripts in 3447# subdirectories, so they share the cache. 3448# Giving --cache-file=/dev/null disables caching, for debugging configure. 3449# config.status only pays attention to the cache file if you give it the 3450# --recheck option to rerun configure. 3451# 3452EOF 3453# The following way of writing the cache mishandles newlines in values, 3454# but we know of no workaround that is simple, portable, and efficient. 3455# So, don't put newlines in cache variables' values. 3456# Ultrix sh set writes to stderr and can't be redirected directly, 3457# and sets the high bit in the cache file unless we assign to the vars. 3458(set) 2>&1 | 3459 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3460 *ac_space=\ *) 3461 # `set' does not quote correctly, so add quotes (double-quote substitution 3462 # turns \\\\ into \\, and sed turns \\ into \). 3463 sed -n \ 3464 -e "s/'/'\\\\''/g" \ 3465 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3466 ;; 3467 *) 3468 # `set' quotes correctly as required by POSIX, so do not add quotes. 3469 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3470 ;; 3471 esac >> confcache 3472if cmp -s $cache_file confcache; then 3473 : 3474else 3475 if test -w $cache_file; then 3476 echo "updating cache $cache_file" 3477 cat confcache > $cache_file 3478 else 3479 echo "not updating unwritable cache $cache_file" 3480 fi 3481fi 3482rm -f confcache 3483 3484trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 3485 3486test "x$prefix" = xNONE && prefix=$ac_default_prefix 3487# Let make expand exec_prefix. 3488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3489 3490# Any assignment to VPATH causes Sun make to only execute 3491# the first set of double-colon rules, so remove it if not needed. 3492# If there is a colon in the path, we need to keep it. 3493if test "x$srcdir" = x.; then 3494 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3495fi 3496 3497trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 3498 3499# Transform confdefs.h into DEFS. 3500# Protect against shell expansion while executing Makefile rules. 3501# Protect against Makefile macro expansion. 3502cat > conftest.defs <<\EOF 3503s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 3504s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 3505s%\[%\\&%g 3506s%\]%\\&%g 3507s%\$%$$%g 3508EOF 3509DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 3510rm -f conftest.defs 3511 3512 3513# Without the "./", some shells look in PATH for config.status. 3514: ${CONFIG_STATUS=./config.status} 3515 3516echo creating $CONFIG_STATUS 3517rm -f $CONFIG_STATUS 3518cat > $CONFIG_STATUS <<EOF 3519#! /bin/sh 3520# Generated automatically by configure. 3521# Run this file to recreate the current configuration. 3522# This directory was configured as follows, 3523# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3524# 3525# $0 $ac_configure_args 3526# 3527# Compiler output produced by configure, useful for debugging 3528# configure, is in ./config.log if it exists. 3529 3530ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3531for ac_option 3532do 3533 case "\$ac_option" in 3534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3535 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3536 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3537 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3538 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3539 exit 0 ;; 3540 -help | --help | --hel | --he | --h) 3541 echo "\$ac_cs_usage"; exit 0 ;; 3542 *) echo "\$ac_cs_usage"; exit 1 ;; 3543 esac 3544done 3545 3546ac_given_srcdir=$srcdir 3547ac_given_INSTALL="$INSTALL" 3548 3549trap 'rm -fr `echo "Rules" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3550EOF 3551cat >> $CONFIG_STATUS <<EOF 3552 3553# Protect against being on the right side of a sed subst in config.status. 3554sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3555 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3556$ac_vpsub 3557$extrasub 3558s%@CONSOLE_DRIVER@%$CONSOLE_DRIVER%g 3559s%@SOUND_DRIVER@%$SOUND_DRIVER%g 3560s%@FILEIO_DRIVER@%$FILEIO_DRIVER%g 3561s%@MAIN_FILE@%$MAIN_FILE%g 3562s%@CROSS_PREFIX@%$CROSS_PREFIX%g 3563s%@SHELL@%$SHELL%g 3564s%@CFLAGS@%$CFLAGS%g 3565s%@CPPFLAGS@%$CPPFLAGS%g 3566s%@CXXFLAGS@%$CXXFLAGS%g 3567s%@FFLAGS@%$FFLAGS%g 3568s%@DEFS@%$DEFS%g 3569s%@LDFLAGS@%$LDFLAGS%g 3570s%@LIBS@%$LIBS%g 3571s%@exec_prefix@%$exec_prefix%g 3572s%@prefix@%$prefix%g 3573s%@program_transform_name@%$program_transform_name%g 3574s%@bindir@%$bindir%g 3575s%@sbindir@%$sbindir%g 3576s%@libexecdir@%$libexecdir%g 3577s%@datadir@%$datadir%g 3578s%@sysconfdir@%$sysconfdir%g 3579s%@sharedstatedir@%$sharedstatedir%g 3580s%@localstatedir@%$localstatedir%g 3581s%@libdir@%$libdir%g 3582s%@includedir@%$includedir%g 3583s%@oldincludedir@%$oldincludedir%g 3584s%@infodir@%$infodir%g 3585s%@mandir@%$mandir%g 3586s%@host@%$host%g 3587s%@host_alias@%$host_alias%g 3588s%@host_cpu@%$host_cpu%g 3589s%@host_vendor@%$host_vendor%g 3590s%@host_os@%$host_os%g 3591s%@CC@%$CC%g 3592s%@CPP@%$CPP%g 3593s%@RANLIB@%$RANLIB%g 3594s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3595s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3596s%@INSTALL_DATA@%$INSTALL_DATA%g 3597s%@SET_MAKE@%$SET_MAKE%g 3598s%@X_CFLAGS@%$X_CFLAGS%g 3599s%@X_PRE_LIBS@%$X_PRE_LIBS%g 3600s%@X_LIBS@%$X_LIBS%g 3601s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 3602s%@LIBOBJS@%$LIBOBJS%g 3603 3604CEOF 3605EOF 3606 3607cat >> $CONFIG_STATUS <<\EOF 3608 3609# Split the substitutions into bite-sized pieces for seds with 3610# small command number limits, like on Digital OSF/1 and HP-UX. 3611ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3612ac_file=1 # Number of current file. 3613ac_beg=1 # First line for current file. 3614ac_end=$ac_max_sed_cmds # Line after last line for current file. 3615ac_more_lines=: 3616ac_sed_cmds="" 3617while $ac_more_lines; do 3618 if test $ac_beg -gt 1; then 3619 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3620 else 3621 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3622 fi 3623 if test ! -s conftest.s$ac_file; then 3624 ac_more_lines=false 3625 rm -f conftest.s$ac_file 3626 else 3627 if test -z "$ac_sed_cmds"; then 3628 ac_sed_cmds="sed -f conftest.s$ac_file" 3629 else 3630 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3631 fi 3632 ac_file=`expr $ac_file + 1` 3633 ac_beg=$ac_end 3634 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3635 fi 3636done 3637if test -z "$ac_sed_cmds"; then 3638 ac_sed_cmds=cat 3639fi 3640EOF 3641 3642cat >> $CONFIG_STATUS <<EOF 3643 3644CONFIG_FILES=\${CONFIG_FILES-"Rules"} 3645EOF 3646cat >> $CONFIG_STATUS <<\EOF 3647for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3649 case "$ac_file" in 3650 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3651 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3652 *) ac_file_in="${ac_file}.in" ;; 3653 esac 3654 3655 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3656 3657 # Remove last slash and all that follows it. Not all systems have dirname. 3658 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3659 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3660 # The file is in a subdirectory. 3661 test ! -d "$ac_dir" && mkdir "$ac_dir" 3662 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3663 # A "../" for each directory in $ac_dir_suffix. 3664 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3665 else 3666 ac_dir_suffix= ac_dots= 3667 fi 3668 3669 case "$ac_given_srcdir" in 3670 .) srcdir=. 3671 if test -z "$ac_dots"; then top_srcdir=. 3672 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3673 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3674 *) # Relative path. 3675 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3676 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3677 esac 3678 3679 case "$ac_given_INSTALL" in 3680 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3681 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 3682 esac 3683 3684 echo creating "$ac_file" 3685 rm -f "$ac_file" 3686 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3687 case "$ac_file" in 3688 *Makefile*) ac_comsub="1i\\ 3689# $configure_input" ;; 3690 *) ac_comsub= ;; 3691 esac 3692 3693 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3694 sed -e "$ac_comsub 3695s%@configure_input@%$configure_input%g 3696s%@srcdir@%$srcdir%g 3697s%@top_srcdir@%$top_srcdir%g 3698s%@INSTALL@%$INSTALL%g 3699" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3700fi; done 3701rm -f conftest.s* 3702 3703EOF 3704cat >> $CONFIG_STATUS <<EOF 3705 3706EOF 3707cat >> $CONFIG_STATUS <<\EOF 3708 3709exit 0 3710EOF 3711chmod +x $CONFIG_STATUS 3712rm -fr confdefs* $ac_clean_files 3713test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3714 3715 3716