filename | configure |
changeset | 1002:8ad76ddbdc58 |
prev | 989:7baf5ecd8e98 |
next | 1015:ad448bedc48a |
author | nkeynes |
date | Sat Apr 11 03:28:01 2009 +0000 (14 years ago) |
permissions | -rwxr-xr-x |
last change | Update sh4_translate_end_block_size() to have the correct backpatch sizes (with recent changes there) |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
27 fi
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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
229 test \$exitcode = 0) || { (exit 1); exit 1; }
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
271 fi
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
292 fi
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
344 test $exitcode = 0) || { (exit 1); exit 1; }
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
355 fi
357 fi
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
379 fi
381 fi
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 CYGPATH_W
679 PACKAGE
680 VERSION
681 ACLOCAL
682 AUTOCONF
683 AUTOMAKE
684 AUTOHEADER
685 MAKEINFO
686 install_sh
687 STRIP
688 INSTALL_STRIP_PROGRAM
689 mkdir_p
690 AWK
691 SET_MAKE
692 am__leading_dot
693 AMTAR
694 am__tar
695 am__untar
696 MAINTAINER_MODE_TRUE
697 MAINTAINER_MODE_FALSE
698 MAINT
699 CC
700 CFLAGS
701 LDFLAGS
702 CPPFLAGS
703 ac_ct_CC
704 EXEEXT
705 OBJEXT
706 DEPDIR
707 am__include
708 am__quote
709 AMDEP_TRUE
710 AMDEP_FALSE
711 AMDEPBACKSLASH
712 CCDEPMODE
713 am__fastdepCC_TRUE
714 am__fastdepCC_FALSE
715 OBJC
716 OBJCFLAGS
717 ac_ct_OBJC
718 SED
719 CCAS
720 CCASFLAGS
721 CPP
722 GREP
723 EGREP
724 build
725 build_cpu
726 build_vendor
727 build_os
728 host
729 host_cpu
730 host_vendor
731 host_os
732 OBJCDEPMODE
733 am__fastdepOBJC_TRUE
734 am__fastdepOBJC_FALSE
735 POD2MAN
736 POD2HTML
737 GUI_COCOA_TRUE
738 GUI_COCOA_FALSE
739 PKG_CONFIG
740 LIBPNG_CFLAGS
741 LIBPNG_LIBS
742 GLIB_CFLAGS
743 GLIB_LIBS
744 GTK_CFLAGS
745 GTK_LIBS
746 GUI_GTK_TRUE
747 GUI_GTK_FALSE
748 VIDEO_OSMESA_TRUE
749 VIDEO_OSMESA_FALSE
750 VIDEO_GLX_TRUE
751 VIDEO_GLX_FALSE
752 VIDEO_NSGL_TRUE
753 VIDEO_NSGL_FALSE
754 BUILD_SH4X86_TRUE
755 BUILD_SH4X86_FALSE
756 AUDIO_OSX_TRUE
757 AUDIO_OSX_FALSE
758 SDL_CFLAGS
759 SDL_LIBS
760 AUDIO_SDL_TRUE
761 AUDIO_SDL_FALSE
762 PULSE_CFLAGS
763 PULSE_LIBS
764 AUDIO_PULSE_TRUE
765 AUDIO_PULSE_FALSE
766 ESOUND_CFLAGS
767 ESOUND_LIBS
768 AUDIO_ESOUND_TRUE
769 AUDIO_ESOUND_FALSE
770 ALSA_CFLAGS
771 ALSA_LIBS
772 AUDIO_ALSA_TRUE
773 AUDIO_ALSA_FALSE
774 CDROM_LINUX_TRUE
775 CDROM_LINUX_FALSE
776 CDROM_OSX_TRUE
777 CDROM_OSX_FALSE
778 CDROM_NONE_TRUE
779 CDROM_NONE_FALSE
780 JOY_LINUX_TRUE
781 JOY_LINUX_FALSE
782 SHCC
783 SHLD
784 SHOBJCOPY
785 ARMCC
786 ARMLD
787 ARMOBJCOPY
788 BUILD_SYSTEST_TRUE
789 BUILD_SYSTEST_FALSE
790 BUILD_ARMTEST_TRUE
791 BUILD_ARMTEST_FALSE
792 GETTEXT_PACKAGE
793 USE_NLS
794 MSGFMT
795 MSGFMT_OPTS
796 GMSGFMT
797 XGETTEXT
798 CATALOGS
799 CATOBJEXT
800 DATADIRNAME
801 GMOFILES
802 INSTOBJEXT
803 INTLLIBS
804 PO_IN_DATADIR_TRUE
805 PO_IN_DATADIR_FALSE
806 POFILES
807 POSUB
808 MKINSTALLDIRS
809 LIBOBJS
810 LTLIBOBJS'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_maintainer_mode
815 enable_dependency_tracking
816 enable_strict_warn
817 enable_translator
818 enable_optimized
819 enable_profiled
820 enable_trace
821 enable_watch
822 enable_sh4stats
823 with_osmesa
824 with_gtk
825 with_esd
826 with_pulse
827 with_sdl
828 '
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 OBJC
838 OBJCFLAGS
839 CCAS
840 CCASFLAGS
841 CPP
842 PKG_CONFIG
843 LIBPNG_CFLAGS
844 LIBPNG_LIBS
845 GLIB_CFLAGS
846 GLIB_LIBS
847 GTK_CFLAGS
848 GTK_LIBS
849 SDL_CFLAGS
850 SDL_LIBS
851 PULSE_CFLAGS
852 PULSE_LIBS
853 ESOUND_CFLAGS
854 ESOUND_LIBS
855 ALSA_CFLAGS
856 ALSA_LIBS'
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
907 ac_prev=
908 ac_dashdash=
909 for ac_option
910 do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
918 case $ac_option in
919 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *) ac_optarg=yes ;;
921 esac
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
946 --config-cache | -C)
947 cache_file=config.cache ;;
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
966 { (exit 1); exit 1; }; }
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1248 ;;
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 ;;
1267 esac
1268 done
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1274 fi
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1280 { (exit 1); exit 1; }; } ;;
1281 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304 { (exit 1); exit 1; }; }
1305 done
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used." >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1335 { (exit 1); exit 1; }; }
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1338 { (exit 1); exit 1; }; }
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378 { (exit 1); exit 1; }; }
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1383 { (exit 1); exit 1; }; }
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1388 fi
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1402 #
1403 # Report the --help message.
1404 #
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures this package to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1464 cat <<\_ACEOF
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1477 if test -n "$ac_init_help"; then
1479 cat <<\_ACEOF
1481 Optional Features:
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-strict-warn Enable strict compilation warnings
1490 --disable-translator Disable the SH4 translator (Enabled by default)
1491 --disable-optimized Disable compile-time optimizations (Enabled by
1492 default)
1493 --enable-profiled Enable profiling build
1494 --enable-trace Enable generation of IO traces (warning: hurts
1495 performance)
1496 --enable-watch Enable watchpoints in the debugger (warning: hurts
1497 performance)
1498 --enable-sh4stats Enable statistics on executed sh4 instructions
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-osmesa Build with the osmesa GL library (software
1504 rendering)
1505 --with-gtk Build with the GTK UI. Default on X11 systems
1506 --with-esd Build with support for the ESounD audio system
1507 --with-pulse Build with support for the PulseAudio audio system
1508 --with-sdl Build with support for SDL audio
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 OBJC Objective C compiler command
1519 OBJCFLAGS Objective C compiler flags
1520 CCAS assembler compiler command (defaults to CC)
1521 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1522 CPP C preprocessor
1523 PKG_CONFIG path to pkg-config utility
1524 LIBPNG_CFLAGS
1525 C compiler flags for LIBPNG, overriding pkg-config
1526 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1527 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1528 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1529 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1530 GTK_LIBS linker flags for GTK, overriding pkg-config
1531 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1532 SDL_LIBS linker flags for SDL, overriding pkg-config
1533 PULSE_CFLAGS
1534 C compiler flags for PULSE, overriding pkg-config
1535 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1536 ESOUND_CFLAGS
1537 C compiler flags for ESOUND, overriding pkg-config
1538 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1539 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1540 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 configure
1608 generated by GNU Autoconf 2.62
1610 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1611 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617 cat >config.log <<_ACEOF
1618 This file contains any messages produced by compilers while
1619 running configure, to aid debugging if configure makes a mistake.
1621 It was created by $as_me, which was
1622 generated by GNU Autoconf 2.62. Invocation command line was
1624 $ $0 $@
1626 _ACEOF
1627 exec 5>>config.log
1628 {
1629 cat <<_ASUNAME
1630 ## --------- ##
1631 ## Platform. ##
1632 ## --------- ##
1634 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1640 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1643 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1647 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1651 _ASUNAME
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 $as_echo "PATH: $as_dir"
1659 done
1660 IFS=$as_save_IFS
1662 } >&5
1664 cat >&5 <<_ACEOF
1667 ## ----------- ##
1668 ## Core tests. ##
1669 ## ----------- ##
1671 _ACEOF
1674 # Keep a trace of the command line.
1675 # Strip out --no-create and --no-recursion so they do not pile up.
1676 # Strip out --silent because we don't want to record it for future runs.
1677 # Also quote any args containing shell meta-characters.
1678 # Make two passes to allow for proper duplicate-argument suppression.
1679 ac_configure_args=
1680 ac_configure_args0=
1681 ac_configure_args1=
1682 ac_must_keep_next=false
1683 for ac_pass in 1 2
1684 do
1685 for ac_arg
1686 do
1687 case $ac_arg in
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1691 continue ;;
1692 *\'*)
1693 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 esac
1695 case $ac_pass in
1696 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1697 2)
1698 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699 if test $ac_must_keep_next = true; then
1700 ac_must_keep_next=false # Got value, back to normal.
1701 else
1702 case $ac_arg in
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 esac
1710 ;;
1711 -* ) ac_must_keep_next=true ;;
1712 esac
1713 fi
1714 ac_configure_args="$ac_configure_args '$ac_arg'"
1715 ;;
1716 esac
1717 done
1718 done
1719 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1722 # When interrupted or exit'd, cleanup temporary files, and complete
1723 # config.log. We remove comments because anyway the quotes in there
1724 # would cause problems or look ugly.
1725 # WARNING: Use '\'' to represent an apostrophe within the trap.
1726 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727 trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1729 {
1730 echo
1732 cat <<\_ASBOX
1733 ## ---------------- ##
1734 ## Cache variables. ##
1735 ## ---------------- ##
1736 _ASBOX
1737 echo
1738 # The following way of writing the cache mishandles newlines in values,
1739 (
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in #(
1743 *${as_nl}*)
1744 case $ac_var in #(
1745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1746 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1747 esac
1748 case $ac_var in #(
1749 _ | IFS | as_nl) ;; #(
1750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1751 *) $as_unset $ac_var ;;
1752 esac ;;
1753 esac
1754 done
1755 (set) 2>&1 |
1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757 *${as_nl}ac_space=\ *)
1758 sed -n \
1759 "s/'\''/'\''\\\\'\'''\''/g;
1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1761 ;; #(
1762 *)
1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1764 ;;
1765 esac |
1766 sort
1767 )
1768 echo
1770 cat <<\_ASBOX
1771 ## ----------------- ##
1772 ## Output variables. ##
1773 ## ----------------- ##
1774 _ASBOX
1775 echo
1776 for ac_var in $ac_subst_vars
1777 do
1778 eval ac_val=\$$ac_var
1779 case $ac_val in
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 esac
1782 $as_echo "$ac_var='\''$ac_val'\''"
1783 done | sort
1784 echo
1786 if test -n "$ac_subst_files"; then
1787 cat <<\_ASBOX
1788 ## ------------------- ##
1789 ## File substitutions. ##
1790 ## ------------------- ##
1791 _ASBOX
1792 echo
1793 for ac_var in $ac_subst_files
1794 do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in
1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 esac
1799 $as_echo "$ac_var='\''$ac_val'\''"
1800 done | sort
1801 echo
1802 fi
1804 if test -s confdefs.h; then
1805 cat <<\_ASBOX
1806 ## ----------- ##
1807 ## confdefs.h. ##
1808 ## ----------- ##
1809 _ASBOX
1810 echo
1811 cat confdefs.h
1812 echo
1813 fi
1814 test "$ac_signal" != 0 &&
1815 $as_echo "$as_me: caught signal $ac_signal"
1816 $as_echo "$as_me: exit $exit_status"
1817 } >&5
1818 rm -f core *.core core.conftest.* &&
1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1820 exit $exit_status
1821 ' 0
1822 for ac_signal in 1 2 13 15; do
1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1824 done
1825 ac_signal=0
1827 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1828 rm -f -r conftest* confdefs.h
1830 # Predefined preprocessor variables.
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_NAME "$PACKAGE_NAME"
1834 _ACEOF
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1839 _ACEOF
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1844 _ACEOF
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_STRING "$PACKAGE_STRING"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1854 _ACEOF
1857 # Let the site file select an alternate cache file if it wants to.
1858 # Prefer an explicitly selected file to automatically selected ones.
1859 ac_site_file1=NONE
1860 ac_site_file2=NONE
1861 if test -n "$CONFIG_SITE"; then
1862 ac_site_file1=$CONFIG_SITE
1863 elif test "x$prefix" != xNONE; then
1864 ac_site_file1=$prefix/share/config.site
1865 ac_site_file2=$prefix/etc/config.site
1866 else
1867 ac_site_file1=$ac_default_prefix/share/config.site
1868 ac_site_file2=$ac_default_prefix/etc/config.site
1869 fi
1870 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1871 do
1872 test "x$ac_site_file" = xNONE && continue
1873 if test -r "$ac_site_file"; then
1874 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1877 . "$ac_site_file"
1878 fi
1879 done
1881 if test -r "$cache_file"; then
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
1885 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 $as_echo "$as_me: loading cache $cache_file" >&6;}
1887 case $cache_file in
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
1890 esac
1891 fi
1892 else
1893 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 $as_echo "$as_me: creating cache $cache_file" >&6;}
1895 >$cache_file
1896 fi
1898 # Check that the precious variables saved in the cache have kept the same
1899 # value.
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
1906 case $ac_old_set,$ac_new_set in
1907 set,)
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1911 ,set)
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1915 ,);;
1916 *)
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
1918 # differences in whitespace do not lead to failure.
1919 ac_old_val_w=`echo x $ac_old_val`
1920 ac_new_val_w=`echo x $ac_new_val`
1921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1922 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 ac_cache_corrupted=:
1925 else
1926 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1928 eval $ac_var=\$ac_old_val
1929 fi
1930 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1931 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1932 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1933 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1934 fi;;
1935 esac
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1938 case $ac_new_val in
1939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1941 esac
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1945 esac
1946 fi
1947 done
1948 if $ac_cache_corrupted; then
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1954 fi
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 am__api_version="1.9"
1980 ac_aux_dir=
1981 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1982 if test -f "$ac_dir/install-sh"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1985 break
1986 elif test -f "$ac_dir/install.sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1989 break
1990 elif test -f "$ac_dir/shtool"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1993 break
1994 fi
1995 done
1996 if test -z "$ac_aux_dir"; then
1997 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1998 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1999 { (exit 1); exit 1; }; }
2000 fi
2002 # These three variables are undocumented and unsupported,
2003 # and are intended to be withdrawn in a future Autoconf release.
2004 # They can cause serious problems if a builder's source tree is in a directory
2005 # whose full name contains unusual characters.
2006 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011 # Find a good install program. We prefer a C program (faster),
2012 # so one script is as good as another. But avoid the broken or
2013 # incompatible versions:
2014 # SysV /etc/install, /usr/sbin/install
2015 # SunOS /usr/etc/install
2016 # IRIX /sbin/install
2017 # AIX /bin/install
2018 # AmigaOS /C/install, which installs bootblocks on floppy discs
2019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2022 # OS/2's system install, which has a completely different semantic
2023 # ./install, which can be erroneously created by make from ./install.sh.
2024 # Reject install programs that cannot install multiple files.
2025 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2027 if test -z "$INSTALL"; then
2028 if test "${ac_cv_path_install+set}" = set; then
2029 $as_echo_n "(cached) " >&6
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 # Account for people who put trailing slashes in PATH elements.
2037 case $as_dir/ in
2038 ./ | .// | /cC/* | \
2039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041 /usr/ucb/* ) ;;
2042 *)
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2045 # by default.
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2052 :
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2056 :
2057 else
2058 rm -rf conftest.one conftest.two conftest.dir
2059 echo one > conftest.one
2060 echo two > conftest.two
2061 mkdir conftest.dir
2062 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2063 test -s conftest.one && test -s conftest.two &&
2064 test -s conftest.dir/conftest.one &&
2065 test -s conftest.dir/conftest.two
2066 then
2067 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2068 break 3
2069 fi
2070 fi
2071 fi
2072 done
2073 done
2074 ;;
2075 esac
2077 done
2078 IFS=$as_save_IFS
2080 rm -rf conftest.one conftest.two conftest.dir
2082 fi
2083 if test "${ac_cv_path_install+set}" = set; then
2084 INSTALL=$ac_cv_path_install
2085 else
2086 # As a last resort, use the slow shell script. Don't cache a
2087 # value for INSTALL within a source directory, because that will
2088 # break other packages using the cache if that directory is
2089 # removed, or if the value is a relative name.
2090 INSTALL=$ac_install_sh
2091 fi
2092 fi
2093 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 $as_echo "$INSTALL" >&6; }
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2104 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2105 $as_echo_n "checking whether build environment is sane... " >&6; }
2106 # Just in case
2107 sleep 1
2108 echo timestamp > conftest.file
2109 # Do `set' in a subshell so we don't clobber the current shell's
2110 # arguments. Must try -L first in case configure is actually a
2111 # symlink; some systems play weird games with the mod time of symlinks
2112 # (eg FreeBSD returns the mod time of the symlink's containing
2113 # directory).
2114 if (
2115 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2116 if test "$*" = "X"; then
2117 # -L didn't work.
2118 set X `ls -t $srcdir/configure conftest.file`
2119 fi
2120 rm -f conftest.file
2121 if test "$*" != "X $srcdir/configure conftest.file" \
2122 && test "$*" != "X conftest.file $srcdir/configure"; then
2124 # If neither matched, then we have a broken ls. This can happen
2125 # if, for instance, CONFIG_SHELL is bash and it inherits a
2126 # broken ls alias from the environment. This has actually
2127 # happened. Such a system could not be considered "sane".
2128 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2129 alias in your environment" >&5
2130 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2131 alias in your environment" >&2;}
2132 { (exit 1); exit 1; }; }
2133 fi
2135 test "$2" = conftest.file
2136 )
2137 then
2138 # Ok.
2139 :
2140 else
2141 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2142 Check your system clock" >&5
2143 $as_echo "$as_me: error: newly created file is older than distributed files!
2144 Check your system clock" >&2;}
2145 { (exit 1); exit 1; }; }
2146 fi
2147 { $as_echo "$as_me:$LINENO: result: yes" >&5
2148 $as_echo "yes" >&6; }
2149 test "$program_prefix" != NONE &&
2150 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2151 # Use a double $ so make ignores it.
2152 test "$program_suffix" != NONE &&
2153 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2154 # Double any \ or $.
2155 # By default was `s,x,x', remove it if useless.
2156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2157 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2159 # expand $ac_aux_dir to an absolute path
2160 am_aux_dir=`cd $ac_aux_dir && pwd`
2162 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2163 # Use eval to expand $SHELL
2164 if eval "$MISSING --run true"; then
2165 am_missing_run="$MISSING --run "
2166 else
2167 am_missing_run=
2168 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2169 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2170 fi
2172 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2173 # We used to keeping the `.' as first argument, in order to
2174 # allow $(mkdir_p) to be used without argument. As in
2175 # $(mkdir_p) $(somedir)
2176 # where $(somedir) is conditionally defined. However this is wrong
2177 # for two reasons:
2178 # 1. if the package is installed by a user who cannot write `.'
2179 # make install will fail,
2180 # 2. the above comment should most certainly read
2181 # $(mkdir_p) $(DESTDIR)$(somedir)
2182 # so it does not work when $(somedir) is undefined and
2183 # $(DESTDIR) is not.
2184 # To support the latter case, we have to write
2185 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2186 # so the `.' trick is pointless.
2187 mkdir_p='mkdir -p --'
2188 else
2189 # On NextStep and OpenStep, the `mkdir' command does not
2190 # recognize any option. It will interpret all options as
2191 # directories to create, and then abort because `.' already
2192 # exists.
2193 for d in ./-p ./--version;
2194 do
2195 test -d $d && rmdir $d
2196 done
2197 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2198 if test -f "$ac_aux_dir/mkinstalldirs"; then
2199 mkdir_p='$(mkinstalldirs)'
2200 else
2201 mkdir_p='$(install_sh) -d'
2202 fi
2203 fi
2205 for ac_prog in gawk mawk nawk awk
2206 do
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if test "${ac_cv_prog_AWK+set}" = set; then
2212 $as_echo_n "(cached) " >&6
2213 else
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_AWK="$ac_prog"
2225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2227 fi
2228 done
2229 done
2230 IFS=$as_save_IFS
2232 fi
2233 fi
2234 AWK=$ac_cv_prog_AWK
2235 if test -n "$AWK"; then
2236 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2237 $as_echo "$AWK" >&6; }
2238 else
2239 { $as_echo "$as_me:$LINENO: result: no" >&5
2240 $as_echo "no" >&6; }
2241 fi
2244 test -n "$AWK" && break
2245 done
2247 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2249 set x ${MAKE-make}
2250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 $as_echo_n "(cached) " >&6
2253 else
2254 cat >conftest.make <<\_ACEOF
2255 SHELL = /bin/sh
2256 all:
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2258 _ACEOF
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261 *@@@%%%=?*=@@@%%%*)
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2263 *)
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2265 esac
2266 rm -f conftest.make
2267 fi
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { $as_echo "$as_me:$LINENO: result: yes" >&5
2270 $as_echo "yes" >&6; }
2271 SET_MAKE=
2272 else
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2276 fi
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2281 am__leading_dot=.
2282 else
2283 am__leading_dot=_
2284 fi
2285 rmdir .tst 2>/dev/null
2287 # test to see if srcdir already configured
2288 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2289 test -f $srcdir/config.status; then
2290 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297 if (cygpath --version) >/dev/null 2>/dev/null; then
2298 CYGPATH_W='cygpath -w'
2299 else
2300 CYGPATH_W=echo
2301 fi
2302 fi
2305 # Define the identity of the package.
2306 PACKAGE=lxdream
2307 VERSION=0.9
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2312 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2317 _ACEOF
2319 # Some tools Automake needs.
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'. However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2349 else
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2368 fi
2369 fi
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2373 $as_echo "$STRIP" >&6; }
2374 else
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2377 fi
2380 fi
2381 if test -z "$ac_cv_prog_STRIP"; then
2382 ac_ct_STRIP=$STRIP
2383 # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388 $as_echo_n "(cached) " >&6
2389 else
2390 if test -n "$ac_ct_STRIP"; then
2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_STRIP="strip"
2401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2408 fi
2409 fi
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 $as_echo "$ac_ct_STRIP" >&6; }
2414 else
2415 { $as_echo "$as_me:$LINENO: result: no" >&5
2416 $as_echo "no" >&6; }
2417 fi
2419 if test "x$ac_ct_STRIP" = x; then
2420 STRIP=":"
2421 else
2422 case $cross_compiling:$ac_tool_warned in
2423 yes:)
2424 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432 STRIP=$ac_ct_STRIP
2433 fi
2434 else
2435 STRIP="$ac_cv_prog_STRIP"
2436 fi
2438 fi
2439 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2441 # We need awk for the "check" target. The system "awk" is bad on
2442 # some platforms.
2443 # Always define AMTAR for backward compatibility.
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2454 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2455 # Check whether --enable-maintainer-mode was given.
2456 if test "${enable_maintainer_mode+set}" = set; then
2457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2458 else
2459 USE_MAINTAINER_MODE=no
2460 fi
2462 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2463 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2466 if test $USE_MAINTAINER_MODE = yes; then
2467 MAINTAINER_MODE_TRUE=
2468 MAINTAINER_MODE_FALSE='#'
2469 else
2470 MAINTAINER_MODE_TRUE='#'
2471 MAINTAINER_MODE_FALSE=
2472 fi
2474 MAINT=$MAINTAINER_MODE_TRUE
2477 ac_config_headers="$ac_config_headers config.h"
2480 DEPDIR="${am__leading_dot}deps"
2482 ac_config_commands="$ac_config_commands depfiles"
2485 am_make=${MAKE-make}
2486 cat > confinc << 'END'
2487 am__doit:
2488 @echo done
2489 .PHONY: am__doit
2490 END
2491 # If we don't find an include directive, just comment out the code.
2492 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2493 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2494 am__include="#"
2495 am__quote=
2496 _am_result=none
2497 # First try GNU make style include.
2498 echo "include confinc" > confmf
2499 # We grep out `Entering directory' and `Leaving directory'
2500 # messages which can occur if `w' ends up in MAKEFLAGS.
2501 # In particular we don't look at `^make:' because GNU make might
2502 # be invoked under some other name (usually "gmake"), in which
2503 # case it prints its new name instead of `make'.
2504 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2505 am__include=include
2506 am__quote=
2507 _am_result=GNU
2508 fi
2509 # Now try BSD make style include.
2510 if test "$am__include" = "#"; then
2511 echo '.include "confinc"' > confmf
2512 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2513 am__include=.include
2514 am__quote="\""
2515 _am_result=BSD
2516 fi
2517 fi
2520 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2521 $as_echo "$_am_result" >&6; }
2522 rm -f confinc confmf
2524 # Check whether --enable-dependency-tracking was given.
2525 if test "${enable_dependency_tracking+set}" = set; then
2526 enableval=$enable_dependency_tracking;
2527 fi
2529 if test "x$enable_dependency_tracking" != xno; then
2530 am_depcomp="$ac_aux_dir/depcomp"
2531 AMDEPBACKSLASH='\'
2532 fi
2535 if test "x$enable_dependency_tracking" != xno; then
2536 AMDEP_TRUE=
2537 AMDEP_FALSE='#'
2538 else
2539 AMDEP_TRUE='#'
2540 AMDEP_FALSE=
2541 fi
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2582 else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2588 fi
2589 if test -z "$ac_cv_prog_CC"; then
2590 ac_ct_CC=$CC
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2616 fi
2617 fi
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2622 else
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640 CC=$ac_ct_CC
2641 fi
2642 else
2643 CC="$ac_cv_prog_CC"
2644 fi
2646 if test -z "$CC"; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_CC="${ac_tool_prefix}cc"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2679 else
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2685 fi
2686 fi
2687 if test -z "$CC"; then
2688 # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 ac_prog_rejected=no
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2707 ac_prog_rejected=yes
2708 continue
2709 fi
2710 ac_cv_prog_CC="cc"
2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2718 if test $ac_prog_rejected = yes; then
2719 # We found a bogon in the path, so make sure we never use it.
2720 set dummy $ac_cv_prog_CC
2721 shift
2722 if test $# != 0; then
2723 # We chose a different compiler from the bogus one.
2724 # However, it has the same basename, so the bogon will be chosen
2725 # first if we set CC to just the basename; use the full file name.
2726 shift
2727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2728 fi
2729 fi
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2736 else
2737 { $as_echo "$as_me:$LINENO: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2742 fi
2743 if test -z "$CC"; then
2744 if test -n "$ac_tool_prefix"; then
2745 for ac_prog in cl.exe
2746 do
2747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2784 test -n "$CC" && break
2785 done
2786 fi
2787 if test -z "$CC"; then
2788 ac_ct_CC=$CC
2789 for ac_prog in cl.exe
2790 do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_ac_ct_CC="$ac_prog"
2809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2822 else
2823 { $as_echo "$as_me:$LINENO: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2828 test -n "$ac_ct_CC" && break
2829 done
2831 if test "x$ac_ct_CC" = x; then
2832 CC=""
2833 else
2834 case $cross_compiling:$ac_tool_warned in
2835 yes:)
2836 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet. If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&5
2839 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2840 whose name does not start with the host triplet. If you think this
2841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2845 fi
2846 fi
2848 fi
2851 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details." >&5
2853 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2857 # Provide some information about the compiler.
2858 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2859 set X $ac_compile
2860 ac_compiler=$2
2861 { (ac_try="$ac_compiler --version >&5"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_compiler --version >&5") 2>&5
2869 ac_status=$?
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }
2872 { (ac_try="$ac_compiler -v >&5"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2878 $as_echo "$ac_try_echo") >&5
2879 (eval "$ac_compiler -v >&5") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -V >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2889 $as_echo "$ac_try_echo") >&5
2890 (eval "$ac_compiler -V >&5") 2>&5
2891 ac_status=$?
2892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2902 int
2903 main ()
2904 {
2906 ;
2907 return 0;
2908 }
2909 _ACEOF
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2914 # of exeext.
2915 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2916 $as_echo_n "checking for C compiler default output file name... " >&6; }
2917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919 # The possible output files:
2920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2922 ac_rmfiles=
2923 for ac_file in $ac_files
2924 do
2925 case $ac_file in
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2928 esac
2929 done
2930 rm -f $ac_rmfiles
2932 if { (ac_try="$ac_link_default"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2938 $as_echo "$ac_try_echo") >&5
2939 (eval "$ac_link_default") 2>&5
2940 ac_status=$?
2941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2947 # Autoconf.
2948 for ac_file in $ac_files ''
2949 do
2950 test -f "$ac_file" || continue
2951 case $ac_file in
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2953 ;;
2954 [ab].out )
2955 # We found the default executable, but exeext='' is most
2956 # certainly right.
2957 break;;
2958 *.* )
2959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2960 then :; else
2961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2962 fi
2963 # We set ac_cv_exeext here because the later test for it is not
2964 # safe: cross compilers may not add the suffix if given an `-o'
2965 # argument, so we may need to know it at that point already.
2966 # Even if this section looks crufty: it has the advantage of
2967 # actually working.
2968 break;;
2969 * )
2970 break;;
2971 esac
2972 done
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2975 else
2976 ac_file=''
2977 fi
2979 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2980 $as_echo "$ac_file" >&6; }
2981 if test -z "$ac_file"; then
2982 $as_echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2986 See \`config.log' for more details." >&5
2987 $as_echo "$as_me: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&2;}
2989 { (exit 77); exit 77; }; }
2990 fi
2992 ac_exeext=$ac_cv_exeext
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2997 $as_echo_n "checking whether the C compiler works... " >&6; }
2998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2999 # If not cross compiling, check that we can run a simple program.
3000 if test "$cross_compiling" != yes; then
3001 if { ac_try='./$ac_file'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_try") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 cross_compiling=no
3013 else
3014 if test "$cross_compiling" = maybe; then
3015 cross_compiling=yes
3016 else
3017 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3018 If you meant to cross compile, use \`--host'.
3019 See \`config.log' for more details." >&5
3020 $as_echo "$as_me: error: cannot run C compiled programs.
3021 If you meant to cross compile, use \`--host'.
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3024 fi
3025 fi
3026 fi
3027 { $as_echo "$as_me:$LINENO: result: yes" >&5
3028 $as_echo "yes" >&6; }
3030 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3031 ac_clean_files=$ac_clean_files_save
3032 # Check that the compiler produces executables we can run. If not, either
3033 # the compiler is broken, or we cross compile.
3034 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3035 $as_echo_n "checking whether we are cross compiling... " >&6; }
3036 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3037 $as_echo "$cross_compiling" >&6; }
3039 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { (ac_try="$ac_link"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047 $as_echo "$ac_try_echo") >&5
3048 (eval "$ac_link") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3055 # `rm'.
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3058 case $ac_file in
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061 break;;
3062 * ) break;;
3063 esac
3064 done
3065 else
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3071 fi
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3079 ac_exeext=$EXEEXT
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084 else
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3092 int
3093 main ()
3094 {
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119 done
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details." >&5
3126 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3129 fi
3131 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3132 fi
3133 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3134 $as_echo "$ac_cv_objext" >&6; }
3135 OBJEXT=$ac_cv_objext
3136 ac_objext=$OBJEXT
3137 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3138 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3139 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3141 else
3142 cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h. */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 int
3150 main ()
3151 {
3152 #ifndef __GNUC__
3153 choke me
3154 #endif
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167 $as_echo "$ac_try_echo") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3178 ac_compiler_gnu=yes
3179 else
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 ac_compiler_gnu=no
3184 fi
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3189 fi
3190 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3192 if test $ac_compiler_gnu = yes; then
3193 GCC=yes
3194 else
3195 GCC=
3196 fi
3197 ac_test_CFLAGS=${CFLAGS+set}
3198 ac_save_CFLAGS=$CFLAGS
3199 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3200 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3201 if test "${ac_cv_prog_cc_g+set}" = set; then
3202 $as_echo_n "(cached) " >&6
3203 else
3204 ac_save_c_werror_flag=$ac_c_werror_flag
3205 ac_c_werror_flag=yes
3206 ac_cv_prog_cc_g=no
3207 CFLAGS="-g"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 int
3216 main ()
3217 {
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3241 ac_cv_prog_cc_g=yes
3242 else
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 CFLAGS=""
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 int
3255 main ()
3256 {
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3271 ac_status=$?
3272 grep -v '^ *+' conftest.er1 >conftest.err
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3280 :
3281 else
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3286 CFLAGS="-g"
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3294 int
3295 main ()
3296 {
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.$ac_objext
3303 if { (ac_try="$ac_compile"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3320 ac_cv_prog_cc_g=yes
3321 else
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3326 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3336 fi
3337 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 $as_echo "$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
3346 fi
3347 else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3352 fi
3353 fi
3354 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then
3357 $as_echo_n "(cached) " >&6
3358 else
3359 ac_cv_prog_cc_c89=no
3360 ac_save_CC=$CC
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3377 {
3378 return p[i];
3379 }
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3381 {
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3388 }
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3401 #define FOO(x) 'x'
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 int argc;
3409 char **argv;
3410 int
3411 main ()
3412 {
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420 do
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_prog_cc_c89=$ac_arg
3441 else
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3446 fi
3448 rm -f core conftest.err conftest.$ac_objext
3449 test "x$ac_cv_prog_cc_c89" != "xno" && break
3450 done
3451 rm -f conftest.$ac_ext
3452 CC=$ac_save_CC
3454 fi
3455 # AC_CACHE_VAL
3456 case "x$ac_cv_prog_cc_c89" in
3457 x)
3458 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3459 $as_echo "none needed" >&6; } ;;
3460 xno)
3461 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3462 $as_echo "unsupported" >&6; } ;;
3463 *)
3464 CC="$CC $ac_cv_prog_cc_c89"
3465 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3467 esac
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 depcc="$CC" am_compiler_list=
3478 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3479 $as_echo_n "checking dependency style of $depcc... " >&6; }
3480 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3482 else
3483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3484 # We make a subdir and do the tests there. Otherwise we can end up
3485 # making bogus files that we don't know about and never remove. For
3486 # instance it was reported that on HP-UX the gcc test will end up
3487 # making a dummy file named `D' -- because `-MD' means `put the output
3488 # in D'.
3489 mkdir conftest.dir
3490 # Copy depcomp to subdir because otherwise we won't find it if we're
3491 # using a relative directory.
3492 cp "$am_depcomp" conftest.dir
3493 cd conftest.dir
3494 # We will build objects and dependencies in a subdirectory because
3495 # it helps to detect inapplicable dependency modes. For instance
3496 # both Tru64's cc and ICC support -MD to output dependencies as a
3497 # side effect of compilation, but ICC will put the dependencies in
3498 # the current directory while Tru64 will put them in the object
3499 # directory.
3500 mkdir sub
3502 am_cv_CC_dependencies_compiler_type=none
3503 if test "$am_compiler_list" = ""; then
3504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3505 fi
3506 for depmode in $am_compiler_list; do
3507 # Setup a source with many dependencies, because some compilers
3508 # like to wrap large dependency lists on column 80 (with \), and
3509 # we should not choose a depcomp mode which is confused by this.
3510 #
3511 # We need to recreate these files for each test, as the compiler may
3512 # overwrite some of them when testing with obscure command lines.
3513 # This happens at least with the AIX C compiler.
3514 : > sub/conftest.c
3515 for i in 1 2 3 4 5 6; do
3516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3518 # Solaris 8's {/usr,}/bin/sh.
3519 touch sub/conftst$i.h
3520 done
3521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3523 case $depmode in
3524 nosideeffect)
3525 # after this tag, mechanisms are not by side-effect, so they'll
3526 # only be used when explicitly requested
3527 if test "x$enable_dependency_tracking" = xyes; then
3528 continue
3529 else
3530 break
3531 fi
3532 ;;
3533 none) break ;;
3534 esac
3535 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3536 # mode. It turns out that the SunPro C++ compiler does not properly
3537 # handle `-M -o', and we need to detect this.
3538 if depmode=$depmode \
3539 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3541 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3542 >/dev/null 2>conftest.err &&
3543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3544 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3546 # icc doesn't choke on unknown options, it will just issue warnings
3547 # or remarks (even with -Werror). So we grep stderr for any message
3548 # that says an option was ignored or not supported.
3549 # When given -MP, icc 7.0 and 7.1 complain thusly:
3550 # icc: Command line warning: ignoring option '-M'; no argument required
3551 # The diagnosis changed in icc 8.0:
3552 # icc: Command line remark: option '-MP' not supported
3553 if (grep 'ignoring option' conftest.err ||
3554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3555 am_cv_CC_dependencies_compiler_type=$depmode
3556 break
3557 fi
3558 fi
3559 done
3561 cd ..
3562 rm -rf conftest.dir
3563 else
3564 am_cv_CC_dependencies_compiler_type=none
3565 fi
3567 fi
3568 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3569 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3574 if
3575 test "x$enable_dependency_tracking" != xno \
3576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3577 am__fastdepCC_TRUE=
3578 am__fastdepCC_FALSE='#'
3579 else
3580 am__fastdepCC_TRUE='#'
3581 am__fastdepCC_FALSE=
3582 fi
3587 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3588 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3589 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3590 $as_echo_n "(cached) " >&6
3591 else
3592 ac_check_lib_save_LIBS=$LIBS
3593 LIBS="-lcposix $LIBS"
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3601 /* Override any GCC internal prototype to avoid an error.
3602 Use char because int might match the return type of a GCC
3603 builtin and then its argument prototype would still apply. */
3604 #ifdef __cplusplus
3605 extern "C"
3606 #endif
3607 char strerror ();
3608 int
3609 main ()
3610 {
3611 return strerror ();
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3623 $as_echo "$ac_try_echo") >&5
3624 (eval "$ac_link") 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest$ac_exeext && {
3634 test "$cross_compiling" = yes ||
3635 $as_test_x conftest$ac_exeext
3636 }; then
3637 ac_cv_lib_cposix_strerror=yes
3638 else
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_cv_lib_cposix_strerror=no
3643 fi
3645 rm -rf conftest.dSYM
3646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3647 conftest$ac_exeext conftest.$ac_ext
3648 LIBS=$ac_check_lib_save_LIBS
3649 fi
3650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3651 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3652 if test $ac_cv_lib_cposix_strerror = yes; then
3653 LIBS="$LIBS -lcposix"
3654 fi
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -n "$CC"; then
3672 ac_cv_prog_CC="$CC" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3689 fi
3690 fi
3691 CC=$ac_cv_prog_CC
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3695 else
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3701 fi
3702 if test -z "$ac_cv_prog_CC"; then
3703 ac_ct_CC=$CC
3704 # Extract the first word of "gcc", so it can be a program name with args.
3705 set dummy gcc; ac_word=$2
3706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_CC="gcc"
3722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725 done
3726 done
3727 IFS=$as_save_IFS
3729 fi
3730 fi
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3735 else
3736 { $as_echo "$as_me:$LINENO: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3740 if test "x$ac_ct_CC" = x; then
3741 CC=""
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&5
3748 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3749 whose name does not start with the host triplet. If you think this
3750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 CC=$ac_ct_CC
3754 fi
3755 else
3756 CC="$ac_cv_prog_CC"
3757 fi
3759 if test -z "$CC"; then
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3792 else
3793 { $as_echo "$as_me:$LINENO: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3798 fi
3799 fi
3800 if test -z "$CC"; then
3801 # Extract the first word of "cc", so it can be a program name with args.
3802 set dummy cc; ac_word=$2
3803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test "${ac_cv_prog_CC+set}" = set; then
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3810 else
3811 ac_prog_rejected=no
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3820 ac_prog_rejected=yes
3821 continue
3822 fi
3823 ac_cv_prog_CC="cc"
3824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827 done
3828 done
3829 IFS=$as_save_IFS
3831 if test $ac_prog_rejected = yes; then
3832 # We found a bogon in the path, so make sure we never use it.
3833 set dummy $ac_cv_prog_CC
3834 shift
3835 if test $# != 0; then
3836 # We chose a different compiler from the bogus one.
3837 # However, it has the same basename, so the bogon will be chosen
3838 # first if we set CC to just the basename; use the full file name.
3839 shift
3840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3841 fi
3842 fi
3843 fi
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3849 else
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3855 fi
3856 if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3859 do
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_CC+set}" = set; then
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3891 else
3892 { $as_echo "$as_me:$LINENO: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3897 test -n "$CC" && break
3898 done
3899 fi
3900 if test -z "$CC"; then
3901 ac_ct_CC=$CC
3902 for ac_prog in cl.exe
3903 do
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_ac_ct_CC="$ac_prog"
3922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3929 fi
3930 fi
3931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932 if test -n "$ac_ct_CC"; then
3933 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3934 $as_echo "$ac_ct_CC" >&6; }
3935 else
3936 { $as_echo "$as_me:$LINENO: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3941 test -n "$ac_ct_CC" && break
3942 done
3944 if test "x$ac_ct_CC" = x; then
3945 CC=""
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3950 whose name does not start with the host triplet. If you think this
3951 configuration is useful to you, please write to autoconf@gnu.org." >&5
3952 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3953 whose name does not start with the host triplet. If you think this
3954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3955 ac_tool_warned=yes ;;
3956 esac
3957 CC=$ac_ct_CC
3958 fi
3959 fi
3961 fi
3964 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3965 See \`config.log' for more details." >&5
3966 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3970 # Provide some information about the compiler.
3971 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3972 set X $ac_compile
3973 ac_compiler=$2
3974 { (ac_try="$ac_compiler --version >&5"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3980 $as_echo "$ac_try_echo") >&5
3981 (eval "$ac_compiler --version >&5") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985 { (ac_try="$ac_compiler -v >&5"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_compiler -v >&5") 2>&5
3993 ac_status=$?
3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996 { (ac_try="$ac_compiler -V >&5"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_compiler -V >&5") 2>&5
4004 ac_status=$?
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4008 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4009 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4011 $as_echo_n "(cached) " >&6
4012 else
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4020 int
4021 main ()
4022 {
4023 #ifndef __GNUC__
4024 choke me
4025 #endif
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4038 $as_echo "$ac_try_echo") >&5
4039 (eval "$ac_compile") 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && {
4046 test -z "$ac_c_werror_flag" ||
4047 test ! -s conftest.err
4048 } && test -s conftest.$ac_objext; then
4049 ac_compiler_gnu=yes
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 ac_compiler_gnu=no
4055 fi
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060 fi
4061 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4062 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4063 if test $ac_compiler_gnu = yes; then
4064 GCC=yes
4065 else
4066 GCC=
4067 fi
4068 ac_test_CFLAGS=${CFLAGS+set}
4069 ac_save_CFLAGS=$CFLAGS
4070 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4071 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4072 if test "${ac_cv_prog_cc_g+set}" = set; then
4073 $as_echo_n "(cached) " >&6
4074 else
4075 ac_save_c_werror_flag=$ac_c_werror_flag
4076 ac_c_werror_flag=yes
4077 ac_cv_prog_cc_g=no
4078 CFLAGS="-g"
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4086 int
4087 main ()
4088 {
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4101 $as_echo "$ac_try_echo") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } && {
4109 test -z "$ac_c_werror_flag" ||
4110 test ! -s conftest.err
4111 } && test -s conftest.$ac_objext; then
4112 ac_cv_prog_cc_g=yes
4113 else
4114 $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 CFLAGS=""
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 int
4126 main ()
4127 {
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 :
4152 else
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4157 CFLAGS="-g"
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4165 int
4166 main ()
4167 {
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && {
4188 test -z "$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 } && test -s conftest.$ac_objext; then
4191 ac_cv_prog_cc_g=yes
4192 else
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4197 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 fi
4208 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4209 $as_echo "$ac_cv_prog_cc_g" >&6; }
4210 if test "$ac_test_CFLAGS" = set; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4214 CFLAGS="-g -O2"
4215 else
4216 CFLAGS="-g"
4217 fi
4218 else
4219 if test "$GCC" = yes; then
4220 CFLAGS="-O2"
4221 else
4222 CFLAGS=
4223 fi
4224 fi
4225 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227 if test "${ac_cv_prog_cc_c89+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_cv_prog_cc_c89=no
4231 ac_save_CC=$CC
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #include <stdarg.h>
4239 #include <stdio.h>
4240 #include <sys/types.h>
4241 #include <sys/stat.h>
4242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4243 struct buf { int x; };
4244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4245 static char *e (p, i)
4246 char **p;
4247 int i;
4248 {
4249 return p[i];
4250 }
4251 static char *f (char * (*g) (char **, int), char **p, ...)
4252 {
4253 char *s;
4254 va_list v;
4255 va_start (v,p);
4256 s = g (p, va_arg (v,int));
4257 va_end (v);
4258 return s;
4259 }
4261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4262 function prototypes and stuff, but not '\xHH' hex character constants.
4263 These don't provoke an error unfortunately, instead are silently treated
4264 as 'x'. The following induces an error, until -std is added to get
4265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4266 array size at least. It's necessary to write '\x00'==0 to get something
4267 that's true only with -std. */
4268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4271 inside strings and character constants. */
4272 #define FOO(x) 'x'
4273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4275 int test (int i, double x);
4276 struct s1 {int (*f) (int a);};
4277 struct s2 {int (*f) (double a);};
4278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4279 int argc;
4280 char **argv;
4281 int
4282 main ()
4283 {
4284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 do
4292 CC="$ac_save_CC $ac_arg"
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4300 $as_echo "$ac_try_echo") >&5
4301 (eval "$ac_compile") 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest.$ac_objext; then
4311 ac_cv_prog_cc_c89=$ac_arg
4312 else
4313 $as_echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4317 fi
4319 rm -f core conftest.err conftest.$ac_objext
4320 test "x$ac_cv_prog_cc_c89" != "xno" && break
4321 done
4322 rm -f conftest.$ac_ext
4323 CC=$ac_save_CC
4325 fi
4326 # AC_CACHE_VAL
4327 case "x$ac_cv_prog_cc_c89" in
4328 x)
4329 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4330 $as_echo "none needed" >&6; } ;;
4331 xno)
4332 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4333 $as_echo "unsupported" >&6; } ;;
4334 *)
4335 CC="$CC $ac_cv_prog_cc_c89"
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4337 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4338 esac
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 depcc="$CC" am_compiler_list=
4349 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4350 $as_echo_n "checking dependency style of $depcc... " >&6; }
4351 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4355 # We make a subdir and do the tests there. Otherwise we can end up
4356 # making bogus files that we don't know about and never remove. For
4357 # instance it was reported that on HP-UX the gcc test will end up
4358 # making a dummy file named `D' -- because `-MD' means `put the output
4359 # in D'.
4360 mkdir conftest.dir
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4364 cd conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4370 # directory.
4371 mkdir sub
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4376 fi
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4381 #
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4385 : > sub/conftest.c
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4389 # Solaris 8's {/usr,}/bin/sh.
4390 touch sub/conftst$i.h
4391 done
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4394 case $depmode in
4395 nosideeffect)
4396 # after this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested
4398 if test "x$enable_dependency_tracking" = xyes; then
4399 continue
4400 else
4401 break
4402 fi
4403 ;;
4404 none) break ;;
4405 esac
4406 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4407 # mode. It turns out that the SunPro C++ compiler does not properly
4408 # handle `-M -o', and we need to detect this.
4409 if depmode=$depmode \
4410 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4413 >/dev/null 2>conftest.err &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4427 break
4428 fi
4429 fi
4430 done
4432 cd ..
4433 rm -rf conftest.dir
4434 else
4435 am_cv_CC_dependencies_compiler_type=none
4436 fi
4438 fi
4439 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4445 if
4446 test "x$enable_dependency_tracking" != xno \
4447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4448 am__fastdepCC_TRUE=
4449 am__fastdepCC_FALSE='#'
4450 else
4451 am__fastdepCC_TRUE='#'
4452 am__fastdepCC_FALSE=
4453 fi
4456 ac_ext=c
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$CC"; then
4470 ac_cv_prog_CC="$CC" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4487 fi
4488 fi
4489 CC=$ac_cv_prog_CC
4490 if test -n "$CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4492 $as_echo "$CC" >&6; }
4493 else
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4496 fi
4499 fi
4500 if test -z "$ac_cv_prog_CC"; then
4501 ac_ct_CC=$CC
4502 # Extract the first word of "gcc", so it can be a program name with args.
4503 set dummy gcc; ac_word=$2
4504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if test -n "$ac_ct_CC"; then
4510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_CC="gcc"
4520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4527 fi
4528 fi
4529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530 if test -n "$ac_ct_CC"; then
4531 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4532 $as_echo "$ac_ct_CC" >&6; }
4533 else
4534 { $as_echo "$as_me:$LINENO: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4538 if test "x$ac_ct_CC" = x; then
4539 CC=""
4540 else
4541 case $cross_compiling:$ac_tool_warned in
4542 yes:)
4543 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet. If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&5
4546 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4549 ac_tool_warned=yes ;;
4550 esac
4551 CC=$ac_ct_CC
4552 fi
4553 else
4554 CC="$ac_cv_prog_CC"
4555 fi
4557 if test -z "$CC"; then
4558 if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4560 set dummy ${ac_tool_prefix}cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CC="${ac_tool_prefix}cc"
4577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580 done
4581 done
4582 IFS=$as_save_IFS
4584 fi
4585 fi
4586 CC=$ac_cv_prog_CC
4587 if test -n "$CC"; then
4588 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4589 $as_echo "$CC" >&6; }
4590 else
4591 { $as_echo "$as_me:$LINENO: result: no" >&5
4592 $as_echo "no" >&6; }
4593 fi
4596 fi
4597 fi
4598 if test -z "$CC"; then
4599 # Extract the first word of "cc", so it can be a program name with args.
4600 set dummy cc; ac_word=$2
4601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_CC+set}" = set; then
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$CC"; then
4607 ac_cv_prog_CC="$CC" # Let the user override the test.
4608 else
4609 ac_prog_rejected=no
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4618 ac_prog_rejected=yes
4619 continue
4620 fi
4621 ac_cv_prog_CC="cc"
4622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4629 if test $ac_prog_rejected = yes; then
4630 # We found a bogon in the path, so make sure we never use it.
4631 set dummy $ac_cv_prog_CC
4632 shift
4633 if test $# != 0; then
4634 # We chose a different compiler from the bogus one.
4635 # However, it has the same basename, so the bogon will be chosen
4636 # first if we set CC to just the basename; use the full file name.
4637 shift
4638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4639 fi
4640 fi
4641 fi
4642 fi
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4646 $as_echo "$CC" >&6; }
4647 else
4648 { $as_echo "$as_me:$LINENO: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4653 fi
4654 if test -z "$CC"; then
4655 if test -n "$ac_tool_prefix"; then
4656 for ac_prog in cl.exe
4657 do
4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_CC+set}" = set; then
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$CC"; then
4666 ac_cv_prog_CC="$CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4683 fi
4684 fi
4685 CC=$ac_cv_prog_CC
4686 if test -n "$CC"; then
4687 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4688 $as_echo "$CC" >&6; }
4689 else
4690 { $as_echo "$as_me:$LINENO: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4695 test -n "$CC" && break
4696 done
4697 fi
4698 if test -z "$CC"; then
4699 ac_ct_CC=$CC
4700 for ac_prog in cl.exe
4701 do
4702 # Extract the first word of "$ac_prog", so it can be a program name with args.
4703 set dummy $ac_prog; ac_word=$2
4704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4708 else
4709 if test -n "$ac_ct_CC"; then
4710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_prog_ac_ct_CC="$ac_prog"
4720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4722 fi
4723 done
4724 done
4725 IFS=$as_save_IFS
4727 fi
4728 fi
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 $as_echo "$ac_ct_CC" >&6; }
4733 else
4734 { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4739 test -n "$ac_ct_CC" && break
4740 done
4742 if test "x$ac_ct_CC" = x; then
4743 CC=""
4744 else
4745 case $cross_compiling:$ac_tool_warned in
4746 yes:)
4747 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4748 whose name does not start with the host triplet. If you think this
4749 configuration is useful to you, please write to autoconf@gnu.org." >&5
4750 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet. If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4753 ac_tool_warned=yes ;;
4754 esac
4755 CC=$ac_ct_CC
4756 fi
4757 fi
4759 fi
4762 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4763 See \`config.log' for more details." >&5
4764 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&2;}
4766 { (exit 1); exit 1; }; }
4768 # Provide some information about the compiler.
4769 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4770 set X $ac_compile
4771 ac_compiler=$2
4772 { (ac_try="$ac_compiler --version >&5"
4773 case "(($ac_try" in
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4776 esac
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4780 ac_status=$?
4781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4784 case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787 esac
4788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789 $as_echo "$ac_try_echo") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4791 ac_status=$?
4792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (ac_try="$ac_compiler -V >&5"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compiler -V >&5") 2>&5
4802 ac_status=$?
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }
4806 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4810 else
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4818 int
4819 main ()
4820 {
4821 #ifndef __GNUC__
4822 choke me
4823 #endif
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_compiler_gnu=yes
4848 else
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 ac_compiler_gnu=no
4853 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4858 fi
4859 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4862 GCC=yes
4863 else
4864 GCC=
4865 fi
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if test "${ac_cv_prog_cc_g+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4872 else
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4875 ac_cv_prog_cc_g=no
4876 CFLAGS="-g"
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4884 int
4885 main ()
4886 {
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899 $as_echo "$ac_try_echo") >&5
4900 (eval "$ac_compile") 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest.$ac_objext; then
4910 ac_cv_prog_cc_g=yes
4911 else
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 CFLAGS=""
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4923 int
4924 main ()
4925 {
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4949 :
4950 else
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 ac_c_werror_flag=$ac_save_c_werror_flag
4955 CFLAGS="-g"
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4963 int
4964 main ()
4965 {
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4989 ac_cv_prog_cc_g=yes
4990 else
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4995 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_c_werror_flag=$ac_save_c_werror_flag
5005 fi
5006 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5007 $as_echo "$ac_cv_prog_cc_g" >&6; }
5008 if test "$ac_test_CFLAGS" = set; then
5009 CFLAGS=$ac_save_CFLAGS
5010 elif test $ac_cv_prog_cc_g = yes; then
5011 if test "$GCC" = yes; then
5012 CFLAGS="-g -O2"
5013 else
5014 CFLAGS="-g"
5015 fi
5016 else
5017 if test "$GCC" = yes; then
5018 CFLAGS="-O2"
5019 else
5020 CFLAGS=
5021 fi
5022 fi
5023 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5025 if test "${ac_cv_prog_cc_c89+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5027 else
5028 ac_cv_prog_cc_c89=no
5029 ac_save_CC=$CC
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #include <stdarg.h>
5037 #include <stdio.h>
5038 #include <sys/types.h>
5039 #include <sys/stat.h>
5040 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5041 struct buf { int x; };
5042 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5043 static char *e (p, i)
5044 char **p;
5045 int i;
5046 {
5047 return p[i];
5048 }
5049 static char *f (char * (*g) (char **, int), char **p, ...)
5050 {
5051 char *s;
5052 va_list v;
5053 va_start (v,p);
5054 s = g (p, va_arg (v,int));
5055 va_end (v);
5056 return s;
5057 }
5059 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5060 function prototypes and stuff, but not '\xHH' hex character constants.
5061 These don't provoke an error unfortunately, instead are silently treated
5062 as 'x'. The following induces an error, until -std is added to get
5063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5064 array size at least. It's necessary to write '\x00'==0 to get something
5065 that's true only with -std. */
5066 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5068 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5069 inside strings and character constants. */
5070 #define FOO(x) 'x'
5071 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5073 int test (int i, double x);
5074 struct s1 {int (*f) (int a);};
5075 struct s2 {int (*f) (double a);};
5076 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5077 int argc;
5078 char **argv;
5079 int
5080 main ()
5081 {
5082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5083 ;
5084 return 0;
5085 }
5086 _ACEOF
5087 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5089 do
5090 CC="$ac_save_CC $ac_arg"
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_cv_prog_cc_c89=$ac_arg
5110 else
5111 $as_echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 fi
5117 rm -f core conftest.err conftest.$ac_objext
5118 test "x$ac_cv_prog_cc_c89" != "xno" && break
5119 done
5120 rm -f conftest.$ac_ext
5121 CC=$ac_save_CC
5123 fi
5124 # AC_CACHE_VAL
5125 case "x$ac_cv_prog_cc_c89" in
5126 x)
5127 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5128 $as_echo "none needed" >&6; } ;;
5129 xno)
5130 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5131 $as_echo "unsupported" >&6; } ;;
5132 *)
5133 CC="$CC $ac_cv_prog_cc_c89"
5134 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5135 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5136 esac
5139 ac_ext=c
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145 depcc="$CC" am_compiler_list=
5147 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5148 $as_echo_n "checking dependency style of $depcc... " >&6; }
5149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5153 # We make a subdir and do the tests there. Otherwise we can end up
5154 # making bogus files that we don't know about and never remove. For
5155 # instance it was reported that on HP-UX the gcc test will end up
5156 # making a dummy file named `D' -- because `-MD' means `put the output
5157 # in D'.
5158 mkdir conftest.dir
5159 # Copy depcomp to subdir because otherwise we won't find it if we're
5160 # using a relative directory.
5161 cp "$am_depcomp" conftest.dir
5162 cd conftest.dir
5163 # We will build objects and dependencies in a subdirectory because
5164 # it helps to detect inapplicable dependency modes. For instance
5165 # both Tru64's cc and ICC support -MD to output dependencies as a
5166 # side effect of compilation, but ICC will put the dependencies in
5167 # the current directory while Tru64 will put them in the object
5168 # directory.
5169 mkdir sub
5171 am_cv_CC_dependencies_compiler_type=none
5172 if test "$am_compiler_list" = ""; then
5173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5174 fi
5175 for depmode in $am_compiler_list; do
5176 # Setup a source with many dependencies, because some compilers
5177 # like to wrap large dependency lists on column 80 (with \), and
5178 # we should not choose a depcomp mode which is confused by this.
5179 #
5180 # We need to recreate these files for each test, as the compiler may
5181 # overwrite some of them when testing with obscure command lines.
5182 # This happens at least with the AIX C compiler.
5183 : > sub/conftest.c
5184 for i in 1 2 3 4 5 6; do
5185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5187 # Solaris 8's {/usr,}/bin/sh.
5188 touch sub/conftst$i.h
5189 done
5190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5192 case $depmode in
5193 nosideeffect)
5194 # after this tag, mechanisms are not by side-effect, so they'll
5195 # only be used when explicitly requested
5196 if test "x$enable_dependency_tracking" = xyes; then
5197 continue
5198 else
5199 break
5200 fi
5201 ;;
5202 none) break ;;
5203 esac
5204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5205 # mode. It turns out that the SunPro C++ compiler does not properly
5206 # handle `-M -o', and we need to detect this.
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5215 # icc doesn't choke on unknown options, it will just issue warnings
5216 # or remarks (even with -Werror). So we grep stderr for any message
5217 # that says an option was ignored or not supported.
5218 # When given -MP, icc 7.0 and 7.1 complain thusly:
5219 # icc: Command line warning: ignoring option '-M'; no argument required
5220 # The diagnosis changed in icc 8.0:
5221 # icc: Command line remark: option '-MP' not supported
5222 if (grep 'ignoring option' conftest.err ||
5223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5224 am_cv_CC_dependencies_compiler_type=$depmode
5225 break
5226 fi
5227 fi
5228 done
5230 cd ..
5231 rm -rf conftest.dir
5232 else
5233 am_cv_CC_dependencies_compiler_type=none
5234 fi
5236 fi
5237 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5243 if
5244 test "x$enable_dependency_tracking" != xno \
5245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5246 am__fastdepCC_TRUE=
5247 am__fastdepCC_FALSE='#'
5248 else
5249 am__fastdepCC_TRUE='#'
5250 am__fastdepCC_FALSE=
5251 fi
5255 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5257 ac_ext=m
5258 ac_cpp='$OBJCPP $CPPFLAGS'
5259 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in gcc objcc objc cc CC
5264 do
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_OBJC+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$OBJC"; then
5273 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5290 fi
5291 fi
5292 OBJC=$ac_cv_prog_OBJC
5293 if test -n "$OBJC"; then
5294 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5295 $as_echo "$OBJC" >&6; }
5296 else
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5302 test -n "$OBJC" && break
5303 done
5304 fi
5305 if test -z "$OBJC"; then
5306 ac_ct_OBJC=$OBJC
5307 for ac_prog in gcc objcc objc cc CC
5308 do
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$ac_ct_OBJC"; then
5317 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330 done
5331 done
5332 IFS=$as_save_IFS
5334 fi
5335 fi
5336 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5337 if test -n "$ac_ct_OBJC"; then
5338 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5339 $as_echo "$ac_ct_OBJC" >&6; }
5340 else
5341 { $as_echo "$as_me:$LINENO: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5346 test -n "$ac_ct_OBJC" && break
5347 done
5349 if test "x$ac_ct_OBJC" = x; then
5350 OBJC="gcc"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5355 whose name does not start with the host triplet. If you think this
5356 configuration is useful to you, please write to autoconf@gnu.org." >&5
5357 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5358 whose name does not start with the host triplet. If you think this
5359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5360 ac_tool_warned=yes ;;
5361 esac
5362 OBJC=$ac_ct_OBJC
5363 fi
5364 fi
5366 # Provide some information about the compiler.
5367 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5368 set X $ac_compile
5369 ac_compiler=$2
5370 { (ac_try="$ac_compiler --version >&5"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377 (eval "$ac_compiler --version >&5") 2>&5
5378 ac_status=$?
5379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -v >&5"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_compiler -v >&5") 2>&5
5389 ac_status=$?
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (ac_try="$ac_compiler -V >&5"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399 (eval "$ac_compiler -V >&5") 2>&5
5400 ac_status=$?
5401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5404 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5405 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5406 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 int
5417 main ()
5418 {
5419 #ifndef __GNUC__
5420 choke me
5421 #endif
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5429 case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432 esac
5433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434 $as_echo "$ac_try_echo") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_objc_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5445 ac_compiler_gnu=yes
5446 else
5447 $as_echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 ac_compiler_gnu=no
5451 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5456 fi
5457 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5458 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5459 if test $ac_compiler_gnu = yes; then
5460 GOBJC=yes
5461 else
5462 GOBJC=
5463 fi
5464 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5465 ac_save_OBJCFLAGS=$OBJCFLAGS
5466 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5467 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5468 if test "${ac_cv_prog_objc_g+set}" = set; then
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_save_objc_werror_flag=$ac_objc_werror_flag
5472 ac_objc_werror_flag=yes
5473 ac_cv_prog_objc_g=no
5474 OBJCFLAGS="-g"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5482 int
5483 main ()
5484 {
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_objc_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_prog_objc_g=yes
5509 else
5510 $as_echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 OBJCFLAGS=""
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 int
5522 main ()
5523 {
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534 esac
5535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536 $as_echo "$ac_try_echo") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_objc_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547 :
5548 else
5549 $as_echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 ac_objc_werror_flag=$ac_save_objc_werror_flag
5553 OBJCFLAGS="-g"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5561 int
5562 main ()
5563 {
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576 $as_echo "$ac_try_echo") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_objc_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_cv_prog_objc_g=yes
5588 else
5589 $as_echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5593 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 ac_objc_werror_flag=$ac_save_objc_werror_flag
5603 fi
5604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5605 $as_echo "$ac_cv_prog_objc_g" >&6; }
5606 if test "$ac_test_OBJCFLAGS" = set; then
5607 OBJCFLAGS=$ac_save_OBJCFLAGS
5608 elif test $ac_cv_prog_objc_g = yes; then
5609 if test "$GOBJC" = yes; then
5610 OBJCFLAGS="-g -O2"
5611 else
5612 OBJCFLAGS="-g"
5613 fi
5614 else
5615 if test "$GOBJC" = yes; then
5616 OBJCFLAGS="-O2"
5617 else
5618 OBJCFLAGS=
5619 fi
5620 fi
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5627 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5628 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5629 if test "${ac_cv_path_SED+set}" = set; then
5630 $as_echo_n "(cached) " >&6
5631 else
5632 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5633 for ac_i in 1 2 3 4 5 6 7; do
5634 ac_script="$ac_script$as_nl$ac_script"
5635 done
5636 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5637 $as_unset ac_script || ac_script=
5638 if test -z "$SED"; then
5639 ac_path_SED_found=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in sed gsed; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5649 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5650 # Check for GNU ac_path_SED and select it if it is found.
5651 # Check for GNU $ac_path_SED
5652 case `"$ac_path_SED" --version 2>&1` in
5653 *GNU*)
5654 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5655 *)
5656 ac_count=0
5657 $as_echo_n 0123456789 >"conftest.in"
5658 while :
5659 do
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 $as_echo '' >> "conftest.nl"
5664 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666 ac_count=`expr $ac_count + 1`
5667 if test $ac_count -gt ${ac_path_SED_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_SED="$ac_path_SED"
5670 ac_path_SED_max=$ac_count
5671 fi
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5674 done
5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 esac
5678 $ac_path_SED_found && break 3
5679 done
5680 done
5681 done
5682 IFS=$as_save_IFS
5683 if test -z "$ac_cv_path_SED"; then
5684 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5685 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5686 { (exit 1); exit 1; }; }
5687 fi
5688 else
5689 ac_cv_path_SED=$SED
5690 fi
5692 fi
5693 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5694 $as_echo "$ac_cv_path_SED" >&6; }
5695 SED="$ac_cv_path_SED"
5696 rm -f conftest.sed
5698 # By default we simply use the C compiler to build assembly code.
5700 test "${CCAS+set}" = set || CCAS=$CC
5701 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5705 ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5712 # On Suns, sometimes $CPP names a directory.
5713 if test -n "$CPP" && test -d "$CPP"; then
5714 CPP=
5715 fi
5716 if test -z "$CPP"; then
5717 if test "${ac_cv_prog_CPP+set}" = set; then
5718 $as_echo_n "(cached) " >&6
5719 else
5720 # Double quotes because CPP needs to be expanded
5721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5722 do
5723 ac_preproc_ok=false
5724 for ac_c_preproc_warn_flag in '' yes
5725 do
5726 # Use a header file that comes with gcc, so configuring glibc
5727 # with a fresh cross-compiler works.
5728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729 # <limits.h> exists even on freestanding compilers.
5730 # On the NeXT, cc -E runs the code through the compiler's parser,
5731 # not just through cpp. "Syntax error" is here to catch this case.
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 #ifdef __STDC__
5739 # include <limits.h>
5740 #else
5741 # include <assert.h>
5742 #endif
5743 Syntax error
5744 _ACEOF
5745 if { (ac_try="$ac_cpp conftest.$ac_ext"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751 $as_echo "$ac_try_echo") >&5
5752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } >/dev/null && {
5759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 }; then
5762 :
5763 else
5764 $as_echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 # Broken: fails on valid input.
5768 continue
5769 fi
5771 rm -f conftest.err conftest.$ac_ext
5773 # OK, works on sane cases. Now check whether nonexistent headers
5774 # can be detected and how.
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5782 _ACEOF
5783 if { (ac_try="$ac_cpp conftest.$ac_ext"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 }; then
5800 # Broken: success on invalid input.
5801 continue
5802 else
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 # Passes both tests.
5807 ac_preproc_ok=:
5808 break
5809 fi
5811 rm -f conftest.err conftest.$ac_ext
5813 done
5814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815 rm -f conftest.err conftest.$ac_ext
5816 if $ac_preproc_ok; then
5817 break
5818 fi
5820 done
5821 ac_cv_prog_CPP=$CPP
5823 fi
5824 CPP=$ac_cv_prog_CPP
5825 else
5826 ac_cv_prog_CPP=$CPP
5827 fi
5828 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5829 $as_echo "$CPP" >&6; }
5830 ac_preproc_ok=false
5831 for ac_c_preproc_warn_flag in '' yes
5832 do
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #ifdef __STDC__
5846 # include <limits.h>
5847 #else
5848 # include <assert.h>
5849 #endif
5850 Syntax error
5851 _ACEOF
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858 $as_echo "$ac_try_echo") >&5
5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } >/dev/null && {
5866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 }; then
5869 :
5870 else
5871 $as_echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 # Broken: fails on valid input.
5875 continue
5876 fi
5878 rm -f conftest.err conftest.$ac_ext
5880 # OK, works on sane cases. Now check whether nonexistent headers
5881 # can be detected and how.
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <ac_nonexistent.h>
5889 _ACEOF
5890 if { (ac_try="$ac_cpp conftest.$ac_ext"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896 $as_echo "$ac_try_echo") >&5
5897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev/null && {
5904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 }; then
5907 # Broken: success on invalid input.
5908 continue
5909 else
5910 $as_echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 # Passes both tests.
5914 ac_preproc_ok=:
5915 break
5916 fi
5918 rm -f conftest.err conftest.$ac_ext
5920 done
5921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922 rm -f conftest.err conftest.$ac_ext
5923 if $ac_preproc_ok; then
5924 :
5925 else
5926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5927 See \`config.log' for more details." >&5
5928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5929 See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5931 fi
5933 ac_ext=c
5934 ac_cpp='$CPP $CPPFLAGS'
5935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5942 if test "${ac_cv_path_GREP+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -z "$GREP"; then
5946 ac_path_GREP_found=false
5947 # Loop through the user's path and test for each of PROGNAME-LIST
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_prog in grep ggrep; do
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5956 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5957 # Check for GNU ac_path_GREP and select it if it is found.
5958 # Check for GNU $ac_path_GREP
5959 case `"$ac_path_GREP" --version 2>&1` in
5960 *GNU*)
5961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5962 *)
5963 ac_count=0
5964 $as_echo_n 0123456789 >"conftest.in"
5965 while :
5966 do
5967 cat "conftest.in" "conftest.in" >"conftest.tmp"
5968 mv "conftest.tmp" "conftest.in"
5969 cp "conftest.in" "conftest.nl"
5970 $as_echo 'GREP' >> "conftest.nl"
5971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5973 ac_count=`expr $ac_count + 1`
5974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5975 # Best one so far, save it but keep looking for a better one
5976 ac_cv_path_GREP="$ac_path_GREP"
5977 ac_path_GREP_max=$ac_count
5978 fi
5979 # 10*(2^10) chars as input seems more than enough
5980 test $ac_count -gt 10 && break
5981 done
5982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5983 esac
5985 $ac_path_GREP_found && break 3
5986 done
5987 done
5988 done
5989 IFS=$as_save_IFS
5990 if test -z "$ac_cv_path_GREP"; then
5991 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5992 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5993 { (exit 1); exit 1; }; }
5994 fi
5995 else
5996 ac_cv_path_GREP=$GREP
5997 fi
5999 fi
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6001 $as_echo "$ac_cv_path_GREP" >&6; }
6002 GREP="$ac_cv_path_GREP"
6005 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6006 $as_echo_n "checking for egrep... " >&6; }
6007 if test "${ac_cv_path_EGREP+set}" = set; then
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6011 then ac_cv_path_EGREP="$GREP -E"
6012 else
6013 if test -z "$EGREP"; then
6014 ac_path_EGREP_found=false
6015 # Loop through the user's path and test for each of PROGNAME-LIST
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_prog in egrep; do
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6024 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6025 # Check for GNU ac_path_EGREP and select it if it is found.
6026 # Check for GNU $ac_path_EGREP
6027 case `"$ac_path_EGREP" --version 2>&1` in
6028 *GNU*)
6029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6030 *)
6031 ac_count=0
6032 $as_echo_n 0123456789 >"conftest.in"
6033 while :
6034 do
6035 cat "conftest.in" "conftest.in" >"conftest.tmp"
6036 mv "conftest.tmp" "conftest.in"
6037 cp "conftest.in" "conftest.nl"
6038 $as_echo 'EGREP' >> "conftest.nl"
6039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6041 ac_count=`expr $ac_count + 1`
6042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6043 # Best one so far, save it but keep looking for a better one
6044 ac_cv_path_EGREP="$ac_path_EGREP"
6045 ac_path_EGREP_max=$ac_count
6046 fi
6047 # 10*(2^10) chars as input seems more than enough
6048 test $ac_count -gt 10 && break
6049 done
6050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6051 esac
6053 $ac_path_EGREP_found && break 3
6054 done
6055 done
6056 done
6057 IFS=$as_save_IFS
6058 if test -z "$ac_cv_path_EGREP"; then
6059 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6060 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6061 { (exit 1); exit 1; }; }
6062 fi
6063 else
6064 ac_cv_path_EGREP=$EGREP
6065 fi
6067 fi
6068 fi
6069 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6070 $as_echo "$ac_cv_path_EGREP" >&6; }
6071 EGREP="$ac_cv_path_EGREP"
6074 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6075 $as_echo_n "checking for ANSI C header files... " >&6; }
6076 if test "${ac_cv_header_stdc+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <stdlib.h>
6086 #include <stdarg.h>
6087 #include <string.h>
6088 #include <float.h>
6090 int
6091 main ()
6092 {
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
6116 ac_cv_header_stdc=yes
6117 else
6118 $as_echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_cv_header_stdc=no
6122 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 if test $ac_cv_header_stdc = yes; then
6127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <string.h>
6136 _ACEOF
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 $EGREP "memchr" >/dev/null 2>&1; then
6139 :
6140 else
6141 ac_cv_header_stdc=no
6142 fi
6143 rm -f conftest*
6145 fi
6147 if test $ac_cv_header_stdc = yes; then
6148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <stdlib.h>
6157 _ACEOF
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159 $EGREP "free" >/dev/null 2>&1; then
6160 :
6161 else
6162 ac_cv_header_stdc=no
6163 fi
6164 rm -f conftest*
6166 fi
6168 if test $ac_cv_header_stdc = yes; then
6169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170 if test "$cross_compiling" = yes; then
6171 :
6172 else
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <ctype.h>
6180 #include <stdlib.h>
6181 #if ((' ' & 0x0FF) == 0x020)
6182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6184 #else
6185 # define ISLOWER(c) \
6186 (('a' <= (c) && (c) <= 'i') \
6187 || ('j' <= (c) && (c) <= 'r') \
6188 || ('s' <= (c) && (c) <= 'z'))
6189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6190 #endif
6192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6193 int
6194 main ()
6195 {
6196 int i;
6197 for (i = 0; i < 256; i++)
6198 if (XOR (islower (i), ISLOWER (i))
6199 || toupper (i) != TOUPPER (i))
6200 return 2;
6201 return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_link") 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6216 { (case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6221 $as_echo "$ac_try_echo") >&5
6222 (eval "$ac_try") 2>&5
6223 ac_status=$?
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 :
6227 else
6228 $as_echo "$as_me: program exited with status $ac_status" >&5
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 ( exit $ac_status )
6233 ac_cv_header_stdc=no
6234 fi
6235 rm -rf conftest.dSYM
6236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6237 fi
6240 fi
6241 fi
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6243 $as_echo "$ac_cv_header_stdc" >&6; }
6244 if test $ac_cv_header_stdc = yes; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define STDC_HEADERS 1
6248 _ACEOF
6250 fi
6252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6263 inttypes.h stdint.h unistd.h
6264 do
6265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6270 else
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6279 #include <$ac_header>
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6283 case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286 esac
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 eval "$as_ac_Header=yes"
6300 else
6301 $as_echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 eval "$as_ac_Header=no"
6305 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 fi
6309 ac_res=`eval 'as_val=${'$as_ac_Header'}
6310 $as_echo "$as_val"'`
6311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6312 $as_echo "$ac_res" >&6; }
6313 if test `eval 'as_val=${'$as_ac_Header'}
6314 $as_echo "$as_val"'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6319 fi
6321 done
6324 # The cast to long int works around a bug in the HP C Compiler
6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6327 # This bug is HP SR number 8606223364.
6328 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6329 $as_echo_n "checking size of void *... " >&6; }
6330 if test "${ac_cv_sizeof_void_p+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test "$cross_compiling" = yes; then
6334 # Depending upon the size, compute the lo and hi bounds.
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 int
6343 main ()
6344 {
6345 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6346 test_array [0] = 0
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6370 ac_lo=0 ac_mid=0
6371 while :; do
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6379 int
6380 main ()
6381 {
6382 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6383 test_array [0] = 0
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6391 case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394 esac
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_hi=$ac_mid; break
6408 else
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_lo=`expr $ac_mid + 1`
6413 if test $ac_lo -le $ac_mid; then
6414 ac_lo= ac_hi=
6415 break
6416 fi
6417 ac_mid=`expr 2 '*' $ac_mid + 1`
6418 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 done
6422 else
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6433 int
6434 main ()
6435 {
6436 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6437 test_array [0] = 0
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (ac_try="$ac_compile"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6450 $as_echo "$ac_try_echo") >&5
6451 (eval "$ac_compile") 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest.$ac_objext; then
6461 ac_hi=-1 ac_mid=-1
6462 while :; do
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6470 int
6471 main ()
6472 {
6473 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6474 test_array [0] = 0
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_lo=$ac_mid; break
6499 else
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_hi=`expr '(' $ac_mid ')' - 1`
6504 if test $ac_mid -le $ac_hi; then
6505 ac_lo= ac_hi=
6506 break
6507 fi
6508 ac_mid=`expr 2 '*' $ac_mid`
6509 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 done
6513 else
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_lo= ac_hi=
6518 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 fi
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6534 int
6535 main ()
6536 {
6537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6538 test_array [0] = 0
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_hi=$ac_mid
6563 else
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_lo=`expr '(' $ac_mid ')' + 1`
6568 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 done
6572 case $ac_lo in
6573 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6574 '') if test "$ac_cv_type_void_p" = yes; then
6575 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6576 See \`config.log' for more details." >&5
6577 $as_echo "$as_me: error: cannot compute sizeof (void *)
6578 See \`config.log' for more details." >&2;}
6579 { (exit 77); exit 77; }; }
6580 else
6581 ac_cv_sizeof_void_p=0
6582 fi ;;
6583 esac
6584 else
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6592 static long int longval () { return (long int) (sizeof (void *)); }
6593 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6594 #include <stdio.h>
6595 #include <stdlib.h>
6596 int
6597 main ()
6598 {
6600 FILE *f = fopen ("conftest.val", "w");
6601 if (! f)
6602 return 1;
6603 if (((long int) (sizeof (void *))) < 0)
6604 {
6605 long int i = longval ();
6606 if (i != ((long int) (sizeof (void *))))
6607 return 1;
6608 fprintf (f, "%ld", i);
6609 }
6610 else
6611 {
6612 unsigned long int i = ulongval ();
6613 if (i != ((long int) (sizeof (void *))))
6614 return 1;
6615 fprintf (f, "%lu", i);
6616 }
6617 /* Do not output a trailing newline, as this causes \r\n confusion
6618 on some platforms. */
6619 return ferror (f) || fclose (f) != 0;
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest$ac_exeext
6626 if { (ac_try="$ac_link"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_link") 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6637 { (case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643 (eval "$ac_try") 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_sizeof_void_p=`cat conftest.val`
6648 else
6649 $as_echo "$as_me: program exited with status $ac_status" >&5
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ( exit $ac_status )
6654 if test "$ac_cv_type_void_p" = yes; then
6655 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6656 See \`config.log' for more details." >&5
6657 $as_echo "$as_me: error: cannot compute sizeof (void *)
6658 See \`config.log' for more details." >&2;}
6659 { (exit 77); exit 77; }; }
6660 else
6661 ac_cv_sizeof_void_p=0
6662 fi
6663 fi
6664 rm -rf conftest.dSYM
6665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 rm -f conftest.val
6668 fi
6669 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6670 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6674 cat >>confdefs.h <<_ACEOF
6675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6676 _ACEOF
6679 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6680 $as_echo_n "checking for ANSI C header files... " >&6; }
6681 if test "${ac_cv_header_stdc+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 #include <stdlib.h>
6691 #include <stdarg.h>
6692 #include <string.h>
6693 #include <float.h>
6695 int
6696 main ()
6697 {
6699 ;
6700 return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_header_stdc=yes
6722 else
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_header_stdc=no
6727 fi
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 if test $ac_cv_header_stdc = yes; then
6732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #include <string.h>
6741 _ACEOF
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "memchr" >/dev/null 2>&1; then
6744 :
6745 else
6746 ac_cv_header_stdc=no
6747 fi
6748 rm -f conftest*
6750 fi
6752 if test $ac_cv_header_stdc = yes; then
6753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <stdlib.h>
6762 _ACEOF
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev/null 2>&1; then
6765 :
6766 else
6767 ac_cv_header_stdc=no
6768 fi
6769 rm -f conftest*
6771 fi
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then
6776 :
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <ctype.h>
6785 #include <stdlib.h>
6786 #if ((' ' & 0x0FF) == 0x020)
6787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6789 #else
6790 # define ISLOWER(c) \
6791 (('a' <= (c) && (c) <= 'i') \
6792 || ('j' <= (c) && (c) <= 'r') \
6793 || ('s' <= (c) && (c) <= 'z'))
6794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6795 #endif
6797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6798 int
6799 main ()
6800 {
6801 int i;
6802 for (i = 0; i < 256; i++)
6803 if (XOR (islower (i), ISLOWER (i))
6804 || toupper (i) != TOUPPER (i))
6805 return 2;
6806 return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816 $as_echo "$ac_try_echo") >&5
6817 (eval "$ac_link") 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6821 { (case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824 esac
6825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826 $as_echo "$ac_try_echo") >&5
6827 (eval "$ac_try") 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 :
6832 else
6833 $as_echo "$as_me: program exited with status $ac_status" >&5
6834 $as_echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 ( exit $ac_status )
6838 ac_cv_header_stdc=no
6839 fi
6840 rm -rf conftest.dSYM
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6842 fi
6845 fi
6846 fi
6847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6848 $as_echo "$ac_cv_header_stdc" >&6; }
6849 if test $ac_cv_header_stdc = yes; then
6851 cat >>confdefs.h <<\_ACEOF
6852 #define STDC_HEADERS 1
6853 _ACEOF
6855 fi
6857 # Make sure we can run config.sub.
6858 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6859 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6860 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6861 { (exit 1); exit 1; }; }
6863 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6864 $as_echo_n "checking build system type... " >&6; }
6865 if test "${ac_cv_build+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6867 else
6868 ac_build_alias=$build_alias
6869 test "x$ac_build_alias" = x &&
6870 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6871 test "x$ac_build_alias" = x &&
6872 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6873 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6874 { (exit 1); exit 1; }; }
6875 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6876 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6877 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6878 { (exit 1); exit 1; }; }
6880 fi
6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6882 $as_echo "$ac_cv_build" >&6; }
6883 case $ac_cv_build in
6884 *-*-*) ;;
6885 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6886 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6887 { (exit 1); exit 1; }; };;
6888 esac
6889 build=$ac_cv_build
6890 ac_save_IFS=$IFS; IFS='-'
6891 set x $ac_cv_build
6892 shift
6893 build_cpu=$1
6894 build_vendor=$2
6895 shift; shift
6896 # Remember, the first character of IFS is used to create $*,
6897 # except with old shells:
6898 build_os=$*
6899 IFS=$ac_save_IFS
6900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6903 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6904 $as_echo_n "checking host system type... " >&6; }
6905 if test "${ac_cv_host+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test "x$host_alias" = x; then
6909 ac_cv_host=$ac_cv_build
6910 else
6911 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6912 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6913 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6914 { (exit 1); exit 1; }; }
6915 fi
6917 fi
6918 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6919 $as_echo "$ac_cv_host" >&6; }
6920 case $ac_cv_host in
6921 *-*-*) ;;
6922 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6923 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6924 { (exit 1); exit 1; }; };;
6925 esac
6926 host=$ac_cv_host
6927 ac_save_IFS=$IFS; IFS='-'
6928 set x $ac_cv_host
6929 shift
6930 host_cpu=$1
6931 host_vendor=$2
6932 shift; shift
6933 # Remember, the first character of IFS is used to create $*,
6934 # except with old shells:
6935 host_os=$*
6936 IFS=$ac_save_IFS
6937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6942 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6944 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6945 $as_echo_n "checking dependency style of $depcc... " >&6; }
6946 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6950 # We make a subdir and do the tests there. Otherwise we can end up
6951 # making bogus files that we don't know about and never remove. For
6952 # instance it was reported that on HP-UX the gcc test will end up
6953 # making a dummy file named `D' -- because `-MD' means `put the output
6954 # in D'.
6955 mkdir conftest.dir
6956 # Copy depcomp to subdir because otherwise we won't find it if we're
6957 # using a relative directory.
6958 cp "$am_depcomp" conftest.dir
6959 cd conftest.dir
6960 # We will build objects and dependencies in a subdirectory because
6961 # it helps to detect inapplicable dependency modes. For instance
6962 # both Tru64's cc and ICC support -MD to output dependencies as a
6963 # side effect of compilation, but ICC will put the dependencies in
6964 # the current directory while Tru64 will put them in the object
6965 # directory.
6966 mkdir sub
6968 am_cv_OBJC_dependencies_compiler_type=none
6969 if test "$am_compiler_list" = ""; then
6970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6971 fi
6972 for depmode in $am_compiler_list; do
6973 # Setup a source with many dependencies, because some compilers
6974 # like to wrap large dependency lists on column 80 (with \), and
6975 # we should not choose a depcomp mode which is confused by this.
6976 #
6977 # We need to recreate these files for each test, as the compiler may
6978 # overwrite some of them when testing with obscure command lines.
6979 # This happens at least with the AIX C compiler.
6980 : > sub/conftest.c
6981 for i in 1 2 3 4 5 6; do
6982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6984 # Solaris 8's {/usr,}/bin/sh.
6985 touch sub/conftst$i.h
6986 done
6987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6989 case $depmode in
6990 nosideeffect)
6991 # after this tag, mechanisms are not by side-effect, so they'll
6992 # only be used when explicitly requested
6993 if test "x$enable_dependency_tracking" = xyes; then
6994 continue
6995 else
6996 break
6997 fi
6998 ;;
6999 none) break ;;
7000 esac
7001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle `-M -o', and we need to detect this.
7004 if depmode=$depmode \
7005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7008 >/dev/null 2>conftest.err &&
7009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7010 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7012 # icc doesn't choke on unknown options, it will just issue warnings
7013 # or remarks (even with -Werror). So we grep stderr for any message
7014 # that says an option was ignored or not supported.
7015 # When given -MP, icc 7.0 and 7.1 complain thusly:
7016 # icc: Command line warning: ignoring option '-M'; no argument required
7017 # The diagnosis changed in icc 8.0:
7018 # icc: Command line remark: option '-MP' not supported
7019 if (grep 'ignoring option' conftest.err ||
7020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7021 am_cv_OBJC_dependencies_compiler_type=$depmode
7022 break
7023 fi
7024 fi
7025 done
7027 cd ..
7028 rm -rf conftest.dir
7029 else
7030 am_cv_OBJC_dependencies_compiler_type=none
7031 fi
7033 fi
7034 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7035 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7036 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7040 if
7041 test "x$enable_dependency_tracking" != xno \
7042 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7043 am__fastdepOBJC_TRUE=
7044 am__fastdepOBJC_FALSE='#'
7045 else
7046 am__fastdepOBJC_TRUE='#'
7047 am__fastdepOBJC_FALSE=
7048 fi
7052 # Extract the first word of "pod2man", so it can be a program name with args.
7053 set dummy pod2man; ac_word=$2
7054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_path_POD2MAN+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7058 else
7059 case $POD2MAN in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7079 ;;
7080 esac
7081 fi
7082 POD2MAN=$ac_cv_path_POD2MAN
7083 if test -n "$POD2MAN"; then
7084 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7085 $as_echo "$POD2MAN" >&6; }
7086 else
7087 { $as_echo "$as_me:$LINENO: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7092 # Extract the first word of "pod2html", so it can be a program name with args.
7093 set dummy pod2html; ac_word=$2
7094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_path_POD2HTML+set}" = set; then
7097 $as_echo_n "(cached) " >&6
7098 else
7099 case $POD2HTML in
7100 [\\/]* | ?:[\\/]*)
7101 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7102 ;;
7103 *)
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7119 ;;
7120 esac
7121 fi
7122 POD2HTML=$ac_cv_path_POD2HTML
7123 if test -n "$POD2HTML"; then
7124 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7125 $as_echo "$POD2HTML" >&6; }
7126 else
7127 { $as_echo "$as_me:$LINENO: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7134 # Check whether --enable-strict-warn was given.
7135 if test "${enable_strict_warn+set}" = set; then
7136 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7137 enable_strictwarn=yes
7138 fi
7139 fi
7141 # Check whether --enable-translator was given.
7142 if test "${enable_translator+set}" = set; then
7143 enableval=$enable_translator; true
7144 else
7145 enable_translator=yes
7146 fi
7148 # Check whether --enable-optimized was given.
7149 if test "${enable_optimized+set}" = set; then
7150 enableval=$enable_optimized; true
7151 else
7152 enable_optimized=yes
7153 fi
7155 # Check whether --enable-profiled was given.
7156 if test "${enable_profiled+set}" = set; then
7157 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7158 enable_profiled=yes;
7159 fi
7160 fi
7162 # Check whether --enable-trace was given.
7163 if test "${enable_trace+set}" = set; then
7164 enableval=$enable_trace; if test "$enableval" == "yes"; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define ENABLE_TRACE_IO 1
7168 _ACEOF
7170 fi
7171 fi
7173 # Check whether --enable-watch was given.
7174 if test "${enable_watch+set}" = set; then
7175 enableval=$enable_watch; if test "$enableval" == "yes"; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_WATCH 1
7179 _ACEOF
7181 fi
7182 fi
7184 # Check whether --enable-sh4stats was given.
7185 if test "${enable_sh4stats+set}" = set; then
7186 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define ENABLE_SH4STATS 1
7190 _ACEOF
7192 fi
7193 fi
7196 # Check whether --with-osmesa was given.
7197 if test "${with_osmesa+set}" = set; then
7198 withval=$with_osmesa;
7199 else
7200 with_osmesa=no
7201 fi
7204 # Check whether --with-gtk was given.
7205 if test "${with_gtk+set}" = set; then
7206 withval=$with_gtk; with_gtk=yes
7207 else
7208 with_gtk=x11
7209 fi
7212 # Check whether --with-esd was given.
7213 if test "${with_esd+set}" = set; then
7214 withval=$with_esd;
7215 fi
7218 # Check whether --with-pulse was given.
7219 if test "${with_pulse+set}" = set; then
7220 withval=$with_pulse;
7221 fi
7224 # Check whether --with-sdl was given.
7225 if test "${with_sdl+set}" = set; then
7226 withval=$with_sdl;
7227 fi
7234 ac_ext=m
7235 ac_cpp='$OBJCPP $CPPFLAGS'
7236 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7239 if test -n "$ac_tool_prefix"; then
7240 for ac_prog in gcc objcc objc cc CC
7241 do
7242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_OBJC+set}" = set; then
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$OBJC"; then
7250 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7267 fi
7268 fi
7269 OBJC=$ac_cv_prog_OBJC
7270 if test -n "$OBJC"; then
7271 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7272 $as_echo "$OBJC" >&6; }
7273 else
7274 { $as_echo "$as_me:$LINENO: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7279 test -n "$OBJC" && break
7280 done
7281 fi
7282 if test -z "$OBJC"; then
7283 ac_ct_OBJC=$OBJC
7284 for ac_prog in gcc objcc objc cc CC
7285 do
7286 # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$ac_ct_OBJC"; then
7294 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7311 fi
7312 fi
7313 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7314 if test -n "$ac_ct_OBJC"; then
7315 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7316 $as_echo "$ac_ct_OBJC" >&6; }
7317 else
7318 { $as_echo "$as_me:$LINENO: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7323 test -n "$ac_ct_OBJC" && break
7324 done
7326 if test "x$ac_ct_OBJC" = x; then
7327 OBJC="gcc"
7328 else
7329 case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 OBJC=$ac_ct_OBJC
7340 fi
7341 fi
7343 # Provide some information about the compiler.
7344 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7345 set X $ac_compile
7346 ac_compiler=$2
7347 { (ac_try="$ac_compiler --version >&5"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compiler --version >&5") 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7358 { (ac_try="$ac_compiler -v >&5"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_compiler -v >&5") 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7369 { (ac_try="$ac_compiler -V >&5"
7370 case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_compiler -V >&5") 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }
7381 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7382 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7383 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7393 int
7394 main ()
7395 {
7396 #ifndef __GNUC__
7397 choke me
7398 #endif
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7406 case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7411 $as_echo "$ac_try_echo") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_objc_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 ac_compiler_gnu=yes
7423 else
7424 $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_compiler_gnu=no
7428 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7433 fi
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7435 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7436 if test $ac_compiler_gnu = yes; then
7437 GOBJC=yes
7438 else
7439 GOBJC=
7440 fi
7441 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7442 ac_save_OBJCFLAGS=$OBJCFLAGS
7443 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7444 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7445 if test "${ac_cv_prog_objc_g+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7447 else
7448 ac_save_objc_werror_flag=$ac_objc_werror_flag
7449 ac_objc_werror_flag=yes
7450 ac_cv_prog_objc_g=no
7451 OBJCFLAGS="-g"
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7459 int
7460 main ()
7461 {
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7469 case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472 esac
7473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7474 $as_echo "$ac_try_echo") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_objc_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 ac_cv_prog_objc_g=yes
7486 else
7487 $as_echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 OBJCFLAGS=""
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7498 int
7499 main ()
7500 {
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7508 case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7513 $as_echo "$ac_try_echo") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_objc_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7524 :
7525 else
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_objc_werror_flag=$ac_save_objc_werror_flag
7530 OBJCFLAGS="-g"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7538 int
7539 main ()
7540 {
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_objc_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 ac_cv_prog_objc_g=yes
7565 else
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7570 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 fi
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 ac_objc_werror_flag=$ac_save_objc_werror_flag
7580 fi
7581 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7582 $as_echo "$ac_cv_prog_objc_g" >&6; }
7583 if test "$ac_test_OBJCFLAGS" = set; then
7584 OBJCFLAGS=$ac_save_OBJCFLAGS
7585 elif test $ac_cv_prog_objc_g = yes; then
7586 if test "$GOBJC" = yes; then
7587 OBJCFLAGS="-g -O2"
7588 else
7589 OBJCFLAGS="-g"
7590 fi
7591 else
7592 if test "$GOBJC" = yes; then
7593 OBJCFLAGS="-O2"
7594 else
7595 OBJCFLAGS=
7596 fi
7597 fi
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7605 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7606 ac_ext=m
7607 ac_cpp='$OBJCPP $CPPFLAGS'
7608 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 @interface Foo @end
7618 int
7619 main ()
7620 {
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_objc_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 { $as_echo "$as_me:$LINENO: result: yes" >&5
7645 $as_echo "yes" >&6; }
7647 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7648 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7649 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7650 $as_echo_n "(cached) " >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7660 #include <Cocoa/Cocoa.h>
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_objc_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.$ac_objext; then
7680 ac_cv_header_Cocoa_Cocoa_h=yes
7681 else
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 ac_cv_header_Cocoa_Cocoa_h=no
7686 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 fi
7690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7691 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7692 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7694 HAVE_COCOA='yes'
7695 APPLE_BUILD='yes'
7696 LIBS="$LIBS -framework AppKit"
7697 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
7698 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7699 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_COCOA 1
7703 _ACEOF
7706 cat >>confdefs.h <<\_ACEOF
7707 #define APPLE_BUILD 1
7708 _ACEOF
7710 if test "x$with_gtk" = "xx11"; then
7711 with_gtk=no
7712 fi
7714 fi
7719 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7720 $as_echo_n "checking OBJC version... " >&6; }
7721 if test -n "$OBJC"; then
7722 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7723 if test -n "$_GOBJC_VERSION"; then
7724 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7725 $as_echo "GCC" >&6; }
7726 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7727 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7728 else
7729 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7730 $as_echo "Unknown" >&6; }
7731 OBJCOPT="-O2"
7732 fi
7733 else
7734 { $as_echo "$as_me:$LINENO: result: None" >&5
7735 $as_echo "None" >&6; }
7737 fi
7740 else
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 { $as_echo "$as_me:$LINENO: result: No" >&5
7745 $as_echo "No" >&6; }
7747 fi
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7750 ac_ext=c
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7761 GUI_COCOA_TRUE=
7762 GUI_COCOA_FALSE='#'
7763 else
7764 GUI_COCOA_TRUE='#'
7765 GUI_COCOA_FALSE=
7766 fi
7768 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define OSX_BUNDLE 1
7772 _ACEOF
7774 fi
7776 CFLAGS="-g -fexceptions"
7777 OBJCFLAGS="-g -fexceptions"
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_EXCEPTIONS 1
7781 _ACEOF
7784 STDCFLAG="-std=c99"
7786 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7787 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7788 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7789 $as_echo_n "checking CC version... " >&6; }
7790 if test -n "$_ICC_VERSION"; then
7791 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7792 $as_echo "ICC" >&6; }
7793 CCOPT="$CFLAGS -fast"
7794 CFLAGS="$CFLAGS -fno-strict-aliasing"
7795 elif test -n "$_GCC_VERSION"; then
7796 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7797 $as_echo "GCC" >&6; }
7798 CCOPT="-O2 -msse2 -mfpmath=sse"
7799 CFLAGS="$CFLAGS -fno-strict-aliasing"
7800 else
7801 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7802 $as_echo "Unknown" >&6; }
7803 CCOPT="$CFLAGS -O2"
7804 fi
7807 if test "x$enable_optimized" = "xyes"; then
7808 CFLAGS="$CFLAGS $CCOPT"
7809 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7810 if test "x$enable_profiled" != "xyes"; then
7811 CFLAGS="$CFLAGS -fomit-frame-pointer"
7812 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7813 fi
7814 else
7815 CFLAGS="$CFLAGS -g3"
7816 OBJCFLAGS="$OBJCFLAGS -g3"
7817 fi
7819 if test "x$enable_profiled" = "xyes"; then
7820 CFLAGS="$CFLAGS -pg"
7821 LDFLAGS="$LDFLAGS -pg";
7822 OBJCFLAGS="$OBJCFLAGS -pg";
7823 fi
7825 if test "x$enable_strictwarn" = "xyes"; then
7826 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7827 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7828 fi
7831 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7832 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7833 if test "$cross_compiling" = yes; then
7834 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7835 See \`config.log' for more details." >&5
7836 $as_echo "$as_me: error: cannot run test program while cross compiling
7837 See \`config.log' for more details." >&2;}
7838 { (exit 1); exit 1; }; }
7839 else
7840 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7848 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7850 int main(int argc, char *argv[])
7851 {
7852 return foo( 1, 2 ) == 3 ? 0 : 1;
7853 }
7854 _ACEOF
7855 rm -f conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7857 case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860 esac
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_link") 2>&5
7864 ac_status=$?
7865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_try") 2>&5
7874 ac_status=$?
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7878 { $as_echo "$as_me:$LINENO: result: yes" >&5
7879 $as_echo "yes" >&6; }
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_FASTCALL 1
7884 _ACEOF
7887 else
7888 $as_echo "$as_me: program exited with status $ac_status" >&5
7889 $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ( exit $ac_status )
7894 { $as_echo "$as_me:$LINENO: result: no" >&5
7895 $as_echo "no" >&6; }
7897 fi
7898 rm -rf conftest.dSYM
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7900 fi
7905 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7906 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7907 if test "$cross_compiling" = yes; then
7908 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7909 See \`config.log' for more details." >&5
7910 $as_echo "$as_me: error: cannot run test program while cross compiling
7911 See \`config.log' for more details." >&2;}
7912 { (exit 1); exit 1; }; }
7913 else
7914 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7923 int __attribute__((noinline)) foo( int arg, void *exc )
7924 {
7925 if( arg < 2 ) {
7926 *(((void **)__builtin_frame_address(0))+1) = exc;
7927 }
7928 return 0;
7929 }
7931 int main(int argc, char *argv[])
7932 {
7933 goto *first_arg(&&start, &&except);
7935 start:
7936 return foo( argc, &&except ) + 1;
7938 except:
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_link") 2>&5
7951 ac_status=$?
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_try") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7965 { $as_echo "$as_me:$LINENO: result: yes" >&5
7966 $as_echo "yes" >&6; }
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_FRAME_ADDRESS 1
7971 _ACEOF
7974 else
7975 $as_echo "$as_me: program exited with status $ac_status" >&5
7976 $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ( exit $ac_status )
7981 { $as_echo "$as_me:$LINENO: result: no" >&5
7982 $as_echo "no" >&6; }
7983 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7984 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7985 fi
7986 rm -rf conftest.dSYM
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7988 fi
7993 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
7994 $as_echo_n "checking for library containing listen... " >&6; }
7995 if test "${ac_cv_search_listen+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7997 else
7998 ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char listen ();
8013 int
8014 main ()
8015 {
8016 return listen ();
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 for ac_lib in '' socket; do
8022 if test -z "$ac_lib"; then
8023 ac_res="none required"
8024 else
8025 ac_res=-l$ac_lib
8026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8027 fi
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036 (eval "$ac_link") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext && {
8046 test "$cross_compiling" = yes ||
8047 $as_test_x conftest$ac_exeext
8048 }; then
8049 ac_cv_search_listen=$ac_res
8050 else
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8055 fi
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059 conftest$ac_exeext
8060 if test "${ac_cv_search_listen+set}" = set; then
8061 break
8062 fi
8063 done
8064 if test "${ac_cv_search_listen+set}" = set; then
8065 :
8066 else
8067 ac_cv_search_listen=no
8068 fi
8069 rm conftest.$ac_ext
8070 LIBS=$ac_func_search_save_LIBS
8071 fi
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8073 $as_echo "$ac_cv_search_listen" >&6; }
8074 ac_res=$ac_cv_search_listen
8075 if test "$ac_res" != no; then
8076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8078 fi
8080 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8081 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8082 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8083 $as_echo_n "(cached) " >&6
8084 else
8085 ac_func_search_save_LIBS=$LIBS
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8093 /* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char inet_ntoa ();
8100 int
8101 main ()
8102 {
8103 return inet_ntoa ();
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 for ac_lib in '' nsl; do
8109 if test -z "$ac_lib"; then
8110 ac_res="none required"
8111 else
8112 ac_res=-l$ac_lib
8113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8114 fi
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122 $as_echo "$ac_try_echo") >&5
8123 (eval "$ac_link") 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest$ac_exeext && {
8133 test "$cross_compiling" = yes ||
8134 $as_test_x conftest$ac_exeext
8135 }; then
8136 ac_cv_search_inet_ntoa=$ac_res
8137 else
8138 $as_echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8142 fi
8144 rm -rf conftest.dSYM
8145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8146 conftest$ac_exeext
8147 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8148 break
8149 fi
8150 done
8151 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8152 :
8153 else
8154 ac_cv_search_inet_ntoa=no
8155 fi
8156 rm conftest.$ac_ext
8157 LIBS=$ac_func_search_save_LIBS
8158 fi
8159 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8160 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8161 ac_res=$ac_cv_search_inet_ntoa
8162 if test "$ac_res" != no; then
8163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8165 fi
8170 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8171 if test -n "$ac_tool_prefix"; then
8172 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8173 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8178 else
8179 case $PKG_CONFIG in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8182 ;;
8183 *)
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195 done
8196 done
8197 IFS=$as_save_IFS
8199 ;;
8200 esac
8201 fi
8202 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8203 if test -n "$PKG_CONFIG"; then
8204 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8205 $as_echo "$PKG_CONFIG" >&6; }
8206 else
8207 { $as_echo "$as_me:$LINENO: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8212 fi
8213 if test -z "$ac_cv_path_PKG_CONFIG"; then
8214 ac_pt_PKG_CONFIG=$PKG_CONFIG
8215 # Extract the first word of "pkg-config", so it can be a program name with args.
8216 set dummy pkg-config; ac_word=$2
8217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8220 $as_echo_n "(cached) " >&6
8221 else
8222 case $ac_pt_PKG_CONFIG in
8223 [\\/]* | ?:[\\/]*)
8224 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8225 ;;
8226 *)
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8242 ;;
8243 esac
8244 fi
8245 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8246 if test -n "$ac_pt_PKG_CONFIG"; then
8247 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8248 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8249 else
8250 { $as_echo "$as_me:$LINENO: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8254 if test "x$ac_pt_PKG_CONFIG" = x; then
8255 PKG_CONFIG=""
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258 yes:)
8259 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8260 whose name does not start with the host triplet. If you think this
8261 configuration is useful to you, please write to autoconf@gnu.org." >&5
8262 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8263 whose name does not start with the host triplet. If you think this
8264 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267 PKG_CONFIG=$ac_pt_PKG_CONFIG
8268 fi
8269 else
8270 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8271 fi
8273 fi
8274 if test -n "$PKG_CONFIG"; then
8275 _pkg_min_version=0.9.0
8276 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8277 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8278 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8279 { $as_echo "$as_me:$LINENO: result: yes" >&5
8280 $as_echo "yes" >&6; }
8281 else
8282 { $as_echo "$as_me:$LINENO: result: no" >&5
8283 $as_echo "no" >&6; }
8284 PKG_CONFIG=""
8285 fi
8287 fi
8289 pkg_failed=no
8290 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8291 $as_echo_n "checking for LIBPNG... " >&6; }
8293 if test -n "$LIBPNG_CFLAGS"; then
8294 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8295 elif test -n "$PKG_CONFIG"; then
8296 if test -n "$PKG_CONFIG" && \
8297 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8298 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8299 ac_status=$?
8300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; then
8302 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8303 else
8304 pkg_failed=yes
8305 fi
8306 else
8307 pkg_failed=untried
8308 fi
8309 if test -n "$LIBPNG_LIBS"; then
8310 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8311 elif test -n "$PKG_CONFIG"; then
8312 if test -n "$PKG_CONFIG" && \
8313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8314 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8315 ac_status=$?
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; then
8318 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8319 else
8320 pkg_failed=yes
8321 fi
8322 else
8323 pkg_failed=untried
8324 fi
8328 if test $pkg_failed = yes; then
8330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8331 _pkg_short_errors_supported=yes
8332 else
8333 _pkg_short_errors_supported=no
8334 fi
8335 if test $_pkg_short_errors_supported = yes; then
8336 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8337 else
8338 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8339 fi
8340 # Put the nasty error message in config.log where it belongs
8341 echo "$LIBPNG_PKG_ERRORS" >&5
8343 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8345 $LIBPNG_PKG_ERRORS
8347 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8348 installed software in a non-standard prefix.
8350 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8351 and LIBPNG_LIBS to avoid the need to call pkg-config.
8352 See the pkg-config man page for more details.
8353 " >&5
8354 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8356 $LIBPNG_PKG_ERRORS
8358 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8359 installed software in a non-standard prefix.
8361 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8362 and LIBPNG_LIBS to avoid the need to call pkg-config.
8363 See the pkg-config man page for more details.
8364 " >&2;}
8365 { (exit 1); exit 1; }; }
8366 elif test $pkg_failed = untried; then
8367 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8368 is in your PATH or set the PKG_CONFIG environment variable to the full
8369 path to pkg-config.
8371 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8372 and LIBPNG_LIBS to avoid the need to call pkg-config.
8373 See the pkg-config man page for more details.
8375 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8376 See \`config.log' for more details." >&5
8377 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8378 is in your PATH or set the PKG_CONFIG environment variable to the full
8379 path to pkg-config.
8381 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8382 and LIBPNG_LIBS to avoid the need to call pkg-config.
8383 See the pkg-config man page for more details.
8385 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8386 See \`config.log' for more details." >&2;}
8387 { (exit 1); exit 1; }; }
8388 else
8389 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8390 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8391 { $as_echo "$as_me:$LINENO: result: yes" >&5
8392 $as_echo "yes" >&6; }
8393 :
8394 fi
8397 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8398 $as_echo_n "checking for uncompress in -lz... " >&6; }
8399 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8401 else
8402 ac_check_lib_save_LIBS=$LIBS
8403 LIBS="-lz $LIBS"
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 char uncompress ();
8418 int
8419 main ()
8420 {
8421 return uncompress ();
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8428 case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_link") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest$ac_exeext && {
8444 test "$cross_compiling" = yes ||
8445 $as_test_x conftest$ac_exeext
8446 }; then
8447 ac_cv_lib_z_uncompress=yes
8448 else
8449 $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_cv_lib_z_uncompress=no
8453 fi
8455 rm -rf conftest.dSYM
8456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8457 conftest$ac_exeext conftest.$ac_ext
8458 LIBS=$ac_check_lib_save_LIBS
8459 fi
8460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8461 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8462 if test $ac_cv_lib_z_uncompress = yes; then
8463 cat >>confdefs.h <<_ACEOF
8464 #define HAVE_LIBZ 1
8465 _ACEOF
8467 LIBS="-lz $LIBS"
8469 else
8471 echo "Zlib (libz.so) could not be found, but is required."
8472 exit 1
8473 fi
8476 if test "x$with_gtk" = "xno"; then
8478 pkg_failed=no
8479 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8480 $as_echo_n "checking for GLIB... " >&6; }
8482 if test -n "$GLIB_CFLAGS"; then
8483 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8484 elif test -n "$PKG_CONFIG"; then
8485 if test -n "$PKG_CONFIG" && \
8486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8487 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8488 ac_status=$?
8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; then
8491 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8492 else
8493 pkg_failed=yes
8494 fi
8495 else
8496 pkg_failed=untried
8497 fi
8498 if test -n "$GLIB_LIBS"; then
8499 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8500 elif test -n "$PKG_CONFIG"; then
8501 if test -n "$PKG_CONFIG" && \
8502 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8503 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8504 ac_status=$?
8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; then
8507 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8508 else
8509 pkg_failed=yes
8510 fi
8511 else
8512 pkg_failed=untried
8513 fi
8517 if test $pkg_failed = yes; then
8519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8520 _pkg_short_errors_supported=yes
8521 else
8522 _pkg_short_errors_supported=no
8523 fi
8524 if test $_pkg_short_errors_supported = yes; then
8525 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8526 else
8527 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8528 fi
8529 # Put the nasty error message in config.log where it belongs
8530 echo "$GLIB_PKG_ERRORS" >&5
8532 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8534 $GLIB_PKG_ERRORS
8536 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8537 installed software in a non-standard prefix.
8539 Alternatively, you may set the environment variables GLIB_CFLAGS
8540 and GLIB_LIBS to avoid the need to call pkg-config.
8541 See the pkg-config man page for more details.
8542 " >&5
8543 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8545 $GLIB_PKG_ERRORS
8547 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8548 installed software in a non-standard prefix.
8550 Alternatively, you may set the environment variables GLIB_CFLAGS
8551 and GLIB_LIBS to avoid the need to call pkg-config.
8552 See the pkg-config man page for more details.
8553 " >&2;}
8554 { (exit 1); exit 1; }; }
8555 elif test $pkg_failed = untried; then
8556 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8557 is in your PATH or set the PKG_CONFIG environment variable to the full
8558 path to pkg-config.
8560 Alternatively, you may set the environment variables GLIB_CFLAGS
8561 and GLIB_LIBS to avoid the need to call pkg-config.
8562 See the pkg-config man page for more details.
8564 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8565 See \`config.log' for more details." >&5
8566 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8567 is in your PATH or set the PKG_CONFIG environment variable to the full
8568 path to pkg-config.
8570 Alternatively, you may set the environment variables GLIB_CFLAGS
8571 and GLIB_LIBS to avoid the need to call pkg-config.
8572 See the pkg-config man page for more details.
8574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8575 See \`config.log' for more details." >&2;}
8576 { (exit 1); exit 1; }; }
8577 else
8578 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8579 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8580 { $as_echo "$as_me:$LINENO: result: yes" >&5
8581 $as_echo "yes" >&6; }
8582 :
8583 fi
8584 else
8586 pkg_failed=no
8587 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8588 $as_echo_n "checking for GTK... " >&6; }
8590 if test -n "$GTK_CFLAGS"; then
8591 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8592 elif test -n "$PKG_CONFIG"; then
8593 if test -n "$PKG_CONFIG" && \
8594 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8595 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8596 ac_status=$?
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; then
8599 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8600 else
8601 pkg_failed=yes
8602 fi
8603 else
8604 pkg_failed=untried
8605 fi
8606 if test -n "$GTK_LIBS"; then
8607 pkg_cv_GTK_LIBS="$GTK_LIBS"
8608 elif test -n "$PKG_CONFIG"; then
8609 if test -n "$PKG_CONFIG" && \
8610 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8611 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8612 ac_status=$?
8613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; then
8615 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8616 else
8617 pkg_failed=yes
8618 fi
8619 else
8620 pkg_failed=untried
8621 fi
8625 if test $pkg_failed = yes; then
8627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8628 _pkg_short_errors_supported=yes
8629 else
8630 _pkg_short_errors_supported=no
8631 fi
8632 if test $_pkg_short_errors_supported = yes; then
8633 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8634 else
8635 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8636 fi
8637 # Put the nasty error message in config.log where it belongs
8638 echo "$GTK_PKG_ERRORS" >&5
8640 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8642 $GTK_PKG_ERRORS
8644 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8645 installed software in a non-standard prefix.
8647 Alternatively, you may set the environment variables GTK_CFLAGS
8648 and GTK_LIBS to avoid the need to call pkg-config.
8649 See the pkg-config man page for more details.
8650 " >&5
8651 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8653 $GTK_PKG_ERRORS
8655 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8656 installed software in a non-standard prefix.
8658 Alternatively, you may set the environment variables GTK_CFLAGS
8659 and GTK_LIBS to avoid the need to call pkg-config.
8660 See the pkg-config man page for more details.
8661 " >&2;}
8662 { (exit 1); exit 1; }; }
8663 elif test $pkg_failed = untried; then
8664 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8665 is in your PATH or set the PKG_CONFIG environment variable to the full
8666 path to pkg-config.
8668 Alternatively, you may set the environment variables GTK_CFLAGS
8669 and GTK_LIBS to avoid the need to call pkg-config.
8670 See the pkg-config man page for more details.
8672 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8673 See \`config.log' for more details." >&5
8674 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8675 is in your PATH or set the PKG_CONFIG environment variable to the full
8676 path to pkg-config.
8678 Alternatively, you may set the environment variables GTK_CFLAGS
8679 and GTK_LIBS to avoid the need to call pkg-config.
8680 See the pkg-config man page for more details.
8682 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8683 See \`config.log' for more details." >&2;}
8684 { (exit 1); exit 1; }; }
8685 else
8686 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8687 GTK_LIBS=$pkg_cv_GTK_LIBS
8688 { $as_echo "$as_me:$LINENO: result: yes" >&5
8689 $as_echo "yes" >&6; }
8691 HAVE_GTK='yes'
8693 cat >>confdefs.h <<\_ACEOF
8694 #define HAVE_GTK 1
8695 _ACEOF
8698 fi
8700 LIBS="$LIBS $GTK_LIBS"
8701 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8702 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8703 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8727 #undef gdk_x11_display_get_xdisplay
8729 /* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8732 #ifdef __cplusplus
8733 extern "C"
8734 #endif
8735 char gdk_x11_display_get_xdisplay ();
8736 /* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8740 choke me
8741 #endif
8743 int
8744 main ()
8745 {
8746 return gdk_x11_display_get_xdisplay ();
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_link") 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest$ac_exeext && {
8769 test "$cross_compiling" = yes ||
8770 $as_test_x conftest$ac_exeext
8771 }; then
8772 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8773 else
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_func_gdk_x11_display_get_xdisplay=no
8778 fi
8780 rm -rf conftest.dSYM
8781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8782 conftest$ac_exeext conftest.$ac_ext
8783 fi
8784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8785 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8786 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
8788 HAVE_GTK_X11='yes'
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_GTK_X11 1
8792 _ACEOF
8794 fi
8796 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8797 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8798 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char gdk_quartz_window_get_nsview (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8816 #ifdef __STDC__
8817 # include <limits.h>
8818 #else
8819 # include <assert.h>
8820 #endif
8822 #undef gdk_quartz_window_get_nsview
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 char gdk_quartz_window_get_nsview ();
8831 /* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8835 choke me
8836 #endif
8838 int
8839 main ()
8840 {
8841 return gdk_quartz_window_get_nsview ();
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854 (eval "$ac_link") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest$ac_exeext && {
8864 test "$cross_compiling" = yes ||
8865 $as_test_x conftest$ac_exeext
8866 }; then
8867 ac_cv_func_gdk_quartz_window_get_nsview=yes
8868 else
8869 $as_echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_func_gdk_quartz_window_get_nsview=no
8873 fi
8875 rm -rf conftest.dSYM
8876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8877 conftest$ac_exeext conftest.$ac_ext
8878 fi
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8880 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8881 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
8883 HAVE_GTK_OSX='yes'
8885 cat >>confdefs.h <<\_ACEOF
8886 #define HAVE_GTK_OSX 1
8887 _ACEOF
8889 fi
8891 fi
8895 if test "$HAVE_GTK" = 'yes'; then
8896 GUI_GTK_TRUE=
8897 GUI_GTK_FALSE='#'
8898 else
8899 GUI_GTK_TRUE='#'
8900 GUI_GTK_FALSE=
8901 fi
8904 if test "x$with_osmesa" != xno; then
8908 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8909 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8910 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8911 $as_echo_n "(cached) " >&6
8912 else
8913 ac_check_lib_save_LIBS=$LIBS
8914 LIBS="-lOSMesa $LIBS"
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 /* Override any GCC internal prototype to avoid an error.
8923 Use char because int might match the return type of a GCC
8924 builtin and then its argument prototype would still apply. */
8925 #ifdef __cplusplus
8926 extern "C"
8927 #endif
8928 char OSMesaCreateContext ();
8929 int
8930 main ()
8931 {
8932 return OSMesaCreateContext ();
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (ac_try="$ac_link"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944 $as_echo "$ac_try_echo") >&5
8945 (eval "$ac_link") 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest$ac_exeext && {
8955 test "$cross_compiling" = yes ||
8956 $as_test_x conftest$ac_exeext
8957 }; then
8958 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8959 else
8960 $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8964 fi
8966 rm -rf conftest.dSYM
8967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968 conftest$ac_exeext conftest.$ac_ext
8969 LIBS=$ac_check_lib_save_LIBS
8970 fi
8971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8972 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8973 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_LIBOSMESA 1
8976 _ACEOF
8978 LIBS="-lOSMesa $LIBS"
8980 else
8981 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8982 See \`config.log' for more details." >&5
8983 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8984 See \`config.log' for more details." >&2;}
8985 { (exit 1); exit 1; }; }
8986 fi
8988 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8989 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8990 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8991 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8992 $as_echo_n "(cached) " >&6
8993 fi
8994 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8995 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8996 else
8997 # Is the header compilable?
8998 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8999 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 $ac_includes_default
9007 #include <GL/osmesa.h>
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (ac_try="$ac_compile"
9011 case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014 esac
9015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9016 $as_echo "$ac_try_echo") >&5
9017 (eval "$ac_compile") 2>conftest.er1
9018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
9022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } && {
9024 test -z "$ac_c_werror_flag" ||
9025 test ! -s conftest.err
9026 } && test -s conftest.$ac_objext; then
9027 ac_header_compiler=yes
9028 else
9029 $as_echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_header_compiler=no
9033 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9037 $as_echo "$ac_header_compiler" >&6; }
9039 # Is the header present?
9040 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9041 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 #include <GL/osmesa.h>
9049 _ACEOF
9050 if { (ac_try="$ac_cpp conftest.$ac_ext"
9051 case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054 esac
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev/null && {
9064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 }; then
9067 ac_header_preproc=yes
9068 else
9069 $as_echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_header_preproc=no
9073 fi
9075 rm -f conftest.err conftest.$ac_ext
9076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9077 $as_echo "$ac_header_preproc" >&6; }
9079 # So? What about this header?
9080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9081 yes:no: )
9082 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9083 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9084 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9085 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9086 ac_header_preproc=yes
9087 ;;
9088 no:yes:* )
9089 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9090 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9091 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9092 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9093 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9094 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9095 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9096 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9097 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9098 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9099 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9100 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9102 ;;
9103 esac
9104 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9105 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9106 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9107 $as_echo_n "(cached) " >&6
9108 else
9109 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9110 fi
9111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9112 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9114 fi
9115 if test $ac_cv_header_GL_osmesa_h = yes; then
9116 :
9117 else
9118 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9119 See \`config.log' for more details." >&5
9120 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9121 See \`config.log' for more details." >&2;}
9122 { (exit 1); exit 1; }; }
9123 fi
9126 HAVE_OSMESA='yes'
9127 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9129 cat >>confdefs.h <<\_ACEOF
9130 #define HAVE_OSMESA 1
9131 _ACEOF
9133 else
9136 if test "x$APPLE_BUILD" != 'xyes'; then
9138 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9139 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9140 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9141 $as_echo_n "(cached) " >&6
9142 else
9143 ac_check_lib_save_LIBS=$LIBS
9144 LIBS="-lGL $LIBS"
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9152 /* Override any GCC internal prototype to avoid an error.
9153 Use char because int might match the return type of a GCC
9154 builtin and then its argument prototype would still apply. */
9155 #ifdef __cplusplus
9156 extern "C"
9157 #endif
9158 char glVertex3f ();
9159 int
9160 main ()
9161 {
9162 return glVertex3f ();
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_link") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest$ac_exeext && {
9185 test "$cross_compiling" = yes ||
9186 $as_test_x conftest$ac_exeext
9187 }; then
9188 ac_cv_lib_GL_glVertex3f=yes
9189 else
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_cv_lib_GL_glVertex3f=no
9194 fi
9196 rm -rf conftest.dSYM
9197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9198 conftest$ac_exeext conftest.$ac_ext
9199 LIBS=$ac_check_lib_save_LIBS
9200 fi
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9202 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9203 if test $ac_cv_lib_GL_glVertex3f = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_LIBGL 1
9206 _ACEOF
9208 LIBS="-lGL $LIBS"
9210 else
9212 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9213 See \`config.log' for more details." >&5
9214 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9215 See \`config.log' for more details." >&2;}
9216 { (exit 1); exit 1; }; }
9217 fi
9219 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9220 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9221 $as_echo_n "checking for GL/gl.h... " >&6; }
9222 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9223 $as_echo_n "(cached) " >&6
9224 fi
9225 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9226 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9227 else
9228 # Is the header compilable?
9229 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9230 $as_echo_n "checking GL/gl.h usability... " >&6; }
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 $ac_includes_default
9238 #include <GL/gl.h>
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_header_compiler=yes
9259 else
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_header_compiler=no
9264 fi
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9268 $as_echo "$ac_header_compiler" >&6; }
9270 # Is the header present?
9271 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9272 $as_echo_n "checking GL/gl.h presence... " >&6; }
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 #include <GL/gl.h>
9280 _ACEOF
9281 if { (ac_try="$ac_cpp conftest.$ac_ext"
9282 case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null && {
9295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 }; then
9298 ac_header_preproc=yes
9299 else
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 ac_header_preproc=no
9304 fi
9306 rm -f conftest.err conftest.$ac_ext
9307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9308 $as_echo "$ac_header_preproc" >&6; }
9310 # So? What about this header?
9311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9312 yes:no: )
9313 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9314 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9315 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9316 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9317 ac_header_preproc=yes
9318 ;;
9319 no:yes:* )
9320 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9321 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9322 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9323 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9324 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9325 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9326 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9327 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9328 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9329 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9330 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9331 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9333 ;;
9334 esac
9335 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9336 $as_echo_n "checking for GL/gl.h... " >&6; }
9337 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9338 $as_echo_n "(cached) " >&6
9339 else
9340 ac_cv_header_GL_gl_h=$ac_header_preproc
9341 fi
9342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9343 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9345 fi
9346 if test $ac_cv_header_GL_gl_h = yes; then
9347 :
9348 else
9350 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9351 See \`config.log' for more details." >&5
9352 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9353 See \`config.log' for more details." >&2;}
9354 { (exit 1); exit 1; }; }
9355 fi
9358 else
9359 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9360 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9361 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9372 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9374 /* System header to define __stub macros and hopefully few prototypes,
9375 which can conflict with char NSOpenGLGetVersion (); below.
9376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9377 <limits.h> exists even on freestanding compilers. */
9379 #ifdef __STDC__
9380 # include <limits.h>
9381 #else
9382 # include <assert.h>
9383 #endif
9385 #undef NSOpenGLGetVersion
9387 /* Override any GCC internal prototype to avoid an error.
9388 Use char because int might match the return type of a GCC
9389 builtin and then its argument prototype would still apply. */
9390 #ifdef __cplusplus
9391 extern "C"
9392 #endif
9393 char NSOpenGLGetVersion ();
9394 /* The GNU C library defines this for functions which it implements
9395 to always fail with ENOSYS. Some functions are actually named
9396 something starting with __ and the normal name is an alias. */
9397 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9398 choke me
9399 #endif
9401 int
9402 main ()
9403 {
9404 return NSOpenGLGetVersion ();
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (ac_try="$ac_link"
9411 case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414 esac
9415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9416 $as_echo "$ac_try_echo") >&5
9417 (eval "$ac_link") 2>conftest.er1
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
9422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && {
9424 test -z "$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9426 } && test -s conftest$ac_exeext && {
9427 test "$cross_compiling" = yes ||
9428 $as_test_x conftest$ac_exeext
9429 }; then
9430 ac_cv_func_NSOpenGLGetVersion=yes
9431 else
9432 $as_echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_cv_func_NSOpenGLGetVersion=no
9436 fi
9438 rm -rf conftest.dSYM
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440 conftest$ac_exeext conftest.$ac_ext
9441 fi
9442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9443 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9444 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9446 HAVE_NSGL='yes'
9447 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9449 cat >>confdefs.h <<\_ACEOF
9450 #define HAVE_NSGL 1
9451 _ACEOF
9453 fi
9455 fi
9457 if test "x$HAVE_GTK_X11" = "xyes"; then
9458 if test "x$APPLE_BUILD" = "xyes"; then
9459 LIBS="$LIBS -L/usr/X11/lib -lGL"
9460 fi
9461 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9462 $as_echo_n "checking for glXQueryVersion... " >&6; }
9463 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9474 #define glXQueryVersion innocuous_glXQueryVersion
9476 /* System header to define __stub macros and hopefully few prototypes,
9477 which can conflict with char glXQueryVersion (); below.
9478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479 <limits.h> exists even on freestanding compilers. */
9481 #ifdef __STDC__
9482 # include <limits.h>
9483 #else
9484 # include <assert.h>
9485 #endif
9487 #undef glXQueryVersion
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9492 #ifdef __cplusplus
9493 extern "C"
9494 #endif
9495 char glXQueryVersion ();
9496 /* The GNU C library defines this for functions which it implements
9497 to always fail with ENOSYS. Some functions are actually named
9498 something starting with __ and the normal name is an alias. */
9499 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9500 choke me
9501 #endif
9503 int
9504 main ()
9505 {
9506 return glXQueryVersion ();
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9513 case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9518 $as_echo "$ac_try_echo") >&5
9519 (eval "$ac_link") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest$ac_exeext && {
9529 test "$cross_compiling" = yes ||
9530 $as_test_x conftest$ac_exeext
9531 }; then
9532 ac_cv_func_glXQueryVersion=yes
9533 else
9534 $as_echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_cv_func_glXQueryVersion=no
9538 fi
9540 rm -rf conftest.dSYM
9541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9542 conftest$ac_exeext conftest.$ac_ext
9543 fi
9544 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9545 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9546 if test $ac_cv_func_glXQueryVersion = yes; then
9548 HAVE_GLX='yes'
9549 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9551 cat >>confdefs.h <<\_ACEOF
9552 #define HAVE_GLX 1
9553 _ACEOF
9555 fi
9557 fi
9560 fi
9567 if test "x$HAVE_OSMESA" = "xyes"; then
9568 VIDEO_OSMESA_TRUE=
9569 VIDEO_OSMESA_FALSE='#'
9570 else
9571 VIDEO_OSMESA_TRUE='#'
9572 VIDEO_OSMESA_FALSE=
9573 fi
9577 if test "x$HAVE_GLX" = "xyes"; then
9578 VIDEO_GLX_TRUE=
9579 VIDEO_GLX_FALSE='#'
9580 else
9581 VIDEO_GLX_TRUE='#'
9582 VIDEO_GLX_FALSE=
9583 fi
9587 if test "x$HAVE_NSGL" = "xyes"; then
9588 VIDEO_NSGL_TRUE=
9589 VIDEO_NSGL_FALSE='#'
9590 else
9591 VIDEO_NSGL_TRUE='#'
9592 VIDEO_NSGL_FALSE=
9593 fi
9596 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9597 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9598 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9599 $as_echo_n "(cached) " >&6
9600 else
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9609 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char glGenFramebuffersEXT (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9616 #ifdef __STDC__
9617 # include <limits.h>
9618 #else
9619 # include <assert.h>
9620 #endif
9622 #undef glGenFramebuffersEXT
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char glGenFramebuffersEXT ();
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9635 choke me
9636 #endif
9638 int
9639 main ()
9640 {
9641 return glGenFramebuffersEXT ();
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654 (eval "$ac_link") 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext && {
9664 test "$cross_compiling" = yes ||
9665 $as_test_x conftest$ac_exeext
9666 }; then
9667 ac_cv_func_glGenFramebuffersEXT=yes
9668 else
9669 $as_echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_func_glGenFramebuffersEXT=no
9673 fi
9675 rm -rf conftest.dSYM
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9678 fi
9679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9680 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9681 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_OPENGL_FBO 1
9685 _ACEOF
9687 fi
9689 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9690 $as_echo_n "checking for glCreateShader... " >&6; }
9691 if test "${ac_cv_func_glCreateShader+set}" = set; then
9692 $as_echo_n "(cached) " >&6
9693 else
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define glCreateShader innocuous_glCreateShader
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char glCreateShader (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9709 #ifdef __STDC__
9710 # include <limits.h>
9711 #else
9712 # include <assert.h>
9713 #endif
9715 #undef glCreateShader
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char glCreateShader ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9728 choke me
9729 #endif
9731 int
9732 main ()
9733 {
9734 return glCreateShader ();
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9741 case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744 esac
9745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9746 $as_echo "$ac_try_echo") >&5
9747 (eval "$ac_link") 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && {
9754 test -z "$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 } && test -s conftest$ac_exeext && {
9757 test "$cross_compiling" = yes ||
9758 $as_test_x conftest$ac_exeext
9759 }; then
9760 ac_cv_func_glCreateShader=yes
9761 else
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_glCreateShader=no
9766 fi
9768 rm -rf conftest.dSYM
9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770 conftest$ac_exeext conftest.$ac_ext
9771 fi
9772 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9773 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9774 if test $ac_cv_func_glCreateShader = yes; then
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_OPENGL_SHADER 1
9778 _ACEOF
9780 fi
9782 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9783 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9784 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9785 $as_echo_n "(cached) " >&6
9786 else
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9795 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9797 /* System header to define __stub macros and hopefully few prototypes,
9798 which can conflict with char glCreateShaderObjectARB (); below.
9799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9800 <limits.h> exists even on freestanding compilers. */
9802 #ifdef __STDC__
9803 # include <limits.h>
9804 #else
9805 # include <assert.h>
9806 #endif
9808 #undef glCreateShaderObjectARB
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char glCreateShaderObjectARB ();
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9821 choke me
9822 #endif
9824 int
9825 main ()
9826 {
9827 return glCreateShaderObjectARB ();
9828 ;
9829 return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9834 case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837 esac
9838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9839 $as_echo "$ac_try_echo") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext && {
9850 test "$cross_compiling" = yes ||
9851 $as_test_x conftest$ac_exeext
9852 }; then
9853 ac_cv_func_glCreateShaderObjectARB=yes
9854 else
9855 $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_func_glCreateShaderObjectARB=no
9859 fi
9861 rm -rf conftest.dSYM
9862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9863 conftest$ac_exeext conftest.$ac_ext
9864 fi
9865 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9866 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9867 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
9869 cat >>confdefs.h <<\_ACEOF
9870 #define HAVE_OPENGL_SHADER_ARB 1
9871 _ACEOF
9873 fi
9875 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9876 $as_echo_n "checking for glClampColorARB... " >&6; }
9877 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9878 $as_echo_n "(cached) " >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define glClampColorARB innocuous_glClampColorARB
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char glClampColorARB (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9901 #undef glClampColorARB
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char glClampColorARB ();
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9914 choke me
9915 #endif
9917 int
9918 main ()
9919 {
9920 return glClampColorARB ();
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930 esac
9931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9932 $as_echo "$ac_try_echo") >&5
9933 (eval "$ac_link") 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && {
9940 test -z "$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 } && test -s conftest$ac_exeext && {
9943 test "$cross_compiling" = yes ||
9944 $as_test_x conftest$ac_exeext
9945 }; then
9946 ac_cv_func_glClampColorARB=yes
9947 else
9948 $as_echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_func_glClampColorARB=no
9952 fi
9954 rm -rf conftest.dSYM
9955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956 conftest$ac_exeext conftest.$ac_ext
9957 fi
9958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9959 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9960 if test $ac_cv_func_glClampColorARB = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_OPENGL_CLAMP_COLOR 1
9964 _ACEOF
9966 fi
9971 if test "x$enable_translator" != "xno"; then
9972 case $host_cpu in
9973 i386|i486|i586|i686|x86_64)
9974 SH4_TRANSLATOR="x86"
9976 cat >>confdefs.h <<_ACEOF
9977 #define SH4_TRANSLATOR TARGET_X86
9978 _ACEOF
9979 ;;
9980 esac
9981 fi
9984 if test "$SH4_TRANSLATOR" = "x86"; then
9985 BUILD_SH4X86_TRUE=
9986 BUILD_SH4X86_FALSE='#'
9987 else
9988 BUILD_SH4X86_TRUE='#'
9989 BUILD_SH4X86_FALSE=
9990 fi
9993 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9994 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9995 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9996 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9997 $as_echo_n "(cached) " >&6
9998 fi
9999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10000 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10001 else
10002 # Is the header compilable?
10003 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10004 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10012 #include <CoreAudio/CoreAudio.h>
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10021 $as_echo "$ac_try_echo") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.$ac_objext; then
10032 ac_header_compiler=yes
10033 else
10034 $as_echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_header_compiler=no
10038 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10042 $as_echo "$ac_header_compiler" >&6; }
10044 # Is the header present?
10045 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10046 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10047 cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h. */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 #include <CoreAudio/CoreAudio.h>
10054 _ACEOF
10055 if { (ac_try="$ac_cpp conftest.$ac_ext"
10056 case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059 esac
10060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10061 $as_echo "$ac_try_echo") >&5
10062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } >/dev/null && {
10069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10071 }; then
10072 ac_header_preproc=yes
10073 else
10074 $as_echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_header_preproc=no
10078 fi
10080 rm -f conftest.err conftest.$ac_ext
10081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10082 $as_echo "$ac_header_preproc" >&6; }
10084 # So? What about this header?
10085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10086 yes:no: )
10087 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10088 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10090 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10091 ac_header_preproc=yes
10092 ;;
10093 no:yes:* )
10094 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10095 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10096 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10097 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10098 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10099 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10100 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10101 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10102 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10103 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10104 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10105 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10107 ;;
10108 esac
10109 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10110 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10111 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10112 $as_echo_n "(cached) " >&6
10113 else
10114 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10115 fi
10116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10117 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10119 fi
10120 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
10122 HAVE_CORE_AUDIO=yes
10123 LIBS="$LIBS -framework CoreAudio"
10124 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10126 cat >>confdefs.h <<\_ACEOF
10127 #define HAVE_CORE_AUDIO 1
10128 _ACEOF
10130 else
10131 true
10132 fi
10137 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10138 AUDIO_OSX_TRUE=
10139 AUDIO_OSX_FALSE='#'
10140 else
10141 AUDIO_OSX_TRUE='#'
10142 AUDIO_OSX_FALSE=
10143 fi
10146 if test "x$with_sdl" != "xno"; then
10148 pkg_failed=no
10149 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10150 $as_echo_n "checking for SDL... " >&6; }
10152 if test -n "$SDL_CFLAGS"; then
10153 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10154 elif test -n "$PKG_CONFIG"; then
10155 if test -n "$PKG_CONFIG" && \
10156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10157 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10158 ac_status=$?
10159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; then
10161 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10162 else
10163 pkg_failed=yes
10164 fi
10165 else
10166 pkg_failed=untried
10167 fi
10168 if test -n "$SDL_LIBS"; then
10169 pkg_cv_SDL_LIBS="$SDL_LIBS"
10170 elif test -n "$PKG_CONFIG"; then
10171 if test -n "$PKG_CONFIG" && \
10172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10173 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10174 ac_status=$?
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; then
10177 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10178 else
10179 pkg_failed=yes
10180 fi
10181 else
10182 pkg_failed=untried
10183 fi
10187 if test $pkg_failed = yes; then
10189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10190 _pkg_short_errors_supported=yes
10191 else
10192 _pkg_short_errors_supported=no
10193 fi
10194 if test $_pkg_short_errors_supported = yes; then
10195 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10196 else
10197 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10198 fi
10199 # Put the nasty error message in config.log where it belongs
10200 echo "$SDL_PKG_ERRORS" >&5
10202 { $as_echo "$as_me:$LINENO: result: no" >&5
10203 $as_echo "no" >&6; }
10205 if test "x$with_sdl" = "xyes"; then
10206 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10207 See \`config.log' for more details." >&5
10208 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10209 See \`config.log' for more details." >&2;}
10210 { (exit 1); exit 1; }; }
10211 fi
10213 elif test $pkg_failed = untried; then
10215 if test "x$with_sdl" = "xyes"; then
10216 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10217 See \`config.log' for more details." >&5
10218 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10219 See \`config.log' for more details." >&2;}
10220 { (exit 1); exit 1; }; }
10221 fi
10223 else
10224 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10225 SDL_LIBS=$pkg_cv_SDL_LIBS
10226 { $as_echo "$as_me:$LINENO: result: yes" >&5
10227 $as_echo "yes" >&6; }
10229 HAVE_SDL='yes'
10230 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10232 cat >>confdefs.h <<\_ACEOF
10233 #define HAVE_SDL 1
10234 _ACEOF
10237 fi
10238 fi
10241 if test "$HAVE_SDL" = 'yes' ; then
10242 AUDIO_SDL_TRUE=
10243 AUDIO_SDL_FALSE='#'
10244 else
10245 AUDIO_SDL_TRUE='#'
10246 AUDIO_SDL_FALSE=
10247 fi
10250 if test "x$with_pulse" != "xno"; then
10252 pkg_failed=no
10253 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10254 $as_echo_n "checking for PULSE... " >&6; }
10256 if test -n "$PULSE_CFLAGS"; then
10257 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10258 elif test -n "$PKG_CONFIG"; then
10259 if test -n "$PKG_CONFIG" && \
10260 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10261 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10262 ac_status=$?
10263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; then
10265 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10266 else
10267 pkg_failed=yes
10268 fi
10269 else
10270 pkg_failed=untried
10271 fi
10272 if test -n "$PULSE_LIBS"; then
10273 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10274 elif test -n "$PKG_CONFIG"; then
10275 if test -n "$PKG_CONFIG" && \
10276 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10277 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10278 ac_status=$?
10279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10282 else
10283 pkg_failed=yes
10284 fi
10285 else
10286 pkg_failed=untried
10287 fi
10291 if test $pkg_failed = yes; then
10293 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10294 _pkg_short_errors_supported=yes
10295 else
10296 _pkg_short_errors_supported=no
10297 fi
10298 if test $_pkg_short_errors_supported = yes; then
10299 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10300 else
10301 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10302 fi
10303 # Put the nasty error message in config.log where it belongs
10304 echo "$PULSE_PKG_ERRORS" >&5
10306 { $as_echo "$as_me:$LINENO: result: no" >&5
10307 $as_echo "no" >&6; }
10309 if test "x$with_pulse" = "xyes"; then
10310 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10311 See \`config.log' for more details." >&5
10312 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10313 See \`config.log' for more details." >&2;}
10314 { (exit 1); exit 1; }; }
10315 fi
10317 elif test $pkg_failed = untried; then
10319 if test "x$with_pulse" = "xyes"; then
10320 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10321 See \`config.log' for more details." >&5
10322 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10323 See \`config.log' for more details." >&2;}
10324 { (exit 1); exit 1; }; }
10325 fi
10327 else
10328 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10329 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10330 { $as_echo "$as_me:$LINENO: result: yes" >&5
10331 $as_echo "yes" >&6; }
10333 HAVE_PULSE='yes'
10334 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10336 cat >>confdefs.h <<\_ACEOF
10337 #define HAVE_PULSE 1
10338 _ACEOF
10341 fi
10342 fi
10345 if test "$HAVE_PULSE" = 'yes' ; then
10346 AUDIO_PULSE_TRUE=
10347 AUDIO_PULSE_FALSE='#'
10348 else
10349 AUDIO_PULSE_TRUE='#'
10350 AUDIO_PULSE_FALSE=
10351 fi
10354 if test "x$with_esd" != "xno"; then
10356 pkg_failed=no
10357 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10358 $as_echo_n "checking for ESOUND... " >&6; }
10360 if test -n "$ESOUND_CFLAGS"; then
10361 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10365 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10370 else
10371 pkg_failed=yes
10372 fi
10373 else
10374 pkg_failed=untried
10375 fi
10376 if test -n "$ESOUND_LIBS"; then
10377 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10378 elif test -n "$PKG_CONFIG"; then
10379 if test -n "$PKG_CONFIG" && \
10380 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10381 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10382 ac_status=$?
10383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; then
10385 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10386 else
10387 pkg_failed=yes
10388 fi
10389 else
10390 pkg_failed=untried
10391 fi
10395 if test $pkg_failed = yes; then
10397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10398 _pkg_short_errors_supported=yes
10399 else
10400 _pkg_short_errors_supported=no
10401 fi
10402 if test $_pkg_short_errors_supported = yes; then
10403 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10404 else
10405 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10406 fi
10407 # Put the nasty error message in config.log where it belongs
10408 echo "$ESOUND_PKG_ERRORS" >&5
10410 { $as_echo "$as_me:$LINENO: result: no" >&5
10411 $as_echo "no" >&6; }
10413 if test "x$with_esd" = "xyes"; then
10414 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10415 See \`config.log' for more details." >&5
10416 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10417 See \`config.log' for more details." >&2;}
10418 { (exit 1); exit 1; }; }
10419 fi
10421 elif test $pkg_failed = untried; then
10423 if test "x$with_esd" = "xyes"; then
10424 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10425 See \`config.log' for more details." >&5
10426 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10427 See \`config.log' for more details." >&2;}
10428 { (exit 1); exit 1; }; }
10429 fi
10431 else
10432 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10433 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10434 { $as_echo "$as_me:$LINENO: result: yes" >&5
10435 $as_echo "yes" >&6; }
10437 HAVE_ESOUND='yes'
10438 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_ESOUND 1
10442 _ACEOF
10445 fi
10446 fi
10449 if test "$HAVE_ESOUND" = 'yes' ; then
10450 AUDIO_ESOUND_TRUE=
10451 AUDIO_ESOUND_FALSE='#'
10452 else
10453 AUDIO_ESOUND_TRUE='#'
10454 AUDIO_ESOUND_FALSE=
10455 fi
10459 pkg_failed=no
10460 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10461 $as_echo_n "checking for ALSA... " >&6; }
10463 if test -n "$ALSA_CFLAGS"; then
10464 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10465 elif test -n "$PKG_CONFIG"; then
10466 if test -n "$PKG_CONFIG" && \
10467 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10468 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10469 ac_status=$?
10470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; then
10472 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10473 else
10474 pkg_failed=yes
10475 fi
10476 else
10477 pkg_failed=untried
10478 fi
10479 if test -n "$ALSA_LIBS"; then
10480 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10481 elif test -n "$PKG_CONFIG"; then
10482 if test -n "$PKG_CONFIG" && \
10483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10484 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10485 ac_status=$?
10486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; then
10488 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10489 else
10490 pkg_failed=yes
10491 fi
10492 else
10493 pkg_failed=untried
10494 fi
10498 if test $pkg_failed = yes; then
10500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10501 _pkg_short_errors_supported=yes
10502 else
10503 _pkg_short_errors_supported=no
10504 fi
10505 if test $_pkg_short_errors_supported = yes; then
10506 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10507 else
10508 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10509 fi
10510 # Put the nasty error message in config.log where it belongs
10511 echo "$ALSA_PKG_ERRORS" >&5
10513 { $as_echo "$as_me:$LINENO: result: no" >&5
10514 $as_echo "no" >&6; }
10515 true
10516 elif test $pkg_failed = untried; then
10517 true
10518 else
10519 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10520 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10521 { $as_echo "$as_me:$LINENO: result: yes" >&5
10522 $as_echo "yes" >&6; }
10524 HAVE_ALSA='yes'
10525 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_ALSA 1
10529 _ACEOF
10531 fi
10534 if test "$HAVE_ALSA" = 'yes' ; then
10535 AUDIO_ALSA_TRUE=
10536 AUDIO_ALSA_FALSE='#'
10537 else
10538 AUDIO_ALSA_TRUE='#'
10539 AUDIO_ALSA_FALSE=
10540 fi
10544 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10545 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10546 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10547 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10548 $as_echo_n "(cached) " >&6
10549 fi
10550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10551 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10552 else
10553 # Is the header compilable?
10554 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10555 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 #include <linux/cdrom.h>
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (ac_try="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10572 $as_echo "$ac_try_echo") >&5
10573 (eval "$ac_compile") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && {
10580 test -z "$ac_c_werror_flag" ||
10581 test ! -s conftest.err
10582 } && test -s conftest.$ac_objext; then
10583 ac_header_compiler=yes
10584 else
10585 $as_echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_header_compiler=no
10589 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10593 $as_echo "$ac_header_compiler" >&6; }
10595 # Is the header present?
10596 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10597 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <linux/cdrom.h>
10605 _ACEOF
10606 if { (ac_try="$ac_cpp conftest.$ac_ext"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } >/dev/null && {
10620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 }; then
10623 ac_header_preproc=yes
10624 else
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 ac_header_preproc=no
10629 fi
10631 rm -f conftest.err conftest.$ac_ext
10632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 $as_echo "$ac_header_preproc" >&6; }
10635 # So? What about this header?
10636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10637 yes:no: )
10638 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10639 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10641 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10642 ac_header_preproc=yes
10643 ;;
10644 no:yes:* )
10645 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10646 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10648 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10650 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10652 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10654 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10656 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10658 ;;
10659 esac
10660 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10661 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10662 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10663 $as_echo_n "(cached) " >&6
10664 else
10665 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10666 fi
10667 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10668 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10670 fi
10671 if test $ac_cv_header_linux_cdrom_h = yes; then
10673 CDROM_DRIVER=linux
10674 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
10675 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
10676 old_CFLAGS="$CFLAGS"
10677 CFLAGS="$CFLAGS $STDCFLAG"
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <linux/cdrom.h>
10685 int
10686 main ()
10687 {
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (ac_try="$ac_compile"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698 esac
10699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10700 $as_echo "$ac_try_echo") >&5
10701 (eval "$ac_compile") 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 { $as_echo "$as_me:$LINENO: result: Yes" >&5
10712 $as_echo "Yes" >&6; }
10713 else
10714 $as_echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10718 { $as_echo "$as_me:$LINENO: result: No" >&5
10719 $as_echo "No" >&6; }
10720 STDCFLAG="-std=gnu99"
10721 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 CFLAGS="$old_CFLAGS"
10726 else
10727 true
10728 fi
10731 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10732 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10733 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10734 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10736 fi
10737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10738 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10739 else
10740 # Is the header compilable?
10741 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10742 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 $ac_includes_default
10750 #include <IOKit/IOKitLib.h>
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_header_compiler=yes
10771 else
10772 $as_echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_header_compiler=no
10776 fi
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10780 $as_echo "$ac_header_compiler" >&6; }
10782 # Is the header present?
10783 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10784 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <IOKit/IOKitLib.h>
10792 _ACEOF
10793 if { (ac_try="$ac_cpp conftest.$ac_ext"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10799 $as_echo "$ac_try_echo") >&5
10800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } >/dev/null && {
10807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 }; then
10810 ac_header_preproc=yes
10811 else
10812 $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_header_preproc=no
10816 fi
10818 rm -f conftest.err conftest.$ac_ext
10819 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10820 $as_echo "$ac_header_preproc" >&6; }
10822 # So? What about this header?
10823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10824 yes:no: )
10825 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10826 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10827 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10828 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10829 ac_header_preproc=yes
10830 ;;
10831 no:yes:* )
10832 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10833 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10834 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10835 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10836 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10837 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10838 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10839 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10840 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10841 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10842 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10843 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10845 ;;
10846 esac
10847 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10848 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10849 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10853 fi
10854 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10855 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10857 fi
10858 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
10860 CDROM_DRIVER=osx
10861 LIBS="$LIBS -framework IOKit"
10862 else
10863 true
10864 fi
10869 if test "x$CDROM_DRIVER" = "xlinux"; then
10870 CDROM_LINUX_TRUE=
10871 CDROM_LINUX_FALSE='#'
10872 else
10873 CDROM_LINUX_TRUE='#'
10874 CDROM_LINUX_FALSE=
10875 fi
10879 if test "x$CDROM_DRIVER" = "xosx"; then
10880 CDROM_OSX_TRUE=
10881 CDROM_OSX_FALSE='#'
10882 else
10883 CDROM_OSX_TRUE='#'
10884 CDROM_OSX_FALSE=
10885 fi
10889 if test "x$CDROM_DRIVER" = "x"; then
10890 CDROM_NONE_TRUE=
10891 CDROM_NONE_FALSE='#'
10892 else
10893 CDROM_NONE_TRUE='#'
10894 CDROM_NONE_FALSE=
10895 fi
10898 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10899 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10900 $as_echo_n "checking for linux/joystick.h... " >&6; }
10901 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10902 $as_echo_n "(cached) " >&6
10903 fi
10904 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10905 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10906 else
10907 # Is the header compilable?
10908 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10909 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 $ac_includes_default
10917 #include <linux/joystick.h>
10918 _ACEOF
10919 rm -f conftest.$ac_objext
10920 if { (ac_try="$ac_compile"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926 $as_echo "$ac_try_echo") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
10937 ac_header_compiler=yes
10938 else
10939 $as_echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_header_compiler=no
10943 fi
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10947 $as_echo "$ac_header_compiler" >&6; }
10949 # Is the header present?
10950 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10951 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 #include <linux/joystick.h>
10959 _ACEOF
10960 if { (ac_try="$ac_cpp conftest.$ac_ext"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966 $as_echo "$ac_try_echo") >&5
10967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } >/dev/null && {
10974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 }; then
10977 ac_header_preproc=yes
10978 else
10979 $as_echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_preproc=no
10983 fi
10985 rm -f conftest.err conftest.$ac_ext
10986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10987 $as_echo "$ac_header_preproc" >&6; }
10989 # So? What about this header?
10990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10991 yes:no: )
10992 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
10993 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10994 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
10995 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
10996 ac_header_preproc=yes
10997 ;;
10998 no:yes:* )
10999 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11000 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11001 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11002 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11003 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11004 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11005 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11006 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11007 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11008 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11009 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11010 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11012 ;;
11013 esac
11014 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11015 $as_echo_n "checking for linux/joystick.h... " >&6; }
11016 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11017 $as_echo_n "(cached) " >&6
11018 else
11019 ac_cv_header_linux_joystick_h=$ac_header_preproc
11020 fi
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11022 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11024 fi
11025 if test $ac_cv_header_linux_joystick_h = yes; then
11027 HAVE_LINUX_JOYSTICK_H=yes
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_LINUX_JOYSTICK 1
11031 _ACEOF
11033 else
11034 echo "Linux Joystick support not found, building without it."
11035 fi
11040 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11041 JOY_LINUX_TRUE=
11042 JOY_LINUX_FALSE='#'
11043 else
11044 JOY_LINUX_TRUE='#'
11045 JOY_LINUX_FALSE=
11046 fi
11049 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11050 set dummy sh-elf-gcc; ac_word=$2
11051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if test "${ac_cv_path_SHCC+set}" = set; then
11054 $as_echo_n "(cached) " >&6
11055 else
11056 case $SHCC in
11057 [\\/]* | ?:[\\/]*)
11058 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11059 ;;
11060 *)
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11063 do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11071 fi
11072 done
11073 done
11074 IFS=$as_save_IFS
11076 ;;
11077 esac
11078 fi
11079 SHCC=$ac_cv_path_SHCC
11080 if test -n "$SHCC"; then
11081 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11082 $as_echo "$SHCC" >&6; }
11083 else
11084 { $as_echo "$as_me:$LINENO: result: no" >&5
11085 $as_echo "no" >&6; }
11086 fi
11089 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11090 set dummy sh-elf-ld; ac_word=$2
11091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if test "${ac_cv_path_SHLD+set}" = set; then
11094 $as_echo_n "(cached) " >&6
11095 else
11096 case $SHLD in
11097 [\\/]* | ?:[\\/]*)
11098 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11099 ;;
11100 *)
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11103 do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 break 2
11111 fi
11112 done
11113 done
11114 IFS=$as_save_IFS
11116 ;;
11117 esac
11118 fi
11119 SHLD=$ac_cv_path_SHLD
11120 if test -n "$SHLD"; then
11121 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11122 $as_echo "$SHLD" >&6; }
11123 else
11124 { $as_echo "$as_me:$LINENO: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11129 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11130 set dummy sh-elf-objcopy; ac_word=$2
11131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11134 $as_echo_n "(cached) " >&6
11135 else
11136 case $SHOBJCOPY in
11137 [\\/]* | ?:[\\/]*)
11138 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11139 ;;
11140 *)
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11143 do
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11151 fi
11152 done
11153 done
11154 IFS=$as_save_IFS
11156 ;;
11157 esac
11158 fi
11159 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11160 if test -n "$SHOBJCOPY"; then
11161 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11162 $as_echo "$SHOBJCOPY" >&6; }
11163 else
11164 { $as_echo "$as_me:$LINENO: result: no" >&5
11165 $as_echo "no" >&6; }
11166 fi
11169 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11170 set dummy arm-elf-gcc; ac_word=$2
11171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if test "${ac_cv_path_ARMCC+set}" = set; then
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $ARMCC in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11179 ;;
11180 *)
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11191 fi
11192 done
11193 done
11194 IFS=$as_save_IFS
11196 ;;
11197 esac
11198 fi
11199 ARMCC=$ac_cv_path_ARMCC
11200 if test -n "$ARMCC"; then
11201 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11202 $as_echo "$ARMCC" >&6; }
11203 else
11204 { $as_echo "$as_me:$LINENO: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11209 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11210 set dummy arm-elf-ld; ac_word=$2
11211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_ARMLD+set}" = set; then
11214 $as_echo_n "(cached) " >&6
11215 else
11216 case $ARMLD in
11217 [\\/]* | ?:[\\/]*)
11218 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11219 ;;
11220 *)
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232 done
11233 done
11234 IFS=$as_save_IFS
11236 ;;
11237 esac
11238 fi
11239 ARMLD=$ac_cv_path_ARMLD
11240 if test -n "$ARMLD"; then
11241 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11242 $as_echo "$ARMLD" >&6; }
11243 else
11244 { $as_echo "$as_me:$LINENO: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11249 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11250 set dummy arm-elf-objcopy; ac_word=$2
11251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11254 $as_echo_n "(cached) " >&6
11255 else
11256 case $ARMOBJCOPY in
11257 [\\/]* | ?:[\\/]*)
11258 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11259 ;;
11260 *)
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11271 fi
11272 done
11273 done
11274 IFS=$as_save_IFS
11276 ;;
11277 esac
11278 fi
11279 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11280 if test -n "$ARMOBJCOPY"; then
11281 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11282 $as_echo "$ARMOBJCOPY" >&6; }
11283 else
11284 { $as_echo "$as_me:$LINENO: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11290 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11291 BUILD_SH="no"
11292 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11293 else
11294 BUILD_SH="yes"
11295 fi
11296 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11297 BUILD_ARM="no"
11298 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11299 else
11300 BUILD_ARM="yes"
11301 fi
11304 if test "$BUILD_SH" = "yes"; then
11305 BUILD_SYSTEST_TRUE=
11306 BUILD_SYSTEST_FALSE='#'
11307 else
11308 BUILD_SYSTEST_TRUE='#'
11309 BUILD_SYSTEST_FALSE=
11310 fi
11314 if test "$BUILD_ARM" = "yes"; then
11315 BUILD_ARMTEST_TRUE=
11316 BUILD_ARMTEST_FALSE='#'
11317 else
11318 BUILD_ARMTEST_TRUE='#'
11319 BUILD_ARMTEST_FALSE=
11320 fi
11323 CFLAGS="$CFLAGS $STDCFLAG"
11325 GETTEXT_PACKAGE=lxdream
11328 cat >>confdefs.h <<_ACEOF
11329 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11330 _ACEOF
11333 ALL_LINGUAS="de es it pt_BR"
11336 for ac_header in locale.h
11337 do
11338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11341 $as_echo_n "checking for $ac_header... " >&6; }
11342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343 $as_echo_n "(cached) " >&6
11344 fi
11345 ac_res=`eval 'as_val=${'$as_ac_Header'}
11346 $as_echo "$as_val"'`
11347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11348 $as_echo "$ac_res" >&6; }
11349 else
11350 # Is the header compilable?
11351 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11352 $as_echo_n "checking $ac_header usability... " >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 $ac_includes_default
11360 #include <$ac_header>
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11369 $as_echo "$ac_try_echo") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest.$ac_objext; then
11380 ac_header_compiler=yes
11381 else
11382 $as_echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_compiler=no
11386 fi
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11390 $as_echo "$ac_header_compiler" >&6; }
11392 # Is the header present?
11393 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11394 $as_echo_n "checking $ac_header presence... " >&6; }
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 #include <$ac_header>
11402 _ACEOF
11403 if { (ac_try="$ac_cpp conftest.$ac_ext"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11409 $as_echo "$ac_try_echo") >&5
11410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null && {
11417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11419 }; then
11420 ac_header_preproc=yes
11421 else
11422 $as_echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11425 ac_header_preproc=no
11426 fi
11428 rm -f conftest.err conftest.$ac_ext
11429 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11430 $as_echo "$ac_header_preproc" >&6; }
11432 # So? What about this header?
11433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11434 yes:no: )
11435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11436 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11439 ac_header_preproc=yes
11440 ;;
11441 no:yes:* )
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11447 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11449 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11453 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11455 ;;
11456 esac
11457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 $as_echo_n "checking for $ac_header... " >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 $as_echo_n "(cached) " >&6
11461 else
11462 eval "$as_ac_Header=\$ac_header_preproc"
11463 fi
11464 ac_res=`eval 'as_val=${'$as_ac_Header'}
11465 $as_echo "$as_val"'`
11466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11467 $as_echo "$ac_res" >&6; }
11469 fi
11470 if test `eval 'as_val=${'$as_ac_Header'}
11471 $as_echo "$as_val"'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 _ACEOF
11476 fi
11478 done
11480 if test $ac_cv_header_locale_h = yes; then
11481 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11482 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11483 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11484 $as_echo_n "(cached) " >&6
11485 else
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <locale.h>
11493 int
11494 main ()
11495 {
11496 return LC_MESSAGES
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 rm -f conftest.$ac_objext conftest$ac_exeext
11502 if { (ac_try="$ac_link"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11508 $as_echo "$ac_try_echo") >&5
11509 (eval "$ac_link") 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } && {
11516 test -z "$ac_c_werror_flag" ||
11517 test ! -s conftest.err
11518 } && test -s conftest$ac_exeext && {
11519 test "$cross_compiling" = yes ||
11520 $as_test_x conftest$ac_exeext
11521 }; then
11522 am_cv_val_LC_MESSAGES=yes
11523 else
11524 $as_echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 am_cv_val_LC_MESSAGES=no
11528 fi
11530 rm -rf conftest.dSYM
11531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11532 conftest$ac_exeext conftest.$ac_ext
11533 fi
11534 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11535 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11536 if test $am_cv_val_LC_MESSAGES = yes; then
11538 cat >>confdefs.h <<\_ACEOF
11539 #define HAVE_LC_MESSAGES 1
11540 _ACEOF
11542 fi
11543 fi
11544 USE_NLS=yes
11547 gt_cv_have_gettext=no
11549 CATOBJEXT=NONE
11550 XGETTEXT=:
11551 INTLLIBS=
11553 if test "${ac_cv_header_libintl_h+set}" = set; then
11554 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11555 $as_echo_n "checking for libintl.h... " >&6; }
11556 if test "${ac_cv_header_libintl_h+set}" = set; then
11557 $as_echo_n "(cached) " >&6
11558 fi
11559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11560 $as_echo "$ac_cv_header_libintl_h" >&6; }
11561 else
11562 # Is the header compilable?
11563 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11564 $as_echo_n "checking libintl.h usability... " >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11572 #include <libintl.h>
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (ac_try="$ac_compile"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11581 $as_echo "$ac_try_echo") >&5
11582 (eval "$ac_compile") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest.$ac_objext; then
11592 ac_header_compiler=yes
11593 else
11594 $as_echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_header_compiler=no
11598 fi
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11602 $as_echo "$ac_header_compiler" >&6; }
11604 # Is the header present?
11605 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11606 $as_echo_n "checking libintl.h presence... " >&6; }
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <libintl.h>
11614 _ACEOF
11615 if { (ac_try="$ac_cpp conftest.$ac_ext"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11621 $as_echo "$ac_try_echo") >&5
11622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } >/dev/null && {
11629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 }; then
11632 ac_header_preproc=yes
11633 else
11634 $as_echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_preproc=no
11638 fi
11640 rm -f conftest.err conftest.$ac_ext
11641 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11642 $as_echo "$ac_header_preproc" >&6; }
11644 # So? What about this header?
11645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11646 yes:no: )
11647 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11648 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11649 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11650 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11651 ac_header_preproc=yes
11652 ;;
11653 no:yes:* )
11654 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11655 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11656 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11657 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11658 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11659 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11660 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11661 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11662 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11663 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11664 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11665 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11667 ;;
11668 esac
11669 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11670 $as_echo_n "checking for libintl.h... " >&6; }
11671 if test "${ac_cv_header_libintl_h+set}" = set; then
11672 $as_echo_n "(cached) " >&6
11673 else
11674 ac_cv_header_libintl_h=$ac_header_preproc
11675 fi
11676 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11677 $as_echo "$ac_cv_header_libintl_h" >&6; }
11679 fi
11680 if test $ac_cv_header_libintl_h = yes; then
11681 gt_cv_func_dgettext_libintl="no"
11682 libintl_extra_libs=""
11684 #
11685 # First check in libc
11686 #
11687 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11688 $as_echo_n "checking for ngettext in libc... " >&6; }
11689 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11690 $as_echo_n "(cached) " >&6
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11699 #include <libintl.h>
11701 int
11702 main ()
11703 {
11704 return !ngettext ("","", 1)
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716 $as_echo "$ac_try_echo") >&5
11717 (eval "$ac_link") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest$ac_exeext && {
11727 test "$cross_compiling" = yes ||
11728 $as_test_x conftest$ac_exeext
11729 }; then
11730 gt_cv_func_ngettext_libc=yes
11731 else
11732 $as_echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 gt_cv_func_ngettext_libc=no
11736 fi
11738 rm -rf conftest.dSYM
11739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11740 conftest$ac_exeext conftest.$ac_ext
11742 fi
11743 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11744 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11746 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11747 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11748 $as_echo_n "checking for dgettext in libc... " >&6; }
11749 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11750 $as_echo_n "(cached) " >&6
11751 else
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11759 #include <libintl.h>
11761 int
11762 main ()
11763 {
11764 return !dgettext ("","")
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_link") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext && {
11787 test "$cross_compiling" = yes ||
11788 $as_test_x conftest$ac_exeext
11789 }; then
11790 gt_cv_func_dgettext_libc=yes
11791 else
11792 $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 gt_cv_func_dgettext_libc=no
11796 fi
11798 rm -rf conftest.dSYM
11799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11800 conftest$ac_exeext conftest.$ac_ext
11802 fi
11803 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11804 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11805 fi
11807 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11809 for ac_func in bind_textdomain_codeset
11810 do
11811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11812 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11813 $as_echo_n "checking for $ac_func... " >&6; }
11814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11815 $as_echo_n "(cached) " >&6
11816 else
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11825 #define $ac_func innocuous_$ac_func
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char $ac_func (); below.
11829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830 <limits.h> exists even on freestanding compilers. */
11832 #ifdef __STDC__
11833 # include <limits.h>
11834 #else
11835 # include <assert.h>
11836 #endif
11838 #undef $ac_func
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11843 #ifdef __cplusplus
11844 extern "C"
11845 #endif
11846 char $ac_func ();
11847 /* The GNU C library defines this for functions which it implements
11848 to always fail with ENOSYS. Some functions are actually named
11849 something starting with __ and the normal name is an alias. */
11850 #if defined __stub_$ac_func || defined __stub___$ac_func
11851 choke me
11852 #endif
11854 int
11855 main ()
11856 {
11857 return $ac_func ();
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11869 $as_echo "$ac_try_echo") >&5
11870 (eval "$ac_link") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest$ac_exeext && {
11880 test "$cross_compiling" = yes ||
11881 $as_test_x conftest$ac_exeext
11882 }; then
11883 eval "$as_ac_var=yes"
11884 else
11885 $as_echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 eval "$as_ac_var=no"
11889 fi
11891 rm -rf conftest.dSYM
11892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11893 conftest$ac_exeext conftest.$ac_ext
11894 fi
11895 ac_res=`eval 'as_val=${'$as_ac_var'}
11896 $as_echo "$as_val"'`
11897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11898 $as_echo "$ac_res" >&6; }
11899 if test `eval 'as_val=${'$as_ac_var'}
11900 $as_echo "$as_val"'` = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 _ACEOF
11905 fi
11906 done
11908 fi
11910 #
11911 # If we don't have everything we want, check in libintl
11912 #
11913 if test "$gt_cv_func_dgettext_libc" != "yes" \
11914 || test "$gt_cv_func_ngettext_libc" != "yes" \
11915 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11917 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
11918 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11919 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
11920 $as_echo_n "(cached) " >&6
11921 else
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lintl $LIBS"
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char bindtextdomain ();
11938 int
11939 main ()
11940 {
11941 return bindtextdomain ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951 esac
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11966 }; then
11967 ac_cv_lib_intl_bindtextdomain=yes
11968 else
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_cv_lib_intl_bindtextdomain=no
11973 fi
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
11981 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11982 if test $ac_cv_lib_intl_bindtextdomain = yes; then
11983 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11984 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11985 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11987 else
11988 ac_check_lib_save_LIBS=$LIBS
11989 LIBS="-lintl $LIBS"
11990 cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char ngettext ();
12004 int
12005 main ()
12006 {
12007 return ngettext ();
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017 esac
12018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019 $as_echo "$ac_try_echo") >&5
12020 (eval "$ac_link") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest$ac_exeext && {
12030 test "$cross_compiling" = yes ||
12031 $as_test_x conftest$ac_exeext
12032 }; then
12033 ac_cv_lib_intl_ngettext=yes
12034 else
12035 $as_echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ac_cv_lib_intl_ngettext=no
12039 fi
12041 rm -rf conftest.dSYM
12042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12045 fi
12046 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12047 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12048 if test $ac_cv_lib_intl_ngettext = yes; then
12049 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12050 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12051 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12052 $as_echo_n "(cached) " >&6
12053 else
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lintl $LIBS"
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char dgettext ();
12070 int
12071 main ()
12072 {
12073 return dgettext ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (ac_try="$ac_link"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083 esac
12084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085 $as_echo "$ac_try_echo") >&5
12086 (eval "$ac_link") 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest$ac_exeext && {
12096 test "$cross_compiling" = yes ||
12097 $as_test_x conftest$ac_exeext
12098 }; then
12099 ac_cv_lib_intl_dgettext=yes
12100 else
12101 $as_echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_intl_dgettext=no
12105 fi
12107 rm -rf conftest.dSYM
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12111 fi
12112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12113 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12114 if test $ac_cv_lib_intl_dgettext = yes; then
12115 gt_cv_func_dgettext_libintl=yes
12116 fi
12118 fi
12120 fi
12123 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12124 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12125 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12126 { $as_echo "$as_me:$LINENO: result: " >&5
12127 $as_echo "" >&6; }
12128 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12129 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12130 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12131 $as_echo_n "(cached) " >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-lintl -liconv $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char ngettext ();
12149 int
12150 main ()
12151 {
12152 return ngettext ();
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext && {
12175 test "$cross_compiling" = yes ||
12176 $as_test_x conftest$ac_exeext
12177 }; then
12178 ac_cv_lib_intl_ngettext=yes
12179 else
12180 $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_cv_lib_intl_ngettext=no
12184 fi
12186 rm -rf conftest.dSYM
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12192 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12193 if test $ac_cv_lib_intl_ngettext = yes; then
12194 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12195 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12196 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-lintl -liconv $LIBS"
12201 cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h. */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 char dcgettext ();
12215 int
12216 main ()
12217 {
12218 return dcgettext ();
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228 esac
12229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12230 $as_echo "$ac_try_echo") >&5
12231 (eval "$ac_link") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext && {
12241 test "$cross_compiling" = yes ||
12242 $as_test_x conftest$ac_exeext
12243 }; then
12244 ac_cv_lib_intl_dcgettext=yes
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_lib_intl_dcgettext=no
12250 fi
12252 rm -rf conftest.dSYM
12253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12258 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12259 if test $ac_cv_lib_intl_dcgettext = yes; then
12260 gt_cv_func_dgettext_libintl=yes
12261 libintl_extra_libs=-liconv
12262 else
12263 :
12264 fi
12266 else
12267 :
12268 fi
12270 fi
12272 #
12273 # If we found libintl, then check in it for bind_textdomain_codeset();
12274 # we'll prefer libc if neither have bind_textdomain_codeset(),
12275 # and both have dgettext and ngettext
12276 #
12277 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12278 glib_save_LIBS="$LIBS"
12279 LIBS="$LIBS -lintl $libintl_extra_libs"
12280 unset ac_cv_func_bind_textdomain_codeset
12282 for ac_func in bind_textdomain_codeset
12283 do
12284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12286 $as_echo_n "checking for $ac_func... " >&6; }
12287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12288 $as_echo_n "(cached) " >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12298 #define $ac_func innocuous_$ac_func
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char $ac_func (); below.
12302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12303 <limits.h> exists even on freestanding compilers. */
12305 #ifdef __STDC__
12306 # include <limits.h>
12307 #else
12308 # include <assert.h>
12309 #endif
12311 #undef $ac_func
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char $ac_func ();
12320 /* The GNU C library defines this for functions which it implements
12321 to always fail with ENOSYS. Some functions are actually named
12322 something starting with __ and the normal name is an alias. */
12323 #if defined __stub_$ac_func || defined __stub___$ac_func
12324 choke me
12325 #endif
12327 int
12328 main ()
12329 {
12330 return $ac_func ();
12331 ;
12332 return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (ac_try="$ac_link"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340 esac
12341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12342 $as_echo "$ac_try_echo") >&5
12343 (eval "$ac_link") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext && {
12353 test "$cross_compiling" = yes ||
12354 $as_test_x conftest$ac_exeext
12355 }; then
12356 eval "$as_ac_var=yes"
12357 else
12358 $as_echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 eval "$as_ac_var=no"
12362 fi
12364 rm -rf conftest.dSYM
12365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12366 conftest$ac_exeext conftest.$ac_ext
12367 fi
12368 ac_res=`eval 'as_val=${'$as_ac_var'}
12369 $as_echo "$as_val"'`
12370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12371 $as_echo "$ac_res" >&6; }
12372 if test `eval 'as_val=${'$as_ac_var'}
12373 $as_echo "$as_val"'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12376 _ACEOF
12378 fi
12379 done
12381 LIBS="$glib_save_LIBS"
12383 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12384 gt_cv_func_dgettext_libc=no
12385 else
12386 if test "$gt_cv_func_dgettext_libc" = "yes" \
12387 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12388 gt_cv_func_dgettext_libintl=no
12389 fi
12390 fi
12391 fi
12392 fi
12394 if test "$gt_cv_func_dgettext_libc" = "yes" \
12395 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12396 gt_cv_have_gettext=yes
12397 fi
12399 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12400 INTLLIBS="-lintl $libintl_extra_libs"
12401 fi
12403 if test "$gt_cv_have_gettext" = "yes"; then
12405 cat >>confdefs.h <<\_ACEOF
12406 #define HAVE_GETTEXT 1
12407 _ACEOF
12409 # Extract the first word of "msgfmt", so it can be a program name with args.
12410 set dummy msgfmt; ac_word=$2
12411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if test "${ac_cv_path_MSGFMT+set}" = set; then
12414 $as_echo_n "(cached) " >&6
12415 else
12416 case "$MSGFMT" in
12417 /*)
12418 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12419 ;;
12420 *)
12421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12422 for ac_dir in $PATH; do
12423 test -z "$ac_dir" && ac_dir=.
12424 if test -f $ac_dir/$ac_word; then
12425 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12426 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12427 break
12428 fi
12429 fi
12430 done
12431 IFS="$ac_save_ifs"
12432 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12433 ;;
12434 esac
12435 fi
12436 MSGFMT="$ac_cv_path_MSGFMT"
12437 if test "$MSGFMT" != "no"; then
12438 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12439 $as_echo "$MSGFMT" >&6; }
12440 else
12441 { $as_echo "$as_me:$LINENO: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444 if test "$MSGFMT" != "no"; then
12445 glib_save_LIBS="$LIBS"
12446 LIBS="$LIBS $INTLLIBS"
12448 for ac_func in dcgettext
12449 do
12450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12452 $as_echo_n "checking for $ac_func... " >&6; }
12453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12454 $as_echo_n "(cached) " >&6
12455 else
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h. */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464 #define $ac_func innocuous_$ac_func
12466 /* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12471 #ifdef __STDC__
12472 # include <limits.h>
12473 #else
12474 # include <assert.h>
12475 #endif
12477 #undef $ac_func
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char $ac_func ();
12486 /* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489 #if defined __stub_$ac_func || defined __stub___$ac_func
12490 choke me
12491 #endif
12493 int
12494 main ()
12495 {
12496 return $ac_func ();
12497 ;
12498 return 0;
12499 }
12500 _ACEOF
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506 esac
12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508 $as_echo "$ac_try_echo") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext && {
12519 test "$cross_compiling" = yes ||
12520 $as_test_x conftest$ac_exeext
12521 }; then
12522 eval "$as_ac_var=yes"
12523 else
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 eval "$as_ac_var=no"
12528 fi
12530 rm -rf conftest.dSYM
12531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12532 conftest$ac_exeext conftest.$ac_ext
12533 fi
12534 ac_res=`eval 'as_val=${'$as_ac_var'}
12535 $as_echo "$as_val"'`
12536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12537 $as_echo "$ac_res" >&6; }
12538 if test `eval 'as_val=${'$as_ac_var'}
12539 $as_echo "$as_val"'` = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12542 _ACEOF
12544 fi
12545 done
12547 MSGFMT_OPTS=
12548 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12549 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12550 cat >conftest.foo <<_ACEOF
12552 msgid ""
12553 msgstr ""
12554 "Content-Type: text/plain; charset=UTF-8\n"
12555 "Project-Id-Version: test 1.0\n"
12556 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12557 "Last-Translator: test <foo@bar.xx>\n"
12558 "Language-Team: C <LL@li.org>\n"
12559 "MIME-Version: 1.0\n"
12560 "Content-Transfer-Encoding: 8bit\n"
12562 _ACEOF
12563 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12564 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12565 ac_status=$?
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; then
12568 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12569 $as_echo "yes" >&6; }
12570 else { $as_echo "$as_me:$LINENO: result: no" >&5
12571 $as_echo "no" >&6; }
12572 echo "$as_me: failed input was:" >&5
12573 sed 's/^/| /' conftest.foo >&5
12574 fi
12576 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12577 set dummy gmsgfmt; ac_word=$2
12578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12581 $as_echo_n "(cached) " >&6
12582 else
12583 case $GMSGFMT in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12586 ;;
12587 *)
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12595 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599 done
12600 done
12601 IFS=$as_save_IFS
12603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12604 ;;
12605 esac
12606 fi
12607 GMSGFMT=$ac_cv_path_GMSGFMT
12608 if test -n "$GMSGFMT"; then
12609 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12610 $as_echo "$GMSGFMT" >&6; }
12611 else
12612 { $as_echo "$as_me:$LINENO: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12617 # Extract the first word of "xgettext", so it can be a program name with args.
12618 set dummy xgettext; ac_word=$2
12619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12622 $as_echo_n "(cached) " >&6
12623 else
12624 case "$XGETTEXT" in
12625 /*)
12626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12627 ;;
12628 *)
12629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12630 for ac_dir in $PATH; do
12631 test -z "$ac_dir" && ac_dir=.
12632 if test -f $ac_dir/$ac_word; then
12633 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12634 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12635 break
12636 fi
12637 fi
12638 done
12639 IFS="$ac_save_ifs"
12640 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12641 ;;
12642 esac
12643 fi
12644 XGETTEXT="$ac_cv_path_XGETTEXT"
12645 if test "$XGETTEXT" != ":"; then
12646 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12647 $as_echo "$XGETTEXT" >&6; }
12648 else
12649 { $as_echo "$as_me:$LINENO: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12653 cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h. */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12660 int
12661 main ()
12662 {
12663 extern int _nl_msg_cat_cntr;
12664 return _nl_msg_cat_cntr
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (ac_try="$ac_link"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677 (eval "$ac_link") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext && {
12687 test "$cross_compiling" = yes ||
12688 $as_test_x conftest$ac_exeext
12689 }; then
12690 CATOBJEXT=.gmo
12691 DATADIRNAME=share
12692 else
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 case $host in
12697 *-*-solaris*)
12698 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12699 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12700 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12702 else
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char bind_textdomain_codeset (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12718 #ifdef __STDC__
12719 # include <limits.h>
12720 #else
12721 # include <assert.h>
12722 #endif
12724 #undef bind_textdomain_codeset
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729 #ifdef __cplusplus
12730 extern "C"
12731 #endif
12732 char bind_textdomain_codeset ();
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12737 choke me
12738 #endif
12740 int
12741 main ()
12742 {
12743 return bind_textdomain_codeset ();
12744 ;
12745 return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (ac_try="$ac_link"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753 esac
12754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12755 $as_echo "$ac_try_echo") >&5
12756 (eval "$ac_link") 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } && {
12763 test -z "$ac_c_werror_flag" ||
12764 test ! -s conftest.err
12765 } && test -s conftest$ac_exeext && {
12766 test "$cross_compiling" = yes ||
12767 $as_test_x conftest$ac_exeext
12768 }; then
12769 ac_cv_func_bind_textdomain_codeset=yes
12770 else
12771 $as_echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_cv_func_bind_textdomain_codeset=no
12775 fi
12777 rm -rf conftest.dSYM
12778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12779 conftest$ac_exeext conftest.$ac_ext
12780 fi
12781 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12782 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12783 if test $ac_cv_func_bind_textdomain_codeset = yes; then
12784 CATOBJEXT=.gmo
12785 DATADIRNAME=share
12786 else
12787 CATOBJEXT=.mo
12788 DATADIRNAME=lib
12789 fi
12791 ;;
12792 *)
12793 CATOBJEXT=.mo
12794 DATADIRNAME=lib
12795 ;;
12796 esac
12797 fi
12799 rm -rf conftest.dSYM
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS="$glib_save_LIBS"
12803 INSTOBJEXT=.mo
12804 else
12805 gt_cv_have_gettext=no
12806 fi
12807 fi
12809 fi
12813 if test "$gt_cv_have_gettext" = "yes" ; then
12815 cat >>confdefs.h <<\_ACEOF
12816 #define ENABLE_NLS 1
12817 _ACEOF
12819 fi
12821 if test "$XGETTEXT" != ":"; then
12822 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12823 : ;
12824 else
12825 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12826 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12827 XGETTEXT=":"
12828 fi
12829 fi
12831 # We need to process the po/ directory.
12832 POSUB=po
12834 ac_config_commands="$ac_config_commands default-1"
12837 for lang in $ALL_LINGUAS; do
12838 GMOFILES="$GMOFILES $lang.gmo"
12839 POFILES="$POFILES $lang.po"
12840 done
12854 if test "$gt_cv_have_gettext" = "yes"; then
12855 if test "x$ALL_LINGUAS" = "x"; then
12856 LINGUAS=
12857 else
12858 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12859 $as_echo_n "checking for catalogs to be installed... " >&6; }
12860 NEW_LINGUAS=
12861 for presentlang in $ALL_LINGUAS; do
12862 useit=no
12863 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12864 desiredlanguages="$LINGUAS"
12865 else
12866 desiredlanguages="$ALL_LINGUAS"
12867 fi
12868 for desiredlang in $desiredlanguages; do
12869 # Use the presentlang catalog if desiredlang is
12870 # a. equal to presentlang, or
12871 # b. a variant of presentlang (because in this case,
12872 # presentlang can be used as a fallback for messages
12873 # which are not translated in the desiredlang catalog).
12874 case "$desiredlang" in
12875 "$presentlang"*) useit=yes;;
12876 esac
12877 done
12878 if test $useit = yes; then
12879 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12880 fi
12881 done
12882 LINGUAS=$NEW_LINGUAS
12883 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
12884 $as_echo "$LINGUAS" >&6; }
12885 fi
12887 if test -n "$LINGUAS"; then
12888 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12889 fi
12890 fi
12892 MKINSTALLDIRS=
12893 if test -n "$ac_aux_dir"; then
12894 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12895 fi
12896 if test -z "$MKINSTALLDIRS"; then
12897 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12898 fi
12901 test -d po || mkdir po
12902 if test "x$srcdir" != "x."; then
12903 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12904 posrcprefix="$srcdir/"
12905 else
12906 posrcprefix="../$srcdir/"
12907 fi
12908 else
12909 posrcprefix="../"
12910 fi
12911 rm -f po/POTFILES
12912 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12913 < $srcdir/po/POTFILES.in > po/POTFILES
12916 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
12918 cat >confcache <<\_ACEOF
12919 # This file is a shell script that caches the results of configure
12920 # tests run on this system so they can be shared between configure
12921 # scripts and configure runs, see configure's option --config-cache.
12922 # It is not useful on other systems. If it contains results you don't
12923 # want to keep, you may remove or edit it.
12924 #
12925 # config.status only pays attention to the cache file if you give it
12926 # the --recheck option to rerun configure.
12927 #
12928 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12929 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12930 # following values.
12932 _ACEOF
12934 # The following way of writing the cache mishandles newlines in values,
12935 # but we know of no workaround that is simple, portable, and efficient.
12936 # So, we kill variables containing newlines.
12937 # Ultrix sh set writes to stderr and can't be redirected directly,
12938 # and sets the high bit in the cache file unless we assign to the vars.
12939 (
12940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12941 eval ac_val=\$$ac_var
12942 case $ac_val in #(
12943 *${as_nl}*)
12944 case $ac_var in #(
12945 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12946 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12947 esac
12948 case $ac_var in #(
12949 _ | IFS | as_nl) ;; #(
12950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12951 *) $as_unset $ac_var ;;
12952 esac ;;
12953 esac
12954 done
12956 (set) 2>&1 |
12957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12958 *${as_nl}ac_space=\ *)
12959 # `set' does not quote correctly, so add quotes (double-quote
12960 # substitution turns \\\\ into \\, and sed turns \\ into \).
12961 sed -n \
12962 "s/'/'\\\\''/g;
12963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12964 ;; #(
12965 *)
12966 # `set' quotes correctly as required by POSIX, so do not add quotes.
12967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12968 ;;
12969 esac |
12970 sort
12971 ) |
12972 sed '
12973 /^ac_cv_env_/b end
12974 t clear
12975 :clear
12976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12977 t end
12978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12979 :end' >>confcache
12980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12981 if test -w "$cache_file"; then
12982 test "x$cache_file" != "x/dev/null" &&
12983 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12984 $as_echo "$as_me: updating cache $cache_file" >&6;}
12985 cat confcache >$cache_file
12986 else
12987 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12989 fi
12990 fi
12991 rm -f confcache
12993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12994 # Let make expand exec_prefix.
12995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12997 DEFS=-DHAVE_CONFIG_H
12999 ac_libobjs=
13000 ac_ltlibobjs=
13001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13002 # 1. Remove the extension, and $U if already installed.
13003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13006 # will be set to the directory where LIBOBJS objects are built.
13007 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13008 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13009 done
13010 LIBOBJS=$ac_libobjs
13012 LTLIBOBJS=$ac_ltlibobjs
13015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13016 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13017 Usually this means the macro was only invoked conditionally." >&5
13018 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13019 Usually this means the macro was only invoked conditionally." >&2;}
13020 { (exit 1); exit 1; }; }
13021 fi
13022 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13023 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13024 Usually this means the macro was only invoked conditionally." >&5
13025 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13026 Usually this means the macro was only invoked conditionally." >&2;}
13027 { (exit 1); exit 1; }; }
13028 fi
13029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13030 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13031 Usually this means the macro was only invoked conditionally." >&5
13032 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13033 Usually this means the macro was only invoked conditionally." >&2;}
13034 { (exit 1); exit 1; }; }
13035 fi
13036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13037 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13038 Usually this means the macro was only invoked conditionally." >&5
13039 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13040 Usually this means the macro was only invoked conditionally." >&2;}
13041 { (exit 1); exit 1; }; }
13042 fi
13043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13044 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13045 Usually this means the macro was only invoked conditionally." >&5
13046 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13047 Usually this means the macro was only invoked conditionally." >&2;}
13048 { (exit 1); exit 1; }; }
13049 fi
13050 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13051 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13052 Usually this means the macro was only invoked conditionally." >&5
13053 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13054 Usually this means the macro was only invoked conditionally." >&2;}
13055 { (exit 1); exit 1; }; }
13056 fi
13057 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13058 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13059 Usually this means the macro was only invoked conditionally." >&5
13060 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13061 Usually this means the macro was only invoked conditionally." >&2;}
13062 { (exit 1); exit 1; }; }
13063 fi
13064 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13065 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13066 Usually this means the macro was only invoked conditionally." >&5
13067 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13068 Usually this means the macro was only invoked conditionally." >&2;}
13069 { (exit 1); exit 1; }; }
13070 fi
13071 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13072 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13073 Usually this means the macro was only invoked conditionally." >&5
13074 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13075 Usually this means the macro was only invoked conditionally." >&2;}
13076 { (exit 1); exit 1; }; }
13077 fi
13078 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13079 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13080 Usually this means the macro was only invoked conditionally." >&5
13081 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13082 Usually this means the macro was only invoked conditionally." >&2;}
13083 { (exit 1); exit 1; }; }
13084 fi
13085 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13086 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13087 Usually this means the macro was only invoked conditionally." >&5
13088 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13089 Usually this means the macro was only invoked conditionally." >&2;}
13090 { (exit 1); exit 1; }; }
13091 fi
13092 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13093 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13094 Usually this means the macro was only invoked conditionally." >&5
13095 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13096 Usually this means the macro was only invoked conditionally." >&2;}
13097 { (exit 1); exit 1; }; }
13098 fi
13099 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13100 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13101 Usually this means the macro was only invoked conditionally." >&5
13102 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13103 Usually this means the macro was only invoked conditionally." >&2;}
13104 { (exit 1); exit 1; }; }
13105 fi
13106 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13107 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13108 Usually this means the macro was only invoked conditionally." >&5
13109 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13110 Usually this means the macro was only invoked conditionally." >&2;}
13111 { (exit 1); exit 1; }; }
13112 fi
13113 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13114 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13115 Usually this means the macro was only invoked conditionally." >&5
13116 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13117 Usually this means the macro was only invoked conditionally." >&2;}
13118 { (exit 1); exit 1; }; }
13119 fi
13120 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13121 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13122 Usually this means the macro was only invoked conditionally." >&5
13123 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13124 Usually this means the macro was only invoked conditionally." >&2;}
13125 { (exit 1); exit 1; }; }
13126 fi
13127 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13128 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13129 Usually this means the macro was only invoked conditionally." >&5
13130 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13131 Usually this means the macro was only invoked conditionally." >&2;}
13132 { (exit 1); exit 1; }; }
13133 fi
13134 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13135 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13136 Usually this means the macro was only invoked conditionally." >&5
13137 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13138 Usually this means the macro was only invoked conditionally." >&2;}
13139 { (exit 1); exit 1; }; }
13140 fi
13141 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13142 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13143 Usually this means the macro was only invoked conditionally." >&5
13144 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13145 Usually this means the macro was only invoked conditionally." >&2;}
13146 { (exit 1); exit 1; }; }
13147 fi
13148 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13149 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13150 Usually this means the macro was only invoked conditionally." >&5
13151 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13152 Usually this means the macro was only invoked conditionally." >&2;}
13153 { (exit 1); exit 1; }; }
13154 fi
13155 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13156 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13157 Usually this means the macro was only invoked conditionally." >&5
13158 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13159 Usually this means the macro was only invoked conditionally." >&2;}
13160 { (exit 1); exit 1; }; }
13161 fi
13162 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13163 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13164 Usually this means the macro was only invoked conditionally." >&5
13165 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13166 Usually this means the macro was only invoked conditionally." >&2;}
13167 { (exit 1); exit 1; }; }
13168 fi
13169 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13170 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13171 Usually this means the macro was only invoked conditionally." >&5
13172 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13173 Usually this means the macro was only invoked conditionally." >&2;}
13174 { (exit 1); exit 1; }; }
13175 fi
13177 : ${CONFIG_STATUS=./config.status}
13178 ac_write_fail=0
13179 ac_clean_files_save=$ac_clean_files
13180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13181 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13183 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 #! $SHELL
13185 # Generated by $as_me.
13186 # Run this file to recreate the current configuration.
13187 # Compiler output produced by configure, useful for debugging
13188 # configure, is in config.log if it exists.
13190 debug=false
13191 ac_cs_recheck=false
13192 ac_cs_silent=false
13193 SHELL=\${CONFIG_SHELL-$SHELL}
13194 _ACEOF
13196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13197 ## --------------------- ##
13198 ## M4sh Initialization. ##
13199 ## --------------------- ##
13201 # Be more Bourne compatible
13202 DUALCASE=1; export DUALCASE # for MKS sh
13203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13204 emulate sh
13205 NULLCMD=:
13206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13207 # is contrary to our usage. Disable this feature.
13208 alias -g '${1+"$@"}'='"$@"'
13209 setopt NO_GLOB_SUBST
13210 else
13211 case `(set -o) 2>/dev/null` in
13212 *posix*) set -o posix ;;
13213 esac
13215 fi
13220 # PATH needs CR
13221 # Avoid depending upon Character Ranges.
13222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13225 as_cr_digits='0123456789'
13226 as_cr_alnum=$as_cr_Letters$as_cr_digits
13228 as_nl='
13229 '
13230 export as_nl
13231 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13232 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13235 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13236 as_echo='printf %s\n'
13237 as_echo_n='printf %s'
13238 else
13239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13241 as_echo_n='/usr/ucb/echo -n'
13242 else
13243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13244 as_echo_n_body='eval
13245 arg=$1;
13246 case $arg in
13247 *"$as_nl"*)
13248 expr "X$arg" : "X\\(.*\\)$as_nl";
13249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13250 esac;
13251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13252 '
13253 export as_echo_n_body
13254 as_echo_n='sh -c $as_echo_n_body as_echo'
13255 fi
13256 export as_echo_body
13257 as_echo='sh -c $as_echo_body as_echo'
13258 fi
13260 # The user is always right.
13261 if test "${PATH_SEPARATOR+set}" != set; then
13262 PATH_SEPARATOR=:
13263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13265 PATH_SEPARATOR=';'
13266 }
13267 fi
13269 # Support unset when possible.
13270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13271 as_unset=unset
13272 else
13273 as_unset=false
13274 fi
13277 # IFS
13278 # We need space, tab and new line, in precisely that order. Quoting is
13279 # there to prevent editors from complaining about space-tab.
13280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13281 # splitting by setting IFS to empty value.)
13282 IFS=" "" $as_nl"
13284 # Find who we are. Look in the path if we contain no directory separator.
13285 case $0 in
13286 *[\\/]* ) as_myself=$0 ;;
13287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13289 do
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13293 done
13294 IFS=$as_save_IFS
13296 ;;
13297 esac
13298 # We did not find ourselves, most probably we were run as `sh COMMAND'
13299 # in which case we are not to be found in the path.
13300 if test "x$as_myself" = x; then
13301 as_myself=$0
13302 fi
13303 if test ! -f "$as_myself"; then
13304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13305 { (exit 1); exit 1; }
13306 fi
13308 # Work around bugs in pre-3.0 UWIN ksh.
13309 for as_var in ENV MAIL MAILPATH
13310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13311 done
13312 PS1='$ '
13313 PS2='> '
13314 PS4='+ '
13316 # NLS nuisances.
13317 LC_ALL=C
13318 export LC_ALL
13319 LANGUAGE=C
13320 export LANGUAGE
13322 # Required to use basename.
13323 if expr a : '\(a\)' >/dev/null 2>&1 &&
13324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13325 as_expr=expr
13326 else
13327 as_expr=false
13328 fi
13330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13331 as_basename=basename
13332 else
13333 as_basename=false
13334 fi
13337 # Name of the executable.
13338 as_me=`$as_basename -- "$0" ||
13339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13340 X"$0" : 'X\(//\)$' \| \
13341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13342 $as_echo X/"$0" |
13343 sed '/^.*\/\([^/][^/]*\)\/*$/{
13344 s//\1/
13345 q
13346 }
13347 /^X\/\(\/\/\)$/{
13348 s//\1/
13349 q
13350 }
13351 /^X\/\(\/\).*/{
13352 s//\1/
13353 q
13354 }
13355 s/.*/./; q'`
13357 # CDPATH.
13358 $as_unset CDPATH
13362 as_lineno_1=$LINENO
13363 as_lineno_2=$LINENO
13364 test "x$as_lineno_1" != "x$as_lineno_2" &&
13365 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13368 # uniformly replaced by the line number. The first 'sed' inserts a
13369 # line-number line after each line using $LINENO; the second 'sed'
13370 # does the real work. The second script uses 'N' to pair each
13371 # line-number line with the line containing $LINENO, and appends
13372 # trailing '-' during substitution so that $LINENO is not a special
13373 # case at line end.
13374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13375 # scripts with optimization help from Paolo Bonzini. Blame Lee
13376 # E. McMahon (1931-1989) for sed's syntax. :-)
13377 sed -n '
13378 p
13379 /[$]LINENO/=
13380 ' <$as_myself |
13381 sed '
13382 s/[$]LINENO.*/&-/
13383 t lineno
13384 b
13385 :lineno
13386 N
13387 :loop
13388 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13389 t loop
13390 s/-\n.*//
13391 ' >$as_me.lineno &&
13392 chmod +x "$as_me.lineno" ||
13393 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13394 { (exit 1); exit 1; }; }
13396 # Don't try to exec as it changes $[0], causing all sort of problems
13397 # (the dirname of $[0] is not the place where we might find the
13398 # original and so on. Autoconf is especially sensitive to this).
13399 . "./$as_me.lineno"
13400 # Exit status is that of the last command.
13401 exit
13402 }
13405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13406 as_dirname=dirname
13407 else
13408 as_dirname=false
13409 fi
13411 ECHO_C= ECHO_N= ECHO_T=
13412 case `echo -n x` in
13413 -n*)
13414 case `echo 'x\c'` in
13415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13416 *) ECHO_C='\c';;
13417 esac;;
13418 *)
13419 ECHO_N='-n';;
13420 esac
13421 if expr a : '\(a\)' >/dev/null 2>&1 &&
13422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13423 as_expr=expr
13424 else
13425 as_expr=false
13426 fi
13428 rm -f conf$$ conf$$.exe conf$$.file
13429 if test -d conf$$.dir; then
13430 rm -f conf$$.dir/conf$$.file
13431 else
13432 rm -f conf$$.dir
13433 mkdir conf$$.dir 2>/dev/null
13434 fi
13435 if (echo >conf$$.file) 2>/dev/null; then
13436 if ln -s conf$$.file conf$$ 2>/dev/null; then
13437 as_ln_s='ln -s'
13438 # ... but there are two gotchas:
13439 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13440 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13441 # In both cases, we have to default to `cp -p'.
13442 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13443 as_ln_s='cp -p'
13444 elif ln conf$$.file conf$$ 2>/dev/null; then
13445 as_ln_s=ln
13446 else
13447 as_ln_s='cp -p'
13448 fi
13449 else
13450 as_ln_s='cp -p'
13451 fi
13452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13453 rmdir conf$$.dir 2>/dev/null
13455 if mkdir -p . 2>/dev/null; then
13456 as_mkdir_p=:
13457 else
13458 test -d ./-p && rmdir ./-p
13459 as_mkdir_p=false
13460 fi
13462 if test -x / >/dev/null 2>&1; then
13463 as_test_x='test -x'
13464 else
13465 if ls -dL / >/dev/null 2>&1; then
13466 as_ls_L_option=L
13467 else
13468 as_ls_L_option=
13469 fi
13470 as_test_x='
13471 eval sh -c '\''
13472 if test -d "$1"; then
13473 test -d "$1/.";
13474 else
13475 case $1 in
13476 -*)set "./$1";;
13477 esac;
13478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13479 ???[sx]*):;;*)false;;esac;fi
13480 '\'' sh
13481 '
13482 fi
13483 as_executable_p=$as_test_x
13485 # Sed expression to map a string onto a valid CPP name.
13486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13488 # Sed expression to map a string onto a valid variable name.
13489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13492 exec 6>&1
13494 # Save the log message, to keep $[0] and so on meaningful, and to
13495 # report actual input values of CONFIG_FILES etc. instead of their
13496 # values after options handling.
13497 ac_log="
13498 This file was extended by $as_me, which was
13499 generated by GNU Autoconf 2.62. Invocation command line was
13501 CONFIG_FILES = $CONFIG_FILES
13502 CONFIG_HEADERS = $CONFIG_HEADERS
13503 CONFIG_LINKS = $CONFIG_LINKS
13504 CONFIG_COMMANDS = $CONFIG_COMMANDS
13505 $ $0 $@
13507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13508 "
13510 _ACEOF
13512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13513 # Files that config.status was made for.
13514 config_files="$ac_config_files"
13515 config_headers="$ac_config_headers"
13516 config_commands="$ac_config_commands"
13518 _ACEOF
13520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13521 ac_cs_usage="\
13522 \`$as_me' instantiates files from templates according to the
13523 current configuration.
13525 Usage: $0 [OPTIONS] [FILE]...
13527 -h, --help print this help, then exit
13528 -V, --version print version number and configuration settings, then exit
13529 -q, --quiet do not print progress messages
13530 -d, --debug don't remove temporary files
13531 --recheck update $as_me by reconfiguring in the same conditions
13532 --file=FILE[:TEMPLATE]
13533 instantiate the configuration file FILE
13534 --header=FILE[:TEMPLATE]
13535 instantiate the configuration header FILE
13537 Configuration files:
13538 $config_files
13540 Configuration headers:
13541 $config_headers
13543 Configuration commands:
13544 $config_commands
13546 Report bugs to <bug-autoconf@gnu.org>."
13548 _ACEOF
13549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13550 ac_cs_version="\\
13551 config.status
13552 configured by $0, generated by GNU Autoconf 2.62,
13553 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13555 Copyright (C) 2008 Free Software Foundation, Inc.
13556 This config.status script is free software; the Free Software Foundation
13557 gives unlimited permission to copy, distribute and modify it."
13559 ac_pwd='$ac_pwd'
13560 srcdir='$srcdir'
13561 INSTALL='$INSTALL'
13562 AWK='$AWK'
13563 test -n "\$AWK" || AWK=awk
13564 _ACEOF
13566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13567 # The default lists apply if the user does not specify any file.
13568 ac_need_defaults=:
13569 while test $# != 0
13570 do
13571 case $1 in
13572 --*=*)
13573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13574 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13575 ac_shift=:
13576 ;;
13577 *)
13578 ac_option=$1
13579 ac_optarg=$2
13580 ac_shift=shift
13581 ;;
13582 esac
13584 case $ac_option in
13585 # Handling of the options.
13586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13587 ac_cs_recheck=: ;;
13588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13589 $as_echo "$ac_cs_version"; exit ;;
13590 --debug | --debu | --deb | --de | --d | -d )
13591 debug=: ;;
13592 --file | --fil | --fi | --f )
13593 $ac_shift
13594 case $ac_optarg in
13595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13596 esac
13597 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13598 ac_need_defaults=false;;
13599 --header | --heade | --head | --hea )
13600 $ac_shift
13601 case $ac_optarg in
13602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13603 esac
13604 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13605 ac_need_defaults=false;;
13606 --he | --h)
13607 # Conflict between --help and --header
13608 { $as_echo "$as_me: error: ambiguous option: $1
13609 Try \`$0 --help' for more information." >&2
13610 { (exit 1); exit 1; }; };;
13611 --help | --hel | -h )
13612 $as_echo "$ac_cs_usage"; exit ;;
13613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13615 ac_cs_silent=: ;;
13617 # This is an error.
13618 -*) { $as_echo "$as_me: error: unrecognized option: $1
13619 Try \`$0 --help' for more information." >&2
13620 { (exit 1); exit 1; }; } ;;
13622 *) ac_config_targets="$ac_config_targets $1"
13623 ac_need_defaults=false ;;
13625 esac
13626 shift
13627 done
13629 ac_configure_extra_args=
13631 if $ac_cs_silent; then
13632 exec 6>/dev/null
13633 ac_configure_extra_args="$ac_configure_extra_args --silent"
13634 fi
13636 _ACEOF
13637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13638 if \$ac_cs_recheck; then
13639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13640 shift
13641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13642 CONFIG_SHELL='$SHELL'
13643 export CONFIG_SHELL
13644 exec "\$@"
13645 fi
13647 _ACEOF
13648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13649 exec 5>>config.log
13650 {
13651 echo
13652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13653 ## Running $as_me. ##
13654 _ASBOX
13655 $as_echo "$ac_log"
13656 } >&5
13658 _ACEOF
13659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13660 #
13661 # INIT-COMMANDS
13662 #
13663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13666 _ACEOF
13668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13670 # Handling of arguments.
13671 for ac_config_target in $ac_config_targets
13672 do
13673 case $ac_config_target in
13674 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13676 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13677 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13678 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13679 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13680 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13681 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13683 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13684 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13685 { (exit 1); exit 1; }; };;
13686 esac
13687 done
13690 # If the user did not use the arguments to specify the items to instantiate,
13691 # then the envvar interface is used. Set only those that are not.
13692 # We use the long form for the default assignment because of an extremely
13693 # bizarre bug on SunOS 4.1.3.
13694 if $ac_need_defaults; then
13695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13696 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13697 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13698 fi
13700 # Have a temporary directory for convenience. Make it in the build tree
13701 # simply because there is no reason against having it here, and in addition,
13702 # creating and moving files from /tmp can sometimes cause problems.
13703 # Hook for its removal unless debugging.
13704 # Note that there is a small window in which the directory will not be cleaned:
13705 # after its creation but before its name has been assigned to `$tmp'.
13706 $debug ||
13707 {
13708 tmp=
13709 trap 'exit_status=$?
13710 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13711 ' 0
13712 trap '{ (exit 1); exit 1; }' 1 2 13 15
13713 }
13714 # Create a (secure) tmp directory for tmp files.
13716 {
13717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13718 test -n "$tmp" && test -d "$tmp"
13719 } ||
13720 {
13721 tmp=./conf$$-$RANDOM
13722 (umask 077 && mkdir "$tmp")
13723 } ||
13724 {
13725 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13726 { (exit 1); exit 1; }
13727 }
13729 # Set up the scripts for CONFIG_FILES section.
13730 # No need to generate them if there are no CONFIG_FILES.
13731 # This happens for instance with `./config.status config.h'.
13732 if test -n "$CONFIG_FILES"; then
13735 ac_cr='
13736 '
13737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13739 ac_cs_awk_cr='\\r'
13740 else
13741 ac_cs_awk_cr=$ac_cr
13742 fi
13744 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13745 _ACEOF
13748 {
13749 echo "cat >conf$$subs.awk <<_ACEOF" &&
13750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13751 echo "_ACEOF"
13752 } >conf$$subs.sh ||
13753 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13754 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13755 { (exit 1); exit 1; }; }
13756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13757 ac_delim='%!_!# '
13758 for ac_last_try in false false false false false :; do
13759 . ./conf$$subs.sh ||
13760 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13761 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13762 { (exit 1); exit 1; }; }
13764 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13765 break
13766 elif $ac_last_try; then
13767 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13768 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13769 { (exit 1); exit 1; }; }
13770 else
13771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13772 fi
13773 done
13774 rm -f conf$$subs.sh
13776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13777 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13778 _ACEOF
13779 sed -n '
13780 h
13781 s/^/S["/; s/!.*/"]=/
13782 p
13783 g
13784 s/^[^!]*!//
13785 :repl
13786 t repl
13787 s/'"$ac_delim"'$//
13788 t delim
13789 :nl
13790 h
13791 s/\(.\{148\}\).*/\1/
13792 t more1
13793 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13794 p
13795 n
13796 b repl
13797 :more1
13798 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13799 p
13800 g
13801 s/.\{148\}//
13802 t nl
13803 :delim
13804 h
13805 s/\(.\{148\}\).*/\1/
13806 t more2
13807 s/["\\]/\\&/g; s/^/"/; s/$/"/
13808 p
13809 b
13810 :more2
13811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13812 p
13813 g
13814 s/.\{148\}//
13815 t delim
13816 ' <conf$$subs.awk | sed '
13817 /^[^""]/{
13818 N
13819 s/\n//
13820 }
13821 ' >>$CONFIG_STATUS || ac_write_fail=1
13822 rm -f conf$$subs.awk
13823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13824 _ACAWK
13825 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13826 for (key in S) S_is_set[key] = 1
13827 FS = ""
13829 }
13830 {
13831 line = $ 0
13832 nfields = split(line, field, "@")
13833 substed = 0
13834 len = length(field[1])
13835 for (i = 2; i < nfields; i++) {
13836 key = field[i]
13837 keylen = length(key)
13838 if (S_is_set[key]) {
13839 value = S[key]
13840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13841 len += length(value) + length(field[++i])
13842 substed = 1
13843 } else
13844 len += 1 + keylen
13845 }
13847 print line
13848 }
13850 _ACAWK
13851 _ACEOF
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13855 else
13856 cat
13857 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13858 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13859 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13860 { (exit 1); exit 1; }; }
13861 _ACEOF
13863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13865 # trailing colons and then remove the whole line if VPATH becomes empty
13866 # (actually we leave an empty line to preserve line numbers).
13867 if test "x$srcdir" = x.; then
13868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13869 s/:*\$(srcdir):*/:/
13870 s/:*\${srcdir}:*/:/
13871 s/:*@srcdir@:*/:/
13872 s/^\([^=]*=[ ]*\):*/\1/
13873 s/:*$//
13874 s/^[^=]*=[ ]*$//
13875 }'
13876 fi
13878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13879 fi # test -n "$CONFIG_FILES"
13881 # Set up the scripts for CONFIG_HEADERS section.
13882 # No need to generate them if there are no CONFIG_HEADERS.
13883 # This happens for instance with `./config.status Makefile'.
13884 if test -n "$CONFIG_HEADERS"; then
13885 cat >"$tmp/defines.awk" <<\_ACAWK ||
13886 BEGIN {
13887 _ACEOF
13889 # Transform confdefs.h into an awk script `defines.awk', embedded as
13890 # here-document in config.status, that substitutes the proper values into
13891 # config.h.in to produce config.h.
13893 # Create a delimiter string that does not exist in confdefs.h, to ease
13894 # handling of long lines.
13895 ac_delim='%!_!# '
13896 for ac_last_try in false false :; do
13897 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13898 if test -z "$ac_t"; then
13899 break
13900 elif $ac_last_try; then
13901 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13902 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13903 { (exit 1); exit 1; }; }
13904 else
13905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13906 fi
13907 done
13909 # For the awk script, D is an array of macro values keyed by name,
13910 # likewise P contains macro parameters if any. Preserve backslash
13911 # newline sequences.
13913 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13914 sed -n '
13915 s/.\{148\}/&'"$ac_delim"'/g
13916 t rset
13917 :rset
13918 s/^[ ]*#[ ]*define[ ][ ]*/ /
13919 t def
13920 d
13921 :def
13922 s/\\$//
13923 t bsnl
13924 s/["\\]/\\&/g
13925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13926 D["\1"]=" \3"/p
13927 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13928 d
13929 :bsnl
13930 s/["\\]/\\&/g
13931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13932 D["\1"]=" \3\\\\\\n"\\/p
13933 t cont
13934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13935 t cont
13936 d
13937 :cont
13938 n
13939 s/.\{148\}/&'"$ac_delim"'/g
13940 t clear
13941 :clear
13942 s/\\$//
13943 t bsnlc
13944 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13945 d
13946 :bsnlc
13947 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13948 b cont
13949 ' <confdefs.h | sed '
13950 s/'"$ac_delim"'/"\\\
13951 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13954 for (key in D) D_is_set[key] = 1
13955 FS = ""
13956 }
13957 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13958 line = \$ 0
13959 split(line, arg, " ")
13960 if (arg[1] == "#") {
13961 defundef = arg[2]
13962 mac1 = arg[3]
13963 } else {
13964 defundef = substr(arg[1], 2)
13965 mac1 = arg[2]
13966 }
13967 split(mac1, mac2, "(") #)
13968 macro = mac2[1]
13969 if (D_is_set[macro]) {
13970 # Preserve the white space surrounding the "#".
13971 prefix = substr(line, 1, index(line, defundef) - 1)
13972 print prefix "define", macro P[macro] D[macro]
13973 next
13974 } else {
13975 # Replace #undef with comments. This is necessary, for example,
13976 # in the case of _POSIX_SOURCE, which is predefined and required
13977 # on some systems where configure will not decide to define it.
13978 if (defundef == "undef") {
13979 print "/*", line, "*/"
13980 next
13981 }
13982 }
13983 }
13984 { print }
13985 _ACAWK
13986 _ACEOF
13987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13988 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13989 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13990 { (exit 1); exit 1; }; }
13991 fi # test -n "$CONFIG_HEADERS"
13994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13995 shift
13996 for ac_tag
13997 do
13998 case $ac_tag in
13999 :[FHLC]) ac_mode=$ac_tag; continue;;
14000 esac
14001 case $ac_mode$ac_tag in
14002 :[FHL]*:*);;
14003 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14004 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14005 { (exit 1); exit 1; }; };;
14006 :[FH]-) ac_tag=-:-;;
14007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14008 esac
14009 ac_save_IFS=$IFS
14010 IFS=:
14011 set x $ac_tag
14012 IFS=$ac_save_IFS
14013 shift
14014 ac_file=$1
14015 shift
14017 case $ac_mode in
14018 :L) ac_source=$1;;
14019 :[FH])
14020 ac_file_inputs=
14021 for ac_f
14022 do
14023 case $ac_f in
14024 -) ac_f="$tmp/stdin";;
14025 *) # Look for the file first in the build tree, then in the source tree
14026 # (if the path is not absolute). The absolute path cannot be DOS-style,
14027 # because $ac_f cannot contain `:'.
14028 test -f "$ac_f" ||
14029 case $ac_f in
14030 [\\/$]*) false;;
14031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14032 esac ||
14033 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14034 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14035 { (exit 1); exit 1; }; };;
14036 esac
14037 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14038 ac_file_inputs="$ac_file_inputs '$ac_f'"
14039 done
14041 # Let's still pretend it is `configure' which instantiates (i.e., don't
14042 # use $as_me), people would be surprised to read:
14043 # /* config.h. Generated by config.status. */
14044 configure_input='Generated from '`
14045 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14046 `' by configure.'
14047 if test x"$ac_file" != x-; then
14048 configure_input="$ac_file. $configure_input"
14049 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14050 $as_echo "$as_me: creating $ac_file" >&6;}
14051 fi
14052 # Neutralize special characters interpreted by sed in replacement strings.
14053 case $configure_input in #(
14054 *\&* | *\|* | *\\* )
14055 ac_sed_conf_input=`$as_echo "$configure_input" |
14056 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14057 *) ac_sed_conf_input=$configure_input;;
14058 esac
14060 case $ac_tag in
14061 *:-:* | *:-) cat >"$tmp/stdin" \
14062 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14063 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14064 { (exit 1); exit 1; }; } ;;
14065 esac
14066 ;;
14067 esac
14069 ac_dir=`$as_dirname -- "$ac_file" ||
14070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071 X"$ac_file" : 'X\(//\)[^/]' \| \
14072 X"$ac_file" : 'X\(//\)$' \| \
14073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14074 $as_echo X"$ac_file" |
14075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076 s//\1/
14077 q
14078 }
14079 /^X\(\/\/\)[^/].*/{
14080 s//\1/
14081 q
14082 }
14083 /^X\(\/\/\)$/{
14084 s//\1/
14085 q
14086 }
14087 /^X\(\/\).*/{
14088 s//\1/
14089 q
14090 }
14091 s/.*/./; q'`
14092 { as_dir="$ac_dir"
14093 case $as_dir in #(
14094 -*) as_dir=./$as_dir;;
14095 esac
14096 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14097 as_dirs=
14098 while :; do
14099 case $as_dir in #(
14100 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14101 *) as_qdir=$as_dir;;
14102 esac
14103 as_dirs="'$as_qdir' $as_dirs"
14104 as_dir=`$as_dirname -- "$as_dir" ||
14105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14106 X"$as_dir" : 'X\(//\)[^/]' \| \
14107 X"$as_dir" : 'X\(//\)$' \| \
14108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14109 $as_echo X"$as_dir" |
14110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14111 s//\1/
14112 q
14113 }
14114 /^X\(\/\/\)[^/].*/{
14115 s//\1/
14116 q
14117 }
14118 /^X\(\/\/\)$/{
14119 s//\1/
14120 q
14121 }
14122 /^X\(\/\).*/{
14123 s//\1/
14124 q
14125 }
14126 s/.*/./; q'`
14127 test -d "$as_dir" && break
14128 done
14129 test -z "$as_dirs" || eval "mkdir $as_dirs"
14130 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14131 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14132 { (exit 1); exit 1; }; }; }
14133 ac_builddir=.
14135 case "$ac_dir" in
14136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14137 *)
14138 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14139 # A ".." for each directory in $ac_dir_suffix.
14140 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14141 case $ac_top_builddir_sub in
14142 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14143 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14144 esac ;;
14145 esac
14146 ac_abs_top_builddir=$ac_pwd
14147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14148 # for backward compatibility:
14149 ac_top_builddir=$ac_top_build_prefix
14151 case $srcdir in
14152 .) # We are building in place.
14153 ac_srcdir=.
14154 ac_top_srcdir=$ac_top_builddir_sub
14155 ac_abs_top_srcdir=$ac_pwd ;;
14156 [\\/]* | ?:[\\/]* ) # Absolute name.
14157 ac_srcdir=$srcdir$ac_dir_suffix;
14158 ac_top_srcdir=$srcdir
14159 ac_abs_top_srcdir=$srcdir ;;
14160 *) # Relative name.
14161 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14162 ac_top_srcdir=$ac_top_build_prefix$srcdir
14163 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14164 esac
14165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14168 case $ac_mode in
14169 :F)
14170 #
14171 # CONFIG_FILE
14172 #
14174 case $INSTALL in
14175 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14176 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14177 esac
14178 _ACEOF
14180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14181 # If the template does not know about datarootdir, expand it.
14182 # FIXME: This hack should be removed a few years after 2.60.
14183 ac_datarootdir_hack=; ac_datarootdir_seen=
14185 ac_sed_dataroot='
14186 /datarootdir/ {
14187 p
14188 q
14189 }
14190 /@datadir@/p
14191 /@docdir@/p
14192 /@infodir@/p
14193 /@localedir@/p
14194 /@mandir@/p
14195 '
14196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14197 *datarootdir*) ac_datarootdir_seen=yes;;
14198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14201 _ACEOF
14202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14203 ac_datarootdir_hack='
14204 s&@datadir@&$datadir&g
14205 s&@docdir@&$docdir&g
14206 s&@infodir@&$infodir&g
14207 s&@localedir@&$localedir&g
14208 s&@mandir@&$mandir&g
14209 s&\\\${datarootdir}&$datarootdir&g' ;;
14210 esac
14211 _ACEOF
14213 # Neutralize VPATH when `$srcdir' = `.'.
14214 # Shell code in configure.ac might set extrasub.
14215 # FIXME: do we really want to maintain this feature?
14216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14217 ac_sed_extra="$ac_vpsub
14218 $extrasub
14219 _ACEOF
14220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14221 :t
14222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14223 s|@configure_input@|$ac_sed_conf_input|;t t
14224 s&@top_builddir@&$ac_top_builddir_sub&;t t
14225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14226 s&@srcdir@&$ac_srcdir&;t t
14227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14228 s&@top_srcdir@&$ac_top_srcdir&;t t
14229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14230 s&@builddir@&$ac_builddir&;t t
14231 s&@abs_builddir@&$ac_abs_builddir&;t t
14232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14233 s&@INSTALL@&$ac_INSTALL&;t t
14234 $ac_datarootdir_hack
14235 "
14236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14237 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14238 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14239 { (exit 1); exit 1; }; }
14241 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14242 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14243 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14244 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14245 which seems to be undefined. Please make sure it is defined." >&5
14246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14247 which seems to be undefined. Please make sure it is defined." >&2;}
14249 rm -f "$tmp/stdin"
14250 case $ac_file in
14251 -) cat "$tmp/out" && rm -f "$tmp/out";;
14252 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14253 esac \
14254 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14255 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14256 { (exit 1); exit 1; }; }
14257 ;;
14258 :H)
14259 #
14260 # CONFIG_HEADER
14261 #
14262 if test x"$ac_file" != x-; then
14263 {
14264 $as_echo "/* $configure_input */" \
14265 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14266 } >"$tmp/config.h" \
14267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14269 { (exit 1); exit 1; }; }
14270 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14271 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14272 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14273 else
14274 rm -f "$ac_file"
14275 mv "$tmp/config.h" "$ac_file" \
14276 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14277 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14278 { (exit 1); exit 1; }; }
14279 fi
14280 else
14281 $as_echo "/* $configure_input */" \
14282 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14283 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14284 $as_echo "$as_me: error: could not create -" >&2;}
14285 { (exit 1); exit 1; }; }
14286 fi
14287 # Compute "$ac_file"'s index in $config_headers.
14288 _am_stamp_count=1
14289 for _am_header in $config_headers :; do
14290 case $_am_header in
14291 "$ac_file" | "$ac_file":* )
14292 break ;;
14293 * )
14294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14295 esac
14296 done
14297 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299 X"$ac_file" : 'X\(//\)[^/]' \| \
14300 X"$ac_file" : 'X\(//\)$' \| \
14301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14302 $as_echo X"$ac_file" |
14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304 s//\1/
14305 q
14306 }
14307 /^X\(\/\/\)[^/].*/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\/\)$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\).*/{
14316 s//\1/
14317 q
14318 }
14319 s/.*/./; q'`/stamp-h$_am_stamp_count
14320 ;;
14322 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14323 $as_echo "$as_me: executing $ac_file commands" >&6;}
14324 ;;
14325 esac
14328 case $ac_file$ac_mode in
14329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14330 # Strip MF so we end up with the name of the file.
14331 mf=`echo "$mf" | sed -e 's/:.*$//'`
14332 # Check whether this is an Automake generated Makefile or not.
14333 # We used to match only the files named `Makefile.in', but
14334 # some people rename them; so instead we look at the file content.
14335 # Grep'ing the first line is not enough: some people post-process
14336 # each Makefile.in and add a new line on top of each file to say so.
14337 # So let's grep whole file.
14338 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14339 dirpart=`$as_dirname -- "$mf" ||
14340 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14341 X"$mf" : 'X\(//\)[^/]' \| \
14342 X"$mf" : 'X\(//\)$' \| \
14343 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14344 $as_echo X"$mf" |
14345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14346 s//\1/
14347 q
14348 }
14349 /^X\(\/\/\)[^/].*/{
14350 s//\1/
14351 q
14352 }
14353 /^X\(\/\/\)$/{
14354 s//\1/
14355 q
14356 }
14357 /^X\(\/\).*/{
14358 s//\1/
14359 q
14360 }
14361 s/.*/./; q'`
14362 else
14363 continue
14364 fi
14365 # Extract the definition of DEPDIR, am__include, and am__quote
14366 # from the Makefile without running `make'.
14367 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14368 test -z "$DEPDIR" && continue
14369 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14370 test -z "am__include" && continue
14371 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14372 # When using ansi2knr, U may be empty or an underscore; expand it
14373 U=`sed -n 's/^U = //p' < "$mf"`
14374 # Find all dependency output files, they are included files with
14375 # $(DEPDIR) in their names. We invoke sed twice because it is the
14376 # simplest approach to changing $(DEPDIR) to its actual value in the
14377 # expansion.
14378 for file in `sed -n "
14379 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14380 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14381 # Make sure the directory exists.
14382 test -f "$dirpart/$file" && continue
14383 fdir=`$as_dirname -- "$file" ||
14384 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14385 X"$file" : 'X\(//\)[^/]' \| \
14386 X"$file" : 'X\(//\)$' \| \
14387 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14388 $as_echo X"$file" |
14389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14390 s//\1/
14391 q
14392 }
14393 /^X\(\/\/\)[^/].*/{
14394 s//\1/
14395 q
14396 }
14397 /^X\(\/\/\)$/{
14398 s//\1/
14399 q
14400 }
14401 /^X\(\/\).*/{
14402 s//\1/
14403 q
14404 }
14405 s/.*/./; q'`
14406 { as_dir=$dirpart/$fdir
14407 case $as_dir in #(
14408 -*) as_dir=./$as_dir;;
14409 esac
14410 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14411 as_dirs=
14412 while :; do
14413 case $as_dir in #(
14414 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14415 *) as_qdir=$as_dir;;
14416 esac
14417 as_dirs="'$as_qdir' $as_dirs"
14418 as_dir=`$as_dirname -- "$as_dir" ||
14419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14420 X"$as_dir" : 'X\(//\)[^/]' \| \
14421 X"$as_dir" : 'X\(//\)$' \| \
14422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14423 $as_echo X"$as_dir" |
14424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14425 s//\1/
14426 q
14427 }
14428 /^X\(\/\/\)[^/].*/{
14429 s//\1/
14430 q
14431 }
14432 /^X\(\/\/\)$/{
14433 s//\1/
14434 q
14435 }
14436 /^X\(\/\).*/{
14437 s//\1/
14438 q
14439 }
14440 s/.*/./; q'`
14441 test -d "$as_dir" && break
14442 done
14443 test -z "$as_dirs" || eval "mkdir $as_dirs"
14444 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14445 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14446 { (exit 1); exit 1; }; }; }
14447 # echo "creating $dirpart/$file"
14448 echo '# dummy' > "$dirpart/$file"
14449 done
14450 done
14451 ;;
14452 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14453 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14454 esac ;;
14456 esac
14457 done # for ac_tag
14460 { (exit 0); exit 0; }
14461 _ACEOF
14462 chmod +x $CONFIG_STATUS
14463 ac_clean_files=$ac_clean_files_save
14465 test $ac_write_fail = 0 ||
14466 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14467 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14468 { (exit 1); exit 1; }; }
14471 # configure is writing to config.log, and then calls config.status.
14472 # config.status does its own redirection, appending to config.log.
14473 # Unfortunately, on DOS this fails, as config.log is still kept open
14474 # by configure, so config.status won't be able to write to it; its
14475 # output is simply discarded. So we exec the FD to /dev/null,
14476 # effectively closing config.log, so it can be properly (re)opened and
14477 # appended to by config.status. When coming back to configure, we
14478 # need to make the FD available again.
14479 if test "$no_create" != yes; then
14480 ac_cs_success=:
14481 ac_config_status_args=
14482 test "$silent" = yes &&
14483 ac_config_status_args="$ac_config_status_args --quiet"
14484 exec 5>/dev/null
14485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14486 exec 5>>config.log
14487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14488 # would make configure fail if this is the last instruction.
14489 $ac_cs_success || { (exit 1); exit 1; }
14490 fi
14491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14492 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14493 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14494 fi
14496 { as_dir=test/sh4
14497 case $as_dir in #(
14498 -*) as_dir=./$as_dir;;
14499 esac
14500 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14501 as_dirs=
14502 while :; do
14503 case $as_dir in #(
14504 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14505 *) as_qdir=$as_dir;;
14506 esac
14507 as_dirs="'$as_qdir' $as_dirs"
14508 as_dir=`$as_dirname -- "$as_dir" ||
14509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14510 X"$as_dir" : 'X\(//\)[^/]' \| \
14511 X"$as_dir" : 'X\(//\)$' \| \
14512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14513 $as_echo X"$as_dir" |
14514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14515 s//\1/
14516 q
14517 }
14518 /^X\(\/\/\)[^/].*/{
14519 s//\1/
14520 q
14521 }
14522 /^X\(\/\/\)$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\).*/{
14527 s//\1/
14528 q
14529 }
14530 s/.*/./; q'`
14531 test -d "$as_dir" && break
14532 done
14533 test -z "$as_dirs" || eval "mkdir $as_dirs"
14534 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14535 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14536 { (exit 1); exit 1; }; }; }
14539 echo
14540 echo "Configuration complete"
14541 echo
14543 if test "x$HAVE_GTK" = x; then
14544 if test "x$HAVE_COCOA" = x; then
14545 echo " User interface: none"
14546 else
14547 echo " User interface: Cocoa"
14548 fi
14549 else
14550 echo " User interface: GTK"
14551 fi
14553 if test "x$SH4_TRANSLATOR" = "x"; then
14554 echo " SH4 translator: None (emulation core only)"
14555 else
14556 echo " SH4 translator: $SH4_TRANSLATOR"
14557 fi
14559 if test "x$VIDEO_DRIVERS" = "x"; then
14560 echo " Video drivers: none (no supported GL found)"
14561 else
14562 echo " Video drivers: $VIDEO_DRIVERS"
14563 fi
14565 if test "x$AUDIO_DRIVERS" = "x"; then
14566 echo " Audio drivers: none (no supported output devices found)"
14567 else
14568 echo " Audio drivers: $AUDIO_DRIVERS"
14569 fi
14571 if test "x$CDROM_DRIVER" = "x"; then
14572 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14573 else
14574 echo " CD-ROM driver: $CDROM_DRIVER"
14575 fi
.