filename | configure |
changeset | 1031:a9938ed3bfe8 |
prev | 1029:7138bbb9537c |
next | 1046:9e2c1dd2b537 |
author | nkeynes |
date | Thu Jun 25 01:15:25 2009 +0000 (14 years ago) |
permissions | -rwxr-xr-x |
last change | Move configuration to .lxdream/lxdreamrc on *nix, Library/Application Support/Lxdream on OS X Create standard directories on first run Add current quick state to config file Refactor quick-state handling into dreamcast.c, and use the save directory |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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='LTLIBOBJS
639 LIBOBJS
640 MKINSTALLDIRS
641 POSUB
642 POFILES
643 PO_IN_DATADIR_FALSE
644 PO_IN_DATADIR_TRUE
645 INTLLIBS
646 INSTOBJEXT
647 GMOFILES
648 DATADIRNAME
649 CATOBJEXT
650 CATALOGS
651 XGETTEXT
652 GMSGFMT
653 MSGFMT_OPTS
654 MSGFMT
655 USE_NLS
656 GETTEXT_PACKAGE
657 BUILD_ARMTEST_FALSE
658 BUILD_ARMTEST_TRUE
659 BUILD_SYSTEST_FALSE
660 BUILD_SYSTEST_TRUE
661 ARMOBJCOPY
662 ARMLD
663 ARMCC
664 SHOBJCOPY
665 SHLD
666 SHCC
667 INPUT_LIRC_FALSE
668 INPUT_LIRC_TRUE
669 JOY_LINUX_FALSE
670 JOY_LINUX_TRUE
671 CDROM_NONE_FALSE
672 CDROM_NONE_TRUE
673 CDROM_OSX_FALSE
674 CDROM_OSX_TRUE
675 CDROM_LINUX_FALSE
676 CDROM_LINUX_TRUE
677 AUDIO_ALSA_FALSE
678 AUDIO_ALSA_TRUE
679 ALSA_LIBS
680 ALSA_CFLAGS
681 AUDIO_ESOUND_FALSE
682 AUDIO_ESOUND_TRUE
683 ESOUND_LIBS
684 ESOUND_CFLAGS
685 AUDIO_PULSE_FALSE
686 AUDIO_PULSE_TRUE
687 PULSE_LIBS
688 PULSE_CFLAGS
689 AUDIO_SDL_FALSE
690 AUDIO_SDL_TRUE
691 SDL_LIBS
692 SDL_CFLAGS
693 AUDIO_OSX_FALSE
694 AUDIO_OSX_TRUE
695 BUILD_SH4X86_FALSE
696 BUILD_SH4X86_TRUE
697 VIDEO_NSGL_FALSE
698 VIDEO_NSGL_TRUE
699 VIDEO_GLX_FALSE
700 VIDEO_GLX_TRUE
701 VIDEO_OSMESA_FALSE
702 VIDEO_OSMESA_TRUE
703 GUI_GTK_FALSE
704 GUI_GTK_TRUE
705 GTK_LIBS
706 GTK_CFLAGS
707 GLIB_LIBS
708 GLIB_CFLAGS
709 LIBPNG_LIBS
710 LIBPNG_CFLAGS
711 PKG_CONFIG
712 LXDREAMCPPFLAGS
713 BUILD_SHARED_FALSE
714 BUILD_SHARED_TRUE
715 LXDREAMLDFLAGS
716 PLUGINLDFLAGS
717 PLUGINCFLAGS
718 SOEXT
719 GUI_COCOA_FALSE
720 GUI_COCOA_TRUE
721 POD2HTML
722 POD2MAN
723 am__fastdepOBJC_FALSE
724 am__fastdepOBJC_TRUE
725 OBJCDEPMODE
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 EGREP
735 GREP
736 CPP
737 CCASFLAGS
738 CCAS
739 SED
740 ac_ct_OBJC
741 OBJCFLAGS
742 OBJC
743 am__fastdepCC_FALSE
744 am__fastdepCC_TRUE
745 CCDEPMODE
746 AMDEPBACKSLASH
747 AMDEP_FALSE
748 AMDEP_TRUE
749 am__quote
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 MAINT
760 MAINTAINER_MODE_FALSE
761 MAINTAINER_MODE_TRUE
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 INSTALL_STRIP_PROGRAM
770 STRIP
771 install_sh
772 MAKEINFO
773 AUTOHEADER
774 AUTOMAKE
775 AUTOCONF
776 ACLOCAL
777 VERSION
778 PACKAGE
779 CYGPATH_W
780 INSTALL_DATA
781 INSTALL_SCRIPT
782 INSTALL_PROGRAM
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_maintainer_mode
824 enable_dependency_tracking
825 enable_strict_warn
826 enable_translator
827 enable_optimized
828 enable_shared
829 enable_profiled
830 enable_trace
831 enable_watch
832 enable_sh4stats
833 with_osmesa
834 with_gtk
835 with_esd
836 with_pulse
837 with_sdl
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 OBJC
848 OBJCFLAGS
849 CCAS
850 CCASFLAGS
851 CPP
852 PKG_CONFIG
853 LIBPNG_CFLAGS
854 LIBPNG_LIBS
855 GLIB_CFLAGS
856 GLIB_LIBS
857 GTK_CFLAGS
858 GTK_LIBS
859 SDL_CFLAGS
860 SDL_LIBS
861 PULSE_CFLAGS
862 PULSE_LIBS
863 ESOUND_CFLAGS
864 ESOUND_LIBS
865 ALSA_CFLAGS
866 ALSA_LIBS'
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
928 case $ac_option in
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *) ac_optarg=yes ;;
931 esac
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
936 --)
937 ac_dashdash=yes ;;
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 ac_prev=bindir ;;
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 bindir=$ac_optarg ;;
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
956 --config-cache | -C)
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
960 ac_prev=datadir ;;
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1258 ;;
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 ;;
1277 esac
1278 done
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1284 fi
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1290 { (exit 1); exit 1; }; } ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293 fi
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1300 do
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
1309 case $ac_val in
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 esac
1313 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314 { (exit 1); exit 1; }; }
1315 done
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329 If a cross compiler is detected then cross compile mode will be used." >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333 fi
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1345 { (exit 1); exit 1; }; }
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1348 { (exit 1); exit 1; }; }
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382 else
1383 ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388 { (exit 1); exit 1; }; }
1389 fi
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1393 { (exit 1); exit 1; }; }
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures this package to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1474 cat <<\_ACEOF
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1487 if test -n "$ac_init_help"; then
1489 cat <<\_ACEOF
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-maintainer-mode enable make rules and dependencies not useful
1496 (and sometimes confusing) to the casual installer
1497 --disable-dependency-tracking speeds up one-time build
1498 --enable-dependency-tracking do not reject slow dependency extractors
1499 --enable-strict-warn Enable strict compilation warnings
1500 --disable-translator Disable the SH4 translator (Enabled by default)
1501 --disable-optimized Disable compile-time optimizations (Enabled by
1502 default)
1503 --enable-shared Build drivers as shared libraries (Enabled if
1504 available)
1505 --enable-profiled Enable profiling build
1506 --enable-trace Enable generation of IO traces (warning: hurts
1507 performance)
1508 --enable-watch Enable watchpoints in the debugger (warning: hurts
1509 performance)
1510 --enable-sh4stats Enable statistics on executed sh4 instructions
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-osmesa Build with the osmesa GL library (software
1516 rendering)
1517 --with-gtk Build with the GTK UI. Default on X11 systems
1518 --with-esd Build with support for the ESounD audio system
1519 --with-pulse Build with support for the PulseAudio audio system
1520 --with-sdl Build with support for SDL audio
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 OBJC Objective C compiler command
1531 OBJCFLAGS Objective C compiler flags
1532 CCAS assembler compiler command (defaults to CC)
1533 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1534 CPP C preprocessor
1535 PKG_CONFIG path to pkg-config utility
1536 LIBPNG_CFLAGS
1537 C compiler flags for LIBPNG, overriding pkg-config
1538 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1539 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1540 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1541 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1542 GTK_LIBS linker flags for GTK, overriding pkg-config
1543 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1544 SDL_LIBS linker flags for SDL, overriding pkg-config
1545 PULSE_CFLAGS
1546 C compiler flags for PULSE, overriding pkg-config
1547 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1548 ESOUND_CFLAGS
1549 C compiler flags for ESOUND, overriding pkg-config
1550 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1551 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1552 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 _ACEOF
1558 ac_status=$?
1559 fi
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 continue
1567 ac_builddir=.
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1609 else
1610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 fi || ac_status=$?
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1613 done
1614 fi
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618 cat <<\_ACEOF
1619 configure
1620 generated by GNU Autoconf 2.63
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627 exit
1628 fi
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.63. Invocation command line was
1636 $ $0 $@
1638 _ACEOF
1639 exec 5>>config.log
1640 {
1641 cat <<_ASUNAME
1642 ## --------- ##
1643 ## Platform. ##
1644 ## --------- ##
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1663 _ASUNAME
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 $as_echo "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1674 } >&5
1676 cat >&5 <<_ACEOF
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1683 _ACEOF
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697 for ac_arg
1698 do
1699 case $ac_arg in
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1703 continue ;;
1704 *\'*)
1705 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 esac
1707 case $ac_pass in
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709 2)
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1713 else
1714 case $ac_arg in
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721 esac
1722 ;;
1723 -* ) ac_must_keep_next=true ;;
1724 esac
1725 fi
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1727 ;;
1728 esac
1729 done
1730 done
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1741 {
1742 echo
1744 cat <<\_ASBOX
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1748 _ASBOX
1749 echo
1750 # The following way of writing the cache mishandles newlines in values,
1751 (
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in #(
1755 *${as_nl}*)
1756 case $ac_var in #(
1757 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1759 esac
1760 case $ac_var in #(
1761 _ | IFS | as_nl) ;; #(
1762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1763 *) $as_unset $ac_var ;;
1764 esac ;;
1765 esac
1766 done
1767 (set) 2>&1 |
1768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769 *${as_nl}ac_space=\ *)
1770 sed -n \
1771 "s/'\''/'\''\\\\'\'''\''/g;
1772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1773 ;; #(
1774 *)
1775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 ;;
1777 esac |
1778 sort
1779 )
1780 echo
1782 cat <<\_ASBOX
1783 ## ----------------- ##
1784 ## Output variables. ##
1785 ## ----------------- ##
1786 _ASBOX
1787 echo
1788 for ac_var in $ac_subst_vars
1789 do
1790 eval ac_val=\$$ac_var
1791 case $ac_val in
1792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 esac
1794 $as_echo "$ac_var='\''$ac_val'\''"
1795 done | sort
1796 echo
1798 if test -n "$ac_subst_files"; then
1799 cat <<\_ASBOX
1800 ## ------------------- ##
1801 ## File substitutions. ##
1802 ## ------------------- ##
1803 _ASBOX
1804 echo
1805 for ac_var in $ac_subst_files
1806 do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in
1809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 esac
1811 $as_echo "$ac_var='\''$ac_val'\''"
1812 done | sort
1813 echo
1814 fi
1816 if test -s confdefs.h; then
1817 cat <<\_ASBOX
1818 ## ----------- ##
1819 ## confdefs.h. ##
1820 ## ----------- ##
1821 _ASBOX
1822 echo
1823 cat confdefs.h
1824 echo
1825 fi
1826 test "$ac_signal" != 0 &&
1827 $as_echo "$as_me: caught signal $ac_signal"
1828 $as_echo "$as_me: exit $exit_status"
1829 } >&5
1830 rm -f core *.core core.conftest.* &&
1831 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1832 exit $exit_status
1833 ' 0
1834 for ac_signal in 1 2 13 15; do
1835 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1836 done
1837 ac_signal=0
1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1840 rm -f -r conftest* confdefs.h
1842 # Predefined preprocessor variables.
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_NAME "$PACKAGE_NAME"
1846 _ACEOF
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1851 _ACEOF
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1856 _ACEOF
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_STRING "$PACKAGE_STRING"
1861 _ACEOF
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1866 _ACEOF
1869 # Let the site file select an alternate cache file if it wants to.
1870 # Prefer an explicitly selected file to automatically selected ones.
1871 ac_site_file1=NONE
1872 ac_site_file2=NONE
1873 if test -n "$CONFIG_SITE"; then
1874 ac_site_file1=$CONFIG_SITE
1875 elif test "x$prefix" != xNONE; then
1876 ac_site_file1=$prefix/share/config.site
1877 ac_site_file2=$prefix/etc/config.site
1878 else
1879 ac_site_file1=$ac_default_prefix/share/config.site
1880 ac_site_file2=$ac_default_prefix/etc/config.site
1881 fi
1882 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1883 do
1884 test "x$ac_site_file" = xNONE && continue
1885 if test -r "$ac_site_file"; then
1886 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1889 . "$ac_site_file"
1890 fi
1891 done
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 $as_echo "$as_me: loading cache $cache_file" >&6;}
1899 case $cache_file in
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1902 esac
1903 fi
1904 else
1905 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 $as_echo "$as_me: creating cache $cache_file" >&6;}
1907 >$cache_file
1908 fi
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1919 set,)
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,set)
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,);;
1928 *)
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 # differences in whitespace do not lead to failure.
1931 ac_old_val_w=`echo x $ac_old_val`
1932 ac_new_val_w=`echo x $ac_new_val`
1933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1936 ac_cache_corrupted=:
1937 else
1938 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1940 eval $ac_var=\$ac_old_val
1941 fi
1942 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1943 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1944 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1946 fi;;
1947 esac
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1950 case $ac_new_val in
1951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1953 esac
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957 esac
1958 fi
1959 done
1960 if $ac_cache_corrupted; then
1961 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1968 fi
1986 ac_ext=c
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993 am__api_version="1.9"
1994 ac_aux_dir=
1995 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1996 if test -f "$ac_dir/install-sh"; then
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 break
2000 elif test -f "$ac_dir/install.sh"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install.sh -c"
2003 break
2004 elif test -f "$ac_dir/shtool"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/shtool install -c"
2007 break
2008 fi
2009 done
2010 if test -z "$ac_aux_dir"; then
2011 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2012 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2013 { (exit 1); exit 1; }; }
2014 fi
2016 # These three variables are undocumented and unsupported,
2017 # and are intended to be withdrawn in a future Autoconf release.
2018 # They can cause serious problems if a builder's source tree is in a directory
2019 # whose full name contains unusual characters.
2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2022 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2031 # AIX /bin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # OS/2's system install, which has a completely different semantic
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 # Reject install programs that cannot install multiple files.
2039 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2040 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2041 if test -z "$INSTALL"; then
2042 if test "${ac_cv_path_install+set}" = set; then
2043 $as_echo_n "(cached) " >&6
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 # Account for people who put trailing slashes in PATH elements.
2051 case $as_dir/ in
2052 ./ | .// | /cC/* | \
2053 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2054 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2055 /usr/ucb/* ) ;;
2056 *)
2057 # OSF1 and SCO ODT 3.0 have their own names for install.
2058 # Don't use installbsd from OSF since it installs stuff as root
2059 # by default.
2060 for ac_prog in ginstall scoinst install; do
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2063 if test $ac_prog = install &&
2064 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065 # AIX install. It has an incompatible calling convention.
2066 :
2067 elif test $ac_prog = install &&
2068 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2069 # program-specific install script used by HP pwplus--don't use.
2070 :
2071 else
2072 rm -rf conftest.one conftest.two conftest.dir
2073 echo one > conftest.one
2074 echo two > conftest.two
2075 mkdir conftest.dir
2076 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2077 test -s conftest.one && test -s conftest.two &&
2078 test -s conftest.dir/conftest.one &&
2079 test -s conftest.dir/conftest.two
2080 then
2081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2082 break 3
2083 fi
2084 fi
2085 fi
2086 done
2087 done
2088 ;;
2089 esac
2091 done
2092 IFS=$as_save_IFS
2094 rm -rf conftest.one conftest.two conftest.dir
2096 fi
2097 if test "${ac_cv_path_install+set}" = set; then
2098 INSTALL=$ac_cv_path_install
2099 else
2100 # As a last resort, use the slow shell script. Don't cache a
2101 # value for INSTALL within a source directory, because that will
2102 # break other packages using the cache if that directory is
2103 # removed, or if the value is a relative name.
2104 INSTALL=$ac_install_sh
2105 fi
2106 fi
2107 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2108 $as_echo "$INSTALL" >&6; }
2110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2111 # It thinks the first close brace ends the variable substitution.
2112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2118 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2119 $as_echo_n "checking whether build environment is sane... " >&6; }
2120 # Just in case
2121 sleep 1
2122 echo timestamp > conftest.file
2123 # Do `set' in a subshell so we don't clobber the current shell's
2124 # arguments. Must try -L first in case configure is actually a
2125 # symlink; some systems play weird games with the mod time of symlinks
2126 # (eg FreeBSD returns the mod time of the symlink's containing
2127 # directory).
2128 if (
2129 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2130 if test "$*" = "X"; then
2131 # -L didn't work.
2132 set X `ls -t $srcdir/configure conftest.file`
2133 fi
2134 rm -f conftest.file
2135 if test "$*" != "X $srcdir/configure conftest.file" \
2136 && test "$*" != "X conftest.file $srcdir/configure"; then
2138 # If neither matched, then we have a broken ls. This can happen
2139 # if, for instance, CONFIG_SHELL is bash and it inherits a
2140 # broken ls alias from the environment. This has actually
2141 # happened. Such a system could not be considered "sane".
2142 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2143 alias in your environment" >&5
2144 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2145 alias in your environment" >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi
2149 test "$2" = conftest.file
2150 )
2151 then
2152 # Ok.
2153 :
2154 else
2155 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2156 Check your system clock" >&5
2157 $as_echo "$as_me: error: newly created file is older than distributed files!
2158 Check your system clock" >&2;}
2159 { (exit 1); exit 1; }; }
2160 fi
2161 { $as_echo "$as_me:$LINENO: result: yes" >&5
2162 $as_echo "yes" >&6; }
2163 test "$program_prefix" != NONE &&
2164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2165 # Use a double $ so make ignores it.
2166 test "$program_suffix" != NONE &&
2167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2168 # Double any \ or $.
2169 # By default was `s,x,x', remove it if useless.
2170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2173 # expand $ac_aux_dir to an absolute path
2174 am_aux_dir=`cd $ac_aux_dir && pwd`
2176 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2177 # Use eval to expand $SHELL
2178 if eval "$MISSING --run true"; then
2179 am_missing_run="$MISSING --run "
2180 else
2181 am_missing_run=
2182 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2183 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2184 fi
2186 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2187 # We used to keeping the `.' as first argument, in order to
2188 # allow $(mkdir_p) to be used without argument. As in
2189 # $(mkdir_p) $(somedir)
2190 # where $(somedir) is conditionally defined. However this is wrong
2191 # for two reasons:
2192 # 1. if the package is installed by a user who cannot write `.'
2193 # make install will fail,
2194 # 2. the above comment should most certainly read
2195 # $(mkdir_p) $(DESTDIR)$(somedir)
2196 # so it does not work when $(somedir) is undefined and
2197 # $(DESTDIR) is not.
2198 # To support the latter case, we have to write
2199 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2200 # so the `.' trick is pointless.
2201 mkdir_p='mkdir -p --'
2202 else
2203 # On NextStep and OpenStep, the `mkdir' command does not
2204 # recognize any option. It will interpret all options as
2205 # directories to create, and then abort because `.' already
2206 # exists.
2207 for d in ./-p ./--version;
2208 do
2209 test -d $d && rmdir $d
2210 done
2211 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2212 if test -f "$ac_aux_dir/mkinstalldirs"; then
2213 mkdir_p='$(mkinstalldirs)'
2214 else
2215 mkdir_p='$(install_sh) -d'
2216 fi
2217 fi
2219 for ac_prog in gawk mawk nawk awk
2220 do
2221 # Extract the first word of "$ac_prog", so it can be a program name with args.
2222 set dummy $ac_prog; ac_word=$2
2223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 $as_echo_n "checking for $ac_word... " >&6; }
2225 if test "${ac_cv_prog_AWK+set}" = set; then
2226 $as_echo_n "(cached) " >&6
2227 else
2228 if test -n "$AWK"; then
2229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238 ac_cv_prog_AWK="$ac_prog"
2239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 break 2
2241 fi
2242 done
2243 done
2244 IFS=$as_save_IFS
2246 fi
2247 fi
2248 AWK=$ac_cv_prog_AWK
2249 if test -n "$AWK"; then
2250 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2251 $as_echo "$AWK" >&6; }
2252 else
2253 { $as_echo "$as_me:$LINENO: result: no" >&5
2254 $as_echo "no" >&6; }
2255 fi
2258 test -n "$AWK" && break
2259 done
2261 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2263 set x ${MAKE-make}
2264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2265 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2266 $as_echo_n "(cached) " >&6
2267 else
2268 cat >conftest.make <<\_ACEOF
2269 SHELL = /bin/sh
2270 all:
2271 @echo '@@@%%%=$(MAKE)=@@@%%%'
2272 _ACEOF
2273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2275 *@@@%%%=?*=@@@%%%*)
2276 eval ac_cv_prog_make_${ac_make}_set=yes;;
2277 *)
2278 eval ac_cv_prog_make_${ac_make}_set=no;;
2279 esac
2280 rm -f conftest.make
2281 fi
2282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2283 { $as_echo "$as_me:$LINENO: result: yes" >&5
2284 $as_echo "yes" >&6; }
2285 SET_MAKE=
2286 else
2287 { $as_echo "$as_me:$LINENO: result: no" >&5
2288 $as_echo "no" >&6; }
2289 SET_MAKE="MAKE=${MAKE-make}"
2290 fi
2292 rm -rf .tst 2>/dev/null
2293 mkdir .tst 2>/dev/null
2294 if test -d .tst; then
2295 am__leading_dot=.
2296 else
2297 am__leading_dot=_
2298 fi
2299 rmdir .tst 2>/dev/null
2301 # test to see if srcdir already configured
2302 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2303 test -f $srcdir/config.status; then
2304 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2305 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2306 { (exit 1); exit 1; }; }
2307 fi
2309 # test whether we have cygpath
2310 if test -z "$CYGPATH_W"; then
2311 if (cygpath --version) >/dev/null 2>/dev/null; then
2312 CYGPATH_W='cygpath -w'
2313 else
2314 CYGPATH_W=echo
2315 fi
2316 fi
2319 # Define the identity of the package.
2320 PACKAGE=lxdream
2321 VERSION=0.9
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE "$PACKAGE"
2326 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define VERSION "$VERSION"
2331 _ACEOF
2333 # Some tools Automake needs.
2335 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2338 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2341 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2344 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2347 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2349 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2351 # Installed binaries are usually stripped using `strip' when the user
2352 # run `make install-strip'. However `strip' might not be the right
2353 # tool to use in cross-compilation environments, therefore Automake
2354 # will honor the `STRIP' environment variable to overrule this program.
2355 if test "$cross_compiling" != no; then
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_STRIP+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$STRIP"; then
2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2382 fi
2383 fi
2384 STRIP=$ac_cv_prog_STRIP
2385 if test -n "$STRIP"; then
2386 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2387 $as_echo "$STRIP" >&6; }
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2394 fi
2395 if test -z "$ac_cv_prog_STRIP"; then
2396 ac_ct_STRIP=$STRIP
2397 # Extract the first word of "strip", so it can be a program name with args.
2398 set dummy strip; ac_word=$2
2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test -n "$ac_ct_STRIP"; then
2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_STRIP="strip"
2415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2422 fi
2423 fi
2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2425 if test -n "$ac_ct_STRIP"; then
2426 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2427 $as_echo "$ac_ct_STRIP" >&6; }
2428 else
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2431 fi
2433 if test "x$ac_ct_STRIP" = x; then
2434 STRIP=":"
2435 else
2436 case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442 STRIP=$ac_ct_STRIP
2443 fi
2444 else
2445 STRIP="$ac_cv_prog_STRIP"
2446 fi
2448 fi
2449 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2451 # We need awk for the "check" target. The system "awk" is bad on
2452 # some platforms.
2453 # Always define AMTAR for backward compatibility.
2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2463 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2465 # Check whether --enable-maintainer-mode was given.
2466 if test "${enable_maintainer_mode+set}" = set; then
2467 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2468 else
2469 USE_MAINTAINER_MODE=no
2470 fi
2472 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2476 if test $USE_MAINTAINER_MODE = yes; then
2477 MAINTAINER_MODE_TRUE=
2478 MAINTAINER_MODE_FALSE='#'
2479 else
2480 MAINTAINER_MODE_TRUE='#'
2481 MAINTAINER_MODE_FALSE=
2482 fi
2484 MAINT=$MAINTAINER_MODE_TRUE
2487 ac_config_headers="$ac_config_headers config.h"
2490 DEPDIR="${am__leading_dot}deps"
2492 ac_config_commands="$ac_config_commands depfiles"
2495 am_make=${MAKE-make}
2496 cat > confinc << 'END'
2497 am__doit:
2498 @echo done
2499 .PHONY: am__doit
2500 END
2501 # If we don't find an include directive, just comment out the code.
2502 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2504 am__include="#"
2505 am__quote=
2506 _am_result=none
2507 # First try GNU make style include.
2508 echo "include confinc" > confmf
2509 # We grep out `Entering directory' and `Leaving directory'
2510 # messages which can occur if `w' ends up in MAKEFLAGS.
2511 # In particular we don't look at `^make:' because GNU make might
2512 # be invoked under some other name (usually "gmake"), in which
2513 # case it prints its new name instead of `make'.
2514 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2515 am__include=include
2516 am__quote=
2517 _am_result=GNU
2518 fi
2519 # Now try BSD make style include.
2520 if test "$am__include" = "#"; then
2521 echo '.include "confinc"' > confmf
2522 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2523 am__include=.include
2524 am__quote="\""
2525 _am_result=BSD
2526 fi
2527 fi
2530 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2531 $as_echo "$_am_result" >&6; }
2532 rm -f confinc confmf
2534 # Check whether --enable-dependency-tracking was given.
2535 if test "${enable_dependency_tracking+set}" = set; then
2536 enableval=$enable_dependency_tracking;
2537 fi
2539 if test "x$enable_dependency_tracking" != xno; then
2540 am_depcomp="$ac_aux_dir/depcomp"
2541 AMDEPBACKSLASH='\'
2542 fi
2545 if test "x$enable_dependency_tracking" != xno; then
2546 AMDEP_TRUE=
2547 AMDEP_FALSE='#'
2548 else
2549 AMDEP_TRUE='#'
2550 AMDEP_FALSE=
2551 fi
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2592 else
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2598 fi
2599 if test -z "$ac_cv_prog_CC"; then
2600 ac_ct_CC=$CC
2601 # Extract the first word of "gcc", so it can be a program name with args.
2602 set dummy gcc; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_CC="gcc"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2626 fi
2627 fi
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 $as_echo "$ac_ct_CC" >&6; }
2632 else
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2637 if test "x$ac_ct_CC" = x; then
2638 CC=""
2639 else
2640 case $cross_compiling:$ac_tool_warned in
2641 yes:)
2642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646 CC=$ac_ct_CC
2647 fi
2648 else
2649 CC="$ac_cv_prog_CC"
2650 fi
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}cc; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="${ac_tool_prefix}cc"
2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2685 else
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2691 fi
2692 fi
2693 if test -z "$CC"; then
2694 # Extract the first word of "cc", so it can be a program name with args.
2695 set dummy cc; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 ac_prog_rejected=no
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713 ac_prog_rejected=yes
2714 continue
2715 fi
2716 ac_cv_prog_CC="cc"
2717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2724 if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2727 shift
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2732 shift
2733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734 fi
2735 fi
2736 fi
2737 fi
2738 CC=$ac_cv_prog_CC
2739 if test -n "$CC"; then
2740 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2741 $as_echo "$CC" >&6; }
2742 else
2743 { $as_echo "$as_me:$LINENO: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2748 fi
2749 if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
2751 for ac_prog in cl.exe
2752 do
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2778 fi
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2784 else
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2790 test -n "$CC" && break
2791 done
2792 fi
2793 if test -z "$CC"; then
2794 ac_ct_CC=$CC
2795 for ac_prog in cl.exe
2796 do
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798 set dummy $ac_prog; ac_word=$2
2799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_ac_ct_CC="$ac_prog"
2815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2822 fi
2823 fi
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2827 $as_echo "$ac_ct_CC" >&6; }
2828 else
2829 { $as_echo "$as_me:$LINENO: result: no" >&5
2830 $as_echo "no" >&6; }
2831 fi
2834 test -n "$ac_ct_CC" && break
2835 done
2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841 yes:)
2842 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846 CC=$ac_ct_CC
2847 fi
2848 fi
2850 fi
2853 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&5
2857 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }; }
2861 # Provide some information about the compiler.
2862 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2863 set X $ac_compile
2864 ac_compiler=$2
2865 { (ac_try="$ac_compiler --version >&5"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compiler --version >&5") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -v >&5"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882 $as_echo "$ac_try_echo") >&5
2883 (eval "$ac_compiler -v >&5") 2>&5
2884 ac_status=$?
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try="$ac_compiler -V >&5"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893 $as_echo "$ac_try_echo") >&5
2894 (eval "$ac_compiler -V >&5") 2>&5
2895 ac_status=$?
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2899 cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2906 int
2907 main ()
2908 {
2910 ;
2911 return 0;
2912 }
2913 _ACEOF
2914 ac_clean_files_save=$ac_clean_files
2915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916 # Try to create an executable without -o first, disregard a.out.
2917 # It will help us diagnose broken compilers, and finding out an intuition
2918 # of exeext.
2919 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2920 $as_echo_n "checking for C compiler default output file name... " >&6; }
2921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923 # The possible output files:
2924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2926 ac_rmfiles=
2927 for ac_file in $ac_files
2928 do
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 esac
2933 done
2934 rm -f $ac_rmfiles
2936 if { (ac_try="$ac_link_default"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942 $as_echo "$ac_try_echo") >&5
2943 (eval "$ac_link_default") 2>&5
2944 ac_status=$?
2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2951 # Autoconf.
2952 for ac_file in $ac_files ''
2953 do
2954 test -f "$ac_file" || continue
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2957 ;;
2958 [ab].out )
2959 # We found the default executable, but exeext='' is most
2960 # certainly right.
2961 break;;
2962 *.* )
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2964 then :; else
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 fi
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2971 # actually working.
2972 break;;
2973 * )
2974 break;;
2975 esac
2976 done
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2979 else
2980 ac_file=''
2981 fi
2983 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2984 $as_echo "$ac_file" >&6; }
2985 if test -z "$ac_file"; then
2986 $as_echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&5
2993 $as_echo "$as_me: error: C compiler cannot create executables
2994 See \`config.log' for more details." >&2;}
2995 { (exit 77); exit 77; }; }; }
2996 fi
2998 ac_exeext=$ac_cv_exeext
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3003 $as_echo_n "checking whether the C compiler works... " >&6; }
3004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3005 # If not cross compiling, check that we can run a simple program.
3006 if test "$cross_compiling" != yes; then
3007 if { ac_try='./$ac_file'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3013 $as_echo "$ac_try_echo") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 cross_compiling=no
3019 else
3020 if test "$cross_compiling" = maybe; then
3021 cross_compiling=yes
3022 else
3023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3026 If you meant to cross compile, use \`--host'.
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }; }
3032 fi
3033 fi
3034 fi
3035 { $as_echo "$as_me:$LINENO: result: yes" >&5
3036 $as_echo "yes" >&6; }
3038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3039 ac_clean_files=$ac_clean_files_save
3040 # Check that the compiler produces executables we can run. If not, either
3041 # the compiler is broken, or we cross compile.
3042 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3043 $as_echo_n "checking whether we are cross compiling... " >&6; }
3044 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3045 $as_echo "$cross_compiling" >&6; }
3047 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3048 $as_echo_n "checking for suffix of executables... " >&6; }
3049 if { (ac_try="$ac_link"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055 $as_echo "$ac_try_echo") >&5
3056 (eval "$ac_link") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3063 # `rm'.
3064 for ac_file in conftest.exe conftest conftest.*; do
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 break;;
3070 * ) break;;
3071 esac
3072 done
3073 else
3074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details." >&5
3078 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }; }
3081 fi
3083 rm -f conftest$ac_cv_exeext
3084 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3085 $as_echo "$ac_cv_exeext" >&6; }
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_exeext
3089 ac_exeext=$EXEEXT
3090 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3091 $as_echo_n "checking for suffix of object files... " >&6; }
3092 if test "${ac_cv_objext+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3094 else
3095 cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h. */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3102 int
3103 main ()
3104 {
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.o conftest.obj
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_compile") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127 break;;
3128 esac
3129 done
3130 else
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&5
3138 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }; }
3141 fi
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144 fi
3145 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 $as_echo "$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3148 ac_objext=$OBJEXT
3149 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3161 int
3162 main ()
3163 {
3164 #ifndef __GNUC__
3165 choke me
3166 #endif
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179 $as_echo "$ac_try_echo") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 ac_compiler_gnu=yes
3191 else
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 ac_compiler_gnu=no
3196 fi
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201 fi
3202 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3204 if test $ac_compiler_gnu = yes; then
3205 GCC=yes
3206 else
3207 GCC=
3208 fi
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3215 else
3216 ac_save_c_werror_flag=$ac_c_werror_flag
3217 ac_c_werror_flag=yes
3218 ac_cv_prog_cc_g=no
3219 CFLAGS="-g"
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3227 int
3228 main ()
3229 {
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 ac_cv_prog_cc_g=yes
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 CFLAGS=""
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3266 int
3267 main ()
3268 {
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 :
3293 else
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3298 CFLAGS="-g"
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3306 int
3307 main ()
3308 {
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3332 ac_cv_prog_cc_g=yes
3333 else
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3338 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 fi
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 fi
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 fi
3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3358 fi
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3364 fi
3365 fi
3366 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3370 else
3371 ac_cv_prog_cc_c89=no
3372 ac_save_CC=$CC
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <stdarg.h>
3380 #include <stdio.h>
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3387 char **p;
3388 int i;
3389 {
3390 return p[i];
3391 }
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3393 {
3394 char *s;
3395 va_list v;
3396 va_start (v,p);
3397 s = g (p, va_arg (v,int));
3398 va_end (v);
3399 return s;
3400 }
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412 inside strings and character constants. */
3413 #define FOO(x) 'x'
3414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416 int test (int i, double x);
3417 struct s1 {int (*f) (int a);};
3418 struct s2 {int (*f) (double a);};
3419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3420 int argc;
3421 char **argv;
3422 int
3423 main ()
3424 {
3425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 do
3433 CC="$ac_save_CC $ac_arg"
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441 $as_echo "$ac_try_echo") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3452 ac_cv_prog_cc_c89=$ac_arg
3453 else
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3458 fi
3460 rm -f core conftest.err conftest.$ac_objext
3461 test "x$ac_cv_prog_cc_c89" != "xno" && break
3462 done
3463 rm -f conftest.$ac_ext
3464 CC=$ac_save_CC
3466 fi
3467 # AC_CACHE_VAL
3468 case "x$ac_cv_prog_cc_c89" in
3469 x)
3470 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3471 $as_echo "none needed" >&6; } ;;
3472 xno)
3473 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3474 $as_echo "unsupported" >&6; } ;;
3475 *)
3476 CC="$CC $ac_cv_prog_cc_c89"
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3479 esac
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 depcc="$CC" am_compiler_list=
3490 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3491 $as_echo_n "checking dependency style of $depcc... " >&6; }
3492 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496 # We make a subdir and do the tests there. Otherwise we can end up
3497 # making bogus files that we don't know about and never remove. For
3498 # instance it was reported that on HP-UX the gcc test will end up
3499 # making a dummy file named `D' -- because `-MD' means `put the output
3500 # in D'.
3501 mkdir conftest.dir
3502 # Copy depcomp to subdir because otherwise we won't find it if we're
3503 # using a relative directory.
3504 cp "$am_depcomp" conftest.dir
3505 cd conftest.dir
3506 # We will build objects and dependencies in a subdirectory because
3507 # it helps to detect inapplicable dependency modes. For instance
3508 # both Tru64's cc and ICC support -MD to output dependencies as a
3509 # side effect of compilation, but ICC will put the dependencies in
3510 # the current directory while Tru64 will put them in the object
3511 # directory.
3512 mkdir sub
3514 am_cv_CC_dependencies_compiler_type=none
3515 if test "$am_compiler_list" = ""; then
3516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3517 fi
3518 for depmode in $am_compiler_list; do
3519 # Setup a source with many dependencies, because some compilers
3520 # like to wrap large dependency lists on column 80 (with \), and
3521 # we should not choose a depcomp mode which is confused by this.
3522 #
3523 # We need to recreate these files for each test, as the compiler may
3524 # overwrite some of them when testing with obscure command lines.
3525 # This happens at least with the AIX C compiler.
3526 : > sub/conftest.c
3527 for i in 1 2 3 4 5 6; do
3528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3529 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3530 # Solaris 8's {/usr,}/bin/sh.
3531 touch sub/conftst$i.h
3532 done
3533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3535 case $depmode in
3536 nosideeffect)
3537 # after this tag, mechanisms are not by side-effect, so they'll
3538 # only be used when explicitly requested
3539 if test "x$enable_dependency_tracking" = xyes; then
3540 continue
3541 else
3542 break
3543 fi
3544 ;;
3545 none) break ;;
3546 esac
3547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548 # mode. It turns out that the SunPro C++ compiler does not properly
3549 # handle `-M -o', and we need to detect this.
3550 if depmode=$depmode \
3551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554 >/dev/null 2>conftest.err &&
3555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3556 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3558 # icc doesn't choke on unknown options, it will just issue warnings
3559 # or remarks (even with -Werror). So we grep stderr for any message
3560 # that says an option was ignored or not supported.
3561 # When given -MP, icc 7.0 and 7.1 complain thusly:
3562 # icc: Command line warning: ignoring option '-M'; no argument required
3563 # The diagnosis changed in icc 8.0:
3564 # icc: Command line remark: option '-MP' not supported
3565 if (grep 'ignoring option' conftest.err ||
3566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3567 am_cv_CC_dependencies_compiler_type=$depmode
3568 break
3569 fi
3570 fi
3571 done
3573 cd ..
3574 rm -rf conftest.dir
3575 else
3576 am_cv_CC_dependencies_compiler_type=none
3577 fi
3579 fi
3580 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3586 if
3587 test "x$enable_dependency_tracking" != xno \
3588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3589 am__fastdepCC_TRUE=
3590 am__fastdepCC_FALSE='#'
3591 else
3592 am__fastdepCC_TRUE='#'
3593 am__fastdepCC_FALSE=
3594 fi
3599 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3600 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3601 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3602 $as_echo_n "(cached) " >&6
3603 else
3604 ac_check_lib_save_LIBS=$LIBS
3605 LIBS="-lcposix $LIBS"
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3613 /* Override any GCC internal prototype to avoid an error.
3614 Use char because int might match the return type of a GCC
3615 builtin and then its argument prototype would still apply. */
3616 #ifdef __cplusplus
3617 extern "C"
3618 #endif
3619 char strerror ();
3620 int
3621 main ()
3622 {
3623 return strerror ();
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (ac_try="$ac_link"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3635 $as_echo "$ac_try_echo") >&5
3636 (eval "$ac_link") 2>conftest.er1
3637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest$ac_exeext && {
3646 test "$cross_compiling" = yes ||
3647 $as_test_x conftest$ac_exeext
3648 }; then
3649 ac_cv_lib_cposix_strerror=yes
3650 else
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 ac_cv_lib_cposix_strerror=no
3655 fi
3657 rm -rf conftest.dSYM
3658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3659 conftest$ac_exeext conftest.$ac_ext
3660 LIBS=$ac_check_lib_save_LIBS
3661 fi
3662 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3663 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3664 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3665 LIBS="$LIBS -lcposix"
3666 fi
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_CC+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3701 fi
3702 fi
3703 CC=$ac_cv_prog_CC
3704 if test -n "$CC"; then
3705 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3706 $as_echo "$CC" >&6; }
3707 else
3708 { $as_echo "$as_me:$LINENO: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3713 fi
3714 if test -z "$ac_cv_prog_CC"; then
3715 ac_ct_CC=$CC
3716 # Extract the first word of "gcc", so it can be a program name with args.
3717 set dummy gcc; ac_word=$2
3718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -n "$ac_ct_CC"; then
3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_CC="gcc"
3734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3741 fi
3742 fi
3743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3744 if test -n "$ac_ct_CC"; then
3745 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3746 $as_echo "$ac_ct_CC" >&6; }
3747 else
3748 { $as_echo "$as_me:$LINENO: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3752 if test "x$ac_ct_CC" = x; then
3753 CC=""
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 CC=$ac_ct_CC
3762 fi
3763 else
3764 CC="$ac_cv_prog_CC"
3765 fi
3767 if test -z "$CC"; then
3768 if test -n "$ac_tool_prefix"; then
3769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3770 set dummy ${ac_tool_prefix}cc; ac_word=$2
3771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_CC+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_CC="${ac_tool_prefix}cc"
3787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3789 fi
3790 done
3791 done
3792 IFS=$as_save_IFS
3794 fi
3795 fi
3796 CC=$ac_cv_prog_CC
3797 if test -n "$CC"; then
3798 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3799 $as_echo "$CC" >&6; }
3800 else
3801 { $as_echo "$as_me:$LINENO: result: no" >&5
3802 $as_echo "no" >&6; }
3803 fi
3806 fi
3807 fi
3808 if test -z "$CC"; then
3809 # Extract the first word of "cc", so it can be a program name with args.
3810 set dummy cc; ac_word=$2
3811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if test "${ac_cv_prog_CC+set}" = set; then
3814 $as_echo_n "(cached) " >&6
3815 else
3816 if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3818 else
3819 ac_prog_rejected=no
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3828 ac_prog_rejected=yes
3829 continue
3830 fi
3831 ac_cv_prog_CC="cc"
3832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837 IFS=$as_save_IFS
3839 if test $ac_prog_rejected = yes; then
3840 # We found a bogon in the path, so make sure we never use it.
3841 set dummy $ac_cv_prog_CC
3842 shift
3843 if test $# != 0; then
3844 # We chose a different compiler from the bogus one.
3845 # However, it has the same basename, so the bogon will be chosen
3846 # first if we set CC to just the basename; use the full file name.
3847 shift
3848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3849 fi
3850 fi
3851 fi
3852 fi
3853 CC=$ac_cv_prog_CC
3854 if test -n "$CC"; then
3855 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3856 $as_echo "$CC" >&6; }
3857 else
3858 { $as_echo "$as_me:$LINENO: result: no" >&5
3859 $as_echo "no" >&6; }
3860 fi
3863 fi
3864 if test -z "$CC"; then
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in cl.exe
3867 do
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_CC+set}" = set; then
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891 IFS=$as_save_IFS
3893 fi
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3899 else
3900 { $as_echo "$as_me:$LINENO: result: no" >&5
3901 $as_echo "no" >&6; }
3902 fi
3905 test -n "$CC" && break
3906 done
3907 fi
3908 if test -z "$CC"; then
3909 ac_ct_CC=$CC
3910 for ac_prog in cl.exe
3911 do
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$ac_ct_CC"; then
3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_ac_ct_CC="$ac_prog"
3930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3937 fi
3938 fi
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3942 $as_echo "$ac_ct_CC" >&6; }
3943 else
3944 { $as_echo "$as_me:$LINENO: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3949 test -n "$ac_ct_CC" && break
3950 done
3952 if test "x$ac_ct_CC" = x; then
3953 CC=""
3954 else
3955 case $cross_compiling:$ac_tool_warned in
3956 yes:)
3957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3960 esac
3961 CC=$ac_ct_CC
3962 fi
3963 fi
3965 fi
3968 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3971 See \`config.log' for more details." >&5
3972 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3973 See \`config.log' for more details." >&2;}
3974 { (exit 1); exit 1; }; }; }
3976 # Provide some information about the compiler.
3977 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3978 set X $ac_compile
3979 ac_compiler=$2
3980 { (ac_try="$ac_compiler --version >&5"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987 (eval "$ac_compiler --version >&5") 2>&5
3988 ac_status=$?
3989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }
3991 { (ac_try="$ac_compiler -v >&5"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3997 $as_echo "$ac_try_echo") >&5
3998 (eval "$ac_compiler -v >&5") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4002 { (ac_try="$ac_compiler -V >&5"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4008 $as_echo "$ac_try_echo") >&5
4009 (eval "$ac_compiler -V >&5") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
4014 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4015 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4026 int
4027 main ()
4028 {
4029 #ifndef __GNUC__
4030 choke me
4031 #endif
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4044 $as_echo "$ac_try_echo") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4055 ac_compiler_gnu=yes
4056 else
4057 $as_echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ac_compiler_gnu=no
4061 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066 fi
4067 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4070 GCC=yes
4071 else
4072 GCC=
4073 fi
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4083 ac_cv_prog_cc_g=no
4084 CFLAGS="-g"
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4092 int
4093 main ()
4094 {
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 rm -f conftest.$ac_objext
4101 if { (ac_try="$ac_compile"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107 $as_echo "$ac_try_echo") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4118 ac_cv_prog_cc_g=yes
4119 else
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 CFLAGS=""
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 int
4132 main ()
4133 {
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && {
4154 test -z "$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 } && test -s conftest.$ac_objext; then
4157 :
4158 else
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4171 int
4172 main ()
4173 {
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 ac_cv_prog_cc_g=yes
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4203 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_c_werror_flag=$ac_save_c_werror_flag
4213 fi
4214 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4215 $as_echo "$ac_cv_prog_cc_g" >&6; }
4216 if test "$ac_test_CFLAGS" = set; then
4217 CFLAGS=$ac_save_CFLAGS
4218 elif test $ac_cv_prog_cc_g = yes; then
4219 if test "$GCC" = yes; then
4220 CFLAGS="-g -O2"
4221 else
4222 CFLAGS="-g"
4223 fi
4224 else
4225 if test "$GCC" = yes; then
4226 CFLAGS="-O2"
4227 else
4228 CFLAGS=
4229 fi
4230 fi
4231 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4232 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4233 if test "${ac_cv_prog_cc_c89+set}" = set; then
4234 $as_echo_n "(cached) " >&6
4235 else
4236 ac_cv_prog_cc_c89=no
4237 ac_save_CC=$CC
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 #include <stdarg.h>
4245 #include <stdio.h>
4246 #include <sys/types.h>
4247 #include <sys/stat.h>
4248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4249 struct buf { int x; };
4250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4251 static char *e (p, i)
4252 char **p;
4253 int i;
4254 {
4255 return p[i];
4256 }
4257 static char *f (char * (*g) (char **, int), char **p, ...)
4258 {
4259 char *s;
4260 va_list v;
4261 va_start (v,p);
4262 s = g (p, va_arg (v,int));
4263 va_end (v);
4264 return s;
4265 }
4267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4268 function prototypes and stuff, but not '\xHH' hex character constants.
4269 These don't provoke an error unfortunately, instead are silently treated
4270 as 'x'. The following induces an error, until -std is added to get
4271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4272 array size at least. It's necessary to write '\x00'==0 to get something
4273 that's true only with -std. */
4274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4277 inside strings and character constants. */
4278 #define FOO(x) 'x'
4279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4281 int test (int i, double x);
4282 struct s1 {int (*f) (int a);};
4283 struct s2 {int (*f) (double a);};
4284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4285 int argc;
4286 char **argv;
4287 int
4288 main ()
4289 {
4290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 do
4298 CC="$ac_save_CC $ac_arg"
4299 rm -f conftest.$ac_objext
4300 if { (ac_try="$ac_compile"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4306 $as_echo "$ac_try_echo") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest.$ac_objext; then
4317 ac_cv_prog_cc_c89=$ac_arg
4318 else
4319 $as_echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4323 fi
4325 rm -f core conftest.err conftest.$ac_objext
4326 test "x$ac_cv_prog_cc_c89" != "xno" && break
4327 done
4328 rm -f conftest.$ac_ext
4329 CC=$ac_save_CC
4331 fi
4332 # AC_CACHE_VAL
4333 case "x$ac_cv_prog_cc_c89" in
4334 x)
4335 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4336 $as_echo "none needed" >&6; } ;;
4337 xno)
4338 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4339 $as_echo "unsupported" >&6; } ;;
4340 *)
4341 CC="$CC $ac_cv_prog_cc_c89"
4342 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4343 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4344 esac
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 depcc="$CC" am_compiler_list=
4355 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4356 $as_echo_n "checking dependency style of $depcc... " >&6; }
4357 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361 # We make a subdir and do the tests there. Otherwise we can end up
4362 # making bogus files that we don't know about and never remove. For
4363 # instance it was reported that on HP-UX the gcc test will end up
4364 # making a dummy file named `D' -- because `-MD' means `put the output
4365 # in D'.
4366 mkdir conftest.dir
4367 # Copy depcomp to subdir because otherwise we won't find it if we're
4368 # using a relative directory.
4369 cp "$am_depcomp" conftest.dir
4370 cd conftest.dir
4371 # We will build objects and dependencies in a subdirectory because
4372 # it helps to detect inapplicable dependency modes. For instance
4373 # both Tru64's cc and ICC support -MD to output dependencies as a
4374 # side effect of compilation, but ICC will put the dependencies in
4375 # the current directory while Tru64 will put them in the object
4376 # directory.
4377 mkdir sub
4379 am_cv_CC_dependencies_compiler_type=none
4380 if test "$am_compiler_list" = ""; then
4381 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4382 fi
4383 for depmode in $am_compiler_list; do
4384 # Setup a source with many dependencies, because some compilers
4385 # like to wrap large dependency lists on column 80 (with \), and
4386 # we should not choose a depcomp mode which is confused by this.
4387 #
4388 # We need to recreate these files for each test, as the compiler may
4389 # overwrite some of them when testing with obscure command lines.
4390 # This happens at least with the AIX C compiler.
4391 : > sub/conftest.c
4392 for i in 1 2 3 4 5 6; do
4393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4394 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4395 # Solaris 8's {/usr,}/bin/sh.
4396 touch sub/conftst$i.h
4397 done
4398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4400 case $depmode in
4401 nosideeffect)
4402 # after this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested
4404 if test "x$enable_dependency_tracking" = xyes; then
4405 continue
4406 else
4407 break
4408 fi
4409 ;;
4410 none) break ;;
4411 esac
4412 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4413 # mode. It turns out that the SunPro C++ compiler does not properly
4414 # handle `-M -o', and we need to detect this.
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4423 # icc doesn't choke on unknown options, it will just issue warnings
4424 # or remarks (even with -Werror). So we grep stderr for any message
4425 # that says an option was ignored or not supported.
4426 # When given -MP, icc 7.0 and 7.1 complain thusly:
4427 # icc: Command line warning: ignoring option '-M'; no argument required
4428 # The diagnosis changed in icc 8.0:
4429 # icc: Command line remark: option '-MP' not supported
4430 if (grep 'ignoring option' conftest.err ||
4431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4432 am_cv_CC_dependencies_compiler_type=$depmode
4433 break
4434 fi
4435 fi
4436 done
4438 cd ..
4439 rm -rf conftest.dir
4440 else
4441 am_cv_CC_dependencies_compiler_type=none
4442 fi
4444 fi
4445 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4446 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4451 if
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCC_TRUE=
4455 am__fastdepCC_FALSE='#'
4456 else
4457 am__fastdepCC_TRUE='#'
4458 am__fastdepCC_FALSE=
4459 fi
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -n "$CC"; then
4476 ac_cv_prog_CC="$CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4493 fi
4494 fi
4495 CC=$ac_cv_prog_CC
4496 if test -n "$CC"; then
4497 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4498 $as_echo "$CC" >&6; }
4499 else
4500 { $as_echo "$as_me:$LINENO: result: no" >&5
4501 $as_echo "no" >&6; }
4502 fi
4505 fi
4506 if test -z "$ac_cv_prog_CC"; then
4507 ac_ct_CC=$CC
4508 # Extract the first word of "gcc", so it can be a program name with args.
4509 set dummy gcc; ac_word=$2
4510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -n "$ac_ct_CC"; then
4516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_ac_ct_CC="gcc"
4526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4533 fi
4534 fi
4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4536 if test -n "$ac_ct_CC"; then
4537 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4538 $as_echo "$ac_ct_CC" >&6; }
4539 else
4540 { $as_echo "$as_me:$LINENO: result: no" >&5
4541 $as_echo "no" >&6; }
4542 fi
4544 if test "x$ac_ct_CC" = x; then
4545 CC=""
4546 else
4547 case $cross_compiling:$ac_tool_warned in
4548 yes:)
4549 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4551 ac_tool_warned=yes ;;
4552 esac
4553 CC=$ac_ct_CC
4554 fi
4555 else
4556 CC="$ac_cv_prog_CC"
4557 fi
4559 if test -z "$CC"; then
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}cc; ac_word=$2
4563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}cc"
4579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582 done
4583 done
4584 IFS=$as_save_IFS
4586 fi
4587 fi
4588 CC=$ac_cv_prog_CC
4589 if test -n "$CC"; then
4590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4592 else
4593 { $as_echo "$as_me:$LINENO: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4598 fi
4599 fi
4600 if test -z "$CC"; then
4601 # Extract the first word of "cc", so it can be a program name with args.
4602 set dummy cc; ac_word=$2
4603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_CC+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$CC"; then
4609 ac_cv_prog_CC="$CC" # Let the user override the test.
4610 else
4611 ac_prog_rejected=no
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4620 ac_prog_rejected=yes
4621 continue
4622 fi
4623 ac_cv_prog_CC="cc"
4624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4631 if test $ac_prog_rejected = yes; then
4632 # We found a bogon in the path, so make sure we never use it.
4633 set dummy $ac_cv_prog_CC
4634 shift
4635 if test $# != 0; then
4636 # We chose a different compiler from the bogus one.
4637 # However, it has the same basename, so the bogon will be chosen
4638 # first if we set CC to just the basename; use the full file name.
4639 shift
4640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4641 fi
4642 fi
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4649 else
4650 { $as_echo "$as_me:$LINENO: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4655 fi
4656 if test -z "$CC"; then
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in cl.exe
4659 do
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4685 fi
4686 fi
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4691 else
4692 { $as_echo "$as_me:$LINENO: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4697 test -n "$CC" && break
4698 done
4699 fi
4700 if test -z "$CC"; then
4701 ac_ct_CC=$CC
4702 for ac_prog in cl.exe
4703 do
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$ac_ct_CC"; then
4712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_CC="$ac_prog"
4722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4729 fi
4730 fi
4731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732 if test -n "$ac_ct_CC"; then
4733 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4734 $as_echo "$ac_ct_CC" >&6; }
4735 else
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4741 test -n "$ac_ct_CC" && break
4742 done
4744 if test "x$ac_ct_CC" = x; then
4745 CC=""
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 CC=$ac_ct_CC
4754 fi
4755 fi
4757 fi
4760 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4762 { { $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: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 OBJC=$ac_ct_OBJC
5359 fi
5360 fi
5362 # Provide some information about the compiler.
5363 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5364 set X $ac_compile
5365 ac_compiler=$2
5366 { (ac_try="$ac_compiler --version >&5"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373 (eval "$ac_compiler --version >&5") 2>&5
5374 ac_status=$?
5375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }
5377 { (ac_try="$ac_compiler -v >&5"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383 $as_echo "$ac_try_echo") >&5
5384 (eval "$ac_compiler -v >&5") 2>&5
5385 ac_status=$?
5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }
5388 { (ac_try="$ac_compiler -V >&5"
5389 case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392 esac
5393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5394 $as_echo "$ac_try_echo") >&5
5395 (eval "$ac_compiler -V >&5") 2>&5
5396 ac_status=$?
5397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5400 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5401 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5402 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5403 $as_echo_n "(cached) " >&6
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5412 int
5413 main ()
5414 {
5415 #ifndef __GNUC__
5416 choke me
5417 #endif
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5425 case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428 esac
5429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5430 $as_echo "$ac_try_echo") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_objc_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5441 ac_compiler_gnu=yes
5442 else
5443 $as_echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 ac_compiler_gnu=no
5447 fi
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5452 fi
5453 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5454 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5455 if test $ac_compiler_gnu = yes; then
5456 GOBJC=yes
5457 else
5458 GOBJC=
5459 fi
5460 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5461 ac_save_OBJCFLAGS=$OBJCFLAGS
5462 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5463 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5464 if test "${ac_cv_prog_objc_g+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 ac_save_objc_werror_flag=$ac_objc_werror_flag
5468 ac_objc_werror_flag=yes
5469 ac_cv_prog_objc_g=no
5470 OBJCFLAGS="-g"
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 int
5479 main ()
5480 {
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_objc_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504 ac_cv_prog_objc_g=yes
5505 else
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 OBJCFLAGS=""
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5517 int
5518 main ()
5519 {
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532 $as_echo "$ac_try_echo") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_objc_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 :
5544 else
5545 $as_echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_objc_werror_flag=$ac_save_objc_werror_flag
5549 OBJCFLAGS="-g"
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5557 int
5558 main ()
5559 {
5561 ;
5562 return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572 $as_echo "$ac_try_echo") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_objc_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_prog_objc_g=yes
5584 else
5585 $as_echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5589 fi
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 ac_objc_werror_flag=$ac_save_objc_werror_flag
5599 fi
5600 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5601 $as_echo "$ac_cv_prog_objc_g" >&6; }
5602 if test "$ac_test_OBJCFLAGS" = set; then
5603 OBJCFLAGS=$ac_save_OBJCFLAGS
5604 elif test $ac_cv_prog_objc_g = yes; then
5605 if test "$GOBJC" = yes; then
5606 OBJCFLAGS="-g -O2"
5607 else
5608 OBJCFLAGS="-g"
5609 fi
5610 else
5611 if test "$GOBJC" = yes; then
5612 OBJCFLAGS="-O2"
5613 else
5614 OBJCFLAGS=
5615 fi
5616 fi
5617 ac_ext=c
5618 ac_cpp='$CPP $CPPFLAGS'
5619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5625 if test "${ac_cv_path_SED+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5629 for ac_i in 1 2 3 4 5 6 7; do
5630 ac_script="$ac_script$as_nl$ac_script"
5631 done
5632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5633 $as_unset ac_script || ac_script=
5634 if test -z "$SED"; then
5635 ac_path_SED_found=false
5636 # Loop through the user's path and test for each of PROGNAME-LIST
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_prog in sed gsed; do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5646 # Check for GNU ac_path_SED and select it if it is found.
5647 # Check for GNU $ac_path_SED
5648 case `"$ac_path_SED" --version 2>&1` in
5649 *GNU*)
5650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5651 *)
5652 ac_count=0
5653 $as_echo_n 0123456789 >"conftest.in"
5654 while :
5655 do
5656 cat "conftest.in" "conftest.in" >"conftest.tmp"
5657 mv "conftest.tmp" "conftest.in"
5658 cp "conftest.in" "conftest.nl"
5659 $as_echo '' >> "conftest.nl"
5660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5662 ac_count=`expr $ac_count + 1`
5663 if test $ac_count -gt ${ac_path_SED_max-0}; then
5664 # Best one so far, save it but keep looking for a better one
5665 ac_cv_path_SED="$ac_path_SED"
5666 ac_path_SED_max=$ac_count
5667 fi
5668 # 10*(2^10) chars as input seems more than enough
5669 test $ac_count -gt 10 && break
5670 done
5671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5672 esac
5674 $ac_path_SED_found && break 3
5675 done
5676 done
5677 done
5678 IFS=$as_save_IFS
5679 if test -z "$ac_cv_path_SED"; then
5680 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5681 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5682 { (exit 1); exit 1; }; }
5683 fi
5684 else
5685 ac_cv_path_SED=$SED
5686 fi
5688 fi
5689 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5690 $as_echo "$ac_cv_path_SED" >&6; }
5691 SED="$ac_cv_path_SED"
5692 rm -f conftest.sed
5694 # By default we simply use the C compiler to build assembly code.
5696 test "${CCAS+set}" = set || CCAS=$CC
5697 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5701 ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5707 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5708 # On Suns, sometimes $CPP names a directory.
5709 if test -n "$CPP" && test -d "$CPP"; then
5710 CPP=
5711 fi
5712 if test -z "$CPP"; then
5713 if test "${ac_cv_prog_CPP+set}" = set; then
5714 $as_echo_n "(cached) " >&6
5715 else
5716 # Double quotes because CPP needs to be expanded
5717 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5718 do
5719 ac_preproc_ok=false
5720 for ac_c_preproc_warn_flag in '' yes
5721 do
5722 # Use a header file that comes with gcc, so configuring glibc
5723 # with a fresh cross-compiler works.
5724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725 # <limits.h> exists even on freestanding compilers.
5726 # On the NeXT, cc -E runs the code through the compiler's parser,
5727 # not just through cpp. "Syntax error" is here to catch this case.
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #ifdef __STDC__
5735 # include <limits.h>
5736 #else
5737 # include <assert.h>
5738 #endif
5739 Syntax error
5740 _ACEOF
5741 if { (ac_try="$ac_cpp conftest.$ac_ext"
5742 case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745 esac
5746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5747 $as_echo "$ac_try_echo") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5756 test ! -s conftest.err
5757 }; then
5758 :
5759 else
5760 $as_echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 # Broken: fails on valid input.
5764 continue
5765 fi
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <ac_nonexistent.h>
5778 _ACEOF
5779 if { (ac_try="$ac_cpp conftest.$ac_ext"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785 $as_echo "$ac_try_echo") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 }; then
5796 # Broken: success on invalid input.
5797 continue
5798 else
5799 $as_echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 # Passes both tests.
5803 ac_preproc_ok=:
5804 break
5805 fi
5807 rm -f conftest.err conftest.$ac_ext
5809 done
5810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811 rm -f conftest.err conftest.$ac_ext
5812 if $ac_preproc_ok; then
5813 break
5814 fi
5816 done
5817 ac_cv_prog_CPP=$CPP
5819 fi
5820 CPP=$ac_cv_prog_CPP
5821 else
5822 ac_cv_prog_CPP=$CPP
5823 fi
5824 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5825 $as_echo "$CPP" >&6; }
5826 ac_preproc_ok=false
5827 for ac_c_preproc_warn_flag in '' yes
5828 do
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #ifdef __STDC__
5842 # include <limits.h>
5843 #else
5844 # include <assert.h>
5845 #endif
5846 Syntax error
5847 _ACEOF
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } >/dev/null && {
5862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 }; then
5865 :
5866 else
5867 $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 # Broken: fails on valid input.
5871 continue
5872 fi
5874 rm -f conftest.err conftest.$ac_ext
5876 # OK, works on sane cases. Now check whether nonexistent headers
5877 # can be detected and how.
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <ac_nonexistent.h>
5885 _ACEOF
5886 if { (ac_try="$ac_cpp conftest.$ac_ext"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null && {
5900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 }; then
5903 # Broken: success on invalid input.
5904 continue
5905 else
5906 $as_echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 # Passes both tests.
5910 ac_preproc_ok=:
5911 break
5912 fi
5914 rm -f conftest.err conftest.$ac_ext
5916 done
5917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918 rm -f conftest.err conftest.$ac_ext
5919 if $ac_preproc_ok; then
5920 :
5921 else
5922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5925 See \`config.log' for more details." >&5
5926 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5927 See \`config.log' for more details." >&2;}
5928 { (exit 1); exit 1; }; }; }
5929 fi
5931 ac_ext=c
5932 ac_cpp='$CPP $CPPFLAGS'
5933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5940 if test "${ac_cv_path_GREP+set}" = set; then
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if test -z "$GREP"; then
5944 ac_path_GREP_found=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_prog in grep ggrep; do
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5955 # Check for GNU ac_path_GREP and select it if it is found.
5956 # Check for GNU $ac_path_GREP
5957 case `"$ac_path_GREP" --version 2>&1` in
5958 *GNU*)
5959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5960 *)
5961 ac_count=0
5962 $as_echo_n 0123456789 >"conftest.in"
5963 while :
5964 do
5965 cat "conftest.in" "conftest.in" >"conftest.tmp"
5966 mv "conftest.tmp" "conftest.in"
5967 cp "conftest.in" "conftest.nl"
5968 $as_echo 'GREP' >> "conftest.nl"
5969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5971 ac_count=`expr $ac_count + 1`
5972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5973 # Best one so far, save it but keep looking for a better one
5974 ac_cv_path_GREP="$ac_path_GREP"
5975 ac_path_GREP_max=$ac_count
5976 fi
5977 # 10*(2^10) chars as input seems more than enough
5978 test $ac_count -gt 10 && break
5979 done
5980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5981 esac
5983 $ac_path_GREP_found && break 3
5984 done
5985 done
5986 done
5987 IFS=$as_save_IFS
5988 if test -z "$ac_cv_path_GREP"; then
5989 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5990 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5991 { (exit 1); exit 1; }; }
5992 fi
5993 else
5994 ac_cv_path_GREP=$GREP
5995 fi
5997 fi
5998 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5999 $as_echo "$ac_cv_path_GREP" >&6; }
6000 GREP="$ac_cv_path_GREP"
6003 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6004 $as_echo_n "checking for egrep... " >&6; }
6005 if test "${ac_cv_path_EGREP+set}" = set; then
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6009 then ac_cv_path_EGREP="$GREP -E"
6010 else
6011 if test -z "$EGREP"; then
6012 ac_path_EGREP_found=false
6013 # Loop through the user's path and test for each of PROGNAME-LIST
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6016 do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_prog in egrep; do
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6022 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6023 # Check for GNU ac_path_EGREP and select it if it is found.
6024 # Check for GNU $ac_path_EGREP
6025 case `"$ac_path_EGREP" --version 2>&1` in
6026 *GNU*)
6027 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6028 *)
6029 ac_count=0
6030 $as_echo_n 0123456789 >"conftest.in"
6031 while :
6032 do
6033 cat "conftest.in" "conftest.in" >"conftest.tmp"
6034 mv "conftest.tmp" "conftest.in"
6035 cp "conftest.in" "conftest.nl"
6036 $as_echo 'EGREP' >> "conftest.nl"
6037 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6039 ac_count=`expr $ac_count + 1`
6040 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6041 # Best one so far, save it but keep looking for a better one
6042 ac_cv_path_EGREP="$ac_path_EGREP"
6043 ac_path_EGREP_max=$ac_count
6044 fi
6045 # 10*(2^10) chars as input seems more than enough
6046 test $ac_count -gt 10 && break
6047 done
6048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6049 esac
6051 $ac_path_EGREP_found && break 3
6052 done
6053 done
6054 done
6055 IFS=$as_save_IFS
6056 if test -z "$ac_cv_path_EGREP"; then
6057 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6058 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6059 { (exit 1); exit 1; }; }
6060 fi
6061 else
6062 ac_cv_path_EGREP=$EGREP
6063 fi
6065 fi
6066 fi
6067 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6068 $as_echo "$ac_cv_path_EGREP" >&6; }
6069 EGREP="$ac_cv_path_EGREP"
6072 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6073 $as_echo_n "checking for ANSI C header files... " >&6; }
6074 if test "${ac_cv_header_stdc+set}" = set; then
6075 $as_echo_n "(cached) " >&6
6076 else
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <stdlib.h>
6084 #include <stdarg.h>
6085 #include <string.h>
6086 #include <float.h>
6088 int
6089 main ()
6090 {
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_cv_header_stdc=yes
6115 else
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_header_stdc=no
6120 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 if test $ac_cv_header_stdc = yes; then
6125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <string.h>
6134 _ACEOF
6135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 $EGREP "memchr" >/dev/null 2>&1; then
6137 :
6138 else
6139 ac_cv_header_stdc=no
6140 fi
6141 rm -f conftest*
6143 fi
6145 if test $ac_cv_header_stdc = yes; then
6146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <stdlib.h>
6155 _ACEOF
6156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6157 $EGREP "free" >/dev/null 2>&1; then
6158 :
6159 else
6160 ac_cv_header_stdc=no
6161 fi
6162 rm -f conftest*
6164 fi
6166 if test $ac_cv_header_stdc = yes; then
6167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6168 if test "$cross_compiling" = yes; then
6169 :
6170 else
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 #include <ctype.h>
6178 #include <stdlib.h>
6179 #if ((' ' & 0x0FF) == 0x020)
6180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6182 #else
6183 # define ISLOWER(c) \
6184 (('a' <= (c) && (c) <= 'i') \
6185 || ('j' <= (c) && (c) <= 'r') \
6186 || ('s' <= (c) && (c) <= 'z'))
6187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6188 #endif
6190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6191 int
6192 main ()
6193 {
6194 int i;
6195 for (i = 0; i < 256; i++)
6196 if (XOR (islower (i), ISLOWER (i))
6197 || toupper (i) != TOUPPER (i))
6198 return 2;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest$ac_exeext
6203 if { (ac_try="$ac_link"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_link") 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6214 { (case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_try") 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 :
6225 else
6226 $as_echo "$as_me: program exited with status $ac_status" >&5
6227 $as_echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ( exit $ac_status )
6231 ac_cv_header_stdc=no
6232 fi
6233 rm -rf conftest.dSYM
6234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6235 fi
6238 fi
6239 fi
6240 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6241 $as_echo "$ac_cv_header_stdc" >&6; }
6242 if test $ac_cv_header_stdc = yes; then
6244 cat >>confdefs.h <<\_ACEOF
6245 #define STDC_HEADERS 1
6246 _ACEOF
6248 fi
6250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6261 inttypes.h stdint.h unistd.h
6262 do
6263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 $as_echo_n "checking for $ac_header... " >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6277 #include <$ac_header>
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (ac_try="$ac_compile"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6286 $as_echo "$ac_try_echo") >&5
6287 (eval "$ac_compile") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest.$ac_objext; then
6297 eval "$as_ac_Header=yes"
6298 else
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 eval "$as_ac_Header=no"
6303 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 fi
6307 ac_res=`eval 'as_val=${'$as_ac_Header'}
6308 $as_echo "$as_val"'`
6309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311 as_val=`eval 'as_val=${'$as_ac_Header'}
6312 $as_echo "$as_val"'`
6313 if test "x$as_val" = x""yes; then
6314 cat >>confdefs.h <<_ACEOF
6315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6316 _ACEOF
6318 fi
6320 done
6323 # The cast to long int works around a bug in the HP C Compiler
6324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6326 # This bug is HP SR number 8606223364.
6327 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6328 $as_echo_n "checking size of void *... " >&6; }
6329 if test "${ac_cv_sizeof_void_p+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test "$cross_compiling" = yes; then
6333 # Depending upon the size, compute the lo and hi bounds.
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6341 int
6342 main ()
6343 {
6344 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6345 test_array [0] = 0
6347 ;
6348 return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6358 $as_echo "$ac_try_echo") >&5
6359 (eval "$ac_compile") 2>conftest.er1
6360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && {
6366 test -z "$ac_c_werror_flag" ||
6367 test ! -s conftest.err
6368 } && test -s conftest.$ac_objext; then
6369 ac_lo=0 ac_mid=0
6370 while :; do
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 $ac_includes_default
6378 int
6379 main ()
6380 {
6381 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6382 test_array [0] = 0
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6395 $as_echo "$ac_try_echo") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_objext; then
6406 ac_hi=$ac_mid; break
6407 else
6408 $as_echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_lo=`expr $ac_mid + 1`
6412 if test $ac_lo -le $ac_mid; then
6413 ac_lo= ac_hi=
6414 break
6415 fi
6416 ac_mid=`expr 2 '*' $ac_mid + 1`
6417 fi
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 done
6421 else
6422 $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6432 int
6433 main ()
6434 {
6435 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6436 test_array [0] = 0
6438 ;
6439 return 0;
6440 }
6441 _ACEOF
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450 (eval "$ac_compile") 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 } && test -s conftest.$ac_objext; then
6460 ac_hi=-1 ac_mid=-1
6461 while :; do
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6469 int
6470 main ()
6471 {
6472 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6473 test_array [0] = 0
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_lo=$ac_mid; break
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_hi=`expr '(' $ac_mid ')' - 1`
6503 if test $ac_mid -le $ac_hi; then
6504 ac_lo= ac_hi=
6505 break
6506 fi
6507 ac_mid=`expr 2 '*' $ac_mid`
6508 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 done
6512 else
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 ac_lo= ac_hi=
6517 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 # Binary search between lo and hi bounds.
6524 while test "x$ac_lo" != "x$ac_hi"; do
6525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 int
6534 main ()
6535 {
6536 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6537 test_array [0] = 0
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 rm -f conftest.$ac_objext
6544 if { (ac_try="$ac_compile"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6550 $as_echo "$ac_try_echo") >&5
6551 (eval "$ac_compile") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
6561 ac_hi=$ac_mid
6562 else
6563 $as_echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_lo=`expr '(' $ac_mid ')' + 1`
6567 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 done
6571 case $ac_lo in
6572 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6573 '') if test "$ac_cv_type_void_p" = yes; then
6574 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6576 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6577 See \`config.log' for more details." >&5
6578 $as_echo "$as_me: error: cannot compute sizeof (void *)
6579 See \`config.log' for more details." >&2;}
6580 { (exit 77); exit 77; }; }; }
6581 else
6582 ac_cv_sizeof_void_p=0
6583 fi ;;
6584 esac
6585 else
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6593 static long int longval () { return (long int) (sizeof (void *)); }
6594 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6595 #include <stdio.h>
6596 #include <stdlib.h>
6597 int
6598 main ()
6599 {
6601 FILE *f = fopen ("conftest.val", "w");
6602 if (! f)
6603 return 1;
6604 if (((long int) (sizeof (void *))) < 0)
6605 {
6606 long int i = longval ();
6607 if (i != ((long int) (sizeof (void *))))
6608 return 1;
6609 fprintf (f, "%ld", i);
6610 }
6611 else
6612 {
6613 unsigned long int i = ulongval ();
6614 if (i != ((long int) (sizeof (void *))))
6615 return 1;
6616 fprintf (f, "%lu", i);
6617 }
6618 /* Do not output a trailing newline, as this causes \r\n confusion
6619 on some platforms. */
6620 return ferror (f) || fclose (f) != 0;
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest$ac_exeext
6627 if { (ac_try="$ac_link"
6628 case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631 esac
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_link") 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638 { (case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_try") 2>&5
6645 ac_status=$?
6646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_sizeof_void_p=`cat conftest.val`
6649 else
6650 $as_echo "$as_me: program exited with status $ac_status" >&5
6651 $as_echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ( exit $ac_status )
6655 if test "$ac_cv_type_void_p" = yes; then
6656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6658 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6659 See \`config.log' for more details." >&5
6660 $as_echo "$as_me: error: cannot compute sizeof (void *)
6661 See \`config.log' for more details." >&2;}
6662 { (exit 77); exit 77; }; }; }
6663 else
6664 ac_cv_sizeof_void_p=0
6665 fi
6666 fi
6667 rm -rf conftest.dSYM
6668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 fi
6670 rm -f conftest.val
6671 fi
6672 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6673 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6677 cat >>confdefs.h <<_ACEOF
6678 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6679 _ACEOF
6682 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6683 $as_echo_n "checking for ANSI C header files... " >&6; }
6684 if test "${ac_cv_header_stdc+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <stdlib.h>
6694 #include <stdarg.h>
6695 #include <string.h>
6696 #include <float.h>
6698 int
6699 main ()
6700 {
6702 ;
6703 return 0;
6704 }
6705 _ACEOF
6706 rm -f conftest.$ac_objext
6707 if { (ac_try="$ac_compile"
6708 case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711 esac
6712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6713 $as_echo "$ac_try_echo") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_header_stdc=yes
6725 else
6726 $as_echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_header_stdc=no
6730 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 if test $ac_cv_header_stdc = yes; then
6735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <string.h>
6744 _ACEOF
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 $EGREP "memchr" >/dev/null 2>&1; then
6747 :
6748 else
6749 ac_cv_header_stdc=no
6750 fi
6751 rm -f conftest*
6753 fi
6755 if test $ac_cv_header_stdc = yes; then
6756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 #include <stdlib.h>
6765 _ACEOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 $EGREP "free" >/dev/null 2>&1; then
6768 :
6769 else
6770 ac_cv_header_stdc=no
6771 fi
6772 rm -f conftest*
6774 fi
6776 if test $ac_cv_header_stdc = yes; then
6777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6778 if test "$cross_compiling" = yes; then
6779 :
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <ctype.h>
6788 #include <stdlib.h>
6789 #if ((' ' & 0x0FF) == 0x020)
6790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6792 #else
6793 # define ISLOWER(c) \
6794 (('a' <= (c) && (c) <= 'i') \
6795 || ('j' <= (c) && (c) <= 'r') \
6796 || ('s' <= (c) && (c) <= 'z'))
6797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6798 #endif
6800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6801 int
6802 main ()
6803 {
6804 int i;
6805 for (i = 0; i < 256; i++)
6806 if (XOR (islower (i), ISLOWER (i))
6807 || toupper (i) != TOUPPER (i))
6808 return 2;
6809 return 0;
6810 }
6811 _ACEOF
6812 rm -f conftest$ac_exeext
6813 if { (ac_try="$ac_link"
6814 case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817 esac
6818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6819 $as_echo "$ac_try_echo") >&5
6820 (eval "$ac_link") 2>&5
6821 ac_status=$?
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6824 { (case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6829 $as_echo "$ac_try_echo") >&5
6830 (eval "$ac_try") 2>&5
6831 ac_status=$?
6832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 :
6835 else
6836 $as_echo "$as_me: program exited with status $ac_status" >&5
6837 $as_echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ( exit $ac_status )
6841 ac_cv_header_stdc=no
6842 fi
6843 rm -rf conftest.dSYM
6844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6845 fi
6848 fi
6849 fi
6850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6851 $as_echo "$ac_cv_header_stdc" >&6; }
6852 if test $ac_cv_header_stdc = yes; then
6854 cat >>confdefs.h <<\_ACEOF
6855 #define STDC_HEADERS 1
6856 _ACEOF
6858 fi
6860 # Make sure we can run config.sub.
6861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6862 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6863 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6864 { (exit 1); exit 1; }; }
6866 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6867 $as_echo_n "checking build system type... " >&6; }
6868 if test "${ac_cv_build+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6870 else
6871 ac_build_alias=$build_alias
6872 test "x$ac_build_alias" = x &&
6873 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6874 test "x$ac_build_alias" = x &&
6875 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6876 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6877 { (exit 1); exit 1; }; }
6878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6879 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6880 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6881 { (exit 1); exit 1; }; }
6883 fi
6884 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6885 $as_echo "$ac_cv_build" >&6; }
6886 case $ac_cv_build in
6887 *-*-*) ;;
6888 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6889 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6890 { (exit 1); exit 1; }; };;
6891 esac
6892 build=$ac_cv_build
6893 ac_save_IFS=$IFS; IFS='-'
6894 set x $ac_cv_build
6895 shift
6896 build_cpu=$1
6897 build_vendor=$2
6898 shift; shift
6899 # Remember, the first character of IFS is used to create $*,
6900 # except with old shells:
6901 build_os=$*
6902 IFS=$ac_save_IFS
6903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6906 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6907 $as_echo_n "checking host system type... " >&6; }
6908 if test "${ac_cv_host+set}" = set; then
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test "x$host_alias" = x; then
6912 ac_cv_host=$ac_cv_build
6913 else
6914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6915 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6916 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6917 { (exit 1); exit 1; }; }
6918 fi
6920 fi
6921 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6922 $as_echo "$ac_cv_host" >&6; }
6923 case $ac_cv_host in
6924 *-*-*) ;;
6925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6926 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6927 { (exit 1); exit 1; }; };;
6928 esac
6929 host=$ac_cv_host
6930 ac_save_IFS=$IFS; IFS='-'
6931 set x $ac_cv_host
6932 shift
6933 host_cpu=$1
6934 host_vendor=$2
6935 shift; shift
6936 # Remember, the first character of IFS is used to create $*,
6937 # except with old shells:
6938 host_os=$*
6939 IFS=$ac_save_IFS
6940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6945 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6947 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6948 $as_echo_n "checking dependency style of $depcc... " >&6; }
6949 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6953 # We make a subdir and do the tests there. Otherwise we can end up
6954 # making bogus files that we don't know about and never remove. For
6955 # instance it was reported that on HP-UX the gcc test will end up
6956 # making a dummy file named `D' -- because `-MD' means `put the output
6957 # in D'.
6958 mkdir conftest.dir
6959 # Copy depcomp to subdir because otherwise we won't find it if we're
6960 # using a relative directory.
6961 cp "$am_depcomp" conftest.dir
6962 cd conftest.dir
6963 # We will build objects and dependencies in a subdirectory because
6964 # it helps to detect inapplicable dependency modes. For instance
6965 # both Tru64's cc and ICC support -MD to output dependencies as a
6966 # side effect of compilation, but ICC will put the dependencies in
6967 # the current directory while Tru64 will put them in the object
6968 # directory.
6969 mkdir sub
6971 am_cv_OBJC_dependencies_compiler_type=none
6972 if test "$am_compiler_list" = ""; then
6973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6974 fi
6975 for depmode in $am_compiler_list; do
6976 # Setup a source with many dependencies, because some compilers
6977 # like to wrap large dependency lists on column 80 (with \), and
6978 # we should not choose a depcomp mode which is confused by this.
6979 #
6980 # We need to recreate these files for each test, as the compiler may
6981 # overwrite some of them when testing with obscure command lines.
6982 # This happens at least with the AIX C compiler.
6983 : > sub/conftest.c
6984 for i in 1 2 3 4 5 6; do
6985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6987 # Solaris 8's {/usr,}/bin/sh.
6988 touch sub/conftst$i.h
6989 done
6990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6992 case $depmode in
6993 nosideeffect)
6994 # after this tag, mechanisms are not by side-effect, so they'll
6995 # only be used when explicitly requested
6996 if test "x$enable_dependency_tracking" = xyes; then
6997 continue
6998 else
6999 break
7000 fi
7001 ;;
7002 none) break ;;
7003 esac
7004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7005 # mode. It turns out that the SunPro C++ compiler does not properly
7006 # handle `-M -o', and we need to detect this.
7007 if depmode=$depmode \
7008 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7010 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7011 >/dev/null 2>conftest.err &&
7012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7013 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7015 # icc doesn't choke on unknown options, it will just issue warnings
7016 # or remarks (even with -Werror). So we grep stderr for any message
7017 # that says an option was ignored or not supported.
7018 # When given -MP, icc 7.0 and 7.1 complain thusly:
7019 # icc: Command line warning: ignoring option '-M'; no argument required
7020 # The diagnosis changed in icc 8.0:
7021 # icc: Command line remark: option '-MP' not supported
7022 if (grep 'ignoring option' conftest.err ||
7023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7024 am_cv_OBJC_dependencies_compiler_type=$depmode
7025 break
7026 fi
7027 fi
7028 done
7030 cd ..
7031 rm -rf conftest.dir
7032 else
7033 am_cv_OBJC_dependencies_compiler_type=none
7034 fi
7036 fi
7037 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7038 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7039 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7043 if
7044 test "x$enable_dependency_tracking" != xno \
7045 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7046 am__fastdepOBJC_TRUE=
7047 am__fastdepOBJC_FALSE='#'
7048 else
7049 am__fastdepOBJC_TRUE='#'
7050 am__fastdepOBJC_FALSE=
7051 fi
7055 # Extract the first word of "pod2man", so it can be a program name with args.
7056 set dummy pod2man; ac_word=$2
7057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_path_POD2MAN+set}" = set; then
7060 $as_echo_n "(cached) " >&6
7061 else
7062 case $POD2MAN in
7063 [\\/]* | ?:[\\/]*)
7064 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7065 ;;
7066 *)
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7082 ;;
7083 esac
7084 fi
7085 POD2MAN=$ac_cv_path_POD2MAN
7086 if test -n "$POD2MAN"; then
7087 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7088 $as_echo "$POD2MAN" >&6; }
7089 else
7090 { $as_echo "$as_me:$LINENO: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7095 # Extract the first word of "pod2html", so it can be a program name with args.
7096 set dummy pod2html; ac_word=$2
7097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_path_POD2HTML+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7101 else
7102 case $POD2HTML in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7122 ;;
7123 esac
7124 fi
7125 POD2HTML=$ac_cv_path_POD2HTML
7126 if test -n "$POD2HTML"; then
7127 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7128 $as_echo "$POD2HTML" >&6; }
7129 else
7130 { $as_echo "$as_me:$LINENO: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7137 # Check whether --enable-strict-warn was given.
7138 if test "${enable_strict_warn+set}" = set; then
7139 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7140 enable_strictwarn=yes
7141 fi
7142 fi
7144 # Check whether --enable-translator was given.
7145 if test "${enable_translator+set}" = set; then
7146 enableval=$enable_translator; true
7147 else
7148 enable_translator=yes
7149 fi
7151 # Check whether --enable-optimized was given.
7152 if test "${enable_optimized+set}" = set; then
7153 enableval=$enable_optimized; true
7154 else
7155 enable_optimized=yes
7156 fi
7158 # Check whether --enable-shared was given.
7159 if test "${enable_shared+set}" = set; then
7160 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
7161 else
7162 enable_shared=cond
7163 fi
7165 # Check whether --enable-profiled was given.
7166 if test "${enable_profiled+set}" = set; then
7167 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7168 enable_profiled=yes;
7169 fi
7170 fi
7172 # Check whether --enable-trace was given.
7173 if test "${enable_trace+set}" = set; then
7174 enableval=$enable_trace; if test "$enableval" == "yes"; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define ENABLE_TRACE_IO 1
7178 _ACEOF
7180 fi
7181 fi
7183 # Check whether --enable-watch was given.
7184 if test "${enable_watch+set}" = set; then
7185 enableval=$enable_watch; if test "$enableval" == "yes"; then
7187 cat >>confdefs.h <<\_ACEOF
7188 #define ENABLE_WATCH 1
7189 _ACEOF
7191 fi
7192 fi
7194 # Check whether --enable-sh4stats was given.
7195 if test "${enable_sh4stats+set}" = set; then
7196 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7198 cat >>confdefs.h <<\_ACEOF
7199 #define ENABLE_SH4STATS 1
7200 _ACEOF
7202 fi
7203 fi
7206 # Check whether --with-osmesa was given.
7207 if test "${with_osmesa+set}" = set; then
7208 withval=$with_osmesa;
7209 else
7210 with_osmesa=no
7211 fi
7214 # Check whether --with-gtk was given.
7215 if test "${with_gtk+set}" = set; then
7216 withval=$with_gtk; with_gtk=yes
7217 else
7218 with_gtk=x11
7219 fi
7222 # Check whether --with-esd was given.
7223 if test "${with_esd+set}" = set; then
7224 withval=$with_esd;
7225 fi
7228 # Check whether --with-pulse was given.
7229 if test "${with_pulse+set}" = set; then
7230 withval=$with_pulse;
7231 fi
7234 # Check whether --with-sdl was given.
7235 if test "${with_sdl+set}" = set; then
7236 withval=$with_sdl;
7237 fi
7244 ac_ext=m
7245 ac_cpp='$OBJCPP $CPPFLAGS'
7246 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7249 if test -n "$ac_tool_prefix"; then
7250 for ac_prog in gcc objcc objc cc CC
7251 do
7252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if test "${ac_cv_prog_OBJC+set}" = set; then
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$OBJC"; then
7260 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7277 fi
7278 fi
7279 OBJC=$ac_cv_prog_OBJC
7280 if test -n "$OBJC"; then
7281 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7282 $as_echo "$OBJC" >&6; }
7283 else
7284 { $as_echo "$as_me:$LINENO: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7289 test -n "$OBJC" && break
7290 done
7291 fi
7292 if test -z "$OBJC"; then
7293 ac_ct_OBJC=$OBJC
7294 for ac_prog in gcc objcc objc cc CC
7295 do
7296 # Extract the first word of "$ac_prog", so it can be a program name with args.
7297 set dummy $ac_prog; ac_word=$2
7298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7301 $as_echo_n "(cached) " >&6
7302 else
7303 if test -n "$ac_ct_OBJC"; then
7304 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7321 fi
7322 fi
7323 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7324 if test -n "$ac_ct_OBJC"; then
7325 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7326 $as_echo "$ac_ct_OBJC" >&6; }
7327 else
7328 { $as_echo "$as_me:$LINENO: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7333 test -n "$ac_ct_OBJC" && break
7334 done
7336 if test "x$ac_ct_OBJC" = x; then
7337 OBJC="gcc"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 OBJC=$ac_ct_OBJC
7346 fi
7347 fi
7349 # Provide some information about the compiler.
7350 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7351 set X $ac_compile
7352 ac_compiler=$2
7353 { (ac_try="$ac_compiler --version >&5"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_compiler --version >&5") 2>&5
7361 ac_status=$?
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }
7364 { (ac_try="$ac_compiler -v >&5"
7365 case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_compiler -v >&5") 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }
7375 { (ac_try="$ac_compiler -V >&5"
7376 case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379 esac
7380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7381 $as_echo "$ac_try_echo") >&5
7382 (eval "$ac_compiler -V >&5") 2>&5
7383 ac_status=$?
7384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }
7387 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7388 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7389 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7399 int
7400 main ()
7401 {
7402 #ifndef __GNUC__
7403 choke me
7404 #endif
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_objc_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_compiler_gnu=yes
7429 else
7430 $as_echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 ac_compiler_gnu=no
7434 fi
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7439 fi
7440 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7441 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7442 if test $ac_compiler_gnu = yes; then
7443 GOBJC=yes
7444 else
7445 GOBJC=
7446 fi
7447 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7448 ac_save_OBJCFLAGS=$OBJCFLAGS
7449 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7450 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7451 if test "${ac_cv_prog_objc_g+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7453 else
7454 ac_save_objc_werror_flag=$ac_objc_werror_flag
7455 ac_objc_werror_flag=yes
7456 ac_cv_prog_objc_g=no
7457 OBJCFLAGS="-g"
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7465 int
7466 main ()
7467 {
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (ac_try="$ac_compile"
7475 case "(($ac_try" in
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7478 esac
7479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7480 $as_echo "$ac_try_echo") >&5
7481 (eval "$ac_compile") 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && {
7488 test -z "$ac_objc_werror_flag" ||
7489 test ! -s conftest.err
7490 } && test -s conftest.$ac_objext; then
7491 ac_cv_prog_objc_g=yes
7492 else
7493 $as_echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7496 OBJCFLAGS=""
7497 cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7504 int
7505 main ()
7506 {
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7519 $as_echo "$ac_try_echo") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7521 ac_status=$?
7522 grep -v '^ *+' conftest.er1 >conftest.err
7523 rm -f conftest.er1
7524 cat conftest.err >&5
7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_objc_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest.$ac_objext; then
7530 :
7531 else
7532 $as_echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_objc_werror_flag=$ac_save_objc_werror_flag
7536 OBJCFLAGS="-g"
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7544 int
7545 main ()
7546 {
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7559 $as_echo "$ac_try_echo") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_objc_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 ac_cv_prog_objc_g=yes
7571 else
7572 $as_echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7576 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 ac_objc_werror_flag=$ac_save_objc_werror_flag
7586 fi
7587 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7588 $as_echo "$ac_cv_prog_objc_g" >&6; }
7589 if test "$ac_test_OBJCFLAGS" = set; then
7590 OBJCFLAGS=$ac_save_OBJCFLAGS
7591 elif test $ac_cv_prog_objc_g = yes; then
7592 if test "$GOBJC" = yes; then
7593 OBJCFLAGS="-g -O2"
7594 else
7595 OBJCFLAGS="-g"
7596 fi
7597 else
7598 if test "$GOBJC" = yes; then
7599 OBJCFLAGS="-O2"
7600 else
7601 OBJCFLAGS=
7602 fi
7603 fi
7604 ac_ext=c
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7611 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7612 ac_ext=m
7613 ac_cpp='$OBJCPP $CPPFLAGS'
7614 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 @interface Foo @end
7624 int
7625 main ()
7626 {
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7634 case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637 esac
7638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7639 $as_echo "$ac_try_echo") >&5
7640 (eval "$ac_compile") 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } && {
7647 test -z "$ac_objc_werror_flag" ||
7648 test ! -s conftest.err
7649 } && test -s conftest.$ac_objext; then
7650 { $as_echo "$as_me:$LINENO: result: yes" >&5
7651 $as_echo "yes" >&6; }
7653 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7654 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7655 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7656 $as_echo_n "(cached) " >&6
7657 else
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 $ac_includes_default
7666 #include <Cocoa/Cocoa.h>
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7670 case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_objc_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 ac_cv_header_Cocoa_Cocoa_h=yes
7687 else
7688 $as_echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 ac_cv_header_Cocoa_Cocoa_h=no
7692 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 fi
7696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7697 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7698 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
7700 HAVE_COCOA='yes'
7701 APPLE_BUILD='yes'
7702 LIBS="$LIBS -framework AppKit -framework Carbon"
7703 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"
7704 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7705 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_COCOA 1
7709 _ACEOF
7712 cat >>confdefs.h <<\_ACEOF
7713 #define APPLE_BUILD 1
7714 _ACEOF
7716 if test "x$with_gtk" = "xx11"; then
7717 with_gtk=no
7718 fi
7720 fi
7725 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7726 $as_echo_n "checking OBJC version... " >&6; }
7727 if test -n "$OBJC"; then
7728 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7729 if test -n "$_GOBJC_VERSION"; then
7730 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7731 $as_echo "GCC" >&6; }
7732 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7733 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7734 else
7735 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7736 $as_echo "Unknown" >&6; }
7737 OBJCOPT="-O2"
7738 fi
7739 else
7740 { $as_echo "$as_me:$LINENO: result: None" >&5
7741 $as_echo "None" >&6; }
7743 fi
7746 else
7747 $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 { $as_echo "$as_me:$LINENO: result: No" >&5
7751 $as_echo "No" >&6; }
7753 fi
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7756 ac_ext=c
7757 ac_cpp='$CPP $CPPFLAGS'
7758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7767 GUI_COCOA_TRUE=
7768 GUI_COCOA_FALSE='#'
7769 else
7770 GUI_COCOA_TRUE='#'
7771 GUI_COCOA_FALSE=
7772 fi
7774 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7776 cat >>confdefs.h <<\_ACEOF
7777 #define OSX_BUNDLE 1
7778 _ACEOF
7780 fi
7782 CFLAGS="-g -fexceptions"
7783 OBJCFLAGS="-g -fexceptions"
7785 cat >>confdefs.h <<\_ACEOF
7786 #define HAVE_EXCEPTIONS 1
7787 _ACEOF
7790 STDCFLAG="-std=c99"
7792 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7793 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7794 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7795 $as_echo_n "checking CC version... " >&6; }
7796 if test -n "$_ICC_VERSION"; then
7797 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7798 $as_echo "ICC" >&6; }
7799 CCOPT="$CFLAGS -fast"
7800 CFLAGS="$CFLAGS -fno-strict-aliasing"
7801 elif test -n "$_GCC_VERSION"; then
7802 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7803 $as_echo "GCC" >&6; }
7804 CCOPT="-O2 -msse2 -mfpmath=sse"
7805 CFLAGS="$CFLAGS -fno-strict-aliasing"
7806 else
7807 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7808 $as_echo "Unknown" >&6; }
7809 CCOPT="$CFLAGS -O2"
7810 fi
7813 if test "x$enable_optimized" = "xyes"; then
7814 CFLAGS="$CFLAGS $CCOPT"
7815 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7816 if test "x$enable_profiled" != "xyes"; then
7817 CFLAGS="$CFLAGS -fomit-frame-pointer"
7818 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7819 fi
7820 else
7821 CFLAGS="$CFLAGS -g3"
7822 OBJCFLAGS="$OBJCFLAGS -g3"
7823 fi
7825 if test "x$enable_profiled" = "xyes"; then
7826 CFLAGS="$CFLAGS -pg"
7827 LDFLAGS="$LDFLAGS -pg";
7828 OBJCFLAGS="$OBJCFLAGS -pg";
7829 fi
7831 if test "x$enable_strictwarn" = "xyes"; then
7832 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7833 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7834 fi
7836 if test "x$enable_shared" != "xno"; then
7838 cat >>confdefs.h <<\_ACEOF
7839 #define ENABLE_SHARED 1
7840 _ACEOF
7842 if test "x$APPLE_BUILD" = "xyes"; then
7843 SOEXT="dylib"
7844 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
7845 else
7846 SOEXT="so"
7847 PLUGINLDFLAGS="-shared"
7848 fi
7849 PLUGINCFLAGS="-fPIC"
7851 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7852 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7853 $as_echo_n "checking for dlfcn.h... " >&6; }
7854 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7855 $as_echo_n "(cached) " >&6
7856 fi
7857 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7858 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7859 else
7860 # Is the header compilable?
7861 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7862 $as_echo_n "checking dlfcn.h usability... " >&6; }
7863 cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h. */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 $ac_includes_default
7870 #include <dlfcn.h>
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7879 $as_echo "$ac_try_echo") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.$ac_objext; then
7890 ac_header_compiler=yes
7891 else
7892 $as_echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_header_compiler=no
7896 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7900 $as_echo "$ac_header_compiler" >&6; }
7902 # Is the header present?
7903 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7904 $as_echo_n "checking dlfcn.h presence... " >&6; }
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <dlfcn.h>
7912 _ACEOF
7913 if { (ac_try="$ac_cpp conftest.$ac_ext"
7914 case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917 esac
7918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7919 $as_echo "$ac_try_echo") >&5
7920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null && {
7927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 }; then
7930 ac_header_preproc=yes
7931 else
7932 $as_echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_header_preproc=no
7936 fi
7938 rm -f conftest.err conftest.$ac_ext
7939 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 $as_echo "$ac_header_preproc" >&6; }
7942 # So? What about this header?
7943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7944 yes:no: )
7945 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7946 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7948 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7949 ac_header_preproc=yes
7950 ;;
7951 no:yes:* )
7952 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7953 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7954 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7955 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7956 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7957 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7958 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7959 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7960 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7961 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7962 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7963 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7965 ;;
7966 esac
7967 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7968 $as_echo_n "checking for dlfcn.h... " >&6; }
7969 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7970 $as_echo_n "(cached) " >&6
7971 else
7972 ac_cv_header_dlfcn_h=$ac_header_preproc
7973 fi
7974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7975 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7977 fi
7978 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
7980 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7981 $as_echo_n "checking for library containing dlopen... " >&6; }
7982 if test "${ac_cv_search_dlopen+set}" = set; then
7983 $as_echo_n "(cached) " >&6
7984 else
7985 ac_func_search_save_LIBS=$LIBS
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 /* Override any GCC internal prototype to avoid an error.
7994 Use char because int might match the return type of a GCC
7995 builtin and then its argument prototype would still apply. */
7996 #ifdef __cplusplus
7997 extern "C"
7998 #endif
7999 char dlopen ();
8000 int
8001 main ()
8002 {
8003 return dlopen ();
8004 ;
8005 return 0;
8006 }
8007 _ACEOF
8008 for ac_lib in '' dl; do
8009 if test -z "$ac_lib"; then
8010 ac_res="none required"
8011 else
8012 ac_res=-l$ac_lib
8013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8014 fi
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (ac_try="$ac_link"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_link") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest$ac_exeext && {
8033 test "$cross_compiling" = yes ||
8034 $as_test_x conftest$ac_exeext
8035 }; then
8036 ac_cv_search_dlopen=$ac_res
8037 else
8038 $as_echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8042 fi
8044 rm -rf conftest.dSYM
8045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8046 conftest$ac_exeext
8047 if test "${ac_cv_search_dlopen+set}" = set; then
8048 break
8049 fi
8050 done
8051 if test "${ac_cv_search_dlopen+set}" = set; then
8052 :
8053 else
8054 ac_cv_search_dlopen=no
8055 fi
8056 rm conftest.$ac_ext
8057 LIBS=$ac_func_search_save_LIBS
8058 fi
8059 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8060 $as_echo "$ac_cv_search_dlopen" >&6; }
8061 ac_res=$ac_cv_search_dlopen
8062 if test "$ac_res" != no; then
8063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8064 have_dlopen=yes
8065 fi
8067 fi
8070 if test "x$have_dlopen" != "xyes"; then
8071 if test "x$enable_shared" == "xyes"; then
8072 { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
8073 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
8074 { (exit 1); exit 1; }; }
8075 else
8076 { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
8077 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
8078 fi
8079 fi
8081 { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
8082 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
8083 old_LDFLAGS="$LDFLAGS"
8084 LDFLAGS="$LDFLAGS -rdynamic"
8085 cat >conftest.$ac_ext <<_ACEOF
8086 int main(){}
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (ac_try="$ac_link"
8090 case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093 esac
8094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8095 $as_echo "$ac_try_echo") >&5
8096 (eval "$ac_link") 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest$ac_exeext && {
8106 test "$cross_compiling" = yes ||
8107 $as_test_x conftest$ac_exeext
8108 }; then
8110 LXDREAMLDFLAGS="-rdynamic"
8111 { $as_echo "$as_me:$LINENO: result: yes" >&5
8112 $as_echo "yes" >&6; }
8114 else
8115 $as_echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8119 LXDREAMLDFLAGS=""
8120 { $as_echo "$as_me:$LINENO: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8124 rm -rf conftest.dSYM
8125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126 conftest$ac_exeext conftest.$ac_ext
8127 LDFLAGS="$old_LDFLAGS"
8133 fi
8136 if test "x$have_dlopen" = "xyes"; then
8137 BUILD_SHARED_TRUE=
8138 BUILD_SHARED_FALSE='#'
8139 else
8140 BUILD_SHARED_TRUE='#'
8141 BUILD_SHARED_FALSE=
8142 fi
8146 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
8147 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
8148 if test "$cross_compiling" = yes; then
8149 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8151 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8152 See \`config.log' for more details." >&5
8153 $as_echo "$as_me: error: cannot run test program while cross compiling
8154 See \`config.log' for more details." >&2;}
8155 { (exit 1); exit 1; }; }; }
8156 else
8157 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8165 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
8167 int main(int argc, char *argv[])
8168 {
8169 return foo( 1, 2 ) == 3 ? 0 : 1;
8170 }
8171 _ACEOF
8172 rm -f conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180 (eval "$ac_link") 2>&5
8181 ac_status=$?
8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187 esac
8188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189 $as_echo "$ac_try_echo") >&5
8190 (eval "$ac_try") 2>&5
8191 ac_status=$?
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8195 { $as_echo "$as_me:$LINENO: result: yes" >&5
8196 $as_echo "yes" >&6; }
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_FASTCALL 1
8201 _ACEOF
8204 else
8205 $as_echo "$as_me: program exited with status $ac_status" >&5
8206 $as_echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 ( exit $ac_status )
8211 { $as_echo "$as_me:$LINENO: result: no" >&5
8212 $as_echo "no" >&6; }
8214 fi
8215 rm -rf conftest.dSYM
8216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8217 fi
8222 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
8223 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
8224 if test "$cross_compiling" = yes; then
8225 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8227 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8228 See \`config.log' for more details." >&5
8229 $as_echo "$as_me: error: cannot run test program while cross compiling
8230 See \`config.log' for more details." >&2;}
8231 { (exit 1); exit 1; }; }; }
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
8242 int __attribute__((noinline)) foo( int arg, void *exc )
8243 {
8244 if( arg < 2 ) {
8245 *(((void **)__builtin_frame_address(0))+1) = exc;
8246 }
8247 return 0;
8248 }
8250 int main(int argc, char *argv[])
8251 {
8252 goto *first_arg(&&start, &&except);
8254 start:
8255 return foo( argc, &&except ) + 1;
8257 except:
8258 return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268 $as_echo "$ac_try_echo") >&5
8269 (eval "$ac_link") 2>&5
8270 ac_status=$?
8271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276 esac
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279 (eval "$ac_try") 2>&5
8280 ac_status=$?
8281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8284 { $as_echo "$as_me:$LINENO: result: yes" >&5
8285 $as_echo "yes" >&6; }
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_FRAME_ADDRESS 1
8290 _ACEOF
8293 else
8294 $as_echo "$as_me: program exited with status $ac_status" >&5
8295 $as_echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ( exit $ac_status )
8300 { $as_echo "$as_me:$LINENO: result: no" >&5
8301 $as_echo "no" >&6; }
8302 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
8303 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
8304 fi
8305 rm -rf conftest.dSYM
8306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8307 fi
8313 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
8314 $as_echo_n "checking for library containing listen... " >&6; }
8315 if test "${ac_cv_search_listen+set}" = set; then
8316 $as_echo_n "(cached) " >&6
8317 else
8318 ac_func_search_save_LIBS=$LIBS
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8329 #ifdef __cplusplus
8330 extern "C"
8331 #endif
8332 char listen ();
8333 int
8334 main ()
8335 {
8336 return listen ();
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 for ac_lib in '' socket; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8344 else
8345 ac_res=-l$ac_lib
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347 fi
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8355 $as_echo "$ac_try_echo") >&5
8356 (eval "$ac_link") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest$ac_exeext && {
8366 test "$cross_compiling" = yes ||
8367 $as_test_x conftest$ac_exeext
8368 }; then
8369 ac_cv_search_listen=$ac_res
8370 else
8371 $as_echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8375 fi
8377 rm -rf conftest.dSYM
8378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8379 conftest$ac_exeext
8380 if test "${ac_cv_search_listen+set}" = set; then
8381 break
8382 fi
8383 done
8384 if test "${ac_cv_search_listen+set}" = set; then
8385 :
8386 else
8387 ac_cv_search_listen=no
8388 fi
8389 rm conftest.$ac_ext
8390 LIBS=$ac_func_search_save_LIBS
8391 fi
8392 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8393 $as_echo "$ac_cv_search_listen" >&6; }
8394 ac_res=$ac_cv_search_listen
8395 if test "$ac_res" != no; then
8396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8398 fi
8400 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8401 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8402 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8403 $as_echo_n "(cached) " >&6
8404 else
8405 ac_func_search_save_LIBS=$LIBS
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8416 #ifdef __cplusplus
8417 extern "C"
8418 #endif
8419 char inet_ntoa ();
8420 int
8421 main ()
8422 {
8423 return inet_ntoa ();
8424 ;
8425 return 0;
8426 }
8427 _ACEOF
8428 for ac_lib in '' nsl; do
8429 if test -z "$ac_lib"; then
8430 ac_res="none required"
8431 else
8432 ac_res=-l$ac_lib
8433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8434 fi
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_link") 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest$ac_exeext && {
8453 test "$cross_compiling" = yes ||
8454 $as_test_x conftest$ac_exeext
8455 }; then
8456 ac_cv_search_inet_ntoa=$ac_res
8457 else
8458 $as_echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8462 fi
8464 rm -rf conftest.dSYM
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466 conftest$ac_exeext
8467 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8468 break
8469 fi
8470 done
8471 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8472 :
8473 else
8474 ac_cv_search_inet_ntoa=no
8475 fi
8476 rm conftest.$ac_ext
8477 LIBS=$ac_func_search_save_LIBS
8478 fi
8479 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8480 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8481 ac_res=$ac_cv_search_inet_ntoa
8482 if test "$ac_res" != no; then
8483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8485 fi
8490 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8491 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8498 else
8499 case $PKG_CONFIG in
8500 [\\/]* | ?:[\\/]*)
8501 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8502 ;;
8503 *)
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515 done
8516 done
8517 IFS=$as_save_IFS
8519 ;;
8520 esac
8521 fi
8522 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8523 if test -n "$PKG_CONFIG"; then
8524 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8525 $as_echo "$PKG_CONFIG" >&6; }
8526 else
8527 { $as_echo "$as_me:$LINENO: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8532 fi
8533 if test -z "$ac_cv_path_PKG_CONFIG"; then
8534 ac_pt_PKG_CONFIG=$PKG_CONFIG
8535 # Extract the first word of "pkg-config", so it can be a program name with args.
8536 set dummy pkg-config; ac_word=$2
8537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8540 $as_echo_n "(cached) " >&6
8541 else
8542 case $ac_pt_PKG_CONFIG in
8543 [\\/]* | ?:[\\/]*)
8544 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8545 ;;
8546 *)
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558 done
8559 done
8560 IFS=$as_save_IFS
8562 ;;
8563 esac
8564 fi
8565 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8566 if test -n "$ac_pt_PKG_CONFIG"; then
8567 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8568 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8569 else
8570 { $as_echo "$as_me:$LINENO: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8574 if test "x$ac_pt_PKG_CONFIG" = x; then
8575 PKG_CONFIG=""
8576 else
8577 case $cross_compiling:$ac_tool_warned in
8578 yes:)
8579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8582 esac
8583 PKG_CONFIG=$ac_pt_PKG_CONFIG
8584 fi
8585 else
8586 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8587 fi
8589 fi
8590 if test -n "$PKG_CONFIG"; then
8591 _pkg_min_version=0.9.0
8592 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8593 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8594 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8595 { $as_echo "$as_me:$LINENO: result: yes" >&5
8596 $as_echo "yes" >&6; }
8597 else
8598 { $as_echo "$as_me:$LINENO: result: no" >&5
8599 $as_echo "no" >&6; }
8600 PKG_CONFIG=""
8601 fi
8603 fi
8605 pkg_failed=no
8606 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8607 $as_echo_n "checking for LIBPNG... " >&6; }
8609 if test -n "$LIBPNG_CFLAGS"; then
8610 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8611 elif test -n "$PKG_CONFIG"; then
8612 if test -n "$PKG_CONFIG" && \
8613 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8614 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8615 ac_status=$?
8616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; then
8618 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8619 else
8620 pkg_failed=yes
8621 fi
8622 else
8623 pkg_failed=untried
8624 fi
8625 if test -n "$LIBPNG_LIBS"; then
8626 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8627 elif test -n "$PKG_CONFIG"; then
8628 if test -n "$PKG_CONFIG" && \
8629 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8630 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8631 ac_status=$?
8632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; then
8634 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8635 else
8636 pkg_failed=yes
8637 fi
8638 else
8639 pkg_failed=untried
8640 fi
8644 if test $pkg_failed = yes; then
8646 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8647 _pkg_short_errors_supported=yes
8648 else
8649 _pkg_short_errors_supported=no
8650 fi
8651 if test $_pkg_short_errors_supported = yes; then
8652 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8653 else
8654 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8655 fi
8656 # Put the nasty error message in config.log where it belongs
8657 echo "$LIBPNG_PKG_ERRORS" >&5
8659 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8661 $LIBPNG_PKG_ERRORS
8663 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8664 installed software in a non-standard prefix.
8666 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8667 and LIBPNG_LIBS to avoid the need to call pkg-config.
8668 See the pkg-config man page for more details.
8669 " >&5
8670 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8672 $LIBPNG_PKG_ERRORS
8674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8675 installed software in a non-standard prefix.
8677 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8678 and LIBPNG_LIBS to avoid the need to call pkg-config.
8679 See the pkg-config man page for more details.
8680 " >&2;}
8681 { (exit 1); exit 1; }; }
8682 elif test $pkg_failed = untried; then
8683 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8685 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8686 is in your PATH or set the PKG_CONFIG environment variable to the full
8687 path to pkg-config.
8689 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8690 and LIBPNG_LIBS to avoid the need to call pkg-config.
8691 See the pkg-config man page for more details.
8693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8694 See \`config.log' for more details." >&5
8695 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8696 is in your PATH or set the PKG_CONFIG environment variable to the full
8697 path to pkg-config.
8699 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8700 and LIBPNG_LIBS to avoid the need to call pkg-config.
8701 See the pkg-config man page for more details.
8703 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8704 See \`config.log' for more details." >&2;}
8705 { (exit 1); exit 1; }; }; }
8706 else
8707 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8708 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8709 { $as_echo "$as_me:$LINENO: result: yes" >&5
8710 $as_echo "yes" >&6; }
8711 :
8712 fi
8715 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8716 $as_echo_n "checking for uncompress in -lz... " >&6; }
8717 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8718 $as_echo_n "(cached) " >&6
8719 else
8720 ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lz $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
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 uncompress ();
8736 int
8737 main ()
8738 {
8739 return uncompress ();
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8746 case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749 esac
8750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8751 $as_echo "$ac_try_echo") >&5
8752 (eval "$ac_link") 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest$ac_exeext && {
8762 test "$cross_compiling" = yes ||
8763 $as_test_x conftest$ac_exeext
8764 }; then
8765 ac_cv_lib_z_uncompress=yes
8766 else
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_cv_lib_z_uncompress=no
8771 fi
8773 rm -rf conftest.dSYM
8774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LIBS=$ac_check_lib_save_LIBS
8777 fi
8778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8779 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8780 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_LIBZ 1
8783 _ACEOF
8785 LIBS="-lz $LIBS"
8787 else
8789 echo "Zlib (libz.so) could not be found, but is required."
8790 exit 1
8791 fi
8794 if test "x$with_gtk" = "xno"; then
8796 pkg_failed=no
8797 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8798 $as_echo_n "checking for GLIB... " >&6; }
8800 if test -n "$GLIB_CFLAGS"; then
8801 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8802 elif test -n "$PKG_CONFIG"; then
8803 if test -n "$PKG_CONFIG" && \
8804 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8805 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8806 ac_status=$?
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; then
8809 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8810 else
8811 pkg_failed=yes
8812 fi
8813 else
8814 pkg_failed=untried
8815 fi
8816 if test -n "$GLIB_LIBS"; then
8817 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8818 elif test -n "$PKG_CONFIG"; then
8819 if test -n "$PKG_CONFIG" && \
8820 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8821 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8822 ac_status=$?
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; then
8825 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8826 else
8827 pkg_failed=yes
8828 fi
8829 else
8830 pkg_failed=untried
8831 fi
8835 if test $pkg_failed = yes; then
8837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8838 _pkg_short_errors_supported=yes
8839 else
8840 _pkg_short_errors_supported=no
8841 fi
8842 if test $_pkg_short_errors_supported = yes; then
8843 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8844 else
8845 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8846 fi
8847 # Put the nasty error message in config.log where it belongs
8848 echo "$GLIB_PKG_ERRORS" >&5
8850 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8852 $GLIB_PKG_ERRORS
8854 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8855 installed software in a non-standard prefix.
8857 Alternatively, you may set the environment variables GLIB_CFLAGS
8858 and GLIB_LIBS to avoid the need to call pkg-config.
8859 See the pkg-config man page for more details.
8860 " >&5
8861 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8863 $GLIB_PKG_ERRORS
8865 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8866 installed software in a non-standard prefix.
8868 Alternatively, you may set the environment variables GLIB_CFLAGS
8869 and GLIB_LIBS to avoid the need to call pkg-config.
8870 See the pkg-config man page for more details.
8871 " >&2;}
8872 { (exit 1); exit 1; }; }
8873 elif test $pkg_failed = untried; then
8874 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8876 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8877 is in your PATH or set the PKG_CONFIG environment variable to the full
8878 path to pkg-config.
8880 Alternatively, you may set the environment variables GLIB_CFLAGS
8881 and GLIB_LIBS to avoid the need to call pkg-config.
8882 See the pkg-config man page for more details.
8884 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8885 See \`config.log' for more details." >&5
8886 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8887 is in your PATH or set the PKG_CONFIG environment variable to the full
8888 path to pkg-config.
8890 Alternatively, you may set the environment variables GLIB_CFLAGS
8891 and GLIB_LIBS to avoid the need to call pkg-config.
8892 See the pkg-config man page for more details.
8894 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8895 See \`config.log' for more details." >&2;}
8896 { (exit 1); exit 1; }; }; }
8897 else
8898 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8899 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8900 { $as_echo "$as_me:$LINENO: result: yes" >&5
8901 $as_echo "yes" >&6; }
8902 :
8903 fi
8904 else
8906 pkg_failed=no
8907 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8908 $as_echo_n "checking for GTK... " >&6; }
8910 if test -n "$GTK_CFLAGS"; then
8911 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8912 elif test -n "$PKG_CONFIG"; then
8913 if test -n "$PKG_CONFIG" && \
8914 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8915 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8916 ac_status=$?
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; then
8919 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8920 else
8921 pkg_failed=yes
8922 fi
8923 else
8924 pkg_failed=untried
8925 fi
8926 if test -n "$GTK_LIBS"; then
8927 pkg_cv_GTK_LIBS="$GTK_LIBS"
8928 elif test -n "$PKG_CONFIG"; then
8929 if test -n "$PKG_CONFIG" && \
8930 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8931 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8932 ac_status=$?
8933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; then
8935 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8936 else
8937 pkg_failed=yes
8938 fi
8939 else
8940 pkg_failed=untried
8941 fi
8945 if test $pkg_failed = yes; then
8947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8948 _pkg_short_errors_supported=yes
8949 else
8950 _pkg_short_errors_supported=no
8951 fi
8952 if test $_pkg_short_errors_supported = yes; then
8953 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8954 else
8955 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8956 fi
8957 # Put the nasty error message in config.log where it belongs
8958 echo "$GTK_PKG_ERRORS" >&5
8960 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8962 $GTK_PKG_ERRORS
8964 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8965 installed software in a non-standard prefix.
8967 Alternatively, you may set the environment variables GTK_CFLAGS
8968 and GTK_LIBS to avoid the need to call pkg-config.
8969 See the pkg-config man page for more details.
8970 " >&5
8971 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8973 $GTK_PKG_ERRORS
8975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8976 installed software in a non-standard prefix.
8978 Alternatively, you may set the environment variables GTK_CFLAGS
8979 and GTK_LIBS to avoid the need to call pkg-config.
8980 See the pkg-config man page for more details.
8981 " >&2;}
8982 { (exit 1); exit 1; }; }
8983 elif test $pkg_failed = untried; then
8984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8986 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8987 is in your PATH or set the PKG_CONFIG environment variable to the full
8988 path to pkg-config.
8990 Alternatively, you may set the environment variables GTK_CFLAGS
8991 and GTK_LIBS to avoid the need to call pkg-config.
8992 See the pkg-config man page for more details.
8994 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8995 See \`config.log' for more details." >&5
8996 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8997 is in your PATH or set the PKG_CONFIG environment variable to the full
8998 path to pkg-config.
9000 Alternatively, you may set the environment variables GTK_CFLAGS
9001 and GTK_LIBS to avoid the need to call pkg-config.
9002 See the pkg-config man page for more details.
9004 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9005 See \`config.log' for more details." >&2;}
9006 { (exit 1); exit 1; }; }; }
9007 else
9008 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
9009 GTK_LIBS=$pkg_cv_GTK_LIBS
9010 { $as_echo "$as_me:$LINENO: result: yes" >&5
9011 $as_echo "yes" >&6; }
9013 HAVE_GTK='yes'
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_GTK 1
9017 _ACEOF
9020 fi
9022 LIBS="$LIBS $GTK_LIBS"
9023 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
9024 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
9025 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
9026 $as_echo_n "(cached) " >&6
9027 else
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
9035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9036 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
9038 /* System header to define __stub macros and hopefully few prototypes,
9039 which can conflict with char gdk_x11_display_get_xdisplay (); below.
9040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9041 <limits.h> exists even on freestanding compilers. */
9043 #ifdef __STDC__
9044 # include <limits.h>
9045 #else
9046 # include <assert.h>
9047 #endif
9049 #undef gdk_x11_display_get_xdisplay
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char gdk_x11_display_get_xdisplay ();
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
9062 choke me
9063 #endif
9065 int
9066 main ()
9067 {
9068 return gdk_x11_display_get_xdisplay ();
9069 ;
9070 return 0;
9071 }
9072 _ACEOF
9073 rm -f conftest.$ac_objext conftest$ac_exeext
9074 if { (ac_try="$ac_link"
9075 case "(($ac_try" in
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9078 esac
9079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9080 $as_echo "$ac_try_echo") >&5
9081 (eval "$ac_link") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest$ac_exeext && {
9091 test "$cross_compiling" = yes ||
9092 $as_test_x conftest$ac_exeext
9093 }; then
9094 ac_cv_func_gdk_x11_display_get_xdisplay=yes
9095 else
9096 $as_echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_cv_func_gdk_x11_display_get_xdisplay=no
9100 fi
9102 rm -rf conftest.dSYM
9103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9104 conftest$ac_exeext conftest.$ac_ext
9105 fi
9106 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
9107 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
9108 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
9110 HAVE_GTK_X11='yes'
9112 cat >>confdefs.h <<\_ACEOF
9113 #define HAVE_GTK_X11 1
9114 _ACEOF
9116 fi
9118 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
9119 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
9120 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
9130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9131 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
9133 /* System header to define __stub macros and hopefully few prototypes,
9134 which can conflict with char gdk_quartz_window_get_nsview (); below.
9135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9136 <limits.h> exists even on freestanding compilers. */
9138 #ifdef __STDC__
9139 # include <limits.h>
9140 #else
9141 # include <assert.h>
9142 #endif
9144 #undef gdk_quartz_window_get_nsview
9146 /* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 char gdk_quartz_window_get_nsview ();
9153 /* The GNU C library defines this for functions which it implements
9154 to always fail with ENOSYS. Some functions are actually named
9155 something starting with __ and the normal name is an alias. */
9156 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
9157 choke me
9158 #endif
9160 int
9161 main ()
9162 {
9163 return gdk_quartz_window_get_nsview ();
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (ac_try="$ac_link"
9170 case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173 esac
9174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9175 $as_echo "$ac_try_echo") >&5
9176 (eval "$ac_link") 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 } && test -s conftest$ac_exeext && {
9186 test "$cross_compiling" = yes ||
9187 $as_test_x conftest$ac_exeext
9188 }; then
9189 ac_cv_func_gdk_quartz_window_get_nsview=yes
9190 else
9191 $as_echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_func_gdk_quartz_window_get_nsview=no
9195 fi
9197 rm -rf conftest.dSYM
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199 conftest$ac_exeext conftest.$ac_ext
9200 fi
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
9202 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
9203 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
9205 HAVE_GTK_OSX='yes'
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_GTK_OSX 1
9209 _ACEOF
9211 fi
9213 fi
9217 if test "$HAVE_GTK" = 'yes'; then
9218 GUI_GTK_TRUE=
9219 GUI_GTK_FALSE='#'
9220 else
9221 GUI_GTK_TRUE='#'
9222 GUI_GTK_FALSE=
9223 fi
9226 if test "x$with_osmesa" != xno; then
9230 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
9231 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
9232 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
9233 $as_echo_n "(cached) " >&6
9234 else
9235 ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-lOSMesa $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9244 /* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
9247 #ifdef __cplusplus
9248 extern "C"
9249 #endif
9250 char OSMesaCreateContext ();
9251 int
9252 main ()
9253 {
9254 return OSMesaCreateContext ();
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (ac_try="$ac_link"
9261 case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264 esac
9265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9266 $as_echo "$ac_try_echo") >&5
9267 (eval "$ac_link") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext && {
9277 test "$cross_compiling" = yes ||
9278 $as_test_x conftest$ac_exeext
9279 }; then
9280 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
9281 else
9282 $as_echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 ac_cv_lib_OSMesa_OSMesaCreateContext=no
9286 fi
9288 rm -rf conftest.dSYM
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9292 fi
9293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
9294 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
9295 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define HAVE_LIBOSMESA 1
9298 _ACEOF
9300 LIBS="-lOSMesa $LIBS"
9302 else
9303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9305 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
9306 See \`config.log' for more details." >&5
9307 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
9308 See \`config.log' for more details." >&2;}
9309 { (exit 1); exit 1; }; }; }
9310 fi
9312 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9313 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9314 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9315 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9316 $as_echo_n "(cached) " >&6
9317 fi
9318 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9319 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9320 else
9321 # Is the header compilable?
9322 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
9323 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 $ac_includes_default
9331 #include <GL/osmesa.h>
9332 _ACEOF
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9335 case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338 esac
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_header_compiler=yes
9352 else
9353 $as_echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_header_compiler=no
9357 fi
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9361 $as_echo "$ac_header_compiler" >&6; }
9363 # Is the header present?
9364 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9365 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h. */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 #include <GL/osmesa.h>
9373 _ACEOF
9374 if { (ac_try="$ac_cpp conftest.$ac_ext"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9380 $as_echo "$ac_try_echo") >&5
9381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } >/dev/null && {
9388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 }; then
9391 ac_header_preproc=yes
9392 else
9393 $as_echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_header_preproc=no
9397 fi
9399 rm -f conftest.err conftest.$ac_ext
9400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 $as_echo "$ac_header_preproc" >&6; }
9403 # So? What about this header?
9404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9405 yes:no: )
9406 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9407 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9409 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9410 ac_header_preproc=yes
9411 ;;
9412 no:yes:* )
9413 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9414 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9415 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9416 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9417 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9418 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9419 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9420 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9421 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9422 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9423 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9424 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9426 ;;
9427 esac
9428 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9429 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9430 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9434 fi
9435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9436 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9438 fi
9439 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
9440 :
9441 else
9442 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9444 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9445 See \`config.log' for more details." >&5
9446 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9447 See \`config.log' for more details." >&2;}
9448 { (exit 1); exit 1; }; }; }
9449 fi
9452 HAVE_OSMESA='yes'
9453 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_OSMESA 1
9457 _ACEOF
9459 else
9462 if test "x$APPLE_BUILD" != 'xyes'; then
9464 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9465 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9466 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9467 $as_echo_n "(cached) " >&6
9468 else
9469 ac_check_lib_save_LIBS=$LIBS
9470 LIBS="-lGL $LIBS"
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h. */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 /* Override any GCC internal prototype to avoid an error.
9479 Use char because int might match the return type of a GCC
9480 builtin and then its argument prototype would still apply. */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 char glVertex3f ();
9485 int
9486 main ()
9487 {
9488 return glVertex3f ();
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (ac_try="$ac_link"
9495 case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9500 $as_echo "$ac_try_echo") >&5
9501 (eval "$ac_link") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext && {
9511 test "$cross_compiling" = yes ||
9512 $as_test_x conftest$ac_exeext
9513 }; then
9514 ac_cv_lib_GL_glVertex3f=yes
9515 else
9516 $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 ac_cv_lib_GL_glVertex3f=no
9520 fi
9522 rm -rf conftest.dSYM
9523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LIBS=$ac_check_lib_save_LIBS
9526 fi
9527 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9528 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9529 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_LIBGL 1
9532 _ACEOF
9534 LIBS="-lGL $LIBS"
9536 else
9538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9540 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9541 See \`config.log' for more details." >&5
9542 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9543 See \`config.log' for more details." >&2;}
9544 { (exit 1); exit 1; }; }; }
9545 fi
9547 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9548 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9549 $as_echo_n "checking for GL/gl.h... " >&6; }
9550 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9552 fi
9553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9554 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9555 else
9556 # Is the header compilable?
9557 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9558 $as_echo_n "checking GL/gl.h usability... " >&6; }
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9566 #include <GL/gl.h>
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (ac_try="$ac_compile"
9570 case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573 esac
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9575 $as_echo "$ac_try_echo") >&5
9576 (eval "$ac_compile") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest.$ac_objext; then
9586 ac_header_compiler=yes
9587 else
9588 $as_echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_header_compiler=no
9592 fi
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9596 $as_echo "$ac_header_compiler" >&6; }
9598 # Is the header present?
9599 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9600 $as_echo_n "checking GL/gl.h presence... " >&6; }
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 #include <GL/gl.h>
9608 _ACEOF
9609 if { (ac_try="$ac_cpp conftest.$ac_ext"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } >/dev/null && {
9623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 }; then
9626 ac_header_preproc=yes
9627 else
9628 $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_header_preproc=no
9632 fi
9634 rm -f conftest.err conftest.$ac_ext
9635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9636 $as_echo "$ac_header_preproc" >&6; }
9638 # So? What about this header?
9639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9640 yes:no: )
9641 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9642 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9643 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9644 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9645 ac_header_preproc=yes
9646 ;;
9647 no:yes:* )
9648 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9649 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9650 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9651 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9652 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9653 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9654 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9655 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9656 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9657 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9658 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9659 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9661 ;;
9662 esac
9663 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9664 $as_echo_n "checking for GL/gl.h... " >&6; }
9665 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9667 else
9668 ac_cv_header_GL_gl_h=$ac_header_preproc
9669 fi
9670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9671 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9673 fi
9674 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
9675 :
9676 else
9678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9680 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9681 See \`config.log' for more details." >&5
9682 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9683 See \`config.log' for more details." >&2;}
9684 { (exit 1); exit 1; }; }; }
9685 fi
9688 else
9689 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9690 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9691 if test "${ac_cv_func_NSOpenGLGetVersion+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 NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char NSOpenGLGetVersion (); 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 NSOpenGLGetVersion
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 NSOpenGLGetVersion ();
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_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9728 choke me
9729 #endif
9731 int
9732 main ()
9733 {
9734 return NSOpenGLGetVersion ();
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_NSOpenGLGetVersion=yes
9761 else
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_NSOpenGLGetVersion=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_NSOpenGLGetVersion" >&5
9773 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9774 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
9776 HAVE_NSGL='yes'
9777 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_NSGL 1
9781 _ACEOF
9783 fi
9785 fi
9787 if test "x$HAVE_GTK_X11" = "xyes"; then
9788 if test "x$APPLE_BUILD" = "xyes"; then
9789 LIBS="$LIBS -L/usr/X11/lib -lGL"
9790 fi
9791 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9792 $as_echo_n "checking for glXQueryVersion... " >&6; }
9793 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define glXQueryVersion innocuous_glXQueryVersion
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char glXQueryVersion (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9811 #ifdef __STDC__
9812 # include <limits.h>
9813 #else
9814 # include <assert.h>
9815 #endif
9817 #undef glXQueryVersion
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char glXQueryVersion ();
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9830 choke me
9831 #endif
9833 int
9834 main ()
9835 {
9836 return glXQueryVersion ();
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9843 case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846 esac
9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9848 $as_echo "$ac_try_echo") >&5
9849 (eval "$ac_link") 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest$ac_exeext && {
9859 test "$cross_compiling" = yes ||
9860 $as_test_x conftest$ac_exeext
9861 }; then
9862 ac_cv_func_glXQueryVersion=yes
9863 else
9864 $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_cv_func_glXQueryVersion=no
9868 fi
9870 rm -rf conftest.dSYM
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872 conftest$ac_exeext conftest.$ac_ext
9873 fi
9874 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9875 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9876 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
9878 HAVE_GLX='yes'
9879 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9881 cat >>confdefs.h <<\_ACEOF
9882 #define HAVE_GLX 1
9883 _ACEOF
9885 fi
9887 fi
9890 fi
9897 if test "x$HAVE_OSMESA" = "xyes"; then
9898 VIDEO_OSMESA_TRUE=
9899 VIDEO_OSMESA_FALSE='#'
9900 else
9901 VIDEO_OSMESA_TRUE='#'
9902 VIDEO_OSMESA_FALSE=
9903 fi
9907 if test "x$HAVE_GLX" = "xyes"; then
9908 VIDEO_GLX_TRUE=
9909 VIDEO_GLX_FALSE='#'
9910 else
9911 VIDEO_GLX_TRUE='#'
9912 VIDEO_GLX_FALSE=
9913 fi
9917 if test "x$HAVE_NSGL" = "xyes"; then
9918 VIDEO_NSGL_TRUE=
9919 VIDEO_NSGL_FALSE='#'
9920 else
9921 VIDEO_NSGL_TRUE='#'
9922 VIDEO_NSGL_FALSE=
9923 fi
9926 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9927 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9928 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9929 $as_echo_n "(cached) " >&6
9930 else
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h. */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9937 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9939 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9941 /* System header to define __stub macros and hopefully few prototypes,
9942 which can conflict with char glGenFramebuffersEXT (); below.
9943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9944 <limits.h> exists even on freestanding compilers. */
9946 #ifdef __STDC__
9947 # include <limits.h>
9948 #else
9949 # include <assert.h>
9950 #endif
9952 #undef glGenFramebuffersEXT
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9957 #ifdef __cplusplus
9958 extern "C"
9959 #endif
9960 char glGenFramebuffersEXT ();
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9965 choke me
9966 #endif
9968 int
9969 main ()
9970 {
9971 return glGenFramebuffersEXT ();
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9983 $as_echo "$ac_try_echo") >&5
9984 (eval "$ac_link") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext && {
9994 test "$cross_compiling" = yes ||
9995 $as_test_x conftest$ac_exeext
9996 }; then
9997 ac_cv_func_glGenFramebuffersEXT=yes
9998 else
9999 $as_echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_func_glGenFramebuffersEXT=no
10003 fi
10005 rm -rf conftest.dSYM
10006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007 conftest$ac_exeext conftest.$ac_ext
10008 fi
10009 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
10010 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
10011 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
10013 cat >>confdefs.h <<\_ACEOF
10014 #define HAVE_OPENGL_FBO 1
10015 _ACEOF
10017 fi
10019 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
10020 $as_echo_n "checking for glCreateShader... " >&6; }
10021 if test "${ac_cv_func_glCreateShader+set}" = set; then
10022 $as_echo_n "(cached) " >&6
10023 else
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
10031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10032 #define glCreateShader innocuous_glCreateShader
10034 /* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char glCreateShader (); below.
10036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10037 <limits.h> exists even on freestanding compilers. */
10039 #ifdef __STDC__
10040 # include <limits.h>
10041 #else
10042 # include <assert.h>
10043 #endif
10045 #undef glCreateShader
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char glCreateShader ();
10054 /* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057 #if defined __stub_glCreateShader || defined __stub___glCreateShader
10058 choke me
10059 #endif
10061 int
10062 main ()
10063 {
10064 return glCreateShader ();
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074 esac
10075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10076 $as_echo "$ac_try_echo") >&5
10077 (eval "$ac_link") 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_c_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest$ac_exeext && {
10087 test "$cross_compiling" = yes ||
10088 $as_test_x conftest$ac_exeext
10089 }; then
10090 ac_cv_func_glCreateShader=yes
10091 else
10092 $as_echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10095 ac_cv_func_glCreateShader=no
10096 fi
10098 rm -rf conftest.dSYM
10099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10100 conftest$ac_exeext conftest.$ac_ext
10101 fi
10102 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
10103 $as_echo "$ac_cv_func_glCreateShader" >&6; }
10104 if test "x$ac_cv_func_glCreateShader" = x""yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_OPENGL_SHADER 1
10108 _ACEOF
10110 fi
10112 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
10113 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
10114 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
10115 $as_echo_n "(cached) " >&6
10116 else
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
10124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10125 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
10127 /* System header to define __stub macros and hopefully few prototypes,
10128 which can conflict with char glCreateShaderObjectARB (); below.
10129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130 <limits.h> exists even on freestanding compilers. */
10132 #ifdef __STDC__
10133 # include <limits.h>
10134 #else
10135 # include <assert.h>
10136 #endif
10138 #undef glCreateShaderObjectARB
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char glCreateShaderObjectARB ();
10147 /* The GNU C library defines this for functions which it implements
10148 to always fail with ENOSYS. Some functions are actually named
10149 something starting with __ and the normal name is an alias. */
10150 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
10151 choke me
10152 #endif
10154 int
10155 main ()
10156 {
10157 return glCreateShaderObjectARB ();
10158 ;
10159 return 0;
10160 }
10161 _ACEOF
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (ac_try="$ac_link"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10167 esac
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170 (eval "$ac_link") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext && {
10180 test "$cross_compiling" = yes ||
10181 $as_test_x conftest$ac_exeext
10182 }; then
10183 ac_cv_func_glCreateShaderObjectARB=yes
10184 else
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_func_glCreateShaderObjectARB=no
10189 fi
10191 rm -rf conftest.dSYM
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 fi
10195 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
10196 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
10197 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_OPENGL_SHADER_ARB 1
10201 _ACEOF
10203 fi
10205 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
10206 $as_echo_n "checking for glClampColorARB... " >&6; }
10207 if test "${ac_cv_func_glClampColorARB+set}" = set; then
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
10217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10218 #define glClampColorARB innocuous_glClampColorARB
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char glClampColorARB (); below.
10222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10223 <limits.h> exists even on freestanding compilers. */
10225 #ifdef __STDC__
10226 # include <limits.h>
10227 #else
10228 # include <assert.h>
10229 #endif
10231 #undef glClampColorARB
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 char glClampColorARB ();
10240 /* The GNU C library defines this for functions which it implements
10241 to always fail with ENOSYS. Some functions are actually named
10242 something starting with __ and the normal name is an alias. */
10243 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
10244 choke me
10245 #endif
10247 int
10248 main ()
10249 {
10250 return glClampColorARB ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10275 }; then
10276 ac_cv_func_glClampColorARB=yes
10277 else
10278 $as_echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_cv_func_glClampColorARB=no
10282 fi
10284 rm -rf conftest.dSYM
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10287 fi
10288 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
10289 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
10290 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
10292 cat >>confdefs.h <<\_ACEOF
10293 #define HAVE_OPENGL_CLAMP_COLOR 1
10294 _ACEOF
10296 fi
10301 if test "x$enable_translator" != "xno"; then
10302 case $host_cpu in
10303 i386|i486|i586|i686|x86_64)
10304 SH4_TRANSLATOR="x86"
10306 cat >>confdefs.h <<_ACEOF
10307 #define SH4_TRANSLATOR TARGET_X86
10308 _ACEOF
10309 ;;
10310 esac
10311 fi
10314 if test "$SH4_TRANSLATOR" = "x86"; then
10315 BUILD_SH4X86_TRUE=
10316 BUILD_SH4X86_FALSE='#'
10317 else
10318 BUILD_SH4X86_TRUE='#'
10319 BUILD_SH4X86_FALSE=
10320 fi
10323 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10324 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10325 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10326 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10327 $as_echo_n "(cached) " >&6
10328 fi
10329 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10330 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10331 else
10332 # Is the header compilable?
10333 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10334 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 $ac_includes_default
10342 #include <CoreAudio/CoreAudio.h>
10343 _ACEOF
10344 rm -f conftest.$ac_objext
10345 if { (ac_try="$ac_compile"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349 esac
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_compile") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest.$ac_objext; then
10362 ac_header_compiler=yes
10363 else
10364 $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_header_compiler=no
10368 fi
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10372 $as_echo "$ac_header_compiler" >&6; }
10374 # Is the header present?
10375 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10376 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10377 cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h. */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <CoreAudio/CoreAudio.h>
10384 _ACEOF
10385 if { (ac_try="$ac_cpp conftest.$ac_ext"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10391 $as_echo "$ac_try_echo") >&5
10392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } >/dev/null && {
10399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 }; then
10402 ac_header_preproc=yes
10403 else
10404 $as_echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_header_preproc=no
10408 fi
10410 rm -f conftest.err conftest.$ac_ext
10411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10412 $as_echo "$ac_header_preproc" >&6; }
10414 # So? What about this header?
10415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10416 yes:no: )
10417 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10418 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10419 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10420 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10421 ac_header_preproc=yes
10422 ;;
10423 no:yes:* )
10424 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10425 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10426 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10427 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10428 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10429 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10430 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10431 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10432 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10433 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10434 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10435 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10437 ;;
10438 esac
10439 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10440 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10441 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10442 $as_echo_n "(cached) " >&6
10443 else
10444 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10445 fi
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10447 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10449 fi
10450 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
10452 HAVE_CORE_AUDIO=yes
10453 LIBS="$LIBS -framework CoreAudio"
10454 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10456 cat >>confdefs.h <<\_ACEOF
10457 #define HAVE_CORE_AUDIO 1
10458 _ACEOF
10460 else
10461 true
10462 fi
10467 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10468 AUDIO_OSX_TRUE=
10469 AUDIO_OSX_FALSE='#'
10470 else
10471 AUDIO_OSX_TRUE='#'
10472 AUDIO_OSX_FALSE=
10473 fi
10476 if test "x$with_sdl" != "xno"; then
10478 pkg_failed=no
10479 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10480 $as_echo_n "checking for SDL... " >&6; }
10482 if test -n "$SDL_CFLAGS"; then
10483 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10484 elif test -n "$PKG_CONFIG"; then
10485 if test -n "$PKG_CONFIG" && \
10486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10487 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; then
10491 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10492 else
10493 pkg_failed=yes
10494 fi
10495 else
10496 pkg_failed=untried
10497 fi
10498 if test -n "$SDL_LIBS"; then
10499 pkg_cv_SDL_LIBS="$SDL_LIBS"
10500 elif test -n "$PKG_CONFIG"; then
10501 if test -n "$PKG_CONFIG" && \
10502 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10503 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10504 ac_status=$?
10505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; then
10507 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10508 else
10509 pkg_failed=yes
10510 fi
10511 else
10512 pkg_failed=untried
10513 fi
10517 if test $pkg_failed = yes; then
10519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10520 _pkg_short_errors_supported=yes
10521 else
10522 _pkg_short_errors_supported=no
10523 fi
10524 if test $_pkg_short_errors_supported = yes; then
10525 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10526 else
10527 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10528 fi
10529 # Put the nasty error message in config.log where it belongs
10530 echo "$SDL_PKG_ERRORS" >&5
10532 { $as_echo "$as_me:$LINENO: result: no" >&5
10533 $as_echo "no" >&6; }
10535 if test "x$with_sdl" = "xyes"; then
10536 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10538 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10539 See \`config.log' for more details." >&5
10540 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10541 See \`config.log' for more details." >&2;}
10542 { (exit 1); exit 1; }; }; }
10543 fi
10545 elif test $pkg_failed = untried; then
10547 if test "x$with_sdl" = "xyes"; then
10548 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10550 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10551 See \`config.log' for more details." >&5
10552 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10553 See \`config.log' for more details." >&2;}
10554 { (exit 1); exit 1; }; }; }
10555 fi
10557 else
10558 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10559 SDL_LIBS=$pkg_cv_SDL_LIBS
10560 { $as_echo "$as_me:$LINENO: result: yes" >&5
10561 $as_echo "yes" >&6; }
10563 HAVE_SDL='yes'
10564 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_SDL 1
10568 _ACEOF
10571 fi
10572 fi
10575 if test "$HAVE_SDL" = 'yes' ; then
10576 AUDIO_SDL_TRUE=
10577 AUDIO_SDL_FALSE='#'
10578 else
10579 AUDIO_SDL_TRUE='#'
10580 AUDIO_SDL_FALSE=
10581 fi
10584 if test "x$with_pulse" != "xno"; then
10586 pkg_failed=no
10587 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10588 $as_echo_n "checking for PULSE... " >&6; }
10590 if test -n "$PULSE_CFLAGS"; then
10591 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10592 elif test -n "$PKG_CONFIG"; then
10593 if test -n "$PKG_CONFIG" && \
10594 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10595 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10596 ac_status=$?
10597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; then
10599 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10600 else
10601 pkg_failed=yes
10602 fi
10603 else
10604 pkg_failed=untried
10605 fi
10606 if test -n "$PULSE_LIBS"; then
10607 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10608 elif test -n "$PKG_CONFIG"; then
10609 if test -n "$PKG_CONFIG" && \
10610 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10611 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10612 ac_status=$?
10613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; then
10615 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10616 else
10617 pkg_failed=yes
10618 fi
10619 else
10620 pkg_failed=untried
10621 fi
10625 if test $pkg_failed = yes; then
10627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10628 _pkg_short_errors_supported=yes
10629 else
10630 _pkg_short_errors_supported=no
10631 fi
10632 if test $_pkg_short_errors_supported = yes; then
10633 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10634 else
10635 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10636 fi
10637 # Put the nasty error message in config.log where it belongs
10638 echo "$PULSE_PKG_ERRORS" >&5
10640 { $as_echo "$as_me:$LINENO: result: no" >&5
10641 $as_echo "no" >&6; }
10643 if test "x$with_pulse" = "xyes"; then
10644 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10646 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10647 See \`config.log' for more details." >&5
10648 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10649 See \`config.log' for more details." >&2;}
10650 { (exit 1); exit 1; }; }; }
10651 fi
10653 elif test $pkg_failed = untried; then
10655 if test "x$with_pulse" = "xyes"; then
10656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10658 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10659 See \`config.log' for more details." >&5
10660 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10661 See \`config.log' for more details." >&2;}
10662 { (exit 1); exit 1; }; }; }
10663 fi
10665 else
10666 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10667 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10668 { $as_echo "$as_me:$LINENO: result: yes" >&5
10669 $as_echo "yes" >&6; }
10671 HAVE_PULSE='yes'
10672 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10674 cat >>confdefs.h <<\_ACEOF
10675 #define HAVE_PULSE 1
10676 _ACEOF
10679 fi
10680 fi
10683 if test "$HAVE_PULSE" = 'yes' ; then
10684 AUDIO_PULSE_TRUE=
10685 AUDIO_PULSE_FALSE='#'
10686 else
10687 AUDIO_PULSE_TRUE='#'
10688 AUDIO_PULSE_FALSE=
10689 fi
10692 if test "x$with_esd" != "xno"; then
10694 pkg_failed=no
10695 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10696 $as_echo_n "checking for ESOUND... " >&6; }
10698 if test -n "$ESOUND_CFLAGS"; then
10699 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10700 elif test -n "$PKG_CONFIG"; then
10701 if test -n "$PKG_CONFIG" && \
10702 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10703 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10704 ac_status=$?
10705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; then
10707 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10708 else
10709 pkg_failed=yes
10710 fi
10711 else
10712 pkg_failed=untried
10713 fi
10714 if test -n "$ESOUND_LIBS"; then
10715 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10716 elif test -n "$PKG_CONFIG"; then
10717 if test -n "$PKG_CONFIG" && \
10718 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10719 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10720 ac_status=$?
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; then
10723 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10724 else
10725 pkg_failed=yes
10726 fi
10727 else
10728 pkg_failed=untried
10729 fi
10733 if test $pkg_failed = yes; then
10735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10736 _pkg_short_errors_supported=yes
10737 else
10738 _pkg_short_errors_supported=no
10739 fi
10740 if test $_pkg_short_errors_supported = yes; then
10741 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10742 else
10743 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10744 fi
10745 # Put the nasty error message in config.log where it belongs
10746 echo "$ESOUND_PKG_ERRORS" >&5
10748 { $as_echo "$as_me:$LINENO: result: no" >&5
10749 $as_echo "no" >&6; }
10751 if test "x$with_esd" = "xyes"; then
10752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10754 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10755 See \`config.log' for more details." >&5
10756 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10757 See \`config.log' for more details." >&2;}
10758 { (exit 1); exit 1; }; }; }
10759 fi
10761 elif test $pkg_failed = untried; then
10763 if test "x$with_esd" = "xyes"; then
10764 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10766 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10767 See \`config.log' for more details." >&5
10768 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10769 See \`config.log' for more details." >&2;}
10770 { (exit 1); exit 1; }; }; }
10771 fi
10773 else
10774 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10775 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10776 { $as_echo "$as_me:$LINENO: result: yes" >&5
10777 $as_echo "yes" >&6; }
10779 HAVE_ESOUND='yes'
10780 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_ESOUND 1
10784 _ACEOF
10787 fi
10788 fi
10791 if test "$HAVE_ESOUND" = 'yes' ; then
10792 AUDIO_ESOUND_TRUE=
10793 AUDIO_ESOUND_FALSE='#'
10794 else
10795 AUDIO_ESOUND_TRUE='#'
10796 AUDIO_ESOUND_FALSE=
10797 fi
10801 pkg_failed=no
10802 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10803 $as_echo_n "checking for ALSA... " >&6; }
10805 if test -n "$ALSA_CFLAGS"; then
10806 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10807 elif test -n "$PKG_CONFIG"; then
10808 if test -n "$PKG_CONFIG" && \
10809 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10810 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10811 ac_status=$?
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; then
10814 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10815 else
10816 pkg_failed=yes
10817 fi
10818 else
10819 pkg_failed=untried
10820 fi
10821 if test -n "$ALSA_LIBS"; then
10822 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10823 elif test -n "$PKG_CONFIG"; then
10824 if test -n "$PKG_CONFIG" && \
10825 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10826 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10827 ac_status=$?
10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; then
10830 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10831 else
10832 pkg_failed=yes
10833 fi
10834 else
10835 pkg_failed=untried
10836 fi
10840 if test $pkg_failed = yes; then
10842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10843 _pkg_short_errors_supported=yes
10844 else
10845 _pkg_short_errors_supported=no
10846 fi
10847 if test $_pkg_short_errors_supported = yes; then
10848 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10849 else
10850 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10851 fi
10852 # Put the nasty error message in config.log where it belongs
10853 echo "$ALSA_PKG_ERRORS" >&5
10855 { $as_echo "$as_me:$LINENO: result: no" >&5
10856 $as_echo "no" >&6; }
10857 true
10858 elif test $pkg_failed = untried; then
10859 true
10860 else
10861 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10862 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10863 { $as_echo "$as_me:$LINENO: result: yes" >&5
10864 $as_echo "yes" >&6; }
10866 HAVE_ALSA='yes'
10867 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_ALSA 1
10871 _ACEOF
10873 fi
10876 if test "$HAVE_ALSA" = 'yes' ; then
10877 AUDIO_ALSA_TRUE=
10878 AUDIO_ALSA_FALSE='#'
10879 else
10880 AUDIO_ALSA_TRUE='#'
10881 AUDIO_ALSA_FALSE=
10882 fi
10886 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10887 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10888 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10889 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10890 $as_echo_n "(cached) " >&6
10891 fi
10892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10893 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10894 else
10895 # Is the header compilable?
10896 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10897 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 $ac_includes_default
10905 #include <linux/cdrom.h>
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (ac_try="$ac_compile"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10914 $as_echo "$ac_try_echo") >&5
10915 (eval "$ac_compile") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
10924 } && test -s conftest.$ac_objext; then
10925 ac_header_compiler=yes
10926 else
10927 $as_echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_header_compiler=no
10931 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 $as_echo "$ac_header_compiler" >&6; }
10937 # Is the header present?
10938 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10939 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h. */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 #include <linux/cdrom.h>
10947 _ACEOF
10948 if { (ac_try="$ac_cpp conftest.$ac_ext"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10952 esac
10953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10954 $as_echo "$ac_try_echo") >&5
10955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10956 ac_status=$?
10957 grep -v '^ *+' conftest.er1 >conftest.err
10958 rm -f conftest.er1
10959 cat conftest.err >&5
10960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } >/dev/null && {
10962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 }; then
10965 ac_header_preproc=yes
10966 else
10967 $as_echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_header_preproc=no
10971 fi
10973 rm -f conftest.err conftest.$ac_ext
10974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10975 $as_echo "$ac_header_preproc" >&6; }
10977 # So? What about this header?
10978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10979 yes:no: )
10980 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10981 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10982 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10983 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10984 ac_header_preproc=yes
10985 ;;
10986 no:yes:* )
10987 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10988 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10989 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10990 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10991 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10992 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10993 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10994 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10995 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10996 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10997 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10998 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
11000 ;;
11001 esac
11002 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
11003 $as_echo_n "checking for linux/cdrom.h... " >&6; }
11004 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
11005 $as_echo_n "(cached) " >&6
11006 else
11007 ac_cv_header_linux_cdrom_h=$ac_header_preproc
11008 fi
11009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
11010 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
11012 fi
11013 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
11015 CDROM_DRIVER=linux
11016 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
11017 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
11018 old_CFLAGS="$CFLAGS"
11019 CFLAGS="$CFLAGS $STDCFLAG"
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <linux/cdrom.h>
11027 int
11028 main ()
11029 {
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042 $as_echo "$ac_try_echo") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11053 { $as_echo "$as_me:$LINENO: result: Yes" >&5
11054 $as_echo "Yes" >&6; }
11055 else
11056 $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11060 { $as_echo "$as_me:$LINENO: result: No" >&5
11061 $as_echo "No" >&6; }
11062 STDCFLAG="-std=gnu99"
11063 fi
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 CFLAGS="$old_CFLAGS"
11068 else
11069 true
11070 fi
11073 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11074 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11075 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11076 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11077 $as_echo_n "(cached) " >&6
11078 fi
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11080 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11081 else
11082 # Is the header compilable?
11083 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
11084 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 #include <IOKit/IOKitLib.h>
11093 _ACEOF
11094 rm -f conftest.$ac_objext
11095 if { (ac_try="$ac_compile"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099 esac
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102 (eval "$ac_compile") 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && {
11109 test -z "$ac_c_werror_flag" ||
11110 test ! -s conftest.err
11111 } && test -s conftest.$ac_objext; then
11112 ac_header_compiler=yes
11113 else
11114 $as_echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_header_compiler=no
11118 fi
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11122 $as_echo "$ac_header_compiler" >&6; }
11124 # Is the header present?
11125 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
11126 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <IOKit/IOKitLib.h>
11134 _ACEOF
11135 if { (ac_try="$ac_cpp conftest.$ac_ext"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139 esac
11140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141 $as_echo "$ac_try_echo") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null && {
11149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 }; then
11152 ac_header_preproc=yes
11153 else
11154 $as_echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_preproc=no
11158 fi
11160 rm -f conftest.err conftest.$ac_ext
11161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162 $as_echo "$ac_header_preproc" >&6; }
11164 # So? What about this header?
11165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166 yes:no: )
11167 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11168 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
11170 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11172 ;;
11173 no:yes:* )
11174 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
11175 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
11176 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
11177 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
11178 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
11179 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
11180 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
11181 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
11183 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
11184 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
11185 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
11187 ;;
11188 esac
11189 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11190 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11191 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11192 $as_echo_n "(cached) " >&6
11193 else
11194 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
11195 fi
11196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11197 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11199 fi
11200 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
11202 CDROM_DRIVER=osx
11203 LIBS="$LIBS -framework IOKit"
11204 else
11205 true
11206 fi
11211 if test "x$CDROM_DRIVER" = "xlinux"; then
11212 CDROM_LINUX_TRUE=
11213 CDROM_LINUX_FALSE='#'
11214 else
11215 CDROM_LINUX_TRUE='#'
11216 CDROM_LINUX_FALSE=
11217 fi
11221 if test "x$CDROM_DRIVER" = "xosx"; then
11222 CDROM_OSX_TRUE=
11223 CDROM_OSX_FALSE='#'
11224 else
11225 CDROM_OSX_TRUE='#'
11226 CDROM_OSX_FALSE=
11227 fi
11231 if test "x$CDROM_DRIVER" = "x"; then
11232 CDROM_NONE_TRUE=
11233 CDROM_NONE_FALSE='#'
11234 else
11235 CDROM_NONE_TRUE='#'
11236 CDROM_NONE_FALSE=
11237 fi
11240 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11241 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11242 $as_echo_n "checking for linux/joystick.h... " >&6; }
11243 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11244 $as_echo_n "(cached) " >&6
11245 fi
11246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11247 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11248 else
11249 # Is the header compilable?
11250 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11251 $as_echo_n "checking linux/joystick.h usability... " >&6; }
11252 cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h. */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 $ac_includes_default
11259 #include <linux/joystick.h>
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (ac_try="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266 esac
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11279 ac_header_compiler=yes
11280 else
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_compiler=no
11285 fi
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11289 $as_echo "$ac_header_compiler" >&6; }
11291 # Is the header present?
11292 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
11293 $as_echo_n "checking linux/joystick.h presence... " >&6; }
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 #include <linux/joystick.h>
11301 _ACEOF
11302 if { (ac_try="$ac_cpp conftest.$ac_ext"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11308 $as_echo "$ac_try_echo") >&5
11309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } >/dev/null && {
11316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 }; then
11319 ac_header_preproc=yes
11320 else
11321 $as_echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_header_preproc=no
11325 fi
11327 rm -f conftest.err conftest.$ac_ext
11328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11329 $as_echo "$ac_header_preproc" >&6; }
11331 # So? What about this header?
11332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11333 yes:no: )
11334 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11335 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11336 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11337 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11338 ac_header_preproc=yes
11339 ;;
11340 no:yes:* )
11341 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11342 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11343 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11344 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11345 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11346 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11347 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11348 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11349 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11350 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11351 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11352 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11354 ;;
11355 esac
11356 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11357 $as_echo_n "checking for linux/joystick.h... " >&6; }
11358 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11359 $as_echo_n "(cached) " >&6
11360 else
11361 ac_cv_header_linux_joystick_h=$ac_header_preproc
11362 fi
11363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11364 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11366 fi
11367 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
11369 HAVE_LINUX_JOYSTICK_H=yes
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_LINUX_JOYSTICK 1
11373 _ACEOF
11375 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
11376 else
11377 echo "Linux Joystick support not found, building without it."
11378 fi
11383 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11384 JOY_LINUX_TRUE=
11385 JOY_LINUX_FALSE='#'
11386 else
11387 JOY_LINUX_TRUE='#'
11388 JOY_LINUX_FALSE=
11389 fi
11392 if test "x$with_lirc" != "xno"; then
11393 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11394 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11395 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11396 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11397 $as_echo_n "(cached) " >&6
11398 fi
11399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11400 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11401 else
11402 # Is the header compilable?
11403 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11404 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h. */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 #include <lirc/lirc_client.h>
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (ac_try="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421 $as_echo "$ac_try_echo") >&5
11422 (eval "$ac_compile") 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest.$ac_objext; then
11432 ac_header_compiler=yes
11433 else
11434 $as_echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_header_compiler=no
11438 fi
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11442 $as_echo "$ac_header_compiler" >&6; }
11444 # Is the header present?
11445 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11446 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <lirc/lirc_client.h>
11454 _ACEOF
11455 if { (ac_try="$ac_cpp conftest.$ac_ext"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459 esac
11460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461 $as_echo "$ac_try_echo") >&5
11462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } >/dev/null && {
11469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 }; then
11472 ac_header_preproc=yes
11473 else
11474 $as_echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_preproc=no
11478 fi
11480 rm -f conftest.err conftest.$ac_ext
11481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11482 $as_echo "$ac_header_preproc" >&6; }
11484 # So? What about this header?
11485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11486 yes:no: )
11487 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11488 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11490 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11491 ac_header_preproc=yes
11492 ;;
11493 no:yes:* )
11494 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11495 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11496 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11497 $as_echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11498 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11499 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11500 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11501 $as_echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11502 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11503 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11504 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11505 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11507 ;;
11508 esac
11509 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11510 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11511 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11512 $as_echo_n "(cached) " >&6
11513 else
11514 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11515 fi
11516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11517 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11519 fi
11520 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
11522 HAVE_LIRC_CLIENT_H=yes
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_LIRC 1
11526 _ACEOF
11528 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
11530 else
11531 echo "LIRC support not found, building without it."
11532 fi
11535 fi
11538 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11539 INPUT_LIRC_TRUE=
11540 INPUT_LIRC_FALSE='#'
11541 else
11542 INPUT_LIRC_TRUE='#'
11543 INPUT_LIRC_FALSE=
11544 fi
11547 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11548 set dummy sh-elf-gcc; ac_word=$2
11549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if test "${ac_cv_path_SHCC+set}" = set; then
11552 $as_echo_n "(cached) " >&6
11553 else
11554 case $SHCC in
11555 [\\/]* | ?:[\\/]*)
11556 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11557 ;;
11558 *)
11559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560 for as_dir in $PATH
11561 do
11562 IFS=$as_save_IFS
11563 test -z "$as_dir" && as_dir=.
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11566 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11568 break 2
11569 fi
11570 done
11571 done
11572 IFS=$as_save_IFS
11574 ;;
11575 esac
11576 fi
11577 SHCC=$ac_cv_path_SHCC
11578 if test -n "$SHCC"; then
11579 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11580 $as_echo "$SHCC" >&6; }
11581 else
11582 { $as_echo "$as_me:$LINENO: result: no" >&5
11583 $as_echo "no" >&6; }
11584 fi
11587 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11588 set dummy sh-elf-ld; ac_word=$2
11589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if test "${ac_cv_path_SHLD+set}" = set; then
11592 $as_echo_n "(cached) " >&6
11593 else
11594 case $SHLD in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11597 ;;
11598 *)
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11601 do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610 done
11611 done
11612 IFS=$as_save_IFS
11614 ;;
11615 esac
11616 fi
11617 SHLD=$ac_cv_path_SHLD
11618 if test -n "$SHLD"; then
11619 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11620 $as_echo "$SHLD" >&6; }
11621 else
11622 { $as_echo "$as_me:$LINENO: result: no" >&5
11623 $as_echo "no" >&6; }
11624 fi
11627 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11628 set dummy sh-elf-objcopy; ac_word=$2
11629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11632 $as_echo_n "(cached) " >&6
11633 else
11634 case $SHOBJCOPY in
11635 [\\/]* | ?:[\\/]*)
11636 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11637 ;;
11638 *)
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650 done
11651 done
11652 IFS=$as_save_IFS
11654 ;;
11655 esac
11656 fi
11657 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11658 if test -n "$SHOBJCOPY"; then
11659 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11660 $as_echo "$SHOBJCOPY" >&6; }
11661 else
11662 { $as_echo "$as_me:$LINENO: result: no" >&5
11663 $as_echo "no" >&6; }
11664 fi
11667 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11668 set dummy arm-elf-gcc; ac_word=$2
11669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11670 $as_echo_n "checking for $ac_word... " >&6; }
11671 if test "${ac_cv_path_ARMCC+set}" = set; then
11672 $as_echo_n "(cached) " >&6
11673 else
11674 case $ARMCC in
11675 [\\/]* | ?:[\\/]*)
11676 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11677 ;;
11678 *)
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11681 do
11682 IFS=$as_save_IFS
11683 test -z "$as_dir" && as_dir=.
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11686 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11688 break 2
11689 fi
11690 done
11691 done
11692 IFS=$as_save_IFS
11694 ;;
11695 esac
11696 fi
11697 ARMCC=$ac_cv_path_ARMCC
11698 if test -n "$ARMCC"; then
11699 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11700 $as_echo "$ARMCC" >&6; }
11701 else
11702 { $as_echo "$as_me:$LINENO: result: no" >&5
11703 $as_echo "no" >&6; }
11704 fi
11707 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11708 set dummy arm-elf-ld; ac_word=$2
11709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_path_ARMLD+set}" = set; then
11712 $as_echo_n "(cached) " >&6
11713 else
11714 case $ARMLD in
11715 [\\/]* | ?:[\\/]*)
11716 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11717 ;;
11718 *)
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11729 fi
11730 done
11731 done
11732 IFS=$as_save_IFS
11734 ;;
11735 esac
11736 fi
11737 ARMLD=$ac_cv_path_ARMLD
11738 if test -n "$ARMLD"; then
11739 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11740 $as_echo "$ARMLD" >&6; }
11741 else
11742 { $as_echo "$as_me:$LINENO: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11747 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11748 set dummy arm-elf-objcopy; ac_word=$2
11749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11752 $as_echo_n "(cached) " >&6
11753 else
11754 case $ARMOBJCOPY in
11755 [\\/]* | ?:[\\/]*)
11756 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11757 ;;
11758 *)
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11761 do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11769 fi
11770 done
11771 done
11772 IFS=$as_save_IFS
11774 ;;
11775 esac
11776 fi
11777 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11778 if test -n "$ARMOBJCOPY"; then
11779 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11780 $as_echo "$ARMOBJCOPY" >&6; }
11781 else
11782 { $as_echo "$as_me:$LINENO: result: no" >&5
11783 $as_echo "no" >&6; }
11784 fi
11788 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11789 BUILD_SH="no"
11790 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11791 else
11792 BUILD_SH="yes"
11793 fi
11794 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11795 BUILD_ARM="no"
11796 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11797 else
11798 BUILD_ARM="yes"
11799 fi
11802 if test "$BUILD_SH" = "yes"; then
11803 BUILD_SYSTEST_TRUE=
11804 BUILD_SYSTEST_FALSE='#'
11805 else
11806 BUILD_SYSTEST_TRUE='#'
11807 BUILD_SYSTEST_FALSE=
11808 fi
11812 if test "$BUILD_ARM" = "yes"; then
11813 BUILD_ARMTEST_TRUE=
11814 BUILD_ARMTEST_FALSE='#'
11815 else
11816 BUILD_ARMTEST_TRUE='#'
11817 BUILD_ARMTEST_FALSE=
11818 fi
11821 CFLAGS="$CFLAGS $STDCFLAG"
11823 GETTEXT_PACKAGE=lxdream
11826 cat >>confdefs.h <<_ACEOF
11827 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11828 _ACEOF
11831 ALL_LINGUAS="de es it pt_BR"
11834 for ac_header in locale.h
11835 do
11836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11839 $as_echo_n "checking for $ac_header... " >&6; }
11840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11841 $as_echo_n "(cached) " >&6
11842 fi
11843 ac_res=`eval 'as_val=${'$as_ac_Header'}
11844 $as_echo "$as_val"'`
11845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11846 $as_echo "$ac_res" >&6; }
11847 else
11848 # Is the header compilable?
11849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850 $as_echo_n "checking $ac_header usability... " >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 #include <$ac_header>
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865 esac
11866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11867 $as_echo "$ac_try_echo") >&5
11868 (eval "$ac_compile") 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest.$ac_objext; then
11878 ac_header_compiler=yes
11879 else
11880 $as_echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_header_compiler=no
11884 fi
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11888 $as_echo "$ac_header_compiler" >&6; }
11890 # Is the header present?
11891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11892 $as_echo_n "checking $ac_header presence... " >&6; }
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h. */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 #include <$ac_header>
11900 _ACEOF
11901 if { (ac_try="$ac_cpp conftest.$ac_ext"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11907 $as_echo "$ac_try_echo") >&5
11908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } >/dev/null && {
11915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 }; then
11918 ac_header_preproc=yes
11919 else
11920 $as_echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_header_preproc=no
11924 fi
11926 rm -f conftest.err conftest.$ac_ext
11927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11928 $as_echo "$ac_header_preproc" >&6; }
11930 # So? What about this header?
11931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11932 yes:no: )
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11937 ac_header_preproc=yes
11938 ;;
11939 no:yes:* )
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11947 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11953 ;;
11954 esac
11955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 $as_echo_n "checking for $ac_header... " >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 $as_echo_n "(cached) " >&6
11959 else
11960 eval "$as_ac_Header=\$ac_header_preproc"
11961 fi
11962 ac_res=`eval 'as_val=${'$as_ac_Header'}
11963 $as_echo "$as_val"'`
11964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11965 $as_echo "$ac_res" >&6; }
11967 fi
11968 as_val=`eval 'as_val=${'$as_ac_Header'}
11969 $as_echo "$as_val"'`
11970 if test "x$as_val" = x""yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11973 _ACEOF
11975 fi
11977 done
11979 if test $ac_cv_header_locale_h = yes; then
11980 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11981 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11982 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11983 $as_echo_n "(cached) " >&6
11984 else
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h. */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 #include <locale.h>
11992 int
11993 main ()
11994 {
11995 return LC_MESSAGES
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008 (eval "$ac_link") 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext && {
12018 test "$cross_compiling" = yes ||
12019 $as_test_x conftest$ac_exeext
12020 }; then
12021 am_cv_val_LC_MESSAGES=yes
12022 else
12023 $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 am_cv_val_LC_MESSAGES=no
12027 fi
12029 rm -rf conftest.dSYM
12030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12031 conftest$ac_exeext conftest.$ac_ext
12032 fi
12033 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12034 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12035 if test $am_cv_val_LC_MESSAGES = yes; then
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_LC_MESSAGES 1
12039 _ACEOF
12041 fi
12042 fi
12043 USE_NLS=yes
12046 gt_cv_have_gettext=no
12048 CATOBJEXT=NONE
12049 XGETTEXT=:
12050 INTLLIBS=
12052 if test "${ac_cv_header_libintl_h+set}" = set; then
12053 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12054 $as_echo_n "checking for libintl.h... " >&6; }
12055 if test "${ac_cv_header_libintl_h+set}" = set; then
12056 $as_echo_n "(cached) " >&6
12057 fi
12058 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12059 $as_echo "$ac_cv_header_libintl_h" >&6; }
12060 else
12061 # Is the header compilable?
12062 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
12063 $as_echo_n "checking libintl.h usability... " >&6; }
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 #include <libintl.h>
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (ac_try="$ac_compile"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078 esac
12079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12080 $as_echo "$ac_try_echo") >&5
12081 (eval "$ac_compile") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest.$ac_objext; then
12091 ac_header_compiler=yes
12092 else
12093 $as_echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12096 ac_header_compiler=no
12097 fi
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12101 $as_echo "$ac_header_compiler" >&6; }
12103 # Is the header present?
12104 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
12105 $as_echo_n "checking libintl.h presence... " >&6; }
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h. */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <libintl.h>
12113 _ACEOF
12114 if { (ac_try="$ac_cpp conftest.$ac_ext"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12120 $as_echo "$ac_try_echo") >&5
12121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } >/dev/null && {
12128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 }; then
12131 ac_header_preproc=yes
12132 else
12133 $as_echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_header_preproc=no
12137 fi
12139 rm -f conftest.err conftest.$ac_ext
12140 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12141 $as_echo "$ac_header_preproc" >&6; }
12143 # So? What about this header?
12144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12145 yes:no: )
12146 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12147 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12148 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12149 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12150 ac_header_preproc=yes
12151 ;;
12152 no:yes:* )
12153 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12154 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12155 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12156 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12157 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12158 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12159 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12160 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12161 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12162 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12163 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12164 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12166 ;;
12167 esac
12168 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12169 $as_echo_n "checking for libintl.h... " >&6; }
12170 if test "${ac_cv_header_libintl_h+set}" = set; then
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_cv_header_libintl_h=$ac_header_preproc
12174 fi
12175 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12176 $as_echo "$ac_cv_header_libintl_h" >&6; }
12178 fi
12179 if test "x$ac_cv_header_libintl_h" = x""yes; then
12180 gt_cv_func_dgettext_libintl="no"
12181 libintl_extra_libs=""
12183 #
12184 # First check in libc
12185 #
12186 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12187 $as_echo_n "checking for ngettext in libc... " >&6; }
12188 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12189 $as_echo_n "(cached) " >&6
12190 else
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 #include <libintl.h>
12200 int
12201 main ()
12202 {
12203 return !ngettext ("","", 1)
12204 ;
12205 return 0;
12206 }
12207 _ACEOF
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (ac_try="$ac_link"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216 (eval "$ac_link") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest$ac_exeext && {
12226 test "$cross_compiling" = yes ||
12227 $as_test_x conftest$ac_exeext
12228 }; then
12229 gt_cv_func_ngettext_libc=yes
12230 else
12231 $as_echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 gt_cv_func_ngettext_libc=no
12235 fi
12237 rm -rf conftest.dSYM
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12241 fi
12242 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12243 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12245 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12246 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12247 $as_echo_n "checking for dgettext in libc... " >&6; }
12248 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12249 $as_echo_n "(cached) " >&6
12250 else
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 #include <libintl.h>
12260 int
12261 main ()
12262 {
12263 return !dgettext ("","")
12264 ;
12265 return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12275 $as_echo "$ac_try_echo") >&5
12276 (eval "$ac_link") 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && {
12283 test -z "$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 } && test -s conftest$ac_exeext && {
12286 test "$cross_compiling" = yes ||
12287 $as_test_x conftest$ac_exeext
12288 }; then
12289 gt_cv_func_dgettext_libc=yes
12290 else
12291 $as_echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 gt_cv_func_dgettext_libc=no
12295 fi
12297 rm -rf conftest.dSYM
12298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299 conftest$ac_exeext conftest.$ac_ext
12301 fi
12302 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12303 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12304 fi
12306 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12308 for ac_func in bind_textdomain_codeset
12309 do
12310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12312 $as_echo_n "checking for $ac_func... " >&6; }
12313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12315 else
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12324 #define $ac_func innocuous_$ac_func
12326 /* System header to define __stub macros and hopefully few prototypes,
12327 which can conflict with char $ac_func (); below.
12328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12329 <limits.h> exists even on freestanding compilers. */
12331 #ifdef __STDC__
12332 # include <limits.h>
12333 #else
12334 # include <assert.h>
12335 #endif
12337 #undef $ac_func
12339 /* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12342 #ifdef __cplusplus
12343 extern "C"
12344 #endif
12345 char $ac_func ();
12346 /* The GNU C library defines this for functions which it implements
12347 to always fail with ENOSYS. Some functions are actually named
12348 something starting with __ and the normal name is an alias. */
12349 #if defined __stub_$ac_func || defined __stub___$ac_func
12350 choke me
12351 #endif
12353 int
12354 main ()
12355 {
12356 return $ac_func ();
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368 $as_echo "$ac_try_echo") >&5
12369 (eval "$ac_link") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest$ac_exeext && {
12379 test "$cross_compiling" = yes ||
12380 $as_test_x conftest$ac_exeext
12381 }; then
12382 eval "$as_ac_var=yes"
12383 else
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 eval "$as_ac_var=no"
12388 fi
12390 rm -rf conftest.dSYM
12391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12392 conftest$ac_exeext conftest.$ac_ext
12393 fi
12394 ac_res=`eval 'as_val=${'$as_ac_var'}
12395 $as_echo "$as_val"'`
12396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12397 $as_echo "$ac_res" >&6; }
12398 as_val=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 if test "x$as_val" = x""yes; then
12401 cat >>confdefs.h <<_ACEOF
12402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12403 _ACEOF
12405 fi
12406 done
12408 fi
12410 #
12411 # If we don't have everything we want, check in libintl
12412 #
12413 if test "$gt_cv_func_dgettext_libc" != "yes" \
12414 || test "$gt_cv_func_ngettext_libc" != "yes" \
12415 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12417 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12418 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12419 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12420 $as_echo_n "(cached) " >&6
12421 else
12422 ac_check_lib_save_LIBS=$LIBS
12423 LIBS="-lintl $LIBS"
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 char bindtextdomain ();
12438 int
12439 main ()
12440 {
12441 return bindtextdomain ();
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (ac_try="$ac_link"
12448 case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451 esac
12452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12453 $as_echo "$ac_try_echo") >&5
12454 (eval "$ac_link") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest$ac_exeext && {
12464 test "$cross_compiling" = yes ||
12465 $as_test_x conftest$ac_exeext
12466 }; then
12467 ac_cv_lib_intl_bindtextdomain=yes
12468 else
12469 $as_echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_intl_bindtextdomain=no
12473 fi
12475 rm -rf conftest.dSYM
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12479 fi
12480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12481 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12482 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12483 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12484 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12485 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12486 $as_echo_n "(cached) " >&6
12487 else
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lintl $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12500 #ifdef __cplusplus
12501 extern "C"
12502 #endif
12503 char ngettext ();
12504 int
12505 main ()
12506 {
12507 return ngettext ();
12508 ;
12509 return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519 $as_echo "$ac_try_echo") >&5
12520 (eval "$ac_link") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest$ac_exeext && {
12530 test "$cross_compiling" = yes ||
12531 $as_test_x conftest$ac_exeext
12532 }; then
12533 ac_cv_lib_intl_ngettext=yes
12534 else
12535 $as_echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_cv_lib_intl_ngettext=no
12539 fi
12541 rm -rf conftest.dSYM
12542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12543 conftest$ac_exeext conftest.$ac_ext
12544 LIBS=$ac_check_lib_save_LIBS
12545 fi
12546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12547 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12548 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12549 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12550 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12551 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12552 $as_echo_n "(cached) " >&6
12553 else
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-lintl $LIBS"
12556 cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h. */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12566 #ifdef __cplusplus
12567 extern "C"
12568 #endif
12569 char dgettext ();
12570 int
12571 main ()
12572 {
12573 return dgettext ();
12574 ;
12575 return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (ac_try="$ac_link"
12580 case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583 esac
12584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12585 $as_echo "$ac_try_echo") >&5
12586 (eval "$ac_link") 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest$ac_exeext && {
12596 test "$cross_compiling" = yes ||
12597 $as_test_x conftest$ac_exeext
12598 }; then
12599 ac_cv_lib_intl_dgettext=yes
12600 else
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_lib_intl_dgettext=no
12605 fi
12607 rm -rf conftest.dSYM
12608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12611 fi
12612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12613 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12614 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12615 gt_cv_func_dgettext_libintl=yes
12616 fi
12618 fi
12620 fi
12623 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12624 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12625 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12626 { $as_echo "$as_me:$LINENO: result: " >&5
12627 $as_echo "" >&6; }
12628 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12629 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12630 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12631 $as_echo_n "(cached) " >&6
12632 else
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-lintl -liconv $LIBS"
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char ngettext ();
12649 int
12650 main ()
12651 {
12652 return ngettext ();
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662 esac
12663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12664 $as_echo "$ac_try_echo") >&5
12665 (eval "$ac_link") 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } && {
12672 test -z "$ac_c_werror_flag" ||
12673 test ! -s conftest.err
12674 } && test -s conftest$ac_exeext && {
12675 test "$cross_compiling" = yes ||
12676 $as_test_x conftest$ac_exeext
12677 }; then
12678 ac_cv_lib_intl_ngettext=yes
12679 else
12680 $as_echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_lib_intl_ngettext=no
12684 fi
12686 rm -rf conftest.dSYM
12687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12690 fi
12691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12692 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12693 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12694 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12695 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12696 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12697 $as_echo_n "(cached) " >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lintl -liconv $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char dcgettext ();
12715 int
12716 main ()
12717 {
12718 return dcgettext ();
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12730 $as_echo "$ac_try_echo") >&5
12731 (eval "$ac_link") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest$ac_exeext && {
12741 test "$cross_compiling" = yes ||
12742 $as_test_x conftest$ac_exeext
12743 }; then
12744 ac_cv_lib_intl_dcgettext=yes
12745 else
12746 $as_echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_lib_intl_dcgettext=no
12750 fi
12752 rm -rf conftest.dSYM
12753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS=$ac_check_lib_save_LIBS
12756 fi
12757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12758 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12759 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
12760 gt_cv_func_dgettext_libintl=yes
12761 libintl_extra_libs=-liconv
12762 else
12763 :
12764 fi
12766 else
12767 :
12768 fi
12770 fi
12772 #
12773 # If we found libintl, then check in it for bind_textdomain_codeset();
12774 # we'll prefer libc if neither have bind_textdomain_codeset(),
12775 # and both have dgettext and ngettext
12776 #
12777 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12778 glib_save_LIBS="$LIBS"
12779 LIBS="$LIBS -lintl $libintl_extra_libs"
12780 unset ac_cv_func_bind_textdomain_codeset
12782 for ac_func in bind_textdomain_codeset
12783 do
12784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12786 $as_echo_n "checking for $ac_func... " >&6; }
12787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12788 $as_echo_n "(cached) " >&6
12789 else
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12798 #define $ac_func innocuous_$ac_func
12800 /* System header to define __stub macros and hopefully few prototypes,
12801 which can conflict with char $ac_func (); below.
12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 <limits.h> exists even on freestanding compilers. */
12805 #ifdef __STDC__
12806 # include <limits.h>
12807 #else
12808 # include <assert.h>
12809 #endif
12811 #undef $ac_func
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12816 #ifdef __cplusplus
12817 extern "C"
12818 #endif
12819 char $ac_func ();
12820 /* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823 #if defined __stub_$ac_func || defined __stub___$ac_func
12824 choke me
12825 #endif
12827 int
12828 main ()
12829 {
12830 return $ac_func ();
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (ac_try="$ac_link"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12842 $as_echo "$ac_try_echo") >&5
12843 (eval "$ac_link") 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } && {
12850 test -z "$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12852 } && test -s conftest$ac_exeext && {
12853 test "$cross_compiling" = yes ||
12854 $as_test_x conftest$ac_exeext
12855 }; then
12856 eval "$as_ac_var=yes"
12857 else
12858 $as_echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 eval "$as_ac_var=no"
12862 fi
12864 rm -rf conftest.dSYM
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12867 fi
12868 ac_res=`eval 'as_val=${'$as_ac_var'}
12869 $as_echo "$as_val"'`
12870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12871 $as_echo "$ac_res" >&6; }
12872 as_val=`eval 'as_val=${'$as_ac_var'}
12873 $as_echo "$as_val"'`
12874 if test "x$as_val" = x""yes; then
12875 cat >>confdefs.h <<_ACEOF
12876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12877 _ACEOF
12879 fi
12880 done
12882 LIBS="$glib_save_LIBS"
12884 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12885 gt_cv_func_dgettext_libc=no
12886 else
12887 if test "$gt_cv_func_dgettext_libc" = "yes" \
12888 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12889 gt_cv_func_dgettext_libintl=no
12890 fi
12891 fi
12892 fi
12893 fi
12895 if test "$gt_cv_func_dgettext_libc" = "yes" \
12896 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12897 gt_cv_have_gettext=yes
12898 fi
12900 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12901 INTLLIBS="-lintl $libintl_extra_libs"
12902 fi
12904 if test "$gt_cv_have_gettext" = "yes"; then
12906 cat >>confdefs.h <<\_ACEOF
12907 #define HAVE_GETTEXT 1
12908 _ACEOF
12910 # Extract the first word of "msgfmt", so it can be a program name with args.
12911 set dummy msgfmt; ac_word=$2
12912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_path_MSGFMT+set}" = set; then
12915 $as_echo_n "(cached) " >&6
12916 else
12917 case "$MSGFMT" in
12918 /*)
12919 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12920 ;;
12921 *)
12922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12923 for ac_dir in $PATH; do
12924 test -z "$ac_dir" && ac_dir=.
12925 if test -f $ac_dir/$ac_word; then
12926 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12927 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12928 break
12929 fi
12930 fi
12931 done
12932 IFS="$ac_save_ifs"
12933 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12934 ;;
12935 esac
12936 fi
12937 MSGFMT="$ac_cv_path_MSGFMT"
12938 if test "$MSGFMT" != "no"; then
12939 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12940 $as_echo "$MSGFMT" >&6; }
12941 else
12942 { $as_echo "$as_me:$LINENO: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945 if test "$MSGFMT" != "no"; then
12946 glib_save_LIBS="$LIBS"
12947 LIBS="$LIBS $INTLLIBS"
12949 for ac_func in dcgettext
12950 do
12951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12953 $as_echo_n "checking for $ac_func... " >&6; }
12954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12955 $as_echo_n "(cached) " >&6
12956 else
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12965 #define $ac_func innocuous_$ac_func
12967 /* System header to define __stub macros and hopefully few prototypes,
12968 which can conflict with char $ac_func (); below.
12969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12970 <limits.h> exists even on freestanding compilers. */
12972 #ifdef __STDC__
12973 # include <limits.h>
12974 #else
12975 # include <assert.h>
12976 #endif
12978 #undef $ac_func
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 char $ac_func ();
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined __stub_$ac_func || defined __stub___$ac_func
12991 choke me
12992 #endif
12994 int
12995 main ()
12996 {
12997 return $ac_func ();
12998 ;
12999 return 0;
13000 }
13001 _ACEOF
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (ac_try="$ac_link"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007 esac
13008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13009 $as_echo "$ac_try_echo") >&5
13010 (eval "$ac_link") 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest$ac_exeext && {
13020 test "$cross_compiling" = yes ||
13021 $as_test_x conftest$ac_exeext
13022 }; then
13023 eval "$as_ac_var=yes"
13024 else
13025 $as_echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 eval "$as_ac_var=no"
13029 fi
13031 rm -rf conftest.dSYM
13032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13033 conftest$ac_exeext conftest.$ac_ext
13034 fi
13035 ac_res=`eval 'as_val=${'$as_ac_var'}
13036 $as_echo "$as_val"'`
13037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13038 $as_echo "$ac_res" >&6; }
13039 as_val=`eval 'as_val=${'$as_ac_var'}
13040 $as_echo "$as_val"'`
13041 if test "x$as_val" = x""yes; then
13042 cat >>confdefs.h <<_ACEOF
13043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13044 _ACEOF
13046 fi
13047 done
13049 MSGFMT_OPTS=
13050 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
13051 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13052 cat >conftest.foo <<_ACEOF
13054 msgid ""
13055 msgstr ""
13056 "Content-Type: text/plain; charset=UTF-8\n"
13057 "Project-Id-Version: test 1.0\n"
13058 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13059 "Last-Translator: test <foo@bar.xx>\n"
13060 "Language-Team: C <LL@li.org>\n"
13061 "MIME-Version: 1.0\n"
13062 "Content-Transfer-Encoding: 8bit\n"
13064 _ACEOF
13065 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
13066 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13067 ac_status=$?
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; then
13070 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
13071 $as_echo "yes" >&6; }
13072 else { $as_echo "$as_me:$LINENO: result: no" >&5
13073 $as_echo "no" >&6; }
13074 echo "$as_me: failed input was:" >&5
13075 sed 's/^/| /' conftest.foo >&5
13076 fi
13078 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13079 set dummy gmsgfmt; ac_word=$2
13080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13083 $as_echo_n "(cached) " >&6
13084 else
13085 case $GMSGFMT in
13086 [\\/]* | ?:[\\/]*)
13087 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13088 ;;
13089 *)
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13092 do
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 break 2
13100 fi
13101 done
13102 done
13103 IFS=$as_save_IFS
13105 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13106 ;;
13107 esac
13108 fi
13109 GMSGFMT=$ac_cv_path_GMSGFMT
13110 if test -n "$GMSGFMT"; then
13111 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13112 $as_echo "$GMSGFMT" >&6; }
13113 else
13114 { $as_echo "$as_me:$LINENO: result: no" >&5
13115 $as_echo "no" >&6; }
13116 fi
13119 # Extract the first word of "xgettext", so it can be a program name with args.
13120 set dummy xgettext; ac_word=$2
13121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13124 $as_echo_n "(cached) " >&6
13125 else
13126 case "$XGETTEXT" in
13127 /*)
13128 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13129 ;;
13130 *)
13131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13132 for ac_dir in $PATH; do
13133 test -z "$ac_dir" && ac_dir=.
13134 if test -f $ac_dir/$ac_word; then
13135 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13136 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13137 break
13138 fi
13139 fi
13140 done
13141 IFS="$ac_save_ifs"
13142 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13143 ;;
13144 esac
13145 fi
13146 XGETTEXT="$ac_cv_path_XGETTEXT"
13147 if test "$XGETTEXT" != ":"; then
13148 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13149 $as_echo "$XGETTEXT" >&6; }
13150 else
13151 { $as_echo "$as_me:$LINENO: result: no" >&5
13152 $as_echo "no" >&6; }
13153 fi
13155 cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13162 int
13163 main ()
13164 {
13165 extern int _nl_msg_cat_cntr;
13166 return _nl_msg_cat_cntr
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_link") 2>conftest.er1
13180 ac_status=$?
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest$ac_exeext && {
13189 test "$cross_compiling" = yes ||
13190 $as_test_x conftest$ac_exeext
13191 }; then
13192 CATOBJEXT=.gmo
13193 DATADIRNAME=share
13194 else
13195 $as_echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 case $host in
13199 *-*-solaris*)
13200 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13201 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
13202 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13203 $as_echo_n "(cached) " >&6
13204 else
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h. */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13213 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13215 /* System header to define __stub macros and hopefully few prototypes,
13216 which can conflict with char bind_textdomain_codeset (); below.
13217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13218 <limits.h> exists even on freestanding compilers. */
13220 #ifdef __STDC__
13221 # include <limits.h>
13222 #else
13223 # include <assert.h>
13224 #endif
13226 #undef bind_textdomain_codeset
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 char bind_textdomain_codeset ();
13235 /* The GNU C library defines this for functions which it implements
13236 to always fail with ENOSYS. Some functions are actually named
13237 something starting with __ and the normal name is an alias. */
13238 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13239 choke me
13240 #endif
13242 int
13243 main ()
13244 {
13245 return bind_textdomain_codeset ();
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255 esac
13256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257 $as_echo "$ac_try_echo") >&5
13258 (eval "$ac_link") 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && {
13265 test -z "$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 } && test -s conftest$ac_exeext && {
13268 test "$cross_compiling" = yes ||
13269 $as_test_x conftest$ac_exeext
13270 }; then
13271 ac_cv_func_bind_textdomain_codeset=yes
13272 else
13273 $as_echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_cv_func_bind_textdomain_codeset=no
13277 fi
13279 rm -rf conftest.dSYM
13280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13281 conftest$ac_exeext conftest.$ac_ext
13282 fi
13283 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13284 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
13285 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
13286 CATOBJEXT=.gmo
13287 DATADIRNAME=share
13288 else
13289 CATOBJEXT=.mo
13290 DATADIRNAME=lib
13291 fi
13293 ;;
13294 *)
13295 CATOBJEXT=.mo
13296 DATADIRNAME=lib
13297 ;;
13298 esac
13299 fi
13301 rm -rf conftest.dSYM
13302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LIBS="$glib_save_LIBS"
13305 INSTOBJEXT=.mo
13306 else
13307 gt_cv_have_gettext=no
13308 fi
13309 fi
13311 fi
13315 if test "$gt_cv_have_gettext" = "yes" ; then
13317 cat >>confdefs.h <<\_ACEOF
13318 #define ENABLE_NLS 1
13319 _ACEOF
13321 fi
13323 if test "$XGETTEXT" != ":"; then
13324 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13325 : ;
13326 else
13327 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13328 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13329 XGETTEXT=":"
13330 fi
13331 fi
13333 # We need to process the po/ directory.
13334 POSUB=po
13336 ac_config_commands="$ac_config_commands default-1"
13339 for lang in $ALL_LINGUAS; do
13340 GMOFILES="$GMOFILES $lang.gmo"
13341 POFILES="$POFILES $lang.po"
13342 done
13356 if test "$gt_cv_have_gettext" = "yes"; then
13357 if test "x$ALL_LINGUAS" = "x"; then
13358 LINGUAS=
13359 else
13360 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13361 $as_echo_n "checking for catalogs to be installed... " >&6; }
13362 NEW_LINGUAS=
13363 for presentlang in $ALL_LINGUAS; do
13364 useit=no
13365 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13366 desiredlanguages="$LINGUAS"
13367 else
13368 desiredlanguages="$ALL_LINGUAS"
13369 fi
13370 for desiredlang in $desiredlanguages; do
13371 # Use the presentlang catalog if desiredlang is
13372 # a. equal to presentlang, or
13373 # b. a variant of presentlang (because in this case,
13374 # presentlang can be used as a fallback for messages
13375 # which are not translated in the desiredlang catalog).
13376 case "$desiredlang" in
13377 "$presentlang"*) useit=yes;;
13378 esac
13379 done
13380 if test $useit = yes; then
13381 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13382 fi
13383 done
13384 LINGUAS=$NEW_LINGUAS
13385 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13386 $as_echo "$LINGUAS" >&6; }
13387 fi
13389 if test -n "$LINGUAS"; then
13390 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13391 fi
13392 fi
13394 MKINSTALLDIRS=
13395 if test -n "$ac_aux_dir"; then
13396 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13397 fi
13398 if test -z "$MKINSTALLDIRS"; then
13399 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13400 fi
13403 test -d po || mkdir po
13404 if test "x$srcdir" != "x."; then
13405 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13406 posrcprefix="$srcdir/"
13407 else
13408 posrcprefix="../$srcdir/"
13409 fi
13410 else
13411 posrcprefix="../"
13412 fi
13413 rm -f po/POTFILES
13414 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13415 < $srcdir/po/POTFILES.in > po/POTFILES
13418 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13420 cat >confcache <<\_ACEOF
13421 # This file is a shell script that caches the results of configure
13422 # tests run on this system so they can be shared between configure
13423 # scripts and configure runs, see configure's option --config-cache.
13424 # It is not useful on other systems. If it contains results you don't
13425 # want to keep, you may remove or edit it.
13426 #
13427 # config.status only pays attention to the cache file if you give it
13428 # the --recheck option to rerun configure.
13429 #
13430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13432 # following values.
13434 _ACEOF
13436 # The following way of writing the cache mishandles newlines in values,
13437 # but we know of no workaround that is simple, portable, and efficient.
13438 # So, we kill variables containing newlines.
13439 # Ultrix sh set writes to stderr and can't be redirected directly,
13440 # and sets the high bit in the cache file unless we assign to the vars.
13441 (
13442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13443 eval ac_val=\$$ac_var
13444 case $ac_val in #(
13445 *${as_nl}*)
13446 case $ac_var in #(
13447 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13449 esac
13450 case $ac_var in #(
13451 _ | IFS | as_nl) ;; #(
13452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13453 *) $as_unset $ac_var ;;
13454 esac ;;
13455 esac
13456 done
13458 (set) 2>&1 |
13459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13460 *${as_nl}ac_space=\ *)
13461 # `set' does not quote correctly, so add quotes (double-quote
13462 # substitution turns \\\\ into \\, and sed turns \\ into \).
13463 sed -n \
13464 "s/'/'\\\\''/g;
13465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13466 ;; #(
13467 *)
13468 # `set' quotes correctly as required by POSIX, so do not add quotes.
13469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13470 ;;
13471 esac |
13472 sort
13473 ) |
13474 sed '
13475 /^ac_cv_env_/b end
13476 t clear
13477 :clear
13478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13479 t end
13480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13481 :end' >>confcache
13482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13483 if test -w "$cache_file"; then
13484 test "x$cache_file" != "x/dev/null" &&
13485 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13486 $as_echo "$as_me: updating cache $cache_file" >&6;}
13487 cat confcache >$cache_file
13488 else
13489 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13491 fi
13492 fi
13493 rm -f confcache
13495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13496 # Let make expand exec_prefix.
13497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13499 DEFS=-DHAVE_CONFIG_H
13501 ac_libobjs=
13502 ac_ltlibobjs=
13503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13504 # 1. Remove the extension, and $U if already installed.
13505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13508 # will be set to the directory where LIBOBJS objects are built.
13509 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13510 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13511 done
13512 LIBOBJS=$ac_libobjs
13514 LTLIBOBJS=$ac_ltlibobjs
13517 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13518 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13519 Usually this means the macro was only invoked conditionally." >&5
13520 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13521 Usually this means the macro was only invoked conditionally." >&2;}
13522 { (exit 1); exit 1; }; }
13523 fi
13524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13525 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13526 Usually this means the macro was only invoked conditionally." >&5
13527 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13528 Usually this means the macro was only invoked conditionally." >&2;}
13529 { (exit 1); exit 1; }; }
13530 fi
13531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13532 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13533 Usually this means the macro was only invoked conditionally." >&5
13534 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13535 Usually this means the macro was only invoked conditionally." >&2;}
13536 { (exit 1); exit 1; }; }
13537 fi
13538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13539 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13540 Usually this means the macro was only invoked conditionally." >&5
13541 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13542 Usually this means the macro was only invoked conditionally." >&2;}
13543 { (exit 1); exit 1; }; }
13544 fi
13545 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13546 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13547 Usually this means the macro was only invoked conditionally." >&5
13548 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13549 Usually this means the macro was only invoked conditionally." >&2;}
13550 { (exit 1); exit 1; }; }
13551 fi
13552 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13553 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13554 Usually this means the macro was only invoked conditionally." >&5
13555 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13556 Usually this means the macro was only invoked conditionally." >&2;}
13557 { (exit 1); exit 1; }; }
13558 fi
13559 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13560 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13561 Usually this means the macro was only invoked conditionally." >&5
13562 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13563 Usually this means the macro was only invoked conditionally." >&2;}
13564 { (exit 1); exit 1; }; }
13565 fi
13566 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
13567 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
13568 Usually this means the macro was only invoked conditionally." >&5
13569 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
13570 Usually this means the macro was only invoked conditionally." >&2;}
13571 { (exit 1); exit 1; }; }
13572 fi
13573 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13574 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13575 Usually this means the macro was only invoked conditionally." >&5
13576 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13577 Usually this means the macro was only invoked conditionally." >&2;}
13578 { (exit 1); exit 1; }; }
13579 fi
13580 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13581 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13582 Usually this means the macro was only invoked conditionally." >&5
13583 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13584 Usually this means the macro was only invoked conditionally." >&2;}
13585 { (exit 1); exit 1; }; }
13586 fi
13587 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13588 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13589 Usually this means the macro was only invoked conditionally." >&5
13590 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13591 Usually this means the macro was only invoked conditionally." >&2;}
13592 { (exit 1); exit 1; }; }
13593 fi
13594 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13595 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13596 Usually this means the macro was only invoked conditionally." >&5
13597 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13598 Usually this means the macro was only invoked conditionally." >&2;}
13599 { (exit 1); exit 1; }; }
13600 fi
13601 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13602 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13603 Usually this means the macro was only invoked conditionally." >&5
13604 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13605 Usually this means the macro was only invoked conditionally." >&2;}
13606 { (exit 1); exit 1; }; }
13607 fi
13608 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13609 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13610 Usually this means the macro was only invoked conditionally." >&5
13611 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13612 Usually this means the macro was only invoked conditionally." >&2;}
13613 { (exit 1); exit 1; }; }
13614 fi
13615 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13616 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13617 Usually this means the macro was only invoked conditionally." >&5
13618 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13619 Usually this means the macro was only invoked conditionally." >&2;}
13620 { (exit 1); exit 1; }; }
13621 fi
13622 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13623 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13624 Usually this means the macro was only invoked conditionally." >&5
13625 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13626 Usually this means the macro was only invoked conditionally." >&2;}
13627 { (exit 1); exit 1; }; }
13628 fi
13629 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13630 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13631 Usually this means the macro was only invoked conditionally." >&5
13632 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13633 Usually this means the macro was only invoked conditionally." >&2;}
13634 { (exit 1); exit 1; }; }
13635 fi
13636 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13637 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13638 Usually this means the macro was only invoked conditionally." >&5
13639 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13640 Usually this means the macro was only invoked conditionally." >&2;}
13641 { (exit 1); exit 1; }; }
13642 fi
13643 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13644 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13645 Usually this means the macro was only invoked conditionally." >&5
13646 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13647 Usually this means the macro was only invoked conditionally." >&2;}
13648 { (exit 1); exit 1; }; }
13649 fi
13650 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13651 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13652 Usually this means the macro was only invoked conditionally." >&5
13653 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13654 Usually this means the macro was only invoked conditionally." >&2;}
13655 { (exit 1); exit 1; }; }
13656 fi
13657 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13658 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13659 Usually this means the macro was only invoked conditionally." >&5
13660 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13661 Usually this means the macro was only invoked conditionally." >&2;}
13662 { (exit 1); exit 1; }; }
13663 fi
13664 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13665 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13666 Usually this means the macro was only invoked conditionally." >&5
13667 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13668 Usually this means the macro was only invoked conditionally." >&2;}
13669 { (exit 1); exit 1; }; }
13670 fi
13671 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13672 { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13673 Usually this means the macro was only invoked conditionally." >&5
13674 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13675 Usually this means the macro was only invoked conditionally." >&2;}
13676 { (exit 1); exit 1; }; }
13677 fi
13678 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13679 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13680 Usually this means the macro was only invoked conditionally." >&5
13681 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13682 Usually this means the macro was only invoked conditionally." >&2;}
13683 { (exit 1); exit 1; }; }
13684 fi
13685 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13686 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13687 Usually this means the macro was only invoked conditionally." >&5
13688 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13689 Usually this means the macro was only invoked conditionally." >&2;}
13690 { (exit 1); exit 1; }; }
13691 fi
13693 : ${CONFIG_STATUS=./config.status}
13694 ac_write_fail=0
13695 ac_clean_files_save=$ac_clean_files
13696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13697 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13698 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13699 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13700 #! $SHELL
13701 # Generated by $as_me.
13702 # Run this file to recreate the current configuration.
13703 # Compiler output produced by configure, useful for debugging
13704 # configure, is in config.log if it exists.
13706 debug=false
13707 ac_cs_recheck=false
13708 ac_cs_silent=false
13709 SHELL=\${CONFIG_SHELL-$SHELL}
13710 _ACEOF
13712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713 ## --------------------- ##
13714 ## M4sh Initialization. ##
13715 ## --------------------- ##
13717 # Be more Bourne compatible
13718 DUALCASE=1; export DUALCASE # for MKS sh
13719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13720 emulate sh
13721 NULLCMD=:
13722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13723 # is contrary to our usage. Disable this feature.
13724 alias -g '${1+"$@"}'='"$@"'
13725 setopt NO_GLOB_SUBST
13726 else
13727 case `(set -o) 2>/dev/null` in
13728 *posix*) set -o posix ;;
13729 esac
13731 fi
13736 # PATH needs CR
13737 # Avoid depending upon Character Ranges.
13738 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13739 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13740 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13741 as_cr_digits='0123456789'
13742 as_cr_alnum=$as_cr_Letters$as_cr_digits
13744 as_nl='
13745 '
13746 export as_nl
13747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13748 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13751 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13752 as_echo='printf %s\n'
13753 as_echo_n='printf %s'
13754 else
13755 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13756 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13757 as_echo_n='/usr/ucb/echo -n'
13758 else
13759 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13760 as_echo_n_body='eval
13761 arg=$1;
13762 case $arg in
13763 *"$as_nl"*)
13764 expr "X$arg" : "X\\(.*\\)$as_nl";
13765 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13766 esac;
13767 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13768 '
13769 export as_echo_n_body
13770 as_echo_n='sh -c $as_echo_n_body as_echo'
13771 fi
13772 export as_echo_body
13773 as_echo='sh -c $as_echo_body as_echo'
13774 fi
13776 # The user is always right.
13777 if test "${PATH_SEPARATOR+set}" != set; then
13778 PATH_SEPARATOR=:
13779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13781 PATH_SEPARATOR=';'
13782 }
13783 fi
13785 # Support unset when possible.
13786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13787 as_unset=unset
13788 else
13789 as_unset=false
13790 fi
13793 # IFS
13794 # We need space, tab and new line, in precisely that order. Quoting is
13795 # there to prevent editors from complaining about space-tab.
13796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13797 # splitting by setting IFS to empty value.)
13798 IFS=" "" $as_nl"
13800 # Find who we are. Look in the path if we contain no directory separator.
13801 case $0 in
13802 *[\\/]* ) as_myself=$0 ;;
13803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13809 done
13810 IFS=$as_save_IFS
13812 ;;
13813 esac
13814 # We did not find ourselves, most probably we were run as `sh COMMAND'
13815 # in which case we are not to be found in the path.
13816 if test "x$as_myself" = x; then
13817 as_myself=$0
13818 fi
13819 if test ! -f "$as_myself"; then
13820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13821 { (exit 1); exit 1; }
13822 fi
13824 # Work around bugs in pre-3.0 UWIN ksh.
13825 for as_var in ENV MAIL MAILPATH
13826 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13827 done
13828 PS1='$ '
13829 PS2='> '
13830 PS4='+ '
13832 # NLS nuisances.
13833 LC_ALL=C
13834 export LC_ALL
13835 LANGUAGE=C
13836 export LANGUAGE
13838 # Required to use basename.
13839 if expr a : '\(a\)' >/dev/null 2>&1 &&
13840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13841 as_expr=expr
13842 else
13843 as_expr=false
13844 fi
13846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13847 as_basename=basename
13848 else
13849 as_basename=false
13850 fi
13853 # Name of the executable.
13854 as_me=`$as_basename -- "$0" ||
13855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13856 X"$0" : 'X\(//\)$' \| \
13857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13858 $as_echo X/"$0" |
13859 sed '/^.*\/\([^/][^/]*\)\/*$/{
13860 s//\1/
13861 q
13862 }
13863 /^X\/\(\/\/\)$/{
13864 s//\1/
13865 q
13866 }
13867 /^X\/\(\/\).*/{
13868 s//\1/
13869 q
13870 }
13871 s/.*/./; q'`
13873 # CDPATH.
13874 $as_unset CDPATH
13878 as_lineno_1=$LINENO
13879 as_lineno_2=$LINENO
13880 test "x$as_lineno_1" != "x$as_lineno_2" &&
13881 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13884 # uniformly replaced by the line number. The first 'sed' inserts a
13885 # line-number line after each line using $LINENO; the second 'sed'
13886 # does the real work. The second script uses 'N' to pair each
13887 # line-number line with the line containing $LINENO, and appends
13888 # trailing '-' during substitution so that $LINENO is not a special
13889 # case at line end.
13890 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13891 # scripts with optimization help from Paolo Bonzini. Blame Lee
13892 # E. McMahon (1931-1989) for sed's syntax. :-)
13893 sed -n '
13894 p
13895 /[$]LINENO/=
13896 ' <$as_myself |
13897 sed '
13898 s/[$]LINENO.*/&-/
13899 t lineno
13900 b
13901 :lineno
13902 N
13903 :loop
13904 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13905 t loop
13906 s/-\n.*//
13907 ' >$as_me.lineno &&
13908 chmod +x "$as_me.lineno" ||
13909 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13910 { (exit 1); exit 1; }; }
13912 # Don't try to exec as it changes $[0], causing all sort of problems
13913 # (the dirname of $[0] is not the place where we might find the
13914 # original and so on. Autoconf is especially sensitive to this).
13915 . "./$as_me.lineno"
13916 # Exit status is that of the last command.
13917 exit
13918 }
13921 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13922 as_dirname=dirname
13923 else
13924 as_dirname=false
13925 fi
13927 ECHO_C= ECHO_N= ECHO_T=
13928 case `echo -n x` in
13929 -n*)
13930 case `echo 'x\c'` in
13931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13932 *) ECHO_C='\c';;
13933 esac;;
13934 *)
13935 ECHO_N='-n';;
13936 esac
13937 if expr a : '\(a\)' >/dev/null 2>&1 &&
13938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13939 as_expr=expr
13940 else
13941 as_expr=false
13942 fi
13944 rm -f conf$$ conf$$.exe conf$$.file
13945 if test -d conf$$.dir; then
13946 rm -f conf$$.dir/conf$$.file
13947 else
13948 rm -f conf$$.dir
13949 mkdir conf$$.dir 2>/dev/null
13950 fi
13951 if (echo >conf$$.file) 2>/dev/null; then
13952 if ln -s conf$$.file conf$$ 2>/dev/null; then
13953 as_ln_s='ln -s'
13954 # ... but there are two gotchas:
13955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13957 # In both cases, we have to default to `cp -p'.
13958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13959 as_ln_s='cp -p'
13960 elif ln conf$$.file conf$$ 2>/dev/null; then
13961 as_ln_s=ln
13962 else
13963 as_ln_s='cp -p'
13964 fi
13965 else
13966 as_ln_s='cp -p'
13967 fi
13968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13969 rmdir conf$$.dir 2>/dev/null
13971 if mkdir -p . 2>/dev/null; then
13972 as_mkdir_p=:
13973 else
13974 test -d ./-p && rmdir ./-p
13975 as_mkdir_p=false
13976 fi
13978 if test -x / >/dev/null 2>&1; then
13979 as_test_x='test -x'
13980 else
13981 if ls -dL / >/dev/null 2>&1; then
13982 as_ls_L_option=L
13983 else
13984 as_ls_L_option=
13985 fi
13986 as_test_x='
13987 eval sh -c '\''
13988 if test -d "$1"; then
13989 test -d "$1/.";
13990 else
13991 case $1 in
13992 -*)set "./$1";;
13993 esac;
13994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13995 ???[sx]*):;;*)false;;esac;fi
13996 '\'' sh
13997 '
13998 fi
13999 as_executable_p=$as_test_x
14001 # Sed expression to map a string onto a valid CPP name.
14002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14004 # Sed expression to map a string onto a valid variable name.
14005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14008 exec 6>&1
14010 # Save the log message, to keep $[0] and so on meaningful, and to
14011 # report actual input values of CONFIG_FILES etc. instead of their
14012 # values after options handling.
14013 ac_log="
14014 This file was extended by $as_me, which was
14015 generated by GNU Autoconf 2.63. Invocation command line was
14017 CONFIG_FILES = $CONFIG_FILES
14018 CONFIG_HEADERS = $CONFIG_HEADERS
14019 CONFIG_LINKS = $CONFIG_LINKS
14020 CONFIG_COMMANDS = $CONFIG_COMMANDS
14021 $ $0 $@
14023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14024 "
14026 _ACEOF
14028 case $ac_config_files in *"
14029 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14030 esac
14032 case $ac_config_headers in *"
14033 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14034 esac
14037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14038 # Files that config.status was made for.
14039 config_files="$ac_config_files"
14040 config_headers="$ac_config_headers"
14041 config_commands="$ac_config_commands"
14043 _ACEOF
14045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14046 ac_cs_usage="\
14047 \`$as_me' instantiates files from templates according to the
14048 current configuration.
14050 Usage: $0 [OPTION]... [FILE]...
14052 -h, --help print this help, then exit
14053 -V, --version print version number and configuration settings, then exit
14054 -q, --quiet, --silent
14055 do not print progress messages
14056 -d, --debug don't remove temporary files
14057 --recheck update $as_me by reconfiguring in the same conditions
14058 --file=FILE[:TEMPLATE]
14059 instantiate the configuration file FILE
14060 --header=FILE[:TEMPLATE]
14061 instantiate the configuration header FILE
14063 Configuration files:
14064 $config_files
14066 Configuration headers:
14067 $config_headers
14069 Configuration commands:
14070 $config_commands
14072 Report bugs to <bug-autoconf@gnu.org>."
14074 _ACEOF
14075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14076 ac_cs_version="\\
14077 config.status
14078 configured by $0, generated by GNU Autoconf 2.63,
14079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14081 Copyright (C) 2008 Free Software Foundation, Inc.
14082 This config.status script is free software; the Free Software Foundation
14083 gives unlimited permission to copy, distribute and modify it."
14085 ac_pwd='$ac_pwd'
14086 srcdir='$srcdir'
14087 INSTALL='$INSTALL'
14088 AWK='$AWK'
14089 test -n "\$AWK" || AWK=awk
14090 _ACEOF
14092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093 # The default lists apply if the user does not specify any file.
14094 ac_need_defaults=:
14095 while test $# != 0
14096 do
14097 case $1 in
14098 --*=*)
14099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14101 ac_shift=:
14102 ;;
14103 *)
14104 ac_option=$1
14105 ac_optarg=$2
14106 ac_shift=shift
14107 ;;
14108 esac
14110 case $ac_option in
14111 # Handling of the options.
14112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14113 ac_cs_recheck=: ;;
14114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14115 $as_echo "$ac_cs_version"; exit ;;
14116 --debug | --debu | --deb | --de | --d | -d )
14117 debug=: ;;
14118 --file | --fil | --fi | --f )
14119 $ac_shift
14120 case $ac_optarg in
14121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14122 esac
14123 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14124 ac_need_defaults=false;;
14125 --header | --heade | --head | --hea )
14126 $ac_shift
14127 case $ac_optarg in
14128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14129 esac
14130 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14131 ac_need_defaults=false;;
14132 --he | --h)
14133 # Conflict between --help and --header
14134 { $as_echo "$as_me: error: ambiguous option: $1
14135 Try \`$0 --help' for more information." >&2
14136 { (exit 1); exit 1; }; };;
14137 --help | --hel | -h )
14138 $as_echo "$ac_cs_usage"; exit ;;
14139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14141 ac_cs_silent=: ;;
14143 # This is an error.
14144 -*) { $as_echo "$as_me: error: unrecognized option: $1
14145 Try \`$0 --help' for more information." >&2
14146 { (exit 1); exit 1; }; } ;;
14148 *) ac_config_targets="$ac_config_targets $1"
14149 ac_need_defaults=false ;;
14151 esac
14152 shift
14153 done
14155 ac_configure_extra_args=
14157 if $ac_cs_silent; then
14158 exec 6>/dev/null
14159 ac_configure_extra_args="$ac_configure_extra_args --silent"
14160 fi
14162 _ACEOF
14163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164 if \$ac_cs_recheck; then
14165 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14166 shift
14167 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14168 CONFIG_SHELL='$SHELL'
14169 export CONFIG_SHELL
14170 exec "\$@"
14171 fi
14173 _ACEOF
14174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14175 exec 5>>config.log
14176 {
14177 echo
14178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14179 ## Running $as_me. ##
14180 _ASBOX
14181 $as_echo "$ac_log"
14182 } >&5
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 #
14187 # INIT-COMMANDS
14188 #
14189 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14192 _ACEOF
14194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196 # Handling of arguments.
14197 for ac_config_target in $ac_config_targets
14198 do
14199 case $ac_config_target in
14200 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14201 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14202 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14204 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14205 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14206 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14207 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
14209 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14210 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14211 { (exit 1); exit 1; }; };;
14212 esac
14213 done
14216 # If the user did not use the arguments to specify the items to instantiate,
14217 # then the envvar interface is used. Set only those that are not.
14218 # We use the long form for the default assignment because of an extremely
14219 # bizarre bug on SunOS 4.1.3.
14220 if $ac_need_defaults; then
14221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14224 fi
14226 # Have a temporary directory for convenience. Make it in the build tree
14227 # simply because there is no reason against having it here, and in addition,
14228 # creating and moving files from /tmp can sometimes cause problems.
14229 # Hook for its removal unless debugging.
14230 # Note that there is a small window in which the directory will not be cleaned:
14231 # after its creation but before its name has been assigned to `$tmp'.
14232 $debug ||
14233 {
14234 tmp=
14235 trap 'exit_status=$?
14236 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14237 ' 0
14238 trap '{ (exit 1); exit 1; }' 1 2 13 15
14239 }
14240 # Create a (secure) tmp directory for tmp files.
14242 {
14243 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14244 test -n "$tmp" && test -d "$tmp"
14245 } ||
14246 {
14247 tmp=./conf$$-$RANDOM
14248 (umask 077 && mkdir "$tmp")
14249 } ||
14250 {
14251 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14252 { (exit 1); exit 1; }
14253 }
14255 # Set up the scripts for CONFIG_FILES section.
14256 # No need to generate them if there are no CONFIG_FILES.
14257 # This happens for instance with `./config.status config.h'.
14258 if test -n "$CONFIG_FILES"; then
14261 ac_cr='
14262 '
14263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14265 ac_cs_awk_cr='\\r'
14266 else
14267 ac_cs_awk_cr=$ac_cr
14268 fi
14270 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14271 _ACEOF
14274 {
14275 echo "cat >conf$$subs.awk <<_ACEOF" &&
14276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14277 echo "_ACEOF"
14278 } >conf$$subs.sh ||
14279 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14280 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14281 { (exit 1); exit 1; }; }
14282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14283 ac_delim='%!_!# '
14284 for ac_last_try in false false false false false :; do
14285 . ./conf$$subs.sh ||
14286 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14287 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14288 { (exit 1); exit 1; }; }
14290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14291 if test $ac_delim_n = $ac_delim_num; then
14292 break
14293 elif $ac_last_try; then
14294 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14295 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14296 { (exit 1); exit 1; }; }
14297 else
14298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14299 fi
14300 done
14301 rm -f conf$$subs.sh
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14304 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14305 _ACEOF
14306 sed -n '
14307 h
14308 s/^/S["/; s/!.*/"]=/
14309 p
14310 g
14311 s/^[^!]*!//
14312 :repl
14313 t repl
14314 s/'"$ac_delim"'$//
14315 t delim
14316 :nl
14317 h
14318 s/\(.\{148\}\).*/\1/
14319 t more1
14320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14321 p
14322 n
14323 b repl
14324 :more1
14325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14326 p
14327 g
14328 s/.\{148\}//
14329 t nl
14330 :delim
14331 h
14332 s/\(.\{148\}\).*/\1/
14333 t more2
14334 s/["\\]/\\&/g; s/^/"/; s/$/"/
14335 p
14336 b
14337 :more2
14338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14339 p
14340 g
14341 s/.\{148\}//
14342 t delim
14343 ' <conf$$subs.awk | sed '
14344 /^[^""]/{
14345 N
14346 s/\n//
14347 }
14348 ' >>$CONFIG_STATUS || ac_write_fail=1
14349 rm -f conf$$subs.awk
14350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14351 _ACAWK
14352 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14353 for (key in S) S_is_set[key] = 1
14354 FS = ""
14356 }
14357 {
14358 line = $ 0
14359 nfields = split(line, field, "@")
14360 substed = 0
14361 len = length(field[1])
14362 for (i = 2; i < nfields; i++) {
14363 key = field[i]
14364 keylen = length(key)
14365 if (S_is_set[key]) {
14366 value = S[key]
14367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14368 len += length(value) + length(field[++i])
14369 substed = 1
14370 } else
14371 len += 1 + keylen
14372 }
14374 print line
14375 }
14377 _ACAWK
14378 _ACEOF
14379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14382 else
14383 cat
14384 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14385 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14386 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14387 { (exit 1); exit 1; }; }
14388 _ACEOF
14390 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14391 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14392 # trailing colons and then remove the whole line if VPATH becomes empty
14393 # (actually we leave an empty line to preserve line numbers).
14394 if test "x$srcdir" = x.; then
14395 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14396 s/:*\$(srcdir):*/:/
14397 s/:*\${srcdir}:*/:/
14398 s/:*@srcdir@:*/:/
14399 s/^\([^=]*=[ ]*\):*/\1/
14400 s/:*$//
14401 s/^[^=]*=[ ]*$//
14402 }'
14403 fi
14405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14406 fi # test -n "$CONFIG_FILES"
14408 # Set up the scripts for CONFIG_HEADERS section.
14409 # No need to generate them if there are no CONFIG_HEADERS.
14410 # This happens for instance with `./config.status Makefile'.
14411 if test -n "$CONFIG_HEADERS"; then
14412 cat >"$tmp/defines.awk" <<\_ACAWK ||
14413 BEGIN {
14414 _ACEOF
14416 # Transform confdefs.h into an awk script `defines.awk', embedded as
14417 # here-document in config.status, that substitutes the proper values into
14418 # config.h.in to produce config.h.
14420 # Create a delimiter string that does not exist in confdefs.h, to ease
14421 # handling of long lines.
14422 ac_delim='%!_!# '
14423 for ac_last_try in false false :; do
14424 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14425 if test -z "$ac_t"; then
14426 break
14427 elif $ac_last_try; then
14428 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14429 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14430 { (exit 1); exit 1; }; }
14431 else
14432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14433 fi
14434 done
14436 # For the awk script, D is an array of macro values keyed by name,
14437 # likewise P contains macro parameters if any. Preserve backslash
14438 # newline sequences.
14440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14441 sed -n '
14442 s/.\{148\}/&'"$ac_delim"'/g
14443 t rset
14444 :rset
14445 s/^[ ]*#[ ]*define[ ][ ]*/ /
14446 t def
14447 d
14448 :def
14449 s/\\$//
14450 t bsnl
14451 s/["\\]/\\&/g
14452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14453 D["\1"]=" \3"/p
14454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14455 d
14456 :bsnl
14457 s/["\\]/\\&/g
14458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14459 D["\1"]=" \3\\\\\\n"\\/p
14460 t cont
14461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14462 t cont
14463 d
14464 :cont
14465 n
14466 s/.\{148\}/&'"$ac_delim"'/g
14467 t clear
14468 :clear
14469 s/\\$//
14470 t bsnlc
14471 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14472 d
14473 :bsnlc
14474 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14475 b cont
14476 ' <confdefs.h | sed '
14477 s/'"$ac_delim"'/"\\\
14478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14481 for (key in D) D_is_set[key] = 1
14482 FS = ""
14483 }
14484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14485 line = \$ 0
14486 split(line, arg, " ")
14487 if (arg[1] == "#") {
14488 defundef = arg[2]
14489 mac1 = arg[3]
14490 } else {
14491 defundef = substr(arg[1], 2)
14492 mac1 = arg[2]
14493 }
14494 split(mac1, mac2, "(") #)
14495 macro = mac2[1]
14496 prefix = substr(line, 1, index(line, defundef) - 1)
14497 if (D_is_set[macro]) {
14498 # Preserve the white space surrounding the "#".
14499 print prefix "define", macro P[macro] D[macro]
14500 next
14501 } else {
14502 # Replace #undef with comments. This is necessary, for example,
14503 # in the case of _POSIX_SOURCE, which is predefined and required
14504 # on some systems where configure will not decide to define it.
14505 if (defundef == "undef") {
14506 print "/*", prefix defundef, macro, "*/"
14507 next
14508 }
14509 }
14510 }
14511 { print }
14512 _ACAWK
14513 _ACEOF
14514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14515 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14516 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14517 { (exit 1); exit 1; }; }
14518 fi # test -n "$CONFIG_HEADERS"
14521 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14522 shift
14523 for ac_tag
14524 do
14525 case $ac_tag in
14526 :[FHLC]) ac_mode=$ac_tag; continue;;
14527 esac
14528 case $ac_mode$ac_tag in
14529 :[FHL]*:*);;
14530 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14531 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14532 { (exit 1); exit 1; }; };;
14533 :[FH]-) ac_tag=-:-;;
14534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14535 esac
14536 ac_save_IFS=$IFS
14537 IFS=:
14538 set x $ac_tag
14539 IFS=$ac_save_IFS
14540 shift
14541 ac_file=$1
14542 shift
14544 case $ac_mode in
14545 :L) ac_source=$1;;
14546 :[FH])
14547 ac_file_inputs=
14548 for ac_f
14549 do
14550 case $ac_f in
14551 -) ac_f="$tmp/stdin";;
14552 *) # Look for the file first in the build tree, then in the source tree
14553 # (if the path is not absolute). The absolute path cannot be DOS-style,
14554 # because $ac_f cannot contain `:'.
14555 test -f "$ac_f" ||
14556 case $ac_f in
14557 [\\/$]*) false;;
14558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14559 esac ||
14560 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14561 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14562 { (exit 1); exit 1; }; };;
14563 esac
14564 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14565 ac_file_inputs="$ac_file_inputs '$ac_f'"
14566 done
14568 # Let's still pretend it is `configure' which instantiates (i.e., don't
14569 # use $as_me), people would be surprised to read:
14570 # /* config.h. Generated by config.status. */
14571 configure_input='Generated from '`
14572 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14573 `' by configure.'
14574 if test x"$ac_file" != x-; then
14575 configure_input="$ac_file. $configure_input"
14576 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14577 $as_echo "$as_me: creating $ac_file" >&6;}
14578 fi
14579 # Neutralize special characters interpreted by sed in replacement strings.
14580 case $configure_input in #(
14581 *\&* | *\|* | *\\* )
14582 ac_sed_conf_input=`$as_echo "$configure_input" |
14583 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14584 *) ac_sed_conf_input=$configure_input;;
14585 esac
14587 case $ac_tag in
14588 *:-:* | *:-) cat >"$tmp/stdin" \
14589 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14590 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14591 { (exit 1); exit 1; }; } ;;
14592 esac
14593 ;;
14594 esac
14596 ac_dir=`$as_dirname -- "$ac_file" ||
14597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14598 X"$ac_file" : 'X\(//\)[^/]' \| \
14599 X"$ac_file" : 'X\(//\)$' \| \
14600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14601 $as_echo X"$ac_file" |
14602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14603 s//\1/
14604 q
14605 }
14606 /^X\(\/\/\)[^/].*/{
14607 s//\1/
14608 q
14609 }
14610 /^X\(\/\/\)$/{
14611 s//\1/
14612 q
14613 }
14614 /^X\(\/\).*/{
14615 s//\1/
14616 q
14617 }
14618 s/.*/./; q'`
14619 { as_dir="$ac_dir"
14620 case $as_dir in #(
14621 -*) as_dir=./$as_dir;;
14622 esac
14623 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14624 as_dirs=
14625 while :; do
14626 case $as_dir in #(
14627 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14628 *) as_qdir=$as_dir;;
14629 esac
14630 as_dirs="'$as_qdir' $as_dirs"
14631 as_dir=`$as_dirname -- "$as_dir" ||
14632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14633 X"$as_dir" : 'X\(//\)[^/]' \| \
14634 X"$as_dir" : 'X\(//\)$' \| \
14635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14636 $as_echo X"$as_dir" |
14637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14638 s//\1/
14639 q
14640 }
14641 /^X\(\/\/\)[^/].*/{
14642 s//\1/
14643 q
14644 }
14645 /^X\(\/\/\)$/{
14646 s//\1/
14647 q
14648 }
14649 /^X\(\/\).*/{
14650 s//\1/
14651 q
14652 }
14653 s/.*/./; q'`
14654 test -d "$as_dir" && break
14655 done
14656 test -z "$as_dirs" || eval "mkdir $as_dirs"
14657 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14658 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14659 { (exit 1); exit 1; }; }; }
14660 ac_builddir=.
14662 case "$ac_dir" in
14663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14664 *)
14665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14666 # A ".." for each directory in $ac_dir_suffix.
14667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14668 case $ac_top_builddir_sub in
14669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14671 esac ;;
14672 esac
14673 ac_abs_top_builddir=$ac_pwd
14674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14675 # for backward compatibility:
14676 ac_top_builddir=$ac_top_build_prefix
14678 case $srcdir in
14679 .) # We are building in place.
14680 ac_srcdir=.
14681 ac_top_srcdir=$ac_top_builddir_sub
14682 ac_abs_top_srcdir=$ac_pwd ;;
14683 [\\/]* | ?:[\\/]* ) # Absolute name.
14684 ac_srcdir=$srcdir$ac_dir_suffix;
14685 ac_top_srcdir=$srcdir
14686 ac_abs_top_srcdir=$srcdir ;;
14687 *) # Relative name.
14688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14689 ac_top_srcdir=$ac_top_build_prefix$srcdir
14690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14691 esac
14692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14695 case $ac_mode in
14696 :F)
14697 #
14698 # CONFIG_FILE
14699 #
14701 case $INSTALL in
14702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14703 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14704 esac
14705 _ACEOF
14707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708 # If the template does not know about datarootdir, expand it.
14709 # FIXME: This hack should be removed a few years after 2.60.
14710 ac_datarootdir_hack=; ac_datarootdir_seen=
14712 ac_sed_dataroot='
14713 /datarootdir/ {
14714 p
14715 q
14716 }
14717 /@datadir@/p
14718 /@docdir@/p
14719 /@infodir@/p
14720 /@localedir@/p
14721 /@mandir@/p
14722 '
14723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14724 *datarootdir*) ac_datarootdir_seen=yes;;
14725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14726 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14727 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14728 _ACEOF
14729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14730 ac_datarootdir_hack='
14731 s&@datadir@&$datadir&g
14732 s&@docdir@&$docdir&g
14733 s&@infodir@&$infodir&g
14734 s&@localedir@&$localedir&g
14735 s&@mandir@&$mandir&g
14736 s&\\\${datarootdir}&$datarootdir&g' ;;
14737 esac
14738 _ACEOF
14740 # Neutralize VPATH when `$srcdir' = `.'.
14741 # Shell code in configure.ac might set extrasub.
14742 # FIXME: do we really want to maintain this feature?
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 ac_sed_extra="$ac_vpsub
14745 $extrasub
14746 _ACEOF
14747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14748 :t
14749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14750 s|@configure_input@|$ac_sed_conf_input|;t t
14751 s&@top_builddir@&$ac_top_builddir_sub&;t t
14752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14753 s&@srcdir@&$ac_srcdir&;t t
14754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14755 s&@top_srcdir@&$ac_top_srcdir&;t t
14756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14757 s&@builddir@&$ac_builddir&;t t
14758 s&@abs_builddir@&$ac_abs_builddir&;t t
14759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14760 s&@INSTALL@&$ac_INSTALL&;t t
14761 $ac_datarootdir_hack
14762 "
14763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14765 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14766 { (exit 1); exit 1; }; }
14768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14769 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14771 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14772 which seems to be undefined. Please make sure it is defined." >&5
14773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14774 which seems to be undefined. Please make sure it is defined." >&2;}
14776 rm -f "$tmp/stdin"
14777 case $ac_file in
14778 -) cat "$tmp/out" && rm -f "$tmp/out";;
14779 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14780 esac \
14781 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14782 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14783 { (exit 1); exit 1; }; }
14784 ;;
14785 :H)
14786 #
14787 # CONFIG_HEADER
14788 #
14789 if test x"$ac_file" != x-; then
14790 {
14791 $as_echo "/* $configure_input */" \
14792 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14793 } >"$tmp/config.h" \
14794 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14795 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14796 { (exit 1); exit 1; }; }
14797 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14798 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14800 else
14801 rm -f "$ac_file"
14802 mv "$tmp/config.h" "$ac_file" \
14803 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14804 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14805 { (exit 1); exit 1; }; }
14806 fi
14807 else
14808 $as_echo "/* $configure_input */" \
14809 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14810 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14811 $as_echo "$as_me: error: could not create -" >&2;}
14812 { (exit 1); exit 1; }; }
14813 fi
14814 # Compute "$ac_file"'s index in $config_headers.
14815 _am_stamp_count=1
14816 for _am_header in $config_headers :; do
14817 case $_am_header in
14818 "$ac_file" | "$ac_file":* )
14819 break ;;
14820 * )
14821 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14822 esac
14823 done
14824 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$ac_file" : 'X\(//\)[^/]' \| \
14827 X"$ac_file" : 'X\(//\)$' \| \
14828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14829 $as_echo X"$ac_file" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\/\)[^/].*/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\).*/{
14843 s//\1/
14844 q
14845 }
14846 s/.*/./; q'`/stamp-h$_am_stamp_count
14847 ;;
14849 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14850 $as_echo "$as_me: executing $ac_file commands" >&6;}
14851 ;;
14852 esac
14855 case $ac_file$ac_mode in
14856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14857 # Strip MF so we end up with the name of the file.
14858 mf=`echo "$mf" | sed -e 's/:.*$//'`
14859 # Check whether this is an Automake generated Makefile or not.
14860 # We used to match only the files named `Makefile.in', but
14861 # some people rename them; so instead we look at the file content.
14862 # Grep'ing the first line is not enough: some people post-process
14863 # each Makefile.in and add a new line on top of each file to say so.
14864 # So let's grep whole file.
14865 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14866 dirpart=`$as_dirname -- "$mf" ||
14867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14868 X"$mf" : 'X\(//\)[^/]' \| \
14869 X"$mf" : 'X\(//\)$' \| \
14870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14871 $as_echo X"$mf" |
14872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14873 s//\1/
14874 q
14875 }
14876 /^X\(\/\/\)[^/].*/{
14877 s//\1/
14878 q
14879 }
14880 /^X\(\/\/\)$/{
14881 s//\1/
14882 q
14883 }
14884 /^X\(\/\).*/{
14885 s//\1/
14886 q
14887 }
14888 s/.*/./; q'`
14889 else
14890 continue
14891 fi
14892 # Extract the definition of DEPDIR, am__include, and am__quote
14893 # from the Makefile without running `make'.
14894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14895 test -z "$DEPDIR" && continue
14896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14897 test -z "am__include" && continue
14898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14899 # When using ansi2knr, U may be empty or an underscore; expand it
14900 U=`sed -n 's/^U = //p' < "$mf"`
14901 # Find all dependency output files, they are included files with
14902 # $(DEPDIR) in their names. We invoke sed twice because it is the
14903 # simplest approach to changing $(DEPDIR) to its actual value in the
14904 # expansion.
14905 for file in `sed -n "
14906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14908 # Make sure the directory exists.
14909 test -f "$dirpart/$file" && continue
14910 fdir=`$as_dirname -- "$file" ||
14911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14912 X"$file" : 'X\(//\)[^/]' \| \
14913 X"$file" : 'X\(//\)$' \| \
14914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14915 $as_echo X"$file" |
14916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14917 s//\1/
14918 q
14919 }
14920 /^X\(\/\/\)[^/].*/{
14921 s//\1/
14922 q
14923 }
14924 /^X\(\/\/\)$/{
14925 s//\1/
14926 q
14927 }
14928 /^X\(\/\).*/{
14929 s//\1/
14930 q
14931 }
14932 s/.*/./; q'`
14933 { as_dir=$dirpart/$fdir
14934 case $as_dir in #(
14935 -*) as_dir=./$as_dir;;
14936 esac
14937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14938 as_dirs=
14939 while :; do
14940 case $as_dir in #(
14941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14942 *) as_qdir=$as_dir;;
14943 esac
14944 as_dirs="'$as_qdir' $as_dirs"
14945 as_dir=`$as_dirname -- "$as_dir" ||
14946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$as_dir" : 'X\(//\)[^/]' \| \
14948 X"$as_dir" : 'X\(//\)$' \| \
14949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14950 $as_echo X"$as_dir" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\).*/{
14964 s//\1/
14965 q
14966 }
14967 s/.*/./; q'`
14968 test -d "$as_dir" && break
14969 done
14970 test -z "$as_dirs" || eval "mkdir $as_dirs"
14971 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14972 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14973 { (exit 1); exit 1; }; }; }
14974 # echo "creating $dirpart/$file"
14975 echo '# dummy' > "$dirpart/$file"
14976 done
14977 done
14978 ;;
14979 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14980 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14981 esac ;;
14983 esac
14984 done # for ac_tag
14987 { (exit 0); exit 0; }
14988 _ACEOF
14989 chmod +x $CONFIG_STATUS
14990 ac_clean_files=$ac_clean_files_save
14992 test $ac_write_fail = 0 ||
14993 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14994 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14995 { (exit 1); exit 1; }; }
14998 # configure is writing to config.log, and then calls config.status.
14999 # config.status does its own redirection, appending to config.log.
15000 # Unfortunately, on DOS this fails, as config.log is still kept open
15001 # by configure, so config.status won't be able to write to it; its
15002 # output is simply discarded. So we exec the FD to /dev/null,
15003 # effectively closing config.log, so it can be properly (re)opened and
15004 # appended to by config.status. When coming back to configure, we
15005 # need to make the FD available again.
15006 if test "$no_create" != yes; then
15007 ac_cs_success=:
15008 ac_config_status_args=
15009 test "$silent" = yes &&
15010 ac_config_status_args="$ac_config_status_args --quiet"
15011 exec 5>/dev/null
15012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15013 exec 5>>config.log
15014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15015 # would make configure fail if this is the last instruction.
15016 $ac_cs_success || { (exit 1); exit 1; }
15017 fi
15018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15019 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15021 fi
15023 { as_dir=test/sh4
15024 case $as_dir in #(
15025 -*) as_dir=./$as_dir;;
15026 esac
15027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15028 as_dirs=
15029 while :; do
15030 case $as_dir in #(
15031 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15032 *) as_qdir=$as_dir;;
15033 esac
15034 as_dirs="'$as_qdir' $as_dirs"
15035 as_dir=`$as_dirname -- "$as_dir" ||
15036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15037 X"$as_dir" : 'X\(//\)[^/]' \| \
15038 X"$as_dir" : 'X\(//\)$' \| \
15039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15040 $as_echo X"$as_dir" |
15041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15042 s//\1/
15043 q
15044 }
15045 /^X\(\/\/\)[^/].*/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\).*/{
15054 s//\1/
15055 q
15056 }
15057 s/.*/./; q'`
15058 test -d "$as_dir" && break
15059 done
15060 test -z "$as_dirs" || eval "mkdir $as_dirs"
15061 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15062 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15063 { (exit 1); exit 1; }; }; }
15066 echo
15067 echo "Configuration complete"
15068 echo
15070 if test "x$HAVE_GTK" = x; then
15071 if test "x$HAVE_COCOA" = x; then
15072 echo " User interface: none"
15073 else
15074 echo " User interface: Cocoa"
15075 fi
15076 else
15077 echo " User interface: GTK"
15078 fi
15080 if test "x$SH4_TRANSLATOR" = "x"; then
15081 echo " SH4 translator: None (emulation core only)"
15082 else
15083 echo " SH4 translator: $SH4_TRANSLATOR"
15084 fi
15086 if test "x$VIDEO_DRIVERS" = "x"; then
15087 echo " Video drivers: none (no supported GL found)"
15088 else
15089 echo " Video drivers: $VIDEO_DRIVERS"
15090 fi
15092 if test "x$AUDIO_DRIVERS" = "x"; then
15093 echo " Audio drivers: none (no supported output devices found)"
15094 else
15095 echo " Audio drivers: $AUDIO_DRIVERS"
15096 fi
15098 if test "x$INPUT_DRIVERS" = "x"; then
15099 echo " Input drivers: none (no supported input devices found)"
15100 else
15101 echo " Input drivers: $INPUT_DRIVERS"
15102 fi
15104 if test "x$CDROM_DRIVER" = "x"; then
15105 echo " CD-ROM driver: none (no supported cd-rom devices found)"
15106 else
15107 echo " CD-ROM driver: $CDROM_DRIVER"
15108 fi
.