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