Remove CBitmapSurface.
[SDL.s60v3.git] / test / configure
blob70cb473270e4218823926a3573f17e2869ab4be9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="README"
580 ac_subst_vars='SHELL
581 PATH_SEPARATOR
582 PACKAGE_NAME
583 PACKAGE_TARNAME
584 PACKAGE_VERSION
585 PACKAGE_STRING
586 PACKAGE_BUGREPORT
587 exec_prefix
588 prefix
589 program_transform_name
590 bindir
591 sbindir
592 libexecdir
593 datarootdir
594 datadir
595 sysconfdir
596 sharedstatedir
597 localstatedir
598 includedir
599 oldincludedir
600 docdir
601 infodir
602 htmldir
603 dvidir
604 pdfdir
605 psdir
606 libdir
607 localedir
608 mandir
609 DEFS
610 ECHO_C
611 ECHO_N
612 ECHO_T
613 LIBS
614 build_alias
615 host_alias
616 target_alias
617 build
618 build_cpu
619 build_vendor
620 build_os
621 host
622 host_cpu
623 host_vendor
624 host_os
626 CFLAGS
627 LDFLAGS
628 CPPFLAGS
629 ac_ct_CC
630 EXEEXT
631 OBJEXT
632 OSMESA_CONFIG
634 MATHLIB
635 SDL_CONFIG
636 SDL_CFLAGS
637 SDL_LIBS
638 XMKMF
640 GLLIB
641 LIBOBJS
642 LTLIBOBJS'
643 ac_subst_files=''
644 ac_precious_vars='build_alias
645 host_alias
646 target_alias
648 CFLAGS
649 LDFLAGS
650 LIBS
651 CPPFLAGS
652 XMKMF
653 CPP'
656 # Initialize some variables set by options.
657 ac_init_help=
658 ac_init_version=false
659 # The variables have the same names as the options, with
660 # dashes changed to underlines.
661 cache_file=/dev/null
662 exec_prefix=NONE
663 no_create=
664 no_recursion=
665 prefix=NONE
666 program_prefix=NONE
667 program_suffix=NONE
668 program_transform_name=s,x,x,
669 silent=
670 site=
671 srcdir=
672 verbose=
673 x_includes=NONE
674 x_libraries=NONE
676 # Installation directory options.
677 # These are left unexpanded so users can "make install exec_prefix=/foo"
678 # and all the variables that are supposed to be based on exec_prefix
679 # by default will actually change.
680 # Use braces instead of parens because sh, perl, etc. also accept them.
681 # (The list follows the same order as the GNU Coding Standards.)
682 bindir='${exec_prefix}/bin'
683 sbindir='${exec_prefix}/sbin'
684 libexecdir='${exec_prefix}/libexec'
685 datarootdir='${prefix}/share'
686 datadir='${datarootdir}'
687 sysconfdir='${prefix}/etc'
688 sharedstatedir='${prefix}/com'
689 localstatedir='${prefix}/var'
690 includedir='${prefix}/include'
691 oldincludedir='/usr/include'
692 docdir='${datarootdir}/doc/${PACKAGE}'
693 infodir='${datarootdir}/info'
694 htmldir='${docdir}'
695 dvidir='${docdir}'
696 pdfdir='${docdir}'
697 psdir='${docdir}'
698 libdir='${exec_prefix}/lib'
699 localedir='${datarootdir}/locale'
700 mandir='${datarootdir}/man'
702 ac_prev=
703 ac_dashdash=
704 for ac_option
706 # If the previous option needs an argument, assign it.
707 if test -n "$ac_prev"; then
708 eval $ac_prev=\$ac_option
709 ac_prev=
710 continue
713 case $ac_option in
714 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
715 *) ac_optarg=yes ;;
716 esac
718 # Accept the important Cygnus configure options, so we can diagnose typos.
720 case $ac_dashdash$ac_option in
722 ac_dashdash=yes ;;
724 -bindir | --bindir | --bindi | --bind | --bin | --bi)
725 ac_prev=bindir ;;
726 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
727 bindir=$ac_optarg ;;
729 -build | --build | --buil | --bui | --bu)
730 ac_prev=build_alias ;;
731 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
732 build_alias=$ac_optarg ;;
734 -cache-file | --cache-file | --cache-fil | --cache-fi \
735 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
736 ac_prev=cache_file ;;
737 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
738 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
739 cache_file=$ac_optarg ;;
741 --config-cache | -C)
742 cache_file=config.cache ;;
744 -datadir | --datadir | --datadi | --datad)
745 ac_prev=datadir ;;
746 -datadir=* | --datadir=* | --datadi=* | --datad=*)
747 datadir=$ac_optarg ;;
749 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
750 | --dataroo | --dataro | --datar)
751 ac_prev=datarootdir ;;
752 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
753 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
754 datarootdir=$ac_optarg ;;
756 -disable-* | --disable-*)
757 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
761 { (exit 1); exit 1; }; }
762 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
763 eval enable_$ac_feature=no ;;
765 -docdir | --docdir | --docdi | --doc | --do)
766 ac_prev=docdir ;;
767 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
768 docdir=$ac_optarg ;;
770 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
771 ac_prev=dvidir ;;
772 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
773 dvidir=$ac_optarg ;;
775 -enable-* | --enable-*)
776 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
780 { (exit 1); exit 1; }; }
781 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
782 eval enable_$ac_feature=\$ac_optarg ;;
784 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
785 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
786 | --exec | --exe | --ex)
787 ac_prev=exec_prefix ;;
788 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
789 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
790 | --exec=* | --exe=* | --ex=*)
791 exec_prefix=$ac_optarg ;;
793 -gas | --gas | --ga | --g)
794 # Obsolete; use --with-gas.
795 with_gas=yes ;;
797 -help | --help | --hel | --he | -h)
798 ac_init_help=long ;;
799 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
800 ac_init_help=recursive ;;
801 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
802 ac_init_help=short ;;
804 -host | --host | --hos | --ho)
805 ac_prev=host_alias ;;
806 -host=* | --host=* | --hos=* | --ho=*)
807 host_alias=$ac_optarg ;;
809 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
810 ac_prev=htmldir ;;
811 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
812 | --ht=*)
813 htmldir=$ac_optarg ;;
815 -includedir | --includedir | --includedi | --included | --include \
816 | --includ | --inclu | --incl | --inc)
817 ac_prev=includedir ;;
818 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
819 | --includ=* | --inclu=* | --incl=* | --inc=*)
820 includedir=$ac_optarg ;;
822 -infodir | --infodir | --infodi | --infod | --info | --inf)
823 ac_prev=infodir ;;
824 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
825 infodir=$ac_optarg ;;
827 -libdir | --libdir | --libdi | --libd)
828 ac_prev=libdir ;;
829 -libdir=* | --libdir=* | --libdi=* | --libd=*)
830 libdir=$ac_optarg ;;
832 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
833 | --libexe | --libex | --libe)
834 ac_prev=libexecdir ;;
835 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
836 | --libexe=* | --libex=* | --libe=*)
837 libexecdir=$ac_optarg ;;
839 -localedir | --localedir | --localedi | --localed | --locale)
840 ac_prev=localedir ;;
841 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
842 localedir=$ac_optarg ;;
844 -localstatedir | --localstatedir | --localstatedi | --localstated \
845 | --localstate | --localstat | --localsta | --localst | --locals)
846 ac_prev=localstatedir ;;
847 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
848 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
849 localstatedir=$ac_optarg ;;
851 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
852 ac_prev=mandir ;;
853 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
854 mandir=$ac_optarg ;;
856 -nfp | --nfp | --nf)
857 # Obsolete; use --without-fp.
858 with_fp=no ;;
860 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
861 | --no-cr | --no-c | -n)
862 no_create=yes ;;
864 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
865 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
866 no_recursion=yes ;;
868 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
869 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
870 | --oldin | --oldi | --old | --ol | --o)
871 ac_prev=oldincludedir ;;
872 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
873 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
874 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
875 oldincludedir=$ac_optarg ;;
877 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
878 ac_prev=prefix ;;
879 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
880 prefix=$ac_optarg ;;
882 -program-prefix | --program-prefix | --program-prefi | --program-pref \
883 | --program-pre | --program-pr | --program-p)
884 ac_prev=program_prefix ;;
885 -program-prefix=* | --program-prefix=* | --program-prefi=* \
886 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
887 program_prefix=$ac_optarg ;;
889 -program-suffix | --program-suffix | --program-suffi | --program-suff \
890 | --program-suf | --program-su | --program-s)
891 ac_prev=program_suffix ;;
892 -program-suffix=* | --program-suffix=* | --program-suffi=* \
893 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
894 program_suffix=$ac_optarg ;;
896 -program-transform-name | --program-transform-name \
897 | --program-transform-nam | --program-transform-na \
898 | --program-transform-n | --program-transform- \
899 | --program-transform | --program-transfor \
900 | --program-transfo | --program-transf \
901 | --program-trans | --program-tran \
902 | --progr-tra | --program-tr | --program-t)
903 ac_prev=program_transform_name ;;
904 -program-transform-name=* | --program-transform-name=* \
905 | --program-transform-nam=* | --program-transform-na=* \
906 | --program-transform-n=* | --program-transform-=* \
907 | --program-transform=* | --program-transfor=* \
908 | --program-transfo=* | --program-transf=* \
909 | --program-trans=* | --program-tran=* \
910 | --progr-tra=* | --program-tr=* | --program-t=*)
911 program_transform_name=$ac_optarg ;;
913 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
914 ac_prev=pdfdir ;;
915 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
916 pdfdir=$ac_optarg ;;
918 -psdir | --psdir | --psdi | --psd | --ps)
919 ac_prev=psdir ;;
920 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
921 psdir=$ac_optarg ;;
923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
924 | -silent | --silent | --silen | --sile | --sil)
925 silent=yes ;;
927 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
928 ac_prev=sbindir ;;
929 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
930 | --sbi=* | --sb=*)
931 sbindir=$ac_optarg ;;
933 -sharedstatedir | --sharedstatedir | --sharedstatedi \
934 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
935 | --sharedst | --shareds | --shared | --share | --shar \
936 | --sha | --sh)
937 ac_prev=sharedstatedir ;;
938 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
939 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
940 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
941 | --sha=* | --sh=*)
942 sharedstatedir=$ac_optarg ;;
944 -site | --site | --sit)
945 ac_prev=site ;;
946 -site=* | --site=* | --sit=*)
947 site=$ac_optarg ;;
949 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
950 ac_prev=srcdir ;;
951 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
952 srcdir=$ac_optarg ;;
954 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
955 | --syscon | --sysco | --sysc | --sys | --sy)
956 ac_prev=sysconfdir ;;
957 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
958 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
959 sysconfdir=$ac_optarg ;;
961 -target | --target | --targe | --targ | --tar | --ta | --t)
962 ac_prev=target_alias ;;
963 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
964 target_alias=$ac_optarg ;;
966 -v | -verbose | --verbose | --verbos | --verbo | --verb)
967 verbose=yes ;;
969 -version | --version | --versio | --versi | --vers | -V)
970 ac_init_version=: ;;
972 -with-* | --with-*)
973 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid package name: $ac_package" >&2
977 { (exit 1); exit 1; }; }
978 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
979 eval with_$ac_package=\$ac_optarg ;;
981 -without-* | --without-*)
982 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid package name: $ac_package" >&2
986 { (exit 1); exit 1; }; }
987 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
988 eval with_$ac_package=no ;;
990 --x)
991 # Obsolete; use --with-x.
992 with_x=yes ;;
994 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
995 | --x-incl | --x-inc | --x-in | --x-i)
996 ac_prev=x_includes ;;
997 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
998 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
999 x_includes=$ac_optarg ;;
1001 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1002 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1003 ac_prev=x_libraries ;;
1004 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1005 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1006 x_libraries=$ac_optarg ;;
1008 -*) { echo "$as_me: error: unrecognized option: $ac_option
1009 Try \`$0 --help' for more information." >&2
1010 { (exit 1); exit 1; }; }
1013 *=*)
1014 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1018 { (exit 1); exit 1; }; }
1019 eval $ac_envvar=\$ac_optarg
1020 export $ac_envvar ;;
1023 # FIXME: should be removed in autoconf 3.0.
1024 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1025 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1027 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1030 esac
1031 done
1033 if test -n "$ac_prev"; then
1034 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1035 { echo "$as_me: error: missing argument to $ac_option" >&2
1036 { (exit 1); exit 1; }; }
1039 # Be sure to have absolute directory names.
1040 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir
1045 eval ac_val=\$$ac_var
1046 case $ac_val in
1047 [\\/$]* | ?:[\\/]* ) continue;;
1048 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1049 esac
1050 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1051 { (exit 1); exit 1; }; }
1052 done
1054 # There might be people who depend on the old broken behavior: `$host'
1055 # used to hold the argument of --host etc.
1056 # FIXME: To remove some day.
1057 build=$build_alias
1058 host=$host_alias
1059 target=$target_alias
1061 # FIXME: To remove some day.
1062 if test "x$host_alias" != x; then
1063 if test "x$build_alias" = x; then
1064 cross_compiling=maybe
1065 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1066 If a cross compiler is detected then cross compile mode will be used." >&2
1067 elif test "x$build_alias" != "x$host_alias"; then
1068 cross_compiling=yes
1072 ac_tool_prefix=
1073 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1075 test "$silent" = yes && exec 6>/dev/null
1078 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1079 ac_ls_di=`ls -di .` &&
1080 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1081 { echo "$as_me: error: Working directory cannot be determined" >&2
1082 { (exit 1); exit 1; }; }
1083 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1084 { echo "$as_me: error: pwd does not report name of working directory" >&2
1085 { (exit 1); exit 1; }; }
1088 # Find the source files, if location was not specified.
1089 if test -z "$srcdir"; then
1090 ac_srcdir_defaulted=yes
1091 # Try the directory containing this script, then the parent directory.
1092 ac_confdir=`$as_dirname -- "$0" ||
1093 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1094 X"$0" : 'X\(//\)[^/]' \| \
1095 X"$0" : 'X\(//\)$' \| \
1096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1097 echo X"$0" |
1098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1099 s//\1/
1102 /^X\(\/\/\)[^/].*/{
1103 s//\1/
1106 /^X\(\/\/\)$/{
1107 s//\1/
1110 /^X\(\/\).*/{
1111 s//\1/
1114 s/.*/./; q'`
1115 srcdir=$ac_confdir
1116 if test ! -r "$srcdir/$ac_unique_file"; then
1117 srcdir=..
1119 else
1120 ac_srcdir_defaulted=no
1122 if test ! -r "$srcdir/$ac_unique_file"; then
1123 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1124 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1125 { (exit 1); exit 1; }; }
1127 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1128 ac_abs_confdir=`(
1129 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1130 { (exit 1); exit 1; }; }
1131 pwd)`
1132 # When building in place, set srcdir=.
1133 if test "$ac_abs_confdir" = "$ac_pwd"; then
1134 srcdir=.
1136 # Remove unnecessary trailing slashes from srcdir.
1137 # Double slashes in file names in object file debugging info
1138 # mess up M-x gdb in Emacs.
1139 case $srcdir in
1140 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1141 esac
1142 for ac_var in $ac_precious_vars; do
1143 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1144 eval ac_env_${ac_var}_value=\$${ac_var}
1145 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1146 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1147 done
1150 # Report the --help message.
1152 if test "$ac_init_help" = "long"; then
1153 # Omit some internal or obsolete options to make the list less imposing.
1154 # This message is too long to be a string in the A/UX 3.1 sh.
1155 cat <<_ACEOF
1156 \`configure' configures this package to adapt to many kinds of systems.
1158 Usage: $0 [OPTION]... [VAR=VALUE]...
1160 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1161 VAR=VALUE. See below for descriptions of some of the useful variables.
1163 Defaults for the options are specified in brackets.
1165 Configuration:
1166 -h, --help display this help and exit
1167 --help=short display options specific to this package
1168 --help=recursive display the short help of all the included packages
1169 -V, --version display version information and exit
1170 -q, --quiet, --silent do not print \`checking...' messages
1171 --cache-file=FILE cache test results in FILE [disabled]
1172 -C, --config-cache alias for \`--cache-file=config.cache'
1173 -n, --no-create do not create output files
1174 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1176 Installation directories:
1177 --prefix=PREFIX install architecture-independent files in PREFIX
1178 [$ac_default_prefix]
1179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1180 [PREFIX]
1182 By default, \`make install' will install all the files in
1183 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1184 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1185 for instance \`--prefix=\$HOME'.
1187 For better control, use the options below.
1189 Fine tuning of the installation directories:
1190 --bindir=DIR user executables [EPREFIX/bin]
1191 --sbindir=DIR system admin executables [EPREFIX/sbin]
1192 --libexecdir=DIR program executables [EPREFIX/libexec]
1193 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1194 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1195 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1196 --libdir=DIR object code libraries [EPREFIX/lib]
1197 --includedir=DIR C header files [PREFIX/include]
1198 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1199 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1200 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1201 --infodir=DIR info documentation [DATAROOTDIR/info]
1202 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1203 --mandir=DIR man documentation [DATAROOTDIR/man]
1204 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1205 --htmldir=DIR html documentation [DOCDIR]
1206 --dvidir=DIR dvi documentation [DOCDIR]
1207 --pdfdir=DIR pdf documentation [DOCDIR]
1208 --psdir=DIR ps documentation [DOCDIR]
1209 _ACEOF
1211 cat <<\_ACEOF
1213 X features:
1214 --x-includes=DIR X include files are in DIR
1215 --x-libraries=DIR X library files are in DIR
1217 System types:
1218 --build=BUILD configure for building on BUILD [guessed]
1219 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1220 _ACEOF
1223 if test -n "$ac_init_help"; then
1225 cat <<\_ACEOF
1227 Optional Features:
1228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1230 --disable-sdltest Do not try to compile and run a test SDL program
1232 Optional Packages:
1233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1235 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1236 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1237 --with-x use the X Window System
1239 Some influential environment variables:
1240 CC C compiler command
1241 CFLAGS C compiler flags
1242 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1243 nonstandard directory <lib dir>
1244 LIBS libraries to pass to the linker, e.g. -l<library>
1245 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1246 you have headers in a nonstandard directory <include dir>
1247 XMKMF Path to xmkmf, Makefile generator for X Window System
1248 CPP C preprocessor
1250 Use these variables to override the choices made by `configure' or to help
1251 it to find libraries and programs with nonstandard names/locations.
1253 _ACEOF
1254 ac_status=$?
1257 if test "$ac_init_help" = "recursive"; then
1258 # If there are subdirs, report their specific --help.
1259 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1260 test -d "$ac_dir" || continue
1261 ac_builddir=.
1263 case "$ac_dir" in
1264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1266 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1267 # A ".." for each directory in $ac_dir_suffix.
1268 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1269 case $ac_top_builddir_sub in
1270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1272 esac ;;
1273 esac
1274 ac_abs_top_builddir=$ac_pwd
1275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1276 # for backward compatibility:
1277 ac_top_builddir=$ac_top_build_prefix
1279 case $srcdir in
1280 .) # We are building in place.
1281 ac_srcdir=.
1282 ac_top_srcdir=$ac_top_builddir_sub
1283 ac_abs_top_srcdir=$ac_pwd ;;
1284 [\\/]* | ?:[\\/]* ) # Absolute name.
1285 ac_srcdir=$srcdir$ac_dir_suffix;
1286 ac_top_srcdir=$srcdir
1287 ac_abs_top_srcdir=$srcdir ;;
1288 *) # Relative name.
1289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1290 ac_top_srcdir=$ac_top_build_prefix$srcdir
1291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1292 esac
1293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1295 cd "$ac_dir" || { ac_status=$?; continue; }
1296 # Check for guested configure.
1297 if test -f "$ac_srcdir/configure.gnu"; then
1298 echo &&
1299 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1300 elif test -f "$ac_srcdir/configure"; then
1301 echo &&
1302 $SHELL "$ac_srcdir/configure" --help=recursive
1303 else
1304 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1305 fi || ac_status=$?
1306 cd "$ac_pwd" || { ac_status=$?; break; }
1307 done
1310 test -n "$ac_init_help" && exit $ac_status
1311 if $ac_init_version; then
1312 cat <<\_ACEOF
1313 configure
1314 generated by GNU Autoconf 2.61
1316 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1317 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1318 This configure script is free software; the Free Software Foundation
1319 gives unlimited permission to copy, distribute and modify it.
1320 _ACEOF
1321 exit
1323 cat >config.log <<_ACEOF
1324 This file contains any messages produced by compilers while
1325 running configure, to aid debugging if configure makes a mistake.
1327 It was created by $as_me, which was
1328 generated by GNU Autoconf 2.61. Invocation command line was
1330 $ $0 $@
1332 _ACEOF
1333 exec 5>>config.log
1335 cat <<_ASUNAME
1336 ## --------- ##
1337 ## Platform. ##
1338 ## --------- ##
1340 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1346 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1349 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1350 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1351 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1353 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1354 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1355 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1357 _ASUNAME
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1362 IFS=$as_save_IFS
1363 test -z "$as_dir" && as_dir=.
1364 echo "PATH: $as_dir"
1365 done
1366 IFS=$as_save_IFS
1368 } >&5
1370 cat >&5 <<_ACEOF
1373 ## ----------- ##
1374 ## Core tests. ##
1375 ## ----------- ##
1377 _ACEOF
1380 # Keep a trace of the command line.
1381 # Strip out --no-create and --no-recursion so they do not pile up.
1382 # Strip out --silent because we don't want to record it for future runs.
1383 # Also quote any args containing shell meta-characters.
1384 # Make two passes to allow for proper duplicate-argument suppression.
1385 ac_configure_args=
1386 ac_configure_args0=
1387 ac_configure_args1=
1388 ac_must_keep_next=false
1389 for ac_pass in 1 2
1391 for ac_arg
1393 case $ac_arg in
1394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396 | -silent | --silent | --silen | --sile | --sil)
1397 continue ;;
1398 *\'*)
1399 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400 esac
1401 case $ac_pass in
1402 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1404 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405 if test $ac_must_keep_next = true; then
1406 ac_must_keep_next=false # Got value, back to normal.
1407 else
1408 case $ac_arg in
1409 *=* | --config-cache | -C | -disable-* | --disable-* \
1410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412 | -with-* | --with-* | -without-* | --without-* | --x)
1413 case "$ac_configure_args0 " in
1414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415 esac
1417 -* ) ac_must_keep_next=true ;;
1418 esac
1420 ac_configure_args="$ac_configure_args '$ac_arg'"
1422 esac
1423 done
1424 done
1425 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1426 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1428 # When interrupted or exit'd, cleanup temporary files, and complete
1429 # config.log. We remove comments because anyway the quotes in there
1430 # would cause problems or look ugly.
1431 # WARNING: Use '\'' to represent an apostrophe within the trap.
1432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1433 trap 'exit_status=$?
1434 # Save into config.log some information that might help in debugging.
1436 echo
1438 cat <<\_ASBOX
1439 ## ---------------- ##
1440 ## Cache variables. ##
1441 ## ---------------- ##
1442 _ASBOX
1443 echo
1444 # The following way of writing the cache mishandles newlines in values,
1446 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1447 eval ac_val=\$$ac_var
1448 case $ac_val in #(
1449 *${as_nl}*)
1450 case $ac_var in #(
1451 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1452 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1453 esac
1454 case $ac_var in #(
1455 _ | IFS | as_nl) ;; #(
1456 *) $as_unset $ac_var ;;
1457 esac ;;
1458 esac
1459 done
1460 (set) 2>&1 |
1461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1462 *${as_nl}ac_space=\ *)
1463 sed -n \
1464 "s/'\''/'\''\\\\'\'''\''/g;
1465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1466 ;; #(
1468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1470 esac |
1471 sort
1473 echo
1475 cat <<\_ASBOX
1476 ## ----------------- ##
1477 ## Output variables. ##
1478 ## ----------------- ##
1479 _ASBOX
1480 echo
1481 for ac_var in $ac_subst_vars
1483 eval ac_val=\$$ac_var
1484 case $ac_val in
1485 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1486 esac
1487 echo "$ac_var='\''$ac_val'\''"
1488 done | sort
1489 echo
1491 if test -n "$ac_subst_files"; then
1492 cat <<\_ASBOX
1493 ## ------------------- ##
1494 ## File substitutions. ##
1495 ## ------------------- ##
1496 _ASBOX
1497 echo
1498 for ac_var in $ac_subst_files
1500 eval ac_val=\$$ac_var
1501 case $ac_val in
1502 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1503 esac
1504 echo "$ac_var='\''$ac_val'\''"
1505 done | sort
1506 echo
1509 if test -s confdefs.h; then
1510 cat <<\_ASBOX
1511 ## ----------- ##
1512 ## confdefs.h. ##
1513 ## ----------- ##
1514 _ASBOX
1515 echo
1516 cat confdefs.h
1517 echo
1519 test "$ac_signal" != 0 &&
1520 echo "$as_me: caught signal $ac_signal"
1521 echo "$as_me: exit $exit_status"
1522 } >&5
1523 rm -f core *.core core.conftest.* &&
1524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1525 exit $exit_status
1527 for ac_signal in 1 2 13 15; do
1528 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1529 done
1530 ac_signal=0
1532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1533 rm -f -r conftest* confdefs.h
1535 # Predefined preprocessor variables.
1537 cat >>confdefs.h <<_ACEOF
1538 #define PACKAGE_NAME "$PACKAGE_NAME"
1539 _ACEOF
1542 cat >>confdefs.h <<_ACEOF
1543 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1544 _ACEOF
1547 cat >>confdefs.h <<_ACEOF
1548 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1549 _ACEOF
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE_STRING "$PACKAGE_STRING"
1554 _ACEOF
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1559 _ACEOF
1562 # Let the site file select an alternate cache file if it wants to.
1563 # Prefer explicitly selected file to automatically selected ones.
1564 if test -n "$CONFIG_SITE"; then
1565 set x "$CONFIG_SITE"
1566 elif test "x$prefix" != xNONE; then
1567 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1568 else
1569 set x "$ac_default_prefix/share/config.site" \
1570 "$ac_default_prefix/etc/config.site"
1572 shift
1573 for ac_site_file
1575 if test -r "$ac_site_file"; then
1576 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1577 echo "$as_me: loading site script $ac_site_file" >&6;}
1578 sed 's/^/| /' "$ac_site_file" >&5
1579 . "$ac_site_file"
1581 done
1583 if test -r "$cache_file"; then
1584 # Some versions of bash will fail to source /dev/null (special
1585 # files actually), so we avoid doing that.
1586 if test -f "$cache_file"; then
1587 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1588 echo "$as_me: loading cache $cache_file" >&6;}
1589 case $cache_file in
1590 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1591 *) . "./$cache_file";;
1592 esac
1594 else
1595 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1596 echo "$as_me: creating cache $cache_file" >&6;}
1597 >$cache_file
1600 # Check that the precious variables saved in the cache have kept the same
1601 # value.
1602 ac_cache_corrupted=false
1603 for ac_var in $ac_precious_vars; do
1604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1605 eval ac_new_set=\$ac_env_${ac_var}_set
1606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1607 eval ac_new_val=\$ac_env_${ac_var}_value
1608 case $ac_old_set,$ac_new_set in
1609 set,)
1610 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1611 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1612 ac_cache_corrupted=: ;;
1613 ,set)
1614 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1615 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1616 ac_cache_corrupted=: ;;
1617 ,);;
1619 if test "x$ac_old_val" != "x$ac_new_val"; then
1620 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1621 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1622 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1623 echo "$as_me: former value: $ac_old_val" >&2;}
1624 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1625 echo "$as_me: current value: $ac_new_val" >&2;}
1626 ac_cache_corrupted=:
1627 fi;;
1628 esac
1629 # Pass precious variables to config.status.
1630 if test "$ac_new_set" = set; then
1631 case $ac_new_val in
1632 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 *) ac_arg=$ac_var=$ac_new_val ;;
1634 esac
1635 case " $ac_configure_args " in
1636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1637 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1638 esac
1640 done
1641 if $ac_cache_corrupted; then
1642 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1643 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1644 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1645 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1646 { (exit 1); exit 1; }; }
1665 ac_ext=c
1666 ac_cpp='$CPP $CPPFLAGS'
1667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1673 ac_aux_dir=
1674 for ac_dir in $srcdir/../build-scripts; do
1675 if test -f "$ac_dir/install-sh"; then
1676 ac_aux_dir=$ac_dir
1677 ac_install_sh="$ac_aux_dir/install-sh -c"
1678 break
1679 elif test -f "$ac_dir/install.sh"; then
1680 ac_aux_dir=$ac_dir
1681 ac_install_sh="$ac_aux_dir/install.sh -c"
1682 break
1683 elif test -f "$ac_dir/shtool"; then
1684 ac_aux_dir=$ac_dir
1685 ac_install_sh="$ac_aux_dir/shtool install -c"
1686 break
1688 done
1689 if test -z "$ac_aux_dir"; then
1690 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&5
1691 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
1692 { (exit 1); exit 1; }; }
1695 # These three variables are undocumented and unsupported,
1696 # and are intended to be withdrawn in a future Autoconf release.
1697 # They can cause serious problems if a builder's source tree is in a directory
1698 # whose full name contains unusual characters.
1699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1704 # Make sure we can run config.sub.
1705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1706 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1707 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1708 { (exit 1); exit 1; }; }
1710 { echo "$as_me:$LINENO: checking build system type" >&5
1711 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1712 if test "${ac_cv_build+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 ac_build_alias=$build_alias
1716 test "x$ac_build_alias" = x &&
1717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1718 test "x$ac_build_alias" = x &&
1719 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1720 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1721 { (exit 1); exit 1; }; }
1722 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1723 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1724 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1725 { (exit 1); exit 1; }; }
1728 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1729 echo "${ECHO_T}$ac_cv_build" >&6; }
1730 case $ac_cv_build in
1731 *-*-*) ;;
1732 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1733 echo "$as_me: error: invalid value of canonical build" >&2;}
1734 { (exit 1); exit 1; }; };;
1735 esac
1736 build=$ac_cv_build
1737 ac_save_IFS=$IFS; IFS='-'
1738 set x $ac_cv_build
1739 shift
1740 build_cpu=$1
1741 build_vendor=$2
1742 shift; shift
1743 # Remember, the first character of IFS is used to create $*,
1744 # except with old shells:
1745 build_os=$*
1746 IFS=$ac_save_IFS
1747 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1750 { echo "$as_me:$LINENO: checking host system type" >&5
1751 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1752 if test "${ac_cv_host+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test "x$host_alias" = x; then
1756 ac_cv_host=$ac_cv_build
1757 else
1758 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1759 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1760 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1765 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6; }
1767 case $ac_cv_host in
1768 *-*-*) ;;
1769 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1770 echo "$as_me: error: invalid value of canonical host" >&2;}
1771 { (exit 1); exit 1; }; };;
1772 esac
1773 host=$ac_cv_host
1774 ac_save_IFS=$IFS; IFS='-'
1775 set x $ac_cv_host
1776 shift
1777 host_cpu=$1
1778 host_vendor=$2
1779 shift; shift
1780 # Remember, the first character of IFS is used to create $*,
1781 # except with old shells:
1782 host_os=$*
1783 IFS=$ac_save_IFS
1784 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1789 ac_ext=c
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2
1816 done
1817 done
1818 IFS=$as_save_IFS
1822 CC=$ac_cv_prog_CC
1823 if test -n "$CC"; then
1824 { echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6; }
1826 else
1827 { echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6; }
1833 if test -z "$ac_cv_prog_CC"; then
1834 ac_ct_CC=$CC
1835 # Extract the first word of "gcc", so it can be a program name with args.
1836 set dummy gcc; ac_word=$2
1837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test -n "$ac_ct_CC"; then
1843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 ac_cv_prog_ac_ct_CC="gcc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1856 done
1857 done
1858 IFS=$as_save_IFS
1862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863 if test -n "$ac_ct_CC"; then
1864 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865 echo "${ECHO_T}$ac_ct_CC" >&6; }
1866 else
1867 { echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6; }
1871 if test "x$ac_ct_CC" = x; then
1872 CC=""
1873 else
1874 case $cross_compiling:$ac_tool_warned in
1875 yes:)
1876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1877 whose name does not start with the host triplet. If you think this
1878 configuration is useful to you, please write to autoconf@gnu.org." >&5
1879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1880 whose name does not start with the host triplet. If you think this
1881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1882 ac_tool_warned=yes ;;
1883 esac
1884 CC=$ac_ct_CC
1886 else
1887 CC="$ac_cv_prog_CC"
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1915 IFS=$as_save_IFS
1919 CC=$ac_cv_prog_CC
1920 if test -n "$CC"; then
1921 { echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6; }
1923 else
1924 { echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6; }
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 else
1942 ac_prog_rejected=no
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected=yes
1952 continue
1954 ac_cv_prog_CC="cc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1958 done
1959 done
1960 IFS=$as_save_IFS
1962 if test $ac_prog_rejected = yes; then
1963 # We found a bogon in the path, so make sure we never use it.
1964 set dummy $ac_cv_prog_CC
1965 shift
1966 if test $# != 0; then
1967 # We chose a different compiler from the bogus one.
1968 # However, it has the same basename, so the bogon will be chosen
1969 # first if we set CC to just the basename; use the full file name.
1970 shift
1971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1976 CC=$ac_cv_prog_CC
1977 if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6; }
1980 else
1981 { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1987 if test -z "$CC"; then
1988 if test -n "$ac_tool_prefix"; then
1989 for ac_prog in cl.exe
1991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2012 done
2013 done
2014 IFS=$as_save_IFS
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020 { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2022 else
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2028 test -n "$CC" && break
2029 done
2031 if test -z "$CC"; then
2032 ac_ct_CC=$CC
2033 for ac_prog in cl.exe
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_ac_ct_CC="$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2056 done
2057 done
2058 IFS=$as_save_IFS
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6; }
2066 else
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2072 test -n "$ac_ct_CC" && break
2073 done
2075 if test "x$ac_ct_CC" = x; then
2076 CC=""
2077 else
2078 case $cross_compiling:$ac_tool_warned in
2079 yes:)
2080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&5
2083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet. If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2086 ac_tool_warned=yes ;;
2087 esac
2088 CC=$ac_ct_CC
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO: checking for C compiler version" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (ac_try="$ac_compiler --version >&5"
2105 case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110 (eval "$ac_compiler --version >&5") 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (ac_try="$ac_compiler -v >&5"
2115 case "(($ac_try" in
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler -v >&5") 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (ac_try="$ac_compiler -V >&5"
2125 case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler -V >&5") 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2135 cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h. */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2143 main ()
2147 return 0;
2149 _ACEOF
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2154 # of exeext.
2155 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 # List of possible output files, starting from the most likely.
2160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2161 # only as a last resort. b.out is created by i960 compilers.
2162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2164 # The IRIX 6 linker writes into existing files which may not be
2165 # executable, retaining their permissions. Remove them first so a
2166 # subsequent execution test works.
2167 ac_rmfiles=
2168 for ac_file in $ac_files
2170 case $ac_file in
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2173 esac
2174 done
2175 rm -f $ac_rmfiles
2177 if { (ac_try="$ac_link_default"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2183 (eval "$ac_link_default") 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2190 # so that the user can short-circuit this test for compilers unknown to
2191 # Autoconf.
2192 for ac_file in $ac_files ''
2194 test -f "$ac_file" || continue
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2198 [ab].out )
2199 # We found the default executable, but exeext='' is most
2200 # certainly right.
2201 break;;
2202 *.* )
2203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2204 then :; else
2205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 # We set ac_cv_exeext here because the later test for it is not
2208 # safe: cross compilers may not add the suffix if given an `-o'
2209 # argument, so we may need to know it at that point already.
2210 # Even if this section looks crufty: it has the advantage of
2211 # actually working.
2212 break;;
2214 break;;
2215 esac
2216 done
2217 test "$ac_cv_exeext" = no && ac_cv_exeext=
2219 else
2220 ac_file=''
2223 { echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6; }
2225 if test -z "$ac_file"; then
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2238 # Check that the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2243 # If not cross compiling, check that we can run a simple program.
2244 if test "$cross_compiling" != yes; then
2245 if { ac_try='./$ac_file'
2246 { (case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249 esac
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_try") 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 cross_compiling=no
2256 else
2257 if test "$cross_compiling" = maybe; then
2258 cross_compiling=yes
2259 else
2260 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \`config.log' for more details." >&5
2263 echo "$as_me: error: cannot run C compiled programs.
2264 If you meant to cross compile, use \`--host'.
2265 See \`config.log' for more details." >&2;}
2266 { (exit 1); exit 1; }; }
2270 { echo "$as_me:$LINENO: result: yes" >&5
2271 echo "${ECHO_T}yes" >&6; }
2273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2274 ac_clean_files=$ac_clean_files_save
2275 # Check that the compiler produces executables we can run. If not, either
2276 # the compiler is broken, or we cross compile.
2277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2280 echo "${ECHO_T}$cross_compiling" >&6; }
2282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2284 if { (ac_try="$ac_link"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_link") 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; then
2294 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2295 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2296 # work properly (i.e., refer to `conftest.exe'), while it won't with
2297 # `rm'.
2298 for ac_file in conftest.exe conftest conftest.*; do
2299 test -f "$ac_file" || continue
2300 case $ac_file in
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303 break;;
2304 * ) break;;
2305 esac
2306 done
2307 else
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest$ac_cv_exeext
2316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2319 rm -f conftest.$ac_ext
2320 EXEEXT=$ac_cv_exeext
2321 ac_exeext=$EXEEXT
2322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2335 main ()
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.o conftest.obj
2343 if { (ac_try="$ac_compile"
2344 case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compile") 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file in conftest.o conftest.obj conftest.*; do
2354 test -f "$ac_file" || continue;
2355 case $ac_file in
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358 break;;
2359 esac
2360 done
2361 else
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&2;}
2369 { (exit 1); exit 1; }; }
2372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375 echo "${ECHO_T}$ac_cv_objext" >&6; }
2376 OBJEXT=$ac_cv_objext
2377 ac_objext=$OBJEXT
2378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2391 main ()
2393 #ifndef __GNUC__
2394 choke me
2395 #endif
2398 return 0;
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (ac_try="$ac_compile"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_compile") 2>conftest.er1
2409 ac_status=$?
2410 grep -v '^ *+' conftest.er1 >conftest.err
2411 rm -f conftest.er1
2412 cat conftest.err >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } && {
2415 test -z "$ac_c_werror_flag" ||
2416 test ! -s conftest.err
2417 } && test -s conftest.$ac_objext; then
2418 ac_compiler_gnu=yes
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2423 ac_compiler_gnu=no
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2432 GCC=`test $ac_compiler_gnu = yes && echo yes`
2433 ac_test_CFLAGS=${CFLAGS+set}
2434 ac_save_CFLAGS=$CFLAGS
2435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_cc_g+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 ac_save_c_werror_flag=$ac_c_werror_flag
2441 ac_c_werror_flag=yes
2442 ac_cv_prog_cc_g=no
2443 CFLAGS="-g"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 main ()
2456 return 0;
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (ac_try="$ac_compile"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compile") 2>conftest.er1
2467 ac_status=$?
2468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } && {
2473 test -z "$ac_c_werror_flag" ||
2474 test ! -s conftest.err
2475 } && test -s conftest.$ac_objext; then
2476 ac_cv_prog_cc_g=yes
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 CFLAGS=""
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 main ()
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (ac_try="$ac_compile"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } && {
2511 test -z "$ac_c_werror_flag" ||
2512 test ! -s conftest.err
2513 } && test -s conftest.$ac_objext; then
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 ac_c_werror_flag=$ac_save_c_werror_flag
2520 CFLAGS="-g"
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2529 main ()
2533 return 0;
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2538 case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } && {
2550 test -z "$ac_c_werror_flag" ||
2551 test ! -s conftest.err
2552 } && test -s conftest.$ac_objext; then
2553 ac_cv_prog_cc_g=yes
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568 ac_c_werror_flag=$ac_save_c_werror_flag
2570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2572 if test "$ac_test_CFLAGS" = set; then
2573 CFLAGS=$ac_save_CFLAGS
2574 elif test $ac_cv_prog_cc_g = yes; then
2575 if test "$GCC" = yes; then
2576 CFLAGS="-g -O2"
2577 else
2578 CFLAGS="-g"
2580 else
2581 if test "$GCC" = yes; then
2582 CFLAGS="-O2"
2583 else
2584 CFLAGS=
2587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_cc_c89+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 ac_cv_prog_cc_c89=no
2593 ac_save_CC=$CC
2594 cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 #include <stdarg.h>
2601 #include <stdio.h>
2602 #include <sys/types.h>
2603 #include <sys/stat.h>
2604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2605 struct buf { int x; };
2606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2607 static char *e (p, i)
2608 char **p;
2609 int i;
2611 return p[i];
2613 static char *f (char * (*g) (char **, int), char **p, ...)
2615 char *s;
2616 va_list v;
2617 va_start (v,p);
2618 s = g (p, va_arg (v,int));
2619 va_end (v);
2620 return s;
2623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2624 function prototypes and stuff, but not '\xHH' hex character constants.
2625 These don't provoke an error unfortunately, instead are silently treated
2626 as 'x'. The following induces an error, until -std is added to get
2627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2628 array size at least. It's necessary to write '\x00'==0 to get something
2629 that's true only with -std. */
2630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2633 inside strings and character constants. */
2634 #define FOO(x) 'x'
2635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2637 int test (int i, double x);
2638 struct s1 {int (*f) (int a);};
2639 struct s2 {int (*f) (double a);};
2640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2641 int argc;
2642 char **argv;
2644 main ()
2646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2648 return 0;
2650 _ACEOF
2651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2654 CC="$ac_save_CC $ac_arg"
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2672 ac_cv_prog_cc_c89=$ac_arg
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f core conftest.err conftest.$ac_objext
2681 test "x$ac_cv_prog_cc_c89" != "xno" && break
2682 done
2683 rm -f conftest.$ac_ext
2684 CC=$ac_save_CC
2687 # AC_CACHE_VAL
2688 case "x$ac_cv_prog_cc_c89" in
2690 { echo "$as_me:$LINENO: result: none needed" >&5
2691 echo "${ECHO_T}none needed" >&6; } ;;
2692 xno)
2693 { echo "$as_me:$LINENO: result: unsupported" >&5
2694 echo "${ECHO_T}unsupported" >&6; } ;;
2696 CC="$CC $ac_cv_prog_cc_c89"
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2699 esac
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2712 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
2713 if test "${ac_cv_c_const+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 main ()
2726 /* FIXME: Include the comments suggested by Paul. */
2727 #ifndef __cplusplus
2728 /* Ultrix mips cc rejects this. */
2729 typedef int charset[2];
2730 const charset cs;
2731 /* SunOS 4.1.1 cc rejects this. */
2732 char const *const *pcpcc;
2733 char **ppc;
2734 /* NEC SVR4.0.2 mips cc rejects this. */
2735 struct point {int x, y;};
2736 static struct point const zero = {0,0};
2737 /* AIX XL C 1.02.0.0 rejects this.
2738 It does not let you subtract one const X* pointer from another in
2739 an arm of an if-expression whose if-part is not a constant
2740 expression */
2741 const char *g = "string";
2742 pcpcc = &g + (g ? g-g : 0);
2743 /* HPUX 7.0 cc rejects these. */
2744 ++pcpcc;
2745 ppc = (char**) pcpcc;
2746 pcpcc = (char const *const *) ppc;
2747 { /* SCO 3.2v4 cc rejects this. */
2748 char *t;
2749 char const *s = 0 ? (char *) 0 : (char const *) 0;
2751 *t++ = 0;
2752 if (s) return 0;
2754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2755 int x[] = {25, 17};
2756 const int *foo = &x[0];
2757 ++foo;
2759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2760 typedef const int *iptr;
2761 iptr p = 0;
2762 ++p;
2764 { /* AIX XL C 1.02.0.0 rejects this saying
2765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2766 struct s { int j; const int *ap[3]; };
2767 struct s *b; b->j = 5;
2769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2770 const int foo = 10;
2771 if (!foo) return 0;
2773 return !cs[0] && !zero.x;
2774 #endif
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (ac_try="$ac_compile"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2797 ac_cv_c_const=yes
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 ac_cv_c_const=no
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2808 echo "${ECHO_T}$ac_cv_c_const" >&6; }
2809 if test $ac_cv_c_const = no; then
2811 cat >>confdefs.h <<\_ACEOF
2812 #define const
2813 _ACEOF
2818 case "$host" in
2819 *-*-cygwin* | *-*-mingw32*)
2820 EXE=".exe"
2821 MATHLIB=""
2822 SYS_GL_LIBS="-lopengl32"
2824 *-*-beos*)
2825 EXE=""
2826 MATHLIB=""
2827 SYS_GL_LIBS="-lGL"
2829 *-*-darwin* )
2830 EXE=""
2831 MATHLIB=""
2832 SYS_GL_LIBS="-Wl,-framework,OpenGL"
2834 *-*-aix*)
2835 EXE=""
2836 if test x$ac_cv_c_compiler_gnu = xyes; then
2837 CFLAGS="-mthreads"
2839 SYS_GL_LIBS=""
2841 *-*-mint*)
2842 EXE=""
2843 MATHLIB=""
2844 # Extract the first word of "osmesa-config", so it can be a program name with args.
2845 set dummy osmesa-config; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851 case $OSMESA_CONFIG in
2852 [\\/]* | ?:[\\/]*)
2853 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2867 done
2868 done
2869 IFS=$as_save_IFS
2871 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2873 esac
2875 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2876 if test -n "$OSMESA_CONFIG"; then
2877 { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
2878 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
2879 else
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2885 if test "x$OSMESA_CONFIG" = "xyes"; then
2886 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2887 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2888 CFLAGS="$CFLAGS $OSMESA_CFLAGS"
2889 SYS_GL_LIBS="$OSMESA_LIBS"
2890 else
2891 SYS_GL_LIBS="-lOSMesa"
2895 EXE=""
2896 MATHLIB="-lm"
2897 SYS_GL_LIBS="-lGL"
2899 esac
2903 SDL_VERSION=1.2.10
2905 # Check whether --with-sdl-prefix was given.
2906 if test "${with_sdl_prefix+set}" = set; then
2907 withval=$with_sdl_prefix; sdl_prefix="$withval"
2908 else
2909 sdl_prefix=""
2913 # Check whether --with-sdl-exec-prefix was given.
2914 if test "${with_sdl_exec_prefix+set}" = set; then
2915 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
2916 else
2917 sdl_exec_prefix=""
2920 # Check whether --enable-sdltest was given.
2921 if test "${enable_sdltest+set}" = set; then
2922 enableval=$enable_sdltest;
2923 else
2924 enable_sdltest=yes
2928 if test x$sdl_exec_prefix != x ; then
2929 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
2930 if test x${SDL_CONFIG+set} != xset ; then
2931 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
2934 if test x$sdl_prefix != x ; then
2935 sdl_args="$sdl_args --prefix=$sdl_prefix"
2936 if test x${SDL_CONFIG+set} != xset ; then
2937 SDL_CONFIG=$sdl_prefix/bin/sdl-config
2941 if test "x$prefix" != xNONE; then
2942 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
2944 # Extract the first word of "sdl-config", so it can be a program name with args.
2945 set dummy sdl-config; ac_word=$2
2946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 case $SDL_CONFIG in
2952 [\\/]* | ?:[\\/]*)
2953 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2969 IFS=$as_save_IFS
2971 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2973 esac
2975 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2976 if test -n "$SDL_CONFIG"; then
2977 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2978 echo "${ECHO_T}$SDL_CONFIG" >&6; }
2979 else
2980 { echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6; }
2985 min_sdl_version=$SDL_VERSION
2986 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2987 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
2988 no_sdl=""
2989 if test "$SDL_CONFIG" = "no" ; then
2990 no_sdl=yes
2991 else
2992 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
2993 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
2995 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
2996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2997 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
2998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2999 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3001 if test "x$enable_sdltest" = "xyes" ; then
3002 ac_save_CFLAGS="$CFLAGS"
3003 ac_save_CXXFLAGS="$CXXFLAGS"
3004 ac_save_LIBS="$LIBS"
3005 CFLAGS="$CFLAGS $SDL_CFLAGS"
3006 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3007 LIBS="$LIBS $SDL_LIBS"
3008 rm -f conf.sdltest
3009 if test "$cross_compiling" = yes; then
3010 echo $ac_n "cross compiling; assumed OK... $ac_c"
3011 else
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3019 #include <stdio.h>
3020 #include <stdlib.h>
3021 #include <string.h>
3022 #include "SDL.h"
3024 char*
3025 my_strdup (char *str)
3027 char *new_str;
3029 if (str)
3031 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3032 strcpy (new_str, str);
3034 else
3035 new_str = NULL;
3037 return new_str;
3040 int main (int argc, char *argv[])
3042 int major, minor, micro;
3043 char *tmp_version;
3045 /* This hangs on some systems (?)
3046 system ("touch conf.sdltest");
3048 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3050 /* HP/UX 9 (%@#!) writes to sscanf strings */
3051 tmp_version = my_strdup("$min_sdl_version");
3052 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3053 printf("%s, bad version string\n", "$min_sdl_version");
3054 exit(1);
3057 if (($sdl_major_version > major) ||
3058 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3059 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3061 return 0;
3063 else
3065 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3066 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3067 printf("*** best to upgrade to the required version.\n");
3068 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3069 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3070 printf("*** config.cache before re-running configure\n");
3071 return 1;
3076 _ACEOF
3077 rm -f conftest$ac_exeext
3078 if { (ac_try="$ac_link"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_link") 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3098 else
3099 echo "$as_me: program exited with status $ac_status" >&5
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ( exit $ac_status )
3104 no_sdl=yes
3106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3110 CFLAGS="$ac_save_CFLAGS"
3111 CXXFLAGS="$ac_save_CXXFLAGS"
3112 LIBS="$ac_save_LIBS"
3115 if test "x$no_sdl" = x ; then
3116 { echo "$as_me:$LINENO: result: yes" >&5
3117 echo "${ECHO_T}yes" >&6; }
3119 else
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3122 if test "$SDL_CONFIG" = "no" ; then
3123 echo "*** The sdl-config script installed by SDL could not be found"
3124 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3125 echo "*** your path, or set the SDL_CONFIG environment variable to the"
3126 echo "*** full path to sdl-config."
3127 else
3128 if test -f conf.sdltest ; then
3130 else
3131 echo "*** Could not run SDL test program, checking why..."
3132 CFLAGS="$CFLAGS $SDL_CFLAGS"
3133 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3134 LIBS="$LIBS $SDL_LIBS"
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3142 #include <stdio.h>
3143 #include "SDL.h"
3145 int main(int argc, char *argv[])
3146 { return 0; }
3147 #undef main
3148 #define main K_and_R_C_main
3151 main ()
3153 return 0;
3155 return 0;
3157 _ACEOF
3158 rm -f conftest.$ac_objext conftest$ac_exeext
3159 if { (ac_try="$ac_link"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_link") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest$ac_exeext &&
3175 $as_test_x conftest$ac_exeext; then
3176 echo "*** The test program compiled, but did not run. This usually means"
3177 echo "*** that the run-time linker is not finding SDL or finding the wrong"
3178 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3179 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3180 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3181 echo "*** is required on your system"
3182 echo "***"
3183 echo "*** If you have an old version installed, it is best to remove it, although"
3184 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 echo "*** The test program failed to compile or link. See the file config.log for the"
3190 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3191 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3192 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3196 conftest$ac_exeext conftest.$ac_ext
3197 CFLAGS="$ac_save_CFLAGS"
3198 CXXFLAGS="$ac_save_CXXFLAGS"
3199 LIBS="$ac_save_LIBS"
3202 SDL_CFLAGS=""
3203 SDL_LIBS=""
3204 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
3205 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
3206 { (exit 1); exit 1; }; }
3211 rm -f conf.sdltest
3213 CFLAGS="$CFLAGS $SDL_CFLAGS"
3214 LIBS="$LIBS $SDL_LIBS"
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3222 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3223 # On Suns, sometimes $CPP names a directory.
3224 if test -n "$CPP" && test -d "$CPP"; then
3225 CPP=
3227 if test -z "$CPP"; then
3228 if test "${ac_cv_prog_CPP+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 # Double quotes because CPP needs to be expanded
3232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 ac_preproc_ok=false
3235 for ac_c_preproc_warn_flag in '' yes
3237 # Use a header file that comes with gcc, so configuring glibc
3238 # with a fresh cross-compiler works.
3239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3240 # <limits.h> exists even on freestanding compilers.
3241 # On the NeXT, cc -E runs the code through the compiler's parser,
3242 # not just through cpp. "Syntax error" is here to catch this case.
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249 #ifdef __STDC__
3250 # include <limits.h>
3251 #else
3252 # include <assert.h>
3253 #endif
3254 Syntax error
3255 _ACEOF
3256 if { (ac_try="$ac_cpp conftest.$ac_ext"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 }; then
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3278 continue
3281 rm -f conftest.err conftest.$ac_ext
3283 # OK, works on sane cases. Now check whether nonexistent headers
3284 # can be detected and how.
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <ac_nonexistent.h>
3292 _ACEOF
3293 if { (ac_try="$ac_cpp conftest.$ac_ext"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null && {
3306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 }; then
3309 # Broken: success on invalid input.
3310 continue
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Passes both tests.
3316 ac_preproc_ok=:
3317 break
3320 rm -f conftest.err conftest.$ac_ext
3322 done
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3326 break
3329 done
3330 ac_cv_prog_CPP=$CPP
3333 CPP=$ac_cv_prog_CPP
3334 else
3335 ac_cv_prog_CPP=$CPP
3337 { echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6; }
3339 ac_preproc_ok=false
3340 for ac_c_preproc_warn_flag in '' yes
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h. */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 #ifdef __STDC__
3355 # include <limits.h>
3356 #else
3357 # include <assert.h>
3358 #endif
3359 Syntax error
3360 _ACEOF
3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3383 continue
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null && {
3411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 }; then
3414 # Broken: success on invalid input.
3415 continue
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Passes both tests.
3421 ac_preproc_ok=:
3422 break
3425 rm -f conftest.err conftest.$ac_ext
3427 done
3428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429 rm -f conftest.err conftest.$ac_ext
3430 if $ac_preproc_ok; then
3432 else
3433 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&5
3435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 { echo "$as_me:$LINENO: checking for X" >&5
3448 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3451 # Check whether --with-x was given.
3452 if test "${with_x+set}" = set; then
3453 withval=$with_x;
3456 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3457 if test "x$with_x" = xno; then
3458 # The user explicitly disabled X.
3459 have_x=disabled
3460 else
3461 case $x_includes,$x_libraries in #(
3462 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3463 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3464 { (exit 1); exit 1; }; };; #(
3465 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 # One or both of the vars are not set, and there is no cached value.
3469 ac_x_includes=no ac_x_libraries=no
3470 rm -f -r conftest.dir
3471 if mkdir conftest.dir; then
3472 cd conftest.dir
3473 cat >Imakefile <<'_ACEOF'
3474 incroot:
3475 @echo incroot='${INCROOT}'
3476 usrlibdir:
3477 @echo usrlibdir='${USRLIBDIR}'
3478 libdir:
3479 @echo libdir='${LIBDIR}'
3480 _ACEOF
3481 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3483 for ac_var in incroot usrlibdir libdir; do
3484 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3485 done
3486 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3487 for ac_extension in a so sl; do
3488 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3489 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3490 ac_im_usrlibdir=$ac_im_libdir; break
3492 done
3493 # Screen out bogus values from the imake configuration. They are
3494 # bogus both because they are the default anyway, and because
3495 # using them would break gcc on systems where it needs fixed includes.
3496 case $ac_im_incroot in
3497 /usr/include) ac_x_includes= ;;
3498 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3499 esac
3500 case $ac_im_usrlibdir in
3501 /usr/lib | /lib) ;;
3502 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3503 esac
3505 cd ..
3506 rm -f -r conftest.dir
3509 # Standard set of common directories for X headers.
3510 # Check X11 before X11Rn because it is often a symlink to the current release.
3511 ac_x_header_dirs='
3512 /usr/X11/include
3513 /usr/X11R6/include
3514 /usr/X11R5/include
3515 /usr/X11R4/include
3517 /usr/include/X11
3518 /usr/include/X11R6
3519 /usr/include/X11R5
3520 /usr/include/X11R4
3522 /usr/local/X11/include
3523 /usr/local/X11R6/include
3524 /usr/local/X11R5/include
3525 /usr/local/X11R4/include
3527 /usr/local/include/X11
3528 /usr/local/include/X11R6
3529 /usr/local/include/X11R5
3530 /usr/local/include/X11R4
3532 /usr/X386/include
3533 /usr/x386/include
3534 /usr/XFree86/include/X11
3536 /usr/include
3537 /usr/local/include
3538 /usr/unsupported/include
3539 /usr/athena/include
3540 /usr/local/x11r5/include
3541 /usr/lpp/Xamples/include
3543 /usr/openwin/include
3544 /usr/openwin/share/include'
3546 if test "$ac_x_includes" = no; then
3547 # Guess where to find include files, by looking for Xlib.h.
3548 # First, try using that file with no special directory specified.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <X11/Xlib.h>
3556 _ACEOF
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 }; then
3573 # We can compile using X headers with no special include directory.
3574 ac_x_includes=
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 for ac_dir in $ac_x_header_dirs; do
3580 if test -r "$ac_dir/X11/Xlib.h"; then
3581 ac_x_includes=$ac_dir
3582 break
3584 done
3587 rm -f conftest.err conftest.$ac_ext
3588 fi # $ac_x_includes = no
3590 if test "$ac_x_libraries" = no; then
3591 # Check for the libraries.
3592 # See if we find them without any special options.
3593 # Don't add to $LIBS permanently.
3594 ac_save_LIBS=$LIBS
3595 LIBS="-lX11 $LIBS"
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <X11/Xlib.h>
3604 main ()
3606 XrmInitialize ()
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.$ac_objext conftest$ac_exeext
3612 if { (ac_try="$ac_link"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_link") 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest$ac_exeext &&
3628 $as_test_x conftest$ac_exeext; then
3629 LIBS=$ac_save_LIBS
3630 # We can link X programs with no special library path.
3631 ac_x_libraries=
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 LIBS=$ac_save_LIBS
3637 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3639 # Don't even attempt the hair of trying to link an X program!
3640 for ac_extension in a so sl; do
3641 if test -r "$ac_dir/libX11.$ac_extension"; then
3642 ac_x_libraries=$ac_dir
3643 break 2
3645 done
3646 done
3649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3650 conftest$ac_exeext conftest.$ac_ext
3651 fi # $ac_x_libraries = no
3653 case $ac_x_includes,$ac_x_libraries in #(
3654 no,* | *,no | *\'*)
3655 # Didn't find X, or a directory has "'" in its name.
3656 ac_cv_have_x="have_x=no";; #(
3658 # Record where we found X for the cache.
3659 ac_cv_have_x="have_x=yes\
3660 ac_x_includes='$ac_x_includes'\
3661 ac_x_libraries='$ac_x_libraries'"
3662 esac
3664 ;; #(
3665 *) have_x=yes;;
3666 esac
3667 eval "$ac_cv_have_x"
3668 fi # $with_x != no
3670 if test "$have_x" != yes; then
3671 { echo "$as_me:$LINENO: result: $have_x" >&5
3672 echo "${ECHO_T}$have_x" >&6; }
3673 no_x=yes
3674 else
3675 # If each of the values was on the command line, it overrides each guess.
3676 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3677 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3678 # Update the cache value to reflect the command line values.
3679 ac_cv_have_x="have_x=yes\
3680 ac_x_includes='$x_includes'\
3681 ac_x_libraries='$x_libraries'"
3682 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3683 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3686 if test x$have_x = xyes; then
3687 if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
3689 else
3690 CFLAGS="$CFLAGS -I$ac_x_includes"
3692 if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
3694 else
3695 XPATH="-L$ac_x_libraries"
3699 { echo "$as_me:$LINENO: checking for OpenGL support" >&5
3700 echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
3701 have_opengl=no
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3709 #include "SDL_opengl.h"
3712 main ()
3717 return 0;
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (ac_try="$ac_compile"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_compile") 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3738 have_opengl=yes
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 { echo "$as_me:$LINENO: result: $have_opengl" >&5
3749 echo "${ECHO_T}$have_opengl" >&6; }
3750 if test x$have_opengl = xyes; then
3751 CFLAGS="$CFLAGS -DHAVE_OPENGL"
3752 GLLIB="$XPATH $SYS_GL_LIBS"
3753 else
3754 GLLIB=""
3758 ac_config_files="$ac_config_files Makefile"
3760 cat >confcache <<\_ACEOF
3761 # This file is a shell script that caches the results of configure
3762 # tests run on this system so they can be shared between configure
3763 # scripts and configure runs, see configure's option --config-cache.
3764 # It is not useful on other systems. If it contains results you don't
3765 # want to keep, you may remove or edit it.
3767 # config.status only pays attention to the cache file if you give it
3768 # the --recheck option to rerun configure.
3770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3772 # following values.
3774 _ACEOF
3776 # The following way of writing the cache mishandles newlines in values,
3777 # but we know of no workaround that is simple, portable, and efficient.
3778 # So, we kill variables containing newlines.
3779 # Ultrix sh set writes to stderr and can't be redirected directly,
3780 # and sets the high bit in the cache file unless we assign to the vars.
3782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3783 eval ac_val=\$$ac_var
3784 case $ac_val in #(
3785 *${as_nl}*)
3786 case $ac_var in #(
3787 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3788 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3789 esac
3790 case $ac_var in #(
3791 _ | IFS | as_nl) ;; #(
3792 *) $as_unset $ac_var ;;
3793 esac ;;
3794 esac
3795 done
3797 (set) 2>&1 |
3798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3799 *${as_nl}ac_space=\ *)
3800 # `set' does not quote correctly, so add quotes (double-quote
3801 # substitution turns \\\\ into \\, and sed turns \\ into \).
3802 sed -n \
3803 "s/'/'\\\\''/g;
3804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3805 ;; #(
3807 # `set' quotes correctly as required by POSIX, so do not add quotes.
3808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3810 esac |
3811 sort
3813 sed '
3814 /^ac_cv_env_/b end
3815 t clear
3816 :clear
3817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3818 t end
3819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3820 :end' >>confcache
3821 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3822 if test -w "$cache_file"; then
3823 test "x$cache_file" != "x/dev/null" &&
3824 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3825 echo "$as_me: updating cache $cache_file" >&6;}
3826 cat confcache >$cache_file
3827 else
3828 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3829 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3832 rm -f confcache
3834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3835 # Let make expand exec_prefix.
3836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3838 # Transform confdefs.h into DEFS.
3839 # Protect against shell expansion while executing Makefile rules.
3840 # Protect against Makefile macro expansion.
3842 # If the first sed substitution is executed (which looks for macros that
3843 # take arguments), then branch to the quote section. Otherwise,
3844 # look for a macro that doesn't take arguments.
3845 ac_script='
3846 t clear
3847 :clear
3848 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3849 t quote
3850 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3851 t quote
3852 b any
3853 :quote
3854 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3855 s/\[/\\&/g
3856 s/\]/\\&/g
3857 s/\$/$$/g
3859 :any
3862 s/^\n//
3863 s/\n/ /g
3867 DEFS=`sed -n "$ac_script" confdefs.h`
3870 ac_libobjs=
3871 ac_ltlibobjs=
3872 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3873 # 1. Remove the extension, and $U if already installed.
3874 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3875 ac_i=`echo "$ac_i" | sed "$ac_script"`
3876 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3877 # will be set to the directory where LIBOBJS objects are built.
3878 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3879 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3880 done
3881 LIBOBJS=$ac_libobjs
3883 LTLIBOBJS=$ac_ltlibobjs
3887 : ${CONFIG_STATUS=./config.status}
3888 ac_clean_files_save=$ac_clean_files
3889 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3890 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3891 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3892 cat >$CONFIG_STATUS <<_ACEOF
3893 #! $SHELL
3894 # Generated by $as_me.
3895 # Run this file to recreate the current configuration.
3896 # Compiler output produced by configure, useful for debugging
3897 # configure, is in config.log if it exists.
3899 debug=false
3900 ac_cs_recheck=false
3901 ac_cs_silent=false
3902 SHELL=\${CONFIG_SHELL-$SHELL}
3903 _ACEOF
3905 cat >>$CONFIG_STATUS <<\_ACEOF
3906 ## --------------------- ##
3907 ## M4sh Initialization. ##
3908 ## --------------------- ##
3910 # Be more Bourne compatible
3911 DUALCASE=1; export DUALCASE # for MKS sh
3912 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3913 emulate sh
3914 NULLCMD=:
3915 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3916 # is contrary to our usage. Disable this feature.
3917 alias -g '${1+"$@"}'='"$@"'
3918 setopt NO_GLOB_SUBST
3919 else
3920 case `(set -o) 2>/dev/null` in
3921 *posix*) set -o posix ;;
3922 esac
3929 # PATH needs CR
3930 # Avoid depending upon Character Ranges.
3931 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3932 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3933 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3934 as_cr_digits='0123456789'
3935 as_cr_alnum=$as_cr_Letters$as_cr_digits
3937 # The user is always right.
3938 if test "${PATH_SEPARATOR+set}" != set; then
3939 echo "#! /bin/sh" >conf$$.sh
3940 echo "exit 0" >>conf$$.sh
3941 chmod +x conf$$.sh
3942 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3943 PATH_SEPARATOR=';'
3944 else
3945 PATH_SEPARATOR=:
3947 rm -f conf$$.sh
3950 # Support unset when possible.
3951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3952 as_unset=unset
3953 else
3954 as_unset=false
3958 # IFS
3959 # We need space, tab and new line, in precisely that order. Quoting is
3960 # there to prevent editors from complaining about space-tab.
3961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3962 # splitting by setting IFS to empty value.)
3963 as_nl='
3965 IFS=" "" $as_nl"
3967 # Find who we are. Look in the path if we contain no directory separator.
3968 case $0 in
3969 *[\\/]* ) as_myself=$0 ;;
3970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3976 done
3977 IFS=$as_save_IFS
3980 esac
3981 # We did not find ourselves, most probably we were run as `sh COMMAND'
3982 # in which case we are not to be found in the path.
3983 if test "x$as_myself" = x; then
3984 as_myself=$0
3986 if test ! -f "$as_myself"; then
3987 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3988 { (exit 1); exit 1; }
3991 # Work around bugs in pre-3.0 UWIN ksh.
3992 for as_var in ENV MAIL MAILPATH
3993 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3994 done
3995 PS1='$ '
3996 PS2='> '
3997 PS4='+ '
3999 # NLS nuisances.
4000 for as_var in \
4001 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4002 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4003 LC_TELEPHONE LC_TIME
4005 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4006 eval $as_var=C; export $as_var
4007 else
4008 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4010 done
4012 # Required to use basename.
4013 if expr a : '\(a\)' >/dev/null 2>&1 &&
4014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4015 as_expr=expr
4016 else
4017 as_expr=false
4020 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4021 as_basename=basename
4022 else
4023 as_basename=false
4027 # Name of the executable.
4028 as_me=`$as_basename -- "$0" ||
4029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4030 X"$0" : 'X\(//\)$' \| \
4031 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4032 echo X/"$0" |
4033 sed '/^.*\/\([^/][^/]*\)\/*$/{
4034 s//\1/
4037 /^X\/\(\/\/\)$/{
4038 s//\1/
4041 /^X\/\(\/\).*/{
4042 s//\1/
4045 s/.*/./; q'`
4047 # CDPATH.
4048 $as_unset CDPATH
4052 as_lineno_1=$LINENO
4053 as_lineno_2=$LINENO
4054 test "x$as_lineno_1" != "x$as_lineno_2" &&
4055 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4057 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4058 # uniformly replaced by the line number. The first 'sed' inserts a
4059 # line-number line after each line using $LINENO; the second 'sed'
4060 # does the real work. The second script uses 'N' to pair each
4061 # line-number line with the line containing $LINENO, and appends
4062 # trailing '-' during substitution so that $LINENO is not a special
4063 # case at line end.
4064 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4065 # scripts with optimization help from Paolo Bonzini. Blame Lee
4066 # E. McMahon (1931-1989) for sed's syntax. :-)
4067 sed -n '
4069 /[$]LINENO/=
4070 ' <$as_myself |
4071 sed '
4072 s/[$]LINENO.*/&-/
4073 t lineno
4075 :lineno
4077 :loop
4078 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4079 t loop
4080 s/-\n.*//
4081 ' >$as_me.lineno &&
4082 chmod +x "$as_me.lineno" ||
4083 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4084 { (exit 1); exit 1; }; }
4086 # Don't try to exec as it changes $[0], causing all sort of problems
4087 # (the dirname of $[0] is not the place where we might find the
4088 # original and so on. Autoconf is especially sensitive to this).
4089 . "./$as_me.lineno"
4090 # Exit status is that of the last command.
4091 exit
4095 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4096 as_dirname=dirname
4097 else
4098 as_dirname=false
4101 ECHO_C= ECHO_N= ECHO_T=
4102 case `echo -n x` in
4103 -n*)
4104 case `echo 'x\c'` in
4105 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4106 *) ECHO_C='\c';;
4107 esac;;
4109 ECHO_N='-n';;
4110 esac
4112 if expr a : '\(a\)' >/dev/null 2>&1 &&
4113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4114 as_expr=expr
4115 else
4116 as_expr=false
4119 rm -f conf$$ conf$$.exe conf$$.file
4120 if test -d conf$$.dir; then
4121 rm -f conf$$.dir/conf$$.file
4122 else
4123 rm -f conf$$.dir
4124 mkdir conf$$.dir
4126 echo >conf$$.file
4127 if ln -s conf$$.file conf$$ 2>/dev/null; then
4128 as_ln_s='ln -s'
4129 # ... but there are two gotchas:
4130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4132 # In both cases, we have to default to `cp -p'.
4133 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4134 as_ln_s='cp -p'
4135 elif ln conf$$.file conf$$ 2>/dev/null; then
4136 as_ln_s=ln
4137 else
4138 as_ln_s='cp -p'
4140 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4141 rmdir conf$$.dir 2>/dev/null
4143 if mkdir -p . 2>/dev/null; then
4144 as_mkdir_p=:
4145 else
4146 test -d ./-p && rmdir ./-p
4147 as_mkdir_p=false
4150 if test -x / >/dev/null 2>&1; then
4151 as_test_x='test -x'
4152 else
4153 if ls -dL / >/dev/null 2>&1; then
4154 as_ls_L_option=L
4155 else
4156 as_ls_L_option=
4158 as_test_x='
4159 eval sh -c '\''
4160 if test -d "$1"; then
4161 test -d "$1/.";
4162 else
4163 case $1 in
4164 -*)set "./$1";;
4165 esac;
4166 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4167 ???[sx]*):;;*)false;;esac;fi
4168 '\'' sh
4171 as_executable_p=$as_test_x
4173 # Sed expression to map a string onto a valid CPP name.
4174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4176 # Sed expression to map a string onto a valid variable name.
4177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4180 exec 6>&1
4182 # Save the log message, to keep $[0] and so on meaningful, and to
4183 # report actual input values of CONFIG_FILES etc. instead of their
4184 # values after options handling.
4185 ac_log="
4186 This file was extended by $as_me, which was
4187 generated by GNU Autoconf 2.61. Invocation command line was
4189 CONFIG_FILES = $CONFIG_FILES
4190 CONFIG_HEADERS = $CONFIG_HEADERS
4191 CONFIG_LINKS = $CONFIG_LINKS
4192 CONFIG_COMMANDS = $CONFIG_COMMANDS
4193 $ $0 $@
4195 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4198 _ACEOF
4200 cat >>$CONFIG_STATUS <<_ACEOF
4201 # Files that config.status was made for.
4202 config_files="$ac_config_files"
4204 _ACEOF
4206 cat >>$CONFIG_STATUS <<\_ACEOF
4207 ac_cs_usage="\
4208 \`$as_me' instantiates files from templates according to the
4209 current configuration.
4211 Usage: $0 [OPTIONS] [FILE]...
4213 -h, --help print this help, then exit
4214 -V, --version print version number and configuration settings, then exit
4215 -q, --quiet do not print progress messages
4216 -d, --debug don't remove temporary files
4217 --recheck update $as_me by reconfiguring in the same conditions
4218 --file=FILE[:TEMPLATE]
4219 instantiate the configuration file FILE
4221 Configuration files:
4222 $config_files
4224 Report bugs to <bug-autoconf@gnu.org>."
4226 _ACEOF
4227 cat >>$CONFIG_STATUS <<_ACEOF
4228 ac_cs_version="\\
4229 config.status
4230 configured by $0, generated by GNU Autoconf 2.61,
4231 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4233 Copyright (C) 2006 Free Software Foundation, Inc.
4234 This config.status script is free software; the Free Software Foundation
4235 gives unlimited permission to copy, distribute and modify it."
4237 ac_pwd='$ac_pwd'
4238 srcdir='$srcdir'
4239 _ACEOF
4241 cat >>$CONFIG_STATUS <<\_ACEOF
4242 # If no file are specified by the user, then we need to provide default
4243 # value. By we need to know if files were specified by the user.
4244 ac_need_defaults=:
4245 while test $# != 0
4247 case $1 in
4248 --*=*)
4249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4251 ac_shift=:
4254 ac_option=$1
4255 ac_optarg=$2
4256 ac_shift=shift
4258 esac
4260 case $ac_option in
4261 # Handling of the options.
4262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4263 ac_cs_recheck=: ;;
4264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4265 echo "$ac_cs_version"; exit ;;
4266 --debug | --debu | --deb | --de | --d | -d )
4267 debug=: ;;
4268 --file | --fil | --fi | --f )
4269 $ac_shift
4270 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4271 ac_need_defaults=false;;
4272 --he | --h | --help | --hel | -h )
4273 echo "$ac_cs_usage"; exit ;;
4274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4275 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4276 ac_cs_silent=: ;;
4278 # This is an error.
4279 -*) { echo "$as_me: error: unrecognized option: $1
4280 Try \`$0 --help' for more information." >&2
4281 { (exit 1); exit 1; }; } ;;
4283 *) ac_config_targets="$ac_config_targets $1"
4284 ac_need_defaults=false ;;
4286 esac
4287 shift
4288 done
4290 ac_configure_extra_args=
4292 if $ac_cs_silent; then
4293 exec 6>/dev/null
4294 ac_configure_extra_args="$ac_configure_extra_args --silent"
4297 _ACEOF
4298 cat >>$CONFIG_STATUS <<_ACEOF
4299 if \$ac_cs_recheck; then
4300 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4301 CONFIG_SHELL=$SHELL
4302 export CONFIG_SHELL
4303 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4306 _ACEOF
4307 cat >>$CONFIG_STATUS <<\_ACEOF
4308 exec 5>>config.log
4310 echo
4311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4312 ## Running $as_me. ##
4313 _ASBOX
4314 echo "$ac_log"
4315 } >&5
4317 _ACEOF
4318 cat >>$CONFIG_STATUS <<_ACEOF
4319 _ACEOF
4321 cat >>$CONFIG_STATUS <<\_ACEOF
4323 # Handling of arguments.
4324 for ac_config_target in $ac_config_targets
4326 case $ac_config_target in
4327 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4329 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4330 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4331 { (exit 1); exit 1; }; };;
4332 esac
4333 done
4336 # If the user did not use the arguments to specify the items to instantiate,
4337 # then the envvar interface is used. Set only those that are not.
4338 # We use the long form for the default assignment because of an extremely
4339 # bizarre bug on SunOS 4.1.3.
4340 if $ac_need_defaults; then
4341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4344 # Have a temporary directory for convenience. Make it in the build tree
4345 # simply because there is no reason against having it here, and in addition,
4346 # creating and moving files from /tmp can sometimes cause problems.
4347 # Hook for its removal unless debugging.
4348 # Note that there is a small window in which the directory will not be cleaned:
4349 # after its creation but before its name has been assigned to `$tmp'.
4350 $debug ||
4352 tmp=
4353 trap 'exit_status=$?
4354 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4356 trap '{ (exit 1); exit 1; }' 1 2 13 15
4358 # Create a (secure) tmp directory for tmp files.
4361 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4362 test -n "$tmp" && test -d "$tmp"
4363 } ||
4365 tmp=./conf$$-$RANDOM
4366 (umask 077 && mkdir "$tmp")
4367 } ||
4369 echo "$me: cannot create a temporary directory in ." >&2
4370 { (exit 1); exit 1; }
4374 # Set up the sed scripts for CONFIG_FILES section.
4377 # No need to generate the scripts if there are no CONFIG_FILES.
4378 # This happens for instance when ./config.status config.h
4379 if test -n "$CONFIG_FILES"; then
4381 _ACEOF
4385 ac_delim='%!_!# '
4386 for ac_last_try in false false false false false :; do
4387 cat >conf$$subs.sed <<_ACEOF
4388 SHELL!$SHELL$ac_delim
4389 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4390 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4391 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4392 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4393 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4394 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4395 exec_prefix!$exec_prefix$ac_delim
4396 prefix!$prefix$ac_delim
4397 program_transform_name!$program_transform_name$ac_delim
4398 bindir!$bindir$ac_delim
4399 sbindir!$sbindir$ac_delim
4400 libexecdir!$libexecdir$ac_delim
4401 datarootdir!$datarootdir$ac_delim
4402 datadir!$datadir$ac_delim
4403 sysconfdir!$sysconfdir$ac_delim
4404 sharedstatedir!$sharedstatedir$ac_delim
4405 localstatedir!$localstatedir$ac_delim
4406 includedir!$includedir$ac_delim
4407 oldincludedir!$oldincludedir$ac_delim
4408 docdir!$docdir$ac_delim
4409 infodir!$infodir$ac_delim
4410 htmldir!$htmldir$ac_delim
4411 dvidir!$dvidir$ac_delim
4412 pdfdir!$pdfdir$ac_delim
4413 psdir!$psdir$ac_delim
4414 libdir!$libdir$ac_delim
4415 localedir!$localedir$ac_delim
4416 mandir!$mandir$ac_delim
4417 DEFS!$DEFS$ac_delim
4418 ECHO_C!$ECHO_C$ac_delim
4419 ECHO_N!$ECHO_N$ac_delim
4420 ECHO_T!$ECHO_T$ac_delim
4421 LIBS!$LIBS$ac_delim
4422 build_alias!$build_alias$ac_delim
4423 host_alias!$host_alias$ac_delim
4424 target_alias!$target_alias$ac_delim
4425 build!$build$ac_delim
4426 build_cpu!$build_cpu$ac_delim
4427 build_vendor!$build_vendor$ac_delim
4428 build_os!$build_os$ac_delim
4429 host!$host$ac_delim
4430 host_cpu!$host_cpu$ac_delim
4431 host_vendor!$host_vendor$ac_delim
4432 host_os!$host_os$ac_delim
4433 CC!$CC$ac_delim
4434 CFLAGS!$CFLAGS$ac_delim
4435 LDFLAGS!$LDFLAGS$ac_delim
4436 CPPFLAGS!$CPPFLAGS$ac_delim
4437 ac_ct_CC!$ac_ct_CC$ac_delim
4438 EXEEXT!$EXEEXT$ac_delim
4439 OBJEXT!$OBJEXT$ac_delim
4440 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
4441 EXE!$EXE$ac_delim
4442 MATHLIB!$MATHLIB$ac_delim
4443 SDL_CONFIG!$SDL_CONFIG$ac_delim
4444 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
4445 SDL_LIBS!$SDL_LIBS$ac_delim
4446 XMKMF!$XMKMF$ac_delim
4447 CPP!$CPP$ac_delim
4448 GLLIB!$GLLIB$ac_delim
4449 LIBOBJS!$LIBOBJS$ac_delim
4450 LTLIBOBJS!$LTLIBOBJS$ac_delim
4451 _ACEOF
4453 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
4454 break
4455 elif $ac_last_try; then
4456 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4457 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4458 { (exit 1); exit 1; }; }
4459 else
4460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4462 done
4464 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4465 if test -n "$ac_eof"; then
4466 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4467 ac_eof=`expr $ac_eof + 1`
4470 cat >>$CONFIG_STATUS <<_ACEOF
4471 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4473 _ACEOF
4474 sed '
4475 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4476 s/^/s,@/; s/!/@,|#_!!_#|/
4479 s/'"$ac_delim"'$/,g/; t
4480 s/$/\\/; p
4481 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4482 ' >>$CONFIG_STATUS <conf$$subs.sed
4483 rm -f conf$$subs.sed
4484 cat >>$CONFIG_STATUS <<_ACEOF
4485 :end
4486 s/|#_!!_#|//g
4487 CEOF$ac_eof
4488 _ACEOF
4491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4493 # trailing colons and then remove the whole line if VPATH becomes empty
4494 # (actually we leave an empty line to preserve line numbers).
4495 if test "x$srcdir" = x.; then
4496 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4497 s/:*\$(srcdir):*/:/
4498 s/:*\${srcdir}:*/:/
4499 s/:*@srcdir@:*/:/
4500 s/^\([^=]*=[ ]*\):*/\1/
4501 s/:*$//
4502 s/^[^=]*=[ ]*$//
4506 cat >>$CONFIG_STATUS <<\_ACEOF
4507 fi # test -n "$CONFIG_FILES"
4510 for ac_tag in :F $CONFIG_FILES
4512 case $ac_tag in
4513 :[FHLC]) ac_mode=$ac_tag; continue;;
4514 esac
4515 case $ac_mode$ac_tag in
4516 :[FHL]*:*);;
4517 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4518 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4519 { (exit 1); exit 1; }; };;
4520 :[FH]-) ac_tag=-:-;;
4521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4522 esac
4523 ac_save_IFS=$IFS
4524 IFS=:
4525 set x $ac_tag
4526 IFS=$ac_save_IFS
4527 shift
4528 ac_file=$1
4529 shift
4531 case $ac_mode in
4532 :L) ac_source=$1;;
4533 :[FH])
4534 ac_file_inputs=
4535 for ac_f
4537 case $ac_f in
4538 -) ac_f="$tmp/stdin";;
4539 *) # Look for the file first in the build tree, then in the source tree
4540 # (if the path is not absolute). The absolute path cannot be DOS-style,
4541 # because $ac_f cannot contain `:'.
4542 test -f "$ac_f" ||
4543 case $ac_f in
4544 [\\/$]*) false;;
4545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4546 esac ||
4547 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4548 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4549 { (exit 1); exit 1; }; };;
4550 esac
4551 ac_file_inputs="$ac_file_inputs $ac_f"
4552 done
4554 # Let's still pretend it is `configure' which instantiates (i.e., don't
4555 # use $as_me), people would be surprised to read:
4556 # /* config.h. Generated by config.status. */
4557 configure_input="Generated from "`IFS=:
4558 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4559 if test x"$ac_file" != x-; then
4560 configure_input="$ac_file. $configure_input"
4561 { echo "$as_me:$LINENO: creating $ac_file" >&5
4562 echo "$as_me: creating $ac_file" >&6;}
4565 case $ac_tag in
4566 *:-:* | *:-) cat >"$tmp/stdin";;
4567 esac
4569 esac
4571 ac_dir=`$as_dirname -- "$ac_file" ||
4572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4573 X"$ac_file" : 'X\(//\)[^/]' \| \
4574 X"$ac_file" : 'X\(//\)$' \| \
4575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4576 echo X"$ac_file" |
4577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4578 s//\1/
4581 /^X\(\/\/\)[^/].*/{
4582 s//\1/
4585 /^X\(\/\/\)$/{
4586 s//\1/
4589 /^X\(\/\).*/{
4590 s//\1/
4593 s/.*/./; q'`
4594 { as_dir="$ac_dir"
4595 case $as_dir in #(
4596 -*) as_dir=./$as_dir;;
4597 esac
4598 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4599 as_dirs=
4600 while :; do
4601 case $as_dir in #(
4602 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4603 *) as_qdir=$as_dir;;
4604 esac
4605 as_dirs="'$as_qdir' $as_dirs"
4606 as_dir=`$as_dirname -- "$as_dir" ||
4607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4608 X"$as_dir" : 'X\(//\)[^/]' \| \
4609 X"$as_dir" : 'X\(//\)$' \| \
4610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4611 echo X"$as_dir" |
4612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4613 s//\1/
4616 /^X\(\/\/\)[^/].*/{
4617 s//\1/
4620 /^X\(\/\/\)$/{
4621 s//\1/
4624 /^X\(\/\).*/{
4625 s//\1/
4628 s/.*/./; q'`
4629 test -d "$as_dir" && break
4630 done
4631 test -z "$as_dirs" || eval "mkdir $as_dirs"
4632 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4633 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4634 { (exit 1); exit 1; }; }; }
4635 ac_builddir=.
4637 case "$ac_dir" in
4638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4641 # A ".." for each directory in $ac_dir_suffix.
4642 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4643 case $ac_top_builddir_sub in
4644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4646 esac ;;
4647 esac
4648 ac_abs_top_builddir=$ac_pwd
4649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4650 # for backward compatibility:
4651 ac_top_builddir=$ac_top_build_prefix
4653 case $srcdir in
4654 .) # We are building in place.
4655 ac_srcdir=.
4656 ac_top_srcdir=$ac_top_builddir_sub
4657 ac_abs_top_srcdir=$ac_pwd ;;
4658 [\\/]* | ?:[\\/]* ) # Absolute name.
4659 ac_srcdir=$srcdir$ac_dir_suffix;
4660 ac_top_srcdir=$srcdir
4661 ac_abs_top_srcdir=$srcdir ;;
4662 *) # Relative name.
4663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4664 ac_top_srcdir=$ac_top_build_prefix$srcdir
4665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4666 esac
4667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4670 case $ac_mode in
4673 # CONFIG_FILE
4676 _ACEOF
4678 cat >>$CONFIG_STATUS <<\_ACEOF
4679 # If the template does not know about datarootdir, expand it.
4680 # FIXME: This hack should be removed a few years after 2.60.
4681 ac_datarootdir_hack=; ac_datarootdir_seen=
4683 case `sed -n '/datarootdir/ {
4687 /@datadir@/p
4688 /@docdir@/p
4689 /@infodir@/p
4690 /@localedir@/p
4691 /@mandir@/p
4692 ' $ac_file_inputs` in
4693 *datarootdir*) ac_datarootdir_seen=yes;;
4694 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4695 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4696 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4697 _ACEOF
4698 cat >>$CONFIG_STATUS <<_ACEOF
4699 ac_datarootdir_hack='
4700 s&@datadir@&$datadir&g
4701 s&@docdir@&$docdir&g
4702 s&@infodir@&$infodir&g
4703 s&@localedir@&$localedir&g
4704 s&@mandir@&$mandir&g
4705 s&\\\${datarootdir}&$datarootdir&g' ;;
4706 esac
4707 _ACEOF
4709 # Neutralize VPATH when `$srcdir' = `.'.
4710 # Shell code in configure.ac might set extrasub.
4711 # FIXME: do we really want to maintain this feature?
4712 cat >>$CONFIG_STATUS <<_ACEOF
4713 sed "$ac_vpsub
4714 $extrasub
4715 _ACEOF
4716 cat >>$CONFIG_STATUS <<\_ACEOF
4718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4719 s&@configure_input@&$configure_input&;t t
4720 s&@top_builddir@&$ac_top_builddir_sub&;t t
4721 s&@srcdir@&$ac_srcdir&;t t
4722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4723 s&@top_srcdir@&$ac_top_srcdir&;t t
4724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4725 s&@builddir@&$ac_builddir&;t t
4726 s&@abs_builddir@&$ac_abs_builddir&;t t
4727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4728 $ac_datarootdir_hack
4729 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4732 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4734 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4735 which seems to be undefined. Please make sure it is defined." >&5
4736 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4737 which seems to be undefined. Please make sure it is defined." >&2;}
4739 rm -f "$tmp/stdin"
4740 case $ac_file in
4741 -) cat "$tmp/out"; rm -f "$tmp/out";;
4742 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4743 esac
4748 esac
4750 done # for ac_tag
4753 { (exit 0); exit 0; }
4754 _ACEOF
4755 chmod +x $CONFIG_STATUS
4756 ac_clean_files=$ac_clean_files_save
4759 # configure is writing to config.log, and then calls config.status.
4760 # config.status does its own redirection, appending to config.log.
4761 # Unfortunately, on DOS this fails, as config.log is still kept open
4762 # by configure, so config.status won't be able to write to it; its
4763 # output is simply discarded. So we exec the FD to /dev/null,
4764 # effectively closing config.log, so it can be properly (re)opened and
4765 # appended to by config.status. When coming back to configure, we
4766 # need to make the FD available again.
4767 if test "$no_create" != yes; then
4768 ac_cs_success=:
4769 ac_config_status_args=
4770 test "$silent" = yes &&
4771 ac_config_status_args="$ac_config_status_args --quiet"
4772 exec 5>/dev/null
4773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4774 exec 5>>config.log
4775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4776 # would make configure fail if this is the last instruction.
4777 $ac_cs_success || { (exit 1); exit 1; }