filename | configure |
changeset | 1015:ad448bedc48a |
prev | 1002:8ad76ddbdc58 |
next | 1024:c67f2d61ab97 |
author | nkeynes |
date | Wed Jun 03 04:00:52 2009 +0000 (14 years ago) |
permissions | -rwxr-xr-x |
last change | Replace dcemu.gif with the better-named lxdream.png Update gtkui to actually use the icon Add a GNOME desktop entry for menu goodness |
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 GUI_COCOA_FALSE
713 GUI_COCOA_TRUE
714 POD2HTML
715 POD2MAN
716 am__fastdepOBJC_FALSE
717 am__fastdepOBJC_TRUE
718 OBJCDEPMODE
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 EGREP
728 GREP
729 CPP
730 CCASFLAGS
731 CCAS
732 SED
733 ac_ct_OBJC
734 OBJCFLAGS
735 OBJC
736 am__fastdepCC_FALSE
737 am__fastdepCC_TRUE
738 CCDEPMODE
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__quote
743 am__include
744 DEPDIR
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 MAINT
753 MAINTAINER_MODE_FALSE
754 MAINTAINER_MODE_TRUE
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 INSTALL_STRIP_PROGRAM
763 STRIP
764 install_sh
765 MAKEINFO
766 AUTOHEADER
767 AUTOMAKE
768 AUTOCONF
769 ACLOCAL
770 VERSION
771 PACKAGE
772 CYGPATH_W
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_strict_warn
819 enable_translator
820 enable_optimized
821 enable_profiled
822 enable_trace
823 enable_watch
824 enable_sh4stats
825 with_osmesa
826 with_gtk
827 with_esd
828 with_pulse
829 with_sdl
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 OBJC
840 OBJCFLAGS
841 CCAS
842 CCASFLAGS
843 CPP
844 PKG_CONFIG
845 LIBPNG_CFLAGS
846 LIBPNG_LIBS
847 GLIB_CFLAGS
848 GLIB_LIBS
849 GTK_CFLAGS
850 GTK_LIBS
851 SDL_CFLAGS
852 SDL_LIBS
853 PULSE_CFLAGS
854 PULSE_LIBS
855 ESOUND_CFLAGS
856 ESOUND_LIBS
857 ALSA_CFLAGS
858 ALSA_LIBS'
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
920 case $ac_option in
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *) ac_optarg=yes ;;
923 esac
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
948 --config-cache | -C)
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
968 { (exit 1); exit 1; }; }
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1250 ;;
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 ;;
1269 esac
1270 done
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1276 fi
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1282 { (exit 1); exit 1; }; } ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1285 fi
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307 done
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 $as_echo X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374 else
1375 ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures this package to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1466 cat <<\_ACEOF
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1479 if test -n "$ac_init_help"; then
1481 cat <<\_ACEOF
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-maintainer-mode enable make rules and dependencies not useful
1488 (and sometimes confusing) to the casual installer
1489 --disable-dependency-tracking speeds up one-time build
1490 --enable-dependency-tracking do not reject slow dependency extractors
1491 --enable-strict-warn Enable strict compilation warnings
1492 --disable-translator Disable the SH4 translator (Enabled by default)
1493 --disable-optimized Disable compile-time optimizations (Enabled by
1494 default)
1495 --enable-profiled Enable profiling build
1496 --enable-trace Enable generation of IO traces (warning: hurts
1497 performance)
1498 --enable-watch Enable watchpoints in the debugger (warning: hurts
1499 performance)
1500 --enable-sh4stats Enable statistics on executed sh4 instructions
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-osmesa Build with the osmesa GL library (software
1506 rendering)
1507 --with-gtk Build with the GTK UI. Default on X11 systems
1508 --with-esd Build with support for the ESounD audio system
1509 --with-pulse Build with support for the PulseAudio audio system
1510 --with-sdl Build with support for SDL audio
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 OBJC Objective C compiler command
1521 OBJCFLAGS Objective C compiler flags
1522 CCAS assembler compiler command (defaults to CC)
1523 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1524 CPP C preprocessor
1525 PKG_CONFIG path to pkg-config utility
1526 LIBPNG_CFLAGS
1527 C compiler flags for LIBPNG, overriding pkg-config
1528 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1529 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1530 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1531 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1532 GTK_LIBS linker flags for GTK, overriding pkg-config
1533 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1534 SDL_LIBS linker flags for SDL, overriding pkg-config
1535 PULSE_CFLAGS
1536 C compiler flags for PULSE, overriding pkg-config
1537 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1538 ESOUND_CFLAGS
1539 C compiler flags for ESOUND, overriding pkg-config
1540 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1541 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1542 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1604 fi
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608 cat <<\_ACEOF
1609 configure
1610 generated by GNU Autoconf 2.63
1612 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1613 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1618 fi
1619 cat >config.log <<_ACEOF
1620 This file contains any messages produced by compilers while
1621 running configure, to aid debugging if configure makes a mistake.
1623 It was created by $as_me, which was
1624 generated by GNU Autoconf 2.63. Invocation command line was
1626 $ $0 $@
1628 _ACEOF
1629 exec 5>>config.log
1630 {
1631 cat <<_ASUNAME
1632 ## --------- ##
1633 ## Platform. ##
1634 ## --------- ##
1636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1643 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1645 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1646 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1648 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1649 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1650 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1651 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1653 _ASUNAME
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 $as_echo "PATH: $as_dir"
1661 done
1662 IFS=$as_save_IFS
1664 } >&5
1666 cat >&5 <<_ACEOF
1669 ## ----------- ##
1670 ## Core tests. ##
1671 ## ----------- ##
1673 _ACEOF
1676 # Keep a trace of the command line.
1677 # Strip out --no-create and --no-recursion so they do not pile up.
1678 # Strip out --silent because we don't want to record it for future runs.
1679 # Also quote any args containing shell meta-characters.
1680 # Make two passes to allow for proper duplicate-argument suppression.
1681 ac_configure_args=
1682 ac_configure_args0=
1683 ac_configure_args1=
1684 ac_must_keep_next=false
1685 for ac_pass in 1 2
1686 do
1687 for ac_arg
1688 do
1689 case $ac_arg in
1690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1692 | -silent | --silent | --silen | --sile | --sil)
1693 continue ;;
1694 *\'*)
1695 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 esac
1697 case $ac_pass in
1698 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1699 2)
1700 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1701 if test $ac_must_keep_next = true; then
1702 ac_must_keep_next=false # Got value, back to normal.
1703 else
1704 case $ac_arg in
1705 *=* | --config-cache | -C | -disable-* | --disable-* \
1706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1708 | -with-* | --with-* | -without-* | --without-* | --x)
1709 case "$ac_configure_args0 " in
1710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1711 esac
1712 ;;
1713 -* ) ac_must_keep_next=true ;;
1714 esac
1715 fi
1716 ac_configure_args="$ac_configure_args '$ac_arg'"
1717 ;;
1718 esac
1719 done
1720 done
1721 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1722 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724 # When interrupted or exit'd, cleanup temporary files, and complete
1725 # config.log. We remove comments because anyway the quotes in there
1726 # would cause problems or look ugly.
1727 # WARNING: Use '\'' to represent an apostrophe within the trap.
1728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1729 trap 'exit_status=$?
1730 # Save into config.log some information that might help in debugging.
1731 {
1732 echo
1734 cat <<\_ASBOX
1735 ## ---------------- ##
1736 ## Cache variables. ##
1737 ## ---------------- ##
1738 _ASBOX
1739 echo
1740 # The following way of writing the cache mishandles newlines in values,
1741 (
1742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in #(
1745 *${as_nl}*)
1746 case $ac_var in #(
1747 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1749 esac
1750 case $ac_var in #(
1751 _ | IFS | as_nl) ;; #(
1752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1753 *) $as_unset $ac_var ;;
1754 esac ;;
1755 esac
1756 done
1757 (set) 2>&1 |
1758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1759 *${as_nl}ac_space=\ *)
1760 sed -n \
1761 "s/'\''/'\''\\\\'\'''\''/g;
1762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1763 ;; #(
1764 *)
1765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766 ;;
1767 esac |
1768 sort
1769 )
1770 echo
1772 cat <<\_ASBOX
1773 ## ----------------- ##
1774 ## Output variables. ##
1775 ## ----------------- ##
1776 _ASBOX
1777 echo
1778 for ac_var in $ac_subst_vars
1779 do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in
1782 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 esac
1784 $as_echo "$ac_var='\''$ac_val'\''"
1785 done | sort
1786 echo
1788 if test -n "$ac_subst_files"; then
1789 cat <<\_ASBOX
1790 ## ------------------- ##
1791 ## File substitutions. ##
1792 ## ------------------- ##
1793 _ASBOX
1794 echo
1795 for ac_var in $ac_subst_files
1796 do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in
1799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 esac
1801 $as_echo "$ac_var='\''$ac_val'\''"
1802 done | sort
1803 echo
1804 fi
1806 if test -s confdefs.h; then
1807 cat <<\_ASBOX
1808 ## ----------- ##
1809 ## confdefs.h. ##
1810 ## ----------- ##
1811 _ASBOX
1812 echo
1813 cat confdefs.h
1814 echo
1815 fi
1816 test "$ac_signal" != 0 &&
1817 $as_echo "$as_me: caught signal $ac_signal"
1818 $as_echo "$as_me: exit $exit_status"
1819 } >&5
1820 rm -f core *.core core.conftest.* &&
1821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822 exit $exit_status
1823 ' 0
1824 for ac_signal in 1 2 13 15; do
1825 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1826 done
1827 ac_signal=0
1829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1830 rm -f -r conftest* confdefs.h
1832 # Predefined preprocessor variables.
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_NAME "$PACKAGE_NAME"
1836 _ACEOF
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1841 _ACEOF
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1846 _ACEOF
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_STRING "$PACKAGE_STRING"
1851 _ACEOF
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1856 _ACEOF
1859 # Let the site file select an alternate cache file if it wants to.
1860 # Prefer an explicitly selected file to automatically selected ones.
1861 ac_site_file1=NONE
1862 ac_site_file2=NONE
1863 if test -n "$CONFIG_SITE"; then
1864 ac_site_file1=$CONFIG_SITE
1865 elif test "x$prefix" != xNONE; then
1866 ac_site_file1=$prefix/share/config.site
1867 ac_site_file2=$prefix/etc/config.site
1868 else
1869 ac_site_file1=$ac_default_prefix/share/config.site
1870 ac_site_file2=$ac_default_prefix/etc/config.site
1871 fi
1872 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1873 do
1874 test "x$ac_site_file" = xNONE && continue
1875 if test -r "$ac_site_file"; then
1876 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1879 . "$ac_site_file"
1880 fi
1881 done
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 $as_echo "$as_me: loading cache $cache_file" >&6;}
1889 case $cache_file in
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1892 esac
1893 fi
1894 else
1895 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896 $as_echo "$as_me: creating cache $cache_file" >&6;}
1897 >$cache_file
1898 fi
1900 # Check that the precious variables saved in the cache have kept the same
1901 # value.
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1909 set,)
1910 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,set)
1914 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,);;
1918 *)
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 # differences in whitespace do not lead to failure.
1921 ac_old_val_w=`echo x $ac_old_val`
1922 ac_new_val_w=`echo x $ac_new_val`
1923 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1925 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1926 ac_cache_corrupted=:
1927 else
1928 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1929 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1930 eval $ac_var=\$ac_old_val
1931 fi
1932 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1933 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1934 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1935 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1936 fi;;
1937 esac
1938 # Pass precious variables to config.status.
1939 if test "$ac_new_set" = set; then
1940 case $ac_new_val in
1941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 *) ac_arg=$ac_var=$ac_new_val ;;
1943 esac
1944 case " $ac_configure_args " in
1945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1946 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1947 esac
1948 fi
1949 done
1950 if $ac_cache_corrupted; then
1951 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1953 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957 { (exit 1); exit 1; }; }
1958 fi
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 am__api_version="1.9"
1984 ac_aux_dir=
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986 if test -f "$ac_dir/install-sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1989 break
1990 elif test -f "$ac_dir/install.sh"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1993 break
1994 elif test -f "$ac_dir/shtool"; then
1995 ac_aux_dir=$ac_dir
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
1997 break
1998 fi
1999 done
2000 if test -z "$ac_aux_dir"; then
2001 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015 # Find a good install program. We prefer a C program (faster),
2016 # so one script is as good as another. But avoid the broken or
2017 # incompatible versions:
2018 # SysV /etc/install, /usr/sbin/install
2019 # SunOS /usr/etc/install
2020 # IRIX /sbin/install
2021 # AIX /bin/install
2022 # AmigaOS /C/install, which installs bootblocks on floppy discs
2023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2026 # OS/2's system install, which has a completely different semantic
2027 # ./install, which can be erroneously created by make from ./install.sh.
2028 # Reject install programs that cannot install multiple files.
2029 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2030 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2031 if test -z "$INSTALL"; then
2032 if test "${ac_cv_path_install+set}" = set; then
2033 $as_echo_n "(cached) " >&6
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 # Account for people who put trailing slashes in PATH elements.
2041 case $as_dir/ in
2042 ./ | .// | /cC/* | \
2043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2045 /usr/ucb/* ) ;;
2046 *)
2047 # OSF1 and SCO ODT 3.0 have their own names for install.
2048 # Don't use installbsd from OSF since it installs stuff as root
2049 # by default.
2050 for ac_prog in ginstall scoinst install; do
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2053 if test $ac_prog = install &&
2054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # AIX install. It has an incompatible calling convention.
2056 :
2057 elif test $ac_prog = install &&
2058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2059 # program-specific install script used by HP pwplus--don't use.
2060 :
2061 else
2062 rm -rf conftest.one conftest.two conftest.dir
2063 echo one > conftest.one
2064 echo two > conftest.two
2065 mkdir conftest.dir
2066 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2067 test -s conftest.one && test -s conftest.two &&
2068 test -s conftest.dir/conftest.one &&
2069 test -s conftest.dir/conftest.two
2070 then
2071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2072 break 3
2073 fi
2074 fi
2075 fi
2076 done
2077 done
2078 ;;
2079 esac
2081 done
2082 IFS=$as_save_IFS
2084 rm -rf conftest.one conftest.two conftest.dir
2086 fi
2087 if test "${ac_cv_path_install+set}" = set; then
2088 INSTALL=$ac_cv_path_install
2089 else
2090 # As a last resort, use the slow shell script. Don't cache a
2091 # value for INSTALL within a source directory, because that will
2092 # break other packages using the cache if that directory is
2093 # removed, or if the value is a relative name.
2094 INSTALL=$ac_install_sh
2095 fi
2096 fi
2097 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2098 $as_echo "$INSTALL" >&6; }
2100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2101 # It thinks the first close brace ends the variable substitution.
2102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2108 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2109 $as_echo_n "checking whether build environment is sane... " >&6; }
2110 # Just in case
2111 sleep 1
2112 echo timestamp > conftest.file
2113 # Do `set' in a subshell so we don't clobber the current shell's
2114 # arguments. Must try -L first in case configure is actually a
2115 # symlink; some systems play weird games with the mod time of symlinks
2116 # (eg FreeBSD returns the mod time of the symlink's containing
2117 # directory).
2118 if (
2119 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2120 if test "$*" = "X"; then
2121 # -L didn't work.
2122 set X `ls -t $srcdir/configure conftest.file`
2123 fi
2124 rm -f conftest.file
2125 if test "$*" != "X $srcdir/configure conftest.file" \
2126 && test "$*" != "X conftest.file $srcdir/configure"; then
2128 # If neither matched, then we have a broken ls. This can happen
2129 # if, for instance, CONFIG_SHELL is bash and it inherits a
2130 # broken ls alias from the environment. This has actually
2131 # happened. Such a system could not be considered "sane".
2132 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2133 alias in your environment" >&5
2134 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2135 alias in your environment" >&2;}
2136 { (exit 1); exit 1; }; }
2137 fi
2139 test "$2" = conftest.file
2140 )
2141 then
2142 # Ok.
2143 :
2144 else
2145 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2146 Check your system clock" >&5
2147 $as_echo "$as_me: error: newly created file is older than distributed files!
2148 Check your system clock" >&2;}
2149 { (exit 1); exit 1; }; }
2150 fi
2151 { $as_echo "$as_me:$LINENO: result: yes" >&5
2152 $as_echo "yes" >&6; }
2153 test "$program_prefix" != NONE &&
2154 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2155 # Use a double $ so make ignores it.
2156 test "$program_suffix" != NONE &&
2157 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2158 # Double any \ or $.
2159 # By default was `s,x,x', remove it if useless.
2160 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2161 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2163 # expand $ac_aux_dir to an absolute path
2164 am_aux_dir=`cd $ac_aux_dir && pwd`
2166 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2167 # Use eval to expand $SHELL
2168 if eval "$MISSING --run true"; then
2169 am_missing_run="$MISSING --run "
2170 else
2171 am_missing_run=
2172 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2173 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2174 fi
2176 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2177 # We used to keeping the `.' as first argument, in order to
2178 # allow $(mkdir_p) to be used without argument. As in
2179 # $(mkdir_p) $(somedir)
2180 # where $(somedir) is conditionally defined. However this is wrong
2181 # for two reasons:
2182 # 1. if the package is installed by a user who cannot write `.'
2183 # make install will fail,
2184 # 2. the above comment should most certainly read
2185 # $(mkdir_p) $(DESTDIR)$(somedir)
2186 # so it does not work when $(somedir) is undefined and
2187 # $(DESTDIR) is not.
2188 # To support the latter case, we have to write
2189 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2190 # so the `.' trick is pointless.
2191 mkdir_p='mkdir -p --'
2192 else
2193 # On NextStep and OpenStep, the `mkdir' command does not
2194 # recognize any option. It will interpret all options as
2195 # directories to create, and then abort because `.' already
2196 # exists.
2197 for d in ./-p ./--version;
2198 do
2199 test -d $d && rmdir $d
2200 done
2201 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2202 if test -f "$ac_aux_dir/mkinstalldirs"; then
2203 mkdir_p='$(mkinstalldirs)'
2204 else
2205 mkdir_p='$(install_sh) -d'
2206 fi
2207 fi
2209 for ac_prog in gawk mawk nawk awk
2210 do
2211 # Extract the first word of "$ac_prog", so it can be a program name with args.
2212 set dummy $ac_prog; ac_word=$2
2213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 $as_echo_n "checking for $ac_word... " >&6; }
2215 if test "${ac_cv_prog_AWK+set}" = set; then
2216 $as_echo_n "(cached) " >&6
2217 else
2218 if test -n "$AWK"; then
2219 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_AWK="$ac_prog"
2229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2231 fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2236 fi
2237 fi
2238 AWK=$ac_cv_prog_AWK
2239 if test -n "$AWK"; then
2240 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2241 $as_echo "$AWK" >&6; }
2242 else
2243 { $as_echo "$as_me:$LINENO: result: no" >&5
2244 $as_echo "no" >&6; }
2245 fi
2248 test -n "$AWK" && break
2249 done
2251 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2252 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2253 set x ${MAKE-make}
2254 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2256 $as_echo_n "(cached) " >&6
2257 else
2258 cat >conftest.make <<\_ACEOF
2259 SHELL = /bin/sh
2260 all:
2261 @echo '@@@%%%=$(MAKE)=@@@%%%'
2262 _ACEOF
2263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2265 *@@@%%%=?*=@@@%%%*)
2266 eval ac_cv_prog_make_${ac_make}_set=yes;;
2267 *)
2268 eval ac_cv_prog_make_${ac_make}_set=no;;
2269 esac
2270 rm -f conftest.make
2271 fi
2272 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2273 { $as_echo "$as_me:$LINENO: result: yes" >&5
2274 $as_echo "yes" >&6; }
2275 SET_MAKE=
2276 else
2277 { $as_echo "$as_me:$LINENO: result: no" >&5
2278 $as_echo "no" >&6; }
2279 SET_MAKE="MAKE=${MAKE-make}"
2280 fi
2282 rm -rf .tst 2>/dev/null
2283 mkdir .tst 2>/dev/null
2284 if test -d .tst; then
2285 am__leading_dot=.
2286 else
2287 am__leading_dot=_
2288 fi
2289 rmdir .tst 2>/dev/null
2291 # test to see if srcdir already configured
2292 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2293 test -f $srcdir/config.status; then
2294 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296 { (exit 1); exit 1; }; }
2297 fi
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2303 else
2304 CYGPATH_W=echo
2305 fi
2306 fi
2309 # Define the identity of the package.
2310 PACKAGE=lxdream
2311 VERSION=0.9
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2316 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2321 _ACEOF
2323 # Some tools Automake needs.
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 $as_echo_n "checking for $ac_word... " >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2372 fi
2373 fi
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2377 $as_echo "$STRIP" >&6; }
2378 else
2379 { $as_echo "$as_me:$LINENO: result: no" >&5
2380 $as_echo "no" >&6; }
2381 fi
2384 fi
2385 if test -z "$ac_cv_prog_STRIP"; then
2386 ac_ct_STRIP=$STRIP
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 $as_echo_n "checking for $ac_word... " >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 $as_echo_n "(cached) " >&6
2393 else
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2412 fi
2413 fi
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 $as_echo "$ac_ct_STRIP" >&6; }
2418 else
2419 { $as_echo "$as_me:$LINENO: result: no" >&5
2420 $as_echo "no" >&6; }
2421 fi
2423 if test "x$ac_ct_STRIP" = x; then
2424 STRIP=":"
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432 STRIP=$ac_ct_STRIP
2433 fi
2434 else
2435 STRIP="$ac_cv_prog_STRIP"
2436 fi
2438 fi
2439 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2441 # We need awk for the "check" target. The system "awk" is bad on
2442 # some platforms.
2443 # Always define AMTAR for backward compatibility.
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2454 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2455 # Check whether --enable-maintainer-mode was given.
2456 if test "${enable_maintainer_mode+set}" = set; then
2457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2458 else
2459 USE_MAINTAINER_MODE=no
2460 fi
2462 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2463 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2466 if test $USE_MAINTAINER_MODE = yes; then
2467 MAINTAINER_MODE_TRUE=
2468 MAINTAINER_MODE_FALSE='#'
2469 else
2470 MAINTAINER_MODE_TRUE='#'
2471 MAINTAINER_MODE_FALSE=
2472 fi
2474 MAINT=$MAINTAINER_MODE_TRUE
2477 ac_config_headers="$ac_config_headers config.h"
2480 DEPDIR="${am__leading_dot}deps"
2482 ac_config_commands="$ac_config_commands depfiles"
2485 am_make=${MAKE-make}
2486 cat > confinc << 'END'
2487 am__doit:
2488 @echo done
2489 .PHONY: am__doit
2490 END
2491 # If we don't find an include directive, just comment out the code.
2492 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2493 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2494 am__include="#"
2495 am__quote=
2496 _am_result=none
2497 # First try GNU make style include.
2498 echo "include confinc" > confmf
2499 # We grep out `Entering directory' and `Leaving directory'
2500 # messages which can occur if `w' ends up in MAKEFLAGS.
2501 # In particular we don't look at `^make:' because GNU make might
2502 # be invoked under some other name (usually "gmake"), in which
2503 # case it prints its new name instead of `make'.
2504 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2505 am__include=include
2506 am__quote=
2507 _am_result=GNU
2508 fi
2509 # Now try BSD make style include.
2510 if test "$am__include" = "#"; then
2511 echo '.include "confinc"' > confmf
2512 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2513 am__include=.include
2514 am__quote="\""
2515 _am_result=BSD
2516 fi
2517 fi
2520 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2521 $as_echo "$_am_result" >&6; }
2522 rm -f confinc confmf
2524 # Check whether --enable-dependency-tracking was given.
2525 if test "${enable_dependency_tracking+set}" = set; then
2526 enableval=$enable_dependency_tracking;
2527 fi
2529 if test "x$enable_dependency_tracking" != xno; then
2530 am_depcomp="$ac_aux_dir/depcomp"
2531 AMDEPBACKSLASH='\'
2532 fi
2535 if test "x$enable_dependency_tracking" != xno; then
2536 AMDEP_TRUE=
2537 AMDEP_FALSE='#'
2538 else
2539 AMDEP_TRUE='#'
2540 AMDEP_FALSE=
2541 fi
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2582 else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2588 fi
2589 if test -z "$ac_cv_prog_CC"; then
2590 ac_ct_CC=$CC
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2616 fi
2617 fi
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2622 else
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634 ac_tool_warned=yes ;;
2635 esac
2636 CC=$ac_ct_CC
2637 fi
2638 else
2639 CC="$ac_cv_prog_CC"
2640 fi
2642 if test -z "$CC"; then
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}cc; ac_word=$2
2646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}cc"
2662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676 { $as_echo "$as_me:$LINENO: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2681 fi
2682 fi
2683 if test -z "$CC"; then
2684 # Extract the first word of "cc", so it can be a program name with args.
2685 set dummy cc; ac_word=$2
2686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 ac_prog_rejected=no
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2703 ac_prog_rejected=yes
2704 continue
2705 fi
2706 ac_cv_prog_CC="cc"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2714 if test $ac_prog_rejected = yes; then
2715 # We found a bogon in the path, so make sure we never use it.
2716 set dummy $ac_cv_prog_CC
2717 shift
2718 if test $# != 0; then
2719 # We chose a different compiler from the bogus one.
2720 # However, it has the same basename, so the bogon will be chosen
2721 # first if we set CC to just the basename; use the full file name.
2722 shift
2723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 fi
2725 fi
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2738 fi
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 for ac_prog in cl.exe
2742 do
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775 { $as_echo "$as_me:$LINENO: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2780 test -n "$CC" && break
2781 done
2782 fi
2783 if test -z "$CC"; then
2784 ac_ct_CC=$CC
2785 for ac_prog in cl.exe
2786 do
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_ac_ct_CC="$ac_prog"
2805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2812 fi
2813 fi
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817 $as_echo "$ac_ct_CC" >&6; }
2818 else
2819 { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2824 test -n "$ac_ct_CC" && break
2825 done
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 CC=$ac_ct_CC
2837 fi
2838 fi
2840 fi
2843 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846 See \`config.log' for more details." >&5
2847 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details." >&2;}
2849 { (exit 1); exit 1; }; }; }
2851 # Provide some information about the compiler.
2852 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2853 set X $ac_compile
2854 ac_compiler=$2
2855 { (ac_try="$ac_compiler --version >&5"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compiler --version >&5") 2>&5
2863 ac_status=$?
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2866 { (ac_try="$ac_compiler -v >&5"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler -v >&5") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -V >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -V >&5") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2889 cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h. */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2896 int
2897 main ()
2898 {
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 ac_clean_files_save=$ac_clean_files
2905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2906 # Try to create an executable without -o first, disregard a.out.
2907 # It will help us diagnose broken compilers, and finding out an intuition
2908 # of exeext.
2909 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2910 $as_echo_n "checking for C compiler default output file name... " >&6; }
2911 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2913 # The possible output files:
2914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916 ac_rmfiles=
2917 for ac_file in $ac_files
2918 do
2919 case $ac_file in
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922 esac
2923 done
2924 rm -f $ac_rmfiles
2926 if { (ac_try="$ac_link_default"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_link_default") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2940 # so that the user can short-circuit this test for compilers unknown to
2941 # Autoconf.
2942 for ac_file in $ac_files ''
2943 do
2944 test -f "$ac_file" || continue
2945 case $ac_file in
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2947 ;;
2948 [ab].out )
2949 # We found the default executable, but exeext='' is most
2950 # certainly right.
2951 break;;
2952 *.* )
2953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954 then :; else
2955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 fi
2957 # We set ac_cv_exeext here because the later test for it is not
2958 # safe: cross compilers may not add the suffix if given an `-o'
2959 # argument, so we may need to know it at that point already.
2960 # Even if this section looks crufty: it has the advantage of
2961 # actually working.
2962 break;;
2963 * )
2964 break;;
2965 esac
2966 done
2967 test "$ac_cv_exeext" = no && ac_cv_exeext=
2969 else
2970 ac_file=''
2971 fi
2973 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2974 $as_echo "$ac_file" >&6; }
2975 if test -z "$ac_file"; then
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&5
2983 $as_echo "$as_me: error: C compiler cannot create executables
2984 See \`config.log' for more details." >&2;}
2985 { (exit 77); exit 77; }; }; }
2986 fi
2988 ac_exeext=$ac_cv_exeext
2990 # Check that the compiler produces executables we can run. If not, either
2991 # the compiler is broken, or we cross compile.
2992 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 $as_echo_n "checking whether the C compiler works... " >&6; }
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003 $as_echo "$ac_try_echo") >&5
3004 (eval "$ac_try") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 cross_compiling=no
3009 else
3010 if test "$cross_compiling" = maybe; then
3011 cross_compiling=yes
3012 else
3013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3016 If you meant to cross compile, use \`--host'.
3017 See \`config.log' for more details." >&5
3018 $as_echo "$as_me: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3022 fi
3023 fi
3024 fi
3025 { $as_echo "$as_me:$LINENO: result: yes" >&5
3026 $as_echo "yes" >&6; }
3028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3029 ac_clean_files=$ac_clean_files_save
3030 # Check that the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 $as_echo_n "checking whether we are cross compiling... " >&6; }
3034 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 $as_echo "$cross_compiling" >&6; }
3037 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
3039 if { (ac_try="$ac_link"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_link") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3053 # `rm'.
3054 for ac_file in conftest.exe conftest conftest.*; do
3055 test -f "$ac_file" || continue
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 break;;
3060 * ) break;;
3061 esac
3062 done
3063 else
3064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }; }
3071 fi
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3079 ac_exeext=$EXEEXT
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084 else
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3092 int
3093 main ()
3094 {
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119 done
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }; }
3131 fi
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134 fi
3135 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3151 int
3152 main ()
3153 {
3154 #ifndef __GNUC__
3155 choke me
3156 #endif
3158 ;
3159 return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_compiler_gnu=yes
3181 else
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3185 ac_compiler_gnu=no
3186 fi
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3191 fi
3192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196 else
3197 GCC=
3198 fi
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached) " >&6
3205 else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3217 int
3218 main ()
3219 {
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_g=yes
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 CFLAGS=""
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 int
3257 main ()
3258 {
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 :
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 CFLAGS="-g"
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3296 int
3297 main ()
3298 {
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_prog_cc_g=yes
3323 else
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3328 fi
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 fi
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3338 fi
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3345 CFLAGS="-g -O2"
3346 else
3347 CFLAGS="-g"
3348 fi
3349 else
3350 if test "$GCC" = yes; then
3351 CFLAGS="-O2"
3352 else
3353 CFLAGS=
3354 fi
3355 fi
3356 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3360 else
3361 ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377 char **p;
3378 int i;
3379 {
3380 return p[i];
3381 }
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3383 {
3384 char *s;
3385 va_list v;
3386 va_start (v,p);
3387 s = g (p, va_arg (v,int));
3388 va_end (v);
3389 return s;
3390 }
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3412 int
3413 main ()
3414 {
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 do
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_c89=$ac_arg
3443 else
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3448 fi
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 done
3453 rm -f conftest.$ac_ext
3454 CC=$ac_save_CC
3456 fi
3457 # AC_CACHE_VAL
3458 case "x$ac_cv_prog_cc_c89" in
3459 x)
3460 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462 xno)
3463 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3465 *)
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469 esac
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 depcc="$CC" am_compiler_list=
3480 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3481 $as_echo_n "checking dependency style of $depcc... " >&6; }
3482 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3486 # We make a subdir and do the tests there. Otherwise we can end up
3487 # making bogus files that we don't know about and never remove. For
3488 # instance it was reported that on HP-UX the gcc test will end up
3489 # making a dummy file named `D' -- because `-MD' means `put the output
3490 # in D'.
3491 mkdir conftest.dir
3492 # Copy depcomp to subdir because otherwise we won't find it if we're
3493 # using a relative directory.
3494 cp "$am_depcomp" conftest.dir
3495 cd conftest.dir
3496 # We will build objects and dependencies in a subdirectory because
3497 # it helps to detect inapplicable dependency modes. For instance
3498 # both Tru64's cc and ICC support -MD to output dependencies as a
3499 # side effect of compilation, but ICC will put the dependencies in
3500 # the current directory while Tru64 will put them in the object
3501 # directory.
3502 mkdir sub
3504 am_cv_CC_dependencies_compiler_type=none
3505 if test "$am_compiler_list" = ""; then
3506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3507 fi
3508 for depmode in $am_compiler_list; do
3509 # Setup a source with many dependencies, because some compilers
3510 # like to wrap large dependency lists on column 80 (with \), and
3511 # we should not choose a depcomp mode which is confused by this.
3512 #
3513 # We need to recreate these files for each test, as the compiler may
3514 # overwrite some of them when testing with obscure command lines.
3515 # This happens at least with the AIX C compiler.
3516 : > sub/conftest.c
3517 for i in 1 2 3 4 5 6; do
3518 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3519 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3520 # Solaris 8's {/usr,}/bin/sh.
3521 touch sub/conftst$i.h
3522 done
3523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3525 case $depmode in
3526 nosideeffect)
3527 # after this tag, mechanisms are not by side-effect, so they'll
3528 # only be used when explicitly requested
3529 if test "x$enable_dependency_tracking" = xyes; then
3530 continue
3531 else
3532 break
3533 fi
3534 ;;
3535 none) break ;;
3536 esac
3537 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3538 # mode. It turns out that the SunPro C++ compiler does not properly
3539 # handle `-M -o', and we need to detect this.
3540 if depmode=$depmode \
3541 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3543 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3544 >/dev/null 2>conftest.err &&
3545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3546 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3548 # icc doesn't choke on unknown options, it will just issue warnings
3549 # or remarks (even with -Werror). So we grep stderr for any message
3550 # that says an option was ignored or not supported.
3551 # When given -MP, icc 7.0 and 7.1 complain thusly:
3552 # icc: Command line warning: ignoring option '-M'; no argument required
3553 # The diagnosis changed in icc 8.0:
3554 # icc: Command line remark: option '-MP' not supported
3555 if (grep 'ignoring option' conftest.err ||
3556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3557 am_cv_CC_dependencies_compiler_type=$depmode
3558 break
3559 fi
3560 fi
3561 done
3563 cd ..
3564 rm -rf conftest.dir
3565 else
3566 am_cv_CC_dependencies_compiler_type=none
3567 fi
3569 fi
3570 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3571 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3572 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3576 if
3577 test "x$enable_dependency_tracking" != xno \
3578 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3579 am__fastdepCC_TRUE=
3580 am__fastdepCC_FALSE='#'
3581 else
3582 am__fastdepCC_TRUE='#'
3583 am__fastdepCC_FALSE=
3584 fi
3589 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3590 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3591 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_check_lib_save_LIBS=$LIBS
3595 LIBS="-lcposix $LIBS"
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3603 /* Override any GCC internal prototype to avoid an error.
3604 Use char because int might match the return type of a GCC
3605 builtin and then its argument prototype would still apply. */
3606 #ifdef __cplusplus
3607 extern "C"
3608 #endif
3609 char strerror ();
3610 int
3611 main ()
3612 {
3613 return strerror ();
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.$ac_objext conftest$ac_exeext
3619 if { (ac_try="$ac_link"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3625 $as_echo "$ac_try_echo") >&5
3626 (eval "$ac_link") 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && {
3633 test -z "$ac_c_werror_flag" ||
3634 test ! -s conftest.err
3635 } && test -s conftest$ac_exeext && {
3636 test "$cross_compiling" = yes ||
3637 $as_test_x conftest$ac_exeext
3638 }; then
3639 ac_cv_lib_cposix_strerror=yes
3640 else
3641 $as_echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 ac_cv_lib_cposix_strerror=no
3645 fi
3647 rm -rf conftest.dSYM
3648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3649 conftest$ac_exeext conftest.$ac_ext
3650 LIBS=$ac_check_lib_save_LIBS
3651 fi
3652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3653 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3654 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3655 LIBS="$LIBS -lcposix"
3656 fi
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CC+set}" = set; then
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3691 fi
3692 fi
3693 CC=$ac_cv_prog_CC
3694 if test -n "$CC"; then
3695 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3696 $as_echo "$CC" >&6; }
3697 else
3698 { $as_echo "$as_me:$LINENO: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3703 fi
3704 if test -z "$ac_cv_prog_CC"; then
3705 ac_ct_CC=$CC
3706 # Extract the first word of "gcc", so it can be a program name with args.
3707 set dummy gcc; ac_word=$2
3708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$ac_ct_CC"; then
3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_ac_ct_CC="gcc"
3724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3731 fi
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3736 $as_echo "$ac_ct_CC" >&6; }
3737 else
3738 { $as_echo "$as_me:$LINENO: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749 ac_tool_warned=yes ;;
3750 esac
3751 CC=$ac_ct_CC
3752 fi
3753 else
3754 CC="$ac_cv_prog_CC"
3755 fi
3757 if test -z "$CC"; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}cc; ac_word=$2
3761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_CC+set}" = set; then
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_CC="${ac_tool_prefix}cc"
3777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782 IFS=$as_save_IFS
3784 fi
3785 fi
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3790 else
3791 { $as_echo "$as_me:$LINENO: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3796 fi
3797 fi
3798 if test -z "$CC"; then
3799 # Extract the first word of "cc", so it can be a program name with args.
3800 set dummy cc; ac_word=$2
3801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_CC+set}" = set; then
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 ac_prog_rejected=no
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3818 ac_prog_rejected=yes
3819 continue
3820 fi
3821 ac_cv_prog_CC="cc"
3822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825 done
3826 done
3827 IFS=$as_save_IFS
3829 if test $ac_prog_rejected = yes; then
3830 # We found a bogon in the path, so make sure we never use it.
3831 set dummy $ac_cv_prog_CC
3832 shift
3833 if test $# != 0; then
3834 # We chose a different compiler from the bogus one.
3835 # However, it has the same basename, so the bogon will be chosen
3836 # first if we set CC to just the basename; use the full file name.
3837 shift
3838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3839 fi
3840 fi
3841 fi
3842 fi
3843 CC=$ac_cv_prog_CC
3844 if test -n "$CC"; then
3845 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3846 $as_echo "$CC" >&6; }
3847 else
3848 { $as_echo "$as_me:$LINENO: result: no" >&5
3849 $as_echo "no" >&6; }
3850 fi
3853 fi
3854 if test -z "$CC"; then
3855 if test -n "$ac_tool_prefix"; then
3856 for ac_prog in cl.exe
3857 do
3858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 $as_echo_n "checking for $ac_word... " >&6; }
3862 if test "${ac_cv_prog_CC+set}" = set; then
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -n "$CC"; then
3866 ac_cv_prog_CC="$CC" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879 done
3880 done
3881 IFS=$as_save_IFS
3883 fi
3884 fi
3885 CC=$ac_cv_prog_CC
3886 if test -n "$CC"; then
3887 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3888 $as_echo "$CC" >&6; }
3889 else
3890 { $as_echo "$as_me:$LINENO: result: no" >&5
3891 $as_echo "no" >&6; }
3892 fi
3895 test -n "$CC" && break
3896 done
3897 fi
3898 if test -z "$CC"; then
3899 ac_ct_CC=$CC
3900 for ac_prog in cl.exe
3901 do
3902 # Extract the first word of "$ac_prog", so it can be a program name with args.
3903 set dummy $ac_prog; ac_word=$2
3904 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -n "$ac_ct_CC"; then
3910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_ac_ct_CC="$ac_prog"
3920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923 done
3924 done
3925 IFS=$as_save_IFS
3927 fi
3928 fi
3929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930 if test -n "$ac_ct_CC"; then
3931 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3932 $as_echo "$ac_ct_CC" >&6; }
3933 else
3934 { $as_echo "$as_me:$LINENO: result: no" >&5
3935 $as_echo "no" >&6; }
3936 fi
3939 test -n "$ac_ct_CC" && break
3940 done
3942 if test "x$ac_ct_CC" = x; then
3943 CC=""
3944 else
3945 case $cross_compiling:$ac_tool_warned in
3946 yes:)
3947 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949 ac_tool_warned=yes ;;
3950 esac
3951 CC=$ac_ct_CC
3952 fi
3953 fi
3955 fi
3958 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3961 See \`config.log' for more details." >&5
3962 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3963 See \`config.log' for more details." >&2;}
3964 { (exit 1); exit 1; }; }; }
3966 # Provide some information about the compiler.
3967 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3968 set X $ac_compile
3969 ac_compiler=$2
3970 { (ac_try="$ac_compiler --version >&5"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976 $as_echo "$ac_try_echo") >&5
3977 (eval "$ac_compiler --version >&5") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3981 { (ac_try="$ac_compiler -v >&5"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987 $as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compiler -v >&5") 2>&5
3989 ac_status=$?
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992 { (ac_try="$ac_compiler -V >&5"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compiler -V >&5") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }
4004 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4005 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4006 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4007 $as_echo_n "(cached) " >&6
4008 else
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4016 int
4017 main ()
4018 {
4019 #ifndef __GNUC__
4020 choke me
4021 #endif
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4034 $as_echo "$ac_try_echo") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.$ac_objext; then
4045 ac_compiler_gnu=yes
4046 else
4047 $as_echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_compiler_gnu=no
4051 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4056 fi
4057 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4058 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4059 if test $ac_compiler_gnu = yes; then
4060 GCC=yes
4061 else
4062 GCC=
4063 fi
4064 ac_test_CFLAGS=${CFLAGS+set}
4065 ac_save_CFLAGS=$CFLAGS
4066 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4067 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4068 if test "${ac_cv_prog_cc_g+set}" = set; then
4069 $as_echo_n "(cached) " >&6
4070 else
4071 ac_save_c_werror_flag=$ac_c_werror_flag
4072 ac_c_werror_flag=yes
4073 ac_cv_prog_cc_g=no
4074 CFLAGS="-g"
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4082 int
4083 main ()
4084 {
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 ac_cv_prog_cc_g=yes
4109 else
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 CFLAGS=""
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4121 int
4122 main ()
4123 {
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4136 $as_echo "$ac_try_echo") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 :
4148 else
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_c_werror_flag=$ac_save_c_werror_flag
4153 CFLAGS="-g"
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4161 int
4162 main ()
4163 {
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_compile") 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && {
4184 test -z "$ac_c_werror_flag" ||
4185 test ! -s conftest.err
4186 } && test -s conftest.$ac_objext; then
4187 ac_cv_prog_cc_g=yes
4188 else
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4193 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 ac_c_werror_flag=$ac_save_c_werror_flag
4203 fi
4204 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4205 $as_echo "$ac_cv_prog_cc_g" >&6; }
4206 if test "$ac_test_CFLAGS" = set; then
4207 CFLAGS=$ac_save_CFLAGS
4208 elif test $ac_cv_prog_cc_g = yes; then
4209 if test "$GCC" = yes; then
4210 CFLAGS="-g -O2"
4211 else
4212 CFLAGS="-g"
4213 fi
4214 else
4215 if test "$GCC" = yes; then
4216 CFLAGS="-O2"
4217 else
4218 CFLAGS=
4219 fi
4220 fi
4221 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4222 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4223 if test "${ac_cv_prog_cc_c89+set}" = set; then
4224 $as_echo_n "(cached) " >&6
4225 else
4226 ac_cv_prog_cc_c89=no
4227 ac_save_CC=$CC
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <stdarg.h>
4235 #include <stdio.h>
4236 #include <sys/types.h>
4237 #include <sys/stat.h>
4238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4239 struct buf { int x; };
4240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4241 static char *e (p, i)
4242 char **p;
4243 int i;
4244 {
4245 return p[i];
4246 }
4247 static char *f (char * (*g) (char **, int), char **p, ...)
4248 {
4249 char *s;
4250 va_list v;
4251 va_start (v,p);
4252 s = g (p, va_arg (v,int));
4253 va_end (v);
4254 return s;
4255 }
4257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4258 function prototypes and stuff, but not '\xHH' hex character constants.
4259 These don't provoke an error unfortunately, instead are silently treated
4260 as 'x'. The following induces an error, until -std is added to get
4261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4262 array size at least. It's necessary to write '\x00'==0 to get something
4263 that's true only with -std. */
4264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4267 inside strings and character constants. */
4268 #define FOO(x) 'x'
4269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271 int test (int i, double x);
4272 struct s1 {int (*f) (int a);};
4273 struct s2 {int (*f) (double a);};
4274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4275 int argc;
4276 char **argv;
4277 int
4278 main ()
4279 {
4280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4281 ;
4282 return 0;
4283 }
4284 _ACEOF
4285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4287 do
4288 CC="$ac_save_CC $ac_arg"
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4296 $as_echo "$ac_try_echo") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } && {
4304 test -z "$ac_c_werror_flag" ||
4305 test ! -s conftest.err
4306 } && test -s conftest.$ac_objext; then
4307 ac_cv_prog_cc_c89=$ac_arg
4308 else
4309 $as_echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4313 fi
4315 rm -f core conftest.err conftest.$ac_objext
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 done
4318 rm -f conftest.$ac_ext
4319 CC=$ac_save_CC
4321 fi
4322 # AC_CACHE_VAL
4323 case "x$ac_cv_prog_cc_c89" in
4324 x)
4325 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4326 $as_echo "none needed" >&6; } ;;
4327 xno)
4328 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4329 $as_echo "unsupported" >&6; } ;;
4330 *)
4331 CC="$CC $ac_cv_prog_cc_c89"
4332 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334 esac
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 depcc="$CC" am_compiler_list=
4345 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4346 $as_echo_n "checking dependency style of $depcc... " >&6; }
4347 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4351 # We make a subdir and do the tests there. Otherwise we can end up
4352 # making bogus files that we don't know about and never remove. For
4353 # instance it was reported that on HP-UX the gcc test will end up
4354 # making a dummy file named `D' -- because `-MD' means `put the output
4355 # in D'.
4356 mkdir conftest.dir
4357 # Copy depcomp to subdir because otherwise we won't find it if we're
4358 # using a relative directory.
4359 cp "$am_depcomp" conftest.dir
4360 cd conftest.dir
4361 # We will build objects and dependencies in a subdirectory because
4362 # it helps to detect inapplicable dependency modes. For instance
4363 # both Tru64's cc and ICC support -MD to output dependencies as a
4364 # side effect of compilation, but ICC will put the dependencies in
4365 # the current directory while Tru64 will put them in the object
4366 # directory.
4367 mkdir sub
4369 am_cv_CC_dependencies_compiler_type=none
4370 if test "$am_compiler_list" = ""; then
4371 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4372 fi
4373 for depmode in $am_compiler_list; do
4374 # Setup a source with many dependencies, because some compilers
4375 # like to wrap large dependency lists on column 80 (with \), and
4376 # we should not choose a depcomp mode which is confused by this.
4377 #
4378 # We need to recreate these files for each test, as the compiler may
4379 # overwrite some of them when testing with obscure command lines.
4380 # This happens at least with the AIX C compiler.
4381 : > sub/conftest.c
4382 for i in 1 2 3 4 5 6; do
4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4384 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4385 # Solaris 8's {/usr,}/bin/sh.
4386 touch sub/conftst$i.h
4387 done
4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390 case $depmode in
4391 nosideeffect)
4392 # after this tag, mechanisms are not by side-effect, so they'll
4393 # only be used when explicitly requested
4394 if test "x$enable_dependency_tracking" = xyes; then
4395 continue
4396 else
4397 break
4398 fi
4399 ;;
4400 none) break ;;
4401 esac
4402 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4403 # mode. It turns out that the SunPro C++ compiler does not properly
4404 # handle `-M -o', and we need to detect this.
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4412 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4413 # icc doesn't choke on unknown options, it will just issue warnings
4414 # or remarks (even with -Werror). So we grep stderr for any message
4415 # that says an option was ignored or not supported.
4416 # When given -MP, icc 7.0 and 7.1 complain thusly:
4417 # icc: Command line warning: ignoring option '-M'; no argument required
4418 # The diagnosis changed in icc 8.0:
4419 # icc: Command line remark: option '-MP' not supported
4420 if (grep 'ignoring option' conftest.err ||
4421 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4422 am_cv_CC_dependencies_compiler_type=$depmode
4423 break
4424 fi
4425 fi
4426 done
4428 cd ..
4429 rm -rf conftest.dir
4430 else
4431 am_cv_CC_dependencies_compiler_type=none
4432 fi
4434 fi
4435 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4436 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441 if
4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444 am__fastdepCC_TRUE=
4445 am__fastdepCC_FALSE='#'
4446 else
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4449 fi
4452 ac_ext=c
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_CC+set}" = set; then
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4483 fi
4484 fi
4485 CC=$ac_cv_prog_CC
4486 if test -n "$CC"; then
4487 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4488 $as_echo "$CC" >&6; }
4489 else
4490 { $as_echo "$as_me:$LINENO: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4495 fi
4496 if test -z "$ac_cv_prog_CC"; then
4497 ac_ct_CC=$CC
4498 # Extract the first word of "gcc", so it can be a program name with args.
4499 set dummy gcc; ac_word=$2
4500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4503 $as_echo_n "(cached) " >&6
4504 else
4505 if test -n "$ac_ct_CC"; then
4506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4507 else
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4510 do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 ac_cv_prog_ac_ct_CC="gcc"
4516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 break 2
4518 fi
4519 done
4520 done
4521 IFS=$as_save_IFS
4523 fi
4524 fi
4525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526 if test -n "$ac_ct_CC"; then
4527 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4528 $as_echo "$ac_ct_CC" >&6; }
4529 else
4530 { $as_echo "$as_me:$LINENO: result: no" >&5
4531 $as_echo "no" >&6; }
4532 fi
4534 if test "x$ac_ct_CC" = x; then
4535 CC=""
4536 else
4537 case $cross_compiling:$ac_tool_warned in
4538 yes:)
4539 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4541 ac_tool_warned=yes ;;
4542 esac
4543 CC=$ac_ct_CC
4544 fi
4545 else
4546 CC="$ac_cv_prog_CC"
4547 fi
4549 if test -z "$CC"; then
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4552 set dummy ${ac_tool_prefix}cc; ac_word=$2
4553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_CC+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$CC"; then
4559 ac_cv_prog_CC="$CC" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_CC="${ac_tool_prefix}cc"
4569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4576 fi
4577 fi
4578 CC=$ac_cv_prog_CC
4579 if test -n "$CC"; then
4580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4581 $as_echo "$CC" >&6; }
4582 else
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4588 fi
4589 fi
4590 if test -z "$CC"; then
4591 # Extract the first word of "cc", so it can be a program name with args.
4592 set dummy cc; ac_word=$2
4593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_CC+set}" = set; then
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$CC"; then
4599 ac_cv_prog_CC="$CC" # Let the user override the test.
4600 else
4601 ac_prog_rejected=no
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4610 ac_prog_rejected=yes
4611 continue
4612 fi
4613 ac_cv_prog_CC="cc"
4614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4621 if test $ac_prog_rejected = yes; then
4622 # We found a bogon in the path, so make sure we never use it.
4623 set dummy $ac_cv_prog_CC
4624 shift
4625 if test $# != 0; then
4626 # We chose a different compiler from the bogus one.
4627 # However, it has the same basename, so the bogon will be chosen
4628 # first if we set CC to just the basename; use the full file name.
4629 shift
4630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4631 fi
4632 fi
4633 fi
4634 fi
4635 CC=$ac_cv_prog_CC
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4639 else
4640 { $as_echo "$as_me:$LINENO: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4645 fi
4646 if test -z "$CC"; then
4647 if test -n "$ac_tool_prefix"; then
4648 for ac_prog in cl.exe
4649 do
4650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_CC+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$CC"; then
4658 ac_cv_prog_CC="$CC" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4675 fi
4676 fi
4677 CC=$ac_cv_prog_CC
4678 if test -n "$CC"; then
4679 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4680 $as_echo "$CC" >&6; }
4681 else
4682 { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4687 test -n "$CC" && break
4688 done
4689 fi
4690 if test -z "$CC"; then
4691 ac_ct_CC=$CC
4692 for ac_prog in cl.exe
4693 do
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695 set dummy $ac_prog; ac_word=$2
4696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$ac_ct_CC"; then
4702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_ac_ct_CC="$ac_prog"
4712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4719 fi
4720 fi
4721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4722 if test -n "$ac_ct_CC"; then
4723 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4724 $as_echo "$ac_ct_CC" >&6; }
4725 else
4726 { $as_echo "$as_me:$LINENO: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4731 test -n "$ac_ct_CC" && break
4732 done
4734 if test "x$ac_ct_CC" = x; then
4735 CC=""
4736 else
4737 case $cross_compiling:$ac_tool_warned in
4738 yes:)
4739 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741 ac_tool_warned=yes ;;
4742 esac
4743 CC=$ac_ct_CC
4744 fi
4745 fi
4747 fi
4750 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4752 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4753 See \`config.log' for more details." >&5
4754 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4755 See \`config.log' for more details." >&2;}
4756 { (exit 1); exit 1; }; }; }
4758 # Provide some information about the compiler.
4759 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4760 set X $ac_compile
4761 ac_compiler=$2
4762 { (ac_try="$ac_compiler --version >&5"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4768 $as_echo "$ac_try_echo") >&5
4769 (eval "$ac_compiler --version >&5") 2>&5
4770 ac_status=$?
4771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }
4773 { (ac_try="$ac_compiler -v >&5"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compiler -v >&5") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4784 { (ac_try="$ac_compiler -V >&5"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791 (eval "$ac_compiler -V >&5") 2>&5
4792 ac_status=$?
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }
4796 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4808 int
4809 main ()
4810 {
4811 #ifndef __GNUC__
4812 choke me
4813 #endif
4815 ;
4816 return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4821 case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4837 ac_compiler_gnu=yes
4838 else
4839 $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 ac_compiler_gnu=no
4843 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4848 fi
4849 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4851 if test $ac_compiler_gnu = yes; then
4852 GCC=yes
4853 else
4854 GCC=
4855 fi
4856 ac_test_CFLAGS=${CFLAGS+set}
4857 ac_save_CFLAGS=$CFLAGS
4858 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4860 if test "${ac_cv_prog_cc_g+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4862 else
4863 ac_save_c_werror_flag=$ac_c_werror_flag
4864 ac_c_werror_flag=yes
4865 ac_cv_prog_cc_g=no
4866 CFLAGS="-g"
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4874 int
4875 main ()
4876 {
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_compile") 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest.$ac_objext; then
4900 ac_cv_prog_cc_g=yes
4901 else
4902 $as_echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 CFLAGS=""
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4913 int
4914 main ()
4915 {
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_compile") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest.$ac_objext; then
4939 :
4940 else
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_c_werror_flag=$ac_save_c_werror_flag
4945 CFLAGS="-g"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 int
4954 main ()
4955 {
4957 ;
4958 return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_cv_prog_cc_g=yes
4980 else
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4985 fi
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 fi
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 fi
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_c_werror_flag=$ac_save_c_werror_flag
4995 fi
4996 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4997 $as_echo "$ac_cv_prog_cc_g" >&6; }
4998 if test "$ac_test_CFLAGS" = set; then
4999 CFLAGS=$ac_save_CFLAGS
5000 elif test $ac_cv_prog_cc_g = yes; then
5001 if test "$GCC" = yes; then
5002 CFLAGS="-g -O2"
5003 else
5004 CFLAGS="-g"
5005 fi
5006 else
5007 if test "$GCC" = yes; then
5008 CFLAGS="-O2"
5009 else
5010 CFLAGS=
5011 fi
5012 fi
5013 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5015 if test "${ac_cv_prog_cc_c89+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_cv_prog_cc_c89=no
5019 ac_save_CC=$CC
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <stdarg.h>
5027 #include <stdio.h>
5028 #include <sys/types.h>
5029 #include <sys/stat.h>
5030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5031 struct buf { int x; };
5032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5033 static char *e (p, i)
5034 char **p;
5035 int i;
5036 {
5037 return p[i];
5038 }
5039 static char *f (char * (*g) (char **, int), char **p, ...)
5040 {
5041 char *s;
5042 va_list v;
5043 va_start (v,p);
5044 s = g (p, va_arg (v,int));
5045 va_end (v);
5046 return s;
5047 }
5049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5050 function prototypes and stuff, but not '\xHH' hex character constants.
5051 These don't provoke an error unfortunately, instead are silently treated
5052 as 'x'. The following induces an error, until -std is added to get
5053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5054 array size at least. It's necessary to write '\x00'==0 to get something
5055 that's true only with -std. */
5056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5059 inside strings and character constants. */
5060 #define FOO(x) 'x'
5061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5063 int test (int i, double x);
5064 struct s1 {int (*f) (int a);};
5065 struct s2 {int (*f) (double a);};
5066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5067 int argc;
5068 char **argv;
5069 int
5070 main ()
5071 {
5072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5073 ;
5074 return 0;
5075 }
5076 _ACEOF
5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5079 do
5080 CC="$ac_save_CC $ac_arg"
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5088 $as_echo "$ac_try_echo") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest.$ac_objext; then
5099 ac_cv_prog_cc_c89=$ac_arg
5100 else
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 done
5110 rm -f conftest.$ac_ext
5111 CC=$ac_save_CC
5113 fi
5114 # AC_CACHE_VAL
5115 case "x$ac_cv_prog_cc_c89" in
5116 x)
5117 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5118 $as_echo "none needed" >&6; } ;;
5119 xno)
5120 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5121 $as_echo "unsupported" >&6; } ;;
5122 *)
5123 CC="$CC $ac_cv_prog_cc_c89"
5124 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5126 esac
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 depcc="$CC" am_compiler_list=
5137 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5138 $as_echo_n "checking dependency style of $depcc... " >&6; }
5139 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5143 # We make a subdir and do the tests there. Otherwise we can end up
5144 # making bogus files that we don't know about and never remove. For
5145 # instance it was reported that on HP-UX the gcc test will end up
5146 # making a dummy file named `D' -- because `-MD' means `put the output
5147 # in D'.
5148 mkdir conftest.dir
5149 # Copy depcomp to subdir because otherwise we won't find it if we're
5150 # using a relative directory.
5151 cp "$am_depcomp" conftest.dir
5152 cd conftest.dir
5153 # We will build objects and dependencies in a subdirectory because
5154 # it helps to detect inapplicable dependency modes. For instance
5155 # both Tru64's cc and ICC support -MD to output dependencies as a
5156 # side effect of compilation, but ICC will put the dependencies in
5157 # the current directory while Tru64 will put them in the object
5158 # directory.
5159 mkdir sub
5161 am_cv_CC_dependencies_compiler_type=none
5162 if test "$am_compiler_list" = ""; then
5163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164 fi
5165 for depmode in $am_compiler_list; do
5166 # Setup a source with many dependencies, because some compilers
5167 # like to wrap large dependency lists on column 80 (with \), and
5168 # we should not choose a depcomp mode which is confused by this.
5169 #
5170 # We need to recreate these files for each test, as the compiler may
5171 # overwrite some of them when testing with obscure command lines.
5172 # This happens at least with the AIX C compiler.
5173 : > sub/conftest.c
5174 for i in 1 2 3 4 5 6; do
5175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5176 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5177 # Solaris 8's {/usr,}/bin/sh.
5178 touch sub/conftst$i.h
5179 done
5180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5182 case $depmode in
5183 nosideeffect)
5184 # after this tag, mechanisms are not by side-effect, so they'll
5185 # only be used when explicitly requested
5186 if test "x$enable_dependency_tracking" = xyes; then
5187 continue
5188 else
5189 break
5190 fi
5191 ;;
5192 none) break ;;
5193 esac
5194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5195 # mode. It turns out that the SunPro C++ compiler does not properly
5196 # handle `-M -o', and we need to detect this.
5197 if depmode=$depmode \
5198 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5200 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5201 >/dev/null 2>conftest.err &&
5202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5203 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5205 # icc doesn't choke on unknown options, it will just issue warnings
5206 # or remarks (even with -Werror). So we grep stderr for any message
5207 # that says an option was ignored or not supported.
5208 # When given -MP, icc 7.0 and 7.1 complain thusly:
5209 # icc: Command line warning: ignoring option '-M'; no argument required
5210 # The diagnosis changed in icc 8.0:
5211 # icc: Command line remark: option '-MP' not supported
5212 if (grep 'ignoring option' conftest.err ||
5213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5214 am_cv_CC_dependencies_compiler_type=$depmode
5215 break
5216 fi
5217 fi
5218 done
5220 cd ..
5221 rm -rf conftest.dir
5222 else
5223 am_cv_CC_dependencies_compiler_type=none
5224 fi
5226 fi
5227 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5228 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5229 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233 if
5234 test "x$enable_dependency_tracking" != xno \
5235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5236 am__fastdepCC_TRUE=
5237 am__fastdepCC_FALSE='#'
5238 else
5239 am__fastdepCC_TRUE='#'
5240 am__fastdepCC_FALSE=
5241 fi
5245 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5247 ac_ext=m
5248 ac_cpp='$OBJCPP $CPPFLAGS'
5249 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5252 if test -n "$ac_tool_prefix"; then
5253 for ac_prog in gcc objcc objc cc CC
5254 do
5255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_OBJC+set}" = set; then
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$OBJC"; then
5263 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5280 fi
5281 fi
5282 OBJC=$ac_cv_prog_OBJC
5283 if test -n "$OBJC"; then
5284 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5285 $as_echo "$OBJC" >&6; }
5286 else
5287 { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5292 test -n "$OBJC" && break
5293 done
5294 fi
5295 if test -z "$OBJC"; then
5296 ac_ct_OBJC=$OBJC
5297 for ac_prog in gcc objcc objc cc CC
5298 do
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$ac_ct_OBJC"; then
5307 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5324 fi
5325 fi
5326 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5327 if test -n "$ac_ct_OBJC"; then
5328 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5329 $as_echo "$ac_ct_OBJC" >&6; }
5330 else
5331 { $as_echo "$as_me:$LINENO: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5336 test -n "$ac_ct_OBJC" && break
5337 done
5339 if test "x$ac_ct_OBJC" = x; then
5340 OBJC="gcc"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346 ac_tool_warned=yes ;;
5347 esac
5348 OBJC=$ac_ct_OBJC
5349 fi
5350 fi
5352 # Provide some information about the compiler.
5353 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5354 set X $ac_compile
5355 ac_compiler=$2
5356 { (ac_try="$ac_compiler --version >&5"
5357 case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360 esac
5361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5362 $as_echo "$ac_try_echo") >&5
5363 (eval "$ac_compiler --version >&5") 2>&5
5364 ac_status=$?
5365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }
5367 { (ac_try="$ac_compiler -v >&5"
5368 case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371 esac
5372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373 $as_echo "$ac_try_echo") >&5
5374 (eval "$ac_compiler -v >&5") 2>&5
5375 ac_status=$?
5376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }
5378 { (ac_try="$ac_compiler -V >&5"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_compiler -V >&5") 2>&5
5386 ac_status=$?
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }
5390 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5391 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5392 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5393 $as_echo_n "(cached) " >&6
5394 else
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5402 int
5403 main ()
5404 {
5405 #ifndef __GNUC__
5406 choke me
5407 #endif
5409 ;
5410 return 0;
5411 }
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (ac_try="$ac_compile"
5415 case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418 esac
5419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5420 $as_echo "$ac_try_echo") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && {
5428 test -z "$ac_objc_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest.$ac_objext; then
5431 ac_compiler_gnu=yes
5432 else
5433 $as_echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 ac_compiler_gnu=no
5437 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5442 fi
5443 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5444 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5445 if test $ac_compiler_gnu = yes; then
5446 GOBJC=yes
5447 else
5448 GOBJC=
5449 fi
5450 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5451 ac_save_OBJCFLAGS=$OBJCFLAGS
5452 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5453 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5454 if test "${ac_cv_prog_objc_g+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5456 else
5457 ac_save_objc_werror_flag=$ac_objc_werror_flag
5458 ac_objc_werror_flag=yes
5459 ac_cv_prog_objc_g=no
5460 OBJCFLAGS="-g"
5461 cat >conftest.$ac_ext <<_ACEOF
5462 /* confdefs.h. */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5468 int
5469 main ()
5470 {
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5483 $as_echo "$ac_try_echo") >&5
5484 (eval "$ac_compile") 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_objc_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
5494 ac_cv_prog_objc_g=yes
5495 else
5496 $as_echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 OBJCFLAGS=""
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5507 int
5508 main ()
5509 {
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (ac_try="$ac_compile"
5517 case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5522 $as_echo "$ac_try_echo") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_objc_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
5533 :
5534 else
5535 $as_echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ac_objc_werror_flag=$ac_save_objc_werror_flag
5539 OBJCFLAGS="-g"
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5547 int
5548 main ()
5549 {
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5562 $as_echo "$ac_try_echo") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_objc_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5573 ac_cv_prog_objc_g=yes
5574 else
5575 $as_echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5579 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ac_objc_werror_flag=$ac_save_objc_werror_flag
5589 fi
5590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5591 $as_echo "$ac_cv_prog_objc_g" >&6; }
5592 if test "$ac_test_OBJCFLAGS" = set; then
5593 OBJCFLAGS=$ac_save_OBJCFLAGS
5594 elif test $ac_cv_prog_objc_g = yes; then
5595 if test "$GOBJC" = yes; then
5596 OBJCFLAGS="-g -O2"
5597 else
5598 OBJCFLAGS="-g"
5599 fi
5600 else
5601 if test "$GOBJC" = yes; then
5602 OBJCFLAGS="-O2"
5603 else
5604 OBJCFLAGS=
5605 fi
5606 fi
5607 ac_ext=c
5608 ac_cpp='$CPP $CPPFLAGS'
5609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5614 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5615 if test "${ac_cv_path_SED+set}" = set; then
5616 $as_echo_n "(cached) " >&6
5617 else
5618 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5619 for ac_i in 1 2 3 4 5 6 7; do
5620 ac_script="$ac_script$as_nl$ac_script"
5621 done
5622 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5623 $as_unset ac_script || ac_script=
5624 if test -z "$SED"; then
5625 ac_path_SED_found=false
5626 # Loop through the user's path and test for each of PROGNAME-LIST
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_prog in sed gsed; do
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5635 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5636 # Check for GNU ac_path_SED and select it if it is found.
5637 # Check for GNU $ac_path_SED
5638 case `"$ac_path_SED" --version 2>&1` in
5639 *GNU*)
5640 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5641 *)
5642 ac_count=0
5643 $as_echo_n 0123456789 >"conftest.in"
5644 while :
5645 do
5646 cat "conftest.in" "conftest.in" >"conftest.tmp"
5647 mv "conftest.tmp" "conftest.in"
5648 cp "conftest.in" "conftest.nl"
5649 $as_echo '' >> "conftest.nl"
5650 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5652 ac_count=`expr $ac_count + 1`
5653 if test $ac_count -gt ${ac_path_SED_max-0}; then
5654 # Best one so far, save it but keep looking for a better one
5655 ac_cv_path_SED="$ac_path_SED"
5656 ac_path_SED_max=$ac_count
5657 fi
5658 # 10*(2^10) chars as input seems more than enough
5659 test $ac_count -gt 10 && break
5660 done
5661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5662 esac
5664 $ac_path_SED_found && break 3
5665 done
5666 done
5667 done
5668 IFS=$as_save_IFS
5669 if test -z "$ac_cv_path_SED"; then
5670 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5671 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5672 { (exit 1); exit 1; }; }
5673 fi
5674 else
5675 ac_cv_path_SED=$SED
5676 fi
5678 fi
5679 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5680 $as_echo "$ac_cv_path_SED" >&6; }
5681 SED="$ac_cv_path_SED"
5682 rm -f conftest.sed
5684 # By default we simply use the C compiler to build assembly code.
5686 test "${CCAS+set}" = set || CCAS=$CC
5687 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5697 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5698 # On Suns, sometimes $CPP names a directory.
5699 if test -n "$CPP" && test -d "$CPP"; then
5700 CPP=
5701 fi
5702 if test -z "$CPP"; then
5703 if test "${ac_cv_prog_CPP+set}" = set; then
5704 $as_echo_n "(cached) " >&6
5705 else
5706 # Double quotes because CPP needs to be expanded
5707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5708 do
5709 ac_preproc_ok=false
5710 for ac_c_preproc_warn_flag in '' yes
5711 do
5712 # Use a header file that comes with gcc, so configuring glibc
5713 # with a fresh cross-compiler works.
5714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5715 # <limits.h> exists even on freestanding compilers.
5716 # On the NeXT, cc -E runs the code through the compiler's parser,
5717 # not just through cpp. "Syntax error" is here to catch this case.
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #ifdef __STDC__
5725 # include <limits.h>
5726 #else
5727 # include <assert.h>
5728 #endif
5729 Syntax error
5730 _ACEOF
5731 if { (ac_try="$ac_cpp conftest.$ac_ext"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5737 $as_echo "$ac_try_echo") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 }; then
5748 :
5749 else
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 # Broken: fails on valid input.
5754 continue
5755 fi
5757 rm -f conftest.err conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <ac_nonexistent.h>
5768 _ACEOF
5769 if { (ac_try="$ac_cpp conftest.$ac_ext"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5775 $as_echo "$ac_try_echo") >&5
5776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } >/dev/null && {
5783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 }; then
5786 # Broken: success on invalid input.
5787 continue
5788 else
5789 $as_echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 # Passes both tests.
5793 ac_preproc_ok=:
5794 break
5795 fi
5797 rm -f conftest.err conftest.$ac_ext
5799 done
5800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5801 rm -f conftest.err conftest.$ac_ext
5802 if $ac_preproc_ok; then
5803 break
5804 fi
5806 done
5807 ac_cv_prog_CPP=$CPP
5809 fi
5810 CPP=$ac_cv_prog_CPP
5811 else
5812 ac_cv_prog_CPP=$CPP
5813 fi
5814 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5815 $as_echo "$CPP" >&6; }
5816 ac_preproc_ok=false
5817 for ac_c_preproc_warn_flag in '' yes
5818 do
5819 # Use a header file that comes with gcc, so configuring glibc
5820 # with a fresh cross-compiler works.
5821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822 # <limits.h> exists even on freestanding compilers.
5823 # On the NeXT, cc -E runs the code through the compiler's parser,
5824 # not just through cpp. "Syntax error" is here to catch this case.
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #ifdef __STDC__
5832 # include <limits.h>
5833 #else
5834 # include <assert.h>
5835 #endif
5836 Syntax error
5837 _ACEOF
5838 if { (ac_try="$ac_cpp conftest.$ac_ext"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5844 $as_echo "$ac_try_echo") >&5
5845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } >/dev/null && {
5852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 }; then
5855 :
5856 else
5857 $as_echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 # Broken: fails on valid input.
5861 continue
5862 fi
5864 rm -f conftest.err conftest.$ac_ext
5866 # OK, works on sane cases. Now check whether nonexistent headers
5867 # can be detected and how.
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #include <ac_nonexistent.h>
5875 _ACEOF
5876 if { (ac_try="$ac_cpp conftest.$ac_ext"
5877 case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880 esac
5881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5882 $as_echo "$ac_try_echo") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null && {
5890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 }; then
5893 # Broken: success on invalid input.
5894 continue
5895 else
5896 $as_echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 # Passes both tests.
5900 ac_preproc_ok=:
5901 break
5902 fi
5904 rm -f conftest.err conftest.$ac_ext
5906 done
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.$ac_ext
5909 if $ac_preproc_ok; then
5910 :
5911 else
5912 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5914 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5915 See \`config.log' for more details." >&5
5916 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5917 See \`config.log' for more details." >&2;}
5918 { (exit 1); exit 1; }; }; }
5919 fi
5921 ac_ext=c
5922 ac_cpp='$CPP $CPPFLAGS'
5923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5928 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5930 if test "${ac_cv_path_GREP+set}" = set; then
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -z "$GREP"; then
5934 ac_path_GREP_found=false
5935 # Loop through the user's path and test for each of PROGNAME-LIST
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5938 do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_prog in grep ggrep; do
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5945 # Check for GNU ac_path_GREP and select it if it is found.
5946 # Check for GNU $ac_path_GREP
5947 case `"$ac_path_GREP" --version 2>&1` in
5948 *GNU*)
5949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5950 *)
5951 ac_count=0
5952 $as_echo_n 0123456789 >"conftest.in"
5953 while :
5954 do
5955 cat "conftest.in" "conftest.in" >"conftest.tmp"
5956 mv "conftest.tmp" "conftest.in"
5957 cp "conftest.in" "conftest.nl"
5958 $as_echo 'GREP' >> "conftest.nl"
5959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5961 ac_count=`expr $ac_count + 1`
5962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5963 # Best one so far, save it but keep looking for a better one
5964 ac_cv_path_GREP="$ac_path_GREP"
5965 ac_path_GREP_max=$ac_count
5966 fi
5967 # 10*(2^10) chars as input seems more than enough
5968 test $ac_count -gt 10 && break
5969 done
5970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5971 esac
5973 $ac_path_GREP_found && break 3
5974 done
5975 done
5976 done
5977 IFS=$as_save_IFS
5978 if test -z "$ac_cv_path_GREP"; then
5979 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5980 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5981 { (exit 1); exit 1; }; }
5982 fi
5983 else
5984 ac_cv_path_GREP=$GREP
5985 fi
5987 fi
5988 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5989 $as_echo "$ac_cv_path_GREP" >&6; }
5990 GREP="$ac_cv_path_GREP"
5993 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5994 $as_echo_n "checking for egrep... " >&6; }
5995 if test "${ac_cv_path_EGREP+set}" = set; then
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5999 then ac_cv_path_EGREP="$GREP -E"
6000 else
6001 if test -z "$EGREP"; then
6002 ac_path_EGREP_found=false
6003 # Loop through the user's path and test for each of PROGNAME-LIST
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_prog in egrep; do
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6012 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6013 # Check for GNU ac_path_EGREP and select it if it is found.
6014 # Check for GNU $ac_path_EGREP
6015 case `"$ac_path_EGREP" --version 2>&1` in
6016 *GNU*)
6017 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6018 *)
6019 ac_count=0
6020 $as_echo_n 0123456789 >"conftest.in"
6021 while :
6022 do
6023 cat "conftest.in" "conftest.in" >"conftest.tmp"
6024 mv "conftest.tmp" "conftest.in"
6025 cp "conftest.in" "conftest.nl"
6026 $as_echo 'EGREP' >> "conftest.nl"
6027 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6029 ac_count=`expr $ac_count + 1`
6030 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6031 # Best one so far, save it but keep looking for a better one
6032 ac_cv_path_EGREP="$ac_path_EGREP"
6033 ac_path_EGREP_max=$ac_count
6034 fi
6035 # 10*(2^10) chars as input seems more than enough
6036 test $ac_count -gt 10 && break
6037 done
6038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6039 esac
6041 $ac_path_EGREP_found && break 3
6042 done
6043 done
6044 done
6045 IFS=$as_save_IFS
6046 if test -z "$ac_cv_path_EGREP"; then
6047 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6048 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6049 { (exit 1); exit 1; }; }
6050 fi
6051 else
6052 ac_cv_path_EGREP=$EGREP
6053 fi
6055 fi
6056 fi
6057 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6058 $as_echo "$ac_cv_path_EGREP" >&6; }
6059 EGREP="$ac_cv_path_EGREP"
6062 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6063 $as_echo_n "checking for ANSI C header files... " >&6; }
6064 if test "${ac_cv_header_stdc+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <stdlib.h>
6074 #include <stdarg.h>
6075 #include <string.h>
6076 #include <float.h>
6078 int
6079 main ()
6080 {
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093 $as_echo "$ac_try_echo") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_cv_header_stdc=yes
6105 else
6106 $as_echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_cv_header_stdc=no
6110 fi
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 #include <string.h>
6124 _ACEOF
6125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126 $EGREP "memchr" >/dev/null 2>&1; then
6127 :
6128 else
6129 ac_cv_header_stdc=no
6130 fi
6131 rm -f conftest*
6133 fi
6135 if test $ac_cv_header_stdc = yes; then
6136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <stdlib.h>
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev/null 2>&1; then
6148 :
6149 else
6150 ac_cv_header_stdc=no
6151 fi
6152 rm -f conftest*
6154 fi
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then
6159 :
6160 else
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <ctype.h>
6168 #include <stdlib.h>
6169 #if ((' ' & 0x0FF) == 0x020)
6170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6172 #else
6173 # define ISLOWER(c) \
6174 (('a' <= (c) && (c) <= 'i') \
6175 || ('j' <= (c) && (c) <= 'r') \
6176 || ('s' <= (c) && (c) <= 'z'))
6177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6178 #endif
6180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6181 int
6182 main ()
6183 {
6184 int i;
6185 for (i = 0; i < 256; i++)
6186 if (XOR (islower (i), ISLOWER (i))
6187 || toupper (i) != TOUPPER (i))
6188 return 2;
6189 return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest$ac_exeext
6193 if { (ac_try="$ac_link"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200 (eval "$ac_link") 2>&5
6201 ac_status=$?
6202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 :
6215 else
6216 $as_echo "$as_me: program exited with status $ac_status" >&5
6217 $as_echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ( exit $ac_status )
6221 ac_cv_header_stdc=no
6222 fi
6223 rm -rf conftest.dSYM
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6225 fi
6228 fi
6229 fi
6230 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6231 $as_echo "$ac_cv_header_stdc" >&6; }
6232 if test $ac_cv_header_stdc = yes; then
6234 cat >>confdefs.h <<\_ACEOF
6235 #define STDC_HEADERS 1
6236 _ACEOF
6238 fi
6240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6251 inttypes.h stdint.h unistd.h
6252 do
6253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 $as_echo_n "checking for $ac_header... " >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 $as_echo_n "(cached) " >&6
6258 else
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6267 #include <$ac_header>
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6271 case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274 esac
6275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287 eval "$as_ac_Header=yes"
6288 else
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 eval "$as_ac_Header=no"
6293 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 fi
6297 ac_res=`eval 'as_val=${'$as_ac_Header'}
6298 $as_echo "$as_val"'`
6299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6300 $as_echo "$ac_res" >&6; }
6301 as_val=`eval 'as_val=${'$as_ac_Header'}
6302 $as_echo "$as_val"'`
6303 if test "x$as_val" = x""yes; then
6304 cat >>confdefs.h <<_ACEOF
6305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6306 _ACEOF
6308 fi
6310 done
6313 # The cast to long int works around a bug in the HP C Compiler
6314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6316 # This bug is HP SR number 8606223364.
6317 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6318 $as_echo_n "checking size of void *... " >&6; }
6319 if test "${ac_cv_sizeof_void_p+set}" = set; then
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test "$cross_compiling" = yes; then
6323 # Depending upon the size, compute the lo and hi bounds.
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 $ac_includes_default
6331 int
6332 main ()
6333 {
6334 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6335 test_array [0] = 0
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6348 $as_echo "$ac_try_echo") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_lo=0 ac_mid=0
6360 while :; do
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 $ac_includes_default
6368 int
6369 main ()
6370 {
6371 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6372 test_array [0] = 0
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_hi=$ac_mid; break
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_lo=`expr $ac_mid + 1`
6402 if test $ac_lo -le $ac_mid; then
6403 ac_lo= ac_hi=
6404 break
6405 fi
6406 ac_mid=`expr 2 '*' $ac_mid + 1`
6407 fi
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 done
6411 else
6412 $as_echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h. */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6422 int
6423 main ()
6424 {
6425 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6426 test_array [0] = 0
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6434 case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6439 $as_echo "$ac_try_echo") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 ac_hi=-1 ac_mid=-1
6451 while :; do
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6459 int
6460 main ()
6461 {
6462 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6463 test_array [0] = 0
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6476 $as_echo "$ac_try_echo") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487 ac_lo=$ac_mid; break
6488 else
6489 $as_echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 ac_hi=`expr '(' $ac_mid ')' - 1`
6493 if test $ac_mid -le $ac_hi; then
6494 ac_lo= ac_hi=
6495 break
6496 fi
6497 ac_mid=`expr 2 '*' $ac_mid`
6498 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 done
6502 else
6503 $as_echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_lo= ac_hi=
6507 fi
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 # Binary search between lo and hi bounds.
6514 while test "x$ac_lo" != "x$ac_hi"; do
6515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6523 int
6524 main ()
6525 {
6526 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6527 test_array [0] = 0
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6540 $as_echo "$ac_try_echo") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } && {
6548 test -z "$ac_c_werror_flag" ||
6549 test ! -s conftest.err
6550 } && test -s conftest.$ac_objext; then
6551 ac_hi=$ac_mid
6552 else
6553 $as_echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_lo=`expr '(' $ac_mid ')' + 1`
6557 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 done
6561 case $ac_lo in
6562 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6563 '') if test "$ac_cv_type_void_p" = yes; then
6564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6566 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6567 See \`config.log' for more details." >&5
6568 $as_echo "$as_me: error: cannot compute sizeof (void *)
6569 See \`config.log' for more details." >&2;}
6570 { (exit 77); exit 77; }; }; }
6571 else
6572 ac_cv_sizeof_void_p=0
6573 fi ;;
6574 esac
6575 else
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6583 static long int longval () { return (long int) (sizeof (void *)); }
6584 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6585 #include <stdio.h>
6586 #include <stdlib.h>
6587 int
6588 main ()
6589 {
6591 FILE *f = fopen ("conftest.val", "w");
6592 if (! f)
6593 return 1;
6594 if (((long int) (sizeof (void *))) < 0)
6595 {
6596 long int i = longval ();
6597 if (i != ((long int) (sizeof (void *))))
6598 return 1;
6599 fprintf (f, "%ld", i);
6600 }
6601 else
6602 {
6603 unsigned long int i = ulongval ();
6604 if (i != ((long int) (sizeof (void *))))
6605 return 1;
6606 fprintf (f, "%lu", i);
6607 }
6608 /* Do not output a trailing newline, as this causes \r\n confusion
6609 on some platforms. */
6610 return ferror (f) || fclose (f) != 0;
6612 ;
6613 return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest$ac_exeext
6617 if { (ac_try="$ac_link"
6618 case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621 esac
6622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623 $as_echo "$ac_try_echo") >&5
6624 (eval "$ac_link") 2>&5
6625 ac_status=$?
6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_sizeof_void_p=`cat conftest.val`
6639 else
6640 $as_echo "$as_me: program exited with status $ac_status" >&5
6641 $as_echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ( exit $ac_status )
6645 if test "$ac_cv_type_void_p" = yes; then
6646 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6648 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6649 See \`config.log' for more details." >&5
6650 $as_echo "$as_me: error: cannot compute sizeof (void *)
6651 See \`config.log' for more details." >&2;}
6652 { (exit 77); exit 77; }; }; }
6653 else
6654 ac_cv_sizeof_void_p=0
6655 fi
6656 fi
6657 rm -rf conftest.dSYM
6658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6659 fi
6660 rm -f conftest.val
6661 fi
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6663 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6667 cat >>confdefs.h <<_ACEOF
6668 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6669 _ACEOF
6672 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6673 $as_echo_n "checking for ANSI C header files... " >&6; }
6674 if test "${ac_cv_header_stdc+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <stdlib.h>
6684 #include <stdarg.h>
6685 #include <string.h>
6686 #include <float.h>
6688 int
6689 main ()
6690 {
6692 ;
6693 return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6698 case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701 esac
6702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703 $as_echo "$ac_try_echo") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_header_stdc=yes
6715 else
6716 $as_echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_header_stdc=no
6720 fi
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 if test $ac_cv_header_stdc = yes; then
6725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 #include <string.h>
6734 _ACEOF
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 $EGREP "memchr" >/dev/null 2>&1; then
6737 :
6738 else
6739 ac_cv_header_stdc=no
6740 fi
6741 rm -f conftest*
6743 fi
6745 if test $ac_cv_header_stdc = yes; then
6746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <stdlib.h>
6755 _ACEOF
6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6757 $EGREP "free" >/dev/null 2>&1; then
6758 :
6759 else
6760 ac_cv_header_stdc=no
6761 fi
6762 rm -f conftest*
6764 fi
6766 if test $ac_cv_header_stdc = yes; then
6767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6768 if test "$cross_compiling" = yes; then
6769 :
6770 else
6771 cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h. */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6777 #include <ctype.h>
6778 #include <stdlib.h>
6779 #if ((' ' & 0x0FF) == 0x020)
6780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6782 #else
6783 # define ISLOWER(c) \
6784 (('a' <= (c) && (c) <= 'i') \
6785 || ('j' <= (c) && (c) <= 'r') \
6786 || ('s' <= (c) && (c) <= 'z'))
6787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6788 #endif
6790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6791 int
6792 main ()
6793 {
6794 int i;
6795 for (i = 0; i < 256; i++)
6796 if (XOR (islower (i), ISLOWER (i))
6797 || toupper (i) != TOUPPER (i))
6798 return 2;
6799 return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_link") 2>&5
6811 ac_status=$?
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6821 ac_status=$?
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 :
6825 else
6826 $as_echo "$as_me: program exited with status $ac_status" >&5
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 ( exit $ac_status )
6831 ac_cv_header_stdc=no
6832 fi
6833 rm -rf conftest.dSYM
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6835 fi
6838 fi
6839 fi
6840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6841 $as_echo "$ac_cv_header_stdc" >&6; }
6842 if test $ac_cv_header_stdc = yes; then
6844 cat >>confdefs.h <<\_ACEOF
6845 #define STDC_HEADERS 1
6846 _ACEOF
6848 fi
6850 # Make sure we can run config.sub.
6851 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6852 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6853 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6854 { (exit 1); exit 1; }; }
6856 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6857 $as_echo_n "checking build system type... " >&6; }
6858 if test "${ac_cv_build+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6860 else
6861 ac_build_alias=$build_alias
6862 test "x$ac_build_alias" = x &&
6863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6864 test "x$ac_build_alias" = x &&
6865 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6866 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6867 { (exit 1); exit 1; }; }
6868 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6869 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6870 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6871 { (exit 1); exit 1; }; }
6873 fi
6874 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6875 $as_echo "$ac_cv_build" >&6; }
6876 case $ac_cv_build in
6877 *-*-*) ;;
6878 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6879 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6880 { (exit 1); exit 1; }; };;
6881 esac
6882 build=$ac_cv_build
6883 ac_save_IFS=$IFS; IFS='-'
6884 set x $ac_cv_build
6885 shift
6886 build_cpu=$1
6887 build_vendor=$2
6888 shift; shift
6889 # Remember, the first character of IFS is used to create $*,
6890 # except with old shells:
6891 build_os=$*
6892 IFS=$ac_save_IFS
6893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6896 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6897 $as_echo_n "checking host system type... " >&6; }
6898 if test "${ac_cv_host+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6900 else
6901 if test "x$host_alias" = x; then
6902 ac_cv_host=$ac_cv_build
6903 else
6904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6905 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6906 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6907 { (exit 1); exit 1; }; }
6908 fi
6910 fi
6911 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6912 $as_echo "$ac_cv_host" >&6; }
6913 case $ac_cv_host in
6914 *-*-*) ;;
6915 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6916 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6917 { (exit 1); exit 1; }; };;
6918 esac
6919 host=$ac_cv_host
6920 ac_save_IFS=$IFS; IFS='-'
6921 set x $ac_cv_host
6922 shift
6923 host_cpu=$1
6924 host_vendor=$2
6925 shift; shift
6926 # Remember, the first character of IFS is used to create $*,
6927 # except with old shells:
6928 host_os=$*
6929 IFS=$ac_save_IFS
6930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6935 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6937 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6938 $as_echo_n "checking dependency style of $depcc... " >&6; }
6939 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6943 # We make a subdir and do the tests there. Otherwise we can end up
6944 # making bogus files that we don't know about and never remove. For
6945 # instance it was reported that on HP-UX the gcc test will end up
6946 # making a dummy file named `D' -- because `-MD' means `put the output
6947 # in D'.
6948 mkdir conftest.dir
6949 # Copy depcomp to subdir because otherwise we won't find it if we're
6950 # using a relative directory.
6951 cp "$am_depcomp" conftest.dir
6952 cd conftest.dir
6953 # We will build objects and dependencies in a subdirectory because
6954 # it helps to detect inapplicable dependency modes. For instance
6955 # both Tru64's cc and ICC support -MD to output dependencies as a
6956 # side effect of compilation, but ICC will put the dependencies in
6957 # the current directory while Tru64 will put them in the object
6958 # directory.
6959 mkdir sub
6961 am_cv_OBJC_dependencies_compiler_type=none
6962 if test "$am_compiler_list" = ""; then
6963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6964 fi
6965 for depmode in $am_compiler_list; do
6966 # Setup a source with many dependencies, because some compilers
6967 # like to wrap large dependency lists on column 80 (with \), and
6968 # we should not choose a depcomp mode which is confused by this.
6969 #
6970 # We need to recreate these files for each test, as the compiler may
6971 # overwrite some of them when testing with obscure command lines.
6972 # This happens at least with the AIX C compiler.
6973 : > sub/conftest.c
6974 for i in 1 2 3 4 5 6; do
6975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6977 # Solaris 8's {/usr,}/bin/sh.
6978 touch sub/conftst$i.h
6979 done
6980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6982 case $depmode in
6983 nosideeffect)
6984 # after this tag, mechanisms are not by side-effect, so they'll
6985 # only be used when explicitly requested
6986 if test "x$enable_dependency_tracking" = xyes; then
6987 continue
6988 else
6989 break
6990 fi
6991 ;;
6992 none) break ;;
6993 esac
6994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6995 # mode. It turns out that the SunPro C++ compiler does not properly
6996 # handle `-M -o', and we need to detect this.
6997 if depmode=$depmode \
6998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7001 >/dev/null 2>conftest.err &&
7002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014 am_cv_OBJC_dependencies_compiler_type=$depmode
7015 break
7016 fi
7017 fi
7018 done
7020 cd ..
7021 rm -rf conftest.dir
7022 else
7023 am_cv_OBJC_dependencies_compiler_type=none
7024 fi
7026 fi
7027 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7029 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7033 if
7034 test "x$enable_dependency_tracking" != xno \
7035 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7036 am__fastdepOBJC_TRUE=
7037 am__fastdepOBJC_FALSE='#'
7038 else
7039 am__fastdepOBJC_TRUE='#'
7040 am__fastdepOBJC_FALSE=
7041 fi
7045 # Extract the first word of "pod2man", so it can be a program name with args.
7046 set dummy pod2man; ac_word=$2
7047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_POD2MAN+set}" = set; then
7050 $as_echo_n "(cached) " >&6
7051 else
7052 case $POD2MAN in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7072 ;;
7073 esac
7074 fi
7075 POD2MAN=$ac_cv_path_POD2MAN
7076 if test -n "$POD2MAN"; then
7077 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7078 $as_echo "$POD2MAN" >&6; }
7079 else
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7085 # Extract the first word of "pod2html", so it can be a program name with args.
7086 set dummy pod2html; ac_word=$2
7087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_path_POD2HTML+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7091 else
7092 case $POD2HTML in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7112 ;;
7113 esac
7114 fi
7115 POD2HTML=$ac_cv_path_POD2HTML
7116 if test -n "$POD2HTML"; then
7117 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7118 $as_echo "$POD2HTML" >&6; }
7119 else
7120 { $as_echo "$as_me:$LINENO: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7127 # Check whether --enable-strict-warn was given.
7128 if test "${enable_strict_warn+set}" = set; then
7129 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7130 enable_strictwarn=yes
7131 fi
7132 fi
7134 # Check whether --enable-translator was given.
7135 if test "${enable_translator+set}" = set; then
7136 enableval=$enable_translator; true
7137 else
7138 enable_translator=yes
7139 fi
7141 # Check whether --enable-optimized was given.
7142 if test "${enable_optimized+set}" = set; then
7143 enableval=$enable_optimized; true
7144 else
7145 enable_optimized=yes
7146 fi
7148 # Check whether --enable-profiled was given.
7149 if test "${enable_profiled+set}" = set; then
7150 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7151 enable_profiled=yes;
7152 fi
7153 fi
7155 # Check whether --enable-trace was given.
7156 if test "${enable_trace+set}" = set; then
7157 enableval=$enable_trace; if test "$enableval" == "yes"; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define ENABLE_TRACE_IO 1
7161 _ACEOF
7163 fi
7164 fi
7166 # Check whether --enable-watch was given.
7167 if test "${enable_watch+set}" = set; then
7168 enableval=$enable_watch; if test "$enableval" == "yes"; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define ENABLE_WATCH 1
7172 _ACEOF
7174 fi
7175 fi
7177 # Check whether --enable-sh4stats was given.
7178 if test "${enable_sh4stats+set}" = set; then
7179 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7181 cat >>confdefs.h <<\_ACEOF
7182 #define ENABLE_SH4STATS 1
7183 _ACEOF
7185 fi
7186 fi
7189 # Check whether --with-osmesa was given.
7190 if test "${with_osmesa+set}" = set; then
7191 withval=$with_osmesa;
7192 else
7193 with_osmesa=no
7194 fi
7197 # Check whether --with-gtk was given.
7198 if test "${with_gtk+set}" = set; then
7199 withval=$with_gtk; with_gtk=yes
7200 else
7201 with_gtk=x11
7202 fi
7205 # Check whether --with-esd was given.
7206 if test "${with_esd+set}" = set; then
7207 withval=$with_esd;
7208 fi
7211 # Check whether --with-pulse was given.
7212 if test "${with_pulse+set}" = set; then
7213 withval=$with_pulse;
7214 fi
7217 # Check whether --with-sdl was given.
7218 if test "${with_sdl+set}" = set; then
7219 withval=$with_sdl;
7220 fi
7227 ac_ext=m
7228 ac_cpp='$OBJCPP $CPPFLAGS'
7229 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7232 if test -n "$ac_tool_prefix"; then
7233 for ac_prog in gcc objcc objc cc CC
7234 do
7235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if test "${ac_cv_prog_OBJC+set}" = set; then
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$OBJC"; then
7243 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7260 fi
7261 fi
7262 OBJC=$ac_cv_prog_OBJC
7263 if test -n "$OBJC"; then
7264 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7265 $as_echo "$OBJC" >&6; }
7266 else
7267 { $as_echo "$as_me:$LINENO: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7272 test -n "$OBJC" && break
7273 done
7274 fi
7275 if test -z "$OBJC"; then
7276 ac_ct_OBJC=$OBJC
7277 for ac_prog in gcc objcc objc cc CC
7278 do
7279 # Extract the first word of "$ac_prog", so it can be a program name with args.
7280 set dummy $ac_prog; ac_word=$2
7281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7284 $as_echo_n "(cached) " >&6
7285 else
7286 if test -n "$ac_ct_OBJC"; then
7287 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7304 fi
7305 fi
7306 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7307 if test -n "$ac_ct_OBJC"; then
7308 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7309 $as_echo "$ac_ct_OBJC" >&6; }
7310 else
7311 { $as_echo "$as_me:$LINENO: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7316 test -n "$ac_ct_OBJC" && break
7317 done
7319 if test "x$ac_ct_OBJC" = x; then
7320 OBJC="gcc"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328 OBJC=$ac_ct_OBJC
7329 fi
7330 fi
7332 # Provide some information about the compiler.
7333 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7334 set X $ac_compile
7335 ac_compiler=$2
7336 { (ac_try="$ac_compiler --version >&5"
7337 case "(($ac_try" in
7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7340 esac
7341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7342 $as_echo "$ac_try_echo") >&5
7343 (eval "$ac_compiler --version >&5") 2>&5
7344 ac_status=$?
7345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }
7347 { (ac_try="$ac_compiler -v >&5"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compiler -v >&5") 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7358 { (ac_try="$ac_compiler -V >&5"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_compiler -V >&5") 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7370 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7371 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7372 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7373 $as_echo_n "(cached) " >&6
7374 else
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7382 int
7383 main ()
7384 {
7385 #ifndef __GNUC__
7386 choke me
7387 #endif
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7395 case "(($ac_try" in
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7398 esac
7399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7400 $as_echo "$ac_try_echo") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_objc_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 ac_compiler_gnu=yes
7412 else
7413 $as_echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_compiler_gnu=no
7417 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7422 fi
7423 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7424 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7425 if test $ac_compiler_gnu = yes; then
7426 GOBJC=yes
7427 else
7428 GOBJC=
7429 fi
7430 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7431 ac_save_OBJCFLAGS=$OBJCFLAGS
7432 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7433 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7434 if test "${ac_cv_prog_objc_g+set}" = set; then
7435 $as_echo_n "(cached) " >&6
7436 else
7437 ac_save_objc_werror_flag=$ac_objc_werror_flag
7438 ac_objc_werror_flag=yes
7439 ac_cv_prog_objc_g=no
7440 OBJCFLAGS="-g"
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7448 int
7449 main ()
7450 {
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (ac_try="$ac_compile"
7458 case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461 esac
7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463 $as_echo "$ac_try_echo") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_objc_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.$ac_objext; then
7474 ac_cv_prog_objc_g=yes
7475 else
7476 $as_echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 OBJCFLAGS=""
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7487 int
7488 main ()
7489 {
7491 ;
7492 return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7497 case "(($ac_try" in
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7500 esac
7501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7502 $as_echo "$ac_try_echo") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_objc_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 :
7514 else
7515 $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_objc_werror_flag=$ac_save_objc_werror_flag
7519 OBJCFLAGS="-g"
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7527 int
7528 main ()
7529 {
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7542 $as_echo "$ac_try_echo") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_objc_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_cv_prog_objc_g=yes
7554 else
7555 $as_echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7559 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 fi
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 ac_objc_werror_flag=$ac_save_objc_werror_flag
7569 fi
7570 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7571 $as_echo "$ac_cv_prog_objc_g" >&6; }
7572 if test "$ac_test_OBJCFLAGS" = set; then
7573 OBJCFLAGS=$ac_save_OBJCFLAGS
7574 elif test $ac_cv_prog_objc_g = yes; then
7575 if test "$GOBJC" = yes; then
7576 OBJCFLAGS="-g -O2"
7577 else
7578 OBJCFLAGS="-g"
7579 fi
7580 else
7581 if test "$GOBJC" = yes; then
7582 OBJCFLAGS="-O2"
7583 else
7584 OBJCFLAGS=
7585 fi
7586 fi
7587 ac_ext=c
7588 ac_cpp='$CPP $CPPFLAGS'
7589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7593 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7594 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7595 ac_ext=m
7596 ac_cpp='$OBJCPP $CPPFLAGS'
7597 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7598 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7599 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 @interface Foo @end
7607 int
7608 main ()
7609 {
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622 $as_echo "$ac_try_echo") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_objc_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 { $as_echo "$as_me:$LINENO: result: yes" >&5
7634 $as_echo "yes" >&6; }
7636 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7637 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7638 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7640 else
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h. */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7647 $ac_includes_default
7649 #include <Cocoa/Cocoa.h>
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7653 case "(($ac_try" in
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7656 esac
7657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7658 $as_echo "$ac_try_echo") >&5
7659 (eval "$ac_compile") 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_objc_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest.$ac_objext; then
7669 ac_cv_header_Cocoa_Cocoa_h=yes
7670 else
7671 $as_echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_cv_header_Cocoa_Cocoa_h=no
7675 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7680 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7681 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
7683 HAVE_COCOA='yes'
7684 APPLE_BUILD='yes'
7685 LIBS="$LIBS -framework AppKit"
7686 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"
7687 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7688 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_COCOA 1
7692 _ACEOF
7695 cat >>confdefs.h <<\_ACEOF
7696 #define APPLE_BUILD 1
7697 _ACEOF
7699 if test "x$with_gtk" = "xx11"; then
7700 with_gtk=no
7701 fi
7703 fi
7708 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7709 $as_echo_n "checking OBJC version... " >&6; }
7710 if test -n "$OBJC"; then
7711 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7712 if test -n "$_GOBJC_VERSION"; then
7713 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7714 $as_echo "GCC" >&6; }
7715 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7716 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7717 else
7718 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7719 $as_echo "Unknown" >&6; }
7720 OBJCOPT="-O2"
7721 fi
7722 else
7723 { $as_echo "$as_me:$LINENO: result: None" >&5
7724 $as_echo "None" >&6; }
7726 fi
7729 else
7730 $as_echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 { $as_echo "$as_me:$LINENO: result: No" >&5
7734 $as_echo "No" >&6; }
7736 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7739 ac_ext=c
7740 ac_cpp='$CPP $CPPFLAGS'
7741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7750 GUI_COCOA_TRUE=
7751 GUI_COCOA_FALSE='#'
7752 else
7753 GUI_COCOA_TRUE='#'
7754 GUI_COCOA_FALSE=
7755 fi
7757 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7759 cat >>confdefs.h <<\_ACEOF
7760 #define OSX_BUNDLE 1
7761 _ACEOF
7763 fi
7765 CFLAGS="-g -fexceptions"
7766 OBJCFLAGS="-g -fexceptions"
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_EXCEPTIONS 1
7770 _ACEOF
7773 STDCFLAG="-std=c99"
7775 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7776 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7777 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7778 $as_echo_n "checking CC version... " >&6; }
7779 if test -n "$_ICC_VERSION"; then
7780 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7781 $as_echo "ICC" >&6; }
7782 CCOPT="$CFLAGS -fast"
7783 CFLAGS="$CFLAGS -fno-strict-aliasing"
7784 elif test -n "$_GCC_VERSION"; then
7785 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7786 $as_echo "GCC" >&6; }
7787 CCOPT="-O2 -msse2 -mfpmath=sse"
7788 CFLAGS="$CFLAGS -fno-strict-aliasing"
7789 else
7790 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7791 $as_echo "Unknown" >&6; }
7792 CCOPT="$CFLAGS -O2"
7793 fi
7796 if test "x$enable_optimized" = "xyes"; then
7797 CFLAGS="$CFLAGS $CCOPT"
7798 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7799 if test "x$enable_profiled" != "xyes"; then
7800 CFLAGS="$CFLAGS -fomit-frame-pointer"
7801 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7802 fi
7803 else
7804 CFLAGS="$CFLAGS -g3"
7805 OBJCFLAGS="$OBJCFLAGS -g3"
7806 fi
7808 if test "x$enable_profiled" = "xyes"; then
7809 CFLAGS="$CFLAGS -pg"
7810 LDFLAGS="$LDFLAGS -pg";
7811 OBJCFLAGS="$OBJCFLAGS -pg";
7812 fi
7814 if test "x$enable_strictwarn" = "xyes"; then
7815 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7816 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7817 fi
7820 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7821 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7822 if test "$cross_compiling" = yes; then
7823 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7825 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7826 See \`config.log' for more details." >&5
7827 $as_echo "$as_me: error: cannot run test program while cross compiling
7828 See \`config.log' for more details." >&2;}
7829 { (exit 1); exit 1; }; }; }
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7839 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7841 int main(int argc, char *argv[])
7842 {
7843 return foo( 1, 2 ) == 3 ? 0 : 1;
7844 }
7845 _ACEOF
7846 rm -f conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_link") 2>&5
7855 ac_status=$?
7856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7858 { (case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861 esac
7862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7863 $as_echo "$ac_try_echo") >&5
7864 (eval "$ac_try") 2>&5
7865 ac_status=$?
7866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7869 { $as_echo "$as_me:$LINENO: result: yes" >&5
7870 $as_echo "yes" >&6; }
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_FASTCALL 1
7875 _ACEOF
7878 else
7879 $as_echo "$as_me: program exited with status $ac_status" >&5
7880 $as_echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ( exit $ac_status )
7885 { $as_echo "$as_me:$LINENO: result: no" >&5
7886 $as_echo "no" >&6; }
7888 fi
7889 rm -rf conftest.dSYM
7890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7891 fi
7896 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7897 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7898 if test "$cross_compiling" = yes; then
7899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7901 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7902 See \`config.log' for more details." >&5
7903 $as_echo "$as_me: error: cannot run test program while cross compiling
7904 See \`config.log' for more details." >&2;}
7905 { (exit 1); exit 1; }; }; }
7906 else
7907 cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h. */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7915 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7916 int __attribute__((noinline)) foo( int arg, void *exc )
7917 {
7918 if( arg < 2 ) {
7919 *(((void **)__builtin_frame_address(0))+1) = exc;
7920 }
7921 return 0;
7922 }
7924 int main(int argc, char *argv[])
7925 {
7926 goto *first_arg(&&start, &&except);
7928 start:
7929 return foo( argc, &&except ) + 1;
7931 except:
7932 return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_link") 2>&5
7944 ac_status=$?
7945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7947 { (case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_try") 2>&5
7954 ac_status=$?
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7958 { $as_echo "$as_me:$LINENO: result: yes" >&5
7959 $as_echo "yes" >&6; }
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_FRAME_ADDRESS 1
7964 _ACEOF
7967 else
7968 $as_echo "$as_me: program exited with status $ac_status" >&5
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ( exit $ac_status )
7974 { $as_echo "$as_me:$LINENO: result: no" >&5
7975 $as_echo "no" >&6; }
7976 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7977 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7978 fi
7979 rm -rf conftest.dSYM
7980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7981 fi
7986 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
7987 $as_echo_n "checking for library containing listen... " >&6; }
7988 if test "${ac_cv_search_listen+set}" = set; then
7989 $as_echo_n "(cached) " >&6
7990 else
7991 ac_func_search_save_LIBS=$LIBS
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7999 /* Override any GCC internal prototype to avoid an error.
8000 Use char because int might match the return type of a GCC
8001 builtin and then its argument prototype would still apply. */
8002 #ifdef __cplusplus
8003 extern "C"
8004 #endif
8005 char listen ();
8006 int
8007 main ()
8008 {
8009 return listen ();
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 for ac_lib in '' socket; do
8015 if test -z "$ac_lib"; then
8016 ac_res="none required"
8017 else
8018 ac_res=-l$ac_lib
8019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8020 fi
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (ac_try="$ac_link"
8023 case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026 esac
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_link") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest$ac_exeext && {
8039 test "$cross_compiling" = yes ||
8040 $as_test_x conftest$ac_exeext
8041 }; then
8042 ac_cv_search_listen=$ac_res
8043 else
8044 $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8048 fi
8050 rm -rf conftest.dSYM
8051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8052 conftest$ac_exeext
8053 if test "${ac_cv_search_listen+set}" = set; then
8054 break
8055 fi
8056 done
8057 if test "${ac_cv_search_listen+set}" = set; then
8058 :
8059 else
8060 ac_cv_search_listen=no
8061 fi
8062 rm conftest.$ac_ext
8063 LIBS=$ac_func_search_save_LIBS
8064 fi
8065 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8066 $as_echo "$ac_cv_search_listen" >&6; }
8067 ac_res=$ac_cv_search_listen
8068 if test "$ac_res" != no; then
8069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8071 fi
8073 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8074 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8075 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8076 $as_echo_n "(cached) " >&6
8077 else
8078 ac_func_search_save_LIBS=$LIBS
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8086 /* Override any GCC internal prototype to avoid an error.
8087 Use char because int might match the return type of a GCC
8088 builtin and then its argument prototype would still apply. */
8089 #ifdef __cplusplus
8090 extern "C"
8091 #endif
8092 char inet_ntoa ();
8093 int
8094 main ()
8095 {
8096 return inet_ntoa ();
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 for ac_lib in '' nsl; do
8102 if test -z "$ac_lib"; then
8103 ac_res="none required"
8104 else
8105 ac_res=-l$ac_lib
8106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8107 fi
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (ac_try="$ac_link"
8110 case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113 esac
8114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8115 $as_echo "$ac_try_echo") >&5
8116 (eval "$ac_link") 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
8125 } && test -s conftest$ac_exeext && {
8126 test "$cross_compiling" = yes ||
8127 $as_test_x conftest$ac_exeext
8128 }; then
8129 ac_cv_search_inet_ntoa=$ac_res
8130 else
8131 $as_echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8135 fi
8137 rm -rf conftest.dSYM
8138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8139 conftest$ac_exeext
8140 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8141 break
8142 fi
8143 done
8144 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8145 :
8146 else
8147 ac_cv_search_inet_ntoa=no
8148 fi
8149 rm conftest.$ac_ext
8150 LIBS=$ac_func_search_save_LIBS
8151 fi
8152 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8153 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8154 ac_res=$ac_cv_search_inet_ntoa
8155 if test "$ac_res" != no; then
8156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8158 fi
8163 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8170 $as_echo_n "(cached) " >&6
8171 else
8172 case $PKG_CONFIG in
8173 [\\/]* | ?:[\\/]*)
8174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8175 ;;
8176 *)
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8187 fi
8188 done
8189 done
8190 IFS=$as_save_IFS
8192 ;;
8193 esac
8194 fi
8195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8196 if test -n "$PKG_CONFIG"; then
8197 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8198 $as_echo "$PKG_CONFIG" >&6; }
8199 else
8200 { $as_echo "$as_me:$LINENO: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8205 fi
8206 if test -z "$ac_cv_path_PKG_CONFIG"; then
8207 ac_pt_PKG_CONFIG=$PKG_CONFIG
8208 # Extract the first word of "pkg-config", so it can be a program name with args.
8209 set dummy pkg-config; ac_word=$2
8210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8213 $as_echo_n "(cached) " >&6
8214 else
8215 case $ac_pt_PKG_CONFIG in
8216 [\\/]* | ?:[\\/]*)
8217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8218 ;;
8219 *)
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8235 ;;
8236 esac
8237 fi
8238 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8239 if test -n "$ac_pt_PKG_CONFIG"; then
8240 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8241 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8242 else
8243 { $as_echo "$as_me:$LINENO: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8247 if test "x$ac_pt_PKG_CONFIG" = x; then
8248 PKG_CONFIG=""
8249 else
8250 case $cross_compiling:$ac_tool_warned in
8251 yes:)
8252 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8254 ac_tool_warned=yes ;;
8255 esac
8256 PKG_CONFIG=$ac_pt_PKG_CONFIG
8257 fi
8258 else
8259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8260 fi
8262 fi
8263 if test -n "$PKG_CONFIG"; then
8264 _pkg_min_version=0.9.0
8265 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8266 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8267 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8268 { $as_echo "$as_me:$LINENO: result: yes" >&5
8269 $as_echo "yes" >&6; }
8270 else
8271 { $as_echo "$as_me:$LINENO: result: no" >&5
8272 $as_echo "no" >&6; }
8273 PKG_CONFIG=""
8274 fi
8276 fi
8278 pkg_failed=no
8279 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8280 $as_echo_n "checking for LIBPNG... " >&6; }
8282 if test -n "$LIBPNG_CFLAGS"; then
8283 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8284 elif test -n "$PKG_CONFIG"; then
8285 if test -n "$PKG_CONFIG" && \
8286 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8287 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; then
8291 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8292 else
8293 pkg_failed=yes
8294 fi
8295 else
8296 pkg_failed=untried
8297 fi
8298 if test -n "$LIBPNG_LIBS"; then
8299 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8300 elif test -n "$PKG_CONFIG"; then
8301 if test -n "$PKG_CONFIG" && \
8302 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8303 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8304 ac_status=$?
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; then
8307 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8308 else
8309 pkg_failed=yes
8310 fi
8311 else
8312 pkg_failed=untried
8313 fi
8317 if test $pkg_failed = yes; then
8319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8320 _pkg_short_errors_supported=yes
8321 else
8322 _pkg_short_errors_supported=no
8323 fi
8324 if test $_pkg_short_errors_supported = yes; then
8325 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8326 else
8327 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8328 fi
8329 # Put the nasty error message in config.log where it belongs
8330 echo "$LIBPNG_PKG_ERRORS" >&5
8332 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8334 $LIBPNG_PKG_ERRORS
8336 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8337 installed software in a non-standard prefix.
8339 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8340 and LIBPNG_LIBS to avoid the need to call pkg-config.
8341 See the pkg-config man page for more details.
8342 " >&5
8343 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8345 $LIBPNG_PKG_ERRORS
8347 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8348 installed software in a non-standard prefix.
8350 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8351 and LIBPNG_LIBS to avoid the need to call pkg-config.
8352 See the pkg-config man page for more details.
8353 " >&2;}
8354 { (exit 1); exit 1; }; }
8355 elif test $pkg_failed = untried; then
8356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8358 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8359 is in your PATH or set the PKG_CONFIG environment variable to the full
8360 path to pkg-config.
8362 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8363 and LIBPNG_LIBS to avoid the need to call pkg-config.
8364 See the pkg-config man page for more details.
8366 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8367 See \`config.log' for more details." >&5
8368 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8369 is in your PATH or set the PKG_CONFIG environment variable to the full
8370 path to pkg-config.
8372 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8373 and LIBPNG_LIBS to avoid the need to call pkg-config.
8374 See the pkg-config man page for more details.
8376 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8377 See \`config.log' for more details." >&2;}
8378 { (exit 1); exit 1; }; }; }
8379 else
8380 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8381 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8382 { $as_echo "$as_me:$LINENO: result: yes" >&5
8383 $as_echo "yes" >&6; }
8384 :
8385 fi
8388 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8389 $as_echo_n "checking for uncompress in -lz... " >&6; }
8390 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8391 $as_echo_n "(cached) " >&6
8392 else
8393 ac_check_lib_save_LIBS=$LIBS
8394 LIBS="-lz $LIBS"
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8402 /* Override any GCC internal prototype to avoid an error.
8403 Use char because int might match the return type of a GCC
8404 builtin and then its argument prototype would still apply. */
8405 #ifdef __cplusplus
8406 extern "C"
8407 #endif
8408 char uncompress ();
8409 int
8410 main ()
8411 {
8412 return uncompress ();
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (ac_try="$ac_link"
8419 case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8424 $as_echo "$ac_try_echo") >&5
8425 (eval "$ac_link") 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && {
8432 test -z "$ac_c_werror_flag" ||
8433 test ! -s conftest.err
8434 } && test -s conftest$ac_exeext && {
8435 test "$cross_compiling" = yes ||
8436 $as_test_x conftest$ac_exeext
8437 }; then
8438 ac_cv_lib_z_uncompress=yes
8439 else
8440 $as_echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_cv_lib_z_uncompress=no
8444 fi
8446 rm -rf conftest.dSYM
8447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8448 conftest$ac_exeext conftest.$ac_ext
8449 LIBS=$ac_check_lib_save_LIBS
8450 fi
8451 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8452 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8453 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
8454 cat >>confdefs.h <<_ACEOF
8455 #define HAVE_LIBZ 1
8456 _ACEOF
8458 LIBS="-lz $LIBS"
8460 else
8462 echo "Zlib (libz.so) could not be found, but is required."
8463 exit 1
8464 fi
8467 if test "x$with_gtk" = "xno"; then
8469 pkg_failed=no
8470 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8471 $as_echo_n "checking for GLIB... " >&6; }
8473 if test -n "$GLIB_CFLAGS"; then
8474 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8475 elif test -n "$PKG_CONFIG"; then
8476 if test -n "$PKG_CONFIG" && \
8477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8478 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8479 ac_status=$?
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; then
8482 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8483 else
8484 pkg_failed=yes
8485 fi
8486 else
8487 pkg_failed=untried
8488 fi
8489 if test -n "$GLIB_LIBS"; then
8490 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8491 elif test -n "$PKG_CONFIG"; then
8492 if test -n "$PKG_CONFIG" && \
8493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8494 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8495 ac_status=$?
8496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; then
8498 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8499 else
8500 pkg_failed=yes
8501 fi
8502 else
8503 pkg_failed=untried
8504 fi
8508 if test $pkg_failed = yes; then
8510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8511 _pkg_short_errors_supported=yes
8512 else
8513 _pkg_short_errors_supported=no
8514 fi
8515 if test $_pkg_short_errors_supported = yes; then
8516 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8517 else
8518 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8519 fi
8520 # Put the nasty error message in config.log where it belongs
8521 echo "$GLIB_PKG_ERRORS" >&5
8523 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8525 $GLIB_PKG_ERRORS
8527 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8528 installed software in a non-standard prefix.
8530 Alternatively, you may set the environment variables GLIB_CFLAGS
8531 and GLIB_LIBS to avoid the need to call pkg-config.
8532 See the pkg-config man page for more details.
8533 " >&5
8534 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8536 $GLIB_PKG_ERRORS
8538 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8539 installed software in a non-standard prefix.
8541 Alternatively, you may set the environment variables GLIB_CFLAGS
8542 and GLIB_LIBS to avoid the need to call pkg-config.
8543 See the pkg-config man page for more details.
8544 " >&2;}
8545 { (exit 1); exit 1; }; }
8546 elif test $pkg_failed = untried; then
8547 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8549 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8550 is in your PATH or set the PKG_CONFIG environment variable to the full
8551 path to pkg-config.
8553 Alternatively, you may set the environment variables GLIB_CFLAGS
8554 and GLIB_LIBS to avoid the need to call pkg-config.
8555 See the pkg-config man page for more details.
8557 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8558 See \`config.log' for more details." >&5
8559 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8560 is in your PATH or set the PKG_CONFIG environment variable to the full
8561 path to pkg-config.
8563 Alternatively, you may set the environment variables GLIB_CFLAGS
8564 and GLIB_LIBS to avoid the need to call pkg-config.
8565 See the pkg-config man page for more details.
8567 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8568 See \`config.log' for more details." >&2;}
8569 { (exit 1); exit 1; }; }; }
8570 else
8571 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8572 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8573 { $as_echo "$as_me:$LINENO: result: yes" >&5
8574 $as_echo "yes" >&6; }
8575 :
8576 fi
8577 else
8579 pkg_failed=no
8580 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8581 $as_echo_n "checking for GTK... " >&6; }
8583 if test -n "$GTK_CFLAGS"; then
8584 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8585 elif test -n "$PKG_CONFIG"; then
8586 if test -n "$PKG_CONFIG" && \
8587 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8588 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8589 ac_status=$?
8590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; then
8592 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8593 else
8594 pkg_failed=yes
8595 fi
8596 else
8597 pkg_failed=untried
8598 fi
8599 if test -n "$GTK_LIBS"; then
8600 pkg_cv_GTK_LIBS="$GTK_LIBS"
8601 elif test -n "$PKG_CONFIG"; then
8602 if test -n "$PKG_CONFIG" && \
8603 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8604 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8605 ac_status=$?
8606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; then
8608 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8609 else
8610 pkg_failed=yes
8611 fi
8612 else
8613 pkg_failed=untried
8614 fi
8618 if test $pkg_failed = yes; then
8620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8621 _pkg_short_errors_supported=yes
8622 else
8623 _pkg_short_errors_supported=no
8624 fi
8625 if test $_pkg_short_errors_supported = yes; then
8626 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8627 else
8628 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8629 fi
8630 # Put the nasty error message in config.log where it belongs
8631 echo "$GTK_PKG_ERRORS" >&5
8633 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8635 $GTK_PKG_ERRORS
8637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8638 installed software in a non-standard prefix.
8640 Alternatively, you may set the environment variables GTK_CFLAGS
8641 and GTK_LIBS to avoid the need to call pkg-config.
8642 See the pkg-config man page for more details.
8643 " >&5
8644 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8646 $GTK_PKG_ERRORS
8648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8649 installed software in a non-standard prefix.
8651 Alternatively, you may set the environment variables GTK_CFLAGS
8652 and GTK_LIBS to avoid the need to call pkg-config.
8653 See the pkg-config man page for more details.
8654 " >&2;}
8655 { (exit 1); exit 1; }; }
8656 elif test $pkg_failed = untried; then
8657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8659 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8660 is in your PATH or set the PKG_CONFIG environment variable to the full
8661 path to pkg-config.
8663 Alternatively, you may set the environment variables GTK_CFLAGS
8664 and GTK_LIBS to avoid the need to call pkg-config.
8665 See the pkg-config man page for more details.
8667 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8668 See \`config.log' for more details." >&5
8669 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8670 is in your PATH or set the PKG_CONFIG environment variable to the full
8671 path to pkg-config.
8673 Alternatively, you may set the environment variables GTK_CFLAGS
8674 and GTK_LIBS to avoid the need to call pkg-config.
8675 See the pkg-config man page for more details.
8677 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8678 See \`config.log' for more details." >&2;}
8679 { (exit 1); exit 1; }; }; }
8680 else
8681 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8682 GTK_LIBS=$pkg_cv_GTK_LIBS
8683 { $as_echo "$as_me:$LINENO: result: yes" >&5
8684 $as_echo "yes" >&6; }
8686 HAVE_GTK='yes'
8688 cat >>confdefs.h <<\_ACEOF
8689 #define HAVE_GTK 1
8690 _ACEOF
8693 fi
8695 LIBS="$LIBS $GTK_LIBS"
8696 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8697 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8698 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8709 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8711 /* System header to define __stub macros and hopefully few prototypes,
8712 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8714 <limits.h> exists even on freestanding compilers. */
8716 #ifdef __STDC__
8717 # include <limits.h>
8718 #else
8719 # include <assert.h>
8720 #endif
8722 #undef gdk_x11_display_get_xdisplay
8724 /* Override any GCC internal prototype to avoid an error.
8725 Use char because int might match the return type of a GCC
8726 builtin and then its argument prototype would still apply. */
8727 #ifdef __cplusplus
8728 extern "C"
8729 #endif
8730 char gdk_x11_display_get_xdisplay ();
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8735 choke me
8736 #endif
8738 int
8739 main ()
8740 {
8741 return gdk_x11_display_get_xdisplay ();
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (ac_try="$ac_link"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753 $as_echo "$ac_try_echo") >&5
8754 (eval "$ac_link") 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest$ac_exeext && {
8764 test "$cross_compiling" = yes ||
8765 $as_test_x conftest$ac_exeext
8766 }; then
8767 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8768 else
8769 $as_echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_func_gdk_x11_display_get_xdisplay=no
8773 fi
8775 rm -rf conftest.dSYM
8776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8777 conftest$ac_exeext conftest.$ac_ext
8778 fi
8779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8780 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8781 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
8783 HAVE_GTK_X11='yes'
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_GTK_X11 1
8787 _ACEOF
8789 fi
8791 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8792 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8793 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8794 $as_echo_n "(cached) " >&6
8795 else
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8804 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8806 /* System header to define __stub macros and hopefully few prototypes,
8807 which can conflict with char gdk_quartz_window_get_nsview (); below.
8808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8809 <limits.h> exists even on freestanding compilers. */
8811 #ifdef __STDC__
8812 # include <limits.h>
8813 #else
8814 # include <assert.h>
8815 #endif
8817 #undef gdk_quartz_window_get_nsview
8819 /* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
8822 #ifdef __cplusplus
8823 extern "C"
8824 #endif
8825 char gdk_quartz_window_get_nsview ();
8826 /* The GNU C library defines this for functions which it implements
8827 to always fail with ENOSYS. Some functions are actually named
8828 something starting with __ and the normal name is an alias. */
8829 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8830 choke me
8831 #endif
8833 int
8834 main ()
8835 {
8836 return gdk_quartz_window_get_nsview ();
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (ac_try="$ac_link"
8843 case "(($ac_try" in
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8846 esac
8847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8848 $as_echo "$ac_try_echo") >&5
8849 (eval "$ac_link") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && {
8856 test -z "$ac_c_werror_flag" ||
8857 test ! -s conftest.err
8858 } && test -s conftest$ac_exeext && {
8859 test "$cross_compiling" = yes ||
8860 $as_test_x conftest$ac_exeext
8861 }; then
8862 ac_cv_func_gdk_quartz_window_get_nsview=yes
8863 else
8864 $as_echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_func_gdk_quartz_window_get_nsview=no
8868 fi
8870 rm -rf conftest.dSYM
8871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8872 conftest$ac_exeext conftest.$ac_ext
8873 fi
8874 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8875 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8876 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
8878 HAVE_GTK_OSX='yes'
8880 cat >>confdefs.h <<\_ACEOF
8881 #define HAVE_GTK_OSX 1
8882 _ACEOF
8884 fi
8886 fi
8890 if test "$HAVE_GTK" = 'yes'; then
8891 GUI_GTK_TRUE=
8892 GUI_GTK_FALSE='#'
8893 else
8894 GUI_GTK_TRUE='#'
8895 GUI_GTK_FALSE=
8896 fi
8899 if test "x$with_osmesa" != xno; then
8903 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8904 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8905 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8906 $as_echo_n "(cached) " >&6
8907 else
8908 ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-lOSMesa $LIBS"
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8917 /* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 char OSMesaCreateContext ();
8924 int
8925 main ()
8926 {
8927 return OSMesaCreateContext ();
8928 ;
8929 return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8937 esac
8938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8939 $as_echo "$ac_try_echo") >&5
8940 (eval "$ac_link") 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 } && test -s conftest$ac_exeext && {
8950 test "$cross_compiling" = yes ||
8951 $as_test_x conftest$ac_exeext
8952 }; then
8953 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8954 else
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8959 fi
8961 rm -rf conftest.dSYM
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963 conftest$ac_exeext conftest.$ac_ext
8964 LIBS=$ac_check_lib_save_LIBS
8965 fi
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8967 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8968 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
8969 cat >>confdefs.h <<_ACEOF
8970 #define HAVE_LIBOSMESA 1
8971 _ACEOF
8973 LIBS="-lOSMesa $LIBS"
8975 else
8976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8978 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8979 See \`config.log' for more details." >&5
8980 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8981 See \`config.log' for more details." >&2;}
8982 { (exit 1); exit 1; }; }; }
8983 fi
8985 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8986 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8987 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8988 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8989 $as_echo_n "(cached) " >&6
8990 fi
8991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8992 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8993 else
8994 # Is the header compilable?
8995 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8996 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 $ac_includes_default
9004 #include <GL/osmesa.h>
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9008 case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011 esac
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_header_compiler=yes
9025 else
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 ac_header_compiler=no
9030 fi
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 $as_echo "$ac_header_compiler" >&6; }
9036 # Is the header present?
9037 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9038 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 #include <GL/osmesa.h>
9046 _ACEOF
9047 if { (ac_try="$ac_cpp conftest.$ac_ext"
9048 case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051 esac
9052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9053 $as_echo "$ac_try_echo") >&5
9054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } >/dev/null && {
9061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9062 test ! -s conftest.err
9063 }; then
9064 ac_header_preproc=yes
9065 else
9066 $as_echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ac_header_preproc=no
9070 fi
9072 rm -f conftest.err conftest.$ac_ext
9073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074 $as_echo "$ac_header_preproc" >&6; }
9076 # So? What about this header?
9077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9078 yes:no: )
9079 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9080 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9082 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9083 ac_header_preproc=yes
9084 ;;
9085 no:yes:* )
9086 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9087 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9088 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9089 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9090 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9091 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9092 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9093 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9094 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9095 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9096 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9097 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9099 ;;
9100 esac
9101 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9102 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9103 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9104 $as_echo_n "(cached) " >&6
9105 else
9106 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9107 fi
9108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9109 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9111 fi
9112 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
9113 :
9114 else
9115 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9117 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9118 See \`config.log' for more details." >&5
9119 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9120 See \`config.log' for more details." >&2;}
9121 { (exit 1); exit 1; }; }; }
9122 fi
9125 HAVE_OSMESA='yes'
9126 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9128 cat >>confdefs.h <<\_ACEOF
9129 #define HAVE_OSMESA 1
9130 _ACEOF
9132 else
9135 if test "x$APPLE_BUILD" != 'xyes'; then
9137 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9138 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9139 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9140 $as_echo_n "(cached) " >&6
9141 else
9142 ac_check_lib_save_LIBS=$LIBS
9143 LIBS="-lGL $LIBS"
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9151 /* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 char glVertex3f ();
9158 int
9159 main ()
9160 {
9161 return glVertex3f ();
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 rm -f conftest.$ac_objext conftest$ac_exeext
9167 if { (ac_try="$ac_link"
9168 case "(($ac_try" in
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9171 esac
9172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9173 $as_echo "$ac_try_echo") >&5
9174 (eval "$ac_link") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest$ac_exeext && {
9184 test "$cross_compiling" = yes ||
9185 $as_test_x conftest$ac_exeext
9186 }; then
9187 ac_cv_lib_GL_glVertex3f=yes
9188 else
9189 $as_echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_cv_lib_GL_glVertex3f=no
9193 fi
9195 rm -rf conftest.dSYM
9196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9197 conftest$ac_exeext conftest.$ac_ext
9198 LIBS=$ac_check_lib_save_LIBS
9199 fi
9200 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9201 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9202 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define HAVE_LIBGL 1
9205 _ACEOF
9207 LIBS="-lGL $LIBS"
9209 else
9211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9213 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9214 See \`config.log' for more details." >&5
9215 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9216 See \`config.log' for more details." >&2;}
9217 { (exit 1); exit 1; }; }; }
9218 fi
9220 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9221 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9222 $as_echo_n "checking for GL/gl.h... " >&6; }
9223 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9224 $as_echo_n "(cached) " >&6
9225 fi
9226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9227 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9228 else
9229 # Is the header compilable?
9230 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9231 $as_echo_n "checking GL/gl.h usability... " >&6; }
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 $ac_includes_default
9239 #include <GL/gl.h>
9240 _ACEOF
9241 rm -f conftest.$ac_objext
9242 if { (ac_try="$ac_compile"
9243 case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246 esac
9247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9248 $as_echo "$ac_try_echo") >&5
9249 (eval "$ac_compile") 2>conftest.er1
9250 ac_status=$?
9251 grep -v '^ *+' conftest.er1 >conftest.err
9252 rm -f conftest.er1
9253 cat conftest.err >&5
9254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && {
9256 test -z "$ac_c_werror_flag" ||
9257 test ! -s conftest.err
9258 } && test -s conftest.$ac_objext; then
9259 ac_header_compiler=yes
9260 else
9261 $as_echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9264 ac_header_compiler=no
9265 fi
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9269 $as_echo "$ac_header_compiler" >&6; }
9271 # Is the header present?
9272 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9273 $as_echo_n "checking GL/gl.h presence... " >&6; }
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 #include <GL/gl.h>
9281 _ACEOF
9282 if { (ac_try="$ac_cpp conftest.$ac_ext"
9283 case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9286 esac
9287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9288 $as_echo "$ac_try_echo") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null && {
9296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 }; then
9299 ac_header_preproc=yes
9300 else
9301 $as_echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 ac_header_preproc=no
9305 fi
9307 rm -f conftest.err conftest.$ac_ext
9308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9309 $as_echo "$ac_header_preproc" >&6; }
9311 # So? What about this header?
9312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9313 yes:no: )
9314 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9315 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9316 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9317 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9318 ac_header_preproc=yes
9319 ;;
9320 no:yes:* )
9321 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9322 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9323 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9324 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9325 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9326 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9327 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9328 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9329 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9330 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9331 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9332 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9334 ;;
9335 esac
9336 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9337 $as_echo_n "checking for GL/gl.h... " >&6; }
9338 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9339 $as_echo_n "(cached) " >&6
9340 else
9341 ac_cv_header_GL_gl_h=$ac_header_preproc
9342 fi
9343 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9344 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9346 fi
9347 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
9348 :
9349 else
9351 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9353 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9354 See \`config.log' for more details." >&5
9355 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9356 See \`config.log' for more details." >&2;}
9357 { (exit 1); exit 1; }; }; }
9358 fi
9361 else
9362 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9363 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9364 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9375 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9377 /* System header to define __stub macros and hopefully few prototypes,
9378 which can conflict with char NSOpenGLGetVersion (); below.
9379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9380 <limits.h> exists even on freestanding compilers. */
9382 #ifdef __STDC__
9383 # include <limits.h>
9384 #else
9385 # include <assert.h>
9386 #endif
9388 #undef NSOpenGLGetVersion
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 char NSOpenGLGetVersion ();
9397 /* The GNU C library defines this for functions which it implements
9398 to always fail with ENOSYS. Some functions are actually named
9399 something starting with __ and the normal name is an alias. */
9400 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9401 choke me
9402 #endif
9404 int
9405 main ()
9406 {
9407 return NSOpenGLGetVersion ();
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (ac_try="$ac_link"
9414 case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417 esac
9418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9419 $as_echo "$ac_try_echo") >&5
9420 (eval "$ac_link") 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && {
9427 test -z "$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest$ac_exeext && {
9430 test "$cross_compiling" = yes ||
9431 $as_test_x conftest$ac_exeext
9432 }; then
9433 ac_cv_func_NSOpenGLGetVersion=yes
9434 else
9435 $as_echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_func_NSOpenGLGetVersion=no
9439 fi
9441 rm -rf conftest.dSYM
9442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9443 conftest$ac_exeext conftest.$ac_ext
9444 fi
9445 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9446 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9447 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
9449 HAVE_NSGL='yes'
9450 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9452 cat >>confdefs.h <<\_ACEOF
9453 #define HAVE_NSGL 1
9454 _ACEOF
9456 fi
9458 fi
9460 if test "x$HAVE_GTK_X11" = "xyes"; then
9461 if test "x$APPLE_BUILD" = "xyes"; then
9462 LIBS="$LIBS -L/usr/X11/lib -lGL"
9463 fi
9464 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9465 $as_echo_n "checking for glXQueryVersion... " >&6; }
9466 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9477 #define glXQueryVersion innocuous_glXQueryVersion
9479 /* System header to define __stub macros and hopefully few prototypes,
9480 which can conflict with char glXQueryVersion (); below.
9481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9482 <limits.h> exists even on freestanding compilers. */
9484 #ifdef __STDC__
9485 # include <limits.h>
9486 #else
9487 # include <assert.h>
9488 #endif
9490 #undef glXQueryVersion
9492 /* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 char glXQueryVersion ();
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9503 choke me
9504 #endif
9506 int
9507 main ()
9508 {
9509 return glXQueryVersion ();
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522 (eval "$ac_link") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest$ac_exeext && {
9532 test "$cross_compiling" = yes ||
9533 $as_test_x conftest$ac_exeext
9534 }; then
9535 ac_cv_func_glXQueryVersion=yes
9536 else
9537 $as_echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_cv_func_glXQueryVersion=no
9541 fi
9543 rm -rf conftest.dSYM
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546 fi
9547 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9548 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9549 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
9551 HAVE_GLX='yes'
9552 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9554 cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_GLX 1
9556 _ACEOF
9558 fi
9560 fi
9563 fi
9570 if test "x$HAVE_OSMESA" = "xyes"; then
9571 VIDEO_OSMESA_TRUE=
9572 VIDEO_OSMESA_FALSE='#'
9573 else
9574 VIDEO_OSMESA_TRUE='#'
9575 VIDEO_OSMESA_FALSE=
9576 fi
9580 if test "x$HAVE_GLX" = "xyes"; then
9581 VIDEO_GLX_TRUE=
9582 VIDEO_GLX_FALSE='#'
9583 else
9584 VIDEO_GLX_TRUE='#'
9585 VIDEO_GLX_FALSE=
9586 fi
9590 if test "x$HAVE_NSGL" = "xyes"; then
9591 VIDEO_NSGL_TRUE=
9592 VIDEO_NSGL_FALSE='#'
9593 else
9594 VIDEO_NSGL_TRUE='#'
9595 VIDEO_NSGL_FALSE=
9596 fi
9599 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9600 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9601 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9602 $as_echo_n "(cached) " >&6
9603 else
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9612 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9614 /* System header to define __stub macros and hopefully few prototypes,
9615 which can conflict with char glGenFramebuffersEXT (); below.
9616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617 <limits.h> exists even on freestanding compilers. */
9619 #ifdef __STDC__
9620 # include <limits.h>
9621 #else
9622 # include <assert.h>
9623 #endif
9625 #undef glGenFramebuffersEXT
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 char glGenFramebuffersEXT ();
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9638 choke me
9639 #endif
9641 int
9642 main ()
9643 {
9644 return glGenFramebuffersEXT ();
9645 ;
9646 return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656 $as_echo "$ac_try_echo") >&5
9657 (eval "$ac_link") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext && {
9667 test "$cross_compiling" = yes ||
9668 $as_test_x conftest$ac_exeext
9669 }; then
9670 ac_cv_func_glGenFramebuffersEXT=yes
9671 else
9672 $as_echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_cv_func_glGenFramebuffersEXT=no
9676 fi
9678 rm -rf conftest.dSYM
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9683 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9684 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_OPENGL_FBO 1
9688 _ACEOF
9690 fi
9692 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9693 $as_echo_n "checking for glCreateShader... " >&6; }
9694 if test "${ac_cv_func_glCreateShader+set}" = set; then
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705 #define glCreateShader innocuous_glCreateShader
9707 /* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char glCreateShader (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9712 #ifdef __STDC__
9713 # include <limits.h>
9714 #else
9715 # include <assert.h>
9716 #endif
9718 #undef glCreateShader
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char glCreateShader ();
9727 /* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9731 choke me
9732 #endif
9734 int
9735 main ()
9736 {
9737 return glCreateShader ();
9738 ;
9739 return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747 esac
9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9749 $as_echo "$ac_try_echo") >&5
9750 (eval "$ac_link") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest$ac_exeext && {
9760 test "$cross_compiling" = yes ||
9761 $as_test_x conftest$ac_exeext
9762 }; then
9763 ac_cv_func_glCreateShader=yes
9764 else
9765 $as_echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_func_glCreateShader=no
9769 fi
9771 rm -rf conftest.dSYM
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773 conftest$ac_exeext conftest.$ac_ext
9774 fi
9775 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9776 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9777 if test "x$ac_cv_func_glCreateShader" = x""yes; then
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_OPENGL_SHADER 1
9781 _ACEOF
9783 fi
9785 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9786 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9787 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h. */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9798 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9800 /* System header to define __stub macros and hopefully few prototypes,
9801 which can conflict with char glCreateShaderObjectARB (); below.
9802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9803 <limits.h> exists even on freestanding compilers. */
9805 #ifdef __STDC__
9806 # include <limits.h>
9807 #else
9808 # include <assert.h>
9809 #endif
9811 #undef glCreateShaderObjectARB
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816 #ifdef __cplusplus
9817 extern "C"
9818 #endif
9819 char glCreateShaderObjectARB ();
9820 /* The GNU C library defines this for functions which it implements
9821 to always fail with ENOSYS. Some functions are actually named
9822 something starting with __ and the normal name is an alias. */
9823 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9824 choke me
9825 #endif
9827 int
9828 main ()
9829 {
9830 return glCreateShaderObjectARB ();
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_link") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest$ac_exeext && {
9853 test "$cross_compiling" = yes ||
9854 $as_test_x conftest$ac_exeext
9855 }; then
9856 ac_cv_func_glCreateShaderObjectARB=yes
9857 else
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_cv_func_glCreateShaderObjectARB=no
9862 fi
9864 rm -rf conftest.dSYM
9865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866 conftest$ac_exeext conftest.$ac_ext
9867 fi
9868 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9869 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9870 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
9872 cat >>confdefs.h <<\_ACEOF
9873 #define HAVE_OPENGL_SHADER_ARB 1
9874 _ACEOF
9876 fi
9878 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9879 $as_echo_n "checking for glClampColorARB... " >&6; }
9880 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9881 $as_echo_n "(cached) " >&6
9882 else
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define glClampColorARB innocuous_glClampColorARB
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char glClampColorARB (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9904 #undef glClampColorARB
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char glClampColorARB ();
9913 /* The GNU C library defines this for functions which it implements
9914 to always fail with ENOSYS. Some functions are actually named
9915 something starting with __ and the normal name is an alias. */
9916 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9917 choke me
9918 #endif
9920 int
9921 main ()
9922 {
9923 return glClampColorARB ();
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936 (eval "$ac_link") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest$ac_exeext && {
9946 test "$cross_compiling" = yes ||
9947 $as_test_x conftest$ac_exeext
9948 }; then
9949 ac_cv_func_glClampColorARB=yes
9950 else
9951 $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_func_glClampColorARB=no
9955 fi
9957 rm -rf conftest.dSYM
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959 conftest$ac_exeext conftest.$ac_ext
9960 fi
9961 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9962 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9963 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_OPENGL_CLAMP_COLOR 1
9967 _ACEOF
9969 fi
9974 if test "x$enable_translator" != "xno"; then
9975 case $host_cpu in
9976 i386|i486|i586|i686|x86_64)
9977 SH4_TRANSLATOR="x86"
9979 cat >>confdefs.h <<_ACEOF
9980 #define SH4_TRANSLATOR TARGET_X86
9981 _ACEOF
9982 ;;
9983 esac
9984 fi
9987 if test "$SH4_TRANSLATOR" = "x86"; then
9988 BUILD_SH4X86_TRUE=
9989 BUILD_SH4X86_FALSE='#'
9990 else
9991 BUILD_SH4X86_TRUE='#'
9992 BUILD_SH4X86_FALSE=
9993 fi
9996 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9997 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9998 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9999 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10000 $as_echo_n "(cached) " >&6
10001 fi
10002 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10003 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10004 else
10005 # Is the header compilable?
10006 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10007 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 $ac_includes_default
10015 #include <CoreAudio/CoreAudio.h>
10016 _ACEOF
10017 rm -f conftest.$ac_objext
10018 if { (ac_try="$ac_compile"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10024 $as_echo "$ac_try_echo") >&5
10025 (eval "$ac_compile") 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && {
10032 test -z "$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10034 } && test -s conftest.$ac_objext; then
10035 ac_header_compiler=yes
10036 else
10037 $as_echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_header_compiler=no
10041 fi
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10045 $as_echo "$ac_header_compiler" >&6; }
10047 # Is the header present?
10048 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10049 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <CoreAudio/CoreAudio.h>
10057 _ACEOF
10058 if { (ac_try="$ac_cpp conftest.$ac_ext"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062 esac
10063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10064 $as_echo "$ac_try_echo") >&5
10065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } >/dev/null && {
10072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 }; then
10075 ac_header_preproc=yes
10076 else
10077 $as_echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_header_preproc=no
10081 fi
10083 rm -f conftest.err conftest.$ac_ext
10084 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10085 $as_echo "$ac_header_preproc" >&6; }
10087 # So? What about this header?
10088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10089 yes:no: )
10090 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10091 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10092 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10093 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10094 ac_header_preproc=yes
10095 ;;
10096 no:yes:* )
10097 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10098 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10099 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10100 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10101 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10102 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10103 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10104 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10105 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10106 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10107 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10108 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10110 ;;
10111 esac
10112 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10113 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10114 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10115 $as_echo_n "(cached) " >&6
10116 else
10117 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10118 fi
10119 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10120 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10122 fi
10123 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
10125 HAVE_CORE_AUDIO=yes
10126 LIBS="$LIBS -framework CoreAudio"
10127 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10129 cat >>confdefs.h <<\_ACEOF
10130 #define HAVE_CORE_AUDIO 1
10131 _ACEOF
10133 else
10134 true
10135 fi
10140 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10141 AUDIO_OSX_TRUE=
10142 AUDIO_OSX_FALSE='#'
10143 else
10144 AUDIO_OSX_TRUE='#'
10145 AUDIO_OSX_FALSE=
10146 fi
10149 if test "x$with_sdl" != "xno"; then
10151 pkg_failed=no
10152 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10153 $as_echo_n "checking for SDL... " >&6; }
10155 if test -n "$SDL_CFLAGS"; then
10156 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10157 elif test -n "$PKG_CONFIG"; then
10158 if test -n "$PKG_CONFIG" && \
10159 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10160 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10161 ac_status=$?
10162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; then
10164 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10165 else
10166 pkg_failed=yes
10167 fi
10168 else
10169 pkg_failed=untried
10170 fi
10171 if test -n "$SDL_LIBS"; then
10172 pkg_cv_SDL_LIBS="$SDL_LIBS"
10173 elif test -n "$PKG_CONFIG"; then
10174 if test -n "$PKG_CONFIG" && \
10175 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10176 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10177 ac_status=$?
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; then
10180 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10181 else
10182 pkg_failed=yes
10183 fi
10184 else
10185 pkg_failed=untried
10186 fi
10190 if test $pkg_failed = yes; then
10192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10193 _pkg_short_errors_supported=yes
10194 else
10195 _pkg_short_errors_supported=no
10196 fi
10197 if test $_pkg_short_errors_supported = yes; then
10198 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10199 else
10200 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10201 fi
10202 # Put the nasty error message in config.log where it belongs
10203 echo "$SDL_PKG_ERRORS" >&5
10205 { $as_echo "$as_me:$LINENO: result: no" >&5
10206 $as_echo "no" >&6; }
10208 if test "x$with_sdl" = "xyes"; then
10209 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10211 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10212 See \`config.log' for more details." >&5
10213 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10214 See \`config.log' for more details." >&2;}
10215 { (exit 1); exit 1; }; }; }
10216 fi
10218 elif test $pkg_failed = untried; then
10220 if test "x$with_sdl" = "xyes"; then
10221 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10223 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10224 See \`config.log' for more details." >&5
10225 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10226 See \`config.log' for more details." >&2;}
10227 { (exit 1); exit 1; }; }; }
10228 fi
10230 else
10231 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10232 SDL_LIBS=$pkg_cv_SDL_LIBS
10233 { $as_echo "$as_me:$LINENO: result: yes" >&5
10234 $as_echo "yes" >&6; }
10236 HAVE_SDL='yes'
10237 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_SDL 1
10241 _ACEOF
10244 fi
10245 fi
10248 if test "$HAVE_SDL" = 'yes' ; then
10249 AUDIO_SDL_TRUE=
10250 AUDIO_SDL_FALSE='#'
10251 else
10252 AUDIO_SDL_TRUE='#'
10253 AUDIO_SDL_FALSE=
10254 fi
10257 if test "x$with_pulse" != "xno"; then
10259 pkg_failed=no
10260 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10261 $as_echo_n "checking for PULSE... " >&6; }
10263 if test -n "$PULSE_CFLAGS"; then
10264 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10265 elif test -n "$PKG_CONFIG"; then
10266 if test -n "$PKG_CONFIG" && \
10267 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10268 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10269 ac_status=$?
10270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; then
10272 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10273 else
10274 pkg_failed=yes
10275 fi
10276 else
10277 pkg_failed=untried
10278 fi
10279 if test -n "$PULSE_LIBS"; then
10280 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10281 elif test -n "$PKG_CONFIG"; then
10282 if test -n "$PKG_CONFIG" && \
10283 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10284 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10285 ac_status=$?
10286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; then
10288 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10289 else
10290 pkg_failed=yes
10291 fi
10292 else
10293 pkg_failed=untried
10294 fi
10298 if test $pkg_failed = yes; then
10300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10301 _pkg_short_errors_supported=yes
10302 else
10303 _pkg_short_errors_supported=no
10304 fi
10305 if test $_pkg_short_errors_supported = yes; then
10306 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10307 else
10308 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10309 fi
10310 # Put the nasty error message in config.log where it belongs
10311 echo "$PULSE_PKG_ERRORS" >&5
10313 { $as_echo "$as_me:$LINENO: result: no" >&5
10314 $as_echo "no" >&6; }
10316 if test "x$with_pulse" = "xyes"; then
10317 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10319 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10320 See \`config.log' for more details." >&5
10321 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10322 See \`config.log' for more details." >&2;}
10323 { (exit 1); exit 1; }; }; }
10324 fi
10326 elif test $pkg_failed = untried; then
10328 if test "x$with_pulse" = "xyes"; then
10329 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10331 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10332 See \`config.log' for more details." >&5
10333 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10334 See \`config.log' for more details." >&2;}
10335 { (exit 1); exit 1; }; }; }
10336 fi
10338 else
10339 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10340 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10341 { $as_echo "$as_me:$LINENO: result: yes" >&5
10342 $as_echo "yes" >&6; }
10344 HAVE_PULSE='yes'
10345 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_PULSE 1
10349 _ACEOF
10352 fi
10353 fi
10356 if test "$HAVE_PULSE" = 'yes' ; then
10357 AUDIO_PULSE_TRUE=
10358 AUDIO_PULSE_FALSE='#'
10359 else
10360 AUDIO_PULSE_TRUE='#'
10361 AUDIO_PULSE_FALSE=
10362 fi
10365 if test "x$with_esd" != "xno"; then
10367 pkg_failed=no
10368 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10369 $as_echo_n "checking for ESOUND... " >&6; }
10371 if test -n "$ESOUND_CFLAGS"; then
10372 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10373 elif test -n "$PKG_CONFIG"; then
10374 if test -n "$PKG_CONFIG" && \
10375 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10376 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10377 ac_status=$?
10378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; then
10380 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10381 else
10382 pkg_failed=yes
10383 fi
10384 else
10385 pkg_failed=untried
10386 fi
10387 if test -n "$ESOUND_LIBS"; then
10388 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10389 elif test -n "$PKG_CONFIG"; then
10390 if test -n "$PKG_CONFIG" && \
10391 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10392 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10393 ac_status=$?
10394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; then
10396 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10397 else
10398 pkg_failed=yes
10399 fi
10400 else
10401 pkg_failed=untried
10402 fi
10406 if test $pkg_failed = yes; then
10408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10409 _pkg_short_errors_supported=yes
10410 else
10411 _pkg_short_errors_supported=no
10412 fi
10413 if test $_pkg_short_errors_supported = yes; then
10414 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10415 else
10416 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10417 fi
10418 # Put the nasty error message in config.log where it belongs
10419 echo "$ESOUND_PKG_ERRORS" >&5
10421 { $as_echo "$as_me:$LINENO: result: no" >&5
10422 $as_echo "no" >&6; }
10424 if test "x$with_esd" = "xyes"; then
10425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10427 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10428 See \`config.log' for more details." >&5
10429 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10430 See \`config.log' for more details." >&2;}
10431 { (exit 1); exit 1; }; }; }
10432 fi
10434 elif test $pkg_failed = untried; then
10436 if test "x$with_esd" = "xyes"; then
10437 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10439 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10440 See \`config.log' for more details." >&5
10441 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10442 See \`config.log' for more details." >&2;}
10443 { (exit 1); exit 1; }; }; }
10444 fi
10446 else
10447 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10448 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10449 { $as_echo "$as_me:$LINENO: result: yes" >&5
10450 $as_echo "yes" >&6; }
10452 HAVE_ESOUND='yes'
10453 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE_ESOUND 1
10457 _ACEOF
10460 fi
10461 fi
10464 if test "$HAVE_ESOUND" = 'yes' ; then
10465 AUDIO_ESOUND_TRUE=
10466 AUDIO_ESOUND_FALSE='#'
10467 else
10468 AUDIO_ESOUND_TRUE='#'
10469 AUDIO_ESOUND_FALSE=
10470 fi
10474 pkg_failed=no
10475 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10476 $as_echo_n "checking for ALSA... " >&6; }
10478 if test -n "$ALSA_CFLAGS"; then
10479 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10480 elif test -n "$PKG_CONFIG"; then
10481 if test -n "$PKG_CONFIG" && \
10482 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10483 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10484 ac_status=$?
10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; then
10487 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10488 else
10489 pkg_failed=yes
10490 fi
10491 else
10492 pkg_failed=untried
10493 fi
10494 if test -n "$ALSA_LIBS"; then
10495 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10496 elif test -n "$PKG_CONFIG"; then
10497 if test -n "$PKG_CONFIG" && \
10498 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10499 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10500 ac_status=$?
10501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; then
10503 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10504 else
10505 pkg_failed=yes
10506 fi
10507 else
10508 pkg_failed=untried
10509 fi
10513 if test $pkg_failed = yes; then
10515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10516 _pkg_short_errors_supported=yes
10517 else
10518 _pkg_short_errors_supported=no
10519 fi
10520 if test $_pkg_short_errors_supported = yes; then
10521 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10522 else
10523 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10524 fi
10525 # Put the nasty error message in config.log where it belongs
10526 echo "$ALSA_PKG_ERRORS" >&5
10528 { $as_echo "$as_me:$LINENO: result: no" >&5
10529 $as_echo "no" >&6; }
10530 true
10531 elif test $pkg_failed = untried; then
10532 true
10533 else
10534 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10535 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10536 { $as_echo "$as_me:$LINENO: result: yes" >&5
10537 $as_echo "yes" >&6; }
10539 HAVE_ALSA='yes'
10540 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10542 cat >>confdefs.h <<\_ACEOF
10543 #define HAVE_ALSA 1
10544 _ACEOF
10546 fi
10549 if test "$HAVE_ALSA" = 'yes' ; then
10550 AUDIO_ALSA_TRUE=
10551 AUDIO_ALSA_FALSE='#'
10552 else
10553 AUDIO_ALSA_TRUE='#'
10554 AUDIO_ALSA_FALSE=
10555 fi
10559 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10560 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10561 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10562 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10563 $as_echo_n "(cached) " >&6
10564 fi
10565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10566 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10567 else
10568 # Is the header compilable?
10569 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10570 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 $ac_includes_default
10578 #include <linux/cdrom.h>
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585 esac
10586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587 $as_echo "$ac_try_echo") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 ac_header_compiler=yes
10599 else
10600 $as_echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_compiler=no
10604 fi
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 $as_echo "$ac_header_compiler" >&6; }
10610 # Is the header present?
10611 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10612 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <linux/cdrom.h>
10620 _ACEOF
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627 $as_echo "$ac_try_echo") >&5
10628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } >/dev/null && {
10635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 }; then
10638 ac_header_preproc=yes
10639 else
10640 $as_echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_header_preproc=no
10644 fi
10646 rm -f conftest.err conftest.$ac_ext
10647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648 $as_echo "$ac_header_preproc" >&6; }
10650 # So? What about this header?
10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 yes:no: )
10653 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10654 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10656 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10658 ;;
10659 no:yes:* )
10660 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10661 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10662 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10663 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10664 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10665 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10666 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10667 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10669 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10670 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10671 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10673 ;;
10674 esac
10675 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10676 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10677 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10681 fi
10682 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10683 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10685 fi
10686 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
10688 CDROM_DRIVER=linux
10689 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
10690 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
10691 old_CFLAGS="$CFLAGS"
10692 CFLAGS="$CFLAGS $STDCFLAG"
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h. */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <linux/cdrom.h>
10700 int
10701 main ()
10702 {
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716 (eval "$ac_compile") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest.$ac_objext; then
10726 { $as_echo "$as_me:$LINENO: result: Yes" >&5
10727 $as_echo "Yes" >&6; }
10728 else
10729 $as_echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10733 { $as_echo "$as_me:$LINENO: result: No" >&5
10734 $as_echo "No" >&6; }
10735 STDCFLAG="-std=gnu99"
10736 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 CFLAGS="$old_CFLAGS"
10741 else
10742 true
10743 fi
10746 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10747 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10748 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10749 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10750 $as_echo_n "(cached) " >&6
10751 fi
10752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10753 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10754 else
10755 # Is the header compilable?
10756 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10757 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 #include <IOKit/IOKitLib.h>
10766 _ACEOF
10767 rm -f conftest.$ac_objext
10768 if { (ac_try="$ac_compile"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772 esac
10773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10774 $as_echo "$ac_try_echo") >&5
10775 (eval "$ac_compile") 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } && {
10782 test -z "$ac_c_werror_flag" ||
10783 test ! -s conftest.err
10784 } && test -s conftest.$ac_objext; then
10785 ac_header_compiler=yes
10786 else
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 ac_header_compiler=no
10791 fi
10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10795 $as_echo "$ac_header_compiler" >&6; }
10797 # Is the header present?
10798 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10799 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h. */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 #include <IOKit/IOKitLib.h>
10807 _ACEOF
10808 if { (ac_try="$ac_cpp conftest.$ac_ext"
10809 case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812 esac
10813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10814 $as_echo "$ac_try_echo") >&5
10815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } >/dev/null && {
10822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 }; then
10825 ac_header_preproc=yes
10826 else
10827 $as_echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_preproc=no
10831 fi
10833 rm -f conftest.err conftest.$ac_ext
10834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 $as_echo "$ac_header_preproc" >&6; }
10837 # So? What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839 yes:no: )
10840 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10841 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10843 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10845 ;;
10846 no:yes:* )
10847 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10848 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10849 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10850 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10851 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10852 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10853 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10854 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10856 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10857 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10858 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10860 ;;
10861 esac
10862 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10863 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10864 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10865 $as_echo_n "(cached) " >&6
10866 else
10867 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10868 fi
10869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10870 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10872 fi
10873 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
10875 CDROM_DRIVER=osx
10876 LIBS="$LIBS -framework IOKit"
10877 else
10878 true
10879 fi
10884 if test "x$CDROM_DRIVER" = "xlinux"; then
10885 CDROM_LINUX_TRUE=
10886 CDROM_LINUX_FALSE='#'
10887 else
10888 CDROM_LINUX_TRUE='#'
10889 CDROM_LINUX_FALSE=
10890 fi
10894 if test "x$CDROM_DRIVER" = "xosx"; then
10895 CDROM_OSX_TRUE=
10896 CDROM_OSX_FALSE='#'
10897 else
10898 CDROM_OSX_TRUE='#'
10899 CDROM_OSX_FALSE=
10900 fi
10904 if test "x$CDROM_DRIVER" = "x"; then
10905 CDROM_NONE_TRUE=
10906 CDROM_NONE_FALSE='#'
10907 else
10908 CDROM_NONE_TRUE='#'
10909 CDROM_NONE_FALSE=
10910 fi
10913 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10914 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10915 $as_echo_n "checking for linux/joystick.h... " >&6; }
10916 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10917 $as_echo_n "(cached) " >&6
10918 fi
10919 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10920 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10921 else
10922 # Is the header compilable?
10923 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10924 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10932 #include <linux/joystick.h>
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && {
10949 test -z "$ac_c_werror_flag" ||
10950 test ! -s conftest.err
10951 } && test -s conftest.$ac_objext; then
10952 ac_header_compiler=yes
10953 else
10954 $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_header_compiler=no
10958 fi
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10962 $as_echo "$ac_header_compiler" >&6; }
10964 # Is the header present?
10965 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10966 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 #include <linux/joystick.h>
10974 _ACEOF
10975 if { (ac_try="$ac_cpp conftest.$ac_ext"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10981 $as_echo "$ac_try_echo") >&5
10982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } >/dev/null && {
10989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10990 test ! -s conftest.err
10991 }; then
10992 ac_header_preproc=yes
10993 else
10994 $as_echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ac_header_preproc=no
10998 fi
11000 rm -f conftest.err conftest.$ac_ext
11001 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11002 $as_echo "$ac_header_preproc" >&6; }
11004 # So? What about this header?
11005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11006 yes:no: )
11007 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11008 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11009 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11010 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11011 ac_header_preproc=yes
11012 ;;
11013 no:yes:* )
11014 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11015 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11016 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11017 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11018 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11019 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11020 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11021 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11022 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11023 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11024 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11025 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11027 ;;
11028 esac
11029 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11030 $as_echo_n "checking for linux/joystick.h... " >&6; }
11031 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11032 $as_echo_n "(cached) " >&6
11033 else
11034 ac_cv_header_linux_joystick_h=$ac_header_preproc
11035 fi
11036 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11037 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11039 fi
11040 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
11042 HAVE_LINUX_JOYSTICK_H=yes
11044 cat >>confdefs.h <<\_ACEOF
11045 #define HAVE_LINUX_JOYSTICK 1
11046 _ACEOF
11048 else
11049 echo "Linux Joystick support not found, building without it."
11050 fi
11055 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11056 JOY_LINUX_TRUE=
11057 JOY_LINUX_FALSE='#'
11058 else
11059 JOY_LINUX_TRUE='#'
11060 JOY_LINUX_FALSE=
11061 fi
11064 if test "x$with_lirc" != "xno"; then
11065 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11066 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11067 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11068 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11069 $as_echo_n "(cached) " >&6
11070 fi
11071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11072 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11073 else
11074 # Is the header compilable?
11075 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11076 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h. */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 $ac_includes_default
11084 #include <lirc/lirc_client.h>
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11093 $as_echo "$ac_try_echo") >&5
11094 (eval "$ac_compile") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest.$ac_objext; then
11104 ac_header_compiler=yes
11105 else
11106 $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_header_compiler=no
11110 fi
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114 $as_echo "$ac_header_compiler" >&6; }
11116 # Is the header present?
11117 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11118 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 #include <lirc/lirc_client.h>
11126 _ACEOF
11127 if { (ac_try="$ac_cpp conftest.$ac_ext"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131 esac
11132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11133 $as_echo "$ac_try_echo") >&5
11134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } >/dev/null && {
11141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11142 test ! -s conftest.err
11143 }; then
11144 ac_header_preproc=yes
11145 else
11146 $as_echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_header_preproc=no
11150 fi
11152 rm -f conftest.err conftest.$ac_ext
11153 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154 $as_echo "$ac_header_preproc" >&6; }
11156 # So? What about this header?
11157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11158 yes:no: )
11159 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11160 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11162 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11163 ac_header_preproc=yes
11164 ;;
11165 no:yes:* )
11166 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11167 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11168 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11169 $as_echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11170 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11171 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11172 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11173 $as_echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11174 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11175 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11176 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11177 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11179 ;;
11180 esac
11181 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11182 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11183 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11184 $as_echo_n "(cached) " >&6
11185 else
11186 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11187 fi
11188 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11189 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11191 fi
11192 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
11194 HAVE_LIRC_CLIENT_H=yes
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_LIRC 1
11198 _ACEOF
11200 else
11201 echo "LIRC support not found, building without it."
11202 fi
11205 fi
11208 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11209 INPUT_LIRC_TRUE=
11210 INPUT_LIRC_FALSE='#'
11211 else
11212 INPUT_LIRC_TRUE='#'
11213 INPUT_LIRC_FALSE=
11214 fi
11217 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11218 set dummy sh-elf-gcc; ac_word=$2
11219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if test "${ac_cv_path_SHCC+set}" = set; then
11222 $as_echo_n "(cached) " >&6
11223 else
11224 case $SHCC in
11225 [\\/]* | ?:[\\/]*)
11226 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11227 ;;
11228 *)
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240 done
11241 done
11242 IFS=$as_save_IFS
11244 ;;
11245 esac
11246 fi
11247 SHCC=$ac_cv_path_SHCC
11248 if test -n "$SHCC"; then
11249 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11250 $as_echo "$SHCC" >&6; }
11251 else
11252 { $as_echo "$as_me:$LINENO: result: no" >&5
11253 $as_echo "no" >&6; }
11254 fi
11257 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11258 set dummy sh-elf-ld; ac_word=$2
11259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if test "${ac_cv_path_SHLD+set}" = set; then
11262 $as_echo_n "(cached) " >&6
11263 else
11264 case $SHLD in
11265 [\\/]* | ?:[\\/]*)
11266 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11267 ;;
11268 *)
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280 done
11281 done
11282 IFS=$as_save_IFS
11284 ;;
11285 esac
11286 fi
11287 SHLD=$ac_cv_path_SHLD
11288 if test -n "$SHLD"; then
11289 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11290 $as_echo "$SHLD" >&6; }
11291 else
11292 { $as_echo "$as_me:$LINENO: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11297 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11298 set dummy sh-elf-objcopy; ac_word=$2
11299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11300 $as_echo_n "checking for $ac_word... " >&6; }
11301 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11302 $as_echo_n "(cached) " >&6
11303 else
11304 case $SHOBJCOPY in
11305 [\\/]* | ?:[\\/]*)
11306 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11307 ;;
11308 *)
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11316 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320 done
11321 done
11322 IFS=$as_save_IFS
11324 ;;
11325 esac
11326 fi
11327 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11328 if test -n "$SHOBJCOPY"; then
11329 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11330 $as_echo "$SHOBJCOPY" >&6; }
11331 else
11332 { $as_echo "$as_me:$LINENO: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11337 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11338 set dummy arm-elf-gcc; ac_word=$2
11339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if test "${ac_cv_path_ARMCC+set}" = set; then
11342 $as_echo_n "(cached) " >&6
11343 else
11344 case $ARMCC in
11345 [\\/]* | ?:[\\/]*)
11346 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11347 ;;
11348 *)
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360 done
11361 done
11362 IFS=$as_save_IFS
11364 ;;
11365 esac
11366 fi
11367 ARMCC=$ac_cv_path_ARMCC
11368 if test -n "$ARMCC"; then
11369 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11370 $as_echo "$ARMCC" >&6; }
11371 else
11372 { $as_echo "$as_me:$LINENO: result: no" >&5
11373 $as_echo "no" >&6; }
11374 fi
11377 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11378 set dummy arm-elf-ld; ac_word=$2
11379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if test "${ac_cv_path_ARMLD+set}" = set; then
11382 $as_echo_n "(cached) " >&6
11383 else
11384 case $ARMLD in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11387 ;;
11388 *)
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11391 do
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11399 fi
11400 done
11401 done
11402 IFS=$as_save_IFS
11404 ;;
11405 esac
11406 fi
11407 ARMLD=$ac_cv_path_ARMLD
11408 if test -n "$ARMLD"; then
11409 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11410 $as_echo "$ARMLD" >&6; }
11411 else
11412 { $as_echo "$as_me:$LINENO: result: no" >&5
11413 $as_echo "no" >&6; }
11414 fi
11417 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11418 set dummy arm-elf-objcopy; ac_word=$2
11419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11422 $as_echo_n "(cached) " >&6
11423 else
11424 case $ARMOBJCOPY in
11425 [\\/]* | ?:[\\/]*)
11426 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11427 ;;
11428 *)
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11431 do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11436 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11439 fi
11440 done
11441 done
11442 IFS=$as_save_IFS
11444 ;;
11445 esac
11446 fi
11447 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11448 if test -n "$ARMOBJCOPY"; then
11449 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11450 $as_echo "$ARMOBJCOPY" >&6; }
11451 else
11452 { $as_echo "$as_me:$LINENO: result: no" >&5
11453 $as_echo "no" >&6; }
11454 fi
11458 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11459 BUILD_SH="no"
11460 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11461 else
11462 BUILD_SH="yes"
11463 fi
11464 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11465 BUILD_ARM="no"
11466 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11467 else
11468 BUILD_ARM="yes"
11469 fi
11472 if test "$BUILD_SH" = "yes"; then
11473 BUILD_SYSTEST_TRUE=
11474 BUILD_SYSTEST_FALSE='#'
11475 else
11476 BUILD_SYSTEST_TRUE='#'
11477 BUILD_SYSTEST_FALSE=
11478 fi
11482 if test "$BUILD_ARM" = "yes"; then
11483 BUILD_ARMTEST_TRUE=
11484 BUILD_ARMTEST_FALSE='#'
11485 else
11486 BUILD_ARMTEST_TRUE='#'
11487 BUILD_ARMTEST_FALSE=
11488 fi
11491 CFLAGS="$CFLAGS $STDCFLAG"
11493 GETTEXT_PACKAGE=lxdream
11496 cat >>confdefs.h <<_ACEOF
11497 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11498 _ACEOF
11501 ALL_LINGUAS="de es it pt_BR"
11504 for ac_header in locale.h
11505 do
11506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 $as_echo_n "checking for $ac_header... " >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 $as_echo_n "(cached) " >&6
11512 fi
11513 ac_res=`eval 'as_val=${'$as_ac_Header'}
11514 $as_echo "$as_val"'`
11515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11516 $as_echo "$ac_res" >&6; }
11517 else
11518 # Is the header compilable?
11519 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11520 $as_echo_n "checking $ac_header usability... " >&6; }
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 $ac_includes_default
11528 #include <$ac_header>
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537 $as_echo "$ac_try_echo") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11548 ac_header_compiler=yes
11549 else
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_header_compiler=no
11554 fi
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558 $as_echo "$ac_header_compiler" >&6; }
11560 # Is the header present?
11561 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11562 $as_echo_n "checking $ac_header presence... " >&6; }
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <$ac_header>
11570 _ACEOF
11571 if { (ac_try="$ac_cpp conftest.$ac_ext"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575 esac
11576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11577 $as_echo "$ac_try_echo") >&5
11578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null && {
11585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 }; then
11588 ac_header_preproc=yes
11589 else
11590 $as_echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_header_preproc=no
11594 fi
11596 rm -f conftest.err conftest.$ac_ext
11597 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598 $as_echo "$ac_header_preproc" >&6; }
11600 # So? What about this header?
11601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11602 yes:no: )
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11607 ac_header_preproc=yes
11608 ;;
11609 no:yes:* )
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11623 ;;
11624 esac
11625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11626 $as_echo_n "checking for $ac_header... " >&6; }
11627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11628 $as_echo_n "(cached) " >&6
11629 else
11630 eval "$as_ac_Header=\$ac_header_preproc"
11631 fi
11632 ac_res=`eval 'as_val=${'$as_ac_Header'}
11633 $as_echo "$as_val"'`
11634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11635 $as_echo "$ac_res" >&6; }
11637 fi
11638 as_val=`eval 'as_val=${'$as_ac_Header'}
11639 $as_echo "$as_val"'`
11640 if test "x$as_val" = x""yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 _ACEOF
11645 fi
11647 done
11649 if test $ac_cv_header_locale_h = yes; then
11650 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11651 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11652 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11653 $as_echo_n "(cached) " >&6
11654 else
11655 cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h. */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <locale.h>
11662 int
11663 main ()
11664 {
11665 return LC_MESSAGES
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (ac_try="$ac_link"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11677 $as_echo "$ac_try_echo") >&5
11678 (eval "$ac_link") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest$ac_exeext && {
11688 test "$cross_compiling" = yes ||
11689 $as_test_x conftest$ac_exeext
11690 }; then
11691 am_cv_val_LC_MESSAGES=yes
11692 else
11693 $as_echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 am_cv_val_LC_MESSAGES=no
11697 fi
11699 rm -rf conftest.dSYM
11700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11701 conftest$ac_exeext conftest.$ac_ext
11702 fi
11703 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11704 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11705 if test $am_cv_val_LC_MESSAGES = yes; then
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_LC_MESSAGES 1
11709 _ACEOF
11711 fi
11712 fi
11713 USE_NLS=yes
11716 gt_cv_have_gettext=no
11718 CATOBJEXT=NONE
11719 XGETTEXT=:
11720 INTLLIBS=
11722 if test "${ac_cv_header_libintl_h+set}" = set; then
11723 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11724 $as_echo_n "checking for libintl.h... " >&6; }
11725 if test "${ac_cv_header_libintl_h+set}" = set; then
11726 $as_echo_n "(cached) " >&6
11727 fi
11728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11729 $as_echo "$ac_cv_header_libintl_h" >&6; }
11730 else
11731 # Is the header compilable?
11732 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11733 $as_echo_n "checking libintl.h usability... " >&6; }
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 $ac_includes_default
11741 #include <libintl.h>
11742 _ACEOF
11743 rm -f conftest.$ac_objext
11744 if { (ac_try="$ac_compile"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_compile") 2>conftest.er1
11752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && {
11758 test -z "$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 } && test -s conftest.$ac_objext; then
11761 ac_header_compiler=yes
11762 else
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_header_compiler=no
11767 fi
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11771 $as_echo "$ac_header_compiler" >&6; }
11773 # Is the header present?
11774 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11775 $as_echo_n "checking libintl.h presence... " >&6; }
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 #include <libintl.h>
11783 _ACEOF
11784 if { (ac_try="$ac_cpp conftest.$ac_ext"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11790 $as_echo "$ac_try_echo") >&5
11791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } >/dev/null && {
11798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 }; then
11801 ac_header_preproc=yes
11802 else
11803 $as_echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_preproc=no
11807 fi
11809 rm -f conftest.err conftest.$ac_ext
11810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11811 $as_echo "$ac_header_preproc" >&6; }
11813 # So? What about this header?
11814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11815 yes:no: )
11816 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11817 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11818 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11819 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11820 ac_header_preproc=yes
11821 ;;
11822 no:yes:* )
11823 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11824 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11825 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11826 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11827 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11828 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11829 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11830 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11831 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11832 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11833 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11834 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11836 ;;
11837 esac
11838 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11839 $as_echo_n "checking for libintl.h... " >&6; }
11840 if test "${ac_cv_header_libintl_h+set}" = set; then
11841 $as_echo_n "(cached) " >&6
11842 else
11843 ac_cv_header_libintl_h=$ac_header_preproc
11844 fi
11845 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11846 $as_echo "$ac_cv_header_libintl_h" >&6; }
11848 fi
11849 if test "x$ac_cv_header_libintl_h" = x""yes; then
11850 gt_cv_func_dgettext_libintl="no"
11851 libintl_extra_libs=""
11853 #
11854 # First check in libc
11855 #
11856 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11857 $as_echo_n "checking for ngettext in libc... " >&6; }
11858 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11859 $as_echo_n "(cached) " >&6
11860 else
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 #include <libintl.h>
11870 int
11871 main ()
11872 {
11873 return !ngettext ("","", 1)
11874 ;
11875 return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (ac_try="$ac_link"
11880 case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883 esac
11884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11885 $as_echo "$ac_try_echo") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext && {
11896 test "$cross_compiling" = yes ||
11897 $as_test_x conftest$ac_exeext
11898 }; then
11899 gt_cv_func_ngettext_libc=yes
11900 else
11901 $as_echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 gt_cv_func_ngettext_libc=no
11905 fi
11907 rm -rf conftest.dSYM
11908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11909 conftest$ac_exeext conftest.$ac_ext
11911 fi
11912 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11913 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11915 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11916 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11917 $as_echo_n "checking for dgettext in libc... " >&6; }
11918 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11919 $as_echo_n "(cached) " >&6
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 #include <libintl.h>
11930 int
11931 main ()
11932 {
11933 return !dgettext ("","")
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (ac_try="$ac_link"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943 esac
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946 (eval "$ac_link") 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest$ac_exeext && {
11956 test "$cross_compiling" = yes ||
11957 $as_test_x conftest$ac_exeext
11958 }; then
11959 gt_cv_func_dgettext_libc=yes
11960 else
11961 $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 gt_cv_func_dgettext_libc=no
11965 fi
11967 rm -rf conftest.dSYM
11968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969 conftest$ac_exeext conftest.$ac_ext
11971 fi
11972 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11973 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11974 fi
11976 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11978 for ac_func in bind_textdomain_codeset
11979 do
11980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11981 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11982 $as_echo_n "checking for $ac_func... " >&6; }
11983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11984 $as_echo_n "(cached) " >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994 #define $ac_func innocuous_$ac_func
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char $ac_func (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12001 #ifdef __STDC__
12002 # include <limits.h>
12003 #else
12004 # include <assert.h>
12005 #endif
12007 #undef $ac_func
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char $ac_func ();
12016 /* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019 #if defined __stub_$ac_func || defined __stub___$ac_func
12020 choke me
12021 #endif
12023 int
12024 main ()
12025 {
12026 return $ac_func ();
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (ac_try="$ac_link"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12038 $as_echo "$ac_try_echo") >&5
12039 (eval "$ac_link") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } && {
12046 test -z "$ac_c_werror_flag" ||
12047 test ! -s conftest.err
12048 } && test -s conftest$ac_exeext && {
12049 test "$cross_compiling" = yes ||
12050 $as_test_x conftest$ac_exeext
12051 }; then
12052 eval "$as_ac_var=yes"
12053 else
12054 $as_echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 eval "$as_ac_var=no"
12058 fi
12060 rm -rf conftest.dSYM
12061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12062 conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 ac_res=`eval 'as_val=${'$as_ac_var'}
12065 $as_echo "$as_val"'`
12066 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12067 $as_echo "$ac_res" >&6; }
12068 as_val=`eval 'as_val=${'$as_ac_var'}
12069 $as_echo "$as_val"'`
12070 if test "x$as_val" = x""yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12075 fi
12076 done
12078 fi
12080 #
12081 # If we don't have everything we want, check in libintl
12082 #
12083 if test "$gt_cv_func_dgettext_libc" != "yes" \
12084 || test "$gt_cv_func_ngettext_libc" != "yes" \
12085 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12087 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12088 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12089 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12090 $as_echo_n "(cached) " >&6
12091 else
12092 ac_check_lib_save_LIBS=$LIBS
12093 LIBS="-lintl $LIBS"
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12101 /* Override any GCC internal prototype to avoid an error.
12102 Use char because int might match the return type of a GCC
12103 builtin and then its argument prototype would still apply. */
12104 #ifdef __cplusplus
12105 extern "C"
12106 #endif
12107 char bindtextdomain ();
12108 int
12109 main ()
12110 {
12111 return bindtextdomain ();
12112 ;
12113 return 0;
12114 }
12115 _ACEOF
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (ac_try="$ac_link"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12123 $as_echo "$ac_try_echo") >&5
12124 (eval "$ac_link") 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest$ac_exeext && {
12134 test "$cross_compiling" = yes ||
12135 $as_test_x conftest$ac_exeext
12136 }; then
12137 ac_cv_lib_intl_bindtextdomain=yes
12138 else
12139 $as_echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_lib_intl_bindtextdomain=no
12143 fi
12145 rm -rf conftest.dSYM
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12151 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12152 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12153 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12154 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12155 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lintl $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char ngettext ();
12174 int
12175 main ()
12176 {
12177 return ngettext ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12202 }; then
12203 ac_cv_lib_intl_ngettext=yes
12204 else
12205 $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_intl_ngettext=no
12209 fi
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12215 fi
12216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12217 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12218 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12219 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12220 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12221 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12222 $as_echo_n "(cached) " >&6
12223 else
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-lintl $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char dgettext ();
12240 int
12241 main ()
12242 {
12243 return dgettext ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_link") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext && {
12266 test "$cross_compiling" = yes ||
12267 $as_test_x conftest$ac_exeext
12268 }; then
12269 ac_cv_lib_intl_dgettext=yes
12270 else
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_lib_intl_dgettext=no
12275 fi
12277 rm -rf conftest.dSYM
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12281 fi
12282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12283 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12284 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12285 gt_cv_func_dgettext_libintl=yes
12286 fi
12288 fi
12290 fi
12293 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12294 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12295 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12296 { $as_echo "$as_me:$LINENO: result: " >&5
12297 $as_echo "" >&6; }
12298 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12299 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12300 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12301 $as_echo_n "(cached) " >&6
12302 else
12303 ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-lintl -liconv $LIBS"
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 #endif
12318 char ngettext ();
12319 int
12320 main ()
12321 {
12322 return ngettext ();
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332 esac
12333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12334 $as_echo "$ac_try_echo") >&5
12335 (eval "$ac_link") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest$ac_exeext && {
12345 test "$cross_compiling" = yes ||
12346 $as_test_x conftest$ac_exeext
12347 }; then
12348 ac_cv_lib_intl_ngettext=yes
12349 else
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_intl_ngettext=no
12354 fi
12356 rm -rf conftest.dSYM
12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12362 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12363 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12364 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12365 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12366 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lintl -liconv $LIBS"
12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h. */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 char dcgettext ();
12385 int
12386 main ()
12387 {
12388 return dcgettext ();
12389 ;
12390 return 0;
12391 }
12392 _ACEOF
12393 rm -f conftest.$ac_objext conftest$ac_exeext
12394 if { (ac_try="$ac_link"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398 esac
12399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400 $as_echo "$ac_try_echo") >&5
12401 (eval "$ac_link") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest$ac_exeext && {
12411 test "$cross_compiling" = yes ||
12412 $as_test_x conftest$ac_exeext
12413 }; then
12414 ac_cv_lib_intl_dcgettext=yes
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_cv_lib_intl_dcgettext=no
12420 fi
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12428 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12429 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
12430 gt_cv_func_dgettext_libintl=yes
12431 libintl_extra_libs=-liconv
12432 else
12433 :
12434 fi
12436 else
12437 :
12438 fi
12440 fi
12442 #
12443 # If we found libintl, then check in it for bind_textdomain_codeset();
12444 # we'll prefer libc if neither have bind_textdomain_codeset(),
12445 # and both have dgettext and ngettext
12446 #
12447 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12448 glib_save_LIBS="$LIBS"
12449 LIBS="$LIBS -lintl $libintl_extra_libs"
12450 unset ac_cv_func_bind_textdomain_codeset
12452 for ac_func in bind_textdomain_codeset
12453 do
12454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12456 $as_echo_n "checking for $ac_func... " >&6; }
12457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12458 $as_echo_n "(cached) " >&6
12459 else
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12468 #define $ac_func innocuous_$ac_func
12470 /* System header to define __stub macros and hopefully few prototypes,
12471 which can conflict with char $ac_func (); below.
12472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473 <limits.h> exists even on freestanding compilers. */
12475 #ifdef __STDC__
12476 # include <limits.h>
12477 #else
12478 # include <assert.h>
12479 #endif
12481 #undef $ac_func
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 char $ac_func ();
12490 /* The GNU C library defines this for functions which it implements
12491 to always fail with ENOSYS. Some functions are actually named
12492 something starting with __ and the normal name is an alias. */
12493 #if defined __stub_$ac_func || defined __stub___$ac_func
12494 choke me
12495 #endif
12497 int
12498 main ()
12499 {
12500 return $ac_func ();
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (ac_try="$ac_link"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12510 esac
12511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12512 $as_echo "$ac_try_echo") >&5
12513 (eval "$ac_link") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest$ac_exeext && {
12523 test "$cross_compiling" = yes ||
12524 $as_test_x conftest$ac_exeext
12525 }; then
12526 eval "$as_ac_var=yes"
12527 else
12528 $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 eval "$as_ac_var=no"
12532 fi
12534 rm -rf conftest.dSYM
12535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12536 conftest$ac_exeext conftest.$ac_ext
12537 fi
12538 ac_res=`eval 'as_val=${'$as_ac_var'}
12539 $as_echo "$as_val"'`
12540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12541 $as_echo "$ac_res" >&6; }
12542 as_val=`eval 'as_val=${'$as_ac_var'}
12543 $as_echo "$as_val"'`
12544 if test "x$as_val" = x""yes; then
12545 cat >>confdefs.h <<_ACEOF
12546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12547 _ACEOF
12549 fi
12550 done
12552 LIBS="$glib_save_LIBS"
12554 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12555 gt_cv_func_dgettext_libc=no
12556 else
12557 if test "$gt_cv_func_dgettext_libc" = "yes" \
12558 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12559 gt_cv_func_dgettext_libintl=no
12560 fi
12561 fi
12562 fi
12563 fi
12565 if test "$gt_cv_func_dgettext_libc" = "yes" \
12566 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12567 gt_cv_have_gettext=yes
12568 fi
12570 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12571 INTLLIBS="-lintl $libintl_extra_libs"
12572 fi
12574 if test "$gt_cv_have_gettext" = "yes"; then
12576 cat >>confdefs.h <<\_ACEOF
12577 #define HAVE_GETTEXT 1
12578 _ACEOF
12580 # Extract the first word of "msgfmt", so it can be a program name with args.
12581 set dummy msgfmt; ac_word=$2
12582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12583 $as_echo_n "checking for $ac_word... " >&6; }
12584 if test "${ac_cv_path_MSGFMT+set}" = set; then
12585 $as_echo_n "(cached) " >&6
12586 else
12587 case "$MSGFMT" in
12588 /*)
12589 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12590 ;;
12591 *)
12592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12593 for ac_dir in $PATH; do
12594 test -z "$ac_dir" && ac_dir=.
12595 if test -f $ac_dir/$ac_word; then
12596 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12597 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12598 break
12599 fi
12600 fi
12601 done
12602 IFS="$ac_save_ifs"
12603 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12604 ;;
12605 esac
12606 fi
12607 MSGFMT="$ac_cv_path_MSGFMT"
12608 if test "$MSGFMT" != "no"; then
12609 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12610 $as_echo "$MSGFMT" >&6; }
12611 else
12612 { $as_echo "$as_me:$LINENO: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615 if test "$MSGFMT" != "no"; then
12616 glib_save_LIBS="$LIBS"
12617 LIBS="$LIBS $INTLLIBS"
12619 for ac_func in dcgettext
12620 do
12621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12623 $as_echo_n "checking for $ac_func... " >&6; }
12624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12625 $as_echo_n "(cached) " >&6
12626 else
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h. */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12635 #define $ac_func innocuous_$ac_func
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func (); below.
12639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12640 <limits.h> exists even on freestanding compilers. */
12642 #ifdef __STDC__
12643 # include <limits.h>
12644 #else
12645 # include <assert.h>
12646 #endif
12648 #undef $ac_func
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 char $ac_func ();
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined __stub_$ac_func || defined __stub___$ac_func
12661 choke me
12662 #endif
12664 int
12665 main ()
12666 {
12667 return $ac_func ();
12668 ;
12669 return 0;
12670 }
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_link") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext && {
12690 test "$cross_compiling" = yes ||
12691 $as_test_x conftest$ac_exeext
12692 }; then
12693 eval "$as_ac_var=yes"
12694 else
12695 $as_echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 eval "$as_ac_var=no"
12699 fi
12701 rm -rf conftest.dSYM
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12704 fi
12705 ac_res=`eval 'as_val=${'$as_ac_var'}
12706 $as_echo "$as_val"'`
12707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12708 $as_echo "$ac_res" >&6; }
12709 as_val=`eval 'as_val=${'$as_ac_var'}
12710 $as_echo "$as_val"'`
12711 if test "x$as_val" = x""yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714 _ACEOF
12716 fi
12717 done
12719 MSGFMT_OPTS=
12720 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12721 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12722 cat >conftest.foo <<_ACEOF
12724 msgid ""
12725 msgstr ""
12726 "Content-Type: text/plain; charset=UTF-8\n"
12727 "Project-Id-Version: test 1.0\n"
12728 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12729 "Last-Translator: test <foo@bar.xx>\n"
12730 "Language-Team: C <LL@li.org>\n"
12731 "MIME-Version: 1.0\n"
12732 "Content-Transfer-Encoding: 8bit\n"
12734 _ACEOF
12735 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12736 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12737 ac_status=$?
12738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; then
12740 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12741 $as_echo "yes" >&6; }
12742 else { $as_echo "$as_me:$LINENO: result: no" >&5
12743 $as_echo "no" >&6; }
12744 echo "$as_me: failed input was:" >&5
12745 sed 's/^/| /' conftest.foo >&5
12746 fi
12748 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12749 set dummy gmsgfmt; ac_word=$2
12750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12753 $as_echo_n "(cached) " >&6
12754 else
12755 case $GMSGFMT in
12756 [\\/]* | ?:[\\/]*)
12757 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12758 ;;
12759 *)
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12762 do
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12770 fi
12771 done
12772 done
12773 IFS=$as_save_IFS
12775 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12776 ;;
12777 esac
12778 fi
12779 GMSGFMT=$ac_cv_path_GMSGFMT
12780 if test -n "$GMSGFMT"; then
12781 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12782 $as_echo "$GMSGFMT" >&6; }
12783 else
12784 { $as_echo "$as_me:$LINENO: result: no" >&5
12785 $as_echo "no" >&6; }
12786 fi
12789 # Extract the first word of "xgettext", so it can be a program name with args.
12790 set dummy xgettext; ac_word=$2
12791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12794 $as_echo_n "(cached) " >&6
12795 else
12796 case "$XGETTEXT" in
12797 /*)
12798 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12799 ;;
12800 *)
12801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12802 for ac_dir in $PATH; do
12803 test -z "$ac_dir" && ac_dir=.
12804 if test -f $ac_dir/$ac_word; then
12805 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12806 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12807 break
12808 fi
12809 fi
12810 done
12811 IFS="$ac_save_ifs"
12812 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12813 ;;
12814 esac
12815 fi
12816 XGETTEXT="$ac_cv_path_XGETTEXT"
12817 if test "$XGETTEXT" != ":"; then
12818 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12819 $as_echo "$XGETTEXT" >&6; }
12820 else
12821 { $as_echo "$as_me:$LINENO: result: no" >&5
12822 $as_echo "no" >&6; }
12823 fi
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12832 int
12833 main ()
12834 {
12835 extern int _nl_msg_cat_cntr;
12836 return _nl_msg_cat_cntr
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (ac_try="$ac_link"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846 esac
12847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12848 $as_echo "$ac_try_echo") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest$ac_exeext && {
12859 test "$cross_compiling" = yes ||
12860 $as_test_x conftest$ac_exeext
12861 }; then
12862 CATOBJEXT=.gmo
12863 DATADIRNAME=share
12864 else
12865 $as_echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 case $host in
12869 *-*-solaris*)
12870 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12871 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12872 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12873 $as_echo_n "(cached) " >&6
12874 else
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12883 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12885 /* System header to define __stub macros and hopefully few prototypes,
12886 which can conflict with char bind_textdomain_codeset (); below.
12887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888 <limits.h> exists even on freestanding compilers. */
12890 #ifdef __STDC__
12891 # include <limits.h>
12892 #else
12893 # include <assert.h>
12894 #endif
12896 #undef bind_textdomain_codeset
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char bind_textdomain_codeset ();
12905 /* The GNU C library defines this for functions which it implements
12906 to always fail with ENOSYS. Some functions are actually named
12907 something starting with __ and the normal name is an alias. */
12908 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12909 choke me
12910 #endif
12912 int
12913 main ()
12914 {
12915 return bind_textdomain_codeset ();
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925 esac
12926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927 $as_echo "$ac_try_echo") >&5
12928 (eval "$ac_link") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest$ac_exeext
12940 }; then
12941 ac_cv_func_bind_textdomain_codeset=yes
12942 else
12943 $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_cv_func_bind_textdomain_codeset=no
12947 fi
12949 rm -rf conftest.dSYM
12950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12951 conftest$ac_exeext conftest.$ac_ext
12952 fi
12953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12954 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12955 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
12956 CATOBJEXT=.gmo
12957 DATADIRNAME=share
12958 else
12959 CATOBJEXT=.mo
12960 DATADIRNAME=lib
12961 fi
12963 ;;
12964 *)
12965 CATOBJEXT=.mo
12966 DATADIRNAME=lib
12967 ;;
12968 esac
12969 fi
12971 rm -rf conftest.dSYM
12972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12973 conftest$ac_exeext conftest.$ac_ext
12974 LIBS="$glib_save_LIBS"
12975 INSTOBJEXT=.mo
12976 else
12977 gt_cv_have_gettext=no
12978 fi
12979 fi
12981 fi
12985 if test "$gt_cv_have_gettext" = "yes" ; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define ENABLE_NLS 1
12989 _ACEOF
12991 fi
12993 if test "$XGETTEXT" != ":"; then
12994 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12995 : ;
12996 else
12997 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12998 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12999 XGETTEXT=":"
13000 fi
13001 fi
13003 # We need to process the po/ directory.
13004 POSUB=po
13006 ac_config_commands="$ac_config_commands default-1"
13009 for lang in $ALL_LINGUAS; do
13010 GMOFILES="$GMOFILES $lang.gmo"
13011 POFILES="$POFILES $lang.po"
13012 done
13026 if test "$gt_cv_have_gettext" = "yes"; then
13027 if test "x$ALL_LINGUAS" = "x"; then
13028 LINGUAS=
13029 else
13030 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13031 $as_echo_n "checking for catalogs to be installed... " >&6; }
13032 NEW_LINGUAS=
13033 for presentlang in $ALL_LINGUAS; do
13034 useit=no
13035 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13036 desiredlanguages="$LINGUAS"
13037 else
13038 desiredlanguages="$ALL_LINGUAS"
13039 fi
13040 for desiredlang in $desiredlanguages; do
13041 # Use the presentlang catalog if desiredlang is
13042 # a. equal to presentlang, or
13043 # b. a variant of presentlang (because in this case,
13044 # presentlang can be used as a fallback for messages
13045 # which are not translated in the desiredlang catalog).
13046 case "$desiredlang" in
13047 "$presentlang"*) useit=yes;;
13048 esac
13049 done
13050 if test $useit = yes; then
13051 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13052 fi
13053 done
13054 LINGUAS=$NEW_LINGUAS
13055 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13056 $as_echo "$LINGUAS" >&6; }
13057 fi
13059 if test -n "$LINGUAS"; then
13060 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13061 fi
13062 fi
13064 MKINSTALLDIRS=
13065 if test -n "$ac_aux_dir"; then
13066 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13067 fi
13068 if test -z "$MKINSTALLDIRS"; then
13069 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13070 fi
13073 test -d po || mkdir po
13074 if test "x$srcdir" != "x."; then
13075 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13076 posrcprefix="$srcdir/"
13077 else
13078 posrcprefix="../$srcdir/"
13079 fi
13080 else
13081 posrcprefix="../"
13082 fi
13083 rm -f po/POTFILES
13084 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13085 < $srcdir/po/POTFILES.in > po/POTFILES
13088 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13090 cat >confcache <<\_ACEOF
13091 # This file is a shell script that caches the results of configure
13092 # tests run on this system so they can be shared between configure
13093 # scripts and configure runs, see configure's option --config-cache.
13094 # It is not useful on other systems. If it contains results you don't
13095 # want to keep, you may remove or edit it.
13096 #
13097 # config.status only pays attention to the cache file if you give it
13098 # the --recheck option to rerun configure.
13099 #
13100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13102 # following values.
13104 _ACEOF
13106 # The following way of writing the cache mishandles newlines in values,
13107 # but we know of no workaround that is simple, portable, and efficient.
13108 # So, we kill variables containing newlines.
13109 # Ultrix sh set writes to stderr and can't be redirected directly,
13110 # and sets the high bit in the cache file unless we assign to the vars.
13111 (
13112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13113 eval ac_val=\$$ac_var
13114 case $ac_val in #(
13115 *${as_nl}*)
13116 case $ac_var in #(
13117 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13119 esac
13120 case $ac_var in #(
13121 _ | IFS | as_nl) ;; #(
13122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13123 *) $as_unset $ac_var ;;
13124 esac ;;
13125 esac
13126 done
13128 (set) 2>&1 |
13129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13130 *${as_nl}ac_space=\ *)
13131 # `set' does not quote correctly, so add quotes (double-quote
13132 # substitution turns \\\\ into \\, and sed turns \\ into \).
13133 sed -n \
13134 "s/'/'\\\\''/g;
13135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13136 ;; #(
13137 *)
13138 # `set' quotes correctly as required by POSIX, so do not add quotes.
13139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13140 ;;
13141 esac |
13142 sort
13143 ) |
13144 sed '
13145 /^ac_cv_env_/b end
13146 t clear
13147 :clear
13148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13149 t end
13150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13151 :end' >>confcache
13152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13153 if test -w "$cache_file"; then
13154 test "x$cache_file" != "x/dev/null" &&
13155 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13156 $as_echo "$as_me: updating cache $cache_file" >&6;}
13157 cat confcache >$cache_file
13158 else
13159 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13160 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13161 fi
13162 fi
13163 rm -f confcache
13165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13166 # Let make expand exec_prefix.
13167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13169 DEFS=-DHAVE_CONFIG_H
13171 ac_libobjs=
13172 ac_ltlibobjs=
13173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13174 # 1. Remove the extension, and $U if already installed.
13175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13178 # will be set to the directory where LIBOBJS objects are built.
13179 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13180 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13181 done
13182 LIBOBJS=$ac_libobjs
13184 LTLIBOBJS=$ac_ltlibobjs
13187 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13188 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13189 Usually this means the macro was only invoked conditionally." >&5
13190 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13191 Usually this means the macro was only invoked conditionally." >&2;}
13192 { (exit 1); exit 1; }; }
13193 fi
13194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13195 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13196 Usually this means the macro was only invoked conditionally." >&5
13197 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13198 Usually this means the macro was only invoked conditionally." >&2;}
13199 { (exit 1); exit 1; }; }
13200 fi
13201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13202 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13203 Usually this means the macro was only invoked conditionally." >&5
13204 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13205 Usually this means the macro was only invoked conditionally." >&2;}
13206 { (exit 1); exit 1; }; }
13207 fi
13208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13209 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13210 Usually this means the macro was only invoked conditionally." >&5
13211 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13212 Usually this means the macro was only invoked conditionally." >&2;}
13213 { (exit 1); exit 1; }; }
13214 fi
13215 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13216 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13217 Usually this means the macro was only invoked conditionally." >&5
13218 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13219 Usually this means the macro was only invoked conditionally." >&2;}
13220 { (exit 1); exit 1; }; }
13221 fi
13222 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13223 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13224 Usually this means the macro was only invoked conditionally." >&5
13225 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13226 Usually this means the macro was only invoked conditionally." >&2;}
13227 { (exit 1); exit 1; }; }
13228 fi
13229 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13230 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13231 Usually this means the macro was only invoked conditionally." >&5
13232 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13233 Usually this means the macro was only invoked conditionally." >&2;}
13234 { (exit 1); exit 1; }; }
13235 fi
13236 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13237 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13238 Usually this means the macro was only invoked conditionally." >&5
13239 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13240 Usually this means the macro was only invoked conditionally." >&2;}
13241 { (exit 1); exit 1; }; }
13242 fi
13243 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13244 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13245 Usually this means the macro was only invoked conditionally." >&5
13246 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13247 Usually this means the macro was only invoked conditionally." >&2;}
13248 { (exit 1); exit 1; }; }
13249 fi
13250 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13251 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13252 Usually this means the macro was only invoked conditionally." >&5
13253 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13254 Usually this means the macro was only invoked conditionally." >&2;}
13255 { (exit 1); exit 1; }; }
13256 fi
13257 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13258 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13259 Usually this means the macro was only invoked conditionally." >&5
13260 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13261 Usually this means the macro was only invoked conditionally." >&2;}
13262 { (exit 1); exit 1; }; }
13263 fi
13264 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13265 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13266 Usually this means the macro was only invoked conditionally." >&5
13267 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13268 Usually this means the macro was only invoked conditionally." >&2;}
13269 { (exit 1); exit 1; }; }
13270 fi
13271 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13272 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13273 Usually this means the macro was only invoked conditionally." >&5
13274 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13275 Usually this means the macro was only invoked conditionally." >&2;}
13276 { (exit 1); exit 1; }; }
13277 fi
13278 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13279 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13280 Usually this means the macro was only invoked conditionally." >&5
13281 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13282 Usually this means the macro was only invoked conditionally." >&2;}
13283 { (exit 1); exit 1; }; }
13284 fi
13285 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13286 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13287 Usually this means the macro was only invoked conditionally." >&5
13288 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13289 Usually this means the macro was only invoked conditionally." >&2;}
13290 { (exit 1); exit 1; }; }
13291 fi
13292 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13293 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13294 Usually this means the macro was only invoked conditionally." >&5
13295 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13296 Usually this means the macro was only invoked conditionally." >&2;}
13297 { (exit 1); exit 1; }; }
13298 fi
13299 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13300 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13301 Usually this means the macro was only invoked conditionally." >&5
13302 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13303 Usually this means the macro was only invoked conditionally." >&2;}
13304 { (exit 1); exit 1; }; }
13305 fi
13306 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13307 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13308 Usually this means the macro was only invoked conditionally." >&5
13309 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13310 Usually this means the macro was only invoked conditionally." >&2;}
13311 { (exit 1); exit 1; }; }
13312 fi
13313 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13314 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13315 Usually this means the macro was only invoked conditionally." >&5
13316 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13317 Usually this means the macro was only invoked conditionally." >&2;}
13318 { (exit 1); exit 1; }; }
13319 fi
13320 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13321 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13322 Usually this means the macro was only invoked conditionally." >&5
13323 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13324 Usually this means the macro was only invoked conditionally." >&2;}
13325 { (exit 1); exit 1; }; }
13326 fi
13327 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13328 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13329 Usually this means the macro was only invoked conditionally." >&5
13330 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13331 Usually this means the macro was only invoked conditionally." >&2;}
13332 { (exit 1); exit 1; }; }
13333 fi
13334 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13335 { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13336 Usually this means the macro was only invoked conditionally." >&5
13337 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13338 Usually this means the macro was only invoked conditionally." >&2;}
13339 { (exit 1); exit 1; }; }
13340 fi
13341 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13342 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13343 Usually this means the macro was only invoked conditionally." >&5
13344 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13345 Usually this means the macro was only invoked conditionally." >&2;}
13346 { (exit 1); exit 1; }; }
13347 fi
13348 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13349 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13350 Usually this means the macro was only invoked conditionally." >&5
13351 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13352 Usually this means the macro was only invoked conditionally." >&2;}
13353 { (exit 1); exit 1; }; }
13354 fi
13356 : ${CONFIG_STATUS=./config.status}
13357 ac_write_fail=0
13358 ac_clean_files_save=$ac_clean_files
13359 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13360 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13361 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13362 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13363 #! $SHELL
13364 # Generated by $as_me.
13365 # Run this file to recreate the current configuration.
13366 # Compiler output produced by configure, useful for debugging
13367 # configure, is in config.log if it exists.
13369 debug=false
13370 ac_cs_recheck=false
13371 ac_cs_silent=false
13372 SHELL=\${CONFIG_SHELL-$SHELL}
13373 _ACEOF
13375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13376 ## --------------------- ##
13377 ## M4sh Initialization. ##
13378 ## --------------------- ##
13380 # Be more Bourne compatible
13381 DUALCASE=1; export DUALCASE # for MKS sh
13382 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13383 emulate sh
13384 NULLCMD=:
13385 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13386 # is contrary to our usage. Disable this feature.
13387 alias -g '${1+"$@"}'='"$@"'
13388 setopt NO_GLOB_SUBST
13389 else
13390 case `(set -o) 2>/dev/null` in
13391 *posix*) set -o posix ;;
13392 esac
13394 fi
13399 # PATH needs CR
13400 # Avoid depending upon Character Ranges.
13401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13404 as_cr_digits='0123456789'
13405 as_cr_alnum=$as_cr_Letters$as_cr_digits
13407 as_nl='
13408 '
13409 export as_nl
13410 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13411 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13413 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13414 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13415 as_echo='printf %s\n'
13416 as_echo_n='printf %s'
13417 else
13418 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13419 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13420 as_echo_n='/usr/ucb/echo -n'
13421 else
13422 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13423 as_echo_n_body='eval
13424 arg=$1;
13425 case $arg in
13426 *"$as_nl"*)
13427 expr "X$arg" : "X\\(.*\\)$as_nl";
13428 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13429 esac;
13430 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13431 '
13432 export as_echo_n_body
13433 as_echo_n='sh -c $as_echo_n_body as_echo'
13434 fi
13435 export as_echo_body
13436 as_echo='sh -c $as_echo_body as_echo'
13437 fi
13439 # The user is always right.
13440 if test "${PATH_SEPARATOR+set}" != set; then
13441 PATH_SEPARATOR=:
13442 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13443 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13444 PATH_SEPARATOR=';'
13445 }
13446 fi
13448 # Support unset when possible.
13449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13450 as_unset=unset
13451 else
13452 as_unset=false
13453 fi
13456 # IFS
13457 # We need space, tab and new line, in precisely that order. Quoting is
13458 # there to prevent editors from complaining about space-tab.
13459 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13460 # splitting by setting IFS to empty value.)
13461 IFS=" "" $as_nl"
13463 # Find who we are. Look in the path if we contain no directory separator.
13464 case $0 in
13465 *[\\/]* ) as_myself=$0 ;;
13466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13468 do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
13471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13472 done
13473 IFS=$as_save_IFS
13475 ;;
13476 esac
13477 # We did not find ourselves, most probably we were run as `sh COMMAND'
13478 # in which case we are not to be found in the path.
13479 if test "x$as_myself" = x; then
13480 as_myself=$0
13481 fi
13482 if test ! -f "$as_myself"; then
13483 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13484 { (exit 1); exit 1; }
13485 fi
13487 # Work around bugs in pre-3.0 UWIN ksh.
13488 for as_var in ENV MAIL MAILPATH
13489 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13490 done
13491 PS1='$ '
13492 PS2='> '
13493 PS4='+ '
13495 # NLS nuisances.
13496 LC_ALL=C
13497 export LC_ALL
13498 LANGUAGE=C
13499 export LANGUAGE
13501 # Required to use basename.
13502 if expr a : '\(a\)' >/dev/null 2>&1 &&
13503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13504 as_expr=expr
13505 else
13506 as_expr=false
13507 fi
13509 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13510 as_basename=basename
13511 else
13512 as_basename=false
13513 fi
13516 # Name of the executable.
13517 as_me=`$as_basename -- "$0" ||
13518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13519 X"$0" : 'X\(//\)$' \| \
13520 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13521 $as_echo X/"$0" |
13522 sed '/^.*\/\([^/][^/]*\)\/*$/{
13523 s//\1/
13524 q
13525 }
13526 /^X\/\(\/\/\)$/{
13527 s//\1/
13528 q
13529 }
13530 /^X\/\(\/\).*/{
13531 s//\1/
13532 q
13533 }
13534 s/.*/./; q'`
13536 # CDPATH.
13537 $as_unset CDPATH
13541 as_lineno_1=$LINENO
13542 as_lineno_2=$LINENO
13543 test "x$as_lineno_1" != "x$as_lineno_2" &&
13544 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13546 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13547 # uniformly replaced by the line number. The first 'sed' inserts a
13548 # line-number line after each line using $LINENO; the second 'sed'
13549 # does the real work. The second script uses 'N' to pair each
13550 # line-number line with the line containing $LINENO, and appends
13551 # trailing '-' during substitution so that $LINENO is not a special
13552 # case at line end.
13553 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13554 # scripts with optimization help from Paolo Bonzini. Blame Lee
13555 # E. McMahon (1931-1989) for sed's syntax. :-)
13556 sed -n '
13557 p
13558 /[$]LINENO/=
13559 ' <$as_myself |
13560 sed '
13561 s/[$]LINENO.*/&-/
13562 t lineno
13563 b
13564 :lineno
13565 N
13566 :loop
13567 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13568 t loop
13569 s/-\n.*//
13570 ' >$as_me.lineno &&
13571 chmod +x "$as_me.lineno" ||
13572 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13573 { (exit 1); exit 1; }; }
13575 # Don't try to exec as it changes $[0], causing all sort of problems
13576 # (the dirname of $[0] is not the place where we might find the
13577 # original and so on. Autoconf is especially sensitive to this).
13578 . "./$as_me.lineno"
13579 # Exit status is that of the last command.
13580 exit
13581 }
13584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13585 as_dirname=dirname
13586 else
13587 as_dirname=false
13588 fi
13590 ECHO_C= ECHO_N= ECHO_T=
13591 case `echo -n x` in
13592 -n*)
13593 case `echo 'x\c'` in
13594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13595 *) ECHO_C='\c';;
13596 esac;;
13597 *)
13598 ECHO_N='-n';;
13599 esac
13600 if expr a : '\(a\)' >/dev/null 2>&1 &&
13601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13602 as_expr=expr
13603 else
13604 as_expr=false
13605 fi
13607 rm -f conf$$ conf$$.exe conf$$.file
13608 if test -d conf$$.dir; then
13609 rm -f conf$$.dir/conf$$.file
13610 else
13611 rm -f conf$$.dir
13612 mkdir conf$$.dir 2>/dev/null
13613 fi
13614 if (echo >conf$$.file) 2>/dev/null; then
13615 if ln -s conf$$.file conf$$ 2>/dev/null; then
13616 as_ln_s='ln -s'
13617 # ... but there are two gotchas:
13618 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13619 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13620 # In both cases, we have to default to `cp -p'.
13621 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13622 as_ln_s='cp -p'
13623 elif ln conf$$.file conf$$ 2>/dev/null; then
13624 as_ln_s=ln
13625 else
13626 as_ln_s='cp -p'
13627 fi
13628 else
13629 as_ln_s='cp -p'
13630 fi
13631 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13632 rmdir conf$$.dir 2>/dev/null
13634 if mkdir -p . 2>/dev/null; then
13635 as_mkdir_p=:
13636 else
13637 test -d ./-p && rmdir ./-p
13638 as_mkdir_p=false
13639 fi
13641 if test -x / >/dev/null 2>&1; then
13642 as_test_x='test -x'
13643 else
13644 if ls -dL / >/dev/null 2>&1; then
13645 as_ls_L_option=L
13646 else
13647 as_ls_L_option=
13648 fi
13649 as_test_x='
13650 eval sh -c '\''
13651 if test -d "$1"; then
13652 test -d "$1/.";
13653 else
13654 case $1 in
13655 -*)set "./$1";;
13656 esac;
13657 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13658 ???[sx]*):;;*)false;;esac;fi
13659 '\'' sh
13660 '
13661 fi
13662 as_executable_p=$as_test_x
13664 # Sed expression to map a string onto a valid CPP name.
13665 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13667 # Sed expression to map a string onto a valid variable name.
13668 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13671 exec 6>&1
13673 # Save the log message, to keep $[0] and so on meaningful, and to
13674 # report actual input values of CONFIG_FILES etc. instead of their
13675 # values after options handling.
13676 ac_log="
13677 This file was extended by $as_me, which was
13678 generated by GNU Autoconf 2.63. Invocation command line was
13680 CONFIG_FILES = $CONFIG_FILES
13681 CONFIG_HEADERS = $CONFIG_HEADERS
13682 CONFIG_LINKS = $CONFIG_LINKS
13683 CONFIG_COMMANDS = $CONFIG_COMMANDS
13684 $ $0 $@
13686 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13687 "
13689 _ACEOF
13691 case $ac_config_files in *"
13692 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13693 esac
13695 case $ac_config_headers in *"
13696 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13697 esac
13700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13701 # Files that config.status was made for.
13702 config_files="$ac_config_files"
13703 config_headers="$ac_config_headers"
13704 config_commands="$ac_config_commands"
13706 _ACEOF
13708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709 ac_cs_usage="\
13710 \`$as_me' instantiates files from templates according to the
13711 current configuration.
13713 Usage: $0 [OPTION]... [FILE]...
13715 -h, --help print this help, then exit
13716 -V, --version print version number and configuration settings, then exit
13717 -q, --quiet, --silent
13718 do not print progress messages
13719 -d, --debug don't remove temporary files
13720 --recheck update $as_me by reconfiguring in the same conditions
13721 --file=FILE[:TEMPLATE]
13722 instantiate the configuration file FILE
13723 --header=FILE[:TEMPLATE]
13724 instantiate the configuration header FILE
13726 Configuration files:
13727 $config_files
13729 Configuration headers:
13730 $config_headers
13732 Configuration commands:
13733 $config_commands
13735 Report bugs to <bug-autoconf@gnu.org>."
13737 _ACEOF
13738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13739 ac_cs_version="\\
13740 config.status
13741 configured by $0, generated by GNU Autoconf 2.63,
13742 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13744 Copyright (C) 2008 Free Software Foundation, Inc.
13745 This config.status script is free software; the Free Software Foundation
13746 gives unlimited permission to copy, distribute and modify it."
13748 ac_pwd='$ac_pwd'
13749 srcdir='$srcdir'
13750 INSTALL='$INSTALL'
13751 AWK='$AWK'
13752 test -n "\$AWK" || AWK=awk
13753 _ACEOF
13755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13756 # The default lists apply if the user does not specify any file.
13757 ac_need_defaults=:
13758 while test $# != 0
13759 do
13760 case $1 in
13761 --*=*)
13762 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13763 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13764 ac_shift=:
13765 ;;
13766 *)
13767 ac_option=$1
13768 ac_optarg=$2
13769 ac_shift=shift
13770 ;;
13771 esac
13773 case $ac_option in
13774 # Handling of the options.
13775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13776 ac_cs_recheck=: ;;
13777 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13778 $as_echo "$ac_cs_version"; exit ;;
13779 --debug | --debu | --deb | --de | --d | -d )
13780 debug=: ;;
13781 --file | --fil | --fi | --f )
13782 $ac_shift
13783 case $ac_optarg in
13784 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13785 esac
13786 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13787 ac_need_defaults=false;;
13788 --header | --heade | --head | --hea )
13789 $ac_shift
13790 case $ac_optarg in
13791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13792 esac
13793 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13794 ac_need_defaults=false;;
13795 --he | --h)
13796 # Conflict between --help and --header
13797 { $as_echo "$as_me: error: ambiguous option: $1
13798 Try \`$0 --help' for more information." >&2
13799 { (exit 1); exit 1; }; };;
13800 --help | --hel | -h )
13801 $as_echo "$ac_cs_usage"; exit ;;
13802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13804 ac_cs_silent=: ;;
13806 # This is an error.
13807 -*) { $as_echo "$as_me: error: unrecognized option: $1
13808 Try \`$0 --help' for more information." >&2
13809 { (exit 1); exit 1; }; } ;;
13811 *) ac_config_targets="$ac_config_targets $1"
13812 ac_need_defaults=false ;;
13814 esac
13815 shift
13816 done
13818 ac_configure_extra_args=
13820 if $ac_cs_silent; then
13821 exec 6>/dev/null
13822 ac_configure_extra_args="$ac_configure_extra_args --silent"
13823 fi
13825 _ACEOF
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 if \$ac_cs_recheck; then
13828 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13829 shift
13830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13831 CONFIG_SHELL='$SHELL'
13832 export CONFIG_SHELL
13833 exec "\$@"
13834 fi
13836 _ACEOF
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838 exec 5>>config.log
13839 {
13840 echo
13841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13842 ## Running $as_me. ##
13843 _ASBOX
13844 $as_echo "$ac_log"
13845 } >&5
13847 _ACEOF
13848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13849 #
13850 # INIT-COMMANDS
13851 #
13852 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13855 _ACEOF
13857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13859 # Handling of arguments.
13860 for ac_config_target in $ac_config_targets
13861 do
13862 case $ac_config_target in
13863 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13864 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13865 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13867 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13868 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13869 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13870 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13872 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13873 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13874 { (exit 1); exit 1; }; };;
13875 esac
13876 done
13879 # If the user did not use the arguments to specify the items to instantiate,
13880 # then the envvar interface is used. Set only those that are not.
13881 # We use the long form for the default assignment because of an extremely
13882 # bizarre bug on SunOS 4.1.3.
13883 if $ac_need_defaults; then
13884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13887 fi
13889 # Have a temporary directory for convenience. Make it in the build tree
13890 # simply because there is no reason against having it here, and in addition,
13891 # creating and moving files from /tmp can sometimes cause problems.
13892 # Hook for its removal unless debugging.
13893 # Note that there is a small window in which the directory will not be cleaned:
13894 # after its creation but before its name has been assigned to `$tmp'.
13895 $debug ||
13896 {
13897 tmp=
13898 trap 'exit_status=$?
13899 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13900 ' 0
13901 trap '{ (exit 1); exit 1; }' 1 2 13 15
13902 }
13903 # Create a (secure) tmp directory for tmp files.
13905 {
13906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13907 test -n "$tmp" && test -d "$tmp"
13908 } ||
13909 {
13910 tmp=./conf$$-$RANDOM
13911 (umask 077 && mkdir "$tmp")
13912 } ||
13913 {
13914 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13915 { (exit 1); exit 1; }
13916 }
13918 # Set up the scripts for CONFIG_FILES section.
13919 # No need to generate them if there are no CONFIG_FILES.
13920 # This happens for instance with `./config.status config.h'.
13921 if test -n "$CONFIG_FILES"; then
13924 ac_cr='
13925 '
13926 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13927 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13928 ac_cs_awk_cr='\\r'
13929 else
13930 ac_cs_awk_cr=$ac_cr
13931 fi
13933 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13934 _ACEOF
13937 {
13938 echo "cat >conf$$subs.awk <<_ACEOF" &&
13939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13940 echo "_ACEOF"
13941 } >conf$$subs.sh ||
13942 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13943 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13944 { (exit 1); exit 1; }; }
13945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13946 ac_delim='%!_!# '
13947 for ac_last_try in false false false false false :; do
13948 . ./conf$$subs.sh ||
13949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13950 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13951 { (exit 1); exit 1; }; }
13953 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13954 if test $ac_delim_n = $ac_delim_num; then
13955 break
13956 elif $ac_last_try; then
13957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13958 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13959 { (exit 1); exit 1; }; }
13960 else
13961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13962 fi
13963 done
13964 rm -f conf$$subs.sh
13966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13967 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13968 _ACEOF
13969 sed -n '
13970 h
13971 s/^/S["/; s/!.*/"]=/
13972 p
13973 g
13974 s/^[^!]*!//
13975 :repl
13976 t repl
13977 s/'"$ac_delim"'$//
13978 t delim
13979 :nl
13980 h
13981 s/\(.\{148\}\).*/\1/
13982 t more1
13983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13984 p
13985 n
13986 b repl
13987 :more1
13988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13989 p
13990 g
13991 s/.\{148\}//
13992 t nl
13993 :delim
13994 h
13995 s/\(.\{148\}\).*/\1/
13996 t more2
13997 s/["\\]/\\&/g; s/^/"/; s/$/"/
13998 p
13999 b
14000 :more2
14001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14002 p
14003 g
14004 s/.\{148\}//
14005 t delim
14006 ' <conf$$subs.awk | sed '
14007 /^[^""]/{
14008 N
14009 s/\n//
14010 }
14011 ' >>$CONFIG_STATUS || ac_write_fail=1
14012 rm -f conf$$subs.awk
14013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14014 _ACAWK
14015 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14016 for (key in S) S_is_set[key] = 1
14017 FS = ""
14019 }
14020 {
14021 line = $ 0
14022 nfields = split(line, field, "@")
14023 substed = 0
14024 len = length(field[1])
14025 for (i = 2; i < nfields; i++) {
14026 key = field[i]
14027 keylen = length(key)
14028 if (S_is_set[key]) {
14029 value = S[key]
14030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14031 len += length(value) + length(field[++i])
14032 substed = 1
14033 } else
14034 len += 1 + keylen
14035 }
14037 print line
14038 }
14040 _ACAWK
14041 _ACEOF
14042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14045 else
14046 cat
14047 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14048 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14049 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14050 { (exit 1); exit 1; }; }
14051 _ACEOF
14053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14055 # trailing colons and then remove the whole line if VPATH becomes empty
14056 # (actually we leave an empty line to preserve line numbers).
14057 if test "x$srcdir" = x.; then
14058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14059 s/:*\$(srcdir):*/:/
14060 s/:*\${srcdir}:*/:/
14061 s/:*@srcdir@:*/:/
14062 s/^\([^=]*=[ ]*\):*/\1/
14063 s/:*$//
14064 s/^[^=]*=[ ]*$//
14065 }'
14066 fi
14068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14069 fi # test -n "$CONFIG_FILES"
14071 # Set up the scripts for CONFIG_HEADERS section.
14072 # No need to generate them if there are no CONFIG_HEADERS.
14073 # This happens for instance with `./config.status Makefile'.
14074 if test -n "$CONFIG_HEADERS"; then
14075 cat >"$tmp/defines.awk" <<\_ACAWK ||
14076 BEGIN {
14077 _ACEOF
14079 # Transform confdefs.h into an awk script `defines.awk', embedded as
14080 # here-document in config.status, that substitutes the proper values into
14081 # config.h.in to produce config.h.
14083 # Create a delimiter string that does not exist in confdefs.h, to ease
14084 # handling of long lines.
14085 ac_delim='%!_!# '
14086 for ac_last_try in false false :; do
14087 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14088 if test -z "$ac_t"; then
14089 break
14090 elif $ac_last_try; then
14091 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14092 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14093 { (exit 1); exit 1; }; }
14094 else
14095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14096 fi
14097 done
14099 # For the awk script, D is an array of macro values keyed by name,
14100 # likewise P contains macro parameters if any. Preserve backslash
14101 # newline sequences.
14103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14104 sed -n '
14105 s/.\{148\}/&'"$ac_delim"'/g
14106 t rset
14107 :rset
14108 s/^[ ]*#[ ]*define[ ][ ]*/ /
14109 t def
14110 d
14111 :def
14112 s/\\$//
14113 t bsnl
14114 s/["\\]/\\&/g
14115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14116 D["\1"]=" \3"/p
14117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14118 d
14119 :bsnl
14120 s/["\\]/\\&/g
14121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14122 D["\1"]=" \3\\\\\\n"\\/p
14123 t cont
14124 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14125 t cont
14126 d
14127 :cont
14128 n
14129 s/.\{148\}/&'"$ac_delim"'/g
14130 t clear
14131 :clear
14132 s/\\$//
14133 t bsnlc
14134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14135 d
14136 :bsnlc
14137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14138 b cont
14139 ' <confdefs.h | sed '
14140 s/'"$ac_delim"'/"\\\
14141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14144 for (key in D) D_is_set[key] = 1
14145 FS = ""
14146 }
14147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14148 line = \$ 0
14149 split(line, arg, " ")
14150 if (arg[1] == "#") {
14151 defundef = arg[2]
14152 mac1 = arg[3]
14153 } else {
14154 defundef = substr(arg[1], 2)
14155 mac1 = arg[2]
14156 }
14157 split(mac1, mac2, "(") #)
14158 macro = mac2[1]
14159 prefix = substr(line, 1, index(line, defundef) - 1)
14160 if (D_is_set[macro]) {
14161 # Preserve the white space surrounding the "#".
14162 print prefix "define", macro P[macro] D[macro]
14163 next
14164 } else {
14165 # Replace #undef with comments. This is necessary, for example,
14166 # in the case of _POSIX_SOURCE, which is predefined and required
14167 # on some systems where configure will not decide to define it.
14168 if (defundef == "undef") {
14169 print "/*", prefix defundef, macro, "*/"
14170 next
14171 }
14172 }
14173 }
14174 { print }
14175 _ACAWK
14176 _ACEOF
14177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14179 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14180 { (exit 1); exit 1; }; }
14181 fi # test -n "$CONFIG_HEADERS"
14184 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14185 shift
14186 for ac_tag
14187 do
14188 case $ac_tag in
14189 :[FHLC]) ac_mode=$ac_tag; continue;;
14190 esac
14191 case $ac_mode$ac_tag in
14192 :[FHL]*:*);;
14193 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14194 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14195 { (exit 1); exit 1; }; };;
14196 :[FH]-) ac_tag=-:-;;
14197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14198 esac
14199 ac_save_IFS=$IFS
14200 IFS=:
14201 set x $ac_tag
14202 IFS=$ac_save_IFS
14203 shift
14204 ac_file=$1
14205 shift
14207 case $ac_mode in
14208 :L) ac_source=$1;;
14209 :[FH])
14210 ac_file_inputs=
14211 for ac_f
14212 do
14213 case $ac_f in
14214 -) ac_f="$tmp/stdin";;
14215 *) # Look for the file first in the build tree, then in the source tree
14216 # (if the path is not absolute). The absolute path cannot be DOS-style,
14217 # because $ac_f cannot contain `:'.
14218 test -f "$ac_f" ||
14219 case $ac_f in
14220 [\\/$]*) false;;
14221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14222 esac ||
14223 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14224 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14225 { (exit 1); exit 1; }; };;
14226 esac
14227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14228 ac_file_inputs="$ac_file_inputs '$ac_f'"
14229 done
14231 # Let's still pretend it is `configure' which instantiates (i.e., don't
14232 # use $as_me), people would be surprised to read:
14233 # /* config.h. Generated by config.status. */
14234 configure_input='Generated from '`
14235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14236 `' by configure.'
14237 if test x"$ac_file" != x-; then
14238 configure_input="$ac_file. $configure_input"
14239 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14240 $as_echo "$as_me: creating $ac_file" >&6;}
14241 fi
14242 # Neutralize special characters interpreted by sed in replacement strings.
14243 case $configure_input in #(
14244 *\&* | *\|* | *\\* )
14245 ac_sed_conf_input=`$as_echo "$configure_input" |
14246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14247 *) ac_sed_conf_input=$configure_input;;
14248 esac
14250 case $ac_tag in
14251 *:-:* | *:-) cat >"$tmp/stdin" \
14252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14254 { (exit 1); exit 1; }; } ;;
14255 esac
14256 ;;
14257 esac
14259 ac_dir=`$as_dirname -- "$ac_file" ||
14260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14261 X"$ac_file" : 'X\(//\)[^/]' \| \
14262 X"$ac_file" : 'X\(//\)$' \| \
14263 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14264 $as_echo X"$ac_file" |
14265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14266 s//\1/
14267 q
14268 }
14269 /^X\(\/\/\)[^/].*/{
14270 s//\1/
14271 q
14272 }
14273 /^X\(\/\/\)$/{
14274 s//\1/
14275 q
14276 }
14277 /^X\(\/\).*/{
14278 s//\1/
14279 q
14280 }
14281 s/.*/./; q'`
14282 { as_dir="$ac_dir"
14283 case $as_dir in #(
14284 -*) as_dir=./$as_dir;;
14285 esac
14286 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14287 as_dirs=
14288 while :; do
14289 case $as_dir in #(
14290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14291 *) as_qdir=$as_dir;;
14292 esac
14293 as_dirs="'$as_qdir' $as_dirs"
14294 as_dir=`$as_dirname -- "$as_dir" ||
14295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14296 X"$as_dir" : 'X\(//\)[^/]' \| \
14297 X"$as_dir" : 'X\(//\)$' \| \
14298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14299 $as_echo X"$as_dir" |
14300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14301 s//\1/
14302 q
14303 }
14304 /^X\(\/\/\)[^/].*/{
14305 s//\1/
14306 q
14307 }
14308 /^X\(\/\/\)$/{
14309 s//\1/
14310 q
14311 }
14312 /^X\(\/\).*/{
14313 s//\1/
14314 q
14315 }
14316 s/.*/./; q'`
14317 test -d "$as_dir" && break
14318 done
14319 test -z "$as_dirs" || eval "mkdir $as_dirs"
14320 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14321 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14322 { (exit 1); exit 1; }; }; }
14323 ac_builddir=.
14325 case "$ac_dir" in
14326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14327 *)
14328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14329 # A ".." for each directory in $ac_dir_suffix.
14330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14331 case $ac_top_builddir_sub in
14332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14334 esac ;;
14335 esac
14336 ac_abs_top_builddir=$ac_pwd
14337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14338 # for backward compatibility:
14339 ac_top_builddir=$ac_top_build_prefix
14341 case $srcdir in
14342 .) # We are building in place.
14343 ac_srcdir=.
14344 ac_top_srcdir=$ac_top_builddir_sub
14345 ac_abs_top_srcdir=$ac_pwd ;;
14346 [\\/]* | ?:[\\/]* ) # Absolute name.
14347 ac_srcdir=$srcdir$ac_dir_suffix;
14348 ac_top_srcdir=$srcdir
14349 ac_abs_top_srcdir=$srcdir ;;
14350 *) # Relative name.
14351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14352 ac_top_srcdir=$ac_top_build_prefix$srcdir
14353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14354 esac
14355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14358 case $ac_mode in
14359 :F)
14360 #
14361 # CONFIG_FILE
14362 #
14364 case $INSTALL in
14365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14367 esac
14368 _ACEOF
14370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14371 # If the template does not know about datarootdir, expand it.
14372 # FIXME: This hack should be removed a few years after 2.60.
14373 ac_datarootdir_hack=; ac_datarootdir_seen=
14375 ac_sed_dataroot='
14376 /datarootdir/ {
14377 p
14378 q
14379 }
14380 /@datadir@/p
14381 /@docdir@/p
14382 /@infodir@/p
14383 /@localedir@/p
14384 /@mandir@/p
14385 '
14386 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14387 *datarootdir*) ac_datarootdir_seen=yes;;
14388 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14389 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14390 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14391 _ACEOF
14392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14393 ac_datarootdir_hack='
14394 s&@datadir@&$datadir&g
14395 s&@docdir@&$docdir&g
14396 s&@infodir@&$infodir&g
14397 s&@localedir@&$localedir&g
14398 s&@mandir@&$mandir&g
14399 s&\\\${datarootdir}&$datarootdir&g' ;;
14400 esac
14401 _ACEOF
14403 # Neutralize VPATH when `$srcdir' = `.'.
14404 # Shell code in configure.ac might set extrasub.
14405 # FIXME: do we really want to maintain this feature?
14406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407 ac_sed_extra="$ac_vpsub
14408 $extrasub
14409 _ACEOF
14410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14411 :t
14412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14413 s|@configure_input@|$ac_sed_conf_input|;t t
14414 s&@top_builddir@&$ac_top_builddir_sub&;t t
14415 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14416 s&@srcdir@&$ac_srcdir&;t t
14417 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14418 s&@top_srcdir@&$ac_top_srcdir&;t t
14419 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14420 s&@builddir@&$ac_builddir&;t t
14421 s&@abs_builddir@&$ac_abs_builddir&;t t
14422 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14423 s&@INSTALL@&$ac_INSTALL&;t t
14424 $ac_datarootdir_hack
14425 "
14426 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14427 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14428 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14429 { (exit 1); exit 1; }; }
14431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14432 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14434 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14435 which seems to be undefined. Please make sure it is defined." >&5
14436 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14437 which seems to be undefined. Please make sure it is defined." >&2;}
14439 rm -f "$tmp/stdin"
14440 case $ac_file in
14441 -) cat "$tmp/out" && rm -f "$tmp/out";;
14442 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14443 esac \
14444 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14445 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14446 { (exit 1); exit 1; }; }
14447 ;;
14448 :H)
14449 #
14450 # CONFIG_HEADER
14451 #
14452 if test x"$ac_file" != x-; then
14453 {
14454 $as_echo "/* $configure_input */" \
14455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14456 } >"$tmp/config.h" \
14457 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14458 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14459 { (exit 1); exit 1; }; }
14460 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14461 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14462 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14463 else
14464 rm -f "$ac_file"
14465 mv "$tmp/config.h" "$ac_file" \
14466 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14467 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14468 { (exit 1); exit 1; }; }
14469 fi
14470 else
14471 $as_echo "/* $configure_input */" \
14472 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14473 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14474 $as_echo "$as_me: error: could not create -" >&2;}
14475 { (exit 1); exit 1; }; }
14476 fi
14477 # Compute "$ac_file"'s index in $config_headers.
14478 _am_stamp_count=1
14479 for _am_header in $config_headers :; do
14480 case $_am_header in
14481 "$ac_file" | "$ac_file":* )
14482 break ;;
14483 * )
14484 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14485 esac
14486 done
14487 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14489 X"$ac_file" : 'X\(//\)[^/]' \| \
14490 X"$ac_file" : 'X\(//\)$' \| \
14491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14492 $as_echo X"$ac_file" |
14493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14494 s//\1/
14495 q
14496 }
14497 /^X\(\/\/\)[^/].*/{
14498 s//\1/
14499 q
14500 }
14501 /^X\(\/\/\)$/{
14502 s//\1/
14503 q
14504 }
14505 /^X\(\/\).*/{
14506 s//\1/
14507 q
14508 }
14509 s/.*/./; q'`/stamp-h$_am_stamp_count
14510 ;;
14512 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14513 $as_echo "$as_me: executing $ac_file commands" >&6;}
14514 ;;
14515 esac
14518 case $ac_file$ac_mode in
14519 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14520 # Strip MF so we end up with the name of the file.
14521 mf=`echo "$mf" | sed -e 's/:.*$//'`
14522 # Check whether this is an Automake generated Makefile or not.
14523 # We used to match only the files named `Makefile.in', but
14524 # some people rename them; so instead we look at the file content.
14525 # Grep'ing the first line is not enough: some people post-process
14526 # each Makefile.in and add a new line on top of each file to say so.
14527 # So let's grep whole file.
14528 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14529 dirpart=`$as_dirname -- "$mf" ||
14530 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14531 X"$mf" : 'X\(//\)[^/]' \| \
14532 X"$mf" : 'X\(//\)$' \| \
14533 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14534 $as_echo X"$mf" |
14535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14536 s//\1/
14537 q
14538 }
14539 /^X\(\/\/\)[^/].*/{
14540 s//\1/
14541 q
14542 }
14543 /^X\(\/\/\)$/{
14544 s//\1/
14545 q
14546 }
14547 /^X\(\/\).*/{
14548 s//\1/
14549 q
14550 }
14551 s/.*/./; q'`
14552 else
14553 continue
14554 fi
14555 # Extract the definition of DEPDIR, am__include, and am__quote
14556 # from the Makefile without running `make'.
14557 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14558 test -z "$DEPDIR" && continue
14559 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14560 test -z "am__include" && continue
14561 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14562 # When using ansi2knr, U may be empty or an underscore; expand it
14563 U=`sed -n 's/^U = //p' < "$mf"`
14564 # Find all dependency output files, they are included files with
14565 # $(DEPDIR) in their names. We invoke sed twice because it is the
14566 # simplest approach to changing $(DEPDIR) to its actual value in the
14567 # expansion.
14568 for file in `sed -n "
14569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14571 # Make sure the directory exists.
14572 test -f "$dirpart/$file" && continue
14573 fdir=`$as_dirname -- "$file" ||
14574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14575 X"$file" : 'X\(//\)[^/]' \| \
14576 X"$file" : 'X\(//\)$' \| \
14577 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14578 $as_echo X"$file" |
14579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14580 s//\1/
14581 q
14582 }
14583 /^X\(\/\/\)[^/].*/{
14584 s//\1/
14585 q
14586 }
14587 /^X\(\/\/\)$/{
14588 s//\1/
14589 q
14590 }
14591 /^X\(\/\).*/{
14592 s//\1/
14593 q
14594 }
14595 s/.*/./; q'`
14596 { as_dir=$dirpart/$fdir
14597 case $as_dir in #(
14598 -*) as_dir=./$as_dir;;
14599 esac
14600 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14601 as_dirs=
14602 while :; do
14603 case $as_dir in #(
14604 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14605 *) as_qdir=$as_dir;;
14606 esac
14607 as_dirs="'$as_qdir' $as_dirs"
14608 as_dir=`$as_dirname -- "$as_dir" ||
14609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14610 X"$as_dir" : 'X\(//\)[^/]' \| \
14611 X"$as_dir" : 'X\(//\)$' \| \
14612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14613 $as_echo X"$as_dir" |
14614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14615 s//\1/
14616 q
14617 }
14618 /^X\(\/\/\)[^/].*/{
14619 s//\1/
14620 q
14621 }
14622 /^X\(\/\/\)$/{
14623 s//\1/
14624 q
14625 }
14626 /^X\(\/\).*/{
14627 s//\1/
14628 q
14629 }
14630 s/.*/./; q'`
14631 test -d "$as_dir" && break
14632 done
14633 test -z "$as_dirs" || eval "mkdir $as_dirs"
14634 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14635 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14636 { (exit 1); exit 1; }; }; }
14637 # echo "creating $dirpart/$file"
14638 echo '# dummy' > "$dirpart/$file"
14639 done
14640 done
14641 ;;
14642 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14643 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14644 esac ;;
14646 esac
14647 done # for ac_tag
14650 { (exit 0); exit 0; }
14651 _ACEOF
14652 chmod +x $CONFIG_STATUS
14653 ac_clean_files=$ac_clean_files_save
14655 test $ac_write_fail = 0 ||
14656 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14657 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14658 { (exit 1); exit 1; }; }
14661 # configure is writing to config.log, and then calls config.status.
14662 # config.status does its own redirection, appending to config.log.
14663 # Unfortunately, on DOS this fails, as config.log is still kept open
14664 # by configure, so config.status won't be able to write to it; its
14665 # output is simply discarded. So we exec the FD to /dev/null,
14666 # effectively closing config.log, so it can be properly (re)opened and
14667 # appended to by config.status. When coming back to configure, we
14668 # need to make the FD available again.
14669 if test "$no_create" != yes; then
14670 ac_cs_success=:
14671 ac_config_status_args=
14672 test "$silent" = yes &&
14673 ac_config_status_args="$ac_config_status_args --quiet"
14674 exec 5>/dev/null
14675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14676 exec 5>>config.log
14677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14678 # would make configure fail if this is the last instruction.
14679 $ac_cs_success || { (exit 1); exit 1; }
14680 fi
14681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14682 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14684 fi
14686 { as_dir=test/sh4
14687 case $as_dir in #(
14688 -*) as_dir=./$as_dir;;
14689 esac
14690 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14691 as_dirs=
14692 while :; do
14693 case $as_dir in #(
14694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14695 *) as_qdir=$as_dir;;
14696 esac
14697 as_dirs="'$as_qdir' $as_dirs"
14698 as_dir=`$as_dirname -- "$as_dir" ||
14699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14700 X"$as_dir" : 'X\(//\)[^/]' \| \
14701 X"$as_dir" : 'X\(//\)$' \| \
14702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14703 $as_echo X"$as_dir" |
14704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14705 s//\1/
14706 q
14707 }
14708 /^X\(\/\/\)[^/].*/{
14709 s//\1/
14710 q
14711 }
14712 /^X\(\/\/\)$/{
14713 s//\1/
14714 q
14715 }
14716 /^X\(\/\).*/{
14717 s//\1/
14718 q
14719 }
14720 s/.*/./; q'`
14721 test -d "$as_dir" && break
14722 done
14723 test -z "$as_dirs" || eval "mkdir $as_dirs"
14724 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14725 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14726 { (exit 1); exit 1; }; }; }
14729 echo
14730 echo "Configuration complete"
14731 echo
14733 if test "x$HAVE_GTK" = x; then
14734 if test "x$HAVE_COCOA" = x; then
14735 echo " User interface: none"
14736 else
14737 echo " User interface: Cocoa"
14738 fi
14739 else
14740 echo " User interface: GTK"
14741 fi
14743 if test "x$SH4_TRANSLATOR" = "x"; then
14744 echo " SH4 translator: None (emulation core only)"
14745 else
14746 echo " SH4 translator: $SH4_TRANSLATOR"
14747 fi
14749 if test "x$VIDEO_DRIVERS" = "x"; then
14750 echo " Video drivers: none (no supported GL found)"
14751 else
14752 echo " Video drivers: $VIDEO_DRIVERS"
14753 fi
14755 if test "x$AUDIO_DRIVERS" = "x"; then
14756 echo " Audio drivers: none (no supported output devices found)"
14757 else
14758 echo " Audio drivers: $AUDIO_DRIVERS"
14759 fi
14761 if test "x$CDROM_DRIVER" = "x"; then
14762 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14763 else
14764 echo " CD-ROM driver: $CDROM_DRIVER"
14765 fi
14767 if test "x$HAVE_LIRC_CLIENT_H" = "x"; then
14768 echo " LIRC support: no"
14769 else
14770 echo " LIRC support: yes"
14771 fi
.