3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --enable-gl Enable OpenGL mode"
18 --enable-gl-mesa Enable OpenGL mode for Mesa 3d acceleration"
20 --enable-demowad Enable compilation with the demo wadfile"
22 --enable-userconfig Make HHexen store it's config in users' home directories"
24 --disable-assassin Compile HHexen without support for the assassin"
26 # Initialize some variables set by options.
27 # The variables have the same names as the options, with
28 # dashes changed to underlines.
30 cache_file=./config.cache
39 program_transform_name=s,x,x,
47 bindir='${exec_prefix}/bin'
48 sbindir='${exec_prefix}/sbin'
49 libexecdir='${exec_prefix}/libexec'
50 datadir='${prefix}/share'
51 sysconfdir='${prefix}/etc'
52 sharedstatedir='${prefix}/com'
53 localstatedir='${prefix}/var'
54 libdir='${exec_prefix}/lib'
55 includedir='${prefix}/include'
56 oldincludedir='/usr/include'
57 infodir='${prefix}/info'
58 mandir='${prefix}/man'
60 # Initialize some other variables.
63 SHELL=${CONFIG_SHELL-/bin/sh}
64 # Maximum number of lines to put in a shell here document.
71 # If the previous option needs an argument, assign it.
72 if test -n "$ac_prev"; then
73 eval "$ac_prev=\$ac_option"
79 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 # Accept the important Cygnus configure options, so we can diagnose typos.
87 -bindir | --bindir | --bindi | --bind | --bin | --bi)
89 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
90 bindir="$ac_optarg" ;;
92 -build | --build | --buil | --bui | --bu)
94 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 -cache-file | --cache-file | --cache-fil | --cache-fi \
98 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
102 cache_file="$ac_optarg" ;;
104 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108 datadir="$ac_optarg" ;;
110 -disable-* | --disable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 eval "enable_${ac_feature}=no" ;;
119 -enable-* | --enable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}='$ac_optarg'" ;;
132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
134 | --exec | --exe | --ex)
135 ac_prev=exec_prefix ;;
136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
138 | --exec=* | --exe=* | --ex=*)
139 exec_prefix="$ac_optarg" ;;
141 -gas | --gas | --ga | --g)
142 # Obsolete; use --with-gas.
145 -help | --help | --hel | --he)
146 # Omit some internal or obsolete options to make the list less imposing.
147 # This message is too long to be a string in the A/UX 3.1 sh.
149 Usage: configure [options] [host]
150 Options: [defaults in brackets after descriptions]
152 --cache-file=FILE cache test results in FILE
153 --help print this message
154 --no-create do not create output files
155 --quiet, --silent do not print \`checking...' messages
156 --version print the version of autoconf that created configure
157 Directory and file names:
158 --prefix=PREFIX install architecture-independent files in PREFIX
160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 --bindir=DIR user executables in DIR [EPREFIX/bin]
163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
165 --datadir=DIR read-only architecture-independent data in DIR
167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
168 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
171 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
172 --includedir=DIR C header files in DIR [PREFIX/include]
173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
174 --infodir=DIR info documentation in DIR [PREFIX/info]
175 --mandir=DIR man documentation in DIR [PREFIX/man]
176 --srcdir=DIR find the sources in DIR [configure dir or ..]
177 --program-prefix=PREFIX prepend PREFIX to installed program names
178 --program-suffix=SUFFIX append SUFFIX to installed program names
179 --program-transform-name=PROGRAM
180 run sed PROGRAM on installed program names
184 --build=BUILD configure for building on BUILD [BUILD=HOST]
185 --host=HOST configure for HOST [guessed]
186 --target=TARGET configure for TARGET [TARGET=HOST]
187 Features and packages:
188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
192 --x-includes=DIR X include files are in DIR
193 --x-libraries=DIR X library files are in DIR
195 if test -n "$ac_help"; then
196 echo "--enable and --with options recognized:$ac_help"
200 -host | --host | --hos | --ho)
202 -host=* | --host=* | --hos=* | --ho=*)
205 -includedir | --includedir | --includedi | --included | --include \
206 | --includ | --inclu | --incl | --inc)
207 ac_prev=includedir ;;
208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209 | --includ=* | --inclu=* | --incl=* | --inc=*)
210 includedir="$ac_optarg" ;;
212 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215 infodir="$ac_optarg" ;;
217 -libdir | --libdir | --libdi | --libd)
219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
220 libdir="$ac_optarg" ;;
222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223 | --libexe | --libex | --libe)
224 ac_prev=libexecdir ;;
225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226 | --libexe=* | --libex=* | --libe=*)
227 libexecdir="$ac_optarg" ;;
229 -localstatedir | --localstatedir | --localstatedi | --localstated \
230 | --localstate | --localstat | --localsta | --localst \
231 | --locals | --local | --loca | --loc | --lo)
232 ac_prev=localstatedir ;;
233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236 localstatedir="$ac_optarg" ;;
238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241 mandir="$ac_optarg" ;;
244 # Obsolete; use --without-fp.
247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257 | --oldin | --oldi | --old | --ol | --o)
258 ac_prev=oldincludedir ;;
259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262 oldincludedir="$ac_optarg" ;;
264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267 prefix="$ac_optarg" ;;
269 -program-prefix | --program-prefix | --program-prefi | --program-pref \
270 | --program-pre | --program-pr | --program-p)
271 ac_prev=program_prefix ;;
272 -program-prefix=* | --program-prefix=* | --program-prefi=* \
273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274 program_prefix="$ac_optarg" ;;
276 -program-suffix | --program-suffix | --program-suffi | --program-suff \
277 | --program-suf | --program-su | --program-s)
278 ac_prev=program_suffix ;;
279 -program-suffix=* | --program-suffix=* | --program-suffi=* \
280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281 program_suffix="$ac_optarg" ;;
283 -program-transform-name | --program-transform-name \
284 | --program-transform-nam | --program-transform-na \
285 | --program-transform-n | --program-transform- \
286 | --program-transform | --program-transfor \
287 | --program-transfo | --program-transf \
288 | --program-trans | --program-tran \
289 | --progr-tra | --program-tr | --program-t)
290 ac_prev=program_transform_name ;;
291 -program-transform-name=* | --program-transform-name=* \
292 | --program-transform-nam=* | --program-transform-na=* \
293 | --program-transform-n=* | --program-transform-=* \
294 | --program-transform=* | --program-transfor=* \
295 | --program-transfo=* | --program-transf=* \
296 | --program-trans=* | --program-tran=* \
297 | --progr-tra=* | --program-tr=* | --program-t=*)
298 program_transform_name="$ac_optarg" ;;
300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301 | -silent | --silent | --silen | --sile | --sil)
304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 sbindir="$ac_optarg" ;;
310 -sharedstatedir | --sharedstatedir | --sharedstatedi \
311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312 | --sharedst | --shareds | --shared | --share | --shar \
314 ac_prev=sharedstatedir ;;
315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 sharedstatedir="$ac_optarg" ;;
321 -site | --site | --sit)
323 -site=* | --site=* | --sit=*)
326 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
329 srcdir="$ac_optarg" ;;
331 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
332 | --syscon | --sysco | --sysc | --sys | --sy)
333 ac_prev=sysconfdir ;;
334 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
335 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
336 sysconfdir="$ac_optarg" ;;
338 -target | --target | --targe | --targ | --tar | --ta | --t)
340 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
341 target="$ac_optarg" ;;
343 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 -version | --version | --versio | --versi | --vers)
347 echo "configure generated by autoconf version 2.13"
351 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}='$ac_optarg'" ;;
363 -without-* | --without-*)
364 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}=no" ;;
373 # Obsolete; use --with-x.
376 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
377 | --x-incl | --x-inc | --x-in | --x-i)
378 ac_prev=x_includes ;;
379 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
380 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
381 x_includes="$ac_optarg" ;;
383 -x-libraries | --x-libraries | --x-librarie | --x-librari \
384 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
385 ac_prev=x_libraries ;;
386 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
387 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
388 x_libraries="$ac_optarg" ;;
390 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395 echo "configure: warning: $ac_option: invalid host type" 1>&2
397 if test "x$nonopt" != xNONE; then
398 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 if test -n "$ac_prev"; then
407 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412 # File descriptor usage:
415 # 2 errors and warnings
416 # 3 some systems may open it to /dev/tty
417 # 4 used on the Kubota Titan
418 # 6 checking for... messages and results
419 # 5 compiler messages saved in config.log
420 if test "$silent" = yes; then
428 This file contains any messages produced by compilers while
429 running configure, to aid debugging if configure makes a mistake.
432 # Strip out --no-create and --no-recursion so they do not pile up.
433 # Also quote any args containing shell metacharacters.
438 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439 | --no-cr | --no-c) ;;
440 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
444 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 # Only set these to C if already set. These must not be set unconditionally
450 # because not all systems understand e.g. LANG=C (notably SCO).
451 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452 # Non-C LC_CTYPE values break the ctype check.
453 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
454 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
455 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
456 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
465 ac_unique_file=base/a_action.c
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469 ac_srcdir_defaulted=yes
470 # Try the directory containing this script, then its parent.
472 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475 if test ! -r $srcdir/$ac_unique_file; then
479 ac_srcdir_defaulted=no
481 if test ! -r $srcdir/$ac_unique_file; then
482 if test "$ac_srcdir_defaulted" = yes; then
483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492 if test "x$prefix" != xNONE; then
493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 for ac_site_file in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
505 if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
509 echo "creating cache $cache_file"
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp='$CPP $CPPFLAGS'
516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 cross_compiling=$ac_cv_prog_cc_cross
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='\c' ac_t=
537 # We want these before the checks, so the checks can modify their values.
544 LIBS="-L/usr/X11R6/lib"
550 # Check whether --enable-gl or --disable-gl was given.
551 if test "${enable_gl+set}" = set; then
552 enableval="$enable_gl"
553 GLHEXEN="true"; cat >> confdefs.h <<\EOF
560 # Check whether --enable-gl-mesa or --disable-gl-mesa was given.
561 if test "${enable_gl_mesa+set}" = set; then
562 enableval="$enable_gl_mesa"
563 GLHEXEN="true"; FORCEMESAGL="yes" ;cat >> confdefs.h <<\EOF
570 # Check whether --enable-demowad or --disable-demowad was given.
571 if test "${enable_demowad+set}" = set; then
572 enableval="$enable_demowad"
573 cat >> confdefs.h <<\EOF
580 # Check whether --enable-userconfig or --disable-userconfig was given.
581 if test "${enable_userconfig+set}" = set; then
582 enableval="$enable_userconfig"
583 cat >> confdefs.h <<\EOF
590 # Check whether --enable-assassin or --disable-assassin was given.
591 if test "${enable_assassin+set}" = set; then
592 enableval="$enable_assassin"
595 cat >> confdefs.h <<\EOF
605 cat >> confdefs.h <<\EOF
609 cat >> confdefs.h <<\EOF
610 #define NORANGECHECKING 1
615 # Extract the first word of "gcc", so it can be a program name with args.
616 set dummy gcc; ac_word=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC="$CC" # Let the user override the test.
625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
627 for ac_dir in $ac_dummy; do
628 test -z "$ac_dir" && ac_dir=.
629 if test -f $ac_dir/$ac_word; then
638 if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
641 echo "$ac_t""no" 1>&6
644 if test -z "$CC"; then
645 # Extract the first word of "cc", so it can be a program name with args.
646 set dummy cc; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
670 if test $ac_prog_rejected = yes; then
671 # We found a bogon in the path, so make sure we never use it.
672 set dummy $ac_cv_prog_CC
674 if test $# -gt 0; then
675 # We chose a different compiler from the bogus one.
676 # However, it has the same basename, so the bogon will be chosen
677 # first if we set CC to just the basename; use the full file name.
679 set dummy "$ac_dir/$ac_word" "$@"
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
693 if test -z "$CC"; then
696 # Extract the first word of "cl", so it can be a program name with args.
697 set dummy cl; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 for ac_dir in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir=.
710 if test -f $ac_dir/$ac_word; then
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
731 echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 cat > conftest.$ac_ext << EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
748 ac_cv_prog_cc_works=yes
749 # If we can't run a trivial program, we are probably using a cross compiler.
750 if (./conftest; exit) 2>/dev/null; then
751 ac_cv_prog_cc_cross=no
753 ac_cv_prog_cc_cross=yes
756 echo "configure: failed program was:" >&5
757 cat conftest.$ac_ext >&5
758 ac_cv_prog_cc_works=no
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp='$CPP $CPPFLAGS'
764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling=$ac_cv_prog_cc_cross
768 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
769 if test $ac_cv_prog_cc_works = no; then
770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
773 echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
774 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
775 cross_compiling=$ac_cv_prog_cc_cross
777 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
778 echo "configure:779: checking whether we are using GNU C" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftest.c <<EOF
787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
796 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS="${CFLAGS+set}"
803 ac_save_CFLAGS="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
824 if test "$GCC" = yes; then
830 if test "$GCC" = yes; then
837 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
838 echo "configure:839: checking how to run the C preprocessor" >&5
839 # On Suns, sometimes $CPP names a directory.
840 if test -n "$CPP" && test -d "$CPP"; then
843 if test -z "$CPP"; then
844 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 # This must be in double quotes, not single quotes, because CPP may get
848 # substituted into the Makefile and "${CC-cc}" will confuse make.
850 # On the NeXT, cc -E runs the code through the compiler's parser,
851 # not just through cpp.
852 cat > conftest.$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
859 { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
861 if test -z "$ac_err"; then
865 echo "configure: failed program was:" >&5
866 cat conftest.$ac_ext >&5
868 CPP="${CC-cc} -E -traditional-cpp"
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
876 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878 if test -z "$ac_err"; then
882 echo "configure: failed program was:" >&5
883 cat conftest.$ac_ext >&5
885 CPP="${CC-cc} -nologo -E"
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
893 { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
895 if test -z "$ac_err"; then
899 echo "configure: failed program was:" >&5
900 cat conftest.$ac_ext >&5
909 ac_cv_prog_CPP="$CPP"
911 CPP="$ac_cv_prog_CPP"
913 ac_cv_prog_CPP="$CPP"
915 echo "$ac_t""$CPP" 1>&6
919 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
920 echo "configure:921: checking for pthread_create in -lpthread" >&5
921 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
926 LIBS="-lpthread $LIBS"
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
930 /* Override any gcc2 internal prototype to avoid an error. */
931 /* We use char because int might match the return type of a gcc2
932 builtin and then its argument prototype would still apply. */
933 char pthread_create();
939 if { (eval echo configure:940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
941 eval "ac_cv_lib_$ac_lib_var=yes"
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
946 eval "ac_cv_lib_$ac_lib_var=no"
952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
953 echo "$ac_t""yes" 1>&6
956 echo "$ac_t""no" 1>&6
961 echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6
962 echo "configure:963: checking for vga_setmode in -lvga" >&5
963 ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'`
964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.$ac_ext <<EOF
970 #line 971 "configure"
971 #include "confdefs.h"
972 /* Override any gcc2 internal prototype to avoid an error. */
973 /* We use char because int might match the return type of a gcc2
974 builtin and then its argument prototype would still apply. */
981 if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
983 eval "ac_cv_lib_$ac_lib_var=yes"
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
988 eval "ac_cv_lib_$ac_lib_var=no"
994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
995 echo "$ac_t""yes" 1>&6
996 SVGALIBS="-lvga"; HAVESVGA="yes"
998 echo "$ac_t""no" 1>&6
1002 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
1003 echo "configure:1004: checking for XShmQueryExtension in -lXext" >&5
1004 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
1005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 ac_save_LIBS="$LIBS"
1010 cat > conftest.$ac_ext <<EOF
1011 #line 1012 "configure"
1012 #include "confdefs.h"
1013 /* Override any gcc2 internal prototype to avoid an error. */
1014 /* We use char because int might match the return type of a gcc2
1015 builtin and then its argument prototype would still apply. */
1016 char XShmQueryExtension();
1019 XShmQueryExtension()
1022 if { (eval echo configure:1023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1024 eval "ac_cv_lib_$ac_lib_var=yes"
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1029 eval "ac_cv_lib_$ac_lib_var=no"
1032 LIBS="$ac_save_LIBS"
1035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1036 echo "$ac_t""yes" 1>&6
1039 echo "$ac_t""no" 1>&6
1043 echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
1044 echo "configure:1045: checking for main in -lX11" >&5
1045 ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
1046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 ac_save_LIBS="$LIBS"
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1059 if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1061 eval "ac_cv_lib_$ac_lib_var=yes"
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1066 eval "ac_cv_lib_$ac_lib_var=no"
1069 LIBS="$ac_save_LIBS"
1072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1076 echo "$ac_t""no" 1>&6
1080 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1081 echo "configure:1082: checking for dlopen in -ldl" >&5
1082 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 ac_save_LIBS="$LIBS"
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091 /* Override any gcc2 internal prototype to avoid an error. */
1092 /* We use char because int might match the return type of a gcc2
1093 builtin and then its argument prototype would still apply. */
1100 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1102 eval "ac_cv_lib_$ac_lib_var=yes"
1104 echo "configure: failed program was:" >&5
1105 cat conftest.$ac_ext >&5
1107 eval "ac_cv_lib_$ac_lib_var=no"
1110 LIBS="$ac_save_LIBS"
1113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1114 echo "$ac_t""yes" 1>&6
1115 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1116 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1117 cat >> confdefs.h <<EOF
1118 #define $ac_tr_lib 1
1124 echo "$ac_t""no" 1>&6
1127 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1128 echo "configure:1129: checking for sqrt in -lm" >&5
1129 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 ac_save_LIBS="$LIBS"
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 /* Override any gcc2 internal prototype to avoid an error. */
1139 /* We use char because int might match the return type of a gcc2
1140 builtin and then its argument prototype would still apply. */
1147 if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1149 eval "ac_cv_lib_$ac_lib_var=yes"
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1154 eval "ac_cv_lib_$ac_lib_var=no"
1157 LIBS="$ac_save_LIBS"
1160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1161 echo "$ac_t""yes" 1>&6
1162 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1164 cat >> confdefs.h <<EOF
1165 #define $ac_tr_lib 1
1171 echo "$ac_t""no" 1>&6
1176 if test "$GLHEXEN" = "true"
1178 if test "$FORCEMESAGL" = "yes"
1180 echo $ac_n "checking for glBindTexture in -lMesaGL""... $ac_c" 1>&6
1181 echo "configure:1182: checking for glBindTexture in -lMesaGL" >&5
1182 ac_lib_var=`echo MesaGL'_'glBindTexture | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lMesaGL $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char glBindTexture();
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1207 eval "ac_cv_lib_$ac_lib_var=no"
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 ac_tr_lib=HAVE_LIB`echo MesaGL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1217 cat >> confdefs.h <<EOF
1218 #define $ac_tr_lib 1
1221 LIBS="-lMesaGL $LIBS"
1224 echo "$ac_t""no" 1>&6
1228 echo $ac_n "checking for gluOrtho2D in -lMesaGLU""... $ac_c" 1>&6
1229 echo "configure:1230: checking for gluOrtho2D in -lMesaGLU" >&5
1230 ac_lib_var=`echo MesaGLU'_'gluOrtho2D | sed 'y%./+-%__p_%'`
1231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 ac_save_LIBS="$LIBS"
1235 LIBS="-lMesaGLU $LIBS"
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1239 /* Override any gcc2 internal prototype to avoid an error. */
1240 /* We use char because int might match the return type of a gcc2
1241 builtin and then its argument prototype would still apply. */
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1250 eval "ac_cv_lib_$ac_lib_var=yes"
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1255 eval "ac_cv_lib_$ac_lib_var=no"
1258 LIBS="$ac_save_LIBS"
1261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1262 echo "$ac_t""yes" 1>&6
1263 ac_tr_lib=HAVE_LIB`echo MesaGLU | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1265 cat >> confdefs.h <<EOF
1266 #define $ac_tr_lib 1
1269 LIBS="-lMesaGLU $LIBS"
1272 echo "$ac_t""no" 1>&6
1277 echo $ac_n "checking for glBindTexture in -lGL""... $ac_c" 1>&6
1278 echo "configure:1279: checking for glBindTexture in -lGL" >&5
1279 ac_lib_var=`echo GL'_'glBindTexture | sed 'y%./+-%__p_%'`
1280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_save_LIBS="$LIBS"
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1288 /* Override any gcc2 internal prototype to avoid an error. */
1289 /* We use char because int might match the return type of a gcc2
1290 builtin and then its argument prototype would still apply. */
1291 char glBindTexture();
1297 if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299 eval "ac_cv_lib_$ac_lib_var=yes"
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1304 eval "ac_cv_lib_$ac_lib_var=no"
1307 LIBS="$ac_save_LIBS"
1310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1313 echo $ac_n "checking for gluOrtho2D in -lGLU""... $ac_c" 1>&6
1314 echo "configure:1315: checking for gluOrtho2D in -lGLU" >&5
1315 ac_lib_var=`echo GLU'_'gluOrtho2D | sed 'y%./+-%__p_%'`
1316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 ac_save_LIBS="$LIBS"
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 /* Override any gcc2 internal prototype to avoid an error. */
1325 /* We use char because int might match the return type of a gcc2
1326 builtin and then its argument prototype would still apply. */
1333 if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1335 eval "ac_cv_lib_$ac_lib_var=yes"
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1340 eval "ac_cv_lib_$ac_lib_var=no"
1343 LIBS="$ac_save_LIBS"
1346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1347 echo "$ac_t""yes" 1>&6
1348 ac_tr_lib=HAVE_LIB`echo GLU | sed -e 's/^a-zA-Z0-9_/_/g' \
1349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1350 cat >> confdefs.h <<EOF
1351 #define $ac_tr_lib 1
1357 echo "$ac_t""no" 1>&6
1358 echo $ac_n "checking for glBindTexture in -lMesaGL""... $ac_c" 1>&6
1359 echo "configure:1360: checking for glBindTexture in -lMesaGL" >&5
1360 ac_lib_var=`echo MesaGL'_'glBindTexture | sed 'y%./+-%__p_%'`
1361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 ac_save_LIBS="$LIBS"
1365 LIBS="-lMesaGL $LIBS"
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1369 /* Override any gcc2 internal prototype to avoid an error. */
1370 /* We use char because int might match the return type of a gcc2
1371 builtin and then its argument prototype would still apply. */
1372 char glBindTexture();
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1380 eval "ac_cv_lib_$ac_lib_var=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 eval "ac_cv_lib_$ac_lib_var=no"
1388 LIBS="$ac_save_LIBS"
1391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 LIBS="$LIBS -lMesaGL";
1394 echo $ac_n "checking for gluOrtho2D in -lMesaGLU""... $ac_c" 1>&6
1395 echo "configure:1396: checking for gluOrtho2D in -lMesaGLU" >&5
1396 ac_lib_var=`echo MesaGLU'_'gluOrtho2D | sed 'y%./+-%__p_%'`
1397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 ac_save_LIBS="$LIBS"
1401 LIBS="-lMesaGLU $LIBS"
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1414 if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1416 eval "ac_cv_lib_$ac_lib_var=yes"
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1421 eval "ac_cv_lib_$ac_lib_var=no"
1424 LIBS="$ac_save_LIBS"
1427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1429 ac_tr_lib=HAVE_LIB`echo MesaGLU | sed -e 's/^a-zA-Z0-9_/_/g' \
1430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1431 cat >> confdefs.h <<EOF
1432 #define $ac_tr_lib 1
1435 LIBS="-lMesaGLU $LIBS"
1438 echo "$ac_t""no" 1>&6
1443 echo "$ac_t""no" 1>&6
1451 echo "$ac_t""no" 1>&6
1452 echo $ac_n "checking for glBindTexture in -lMesaGL""... $ac_c" 1>&6
1453 echo "configure:1454: checking for glBindTexture in -lMesaGL" >&5
1454 ac_lib_var=`echo MesaGL'_'glBindTexture | sed 'y%./+-%__p_%'`
1455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 ac_save_LIBS="$LIBS"
1459 LIBS="-lMesaGL $LIBS"
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 /* Override any gcc2 internal prototype to avoid an error. */
1464 /* We use char because int might match the return type of a gcc2
1465 builtin and then its argument prototype would still apply. */
1466 char glBindTexture();
1472 if { (eval echo configure:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1474 eval "ac_cv_lib_$ac_lib_var=yes"
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1479 eval "ac_cv_lib_$ac_lib_var=no"
1482 LIBS="$ac_save_LIBS"
1485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1486 echo "$ac_t""yes" 1>&6
1487 LIBS="$LIBS -lMesaGL";
1488 echo $ac_n "checking for gluOrtho2D in -lMesaGLU""... $ac_c" 1>&6
1489 echo "configure:1490: checking for gluOrtho2D in -lMesaGLU" >&5
1490 ac_lib_var=`echo MesaGLU'_'gluOrtho2D | sed 'y%./+-%__p_%'`
1491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 ac_save_LIBS="$LIBS"
1495 LIBS="-lMesaGLU $LIBS"
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* Override any gcc2 internal prototype to avoid an error. */
1500 /* We use char because int might match the return type of a gcc2
1501 builtin and then its argument prototype would still apply. */
1508 if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1510 eval "ac_cv_lib_$ac_lib_var=yes"
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1515 eval "ac_cv_lib_$ac_lib_var=no"
1518 LIBS="$ac_save_LIBS"
1521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 ac_tr_lib=HAVE_LIB`echo MesaGLU | sed -e 's/^a-zA-Z0-9_/_/g' \
1524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1525 cat >> confdefs.h <<EOF
1526 #define $ac_tr_lib 1
1529 LIBS="-lMesaGLU $LIBS"
1532 echo "$ac_t""no" 1>&6
1537 echo "$ac_t""no" 1>&6
1548 if test "x${GCC}" = "xyes"
1550 CFLAGS="$CFLAGS -Wall"
1551 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1552 echo "configure:1553: checking "for gcc strength-reduce bug"" >&5
1553 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test "$cross_compiling" = yes; then
1557 ac_cv_c_gcc_strength_bug="yes"
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1564 static int Array[3];
1567 for(i=0; i<B; i++) Array[i] = i - 3;
1568 exit( Array[1] != -2 );
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1573 ac_cv_c_gcc_strength_bug="no"
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1578 ac_cv_c_gcc_strength_bug="yes"
1585 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1586 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1588 CFLAGS="$CFLAGS -fno-strength-reduce"
1593 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
1594 echo "configure:1595: checking "whether external symbols need an underscore prefix"" >&5
1595 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1599 LIBS="conftest_asm.s $LIBS"
1600 cat > conftest_asm.s <<EOF
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1610 if (ac_test) return 1
1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615 ac_cv_c_extern_prefix="yes"
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1620 ac_cv_c_extern_prefix="no"
1626 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
1631 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1632 # for constant arguments. Useless!
1633 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working alloca.h" >&5
1635 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1643 char *p = alloca(2 * sizeof(int));
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 ac_cv_header_alloca_h=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 ac_cv_header_alloca_h=no
1658 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1659 if test $ac_cv_header_alloca_h = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define HAVE_ALLOCA_H 1
1666 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1667 echo "configure:1668: checking for alloca" >&5
1668 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1676 # define alloca __builtin_alloca
1679 # include <malloc.h>
1680 # define alloca _alloca
1683 # include <alloca.h>
1688 # ifndef alloca /* predefined by HP cc +Olibcalls */
1697 char *p = (char *) alloca(1);
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 ac_cv_func_alloca_works=yes
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 ac_cv_func_alloca_works=no
1712 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1713 if test $ac_cv_func_alloca_works = yes; then
1714 cat >> confdefs.h <<\EOF
1715 #define HAVE_ALLOCA 1
1720 if test $ac_cv_func_alloca_works = no; then
1721 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1722 # that cause trouble. Some versions do not even contain alloca or
1723 # contain a buggy version. If you still want to use their alloca,
1724 # use ar to extract alloca.o from them instead of compiling alloca.c.
1725 ALLOCA=alloca.${ac_objext}
1726 cat >> confdefs.h <<\EOF
1731 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether alloca needs Cray hooks" >&5
1733 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 #if defined(CRAY) && ! defined(CRAY2)
1746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1747 egrep "webecray" >/dev/null 2>&1; then
1758 echo "$ac_t""$ac_cv_os_cray" 1>&6
1759 if test $ac_cv_os_cray = yes; then
1760 for ac_func in _getb67 GETB67 getb67; do
1761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1762 echo "configure:1763: checking for $ac_func" >&5
1763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $ac_func(); below. */
1772 /* Override any gcc2 internal prototype to avoid an error. */
1773 /* We use char because int might match the return type of a gcc2
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792 eval "ac_cv_func_$ac_func=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 eval "ac_cv_func_$ac_func=no"
1802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 cat >> confdefs.h <<EOF
1805 #define CRAY_STACKSEG_END $ac_func
1810 echo "$ac_t""no" 1>&6
1816 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1817 echo "configure:1818: checking stack direction for C alloca" >&5
1818 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 if test "$cross_compiling" = yes; then
1822 ac_cv_c_stack_direction=0
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 find_stack_direction ()
1829 static char *addr = 0;
1834 return find_stack_direction ();
1837 return (&dummy > addr) ? 1 : -1;
1841 exit (find_stack_direction() < 0);
1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1846 ac_cv_c_stack_direction=1
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 ac_cv_c_stack_direction=-1
1858 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1859 cat >> confdefs.h <<EOF
1860 #define STACK_DIRECTION $ac_cv_c_stack_direction
1871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_hdr" >&5
1874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1883 { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1885 if test -z "$ac_err"; then
1887 eval "ac_cv_header_$ac_safe=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 eval "ac_cv_header_$ac_safe=no"
1897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1898 echo "$ac_t""yes" 1>&6
1899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1900 cat >> confdefs.h <<EOF
1901 #define $ac_tr_hdr 1
1905 echo "$ac_t""no" 1>&6
1909 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether stat file-mode macros are broken" >&5
1911 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1918 #include <sys/stat.h>
1920 #if defined(S_ISBLK) && defined(S_IFDIR)
1921 # if S_ISBLK (S_IFDIR)
1926 #if defined(S_ISBLK) && defined(S_IFCHR)
1927 # if S_ISBLK (S_IFCHR)
1932 #if defined(S_ISLNK) && defined(S_IFREG)
1933 # if S_ISLNK (S_IFREG)
1938 #if defined(S_ISSOCK) && defined(S_IFREG)
1939 # if S_ISSOCK (S_IFREG)
1945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1946 egrep "You lose" >/dev/null 2>&1; then
1948 ac_cv_header_stat_broken=yes
1951 ac_cv_header_stat_broken=no
1957 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1958 if test $ac_cv_header_stat_broken = yes; then
1959 cat >> confdefs.h <<\EOF
1960 #define STAT_MACROS_BROKEN 1
1967 echo $ac_n "checking for working const""... $ac_c" 1>&6
1968 echo "configure:1969: checking for working const" >&5
1969 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 /* Ultrix mips cc rejects this. */
1979 typedef int charset[2]; const charset x;
1980 /* SunOS 4.1.1 cc rejects this. */
1981 char const *const *ccp;
1983 /* NEC SVR4.0.2 mips cc rejects this. */
1984 struct point {int x, y;};
1985 static struct point const zero = {0,0};
1986 /* AIX XL C 1.02.0.0 rejects this.
1987 It does not let you subtract one const X* pointer from another in an arm
1988 of an if-expression whose if-part is not a constant expression */
1989 const char *g = "string";
1990 ccp = &g + (g ? g-g : 0);
1991 /* HPUX 7.0 cc rejects these. */
1994 ccp = (char const *const *) p;
1995 { /* SCO 3.2v4 cc rejects this. */
1997 char const *s = 0 ? (char *) 0 : (char const *) 0;
2001 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2003 const int *foo = &x[0];
2006 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2007 typedef const int *iptr;
2011 { /* AIX XL C 1.02.0.0 rejects this saying
2012 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2013 struct s { int j; const int *ap[3]; };
2014 struct s *b; b->j = 5;
2016 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2022 if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2034 echo "$ac_t""$ac_cv_c_const" 1>&6
2035 if test $ac_cv_c_const = no; then
2036 cat >> confdefs.h <<\EOF
2042 echo $ac_n "checking for inline""... $ac_c" 1>&6
2043 echo "configure:2044: checking for inline" >&5
2044 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2048 for ac_kw in inline __inline__ __inline; do
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2057 if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2059 ac_cv_c_inline=$ac_kw; break
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2069 echo "$ac_t""$ac_cv_c_inline" 1>&6
2070 case "$ac_cv_c_inline" in
2072 no) cat >> confdefs.h <<\EOF
2076 *) cat >> confdefs.h <<EOF
2077 #define inline $ac_cv_c_inline
2082 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2083 echo "configure:2084: checking for ANSI C header files" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2096 { (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2098 if test -z "$ac_err"; then
2100 ac_cv_header_stdc=yes
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 ac_cv_header_stdc=no
2110 if test $ac_cv_header_stdc = yes; then
2111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2118 egrep "memchr" >/dev/null 2>&1; then
2122 ac_cv_header_stdc=no
2128 if test $ac_cv_header_stdc = yes; then
2129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "free" >/dev/null 2>&1; then
2140 ac_cv_header_stdc=no
2146 if test $ac_cv_header_stdc = yes; then
2147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2148 if test "$cross_compiling" = yes; then
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2155 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2156 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2158 int main () { int i; for (i = 0; i < 256; i++)
2159 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 ac_cv_header_stdc=no
2178 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2179 if test $ac_cv_header_stdc = yes; then
2180 cat >> confdefs.h <<\EOF
2181 #define STDC_HEADERS 1
2186 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2187 echo "configure:2188: checking for size_t" >&5
2188 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 #include <sys/types.h>
2200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2201 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2203 ac_cv_type_size_t=yes
2206 ac_cv_type_size_t=no
2211 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2212 if test $ac_cv_type_size_t = no; then
2213 cat >> confdefs.h <<\EOF
2214 #define size_t unsigned
2219 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2220 echo "configure:2221: checking size of long long" >&5
2221 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 if test "$cross_compiling" = yes; then
2225 ac_cv_sizeof_long_long=0
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2233 FILE *f=fopen("conftestval", "w");
2235 fprintf(f, "%d\n", sizeof(long long));
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2241 ac_cv_sizeof_long_long=`cat conftestval`
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 ac_cv_sizeof_long_long=0
2252 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2253 cat >> confdefs.h <<EOF
2254 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2264 cat > confcache <<\EOF
2265 # This file is a shell script that caches the results of configure
2266 # tests run on this system so they can be shared between configure
2267 # scripts and configure runs. It is not useful on other systems.
2268 # If it contains results you don't want to keep, you may remove or edit it.
2270 # By default, configure uses ./config.cache as the cache file,
2271 # creating it if it does not exist already. You can give configure
2272 # the --cache-file=FILE option to use a different cache file; that is
2273 # what configure does when it calls configure scripts in
2274 # subdirectories, so they share the cache.
2275 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2276 # config.status only pays attention to the cache file if you give it the
2277 # --recheck option to rerun configure.
2280 # The following way of writing the cache mishandles newlines in values,
2281 # but we know of no workaround that is simple, portable, and efficient.
2282 # So, don't put newlines in cache variables' values.
2283 # Ultrix sh set writes to stderr and can't be redirected directly,
2284 # and sets the high bit in the cache file unless we assign to the vars.
2286 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2288 # `set' does not quote correctly, so add quotes (double-quote substitution
2289 # turns \\\\ into \\, and sed turns \\ into \).
2291 -e "s/'/'\\\\''/g" \
2292 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2295 # `set' quotes correctly as required by POSIX, so do not add quotes.
2296 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2299 if cmp -s $cache_file confcache; then
2302 if test -w $cache_file; then
2303 echo "updating cache $cache_file"
2304 cat confcache > $cache_file
2306 echo "not updating unwritable cache $cache_file"
2311 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2314 # Let make expand exec_prefix.
2315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2317 # Any assignment to VPATH causes Sun make to only execute
2318 # the first set of double-colon rules, so remove it if not needed.
2319 # If there is a colon in the path, we need to keep it.
2320 if test "x$srcdir" = x.; then
2321 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2324 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2326 DEFS=-DHAVE_CONFIG_H
2328 # Without the "./", some shells look in PATH for config.status.
2329 : ${CONFIG_STATUS=./config.status}
2331 echo creating $CONFIG_STATUS
2332 rm -f $CONFIG_STATUS
2333 cat > $CONFIG_STATUS <<EOF
2335 # Generated automatically by configure.
2336 # Run this file to recreate the current configuration.
2337 # This directory was configured as follows,
2338 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2340 # $0 $ac_configure_args
2342 # Compiler output produced by configure, useful for debugging
2343 # configure, is in ./config.log if it exists.
2345 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2348 case "\$ac_option" in
2349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2350 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2351 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2352 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2353 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2355 -help | --help | --hel | --he | --h)
2356 echo "\$ac_cs_usage"; exit 0 ;;
2357 *) echo "\$ac_cs_usage"; exit 1 ;;
2361 ac_given_srcdir=$srcdir
2363 trap 'rm -fr `echo "Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2365 cat >> $CONFIG_STATUS <<EOF
2367 # Protect against being on the right side of a sed subst in config.status.
2368 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2369 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2373 s%@CFLAGS@%$CFLAGS%g
2374 s%@CPPFLAGS@%$CPPFLAGS%g
2375 s%@CXXFLAGS@%$CXXFLAGS%g
2376 s%@FFLAGS@%$FFLAGS%g
2378 s%@LDFLAGS@%$LDFLAGS%g
2380 s%@exec_prefix@%$exec_prefix%g
2381 s%@prefix@%$prefix%g
2382 s%@program_transform_name@%$program_transform_name%g
2383 s%@bindir@%$bindir%g
2384 s%@sbindir@%$sbindir%g
2385 s%@libexecdir@%$libexecdir%g
2386 s%@datadir@%$datadir%g
2387 s%@sysconfdir@%$sysconfdir%g
2388 s%@sharedstatedir@%$sharedstatedir%g
2389 s%@localstatedir@%$localstatedir%g
2390 s%@libdir@%$libdir%g
2391 s%@includedir@%$includedir%g
2392 s%@oldincludedir@%$oldincludedir%g
2393 s%@infodir@%$infodir%g
2394 s%@mandir@%$mandir%g
2395 s%@GLHEXEN@%$GLHEXEN%g
2396 s%@SVGALIBS@%$SVGALIBS%g
2399 s%@BASELIBS@%$BASELIBS%g
2400 s%@ALLOCA@%$ALLOCA%g
2401 /@MAKE_RULES@/r $MAKE_RULES
2407 cat >> $CONFIG_STATUS <<\EOF
2409 # Split the substitutions into bite-sized pieces for seds with
2410 # small command number limits, like on Digital OSF/1 and HP-UX.
2411 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2412 ac_file=1 # Number of current file.
2413 ac_beg=1 # First line for current file.
2414 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2417 while $ac_more_lines; do
2418 if test $ac_beg -gt 1; then
2419 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2421 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2423 if test ! -s conftest.s$ac_file; then
2425 rm -f conftest.s$ac_file
2427 if test -z "$ac_sed_cmds"; then
2428 ac_sed_cmds="sed -f conftest.s$ac_file"
2430 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2432 ac_file=`expr $ac_file + 1`
2434 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2437 if test -z "$ac_sed_cmds"; then
2442 cat >> $CONFIG_STATUS <<EOF
2444 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2446 cat >> $CONFIG_STATUS <<\EOF
2447 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2450 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2451 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2452 *) ac_file_in="${ac_file}.in" ;;
2455 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2457 # Remove last slash and all that follows it. Not all systems have dirname.
2458 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2459 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2460 # The file is in a subdirectory.
2461 test ! -d "$ac_dir" && mkdir "$ac_dir"
2462 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2463 # A "../" for each directory in $ac_dir_suffix.
2464 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2466 ac_dir_suffix= ac_dots=
2469 case "$ac_given_srcdir" in
2471 if test -z "$ac_dots"; then top_srcdir=.
2472 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2473 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2475 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2476 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2480 echo creating "$ac_file"
2482 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2484 *Makefile*) ac_comsub="1i\\
2485 # $configure_input" ;;
2489 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2491 s%@configure_input@%$configure_input%g
2492 s%@srcdir@%$srcdir%g
2493 s%@top_srcdir@%$top_srcdir%g
2494 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2498 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2499 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2501 # ac_d sets the value in "#define NAME VALUE" lines.
2502 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2503 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2506 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2507 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2508 ac_uB='\([ ]\)%\1#\2define\3'
2511 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2512 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2513 ac_eB='$%\1#\2define\3'
2517 if test "${CONFIG_HEADERS+set}" != set; then
2519 cat >> $CONFIG_STATUS <<EOF
2520 CONFIG_HEADERS="include/config.h"
2522 cat >> $CONFIG_STATUS <<\EOF
2524 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2527 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2528 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2529 *) ac_file_in="${ac_file}.in" ;;
2532 echo creating $ac_file
2534 rm -f conftest.frag conftest.in conftest.out
2535 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2536 cat $ac_file_inputs > conftest.in
2540 # Transform confdefs.h into a sed script conftest.vals that substitutes
2541 # the proper values into config.h.in to produce config.h. And first:
2542 # Protect against being on the right side of a sed subst in config.status.
2543 # Protect against being in an unquoted here document in config.status.
2545 cat > conftest.hdr <<\EOF
2548 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2552 sed -n -f conftest.hdr confdefs.h > conftest.vals
2555 # This sed command replaces #undef with comments. This is necessary, for
2556 # example, in the case of _POSIX_SOURCE, which is predefined and required
2557 # on some systems where configure will not decide to define it.
2558 cat >> conftest.vals <<\EOF
2559 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2562 # Break up conftest.vals because some shells have a limit on
2563 # the size of here documents, and old seds have small limits too.
2568 ac_lines=`grep -c . conftest.vals`
2569 # grep -c gives empty output for an empty file on some AIX systems.
2570 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2571 # Write a limited-size here document to conftest.frag.
2572 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2573 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2575 sed -f conftest.frag conftest.in > conftest.out
2577 mv conftest.out conftest.in
2579 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2581 mv conftest.tail conftest.vals
2585 cat >> $CONFIG_STATUS <<\EOF
2586 rm -f conftest.frag conftest.h
2587 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2588 cat conftest.in >> conftest.h
2590 if cmp -s $ac_file conftest.h 2>/dev/null; then
2591 echo "$ac_file is unchanged"
2594 # Remove last slash and all that follows it. Not all systems have dirname.
2595 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2596 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2597 # The file is in a subdirectory.
2598 test ! -d "$ac_dir" && mkdir "$ac_dir"
2601 mv conftest.h $ac_file
2606 cat >> $CONFIG_STATUS <<EOF
2609 cat >> $CONFIG_STATUS <<\EOF
2613 chmod +x $CONFIG_STATUS
2614 rm -fr confdefs* $ac_clean_files
2615 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2618 if test "$HAVESVGA" = "no"
2621 echo "Warning: It appears that you do not have SvgaLib installed on your system"
2622 echo " If you want to compile with SvgaLib support, you will need to"
2623 echo " download the library from 'http://www.svgalib.org'."
2626 if test "$HAVEX11" = "no"
2629 echo "Warning: Configure did not find some necessary libraries for an X11"
2630 echo " build. Perhaps you do not have X11 installed correctly."
2631 echo " Until this problem is resolved, you won't be able to compile"
2632 echo " the X11 or OpenGL versions."
2636 if test "$HAVEGL" = "no"
2639 echo "Warning: Configure was not able to find your OpenGL libraries."
2640 echo " Perhaps you do not have them installed correctly. Until"
2641 echo " this problem is resolved, you won't be able to compile"
2642 echo " the OpenGL version of HHexen."
2645 if test "$GLHEXEN" = "true"
2648 echo "Configure finished. Do 'make clean', then 'make' to build the OpenGL version."
2652 echo "Configure finished. Do 'make clean', then 'make x11' or 'make svgalib' to build"