filename | configure |
changeset | 804:567a684e1e7a |
prev | 793:7877d947228d |
next | 866:86cd01c2b2d3 |
author | nkeynes |
date | Sun Sep 28 00:29:37 2008 +0000 (15 years ago) |
permissions | -rwxr-xr-x |
last change | Downgrade Bumpmap to warning (temporarily until implemented) and treat unrecognized textures as ARGB1555 |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
229 test \$exitcode = 0) || { (exit 1); exit 1; }
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
271 fi
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
292 fi
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
344 test $exitcode = 0) || { (exit 1); exit 1; }
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
355 fi
357 fi
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
379 fi
381 fi
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 CYGPATH_W
679 PACKAGE
680 VERSION
681 ACLOCAL
682 AUTOCONF
683 AUTOMAKE
684 AUTOHEADER
685 MAKEINFO
686 install_sh
687 STRIP
688 INSTALL_STRIP_PROGRAM
689 mkdir_p
690 AWK
691 SET_MAKE
692 am__leading_dot
693 AMTAR
694 am__tar
695 am__untar
696 MAINTAINER_MODE_TRUE
697 MAINTAINER_MODE_FALSE
698 MAINT
699 CC
700 CFLAGS
701 LDFLAGS
702 CPPFLAGS
703 ac_ct_CC
704 EXEEXT
705 OBJEXT
706 DEPDIR
707 am__include
708 am__quote
709 AMDEP_TRUE
710 AMDEP_FALSE
711 AMDEPBACKSLASH
712 CCDEPMODE
713 am__fastdepCC_TRUE
714 am__fastdepCC_FALSE
715 CCAS
716 CCASFLAGS
717 CPP
718 GREP
719 EGREP
720 build
721 build_cpu
722 build_vendor
723 build_os
724 host
725 host_cpu
726 host_vendor
727 host_os
728 POD2MAN
729 POD2HTML
730 GUI_COCOA_TRUE
731 GUI_COCOA_FALSE
732 PKG_CONFIG
733 LIBPNG_CFLAGS
734 LIBPNG_LIBS
735 GLIB_CFLAGS
736 GLIB_LIBS
737 GTK_CFLAGS
738 GTK_LIBS
739 GUI_GTK_TRUE
740 GUI_GTK_FALSE
741 VIDEO_OSMESA_TRUE
742 VIDEO_OSMESA_FALSE
743 VIDEO_GLX_TRUE
744 VIDEO_GLX_FALSE
745 VIDEO_NSGL_TRUE
746 VIDEO_NSGL_FALSE
747 BUILD_SH4X86_TRUE
748 BUILD_SH4X86_FALSE
749 AUDIO_OSX_TRUE
750 AUDIO_OSX_FALSE
751 PULSE_CFLAGS
752 PULSE_LIBS
753 AUDIO_PULSE_TRUE
754 AUDIO_PULSE_FALSE
755 ESOUND_CFLAGS
756 ESOUND_LIBS
757 AUDIO_ESOUND_TRUE
758 AUDIO_ESOUND_FALSE
759 ALSA_CFLAGS
760 ALSA_LIBS
761 AUDIO_ALSA_TRUE
762 AUDIO_ALSA_FALSE
763 CDROM_LINUX_TRUE
764 CDROM_LINUX_FALSE
765 CDROM_OSX_TRUE
766 CDROM_OSX_FALSE
767 CDROM_NONE_TRUE
768 CDROM_NONE_FALSE
769 JOY_LINUX_TRUE
770 JOY_LINUX_FALSE
771 SHCC
772 SHLD
773 SHOBJCOPY
774 ARMCC
775 ARMLD
776 ARMOBJCOPY
777 BUILD_SYSTEST_TRUE
778 BUILD_SYSTEST_FALSE
779 BUILD_ARMTEST_TRUE
780 BUILD_ARMTEST_FALSE
781 GETTEXT_PACKAGE
782 USE_NLS
783 MSGFMT
784 MSGFMT_OPTS
785 GMSGFMT
786 XGETTEXT
787 CATALOGS
788 CATOBJEXT
789 DATADIRNAME
790 GMOFILES
791 INSTOBJEXT
792 INTLLIBS
793 PO_IN_DATADIR_TRUE
794 PO_IN_DATADIR_FALSE
795 POFILES
796 POSUB
797 MKINSTALLDIRS
798 LIBOBJS
799 LTLIBOBJS'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_maintainer_mode
804 enable_dependency_tracking
805 enable_strict_warn
806 enable_translator
807 enable_trace
808 enable_watch
809 enable_sh4stats
810 with_osmesa
811 with_gtk
812 with_esd
813 with_pulse
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 CCAS
824 CCASFLAGS
825 CPP
826 PKG_CONFIG
827 LIBPNG_CFLAGS
828 LIBPNG_LIBS
829 GLIB_CFLAGS
830 GLIB_LIBS
831 GTK_CFLAGS
832 GTK_LIBS
833 PULSE_CFLAGS
834 PULSE_LIBS
835 ESOUND_CFLAGS
836 ESOUND_LIBS
837 ALSA_CFLAGS
838 ALSA_LIBS'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1230 ;;
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 ;;
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1256 fi
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354 else
1355 ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1459 if test -n "$ac_init_help"; then
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-maintainer-mode enable make rules and dependencies not useful
1468 (and sometimes confusing) to the casual installer
1469 --disable-dependency-tracking speeds up one-time build
1470 --enable-dependency-tracking do not reject slow dependency extractors
1471 --enable-strict-warn Enable strict compilation warnings
1472 --disable-translator Disable the SH4 translator (Enable by default)
1473 --enable-trace Enable generation of IO traces (warning: hurts
1474 performance)
1475 --enable-watch Enable watchpoints in the debugger (warning: hurts
1476 performance)
1477 --enable-sh4stats Enable statistics on executed sh4 instructions
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-osmesa Build with the osmesa GL library (software
1483 rendering)
1484 --with-gtk Build with the GTK UI. Default on X11 systems
1485 --with-esd Build with support for the ESounD audio system
1486 --with-pulse Build with support for the PulseAudio audio system
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 PKG_CONFIG path to pkg-config utility
1500 LIBPNG_CFLAGS
1501 C compiler flags for LIBPNG, overriding pkg-config
1502 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1503 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1504 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1505 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1506 GTK_LIBS linker flags for GTK, overriding pkg-config
1507 PULSE_CFLAGS
1508 C compiler flags for PULSE, overriding pkg-config
1509 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1510 ESOUND_CFLAGS
1511 C compiler flags for ESOUND, overriding pkg-config
1512 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1513 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1514 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.62
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.62. Invocation command line was
1598 $ $0 $@
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625 _ASUNAME
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 $as_echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1636 } >&5
1638 cat >&5 <<_ACEOF
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1645 _ACEOF
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659 for ac_arg
1660 do
1661 case $ac_arg in
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1665 continue ;;
1666 *\'*)
1667 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 esac
1669 case $ac_pass in
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 2)
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1675 else
1676 case $ac_arg in
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 esac
1684 ;;
1685 -* ) ac_must_keep_next=true ;;
1686 esac
1687 fi
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1689 ;;
1690 esac
1691 done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1703 {
1704 echo
1706 cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711 echo
1712 # The following way of writing the cache mishandles newlines in values,
1713 (
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1716 case $ac_val in #(
1717 *${as_nl}*)
1718 case $ac_var in #(
1719 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 esac
1722 case $ac_var in #(
1723 _ | IFS | as_nl) ;; #(
1724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1725 *) $as_unset $ac_var ;;
1726 esac ;;
1727 esac
1728 done
1729 (set) 2>&1 |
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1732 sed -n \
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 ;; #(
1736 *)
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738 ;;
1739 esac |
1740 sort
1741 )
1742 echo
1744 cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749 echo
1750 for ac_var in $ac_subst_vars
1751 do
1752 eval ac_val=\$$ac_var
1753 case $ac_val in
1754 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 esac
1756 $as_echo "$ac_var='\''$ac_val'\''"
1757 done | sort
1758 echo
1760 if test -n "$ac_subst_files"; then
1761 cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_files
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 $as_echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776 fi
1778 if test -s confdefs.h; then
1779 cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784 echo
1785 cat confdefs.h
1786 echo
1787 fi
1788 test "$ac_signal" != 0 &&
1789 $as_echo "$as_me: caught signal $ac_signal"
1790 $as_echo "$as_me: exit $exit_status"
1791 } >&5
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 exit $exit_status
1795 ' 0
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer an explicitly selected file to automatically selected ones.
1833 ac_site_file1=NONE
1834 ac_site_file2=NONE
1835 if test -n "$CONFIG_SITE"; then
1836 ac_site_file1=$CONFIG_SITE
1837 elif test "x$prefix" != xNONE; then
1838 ac_site_file1=$prefix/share/config.site
1839 ac_site_file2=$prefix/etc/config.site
1840 else
1841 ac_site_file1=$ac_default_prefix/share/config.site
1842 ac_site_file2=$ac_default_prefix/etc/config.site
1843 fi
1844 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1845 do
1846 test "x$ac_site_file" = xNONE && continue
1847 if test -r "$ac_site_file"; then
1848 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1851 . "$ac_site_file"
1852 fi
1853 done
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 $as_echo "$as_me: loading cache $cache_file" >&6;}
1861 case $cache_file in
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1864 esac
1865 fi
1866 else
1867 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 $as_echo "$as_me: creating cache $cache_file" >&6;}
1869 >$cache_file
1870 fi
1872 # Check that the precious variables saved in the cache have kept the same
1873 # value.
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1881 set,)
1882 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1885 ,set)
1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1889 ,);;
1890 *)
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 # differences in whitespace do not lead to failure.
1893 ac_old_val_w=`echo x $ac_old_val`
1894 ac_new_val_w=`echo x $ac_new_val`
1895 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 ac_cache_corrupted=:
1899 else
1900 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1901 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1902 eval $ac_var=\$ac_old_val
1903 fi
1904 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1905 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1906 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1907 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1908 fi;;
1909 esac
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1912 case $ac_new_val in
1913 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1915 esac
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 esac
1920 fi
1921 done
1922 if $ac_cache_corrupted; then
1923 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1928 fi
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 am__api_version="1.9"
1954 ac_aux_dir=
1955 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1956 if test -f "$ac_dir/install-sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1959 break
1960 elif test -f "$ac_dir/install.sh"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1963 break
1964 elif test -f "$ac_dir/shtool"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 break
1968 fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1972 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985 # Find a good install program. We prefer a C program (faster),
1986 # so one script is as good as another. But avoid the broken or
1987 # incompatible versions:
1988 # SysV /etc/install, /usr/sbin/install
1989 # SunOS /usr/etc/install
1990 # IRIX /sbin/install
1991 # AIX /bin/install
1992 # AmigaOS /C/install, which installs bootblocks on floppy discs
1993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1996 # OS/2's system install, which has a completely different semantic
1997 # ./install, which can be erroneously created by make from ./install.sh.
1998 # Reject install programs that cannot install multiple files.
1999 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2000 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2001 if test -z "$INSTALL"; then
2002 if test "${ac_cv_path_install+set}" = set; then
2003 $as_echo_n "(cached) " >&6
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 # Account for people who put trailing slashes in PATH elements.
2011 case $as_dir/ in
2012 ./ | .// | /cC/* | \
2013 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2014 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2015 /usr/ucb/* ) ;;
2016 *)
2017 # OSF1 and SCO ODT 3.0 have their own names for install.
2018 # Don't use installbsd from OSF since it installs stuff as root
2019 # by default.
2020 for ac_prog in ginstall scoinst install; do
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2023 if test $ac_prog = install &&
2024 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2025 # AIX install. It has an incompatible calling convention.
2026 :
2027 elif test $ac_prog = install &&
2028 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029 # program-specific install script used by HP pwplus--don't use.
2030 :
2031 else
2032 rm -rf conftest.one conftest.two conftest.dir
2033 echo one > conftest.one
2034 echo two > conftest.two
2035 mkdir conftest.dir
2036 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2037 test -s conftest.one && test -s conftest.two &&
2038 test -s conftest.dir/conftest.one &&
2039 test -s conftest.dir/conftest.two
2040 then
2041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2042 break 3
2043 fi
2044 fi
2045 fi
2046 done
2047 done
2048 ;;
2049 esac
2051 done
2052 IFS=$as_save_IFS
2054 rm -rf conftest.one conftest.two conftest.dir
2056 fi
2057 if test "${ac_cv_path_install+set}" = set; then
2058 INSTALL=$ac_cv_path_install
2059 else
2060 # As a last resort, use the slow shell script. Don't cache a
2061 # value for INSTALL within a source directory, because that will
2062 # break other packages using the cache if that directory is
2063 # removed, or if the value is a relative name.
2064 INSTALL=$ac_install_sh
2065 fi
2066 fi
2067 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2068 $as_echo "$INSTALL" >&6; }
2070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2071 # It thinks the first close brace ends the variable substitution.
2072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2079 $as_echo_n "checking whether build environment is sane... " >&6; }
2080 # Just in case
2081 sleep 1
2082 echo timestamp > conftest.file
2083 # Do `set' in a subshell so we don't clobber the current shell's
2084 # arguments. Must try -L first in case configure is actually a
2085 # symlink; some systems play weird games with the mod time of symlinks
2086 # (eg FreeBSD returns the mod time of the symlink's containing
2087 # directory).
2088 if (
2089 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2090 if test "$*" = "X"; then
2091 # -L didn't work.
2092 set X `ls -t $srcdir/configure conftest.file`
2093 fi
2094 rm -f conftest.file
2095 if test "$*" != "X $srcdir/configure conftest.file" \
2096 && test "$*" != "X conftest.file $srcdir/configure"; then
2098 # If neither matched, then we have a broken ls. This can happen
2099 # if, for instance, CONFIG_SHELL is bash and it inherits a
2100 # broken ls alias from the environment. This has actually
2101 # happened. Such a system could not be considered "sane".
2102 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2103 alias in your environment" >&5
2104 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2105 alias in your environment" >&2;}
2106 { (exit 1); exit 1; }; }
2107 fi
2109 test "$2" = conftest.file
2110 )
2111 then
2112 # Ok.
2113 :
2114 else
2115 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2116 Check your system clock" >&5
2117 $as_echo "$as_me: error: newly created file is older than distributed files!
2118 Check your system clock" >&2;}
2119 { (exit 1); exit 1; }; }
2120 fi
2121 { $as_echo "$as_me:$LINENO: result: yes" >&5
2122 $as_echo "yes" >&6; }
2123 test "$program_prefix" != NONE &&
2124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2125 # Use a double $ so make ignores it.
2126 test "$program_suffix" != NONE &&
2127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2128 # Double any \ or $.
2129 # By default was `s,x,x', remove it if useless.
2130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2133 # expand $ac_aux_dir to an absolute path
2134 am_aux_dir=`cd $ac_aux_dir && pwd`
2136 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2137 # Use eval to expand $SHELL
2138 if eval "$MISSING --run true"; then
2139 am_missing_run="$MISSING --run "
2140 else
2141 am_missing_run=
2142 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2143 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2144 fi
2146 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2147 # We used to keeping the `.' as first argument, in order to
2148 # allow $(mkdir_p) to be used without argument. As in
2149 # $(mkdir_p) $(somedir)
2150 # where $(somedir) is conditionally defined. However this is wrong
2151 # for two reasons:
2152 # 1. if the package is installed by a user who cannot write `.'
2153 # make install will fail,
2154 # 2. the above comment should most certainly read
2155 # $(mkdir_p) $(DESTDIR)$(somedir)
2156 # so it does not work when $(somedir) is undefined and
2157 # $(DESTDIR) is not.
2158 # To support the latter case, we have to write
2159 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2160 # so the `.' trick is pointless.
2161 mkdir_p='mkdir -p --'
2162 else
2163 # On NextStep and OpenStep, the `mkdir' command does not
2164 # recognize any option. It will interpret all options as
2165 # directories to create, and then abort because `.' already
2166 # exists.
2167 for d in ./-p ./--version;
2168 do
2169 test -d $d && rmdir $d
2170 done
2171 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2172 if test -f "$ac_aux_dir/mkinstalldirs"; then
2173 mkdir_p='$(mkinstalldirs)'
2174 else
2175 mkdir_p='$(install_sh) -d'
2176 fi
2177 fi
2179 for ac_prog in gawk mawk nawk awk
2180 do
2181 # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 $as_echo_n "checking for $ac_word... " >&6; }
2185 if test "${ac_cv_prog_AWK+set}" = set; then
2186 $as_echo_n "(cached) " >&6
2187 else
2188 if test -n "$AWK"; then
2189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_AWK="$ac_prog"
2199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202 done
2203 done
2204 IFS=$as_save_IFS
2206 fi
2207 fi
2208 AWK=$ac_cv_prog_AWK
2209 if test -n "$AWK"; then
2210 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2211 $as_echo "$AWK" >&6; }
2212 else
2213 { $as_echo "$as_me:$LINENO: result: no" >&5
2214 $as_echo "no" >&6; }
2215 fi
2218 test -n "$AWK" && break
2219 done
2221 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2223 set x ${MAKE-make}
2224 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2225 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat >conftest.make <<\_ACEOF
2229 SHELL = /bin/sh
2230 all:
2231 @echo '@@@%%%=$(MAKE)=@@@%%%'
2232 _ACEOF
2233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2234 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2235 *@@@%%%=?*=@@@%%%*)
2236 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 *)
2238 eval ac_cv_prog_make_${ac_make}_set=no;;
2239 esac
2240 rm -f conftest.make
2241 fi
2242 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2243 { $as_echo "$as_me:$LINENO: result: yes" >&5
2244 $as_echo "yes" >&6; }
2245 SET_MAKE=
2246 else
2247 { $as_echo "$as_me:$LINENO: result: no" >&5
2248 $as_echo "no" >&6; }
2249 SET_MAKE="MAKE=${MAKE-make}"
2250 fi
2252 rm -rf .tst 2>/dev/null
2253 mkdir .tst 2>/dev/null
2254 if test -d .tst; then
2255 am__leading_dot=.
2256 else
2257 am__leading_dot=_
2258 fi
2259 rmdir .tst 2>/dev/null
2261 # test to see if srcdir already configured
2262 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2263 test -f $srcdir/config.status; then
2264 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2265 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2266 { (exit 1); exit 1; }; }
2267 fi
2269 # test whether we have cygpath
2270 if test -z "$CYGPATH_W"; then
2271 if (cygpath --version) >/dev/null 2>/dev/null; then
2272 CYGPATH_W='cygpath -w'
2273 else
2274 CYGPATH_W=echo
2275 fi
2276 fi
2279 # Define the identity of the package.
2280 PACKAGE=lxdream
2281 VERSION=0.8.4
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE "$PACKAGE"
2286 _ACEOF
2289 cat >>confdefs.h <<_ACEOF
2290 #define VERSION "$VERSION"
2291 _ACEOF
2293 # Some tools Automake needs.
2295 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2298 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2301 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2304 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2307 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2311 # Installed binaries are usually stripped using `strip' when the user
2312 # run `make install-strip'. However `strip' might not be the right
2313 # tool to use in cross-compilation environments, therefore Automake
2314 # will honor the `STRIP' environment variable to overrule this program.
2315 if test "$cross_compiling" != no; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}strip; ac_word=$2
2319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 $as_echo_n "checking for $ac_word... " >&6; }
2321 if test "${ac_cv_prog_STRIP+set}" = set; then
2322 $as_echo_n "(cached) " >&6
2323 else
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2337 fi
2338 done
2339 done
2340 IFS=$as_save_IFS
2342 fi
2343 fi
2344 STRIP=$ac_cv_prog_STRIP
2345 if test -n "$STRIP"; then
2346 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2347 $as_echo "$STRIP" >&6; }
2348 else
2349 { $as_echo "$as_me:$LINENO: result: no" >&5
2350 $as_echo "no" >&6; }
2351 fi
2354 fi
2355 if test -z "$ac_cv_prog_STRIP"; then
2356 ac_ct_STRIP=$STRIP
2357 # Extract the first word of "strip", so it can be a program name with args.
2358 set dummy strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$ac_ct_STRIP"; then
2365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_ac_ct_STRIP="strip"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2382 fi
2383 fi
2384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2385 if test -n "$ac_ct_STRIP"; then
2386 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2387 $as_echo "$ac_ct_STRIP" >&6; }
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2393 if test "x$ac_ct_STRIP" = x; then
2394 STRIP=":"
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 STRIP=$ac_ct_STRIP
2407 fi
2408 else
2409 STRIP="$ac_cv_prog_STRIP"
2410 fi
2412 fi
2413 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2415 # We need awk for the "check" target. The system "awk" is bad on
2416 # some platforms.
2417 # Always define AMTAR for backward compatibility.
2419 AMTAR=${AMTAR-"${am_missing_run}tar"}
2421 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2427 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2428 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2429 # Check whether --enable-maintainer-mode was given.
2430 if test "${enable_maintainer_mode+set}" = set; then
2431 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2432 else
2433 USE_MAINTAINER_MODE=no
2434 fi
2436 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2437 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2440 if test $USE_MAINTAINER_MODE = yes; then
2441 MAINTAINER_MODE_TRUE=
2442 MAINTAINER_MODE_FALSE='#'
2443 else
2444 MAINTAINER_MODE_TRUE='#'
2445 MAINTAINER_MODE_FALSE=
2446 fi
2448 MAINT=$MAINTAINER_MODE_TRUE
2451 ac_config_headers="$ac_config_headers config.h"
2454 DEPDIR="${am__leading_dot}deps"
2456 ac_config_commands="$ac_config_commands depfiles"
2459 am_make=${MAKE-make}
2460 cat > confinc << 'END'
2461 am__doit:
2462 @echo done
2463 .PHONY: am__doit
2464 END
2465 # If we don't find an include directive, just comment out the code.
2466 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2467 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2468 am__include="#"
2469 am__quote=
2470 _am_result=none
2471 # First try GNU make style include.
2472 echo "include confinc" > confmf
2473 # We grep out `Entering directory' and `Leaving directory'
2474 # messages which can occur if `w' ends up in MAKEFLAGS.
2475 # In particular we don't look at `^make:' because GNU make might
2476 # be invoked under some other name (usually "gmake"), in which
2477 # case it prints its new name instead of `make'.
2478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2479 am__include=include
2480 am__quote=
2481 _am_result=GNU
2482 fi
2483 # Now try BSD make style include.
2484 if test "$am__include" = "#"; then
2485 echo '.include "confinc"' > confmf
2486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2487 am__include=.include
2488 am__quote="\""
2489 _am_result=BSD
2490 fi
2491 fi
2494 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2495 $as_echo "$_am_result" >&6; }
2496 rm -f confinc confmf
2498 # Check whether --enable-dependency-tracking was given.
2499 if test "${enable_dependency_tracking+set}" = set; then
2500 enableval=$enable_dependency_tracking;
2501 fi
2503 if test "x$enable_dependency_tracking" != xno; then
2504 am_depcomp="$ac_aux_dir/depcomp"
2505 AMDEPBACKSLASH='\'
2506 fi
2509 if test "x$enable_dependency_tracking" != xno; then
2510 AMDEP_TRUE=
2511 AMDEP_FALSE='#'
2512 else
2513 AMDEP_TRUE='#'
2514 AMDEP_FALSE=
2515 fi
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557 { $as_echo "$as_me:$LINENO: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2562 fi
2563 if test -z "$ac_cv_prog_CC"; then
2564 ac_ct_CC=$CC
2565 # Extract the first word of "gcc", so it can be a program name with args.
2566 set dummy gcc; ac_word=$2
2567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_ac_ct_CC="gcc"
2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2590 fi
2591 fi
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2595 $as_echo "$ac_ct_CC" >&6; }
2596 else
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2601 if test "x$ac_ct_CC" = x; then
2602 CC=""
2603 else
2604 case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet. If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&5
2609 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614 CC=$ac_ct_CC
2615 fi
2616 else
2617 CC="$ac_cv_prog_CC"
2618 fi
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}cc; ac_word=$2
2624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if test "${ac_cv_prog_CC+set}" = set; then
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_CC="${ac_tool_prefix}cc"
2640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2647 fi
2648 fi
2649 CC=$ac_cv_prog_CC
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2653 else
2654 { $as_echo "$as_me:$LINENO: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2659 fi
2660 fi
2661 if test -z "$CC"; then
2662 # Extract the first word of "cc", so it can be a program name with args.
2663 set dummy cc; ac_word=$2
2664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 ac_prog_rejected=no
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2681 ac_prog_rejected=yes
2682 continue
2683 fi
2684 ac_cv_prog_CC="cc"
2685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2692 if test $ac_prog_rejected = yes; then
2693 # We found a bogon in the path, so make sure we never use it.
2694 set dummy $ac_cv_prog_CC
2695 shift
2696 if test $# != 0; then
2697 # We chose a different compiler from the bogus one.
2698 # However, it has the same basename, so the bogon will be chosen
2699 # first if we set CC to just the basename; use the full file name.
2700 shift
2701 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2702 fi
2703 fi
2704 fi
2705 fi
2706 CC=$ac_cv_prog_CC
2707 if test -n "$CC"; then
2708 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2709 $as_echo "$CC" >&6; }
2710 else
2711 { $as_echo "$as_me:$LINENO: result: no" >&5
2712 $as_echo "no" >&6; }
2713 fi
2716 fi
2717 if test -z "$CC"; then
2718 if test -n "$ac_tool_prefix"; then
2719 for ac_prog in cl.exe
2720 do
2721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2746 fi
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753 { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2758 test -n "$CC" && break
2759 done
2760 fi
2761 if test -z "$CC"; then
2762 ac_ct_CC=$CC
2763 for ac_prog in cl.exe
2764 do
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="$ac_prog"
2783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2796 else
2797 { $as_echo "$as_me:$LINENO: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2802 test -n "$ac_ct_CC" && break
2803 done
2805 if test "x$ac_ct_CC" = x; then
2806 CC=""
2807 else
2808 case $cross_compiling:$ac_tool_warned in
2809 yes:)
2810 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2811 whose name does not start with the host triplet. If you think this
2812 configuration is useful to you, please write to autoconf@gnu.org." >&5
2813 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet. If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818 CC=$ac_ct_CC
2819 fi
2820 fi
2822 fi
2825 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2826 See \`config.log' for more details." >&5
2827 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2828 See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }
2831 # Provide some information about the compiler.
2832 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2833 set X $ac_compile
2834 ac_compiler=$2
2835 { (ac_try="$ac_compiler --version >&5"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841 $as_echo "$ac_try_echo") >&5
2842 (eval "$ac_compiler --version >&5") 2>&5
2843 ac_status=$?
2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846 { (ac_try="$ac_compiler -v >&5"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2852 $as_echo "$ac_try_echo") >&5
2853 (eval "$ac_compiler -v >&5") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (ac_try="$ac_compiler -V >&5"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2863 $as_echo "$ac_try_echo") >&5
2864 (eval "$ac_compiler -V >&5") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2876 int
2877 main ()
2878 {
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 ac_clean_files_save=$ac_clean_files
2885 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2886 # Try to create an executable without -o first, disregard a.out.
2887 # It will help us diagnose broken compilers, and finding out an intuition
2888 # of exeext.
2889 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2890 $as_echo_n "checking for C compiler default output file name... " >&6; }
2891 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893 # The possible output files:
2894 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2896 ac_rmfiles=
2897 for ac_file in $ac_files
2898 do
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2902 esac
2903 done
2904 rm -f $ac_rmfiles
2906 if { (ac_try="$ac_link_default"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912 $as_echo "$ac_try_echo") >&5
2913 (eval "$ac_link_default") 2>&5
2914 ac_status=$?
2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2919 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2920 # so that the user can short-circuit this test for compilers unknown to
2921 # Autoconf.
2922 for ac_file in $ac_files ''
2923 do
2924 test -f "$ac_file" || continue
2925 case $ac_file in
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2927 ;;
2928 [ab].out )
2929 # We found the default executable, but exeext='' is most
2930 # certainly right.
2931 break;;
2932 *.* )
2933 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2934 then :; else
2935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 fi
2937 # We set ac_cv_exeext here because the later test for it is not
2938 # safe: cross compilers may not add the suffix if given an `-o'
2939 # argument, so we may need to know it at that point already.
2940 # Even if this section looks crufty: it has the advantage of
2941 # actually working.
2942 break;;
2943 * )
2944 break;;
2945 esac
2946 done
2947 test "$ac_cv_exeext" = no && ac_cv_exeext=
2949 else
2950 ac_file=''
2951 fi
2953 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2954 $as_echo "$ac_file" >&6; }
2955 if test -z "$ac_file"; then
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2960 See \`config.log' for more details." >&5
2961 $as_echo "$as_me: error: C compiler cannot create executables
2962 See \`config.log' for more details." >&2;}
2963 { (exit 77); exit 77; }; }
2964 fi
2966 ac_exeext=$ac_cv_exeext
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2973 # If not cross compiling, check that we can run a simple program.
2974 if test "$cross_compiling" != yes; then
2975 if { ac_try='./$ac_file'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 cross_compiling=no
2987 else
2988 if test "$cross_compiling" = maybe; then
2989 cross_compiling=yes
2990 else
2991 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2992 If you meant to cross compile, use \`--host'.
2993 See \`config.log' for more details." >&5
2994 $as_echo "$as_me: error: cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999 fi
3000 fi
3001 { $as_echo "$as_me:$LINENO: result: yes" >&5
3002 $as_echo "yes" >&6; }
3004 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3005 ac_clean_files=$ac_clean_files_save
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3009 $as_echo_n "checking whether we are cross compiling... " >&6; }
3010 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3011 $as_echo "$cross_compiling" >&6; }
3013 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3014 $as_echo_n "checking for suffix of executables... " >&6; }
3015 if { (ac_try="$ac_link"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_link") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; then
3026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3027 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3028 # work properly (i.e., refer to `conftest.exe'), while it won't with
3029 # `rm'.
3030 for ac_file in conftest.exe conftest conftest.*; do
3031 test -f "$ac_file" || continue
3032 case $ac_file in
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3035 break;;
3036 * ) break;;
3037 esac
3038 done
3039 else
3040 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3041 See \`config.log' for more details." >&5
3042 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3045 fi
3047 rm -f conftest$ac_cv_exeext
3048 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3049 $as_echo "$ac_cv_exeext" >&6; }
3051 rm -f conftest.$ac_ext
3052 EXEEXT=$ac_cv_exeext
3053 ac_exeext=$EXEEXT
3054 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3055 $as_echo_n "checking for suffix of object files... " >&6; }
3056 if test "${ac_cv_objext+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 int
3067 main ()
3068 {
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.o conftest.obj
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081 $as_echo "$ac_try_echo") >&5
3082 (eval "$ac_compile") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 for ac_file in conftest.o conftest.obj conftest.*; do
3087 test -f "$ac_file" || continue;
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091 break;;
3092 esac
3093 done
3094 else
3095 $as_echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." >&5
3100 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3103 fi
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 fi
3107 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3108 $as_echo "$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3110 ac_objext=$OBJEXT
3111 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3114 $as_echo_n "(cached) " >&6
3115 else
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 int
3124 main ()
3125 {
3126 #ifndef __GNUC__
3127 choke me
3128 #endif
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_compiler_gnu=yes
3153 else
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_compiler_gnu=no
3158 fi
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 fi
3164 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3166 if test $ac_compiler_gnu = yes; then
3167 GCC=yes
3168 else
3169 GCC=
3170 fi
3171 ac_test_CFLAGS=${CFLAGS+set}
3172 ac_save_CFLAGS=$CFLAGS
3173 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3175 if test "${ac_cv_prog_cc_g+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3177 else
3178 ac_save_c_werror_flag=$ac_c_werror_flag
3179 ac_c_werror_flag=yes
3180 ac_cv_prog_cc_g=no
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3189 int
3190 main ()
3191 {
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3204 $as_echo "$ac_try_echo") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 CFLAGS=""
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 int
3229 main ()
3230 {
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 :
3255 else
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3260 CFLAGS="-g"
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 int
3269 main ()
3270 {
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3283 $as_echo "$ac_try_echo") >&5
3284 (eval "$ac_compile") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } && {
3291 test -z "$ac_c_werror_flag" ||
3292 test ! -s conftest.err
3293 } && test -s conftest.$ac_objext; then
3294 ac_cv_prog_cc_g=yes
3295 else
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3300 fi
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3310 fi
3311 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3312 $as_echo "$ac_cv_prog_cc_g" >&6; }
3313 if test "$ac_test_CFLAGS" = set; then
3314 CFLAGS=$ac_save_CFLAGS
3315 elif test $ac_cv_prog_cc_g = yes; then
3316 if test "$GCC" = yes; then
3317 CFLAGS="-g -O2"
3318 else
3319 CFLAGS="-g"
3320 fi
3321 else
3322 if test "$GCC" = yes; then
3323 CFLAGS="-O2"
3324 else
3325 CFLAGS=
3326 fi
3327 fi
3328 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3329 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3330 if test "${ac_cv_prog_cc_c89+set}" = set; then
3331 $as_echo_n "(cached) " >&6
3332 else
3333 ac_cv_prog_cc_c89=no
3334 ac_save_CC=$CC
3335 cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 #include <sys/types.h>
3344 #include <sys/stat.h>
3345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346 struct buf { int x; };
3347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348 static char *e (p, i)
3349 char **p;
3350 int i;
3351 {
3352 return p[i];
3353 }
3354 static char *f (char * (*g) (char **, int), char **p, ...)
3355 {
3356 char *s;
3357 va_list v;
3358 va_start (v,p);
3359 s = g (p, va_arg (v,int));
3360 va_end (v);
3361 return s;
3362 }
3364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3373 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3375 #define FOO(x) 'x'
3376 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3378 int test (int i, double x);
3379 struct s1 {int (*f) (int a);};
3380 struct s2 {int (*f) (double a);};
3381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382 int argc;
3383 char **argv;
3384 int
3385 main ()
3386 {
3387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 do
3395 CC="$ac_save_CC $ac_arg"
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403 $as_echo "$ac_try_echo") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3414 ac_cv_prog_cc_c89=$ac_arg
3415 else
3416 $as_echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3420 fi
3422 rm -f core conftest.err conftest.$ac_objext
3423 test "x$ac_cv_prog_cc_c89" != "xno" && break
3424 done
3425 rm -f conftest.$ac_ext
3426 CC=$ac_save_CC
3428 fi
3429 # AC_CACHE_VAL
3430 case "x$ac_cv_prog_cc_c89" in
3431 x)
3432 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3433 $as_echo "none needed" >&6; } ;;
3434 xno)
3435 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3436 $as_echo "unsupported" >&6; } ;;
3437 *)
3438 CC="$CC $ac_cv_prog_cc_c89"
3439 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3440 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3441 esac
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450 depcc="$CC" am_compiler_list=
3452 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3453 $as_echo_n "checking dependency style of $depcc... " >&6; }
3454 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3458 # We make a subdir and do the tests there. Otherwise we can end up
3459 # making bogus files that we don't know about and never remove. For
3460 # instance it was reported that on HP-UX the gcc test will end up
3461 # making a dummy file named `D' -- because `-MD' means `put the output
3462 # in D'.
3463 mkdir conftest.dir
3464 # Copy depcomp to subdir because otherwise we won't find it if we're
3465 # using a relative directory.
3466 cp "$am_depcomp" conftest.dir
3467 cd conftest.dir
3468 # We will build objects and dependencies in a subdirectory because
3469 # it helps to detect inapplicable dependency modes. For instance
3470 # both Tru64's cc and ICC support -MD to output dependencies as a
3471 # side effect of compilation, but ICC will put the dependencies in
3472 # the current directory while Tru64 will put them in the object
3473 # directory.
3474 mkdir sub
3476 am_cv_CC_dependencies_compiler_type=none
3477 if test "$am_compiler_list" = ""; then
3478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3479 fi
3480 for depmode in $am_compiler_list; do
3481 # Setup a source with many dependencies, because some compilers
3482 # like to wrap large dependency lists on column 80 (with \), and
3483 # we should not choose a depcomp mode which is confused by this.
3484 #
3485 # We need to recreate these files for each test, as the compiler may
3486 # overwrite some of them when testing with obscure command lines.
3487 # This happens at least with the AIX C compiler.
3488 : > sub/conftest.c
3489 for i in 1 2 3 4 5 6; do
3490 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3491 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3492 # Solaris 8's {/usr,}/bin/sh.
3493 touch sub/conftst$i.h
3494 done
3495 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3497 case $depmode in
3498 nosideeffect)
3499 # after this tag, mechanisms are not by side-effect, so they'll
3500 # only be used when explicitly requested
3501 if test "x$enable_dependency_tracking" = xyes; then
3502 continue
3503 else
3504 break
3505 fi
3506 ;;
3507 none) break ;;
3508 esac
3509 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3510 # mode. It turns out that the SunPro C++ compiler does not properly
3511 # handle `-M -o', and we need to detect this.
3512 if depmode=$depmode \
3513 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3515 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3516 >/dev/null 2>conftest.err &&
3517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3518 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3520 # icc doesn't choke on unknown options, it will just issue warnings
3521 # or remarks (even with -Werror). So we grep stderr for any message
3522 # that says an option was ignored or not supported.
3523 # When given -MP, icc 7.0 and 7.1 complain thusly:
3524 # icc: Command line warning: ignoring option '-M'; no argument required
3525 # The diagnosis changed in icc 8.0:
3526 # icc: Command line remark: option '-MP' not supported
3527 if (grep 'ignoring option' conftest.err ||
3528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3529 am_cv_CC_dependencies_compiler_type=$depmode
3530 break
3531 fi
3532 fi
3533 done
3535 cd ..
3536 rm -rf conftest.dir
3537 else
3538 am_cv_CC_dependencies_compiler_type=none
3539 fi
3541 fi
3542 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3543 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3544 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548 if
3549 test "x$enable_dependency_tracking" != xno \
3550 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3551 am__fastdepCC_TRUE=
3552 am__fastdepCC_FALSE='#'
3553 else
3554 am__fastdepCC_TRUE='#'
3555 am__fastdepCC_FALSE=
3556 fi
3561 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3562 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3563 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3564 $as_echo_n "(cached) " >&6
3565 else
3566 ac_check_lib_save_LIBS=$LIBS
3567 LIBS="-lcposix $LIBS"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3575 /* Override any GCC internal prototype to avoid an error.
3576 Use char because int might match the return type of a GCC
3577 builtin and then its argument prototype would still apply. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 char strerror ();
3582 int
3583 main ()
3584 {
3585 return strerror ();
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext conftest$ac_exeext
3591 if { (ac_try="$ac_link"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597 $as_echo "$ac_try_echo") >&5
3598 (eval "$ac_link") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && {
3605 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest$ac_exeext && {
3608 test "$cross_compiling" = yes ||
3609 $as_test_x conftest$ac_exeext
3610 }; then
3611 ac_cv_lib_cposix_strerror=yes
3612 else
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_cv_lib_cposix_strerror=no
3617 fi
3619 rm -rf conftest.dSYM
3620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3621 conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3623 fi
3624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3625 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3626 if test $ac_cv_lib_cposix_strerror = yes; then
3627 LIBS="$LIBS -lcposix"
3628 fi
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_CC+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670 { $as_echo "$as_me:$LINENO: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3675 fi
3676 if test -z "$ac_cv_prog_CC"; then
3677 ac_ct_CC=$CC
3678 # Extract the first word of "gcc", so it can be a program name with args.
3679 set dummy gcc; ac_word=$2
3680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$ac_ct_CC"; then
3686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_ac_ct_CC="gcc"
3696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3703 fi
3704 fi
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3708 $as_echo "$ac_ct_CC" >&6; }
3709 else
3710 { $as_echo "$as_me:$LINENO: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3714 if test "x$ac_ct_CC" = x; then
3715 CC=""
3716 else
3717 case $cross_compiling:$ac_tool_warned in
3718 yes:)
3719 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3720 whose name does not start with the host triplet. If you think this
3721 configuration is useful to you, please write to autoconf@gnu.org." >&5
3722 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3723 whose name does not start with the host triplet. If you think this
3724 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727 CC=$ac_ct_CC
3728 fi
3729 else
3730 CC="$ac_cv_prog_CC"
3731 fi
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}cc; ac_word=$2
3737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_CC+set}" = set; then
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_CC="${ac_tool_prefix}cc"
3753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:$LINENO: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3772 fi
3773 fi
3774 if test -z "$CC"; then
3775 # Extract the first word of "cc", so it can be a program name with args.
3776 set dummy cc; ac_word=$2
3777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if test "${ac_cv_prog_CC+set}" = set; then
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 else
3785 ac_prog_rejected=no
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794 ac_prog_rejected=yes
3795 continue
3796 fi
3797 ac_cv_prog_CC="cc"
3798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3805 if test $ac_prog_rejected = yes; then
3806 # We found a bogon in the path, so make sure we never use it.
3807 set dummy $ac_cv_prog_CC
3808 shift
3809 if test $# != 0; then
3810 # We chose a different compiler from the bogus one.
3811 # However, it has the same basename, so the bogon will be chosen
3812 # first if we set CC to just the basename; use the full file name.
3813 shift
3814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3815 fi
3816 fi
3817 fi
3818 fi
3819 CC=$ac_cv_prog_CC
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3823 else
3824 { $as_echo "$as_me:$LINENO: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3829 fi
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog in cl.exe
3833 do
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_CC+set}" = set; then
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3865 else
3866 { $as_echo "$as_me:$LINENO: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3871 test -n "$CC" && break
3872 done
3873 fi
3874 if test -z "$CC"; then
3875 ac_ct_CC=$CC
3876 for ac_prog in cl.exe
3877 do
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_ac_ct_CC="$ac_prog"
3896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3903 fi
3904 fi
3905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3908 $as_echo "$ac_ct_CC" >&6; }
3909 else
3910 { $as_echo "$as_me:$LINENO: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3915 test -n "$ac_ct_CC" && break
3916 done
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3924 whose name does not start with the host triplet. If you think this
3925 configuration is useful to you, please write to autoconf@gnu.org." >&5
3926 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3927 whose name does not start with the host triplet. If you think this
3928 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3929 ac_tool_warned=yes ;;
3930 esac
3931 CC=$ac_ct_CC
3932 fi
3933 fi
3935 fi
3938 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." >&5
3940 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3941 See \`config.log' for more details." >&2;}
3942 { (exit 1); exit 1; }; }
3944 # Provide some information about the compiler.
3945 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3946 set X $ac_compile
3947 ac_compiler=$2
3948 { (ac_try="$ac_compiler --version >&5"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3954 $as_echo "$ac_try_echo") >&5
3955 (eval "$ac_compiler --version >&5") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }
3959 { (ac_try="$ac_compiler -v >&5"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compiler -v >&5") 2>&5
3967 ac_status=$?
3968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }
3970 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3982 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3985 $as_echo_n "(cached) " >&6
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3994 int
3995 main ()
3996 {
3997 #ifndef __GNUC__
3998 choke me
3999 #endif
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012 $as_echo "$ac_try_echo") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
4023 ac_compiler_gnu=yes
4024 else
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_compiler_gnu=no
4029 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034 fi
4035 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4036 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4038 GCC=yes
4039 else
4040 GCC=
4041 fi
4042 ac_test_CFLAGS=${CFLAGS+set}
4043 ac_save_CFLAGS=$CFLAGS
4044 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4045 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4046 if test "${ac_cv_prog_cc_g+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4048 else
4049 ac_save_c_werror_flag=$ac_c_werror_flag
4050 ac_c_werror_flag=yes
4051 ac_cv_prog_cc_g=no
4052 CFLAGS="-g"
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4060 int
4061 main ()
4062 {
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_prog_cc_g=yes
4087 else
4088 $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 CFLAGS=""
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 int
4100 main ()
4101 {
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (ac_try="$ac_compile"
4109 case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } && {
4122 test -z "$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 } && test -s conftest.$ac_objext; then
4125 :
4126 else
4127 $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_c_werror_flag=$ac_save_c_werror_flag
4131 CFLAGS="-g"
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4139 int
4140 main ()
4141 {
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154 $as_echo "$ac_try_echo") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest.$ac_objext; then
4165 ac_cv_prog_cc_g=yes
4166 else
4167 $as_echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4171 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4181 fi
4182 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4191 fi
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4197 fi
4198 fi
4199 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if test "${ac_cv_prog_cc_c89+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <stdarg.h>
4213 #include <stdio.h>
4214 #include <sys/types.h>
4215 #include <sys/stat.h>
4216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4217 struct buf { int x; };
4218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4219 static char *e (p, i)
4220 char **p;
4221 int i;
4222 {
4223 return p[i];
4224 }
4225 static char *f (char * (*g) (char **, int), char **p, ...)
4226 {
4227 char *s;
4228 va_list v;
4229 va_start (v,p);
4230 s = g (p, va_arg (v,int));
4231 va_end (v);
4232 return s;
4233 }
4235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4236 function prototypes and stuff, but not '\xHH' hex character constants.
4237 These don't provoke an error unfortunately, instead are silently treated
4238 as 'x'. The following induces an error, until -std is added to get
4239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4240 array size at least. It's necessary to write '\x00'==0 to get something
4241 that's true only with -std. */
4242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4244 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4245 inside strings and character constants. */
4246 #define FOO(x) 'x'
4247 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4249 int test (int i, double x);
4250 struct s1 {int (*f) (int a);};
4251 struct s2 {int (*f) (double a);};
4252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4253 int argc;
4254 char **argv;
4255 int
4256 main ()
4257 {
4258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4265 do
4266 CC="$ac_save_CC $ac_arg"
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4274 $as_echo "$ac_try_echo") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest.$ac_objext; then
4285 ac_cv_prog_cc_c89=$ac_arg
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4291 fi
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4299 fi
4300 # AC_CACHE_VAL
4301 case "x$ac_cv_prog_cc_c89" in
4302 x)
4303 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4308 *)
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 esac
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 depcc="$CC" am_compiler_list=
4323 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4324 $as_echo_n "checking dependency style of $depcc... " >&6; }
4325 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named `D' -- because `-MD' means `put the output
4333 # in D'.
4334 mkdir conftest.dir
4335 # Copy depcomp to subdir because otherwise we won't find it if we're
4336 # using a relative directory.
4337 cp "$am_depcomp" conftest.dir
4338 cd conftest.dir
4339 # We will build objects and dependencies in a subdirectory because
4340 # it helps to detect inapplicable dependency modes. For instance
4341 # both Tru64's cc and ICC support -MD to output dependencies as a
4342 # side effect of compilation, but ICC will put the dependencies in
4343 # the current directory while Tru64 will put them in the object
4344 # directory.
4345 mkdir sub
4347 am_cv_CC_dependencies_compiler_type=none
4348 if test "$am_compiler_list" = ""; then
4349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4350 fi
4351 for depmode in $am_compiler_list; do
4352 # Setup a source with many dependencies, because some compilers
4353 # like to wrap large dependency lists on column 80 (with \), and
4354 # we should not choose a depcomp mode which is confused by this.
4355 #
4356 # We need to recreate these files for each test, as the compiler may
4357 # overwrite some of them when testing with obscure command lines.
4358 # This happens at least with the AIX C compiler.
4359 : > sub/conftest.c
4360 for i in 1 2 3 4 5 6; do
4361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4363 # Solaris 8's {/usr,}/bin/sh.
4364 touch sub/conftst$i.h
4365 done
4366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368 case $depmode in
4369 nosideeffect)
4370 # after this tag, mechanisms are not by side-effect, so they'll
4371 # only be used when explicitly requested
4372 if test "x$enable_dependency_tracking" = xyes; then
4373 continue
4374 else
4375 break
4376 fi
4377 ;;
4378 none) break ;;
4379 esac
4380 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4381 # mode. It turns out that the SunPro C++ compiler does not properly
4382 # handle `-M -o', and we need to detect this.
4383 if depmode=$depmode \
4384 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4386 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4387 >/dev/null 2>conftest.err &&
4388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4391 # icc doesn't choke on unknown options, it will just issue warnings
4392 # or remarks (even with -Werror). So we grep stderr for any message
4393 # that says an option was ignored or not supported.
4394 # When given -MP, icc 7.0 and 7.1 complain thusly:
4395 # icc: Command line warning: ignoring option '-M'; no argument required
4396 # The diagnosis changed in icc 8.0:
4397 # icc: Command line remark: option '-MP' not supported
4398 if (grep 'ignoring option' conftest.err ||
4399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4400 am_cv_CC_dependencies_compiler_type=$depmode
4401 break
4402 fi
4403 fi
4404 done
4406 cd ..
4407 rm -rf conftest.dir
4408 else
4409 am_cv_CC_dependencies_compiler_type=none
4410 fi
4412 fi
4413 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4414 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4415 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4419 if
4420 test "x$enable_dependency_tracking" != xno \
4421 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422 am__fastdepCC_TRUE=
4423 am__fastdepCC_FALSE='#'
4424 else
4425 am__fastdepCC_TRUE='#'
4426 am__fastdepCC_FALSE=
4427 fi
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_CC+set}" = set; then
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4461 fi
4462 fi
4463 CC=$ac_cv_prog_CC
4464 if test -n "$CC"; then
4465 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4466 $as_echo "$CC" >&6; }
4467 else
4468 { $as_echo "$as_me:$LINENO: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4473 fi
4474 if test -z "$ac_cv_prog_CC"; then
4475 ac_ct_CC=$CC
4476 # Extract the first word of "gcc", so it can be a program name with args.
4477 set dummy gcc; ac_word=$2
4478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_CC="gcc"
4494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4501 fi
4502 fi
4503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4504 if test -n "$ac_ct_CC"; then
4505 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4506 $as_echo "$ac_ct_CC" >&6; }
4507 else
4508 { $as_echo "$as_me:$LINENO: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4512 if test "x$ac_ct_CC" = x; then
4513 CC=""
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4518 whose name does not start with the host triplet. If you think this
4519 configuration is useful to you, please write to autoconf@gnu.org." >&5
4520 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4521 whose name does not start with the host triplet. If you think this
4522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 CC=$ac_ct_CC
4526 fi
4527 else
4528 CC="$ac_cv_prog_CC"
4529 fi
4531 if test -z "$CC"; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534 set dummy ${ac_tool_prefix}cc; ac_word=$2
4535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CC+set}" = set; then
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC="$CC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CC="${ac_tool_prefix}cc"
4551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4558 fi
4559 fi
4560 CC=$ac_cv_prog_CC
4561 if test -n "$CC"; then
4562 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4564 else
4565 { $as_echo "$as_me:$LINENO: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4570 fi
4571 fi
4572 if test -z "$CC"; then
4573 # Extract the first word of "cc", so it can be a program name with args.
4574 set dummy cc; ac_word=$2
4575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583 ac_prog_rejected=no
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592 ac_prog_rejected=yes
4593 continue
4594 fi
4595 ac_cv_prog_CC="cc"
4596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4603 if test $ac_prog_rejected = yes; then
4604 # We found a bogon in the path, so make sure we never use it.
4605 set dummy $ac_cv_prog_CC
4606 shift
4607 if test $# != 0; then
4608 # We chose a different compiler from the bogus one.
4609 # However, it has the same basename, so the bogon will be chosen
4610 # first if we set CC to just the basename; use the full file name.
4611 shift
4612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4613 fi
4614 fi
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622 { $as_echo "$as_me:$LINENO: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4627 fi
4628 if test -z "$CC"; then
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in cl.exe
4631 do
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4657 fi
4658 fi
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664 { $as_echo "$as_me:$LINENO: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4669 test -n "$CC" && break
4670 done
4671 fi
4672 if test -z "$CC"; then
4673 ac_ct_CC=$CC
4674 for ac_prog in cl.exe
4675 do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4701 fi
4702 fi
4703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704 if test -n "$ac_ct_CC"; then
4705 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4706 $as_echo "$ac_ct_CC" >&6; }
4707 else
4708 { $as_echo "$as_me:$LINENO: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4713 test -n "$ac_ct_CC" && break
4714 done
4716 if test "x$ac_ct_CC" = x; then
4717 CC=""
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4722 whose name does not start with the host triplet. If you think this
4723 configuration is useful to you, please write to autoconf@gnu.org." >&5
4724 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4725 whose name does not start with the host triplet. If you think this
4726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 CC=$ac_ct_CC
4730 fi
4731 fi
4733 fi
4736 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4737 See \`config.log' for more details." >&5
4738 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4742 # Provide some information about the compiler.
4743 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4744 set X $ac_compile
4745 ac_compiler=$2
4746 { (ac_try="$ac_compiler --version >&5"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_compiler --version >&5") 2>&5
4754 ac_status=$?
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4757 { (ac_try="$ac_compiler -v >&5"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4763 $as_echo "$ac_try_echo") >&5
4764 (eval "$ac_compiler -v >&5") 2>&5
4765 ac_status=$?
4766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }
4768 { (ac_try="$ac_compiler -V >&5"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compiler -V >&5") 2>&5
4776 ac_status=$?
4777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }
4780 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4781 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4782 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4783 $as_echo_n "(cached) " >&6
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4792 int
4793 main ()
4794 {
4795 #ifndef __GNUC__
4796 choke me
4797 #endif
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4810 $as_echo "$ac_try_echo") >&5
4811 (eval "$ac_compile") 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest.$ac_objext; then
4821 ac_compiler_gnu=yes
4822 else
4823 $as_echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_compiler_gnu=no
4827 fi
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4832 fi
4833 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4835 if test $ac_compiler_gnu = yes; then
4836 GCC=yes
4837 else
4838 GCC=
4839 fi
4840 ac_test_CFLAGS=${CFLAGS+set}
4841 ac_save_CFLAGS=$CFLAGS
4842 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4844 if test "${ac_cv_prog_cc_g+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4846 else
4847 ac_save_c_werror_flag=$ac_c_werror_flag
4848 ac_c_werror_flag=yes
4849 ac_cv_prog_cc_g=no
4850 CFLAGS="-g"
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4858 int
4859 main ()
4860 {
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_compile") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } && {
4881 test -z "$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 } && test -s conftest.$ac_objext; then
4884 ac_cv_prog_cc_g=yes
4885 else
4886 $as_echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 CFLAGS=""
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4897 int
4898 main ()
4899 {
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_compile") 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.$ac_objext; then
4923 :
4924 else
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4929 CFLAGS="-g"
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4937 int
4938 main ()
4939 {
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (ac_try="$ac_compile"
4947 case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4952 $as_echo "$ac_try_echo") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4963 ac_cv_prog_cc_g=yes
4964 else
4965 $as_echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4969 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_c_werror_flag=$ac_save_c_werror_flag
4979 fi
4980 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4981 $as_echo "$ac_cv_prog_cc_g" >&6; }
4982 if test "$ac_test_CFLAGS" = set; then
4983 CFLAGS=$ac_save_CFLAGS
4984 elif test $ac_cv_prog_cc_g = yes; then
4985 if test "$GCC" = yes; then
4986 CFLAGS="-g -O2"
4987 else
4988 CFLAGS="-g"
4989 fi
4990 else
4991 if test "$GCC" = yes; then
4992 CFLAGS="-O2"
4993 else
4994 CFLAGS=
4995 fi
4996 fi
4997 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4998 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4999 if test "${ac_cv_prog_cc_c89+set}" = set; then
5000 $as_echo_n "(cached) " >&6
5001 else
5002 ac_cv_prog_cc_c89=no
5003 ac_save_CC=$CC
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 #include <stdarg.h>
5011 #include <stdio.h>
5012 #include <sys/types.h>
5013 #include <sys/stat.h>
5014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5015 struct buf { int x; };
5016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5017 static char *e (p, i)
5018 char **p;
5019 int i;
5020 {
5021 return p[i];
5022 }
5023 static char *f (char * (*g) (char **, int), char **p, ...)
5024 {
5025 char *s;
5026 va_list v;
5027 va_start (v,p);
5028 s = g (p, va_arg (v,int));
5029 va_end (v);
5030 return s;
5031 }
5033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5034 function prototypes and stuff, but not '\xHH' hex character constants.
5035 These don't provoke an error unfortunately, instead are silently treated
5036 as 'x'. The following induces an error, until -std is added to get
5037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5038 array size at least. It's necessary to write '\x00'==0 to get something
5039 that's true only with -std. */
5040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5043 inside strings and character constants. */
5044 #define FOO(x) 'x'
5045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5047 int test (int i, double x);
5048 struct s1 {int (*f) (int a);};
5049 struct s2 {int (*f) (double a);};
5050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5051 int argc;
5052 char **argv;
5053 int
5054 main ()
5055 {
5056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5063 do
5064 CC="$ac_save_CC $ac_arg"
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.$ac_objext; then
5083 ac_cv_prog_cc_c89=$ac_arg
5084 else
5085 $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5089 fi
5091 rm -f core conftest.err conftest.$ac_objext
5092 test "x$ac_cv_prog_cc_c89" != "xno" && break
5093 done
5094 rm -f conftest.$ac_ext
5095 CC=$ac_save_CC
5097 fi
5098 # AC_CACHE_VAL
5099 case "x$ac_cv_prog_cc_c89" in
5100 x)
5101 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5102 $as_echo "none needed" >&6; } ;;
5103 xno)
5104 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5105 $as_echo "unsupported" >&6; } ;;
5106 *)
5107 CC="$CC $ac_cv_prog_cc_c89"
5108 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5109 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5110 esac
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 depcc="$CC" am_compiler_list=
5121 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5122 $as_echo_n "checking dependency style of $depcc... " >&6; }
5123 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5127 # We make a subdir and do the tests there. Otherwise we can end up
5128 # making bogus files that we don't know about and never remove. For
5129 # instance it was reported that on HP-UX the gcc test will end up
5130 # making a dummy file named `D' -- because `-MD' means `put the output
5131 # in D'.
5132 mkdir conftest.dir
5133 # Copy depcomp to subdir because otherwise we won't find it if we're
5134 # using a relative directory.
5135 cp "$am_depcomp" conftest.dir
5136 cd conftest.dir
5137 # We will build objects and dependencies in a subdirectory because
5138 # it helps to detect inapplicable dependency modes. For instance
5139 # both Tru64's cc and ICC support -MD to output dependencies as a
5140 # side effect of compilation, but ICC will put the dependencies in
5141 # the current directory while Tru64 will put them in the object
5142 # directory.
5143 mkdir sub
5145 am_cv_CC_dependencies_compiler_type=none
5146 if test "$am_compiler_list" = ""; then
5147 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5148 fi
5149 for depmode in $am_compiler_list; do
5150 # Setup a source with many dependencies, because some compilers
5151 # like to wrap large dependency lists on column 80 (with \), and
5152 # we should not choose a depcomp mode which is confused by this.
5153 #
5154 # We need to recreate these files for each test, as the compiler may
5155 # overwrite some of them when testing with obscure command lines.
5156 # This happens at least with the AIX C compiler.
5157 : > sub/conftest.c
5158 for i in 1 2 3 4 5 6; do
5159 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5161 # Solaris 8's {/usr,}/bin/sh.
5162 touch sub/conftst$i.h
5163 done
5164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5166 case $depmode in
5167 nosideeffect)
5168 # after this tag, mechanisms are not by side-effect, so they'll
5169 # only be used when explicitly requested
5170 if test "x$enable_dependency_tracking" = xyes; then
5171 continue
5172 else
5173 break
5174 fi
5175 ;;
5176 none) break ;;
5177 esac
5178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5179 # mode. It turns out that the SunPro C++ compiler does not properly
5180 # handle `-M -o', and we need to detect this.
5181 if depmode=$depmode \
5182 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5184 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5185 >/dev/null 2>conftest.err &&
5186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5187 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5189 # icc doesn't choke on unknown options, it will just issue warnings
5190 # or remarks (even with -Werror). So we grep stderr for any message
5191 # that says an option was ignored or not supported.
5192 # When given -MP, icc 7.0 and 7.1 complain thusly:
5193 # icc: Command line warning: ignoring option '-M'; no argument required
5194 # The diagnosis changed in icc 8.0:
5195 # icc: Command line remark: option '-MP' not supported
5196 if (grep 'ignoring option' conftest.err ||
5197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5198 am_cv_CC_dependencies_compiler_type=$depmode
5199 break
5200 fi
5201 fi
5202 done
5204 cd ..
5205 rm -rf conftest.dir
5206 else
5207 am_cv_CC_dependencies_compiler_type=none
5208 fi
5210 fi
5211 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5217 if
5218 test "x$enable_dependency_tracking" != xno \
5219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5220 am__fastdepCC_TRUE=
5221 am__fastdepCC_FALSE='#'
5222 else
5223 am__fastdepCC_TRUE='#'
5224 am__fastdepCC_FALSE=
5225 fi
5229 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5231 # By default we simply use the C compiler to build assembly code.
5233 test "${CCAS+set}" = set || CCAS=$CC
5234 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5238 ac_ext=c
5239 ac_cpp='$CPP $CPPFLAGS'
5240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5245 # On Suns, sometimes $CPP names a directory.
5246 if test -n "$CPP" && test -d "$CPP"; then
5247 CPP=
5248 fi
5249 if test -z "$CPP"; then
5250 if test "${ac_cv_prog_CPP+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 # Double quotes because CPP needs to be expanded
5254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5255 do
5256 ac_preproc_ok=false
5257 for ac_c_preproc_warn_flag in '' yes
5258 do
5259 # Use a header file that comes with gcc, so configuring glibc
5260 # with a fresh cross-compiler works.
5261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262 # <limits.h> exists even on freestanding compilers.
5263 # On the NeXT, cc -E runs the code through the compiler's parser,
5264 # not just through cpp. "Syntax error" is here to catch this case.
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #ifdef __STDC__
5272 # include <limits.h>
5273 #else
5274 # include <assert.h>
5275 #endif
5276 Syntax error
5277 _ACEOF
5278 if { (ac_try="$ac_cpp conftest.$ac_ext"
5279 case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5284 $as_echo "$ac_try_echo") >&5
5285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } >/dev/null && {
5292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 }; then
5295 :
5296 else
5297 $as_echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 # Broken: fails on valid input.
5301 continue
5302 fi
5304 rm -f conftest.err conftest.$ac_ext
5306 # OK, works on sane cases. Now check whether nonexistent headers
5307 # can be detected and how.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <ac_nonexistent.h>
5315 _ACEOF
5316 if { (ac_try="$ac_cpp conftest.$ac_ext"
5317 case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5322 $as_echo "$ac_try_echo") >&5
5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } >/dev/null && {
5330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5331 test ! -s conftest.err
5332 }; then
5333 # Broken: success on invalid input.
5334 continue
5335 else
5336 $as_echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 # Passes both tests.
5340 ac_preproc_ok=:
5341 break
5342 fi
5344 rm -f conftest.err conftest.$ac_ext
5346 done
5347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5348 rm -f conftest.err conftest.$ac_ext
5349 if $ac_preproc_ok; then
5350 break
5351 fi
5353 done
5354 ac_cv_prog_CPP=$CPP
5356 fi
5357 CPP=$ac_cv_prog_CPP
5358 else
5359 ac_cv_prog_CPP=$CPP
5360 fi
5361 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5362 $as_echo "$CPP" >&6; }
5363 ac_preproc_ok=false
5364 for ac_c_preproc_warn_flag in '' yes
5365 do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #ifdef __STDC__
5379 # include <limits.h>
5380 #else
5381 # include <assert.h>
5382 #endif
5383 Syntax error
5384 _ACEOF
5385 if { (ac_try="$ac_cpp conftest.$ac_ext"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } >/dev/null && {
5399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 }; then
5402 :
5403 else
5404 $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 # Broken: fails on valid input.
5408 continue
5409 fi
5411 rm -f conftest.err conftest.$ac_ext
5413 # OK, works on sane cases. Now check whether nonexistent headers
5414 # can be detected and how.
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <ac_nonexistent.h>
5422 _ACEOF
5423 if { (ac_try="$ac_cpp conftest.$ac_ext"
5424 case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429 $as_echo "$ac_try_echo") >&5
5430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } >/dev/null && {
5437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 }; then
5440 # Broken: success on invalid input.
5441 continue
5442 else
5443 $as_echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 # Passes both tests.
5447 ac_preproc_ok=:
5448 break
5449 fi
5451 rm -f conftest.err conftest.$ac_ext
5453 done
5454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5455 rm -f conftest.err conftest.$ac_ext
5456 if $ac_preproc_ok; then
5457 :
5458 else
5459 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5460 See \`config.log' for more details." >&5
5461 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5462 See \`config.log' for more details." >&2;}
5463 { (exit 1); exit 1; }; }
5464 fi
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5473 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5474 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5475 if test "${ac_cv_path_GREP+set}" = set; then
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -z "$GREP"; then
5479 ac_path_GREP_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_prog in grep ggrep; do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5489 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5490 # Check for GNU ac_path_GREP and select it if it is found.
5491 # Check for GNU $ac_path_GREP
5492 case `"$ac_path_GREP" --version 2>&1` in
5493 *GNU*)
5494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5495 *)
5496 ac_count=0
5497 $as_echo_n 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo 'GREP' >> "conftest.nl"
5504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 ac_count=`expr $ac_count + 1`
5507 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_GREP="$ac_path_GREP"
5510 ac_path_GREP_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 esac
5518 $ac_path_GREP_found && break 3
5519 done
5520 done
5521 done
5522 IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_GREP"; then
5524 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5525 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5526 { (exit 1); exit 1; }; }
5527 fi
5528 else
5529 ac_cv_path_GREP=$GREP
5530 fi
5532 fi
5533 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5534 $as_echo "$ac_cv_path_GREP" >&6; }
5535 GREP="$ac_cv_path_GREP"
5538 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5539 $as_echo_n "checking for egrep... " >&6; }
5540 if test "${ac_cv_path_EGREP+set}" = set; then
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5544 then ac_cv_path_EGREP="$GREP -E"
5545 else
5546 if test -z "$EGREP"; then
5547 ac_path_EGREP_found=false
5548 # Loop through the user's path and test for each of PROGNAME-LIST
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_prog in egrep; do
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5557 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5558 # Check for GNU ac_path_EGREP and select it if it is found.
5559 # Check for GNU $ac_path_EGREP
5560 case `"$ac_path_EGREP" --version 2>&1` in
5561 *GNU*)
5562 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5563 *)
5564 ac_count=0
5565 $as_echo_n 0123456789 >"conftest.in"
5566 while :
5567 do
5568 cat "conftest.in" "conftest.in" >"conftest.tmp"
5569 mv "conftest.tmp" "conftest.in"
5570 cp "conftest.in" "conftest.nl"
5571 $as_echo 'EGREP' >> "conftest.nl"
5572 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574 ac_count=`expr $ac_count + 1`
5575 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5576 # Best one so far, save it but keep looking for a better one
5577 ac_cv_path_EGREP="$ac_path_EGREP"
5578 ac_path_EGREP_max=$ac_count
5579 fi
5580 # 10*(2^10) chars as input seems more than enough
5581 test $ac_count -gt 10 && break
5582 done
5583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584 esac
5586 $ac_path_EGREP_found && break 3
5587 done
5588 done
5589 done
5590 IFS=$as_save_IFS
5591 if test -z "$ac_cv_path_EGREP"; then
5592 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5593 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5594 { (exit 1); exit 1; }; }
5595 fi
5596 else
5597 ac_cv_path_EGREP=$EGREP
5598 fi
5600 fi
5601 fi
5602 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5603 $as_echo "$ac_cv_path_EGREP" >&6; }
5604 EGREP="$ac_cv_path_EGREP"
5607 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 $as_echo_n "checking for ANSI C header files... " >&6; }
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5611 else
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <stdlib.h>
5619 #include <stdarg.h>
5620 #include <string.h>
5621 #include <float.h>
5623 int
5624 main ()
5625 {
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5638 $as_echo "$ac_try_echo") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.$ac_objext; then
5649 ac_cv_header_stdc=yes
5650 else
5651 $as_echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_cv_header_stdc=no
5655 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 if test $ac_cv_header_stdc = yes; then
5660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <string.h>
5669 _ACEOF
5670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5671 $EGREP "memchr" >/dev/null 2>&1; then
5672 :
5673 else
5674 ac_cv_header_stdc=no
5675 fi
5676 rm -f conftest*
5678 fi
5680 if test $ac_cv_header_stdc = yes; then
5681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <stdlib.h>
5690 _ACEOF
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 $EGREP "free" >/dev/null 2>&1; then
5693 :
5694 else
5695 ac_cv_header_stdc=no
5696 fi
5697 rm -f conftest*
5699 fi
5701 if test $ac_cv_header_stdc = yes; then
5702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5703 if test "$cross_compiling" = yes; then
5704 :
5705 else
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #include <ctype.h>
5713 #include <stdlib.h>
5714 #if ((' ' & 0x0FF) == 0x020)
5715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5717 #else
5718 # define ISLOWER(c) \
5719 (('a' <= (c) && (c) <= 'i') \
5720 || ('j' <= (c) && (c) <= 'r') \
5721 || ('s' <= (c) && (c) <= 'z'))
5722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5723 #endif
5725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5726 int
5727 main ()
5728 {
5729 int i;
5730 for (i = 0; i < 256; i++)
5731 if (XOR (islower (i), ISLOWER (i))
5732 || toupper (i) != TOUPPER (i))
5733 return 2;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_link") 2>&5
5746 ac_status=$?
5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5754 $as_echo "$ac_try_echo") >&5
5755 (eval "$ac_try") 2>&5
5756 ac_status=$?
5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 :
5760 else
5761 $as_echo "$as_me: program exited with status $ac_status" >&5
5762 $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ( exit $ac_status )
5766 ac_cv_header_stdc=no
5767 fi
5768 rm -rf conftest.dSYM
5769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770 fi
5773 fi
5774 fi
5775 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5776 $as_echo "$ac_cv_header_stdc" >&6; }
5777 if test $ac_cv_header_stdc = yes; then
5779 cat >>confdefs.h <<\_ACEOF
5780 #define STDC_HEADERS 1
5781 _ACEOF
5783 fi
5785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5795 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5796 inttypes.h stdint.h unistd.h
5797 do
5798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5800 $as_echo_n "checking for $ac_header... " >&6; }
5801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5812 #include <$ac_header>
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5821 $as_echo "$ac_try_echo") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 eval "$as_ac_Header=yes"
5833 else
5834 $as_echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 eval "$as_ac_Header=no"
5838 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 ac_res=`eval 'as_val=${'$as_ac_Header'}
5843 $as_echo "$as_val"'`
5844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5845 $as_echo "$ac_res" >&6; }
5846 if test `eval 'as_val=${'$as_ac_Header'}
5847 $as_echo "$as_val"'` = yes; then
5848 cat >>confdefs.h <<_ACEOF
5849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5850 _ACEOF
5852 fi
5854 done
5857 # The cast to long int works around a bug in the HP C Compiler
5858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5860 # This bug is HP SR number 8606223364.
5861 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5862 $as_echo_n "checking size of void *... " >&6; }
5863 if test "${ac_cv_sizeof_void_p+set}" = set; then
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test "$cross_compiling" = yes; then
5867 # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
5875 int
5876 main ()
5877 {
5878 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5879 test_array [0] = 0
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 ac_lo=0 ac_mid=0
5904 while :; do
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5912 int
5913 main ()
5914 {
5915 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5916 test_array [0] = 0
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5924 case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929 $as_echo "$ac_try_echo") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5940 ac_hi=$ac_mid; break
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_lo=`expr $ac_mid + 1`
5946 if test $ac_lo -le $ac_mid; then
5947 ac_lo= ac_hi=
5948 break
5949 fi
5950 ac_mid=`expr 2 '*' $ac_mid + 1`
5951 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 done
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 int
5967 main ()
5968 {
5969 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5970 test_array [0] = 0
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (ac_try="$ac_compile"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983 $as_echo "$ac_try_echo") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_hi=-1 ac_mid=-1
5995 while :; do
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003 int
6004 main ()
6005 {
6006 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6007 test_array [0] = 0
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (ac_try="$ac_compile"
6015 case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_lo=$ac_mid; break
6032 else
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_hi=`expr '(' $ac_mid ')' - 1`
6037 if test $ac_mid -le $ac_hi; then
6038 ac_lo= ac_hi=
6039 break
6040 fi
6041 ac_mid=`expr 2 '*' $ac_mid`
6042 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 done
6046 else
6047 $as_echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_lo= ac_hi=
6051 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 # Binary search between lo and hi bounds.
6058 while test "x$ac_lo" != "x$ac_hi"; do
6059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6067 int
6068 main ()
6069 {
6070 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6071 test_array [0] = 0
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084 $as_echo "$ac_try_echo") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6095 ac_hi=$ac_mid
6096 else
6097 $as_echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_lo=`expr '(' $ac_mid ')' + 1`
6101 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 done
6105 case $ac_lo in
6106 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6107 '') if test "$ac_cv_type_void_p" = yes; then
6108 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6109 See \`config.log' for more details." >&5
6110 $as_echo "$as_me: error: cannot compute sizeof (void *)
6111 See \`config.log' for more details." >&2;}
6112 { (exit 77); exit 77; }; }
6113 else
6114 ac_cv_sizeof_void_p=0
6115 fi ;;
6116 esac
6117 else
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 $ac_includes_default
6125 static long int longval () { return (long int) (sizeof (void *)); }
6126 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6127 #include <stdio.h>
6128 #include <stdlib.h>
6129 int
6130 main ()
6131 {
6133 FILE *f = fopen ("conftest.val", "w");
6134 if (! f)
6135 return 1;
6136 if (((long int) (sizeof (void *))) < 0)
6137 {
6138 long int i = longval ();
6139 if (i != ((long int) (sizeof (void *))))
6140 return 1;
6141 fprintf (f, "%ld", i);
6142 }
6143 else
6144 {
6145 unsigned long int i = ulongval ();
6146 if (i != ((long int) (sizeof (void *))))
6147 return 1;
6148 fprintf (f, "%lu", i);
6149 }
6150 /* Do not output a trailing newline, as this causes \r\n confusion
6151 on some platforms. */
6152 return ferror (f) || fclose (f) != 0;
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest$ac_exeext
6159 if { (ac_try="$ac_link"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6165 $as_echo "$ac_try_echo") >&5
6166 (eval "$ac_link") 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6175 $as_echo "$ac_try_echo") >&5
6176 (eval "$ac_try") 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_sizeof_void_p=`cat conftest.val`
6181 else
6182 $as_echo "$as_me: program exited with status $ac_status" >&5
6183 $as_echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ( exit $ac_status )
6187 if test "$ac_cv_type_void_p" = yes; then
6188 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6189 See \`config.log' for more details." >&5
6190 $as_echo "$as_me: error: cannot compute sizeof (void *)
6191 See \`config.log' for more details." >&2;}
6192 { (exit 77); exit 77; }; }
6193 else
6194 ac_cv_sizeof_void_p=0
6195 fi
6196 fi
6197 rm -rf conftest.dSYM
6198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 rm -f conftest.val
6201 fi
6202 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6203 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6207 cat >>confdefs.h <<_ACEOF
6208 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6209 _ACEOF
6212 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6213 $as_echo_n "checking for ANSI C header files... " >&6; }
6214 if test "${ac_cv_header_stdc+set}" = set; then
6215 $as_echo_n "(cached) " >&6
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <stdlib.h>
6224 #include <stdarg.h>
6225 #include <string.h>
6226 #include <float.h>
6228 int
6229 main ()
6230 {
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243 $as_echo "$ac_try_echo") >&5
6244 (eval "$ac_compile") 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && {
6251 test -z "$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 } && test -s conftest.$ac_objext; then
6254 ac_cv_header_stdc=yes
6255 else
6256 $as_echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_cv_header_stdc=no
6260 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 #include <string.h>
6274 _ACEOF
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276 $EGREP "memchr" >/dev/null 2>&1; then
6277 :
6278 else
6279 ac_cv_header_stdc=no
6280 fi
6281 rm -f conftest*
6283 fi
6285 if test $ac_cv_header_stdc = yes; then
6286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <stdlib.h>
6295 _ACEOF
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297 $EGREP "free" >/dev/null 2>&1; then
6298 :
6299 else
6300 ac_cv_header_stdc=no
6301 fi
6302 rm -f conftest*
6304 fi
6306 if test $ac_cv_header_stdc = yes; then
6307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308 if test "$cross_compiling" = yes; then
6309 :
6310 else
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <ctype.h>
6318 #include <stdlib.h>
6319 #if ((' ' & 0x0FF) == 0x020)
6320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6322 #else
6323 # define ISLOWER(c) \
6324 (('a' <= (c) && (c) <= 'i') \
6325 || ('j' <= (c) && (c) <= 'r') \
6326 || ('s' <= (c) && (c) <= 'z'))
6327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6328 #endif
6330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6331 int
6332 main ()
6333 {
6334 int i;
6335 for (i = 0; i < 256; i++)
6336 if (XOR (islower (i), ISLOWER (i))
6337 || toupper (i) != TOUPPER (i))
6338 return 2;
6339 return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest$ac_exeext
6343 if { (ac_try="$ac_link"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_link") 2>&5
6351 ac_status=$?
6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 :
6365 else
6366 $as_echo "$as_me: program exited with status $ac_status" >&5
6367 $as_echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ( exit $ac_status )
6371 ac_cv_header_stdc=no
6372 fi
6373 rm -rf conftest.dSYM
6374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6375 fi
6378 fi
6379 fi
6380 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6381 $as_echo "$ac_cv_header_stdc" >&6; }
6382 if test $ac_cv_header_stdc = yes; then
6384 cat >>confdefs.h <<\_ACEOF
6385 #define STDC_HEADERS 1
6386 _ACEOF
6388 fi
6390 # Make sure we can run config.sub.
6391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6392 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6393 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6394 { (exit 1); exit 1; }; }
6396 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6397 $as_echo_n "checking build system type... " >&6; }
6398 if test "${ac_cv_build+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6400 else
6401 ac_build_alias=$build_alias
6402 test "x$ac_build_alias" = x &&
6403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6404 test "x$ac_build_alias" = x &&
6405 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6406 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6407 { (exit 1); exit 1; }; }
6408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6409 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6410 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6411 { (exit 1); exit 1; }; }
6413 fi
6414 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6415 $as_echo "$ac_cv_build" >&6; }
6416 case $ac_cv_build in
6417 *-*-*) ;;
6418 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6419 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6420 { (exit 1); exit 1; }; };;
6421 esac
6422 build=$ac_cv_build
6423 ac_save_IFS=$IFS; IFS='-'
6424 set x $ac_cv_build
6425 shift
6426 build_cpu=$1
6427 build_vendor=$2
6428 shift; shift
6429 # Remember, the first character of IFS is used to create $*,
6430 # except with old shells:
6431 build_os=$*
6432 IFS=$ac_save_IFS
6433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6436 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6437 $as_echo_n "checking host system type... " >&6; }
6438 if test "${ac_cv_host+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test "x$host_alias" = x; then
6442 ac_cv_host=$ac_cv_build
6443 else
6444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6445 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6446 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6447 { (exit 1); exit 1; }; }
6448 fi
6450 fi
6451 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6452 $as_echo "$ac_cv_host" >&6; }
6453 case $ac_cv_host in
6454 *-*-*) ;;
6455 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6456 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6457 { (exit 1); exit 1; }; };;
6458 esac
6459 host=$ac_cv_host
6460 ac_save_IFS=$IFS; IFS='-'
6461 set x $ac_cv_host
6462 shift
6463 host_cpu=$1
6464 host_vendor=$2
6465 shift; shift
6466 # Remember, the first character of IFS is used to create $*,
6467 # except with old shells:
6468 host_os=$*
6469 IFS=$ac_save_IFS
6470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6474 # Extract the first word of "pod2man", so it can be a program name with args.
6475 set dummy pod2man; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_path_POD2MAN+set}" = set; then
6479 $as_echo_n "(cached) " >&6
6480 else
6481 case $POD2MAN in
6482 [\\/]* | ?:[\\/]*)
6483 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6484 ;;
6485 *)
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6501 ;;
6502 esac
6503 fi
6504 POD2MAN=$ac_cv_path_POD2MAN
6505 if test -n "$POD2MAN"; then
6506 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
6507 $as_echo "$POD2MAN" >&6; }
6508 else
6509 { $as_echo "$as_me:$LINENO: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6514 # Extract the first word of "pod2html", so it can be a program name with args.
6515 set dummy pod2html; ac_word=$2
6516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if test "${ac_cv_path_POD2HTML+set}" = set; then
6519 $as_echo_n "(cached) " >&6
6520 else
6521 case $POD2HTML in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
6524 ;;
6525 *)
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6541 ;;
6542 esac
6543 fi
6544 POD2HTML=$ac_cv_path_POD2HTML
6545 if test -n "$POD2HTML"; then
6546 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
6547 $as_echo "$POD2HTML" >&6; }
6548 else
6549 { $as_echo "$as_me:$LINENO: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6556 # Check whether --enable-strict-warn was given.
6557 if test "${enable_strict_warn+set}" = set; then
6558 enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
6559 fi
6561 # Check whether --enable-translator was given.
6562 if test "${enable_translator+set}" = set; then
6563 enableval=$enable_translator; true
6564 else
6565 enable_translator=yes
6566 fi
6568 # Check whether --enable-trace was given.
6569 if test "${enable_trace+set}" = set; then
6570 enableval=$enable_trace; if test "$enableval" == "yes"; then
6572 cat >>confdefs.h <<\_ACEOF
6573 #define ENABLE_TRACE_IO 1
6574 _ACEOF
6576 fi
6577 fi
6579 # Check whether --enable-watch was given.
6580 if test "${enable_watch+set}" = set; then
6581 enableval=$enable_watch; if test "$enableval" == "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define ENABLE_WATCH 1
6585 _ACEOF
6587 fi
6588 fi
6590 # Check whether --enable-sh4stats was given.
6591 if test "${enable_sh4stats+set}" = set; then
6592 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6594 cat >>confdefs.h <<\_ACEOF
6595 #define ENABLE_SH4STATS 1
6596 _ACEOF
6598 fi
6599 fi
6602 # Check whether --with-osmesa was given.
6603 if test "${with_osmesa+set}" = set; then
6604 withval=$with_osmesa;
6605 else
6606 with_osmesa=no
6607 fi
6610 # Check whether --with-gtk was given.
6611 if test "${with_gtk+set}" = set; then
6612 withval=$with_gtk; with_gtk=yes
6613 else
6614 with_gtk=x11
6615 fi
6618 # Check whether --with-esd was given.
6619 if test "${with_esd+set}" = set; then
6620 withval=$with_esd;
6621 fi
6624 # Check whether --with-pulse was given.
6625 if test "${with_pulse+set}" = set; then
6626 withval=$with_pulse;
6627 fi
6631 if test "x$GCC" = "xyes"; then
6632 CFLAGS="$CFLAGS -fno-strict-aliasing"
6633 fi
6636 lxdream_save_cppflags="$CPPFLAGS"
6637 CPPFLAGS="$CPPFLAGS -x objective-c"
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 @interface Foo @end
6645 int
6646 main ()
6647 {
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6673 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6674 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6675 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6676 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6677 $as_echo_n "(cached) " >&6
6678 fi
6679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6680 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6681 else
6682 # Is the header compilable?
6683 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6684 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 $ac_includes_default
6692 #include <Cocoa/Cocoa.h>
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6701 $as_echo "$ac_try_echo") >&5
6702 (eval "$ac_compile") 2>conftest.er1
6703 ac_status=$?
6704 grep -v '^ *+' conftest.er1 >conftest.err
6705 rm -f conftest.er1
6706 cat conftest.err >&5
6707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && {
6709 test -z "$ac_c_werror_flag" ||
6710 test ! -s conftest.err
6711 } && test -s conftest.$ac_objext; then
6712 ac_header_compiler=yes
6713 else
6714 $as_echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 ac_header_compiler=no
6718 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6722 $as_echo "$ac_header_compiler" >&6; }
6724 # Is the header present?
6725 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6726 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <Cocoa/Cocoa.h>
6734 _ACEOF
6735 if { (ac_try="$ac_cpp conftest.$ac_ext"
6736 case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739 esac
6740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741 $as_echo "$ac_try_echo") >&5
6742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } >/dev/null && {
6749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 }; then
6752 ac_header_preproc=yes
6753 else
6754 $as_echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_header_preproc=no
6758 fi
6760 rm -f conftest.err conftest.$ac_ext
6761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6762 $as_echo "$ac_header_preproc" >&6; }
6764 # So? What about this header?
6765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6766 yes:no: )
6767 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6768 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6769 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6770 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6771 ac_header_preproc=yes
6772 ;;
6773 no:yes:* )
6774 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6775 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6776 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6777 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6778 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6779 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6781 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6783 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6785 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6787 ;;
6788 esac
6789 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6790 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6791 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6793 else
6794 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6795 fi
6796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6797 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6799 fi
6800 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6802 HAVE_COCOA='yes'
6803 APPLE_BUILD='yes'
6804 LIBS="$LIBS -framework AppKit"
6805 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"
6806 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4"
6807 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
6809 cat >>confdefs.h <<\_ACEOF
6810 #define HAVE_COCOA 1
6811 _ACEOF
6814 cat >>confdefs.h <<\_ACEOF
6815 #define APPLE_BUILD 1
6816 _ACEOF
6818 if test "x$with_gtk" = "xx11"; then
6819 with_gtk=no
6820 fi
6822 fi
6827 else
6828 $as_echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 CPPFLAGS="$lxdream_save_cppflags"
6832 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6838 GUI_COCOA_TRUE=
6839 GUI_COCOA_FALSE='#'
6840 else
6841 GUI_COCOA_TRUE='#'
6842 GUI_COCOA_FALSE=
6843 fi
6848 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6855 $as_echo_n "(cached) " >&6
6856 else
6857 case $PKG_CONFIG in
6858 [\\/]* | ?:[\\/]*)
6859 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6860 ;;
6861 *)
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6877 ;;
6878 esac
6879 fi
6880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6881 if test -n "$PKG_CONFIG"; then
6882 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6883 $as_echo "$PKG_CONFIG" >&6; }
6884 else
6885 { $as_echo "$as_me:$LINENO: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6890 fi
6891 if test -z "$ac_cv_path_PKG_CONFIG"; then
6892 ac_pt_PKG_CONFIG=$PKG_CONFIG
6893 # Extract the first word of "pkg-config", so it can be a program name with args.
6894 set dummy pkg-config; ac_word=$2
6895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6898 $as_echo_n "(cached) " >&6
6899 else
6900 case $ac_pt_PKG_CONFIG in
6901 [\\/]* | ?:[\\/]*)
6902 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6920 ;;
6921 esac
6922 fi
6923 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6924 if test -n "$ac_pt_PKG_CONFIG"; then
6925 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6926 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6927 else
6928 { $as_echo "$as_me:$LINENO: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6932 if test "x$ac_pt_PKG_CONFIG" = x; then
6933 PKG_CONFIG=""
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6938 whose name does not start with the host triplet. If you think this
6939 configuration is useful to you, please write to autoconf@gnu.org." >&5
6940 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6941 whose name does not start with the host triplet. If you think this
6942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945 PKG_CONFIG=$ac_pt_PKG_CONFIG
6946 fi
6947 else
6948 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6949 fi
6951 fi
6952 if test -n "$PKG_CONFIG"; then
6953 _pkg_min_version=0.9.0
6954 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6955 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6956 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6957 { $as_echo "$as_me:$LINENO: result: yes" >&5
6958 $as_echo "yes" >&6; }
6959 else
6960 { $as_echo "$as_me:$LINENO: result: no" >&5
6961 $as_echo "no" >&6; }
6962 PKG_CONFIG=""
6963 fi
6965 fi
6967 pkg_failed=no
6968 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6969 $as_echo_n "checking for LIBPNG... " >&6; }
6971 if test -n "$PKG_CONFIG"; then
6972 if test -n "$LIBPNG_CFLAGS"; then
6973 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6974 else
6975 if test -n "$PKG_CONFIG" && \
6976 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6977 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6978 ac_status=$?
6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; then
6981 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6982 else
6983 pkg_failed=yes
6984 fi
6985 fi
6986 else
6987 pkg_failed=untried
6988 fi
6989 if test -n "$PKG_CONFIG"; then
6990 if test -n "$LIBPNG_LIBS"; then
6991 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6992 else
6993 if test -n "$PKG_CONFIG" && \
6994 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6995 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; then
6999 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
7000 else
7001 pkg_failed=yes
7002 fi
7003 fi
7004 else
7005 pkg_failed=untried
7006 fi
7010 if test $pkg_failed = yes; then
7012 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7013 _pkg_short_errors_supported=yes
7014 else
7015 _pkg_short_errors_supported=no
7016 fi
7017 if test $_pkg_short_errors_supported = yes; then
7018 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
7019 else
7020 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
7021 fi
7022 # Put the nasty error message in config.log where it belongs
7023 echo "$LIBPNG_PKG_ERRORS" >&5
7025 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
7027 $LIBPNG_PKG_ERRORS
7029 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7030 installed software in a non-standard prefix.
7032 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7033 and LIBPNG_LIBS to avoid the need to call pkg-config.
7034 See the pkg-config man page for more details.
7035 " >&5
7036 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
7038 $LIBPNG_PKG_ERRORS
7040 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7041 installed software in a non-standard prefix.
7043 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7044 and LIBPNG_LIBS to avoid the need to call pkg-config.
7045 See the pkg-config man page for more details.
7046 " >&2;}
7047 { (exit 1); exit 1; }; }
7048 elif test $pkg_failed = untried; then
7049 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7050 is in your PATH or set the PKG_CONFIG environment variable to the full
7051 path to pkg-config.
7053 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7054 and LIBPNG_LIBS to avoid the need to call pkg-config.
7055 See the pkg-config man page for more details.
7057 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7058 See \`config.log' for more details." >&5
7059 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7060 is in your PATH or set the PKG_CONFIG environment variable to the full
7061 path to pkg-config.
7063 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7064 and LIBPNG_LIBS to avoid the need to call pkg-config.
7065 See the pkg-config man page for more details.
7067 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7068 See \`config.log' for more details." >&2;}
7069 { (exit 1); exit 1; }; }
7070 else
7071 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
7072 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
7073 { $as_echo "$as_me:$LINENO: result: yes" >&5
7074 $as_echo "yes" >&6; }
7075 :
7076 fi
7079 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
7080 $as_echo_n "checking for uncompress in -lz... " >&6; }
7081 if test "${ac_cv_lib_z_uncompress+set}" = set; then
7082 $as_echo_n "(cached) " >&6
7083 else
7084 ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-lz $LIBS"
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7093 /* Override any GCC internal prototype to avoid an error.
7094 Use char because int might match the return type of a GCC
7095 builtin and then its argument prototype would still apply. */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 char uncompress ();
7100 int
7101 main ()
7102 {
7103 return uncompress ();
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (ac_try="$ac_link"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7115 $as_echo "$ac_try_echo") >&5
7116 (eval "$ac_link") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest$ac_exeext && {
7126 test "$cross_compiling" = yes ||
7127 $as_test_x conftest$ac_exeext
7128 }; then
7129 ac_cv_lib_z_uncompress=yes
7130 else
7131 $as_echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_cv_lib_z_uncompress=no
7135 fi
7137 rm -rf conftest.dSYM
7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139 conftest$ac_exeext conftest.$ac_ext
7140 LIBS=$ac_check_lib_save_LIBS
7141 fi
7142 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7143 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7144 if test $ac_cv_lib_z_uncompress = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_LIBZ 1
7147 _ACEOF
7149 LIBS="-lz $LIBS"
7151 else
7153 echo "Zlib (libz.so) could not be found, but is required."
7154 exit 1
7155 fi
7158 if test "x$with_gtk" = "xno"; then
7160 pkg_failed=no
7161 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7162 $as_echo_n "checking for GLIB... " >&6; }
7164 if test -n "$PKG_CONFIG"; then
7165 if test -n "$GLIB_CFLAGS"; then
7166 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7167 else
7168 if test -n "$PKG_CONFIG" && \
7169 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7170 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7171 ac_status=$?
7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; then
7174 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7175 else
7176 pkg_failed=yes
7177 fi
7178 fi
7179 else
7180 pkg_failed=untried
7181 fi
7182 if test -n "$PKG_CONFIG"; then
7183 if test -n "$GLIB_LIBS"; then
7184 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7185 else
7186 if test -n "$PKG_CONFIG" && \
7187 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7188 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; then
7192 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7193 else
7194 pkg_failed=yes
7195 fi
7196 fi
7197 else
7198 pkg_failed=untried
7199 fi
7203 if test $pkg_failed = yes; then
7205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7206 _pkg_short_errors_supported=yes
7207 else
7208 _pkg_short_errors_supported=no
7209 fi
7210 if test $_pkg_short_errors_supported = yes; then
7211 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7212 else
7213 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7214 fi
7215 # Put the nasty error message in config.log where it belongs
7216 echo "$GLIB_PKG_ERRORS" >&5
7218 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7220 $GLIB_PKG_ERRORS
7222 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7223 installed software in a non-standard prefix.
7225 Alternatively, you may set the environment variables GLIB_CFLAGS
7226 and GLIB_LIBS to avoid the need to call pkg-config.
7227 See the pkg-config man page for more details.
7228 " >&5
7229 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7231 $GLIB_PKG_ERRORS
7233 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7234 installed software in a non-standard prefix.
7236 Alternatively, you may set the environment variables GLIB_CFLAGS
7237 and GLIB_LIBS to avoid the need to call pkg-config.
7238 See the pkg-config man page for more details.
7239 " >&2;}
7240 { (exit 1); exit 1; }; }
7241 elif test $pkg_failed = untried; then
7242 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7243 is in your PATH or set the PKG_CONFIG environment variable to the full
7244 path to pkg-config.
7246 Alternatively, you may set the environment variables GLIB_CFLAGS
7247 and GLIB_LIBS to avoid the need to call pkg-config.
7248 See the pkg-config man page for more details.
7250 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7251 See \`config.log' for more details." >&5
7252 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7253 is in your PATH or set the PKG_CONFIG environment variable to the full
7254 path to pkg-config.
7256 Alternatively, you may set the environment variables GLIB_CFLAGS
7257 and GLIB_LIBS to avoid the need to call pkg-config.
7258 See the pkg-config man page for more details.
7260 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7261 See \`config.log' for more details." >&2;}
7262 { (exit 1); exit 1; }; }
7263 else
7264 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7265 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7266 { $as_echo "$as_me:$LINENO: result: yes" >&5
7267 $as_echo "yes" >&6; }
7268 :
7269 fi
7270 else
7272 pkg_failed=no
7273 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7274 $as_echo_n "checking for GTK... " >&6; }
7276 if test -n "$PKG_CONFIG"; then
7277 if test -n "$GTK_CFLAGS"; then
7278 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7279 else
7280 if test -n "$PKG_CONFIG" && \
7281 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7282 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7283 ac_status=$?
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; then
7286 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7287 else
7288 pkg_failed=yes
7289 fi
7290 fi
7291 else
7292 pkg_failed=untried
7293 fi
7294 if test -n "$PKG_CONFIG"; then
7295 if test -n "$GTK_LIBS"; then
7296 pkg_cv_GTK_LIBS="$GTK_LIBS"
7297 else
7298 if test -n "$PKG_CONFIG" && \
7299 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7300 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; then
7304 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7305 else
7306 pkg_failed=yes
7307 fi
7308 fi
7309 else
7310 pkg_failed=untried
7311 fi
7315 if test $pkg_failed = yes; then
7317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7318 _pkg_short_errors_supported=yes
7319 else
7320 _pkg_short_errors_supported=no
7321 fi
7322 if test $_pkg_short_errors_supported = yes; then
7323 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7324 else
7325 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7326 fi
7327 # Put the nasty error message in config.log where it belongs
7328 echo "$GTK_PKG_ERRORS" >&5
7330 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7332 $GTK_PKG_ERRORS
7334 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7335 installed software in a non-standard prefix.
7337 Alternatively, you may set the environment variables GTK_CFLAGS
7338 and GTK_LIBS to avoid the need to call pkg-config.
7339 See the pkg-config man page for more details.
7340 " >&5
7341 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7343 $GTK_PKG_ERRORS
7345 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7346 installed software in a non-standard prefix.
7348 Alternatively, you may set the environment variables GTK_CFLAGS
7349 and GTK_LIBS to avoid the need to call pkg-config.
7350 See the pkg-config man page for more details.
7351 " >&2;}
7352 { (exit 1); exit 1; }; }
7353 elif test $pkg_failed = untried; then
7354 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7355 is in your PATH or set the PKG_CONFIG environment variable to the full
7356 path to pkg-config.
7358 Alternatively, you may set the environment variables GTK_CFLAGS
7359 and GTK_LIBS to avoid the need to call pkg-config.
7360 See the pkg-config man page for more details.
7362 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7363 See \`config.log' for more details." >&5
7364 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7365 is in your PATH or set the PKG_CONFIG environment variable to the full
7366 path to pkg-config.
7368 Alternatively, you may set the environment variables GTK_CFLAGS
7369 and GTK_LIBS to avoid the need to call pkg-config.
7370 See the pkg-config man page for more details.
7372 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7373 See \`config.log' for more details." >&2;}
7374 { (exit 1); exit 1; }; }
7375 else
7376 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7377 GTK_LIBS=$pkg_cv_GTK_LIBS
7378 { $as_echo "$as_me:$LINENO: result: yes" >&5
7379 $as_echo "yes" >&6; }
7381 HAVE_GTK='yes'
7383 cat >>confdefs.h <<\_ACEOF
7384 #define HAVE_GTK 1
7385 _ACEOF
7388 fi
7390 LIBS="$LIBS $GTK_LIBS"
7391 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7392 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7393 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7394 $as_echo_n "(cached) " >&6
7395 else
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7404 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409 <limits.h> exists even on freestanding compilers. */
7411 #ifdef __STDC__
7412 # include <limits.h>
7413 #else
7414 # include <assert.h>
7415 #endif
7417 #undef gdk_x11_display_get_xdisplay
7419 /* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 char gdk_x11_display_get_xdisplay ();
7426 /* The GNU C library defines this for functions which it implements
7427 to always fail with ENOSYS. Some functions are actually named
7428 something starting with __ and the normal name is an alias. */
7429 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7430 choke me
7431 #endif
7433 int
7434 main ()
7435 {
7436 return gdk_x11_display_get_xdisplay ();
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (ac_try="$ac_link"
7443 case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446 esac
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449 (eval "$ac_link") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest$ac_exeext && {
7459 test "$cross_compiling" = yes ||
7460 $as_test_x conftest$ac_exeext
7461 }; then
7462 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7463 else
7464 $as_echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_cv_func_gdk_x11_display_get_xdisplay=no
7468 fi
7470 rm -rf conftest.dSYM
7471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7472 conftest$ac_exeext conftest.$ac_ext
7473 fi
7474 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7475 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7476 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7478 HAVE_GTK_X11='yes'
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_GTK_X11 1
7482 _ACEOF
7484 fi
7486 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7487 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7488 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7489 $as_echo_n "(cached) " >&6
7490 else
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7499 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7501 /* System header to define __stub macros and hopefully few prototypes,
7502 which can conflict with char gdk_quartz_window_get_nsview (); below.
7503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7504 <limits.h> exists even on freestanding compilers. */
7506 #ifdef __STDC__
7507 # include <limits.h>
7508 #else
7509 # include <assert.h>
7510 #endif
7512 #undef gdk_quartz_window_get_nsview
7514 /* Override any GCC internal prototype to avoid an error.
7515 Use char because int might match the return type of a GCC
7516 builtin and then its argument prototype would still apply. */
7517 #ifdef __cplusplus
7518 extern "C"
7519 #endif
7520 char gdk_quartz_window_get_nsview ();
7521 /* The GNU C library defines this for functions which it implements
7522 to always fail with ENOSYS. Some functions are actually named
7523 something starting with __ and the normal name is an alias. */
7524 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7525 choke me
7526 #endif
7528 int
7529 main ()
7530 {
7531 return gdk_quartz_window_get_nsview ();
7532 ;
7533 return 0;
7534 }
7535 _ACEOF
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (ac_try="$ac_link"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_link") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest$ac_exeext && {
7554 test "$cross_compiling" = yes ||
7555 $as_test_x conftest$ac_exeext
7556 }; then
7557 ac_cv_func_gdk_quartz_window_get_nsview=yes
7558 else
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 ac_cv_func_gdk_quartz_window_get_nsview=no
7563 fi
7565 rm -rf conftest.dSYM
7566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7567 conftest$ac_exeext conftest.$ac_ext
7568 fi
7569 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7570 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7571 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7573 HAVE_GTK_OSX='yes'
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_GTK_OSX 1
7577 _ACEOF
7579 fi
7581 fi
7585 if test "$HAVE_GTK" = 'yes'; then
7586 GUI_GTK_TRUE=
7587 GUI_GTK_FALSE='#'
7588 else
7589 GUI_GTK_TRUE='#'
7590 GUI_GTK_FALSE=
7591 fi
7594 if test "x$with_osmesa" != xno; then
7598 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7599 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7600 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7601 $as_echo_n "(cached) " >&6
7602 else
7603 ac_check_lib_save_LIBS=$LIBS
7604 LIBS="-lOSMesa $LIBS"
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7612 /* Override any GCC internal prototype to avoid an error.
7613 Use char because int might match the return type of a GCC
7614 builtin and then its argument prototype would still apply. */
7615 #ifdef __cplusplus
7616 extern "C"
7617 #endif
7618 char OSMesaCreateContext ();
7619 int
7620 main ()
7621 {
7622 return OSMesaCreateContext ();
7623 ;
7624 return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (ac_try="$ac_link"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7634 $as_echo "$ac_try_echo") >&5
7635 (eval "$ac_link") 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest$ac_exeext && {
7645 test "$cross_compiling" = yes ||
7646 $as_test_x conftest$ac_exeext
7647 }; then
7648 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7649 else
7650 $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7654 fi
7656 rm -rf conftest.dSYM
7657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7660 fi
7661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7662 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7663 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7664 cat >>confdefs.h <<_ACEOF
7665 #define HAVE_LIBOSMESA 1
7666 _ACEOF
7668 LIBS="-lOSMesa $LIBS"
7670 else
7671 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7672 See \`config.log' for more details." >&5
7673 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7674 See \`config.log' for more details." >&2;}
7675 { (exit 1); exit 1; }; }
7676 fi
7678 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7679 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7680 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7681 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7682 $as_echo_n "(cached) " >&6
7683 fi
7684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7685 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7686 else
7687 # Is the header compilable?
7688 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7689 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 #include <GL/osmesa.h>
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7706 $as_echo "$ac_try_echo") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 ac_header_compiler=yes
7718 else
7719 $as_echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_header_compiler=no
7723 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7727 $as_echo "$ac_header_compiler" >&6; }
7729 # Is the header present?
7730 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7731 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 #include <GL/osmesa.h>
7739 _ACEOF
7740 if { (ac_try="$ac_cpp conftest.$ac_ext"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7746 $as_echo "$ac_try_echo") >&5
7747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } >/dev/null && {
7754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 }; then
7757 ac_header_preproc=yes
7758 else
7759 $as_echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_header_preproc=no
7763 fi
7765 rm -f conftest.err conftest.$ac_ext
7766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767 $as_echo "$ac_header_preproc" >&6; }
7769 # So? What about this header?
7770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7771 yes:no: )
7772 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7773 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7774 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7775 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7776 ac_header_preproc=yes
7777 ;;
7778 no:yes:* )
7779 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7780 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7781 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7782 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7783 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7784 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7785 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7786 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7787 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7788 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7789 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7790 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7792 ;;
7793 esac
7794 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7795 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7796 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7797 $as_echo_n "(cached) " >&6
7798 else
7799 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7800 fi
7801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7802 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7804 fi
7805 if test $ac_cv_header_GL_osmesa_h = yes; then
7806 :
7807 else
7808 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7809 See \`config.log' for more details." >&5
7810 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7811 See \`config.log' for more details." >&2;}
7812 { (exit 1); exit 1; }; }
7813 fi
7816 HAVE_OSMESA='yes'
7817 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_OSMESA 1
7821 _ACEOF
7823 else
7826 if test "x$APPLE_BUILD" != 'xyes'; then
7828 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7829 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7830 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7831 $as_echo_n "(cached) " >&6
7832 else
7833 ac_check_lib_save_LIBS=$LIBS
7834 LIBS="-lGL $LIBS"
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7842 /* Override any GCC internal prototype to avoid an error.
7843 Use char because int might match the return type of a GCC
7844 builtin and then its argument prototype would still apply. */
7845 #ifdef __cplusplus
7846 extern "C"
7847 #endif
7848 char glVertex3f ();
7849 int
7850 main ()
7851 {
7852 return glVertex3f ();
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 rm -f conftest.$ac_objext conftest$ac_exeext
7858 if { (ac_try="$ac_link"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7864 $as_echo "$ac_try_echo") >&5
7865 (eval "$ac_link") 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest$ac_exeext && {
7875 test "$cross_compiling" = yes ||
7876 $as_test_x conftest$ac_exeext
7877 }; then
7878 ac_cv_lib_GL_glVertex3f=yes
7879 else
7880 $as_echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_cv_lib_GL_glVertex3f=no
7884 fi
7886 rm -rf conftest.dSYM
7887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7888 conftest$ac_exeext conftest.$ac_ext
7889 LIBS=$ac_check_lib_save_LIBS
7890 fi
7891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7892 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7893 if test $ac_cv_lib_GL_glVertex3f = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define HAVE_LIBGL 1
7896 _ACEOF
7898 LIBS="-lGL $LIBS"
7900 else
7902 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7903 See \`config.log' for more details." >&5
7904 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7905 See \`config.log' for more details." >&2;}
7906 { (exit 1); exit 1; }; }
7907 fi
7909 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7910 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7911 $as_echo_n "checking for GL/gl.h... " >&6; }
7912 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7913 $as_echo_n "(cached) " >&6
7914 fi
7915 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7916 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7917 else
7918 # Is the header compilable?
7919 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7920 $as_echo_n "checking GL/gl.h usability... " >&6; }
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 #include <GL/gl.h>
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7937 $as_echo "$ac_try_echo") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_header_compiler=yes
7949 else
7950 $as_echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_header_compiler=no
7954 fi
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7958 $as_echo "$ac_header_compiler" >&6; }
7960 # Is the header present?
7961 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7962 $as_echo_n "checking GL/gl.h presence... " >&6; }
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <GL/gl.h>
7970 _ACEOF
7971 if { (ac_try="$ac_cpp conftest.$ac_ext"
7972 case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975 esac
7976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7977 $as_echo "$ac_try_echo") >&5
7978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } >/dev/null && {
7985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 }; then
7988 ac_header_preproc=yes
7989 else
7990 $as_echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_header_preproc=no
7994 fi
7996 rm -f conftest.err conftest.$ac_ext
7997 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7998 $as_echo "$ac_header_preproc" >&6; }
8000 # So? What about this header?
8001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8002 yes:no: )
8003 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8004 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8005 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
8006 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
8007 ac_header_preproc=yes
8008 ;;
8009 no:yes:* )
8010 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
8011 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
8012 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
8013 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
8014 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
8015 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
8016 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
8017 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8018 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
8019 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
8020 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
8021 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
8023 ;;
8024 esac
8025 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8026 $as_echo_n "checking for GL/gl.h... " >&6; }
8027 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8028 $as_echo_n "(cached) " >&6
8029 else
8030 ac_cv_header_GL_gl_h=$ac_header_preproc
8031 fi
8032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8033 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8035 fi
8036 if test $ac_cv_header_GL_gl_h = yes; then
8037 :
8038 else
8040 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8041 See \`config.log' for more details." >&5
8042 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8043 See \`config.log' for more details." >&2;}
8044 { (exit 1); exit 1; }; }
8045 fi
8048 else
8049 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
8050 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
8051 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
8052 $as_echo_n "(cached) " >&6
8053 else
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
8061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8062 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char NSOpenGLGetVersion (); below.
8066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067 <limits.h> exists even on freestanding compilers. */
8069 #ifdef __STDC__
8070 # include <limits.h>
8071 #else
8072 # include <assert.h>
8073 #endif
8075 #undef NSOpenGLGetVersion
8077 /* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8080 #ifdef __cplusplus
8081 extern "C"
8082 #endif
8083 char NSOpenGLGetVersion ();
8084 /* The GNU C library defines this for functions which it implements
8085 to always fail with ENOSYS. Some functions are actually named
8086 something starting with __ and the normal name is an alias. */
8087 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
8088 choke me
8089 #endif
8091 int
8092 main ()
8093 {
8094 return NSOpenGLGetVersion ();
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 rm -f conftest.$ac_objext conftest$ac_exeext
8100 if { (ac_try="$ac_link"
8101 case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104 esac
8105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8106 $as_echo "$ac_try_echo") >&5
8107 (eval "$ac_link") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest$ac_exeext && {
8117 test "$cross_compiling" = yes ||
8118 $as_test_x conftest$ac_exeext
8119 }; then
8120 ac_cv_func_NSOpenGLGetVersion=yes
8121 else
8122 $as_echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_func_NSOpenGLGetVersion=no
8126 fi
8128 rm -rf conftest.dSYM
8129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8130 conftest$ac_exeext conftest.$ac_ext
8131 fi
8132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8133 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8134 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8136 HAVE_NSGL='yes'
8137 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
8139 cat >>confdefs.h <<\_ACEOF
8140 #define HAVE_NSGL 1
8141 _ACEOF
8143 fi
8145 fi
8147 if test "x$HAVE_GTK_X11" = "xyes"; then
8148 if test "x$APPLE_BUILD" = "xyes"; then
8149 LIBS="$LIBS -L/usr/X11/lib -lGL"
8150 fi
8151 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8152 $as_echo_n "checking for glXQueryVersion... " >&6; }
8153 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8154 $as_echo_n "(cached) " >&6
8155 else
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8164 #define glXQueryVersion innocuous_glXQueryVersion
8166 /* System header to define __stub macros and hopefully few prototypes,
8167 which can conflict with char glXQueryVersion (); below.
8168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8169 <limits.h> exists even on freestanding compilers. */
8171 #ifdef __STDC__
8172 # include <limits.h>
8173 #else
8174 # include <assert.h>
8175 #endif
8177 #undef glXQueryVersion
8179 /* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8182 #ifdef __cplusplus
8183 extern "C"
8184 #endif
8185 char glXQueryVersion ();
8186 /* The GNU C library defines this for functions which it implements
8187 to always fail with ENOSYS. Some functions are actually named
8188 something starting with __ and the normal name is an alias. */
8189 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8190 choke me
8191 #endif
8193 int
8194 main ()
8195 {
8196 return glXQueryVersion ();
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8203 case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206 esac
8207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208 $as_echo "$ac_try_echo") >&5
8209 (eval "$ac_link") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest$ac_exeext && {
8219 test "$cross_compiling" = yes ||
8220 $as_test_x conftest$ac_exeext
8221 }; then
8222 ac_cv_func_glXQueryVersion=yes
8223 else
8224 $as_echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_func_glXQueryVersion=no
8228 fi
8230 rm -rf conftest.dSYM
8231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8232 conftest$ac_exeext conftest.$ac_ext
8233 fi
8234 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8235 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8236 if test $ac_cv_func_glXQueryVersion = yes; then
8238 HAVE_GLX='yes'
8239 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
8241 cat >>confdefs.h <<\_ACEOF
8242 #define HAVE_GLX 1
8243 _ACEOF
8245 fi
8247 fi
8250 fi
8257 if test "x$HAVE_OSMESA" = "xyes"; then
8258 VIDEO_OSMESA_TRUE=
8259 VIDEO_OSMESA_FALSE='#'
8260 else
8261 VIDEO_OSMESA_TRUE='#'
8262 VIDEO_OSMESA_FALSE=
8263 fi
8267 if test "x$HAVE_GLX" = "xyes"; then
8268 VIDEO_GLX_TRUE=
8269 VIDEO_GLX_FALSE='#'
8270 else
8271 VIDEO_GLX_TRUE='#'
8272 VIDEO_GLX_FALSE=
8273 fi
8277 if test "x$HAVE_NSGL" = "xyes"; then
8278 VIDEO_NSGL_TRUE=
8279 VIDEO_NSGL_FALSE='#'
8280 else
8281 VIDEO_NSGL_TRUE='#'
8282 VIDEO_NSGL_FALSE=
8283 fi
8286 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8287 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8288 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8289 $as_echo_n "(cached) " >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8299 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8301 /* System header to define __stub macros and hopefully few prototypes,
8302 which can conflict with char glGenFramebuffersEXT (); below.
8303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8304 <limits.h> exists even on freestanding compilers. */
8306 #ifdef __STDC__
8307 # include <limits.h>
8308 #else
8309 # include <assert.h>
8310 #endif
8312 #undef glGenFramebuffersEXT
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 char glGenFramebuffersEXT ();
8321 /* The GNU C library defines this for functions which it implements
8322 to always fail with ENOSYS. Some functions are actually named
8323 something starting with __ and the normal name is an alias. */
8324 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8325 choke me
8326 #endif
8328 int
8329 main ()
8330 {
8331 return glGenFramebuffersEXT ();
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_link") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext && {
8354 test "$cross_compiling" = yes ||
8355 $as_test_x conftest$ac_exeext
8356 }; then
8357 ac_cv_func_glGenFramebuffersEXT=yes
8358 else
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 ac_cv_func_glGenFramebuffersEXT=no
8363 fi
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8370 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8371 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_OPENGL_FBO 1
8375 _ACEOF
8377 fi
8379 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8380 $as_echo_n "checking for glCreateShader... " >&6; }
8381 if test "${ac_cv_func_glCreateShader+set}" = set; then
8382 $as_echo_n "(cached) " >&6
8383 else
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8392 #define glCreateShader innocuous_glCreateShader
8394 /* System header to define __stub macros and hopefully few prototypes,
8395 which can conflict with char glCreateShader (); below.
8396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397 <limits.h> exists even on freestanding compilers. */
8399 #ifdef __STDC__
8400 # include <limits.h>
8401 #else
8402 # include <assert.h>
8403 #endif
8405 #undef glCreateShader
8407 /* Override any GCC internal prototype to avoid an error.
8408 Use char because int might match the return type of a GCC
8409 builtin and then its argument prototype would still apply. */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 char glCreateShader ();
8414 /* The GNU C library defines this for functions which it implements
8415 to always fail with ENOSYS. Some functions are actually named
8416 something starting with __ and the normal name is an alias. */
8417 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8418 choke me
8419 #endif
8421 int
8422 main ()
8423 {
8424 return glCreateShader ();
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext conftest$ac_exeext
8430 if { (ac_try="$ac_link"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8436 $as_echo "$ac_try_echo") >&5
8437 (eval "$ac_link") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest$ac_exeext && {
8447 test "$cross_compiling" = yes ||
8448 $as_test_x conftest$ac_exeext
8449 }; then
8450 ac_cv_func_glCreateShader=yes
8451 else
8452 $as_echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8455 ac_cv_func_glCreateShader=no
8456 fi
8458 rm -rf conftest.dSYM
8459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8460 conftest$ac_exeext conftest.$ac_ext
8461 fi
8462 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8463 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8464 if test $ac_cv_func_glCreateShader = yes; then
8466 cat >>confdefs.h <<\_ACEOF
8467 #define HAVE_OPENGL_SHADER 1
8468 _ACEOF
8470 fi
8472 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8473 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8474 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8475 $as_echo_n "(cached) " >&6
8476 else
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8485 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8487 /* System header to define __stub macros and hopefully few prototypes,
8488 which can conflict with char glCreateShaderObjectARB (); below.
8489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8490 <limits.h> exists even on freestanding compilers. */
8492 #ifdef __STDC__
8493 # include <limits.h>
8494 #else
8495 # include <assert.h>
8496 #endif
8498 #undef glCreateShaderObjectARB
8500 /* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply. */
8503 #ifdef __cplusplus
8504 extern "C"
8505 #endif
8506 char glCreateShaderObjectARB ();
8507 /* The GNU C library defines this for functions which it implements
8508 to always fail with ENOSYS. Some functions are actually named
8509 something starting with __ and the normal name is an alias. */
8510 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8511 choke me
8512 #endif
8514 int
8515 main ()
8516 {
8517 return glCreateShaderObjectARB ();
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (ac_try="$ac_link"
8524 case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527 esac
8528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529 $as_echo "$ac_try_echo") >&5
8530 (eval "$ac_link") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest$ac_exeext && {
8540 test "$cross_compiling" = yes ||
8541 $as_test_x conftest$ac_exeext
8542 }; then
8543 ac_cv_func_glCreateShaderObjectARB=yes
8544 else
8545 $as_echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_func_glCreateShaderObjectARB=no
8549 fi
8551 rm -rf conftest.dSYM
8552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8553 conftest$ac_exeext conftest.$ac_ext
8554 fi
8555 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8556 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8557 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8559 cat >>confdefs.h <<\_ACEOF
8560 #define HAVE_OPENGL_SHADER_ARB 1
8561 _ACEOF
8563 fi
8565 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8566 $as_echo_n "checking for glClampColorARB... " >&6; }
8567 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8568 $as_echo_n "(cached) " >&6
8569 else
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8578 #define glClampColorARB innocuous_glClampColorARB
8580 /* System header to define __stub macros and hopefully few prototypes,
8581 which can conflict with char glClampColorARB (); below.
8582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8583 <limits.h> exists even on freestanding compilers. */
8585 #ifdef __STDC__
8586 # include <limits.h>
8587 #else
8588 # include <assert.h>
8589 #endif
8591 #undef glClampColorARB
8593 /* Override any GCC internal prototype to avoid an error.
8594 Use char because int might match the return type of a GCC
8595 builtin and then its argument prototype would still apply. */
8596 #ifdef __cplusplus
8597 extern "C"
8598 #endif
8599 char glClampColorARB ();
8600 /* The GNU C library defines this for functions which it implements
8601 to always fail with ENOSYS. Some functions are actually named
8602 something starting with __ and the normal name is an alias. */
8603 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8604 choke me
8605 #endif
8607 int
8608 main ()
8609 {
8610 return glClampColorARB ();
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (ac_try="$ac_link"
8617 case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620 esac
8621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8622 $as_echo "$ac_try_echo") >&5
8623 (eval "$ac_link") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest$ac_exeext && {
8633 test "$cross_compiling" = yes ||
8634 $as_test_x conftest$ac_exeext
8635 }; then
8636 ac_cv_func_glClampColorARB=yes
8637 else
8638 $as_echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ac_cv_func_glClampColorARB=no
8642 fi
8644 rm -rf conftest.dSYM
8645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8646 conftest$ac_exeext conftest.$ac_ext
8647 fi
8648 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8649 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8650 if test $ac_cv_func_glClampColorARB = yes; then
8652 cat >>confdefs.h <<\_ACEOF
8653 #define HAVE_OPENGL_CLAMP_COLOR 1
8654 _ACEOF
8656 fi
8661 if test "x$enable_translator" != "xno"; then
8662 case $host_cpu in
8663 i386|i486|i586|i686|x86_64)
8664 SH4_TRANSLATOR="x86"
8666 cat >>confdefs.h <<_ACEOF
8667 #define SH4_TRANSLATOR TARGET_X86
8668 _ACEOF
8669 ;;
8670 esac
8671 fi
8674 if test "$SH4_TRANSLATOR" = "x86"; then
8675 BUILD_SH4X86_TRUE=
8676 BUILD_SH4X86_FALSE='#'
8677 else
8678 BUILD_SH4X86_TRUE='#'
8679 BUILD_SH4X86_FALSE=
8680 fi
8683 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8684 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8685 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8686 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8687 $as_echo_n "(cached) " >&6
8688 fi
8689 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8690 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8691 else
8692 # Is the header compilable?
8693 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
8694 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h. */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 $ac_includes_default
8702 #include <CoreAudio/CoreAudio.h>
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_header_compiler=yes
8723 else
8724 $as_echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_header_compiler=no
8728 fi
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8732 $as_echo "$ac_header_compiler" >&6; }
8734 # Is the header present?
8735 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
8736 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #include <CoreAudio/CoreAudio.h>
8744 _ACEOF
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8746 case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749 esac
8750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8751 $as_echo "$ac_try_echo") >&5
8752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } >/dev/null && {
8759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 }; then
8762 ac_header_preproc=yes
8763 else
8764 $as_echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8767 ac_header_preproc=no
8768 fi
8770 rm -f conftest.err conftest.$ac_ext
8771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8772 $as_echo "$ac_header_preproc" >&6; }
8774 # So? What about this header?
8775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8776 yes:no: )
8777 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8778 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8779 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
8780 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
8781 ac_header_preproc=yes
8782 ;;
8783 no:yes:* )
8784 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
8785 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
8786 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
8787 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
8788 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
8789 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
8790 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
8791 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8792 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8793 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
8794 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
8795 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
8797 ;;
8798 esac
8799 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8800 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8801 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8802 $as_echo_n "(cached) " >&6
8803 else
8804 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
8805 fi
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8807 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8809 fi
8810 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
8812 HAVE_CORE_AUDIO=yes
8813 LIBS="$LIBS -framework CoreAudio"
8814 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
8816 cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_CORE_AUDIO 1
8818 _ACEOF
8820 else
8821 true
8822 fi
8827 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
8828 AUDIO_OSX_TRUE=
8829 AUDIO_OSX_FALSE='#'
8830 else
8831 AUDIO_OSX_TRUE='#'
8832 AUDIO_OSX_FALSE=
8833 fi
8836 if test "x$with_pulse" != "xno"; then
8838 pkg_failed=no
8839 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8840 $as_echo_n "checking for PULSE... " >&6; }
8842 if test -n "$PKG_CONFIG"; then
8843 if test -n "$PULSE_CFLAGS"; then
8844 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8845 else
8846 if test -n "$PKG_CONFIG" && \
8847 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8848 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8849 ac_status=$?
8850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; then
8852 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8853 else
8854 pkg_failed=yes
8855 fi
8856 fi
8857 else
8858 pkg_failed=untried
8859 fi
8860 if test -n "$PKG_CONFIG"; then
8861 if test -n "$PULSE_LIBS"; then
8862 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8863 else
8864 if test -n "$PKG_CONFIG" && \
8865 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8866 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8867 ac_status=$?
8868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; then
8870 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8871 else
8872 pkg_failed=yes
8873 fi
8874 fi
8875 else
8876 pkg_failed=untried
8877 fi
8881 if test $pkg_failed = yes; then
8883 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8884 _pkg_short_errors_supported=yes
8885 else
8886 _pkg_short_errors_supported=no
8887 fi
8888 if test $_pkg_short_errors_supported = yes; then
8889 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8890 else
8891 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8892 fi
8893 # Put the nasty error message in config.log where it belongs
8894 echo "$PULSE_PKG_ERRORS" >&5
8896 { $as_echo "$as_me:$LINENO: result: no" >&5
8897 $as_echo "no" >&6; }
8899 if test "x$with_pulse" = "xyes"; then
8900 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8901 See \`config.log' for more details." >&5
8902 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8903 See \`config.log' for more details." >&2;}
8904 { (exit 1); exit 1; }; }
8905 fi
8907 elif test $pkg_failed = untried; then
8909 if test "x$with_pulse" = "xyes"; then
8910 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
8911 See \`config.log' for more details." >&5
8912 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
8913 See \`config.log' for more details." >&2;}
8914 { (exit 1); exit 1; }; }
8915 fi
8917 else
8918 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8919 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8920 { $as_echo "$as_me:$LINENO: result: yes" >&5
8921 $as_echo "yes" >&6; }
8923 HAVE_PULSE='yes'
8924 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_PULSE 1
8928 _ACEOF
8931 fi
8932 fi
8935 if test "$HAVE_PULSE" = 'yes' ; then
8936 AUDIO_PULSE_TRUE=
8937 AUDIO_PULSE_FALSE='#'
8938 else
8939 AUDIO_PULSE_TRUE='#'
8940 AUDIO_PULSE_FALSE=
8941 fi
8944 if test "x$with_esd" != "xno"; then
8946 pkg_failed=no
8947 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8948 $as_echo_n "checking for ESOUND... " >&6; }
8950 if test -n "$PKG_CONFIG"; then
8951 if test -n "$ESOUND_CFLAGS"; then
8952 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8953 else
8954 if test -n "$PKG_CONFIG" && \
8955 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8956 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8957 ac_status=$?
8958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; then
8960 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8961 else
8962 pkg_failed=yes
8963 fi
8964 fi
8965 else
8966 pkg_failed=untried
8967 fi
8968 if test -n "$PKG_CONFIG"; then
8969 if test -n "$ESOUND_LIBS"; then
8970 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8971 else
8972 if test -n "$PKG_CONFIG" && \
8973 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8974 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8975 ac_status=$?
8976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; then
8978 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8979 else
8980 pkg_failed=yes
8981 fi
8982 fi
8983 else
8984 pkg_failed=untried
8985 fi
8989 if test $pkg_failed = yes; then
8991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8992 _pkg_short_errors_supported=yes
8993 else
8994 _pkg_short_errors_supported=no
8995 fi
8996 if test $_pkg_short_errors_supported = yes; then
8997 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8998 else
8999 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
9000 fi
9001 # Put the nasty error message in config.log where it belongs
9002 echo "$ESOUND_PKG_ERRORS" >&5
9004 { $as_echo "$as_me:$LINENO: result: no" >&5
9005 $as_echo "no" >&6; }
9007 if test "x$with_esd" = "xyes"; then
9008 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9009 See \`config.log' for more details." >&5
9010 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9011 See \`config.log' for more details." >&2;}
9012 { (exit 1); exit 1; }; }
9013 fi
9015 elif test $pkg_failed = untried; then
9017 if test "x$with_esd" = "xyes"; then
9018 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
9019 See \`config.log' for more details." >&5
9020 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
9021 See \`config.log' for more details." >&2;}
9022 { (exit 1); exit 1; }; }
9023 fi
9025 else
9026 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
9027 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
9028 { $as_echo "$as_me:$LINENO: result: yes" >&5
9029 $as_echo "yes" >&6; }
9031 HAVE_ESOUND='yes'
9032 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_ESOUND 1
9036 _ACEOF
9039 fi
9040 fi
9043 if test "$HAVE_ESOUND" = 'yes' ; then
9044 AUDIO_ESOUND_TRUE=
9045 AUDIO_ESOUND_FALSE='#'
9046 else
9047 AUDIO_ESOUND_TRUE='#'
9048 AUDIO_ESOUND_FALSE=
9049 fi
9053 pkg_failed=no
9054 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
9055 $as_echo_n "checking for ALSA... " >&6; }
9057 if test -n "$PKG_CONFIG"; then
9058 if test -n "$ALSA_CFLAGS"; then
9059 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
9060 else
9061 if test -n "$PKG_CONFIG" && \
9062 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9063 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9064 ac_status=$?
9065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; then
9067 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
9068 else
9069 pkg_failed=yes
9070 fi
9071 fi
9072 else
9073 pkg_failed=untried
9074 fi
9075 if test -n "$PKG_CONFIG"; then
9076 if test -n "$ALSA_LIBS"; then
9077 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
9078 else
9079 if test -n "$PKG_CONFIG" && \
9080 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9081 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9082 ac_status=$?
9083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; then
9085 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
9086 else
9087 pkg_failed=yes
9088 fi
9089 fi
9090 else
9091 pkg_failed=untried
9092 fi
9096 if test $pkg_failed = yes; then
9098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9099 _pkg_short_errors_supported=yes
9100 else
9101 _pkg_short_errors_supported=no
9102 fi
9103 if test $_pkg_short_errors_supported = yes; then
9104 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
9105 else
9106 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
9107 fi
9108 # Put the nasty error message in config.log where it belongs
9109 echo "$ALSA_PKG_ERRORS" >&5
9111 { $as_echo "$as_me:$LINENO: result: no" >&5
9112 $as_echo "no" >&6; }
9113 true
9114 elif test $pkg_failed = untried; then
9115 true
9116 else
9117 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
9118 ALSA_LIBS=$pkg_cv_ALSA_LIBS
9119 { $as_echo "$as_me:$LINENO: result: yes" >&5
9120 $as_echo "yes" >&6; }
9122 HAVE_ALSA='yes'
9123 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
9125 cat >>confdefs.h <<\_ACEOF
9126 #define HAVE_ALSA 1
9127 _ACEOF
9129 fi
9132 if test "$HAVE_ALSA" = 'yes' ; then
9133 AUDIO_ALSA_TRUE=
9134 AUDIO_ALSA_FALSE='#'
9135 else
9136 AUDIO_ALSA_TRUE='#'
9137 AUDIO_ALSA_FALSE=
9138 fi
9142 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9143 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9144 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9145 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9146 $as_echo_n "(cached) " >&6
9147 fi
9148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9149 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9150 else
9151 # Is the header compilable?
9152 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
9153 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9161 #include <linux/cdrom.h>
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (ac_try="$ac_compile"
9165 case "(($ac_try" in
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9168 esac
9169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9170 $as_echo "$ac_try_echo") >&5
9171 (eval "$ac_compile") 2>conftest.er1
9172 ac_status=$?
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
9176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } && {
9178 test -z "$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9180 } && test -s conftest.$ac_objext; then
9181 ac_header_compiler=yes
9182 else
9183 $as_echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_header_compiler=no
9187 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9191 $as_echo "$ac_header_compiler" >&6; }
9193 # Is the header present?
9194 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
9195 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 #include <linux/cdrom.h>
9203 _ACEOF
9204 if { (ac_try="$ac_cpp conftest.$ac_ext"
9205 case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208 esac
9209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9210 $as_echo "$ac_try_echo") >&5
9211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev/null && {
9218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 }; then
9221 ac_header_preproc=yes
9222 else
9223 $as_echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_header_preproc=no
9227 fi
9229 rm -f conftest.err conftest.$ac_ext
9230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9231 $as_echo "$ac_header_preproc" >&6; }
9233 # So? What about this header?
9234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9235 yes:no: )
9236 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
9237 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9238 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
9239 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
9240 ac_header_preproc=yes
9241 ;;
9242 no:yes:* )
9243 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
9244 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
9245 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
9246 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
9247 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
9248 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
9249 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
9250 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
9251 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
9252 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
9253 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
9254 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
9256 ;;
9257 esac
9258 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9259 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9260 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9261 $as_echo_n "(cached) " >&6
9262 else
9263 ac_cv_header_linux_cdrom_h=$ac_header_preproc
9264 fi
9265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9266 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9268 fi
9269 if test $ac_cv_header_linux_cdrom_h = yes; then
9270 CDROM_DRIVER=linux
9271 else
9272 true
9273 fi
9276 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9277 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9278 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9279 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9280 $as_echo_n "(cached) " >&6
9281 fi
9282 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9283 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9284 else
9285 # Is the header compilable?
9286 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
9287 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 $ac_includes_default
9295 #include <IOKit/IOKitLib.h>
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9299 case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302 esac
9303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9304 $as_echo "$ac_try_echo") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest.$ac_objext; then
9315 ac_header_compiler=yes
9316 else
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_header_compiler=no
9321 fi
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9325 $as_echo "$ac_header_compiler" >&6; }
9327 # Is the header present?
9328 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
9329 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #include <IOKit/IOKitLib.h>
9337 _ACEOF
9338 if { (ac_try="$ac_cpp conftest.$ac_ext"
9339 case "(($ac_try" in
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9342 esac
9343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9344 $as_echo "$ac_try_echo") >&5
9345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } >/dev/null && {
9352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 }; then
9355 ac_header_preproc=yes
9356 else
9357 $as_echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_header_preproc=no
9361 fi
9363 rm -f conftest.err conftest.$ac_ext
9364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365 $as_echo "$ac_header_preproc" >&6; }
9367 # So? What about this header?
9368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9369 yes:no: )
9370 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9371 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
9373 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
9374 ac_header_preproc=yes
9375 ;;
9376 no:yes:* )
9377 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
9378 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
9379 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
9380 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
9381 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
9382 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
9383 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
9384 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9385 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
9386 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
9387 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
9388 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
9390 ;;
9391 esac
9392 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
9393 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
9394 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9396 else
9397 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
9398 fi
9399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
9400 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
9402 fi
9403 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
9405 CDROM_DRIVER=osx
9406 LIBS="$LIBS -framework IOKit"
9407 else
9408 true
9409 fi
9414 if test "x$CDROM_DRIVER" = "xlinux"; then
9415 CDROM_LINUX_TRUE=
9416 CDROM_LINUX_FALSE='#'
9417 else
9418 CDROM_LINUX_TRUE='#'
9419 CDROM_LINUX_FALSE=
9420 fi
9424 if test "x$CDROM_DRIVER" = "xosx"; then
9425 CDROM_OSX_TRUE=
9426 CDROM_OSX_FALSE='#'
9427 else
9428 CDROM_OSX_TRUE='#'
9429 CDROM_OSX_FALSE=
9430 fi
9434 if test "x$CDROM_DRIVER" = "x"; then
9435 CDROM_NONE_TRUE=
9436 CDROM_NONE_FALSE='#'
9437 else
9438 CDROM_NONE_TRUE='#'
9439 CDROM_NONE_FALSE=
9440 fi
9443 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9444 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9445 $as_echo_n "checking for linux/joystick.h... " >&6; }
9446 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9447 $as_echo_n "(cached) " >&6
9448 fi
9449 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9450 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9451 else
9452 # Is the header compilable?
9453 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
9454 $as_echo_n "checking linux/joystick.h usability... " >&6; }
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 #include <linux/joystick.h>
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9471 $as_echo "$ac_try_echo") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9482 ac_header_compiler=yes
9483 else
9484 $as_echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ac_header_compiler=no
9488 fi
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9492 $as_echo "$ac_header_compiler" >&6; }
9494 # Is the header present?
9495 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9496 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 #include <linux/joystick.h>
9504 _ACEOF
9505 if { (ac_try="$ac_cpp conftest.$ac_ext"
9506 case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509 esac
9510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9511 $as_echo "$ac_try_echo") >&5
9512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } >/dev/null && {
9519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 }; then
9522 ac_header_preproc=yes
9523 else
9524 $as_echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_header_preproc=no
9528 fi
9530 rm -f conftest.err conftest.$ac_ext
9531 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9532 $as_echo "$ac_header_preproc" >&6; }
9534 # So? What about this header?
9535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9536 yes:no: )
9537 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9538 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9539 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9540 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9541 ac_header_preproc=yes
9542 ;;
9543 no:yes:* )
9544 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9545 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9546 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9547 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9548 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9549 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9550 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9551 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9552 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9553 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9554 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9555 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9557 ;;
9558 esac
9559 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9560 $as_echo_n "checking for linux/joystick.h... " >&6; }
9561 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9562 $as_echo_n "(cached) " >&6
9563 else
9564 ac_cv_header_linux_joystick_h=$ac_header_preproc
9565 fi
9566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9567 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9569 fi
9570 if test $ac_cv_header_linux_joystick_h = yes; then
9572 HAVE_LINUX_JOYSTICK_H=yes
9574 cat >>confdefs.h <<\_ACEOF
9575 #define HAVE_LINUX_JOYSTICK 1
9576 _ACEOF
9578 else
9579 echo "Linux Joystick support not found, building without it."
9580 fi
9585 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9586 JOY_LINUX_TRUE=
9587 JOY_LINUX_FALSE='#'
9588 else
9589 JOY_LINUX_TRUE='#'
9590 JOY_LINUX_FALSE=
9591 fi
9594 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9595 set dummy sh-elf-gcc; ac_word=$2
9596 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_path_SHCC+set}" = set; then
9599 $as_echo_n "(cached) " >&6
9600 else
9601 case $SHCC in
9602 [\\/]* | ?:[\\/]*)
9603 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9604 ;;
9605 *)
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9615 break 2
9616 fi
9617 done
9618 done
9619 IFS=$as_save_IFS
9621 ;;
9622 esac
9623 fi
9624 SHCC=$ac_cv_path_SHCC
9625 if test -n "$SHCC"; then
9626 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9627 $as_echo "$SHCC" >&6; }
9628 else
9629 { $as_echo "$as_me:$LINENO: result: no" >&5
9630 $as_echo "no" >&6; }
9631 fi
9634 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9635 set dummy sh-elf-ld; ac_word=$2
9636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if test "${ac_cv_path_SHLD+set}" = set; then
9639 $as_echo_n "(cached) " >&6
9640 else
9641 case $SHLD in
9642 [\\/]* | ?:[\\/]*)
9643 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9644 ;;
9645 *)
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $PATH
9648 do
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9656 fi
9657 done
9658 done
9659 IFS=$as_save_IFS
9661 ;;
9662 esac
9663 fi
9664 SHLD=$ac_cv_path_SHLD
9665 if test -n "$SHLD"; then
9666 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9667 $as_echo "$SHLD" >&6; }
9668 else
9669 { $as_echo "$as_me:$LINENO: result: no" >&5
9670 $as_echo "no" >&6; }
9671 fi
9674 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9675 set dummy sh-elf-objcopy; ac_word=$2
9676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $SHOBJCOPY in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9684 ;;
9685 *)
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9701 ;;
9702 esac
9703 fi
9704 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9705 if test -n "$SHOBJCOPY"; then
9706 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9707 $as_echo "$SHOBJCOPY" >&6; }
9708 else
9709 { $as_echo "$as_me:$LINENO: result: no" >&5
9710 $as_echo "no" >&6; }
9711 fi
9714 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9715 set dummy arm-elf-gcc; ac_word=$2
9716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if test "${ac_cv_path_ARMCC+set}" = set; then
9719 $as_echo_n "(cached) " >&6
9720 else
9721 case $ARMCC in
9722 [\\/]* | ?:[\\/]*)
9723 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9724 ;;
9725 *)
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9728 do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737 done
9738 done
9739 IFS=$as_save_IFS
9741 ;;
9742 esac
9743 fi
9744 ARMCC=$ac_cv_path_ARMCC
9745 if test -n "$ARMCC"; then
9746 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9747 $as_echo "$ARMCC" >&6; }
9748 else
9749 { $as_echo "$as_me:$LINENO: result: no" >&5
9750 $as_echo "no" >&6; }
9751 fi
9754 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9755 set dummy arm-elf-ld; ac_word=$2
9756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_path_ARMLD+set}" = set; then
9759 $as_echo_n "(cached) " >&6
9760 else
9761 case $ARMLD in
9762 [\\/]* | ?:[\\/]*)
9763 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9764 ;;
9765 *)
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9768 do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9776 fi
9777 done
9778 done
9779 IFS=$as_save_IFS
9781 ;;
9782 esac
9783 fi
9784 ARMLD=$ac_cv_path_ARMLD
9785 if test -n "$ARMLD"; then
9786 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9787 $as_echo "$ARMLD" >&6; }
9788 else
9789 { $as_echo "$as_me:$LINENO: result: no" >&5
9790 $as_echo "no" >&6; }
9791 fi
9794 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9795 set dummy arm-elf-objcopy; ac_word=$2
9796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9799 $as_echo_n "(cached) " >&6
9800 else
9801 case $ARMOBJCOPY in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9804 ;;
9805 *)
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 for as_dir in $PATH
9808 do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9813 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817 done
9818 done
9819 IFS=$as_save_IFS
9821 ;;
9822 esac
9823 fi
9824 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9825 if test -n "$ARMOBJCOPY"; then
9826 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9827 $as_echo "$ARMOBJCOPY" >&6; }
9828 else
9829 { $as_echo "$as_me:$LINENO: result: no" >&5
9830 $as_echo "no" >&6; }
9831 fi
9835 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9836 BUILD_SH="no"
9837 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9838 else
9839 BUILD_SH="yes"
9840 fi
9841 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9842 BUILD_ARM="no"
9843 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9844 else
9845 BUILD_ARM="yes"
9846 fi
9849 if test "$BUILD_SH" = "yes"; then
9850 BUILD_SYSTEST_TRUE=
9851 BUILD_SYSTEST_FALSE='#'
9852 else
9853 BUILD_SYSTEST_TRUE='#'
9854 BUILD_SYSTEST_FALSE=
9855 fi
9859 if test "$BUILD_ARM" = "yes"; then
9860 BUILD_ARMTEST_TRUE=
9861 BUILD_ARMTEST_FALSE='#'
9862 else
9863 BUILD_ARMTEST_TRUE='#'
9864 BUILD_ARMTEST_FALSE=
9865 fi
9869 GETTEXT_PACKAGE=lxdream
9872 cat >>confdefs.h <<_ACEOF
9873 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9874 _ACEOF
9877 ALL_LINGUAS="de es it pt_BR"
9880 for ac_header in locale.h
9881 do
9882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 $as_echo_n "checking for $ac_header... " >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 $as_echo_n "(cached) " >&6
9888 fi
9889 ac_res=`eval 'as_val=${'$as_ac_Header'}
9890 $as_echo "$as_val"'`
9891 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9892 $as_echo "$ac_res" >&6; }
9893 else
9894 # Is the header compilable?
9895 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9896 $as_echo_n "checking $ac_header usability... " >&6; }
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 $ac_includes_default
9904 #include <$ac_header>
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (ac_try="$ac_compile"
9908 case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911 esac
9912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913 $as_echo "$ac_try_echo") >&5
9914 (eval "$ac_compile") 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && {
9921 test -z "$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9923 } && test -s conftest.$ac_objext; then
9924 ac_header_compiler=yes
9925 else
9926 $as_echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_header_compiler=no
9930 fi
9932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9933 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9934 $as_echo "$ac_header_compiler" >&6; }
9936 # Is the header present?
9937 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9938 $as_echo_n "checking $ac_header presence... " >&6; }
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 #include <$ac_header>
9946 _ACEOF
9947 if { (ac_try="$ac_cpp conftest.$ac_ext"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } >/dev/null && {
9961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 }; then
9964 ac_header_preproc=yes
9965 else
9966 $as_echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9969 ac_header_preproc=no
9970 fi
9972 rm -f conftest.err conftest.$ac_ext
9973 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9974 $as_echo "$ac_header_preproc" >&6; }
9976 # So? What about this header?
9977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9978 yes:no: )
9979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9980 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9982 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9983 ac_header_preproc=yes
9984 ;;
9985 no:yes:* )
9986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9987 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9989 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9991 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9993 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9997 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9999 ;;
10000 esac
10001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10002 $as_echo_n "checking for $ac_header... " >&6; }
10003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10004 $as_echo_n "(cached) " >&6
10005 else
10006 eval "$as_ac_Header=\$ac_header_preproc"
10007 fi
10008 ac_res=`eval 'as_val=${'$as_ac_Header'}
10009 $as_echo "$as_val"'`
10010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10011 $as_echo "$ac_res" >&6; }
10013 fi
10014 if test `eval 'as_val=${'$as_ac_Header'}
10015 $as_echo "$as_val"'` = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10018 _ACEOF
10020 fi
10022 done
10024 if test $ac_cv_header_locale_h = yes; then
10025 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10026 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10027 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10028 $as_echo_n "(cached) " >&6
10029 else
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h. */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 #include <locale.h>
10037 int
10038 main ()
10039 {
10040 return LC_MESSAGES
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050 esac
10051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052 $as_echo "$ac_try_echo") >&5
10053 (eval "$ac_link") 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && {
10060 test -z "$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 } && test -s conftest$ac_exeext && {
10063 test "$cross_compiling" = yes ||
10064 $as_test_x conftest$ac_exeext
10065 }; then
10066 am_cv_val_LC_MESSAGES=yes
10067 else
10068 $as_echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 am_cv_val_LC_MESSAGES=no
10072 fi
10074 rm -rf conftest.dSYM
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076 conftest$ac_exeext conftest.$ac_ext
10077 fi
10078 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10079 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10080 if test $am_cv_val_LC_MESSAGES = yes; then
10082 cat >>confdefs.h <<\_ACEOF
10083 #define HAVE_LC_MESSAGES 1
10084 _ACEOF
10086 fi
10087 fi
10088 USE_NLS=yes
10091 gt_cv_have_gettext=no
10093 CATOBJEXT=NONE
10094 XGETTEXT=:
10095 INTLLIBS=
10097 if test "${ac_cv_header_libintl_h+set}" = set; then
10098 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10099 $as_echo_n "checking for libintl.h... " >&6; }
10100 if test "${ac_cv_header_libintl_h+set}" = set; then
10101 $as_echo_n "(cached) " >&6
10102 fi
10103 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10104 $as_echo "$ac_cv_header_libintl_h" >&6; }
10105 else
10106 # Is the header compilable?
10107 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
10108 $as_echo_n "checking libintl.h usability... " >&6; }
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 #include <libintl.h>
10117 _ACEOF
10118 rm -f conftest.$ac_objext
10119 if { (ac_try="$ac_compile"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10125 $as_echo "$ac_try_echo") >&5
10126 (eval "$ac_compile") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest.$ac_objext; then
10136 ac_header_compiler=yes
10137 else
10138 $as_echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_header_compiler=no
10142 fi
10144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146 $as_echo "$ac_header_compiler" >&6; }
10148 # Is the header present?
10149 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
10150 $as_echo_n "checking libintl.h presence... " >&6; }
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <libintl.h>
10158 _ACEOF
10159 if { (ac_try="$ac_cpp conftest.$ac_ext"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } >/dev/null && {
10173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 }; then
10176 ac_header_preproc=yes
10177 else
10178 $as_echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_header_preproc=no
10182 fi
10184 rm -f conftest.err conftest.$ac_ext
10185 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10186 $as_echo "$ac_header_preproc" >&6; }
10188 # So? What about this header?
10189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10190 yes:no: )
10191 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10192 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10193 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
10194 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
10195 ac_header_preproc=yes
10196 ;;
10197 no:yes:* )
10198 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10199 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10200 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10201 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10202 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
10203 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
10204 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
10205 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10206 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10207 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10208 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
10209 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
10211 ;;
10212 esac
10213 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10214 $as_echo_n "checking for libintl.h... " >&6; }
10215 if test "${ac_cv_header_libintl_h+set}" = set; then
10216 $as_echo_n "(cached) " >&6
10217 else
10218 ac_cv_header_libintl_h=$ac_header_preproc
10219 fi
10220 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10221 $as_echo "$ac_cv_header_libintl_h" >&6; }
10223 fi
10224 if test $ac_cv_header_libintl_h = yes; then
10225 gt_cv_func_dgettext_libintl="no"
10226 libintl_extra_libs=""
10228 #
10229 # First check in libc
10230 #
10231 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
10232 $as_echo_n "checking for ngettext in libc... " >&6; }
10233 if test "${gt_cv_func_ngettext_libc+set}" = set; then
10234 $as_echo_n "(cached) " >&6
10235 else
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 #include <libintl.h>
10245 int
10246 main ()
10247 {
10248 return !ngettext ("","", 1)
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10260 $as_echo "$ac_try_echo") >&5
10261 (eval "$ac_link") 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest$ac_exeext && {
10271 test "$cross_compiling" = yes ||
10272 $as_test_x conftest$ac_exeext
10273 }; then
10274 gt_cv_func_ngettext_libc=yes
10275 else
10276 $as_echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 gt_cv_func_ngettext_libc=no
10280 fi
10282 rm -rf conftest.dSYM
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284 conftest$ac_exeext conftest.$ac_ext
10286 fi
10287 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
10288 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
10290 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10291 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10292 $as_echo_n "checking for dgettext in libc... " >&6; }
10293 if test "${gt_cv_func_dgettext_libc+set}" = set; then
10294 $as_echo_n "(cached) " >&6
10295 else
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10303 #include <libintl.h>
10305 int
10306 main ()
10307 {
10308 return !dgettext ("","")
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10320 $as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest$ac_exeext && {
10331 test "$cross_compiling" = yes ||
10332 $as_test_x conftest$ac_exeext
10333 }; then
10334 gt_cv_func_dgettext_libc=yes
10335 else
10336 $as_echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 gt_cv_func_dgettext_libc=no
10340 fi
10342 rm -rf conftest.dSYM
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10346 fi
10347 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10348 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10349 fi
10351 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10353 for ac_func in bind_textdomain_codeset
10354 do
10355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10356 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10357 $as_echo_n "checking for $ac_func... " >&6; }
10358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10359 $as_echo_n "(cached) " >&6
10360 else
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10369 #define $ac_func innocuous_$ac_func
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func (); below.
10373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374 <limits.h> exists even on freestanding compilers. */
10376 #ifdef __STDC__
10377 # include <limits.h>
10378 #else
10379 # include <assert.h>
10380 #endif
10382 #undef $ac_func
10384 /* Override any GCC internal prototype to avoid an error.
10385 Use char because int might match the return type of a GCC
10386 builtin and then its argument prototype would still apply. */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 char $ac_func ();
10391 /* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
10394 #if defined __stub_$ac_func || defined __stub___$ac_func
10395 choke me
10396 #endif
10398 int
10399 main ()
10400 {
10401 return $ac_func ();
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (ac_try="$ac_link"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411 esac
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414 (eval "$ac_link") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest$ac_exeext && {
10424 test "$cross_compiling" = yes ||
10425 $as_test_x conftest$ac_exeext
10426 }; then
10427 eval "$as_ac_var=yes"
10428 else
10429 $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 eval "$as_ac_var=no"
10433 fi
10435 rm -rf conftest.dSYM
10436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10437 conftest$ac_exeext conftest.$ac_ext
10438 fi
10439 ac_res=`eval 'as_val=${'$as_ac_var'}
10440 $as_echo "$as_val"'`
10441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10442 $as_echo "$ac_res" >&6; }
10443 if test `eval 'as_val=${'$as_ac_var'}
10444 $as_echo "$as_val"'` = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10447 _ACEOF
10449 fi
10450 done
10452 fi
10454 #
10455 # If we don't have everything we want, check in libintl
10456 #
10457 if test "$gt_cv_func_dgettext_libc" != "yes" \
10458 || test "$gt_cv_func_ngettext_libc" != "yes" \
10459 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10461 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10462 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10463 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10465 else
10466 ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-lintl $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char bindtextdomain ();
10482 int
10483 main ()
10484 {
10485 return bindtextdomain ();
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (ac_try="$ac_link"
10492 case "(($ac_try" in
10493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494 *) ac_try_echo=$ac_try;;
10495 esac
10496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10497 $as_echo "$ac_try_echo") >&5
10498 (eval "$ac_link") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && {
10505 test -z "$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 } && test -s conftest$ac_exeext && {
10508 test "$cross_compiling" = yes ||
10509 $as_test_x conftest$ac_exeext
10510 }; then
10511 ac_cv_lib_intl_bindtextdomain=yes
10512 else
10513 $as_echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_cv_lib_intl_bindtextdomain=no
10517 fi
10519 rm -rf conftest.dSYM
10520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10521 conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10525 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10526 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10527 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10528 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10529 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10530 $as_echo_n "(cached) " >&6
10531 else
10532 ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-lintl $LIBS"
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h. */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char ngettext ();
10548 int
10549 main ()
10550 {
10551 return ngettext ();
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 rm -f conftest.$ac_objext conftest$ac_exeext
10557 if { (ac_try="$ac_link"
10558 case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561 esac
10562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10563 $as_echo "$ac_try_echo") >&5
10564 (eval "$ac_link") 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext && {
10574 test "$cross_compiling" = yes ||
10575 $as_test_x conftest$ac_exeext
10576 }; then
10577 ac_cv_lib_intl_ngettext=yes
10578 else
10579 $as_echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_cv_lib_intl_ngettext=no
10583 fi
10585 rm -rf conftest.dSYM
10586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10589 fi
10590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10591 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10592 if test $ac_cv_lib_intl_ngettext = yes; then
10593 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10594 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10595 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10596 $as_echo_n "(cached) " >&6
10597 else
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-lintl $LIBS"
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char dgettext ();
10614 int
10615 main ()
10616 {
10617 return dgettext ();
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627 esac
10628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10629 $as_echo "$ac_try_echo") >&5
10630 (eval "$ac_link") 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest$ac_exeext && {
10640 test "$cross_compiling" = yes ||
10641 $as_test_x conftest$ac_exeext
10642 }; then
10643 ac_cv_lib_intl_dgettext=yes
10644 else
10645 $as_echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 ac_cv_lib_intl_dgettext=no
10649 fi
10651 rm -rf conftest.dSYM
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10655 fi
10656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10657 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10658 if test $ac_cv_lib_intl_dgettext = yes; then
10659 gt_cv_func_dgettext_libintl=yes
10660 fi
10662 fi
10664 fi
10667 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10668 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10669 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10670 { $as_echo "$as_me:$LINENO: result: " >&5
10671 $as_echo "" >&6; }
10672 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10673 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10674 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10675 $as_echo_n "(cached) " >&6
10676 else
10677 ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-lintl -liconv $LIBS"
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char ngettext ();
10693 int
10694 main ()
10695 {
10696 return ngettext ();
10697 ;
10698 return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709 (eval "$ac_link") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest$ac_exeext && {
10719 test "$cross_compiling" = yes ||
10720 $as_test_x conftest$ac_exeext
10721 }; then
10722 ac_cv_lib_intl_ngettext=yes
10723 else
10724 $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_cv_lib_intl_ngettext=no
10728 fi
10730 rm -rf conftest.dSYM
10731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10734 fi
10735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10736 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10737 if test $ac_cv_lib_intl_ngettext = yes; then
10738 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10739 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10740 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10741 $as_echo_n "(cached) " >&6
10742 else
10743 ac_check_lib_save_LIBS=$LIBS
10744 LIBS="-lintl -liconv $LIBS"
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 /* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 char dcgettext ();
10759 int
10760 main ()
10761 {
10762 return dcgettext ();
10763 ;
10764 return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
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_link") 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_exeext && {
10785 test "$cross_compiling" = yes ||
10786 $as_test_x conftest$ac_exeext
10787 }; then
10788 ac_cv_lib_intl_dcgettext=yes
10789 else
10790 $as_echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_lib_intl_dcgettext=no
10794 fi
10796 rm -rf conftest.dSYM
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10802 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10803 if test $ac_cv_lib_intl_dcgettext = yes; then
10804 gt_cv_func_dgettext_libintl=yes
10805 libintl_extra_libs=-liconv
10806 else
10807 :
10808 fi
10810 else
10811 :
10812 fi
10814 fi
10816 #
10817 # If we found libintl, then check in it for bind_textdomain_codeset();
10818 # we'll prefer libc if neither have bind_textdomain_codeset(),
10819 # and both have dgettext and ngettext
10820 #
10821 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10822 glib_save_LIBS="$LIBS"
10823 LIBS="$LIBS -lintl $libintl_extra_libs"
10824 unset ac_cv_func_bind_textdomain_codeset
10826 for ac_func in bind_textdomain_codeset
10827 do
10828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10829 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10830 $as_echo_n "checking for $ac_func... " >&6; }
10831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10832 $as_echo_n "(cached) " >&6
10833 else
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10842 #define $ac_func innocuous_$ac_func
10844 /* System header to define __stub macros and hopefully few prototypes,
10845 which can conflict with char $ac_func (); below.
10846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10847 <limits.h> exists even on freestanding compilers. */
10849 #ifdef __STDC__
10850 # include <limits.h>
10851 #else
10852 # include <assert.h>
10853 #endif
10855 #undef $ac_func
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char $ac_func ();
10864 /* The GNU C library defines this for functions which it implements
10865 to always fail with ENOSYS. Some functions are actually named
10866 something starting with __ and the normal name is an alias. */
10867 #if defined __stub_$ac_func || defined __stub___$ac_func
10868 choke me
10869 #endif
10871 int
10872 main ()
10873 {
10874 return $ac_func ();
10875 ;
10876 return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10886 $as_echo "$ac_try_echo") >&5
10887 (eval "$ac_link") 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest$ac_exeext && {
10897 test "$cross_compiling" = yes ||
10898 $as_test_x conftest$ac_exeext
10899 }; then
10900 eval "$as_ac_var=yes"
10901 else
10902 $as_echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 eval "$as_ac_var=no"
10906 fi
10908 rm -rf conftest.dSYM
10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910 conftest$ac_exeext conftest.$ac_ext
10911 fi
10912 ac_res=`eval 'as_val=${'$as_ac_var'}
10913 $as_echo "$as_val"'`
10914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10916 if test `eval 'as_val=${'$as_ac_var'}
10917 $as_echo "$as_val"'` = yes; then
10918 cat >>confdefs.h <<_ACEOF
10919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10920 _ACEOF
10922 fi
10923 done
10925 LIBS="$glib_save_LIBS"
10927 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10928 gt_cv_func_dgettext_libc=no
10929 else
10930 if test "$gt_cv_func_dgettext_libc" = "yes" \
10931 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10932 gt_cv_func_dgettext_libintl=no
10933 fi
10934 fi
10935 fi
10936 fi
10938 if test "$gt_cv_func_dgettext_libc" = "yes" \
10939 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10940 gt_cv_have_gettext=yes
10941 fi
10943 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10944 INTLLIBS="-lintl $libintl_extra_libs"
10945 fi
10947 if test "$gt_cv_have_gettext" = "yes"; then
10949 cat >>confdefs.h <<\_ACEOF
10950 #define HAVE_GETTEXT 1
10951 _ACEOF
10953 # Extract the first word of "msgfmt", so it can be a program name with args.
10954 set dummy msgfmt; ac_word=$2
10955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if test "${ac_cv_path_MSGFMT+set}" = set; then
10958 $as_echo_n "(cached) " >&6
10959 else
10960 case "$MSGFMT" in
10961 /*)
10962 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10963 ;;
10964 *)
10965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10966 for ac_dir in $PATH; do
10967 test -z "$ac_dir" && ac_dir=.
10968 if test -f $ac_dir/$ac_word; then
10969 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10970 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10971 break
10972 fi
10973 fi
10974 done
10975 IFS="$ac_save_ifs"
10976 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10977 ;;
10978 esac
10979 fi
10980 MSGFMT="$ac_cv_path_MSGFMT"
10981 if test "$MSGFMT" != "no"; then
10982 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10983 $as_echo "$MSGFMT" >&6; }
10984 else
10985 { $as_echo "$as_me:$LINENO: result: no" >&5
10986 $as_echo "no" >&6; }
10987 fi
10988 if test "$MSGFMT" != "no"; then
10989 glib_save_LIBS="$LIBS"
10990 LIBS="$LIBS $INTLLIBS"
10992 for ac_func in dcgettext
10993 do
10994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10995 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10996 $as_echo_n "checking for $ac_func... " >&6; }
10997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10998 $as_echo_n "(cached) " >&6
10999 else
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11008 #define $ac_func innocuous_$ac_func
11010 /* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func (); below.
11012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11013 <limits.h> exists even on freestanding compilers. */
11015 #ifdef __STDC__
11016 # include <limits.h>
11017 #else
11018 # include <assert.h>
11019 #endif
11021 #undef $ac_func
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char $ac_func ();
11030 /* The GNU C library defines this for functions which it implements
11031 to always fail with ENOSYS. Some functions are actually named
11032 something starting with __ and the normal name is an alias. */
11033 #if defined __stub_$ac_func || defined __stub___$ac_func
11034 choke me
11035 #endif
11037 int
11038 main ()
11039 {
11040 return $ac_func ();
11041 ;
11042 return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11065 }; then
11066 eval "$as_ac_var=yes"
11067 else
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 eval "$as_ac_var=no"
11072 fi
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077 fi
11078 ac_res=`eval 'as_val=${'$as_ac_var'}
11079 $as_echo "$as_val"'`
11080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11081 $as_echo "$ac_res" >&6; }
11082 if test `eval 'as_val=${'$as_ac_var'}
11083 $as_echo "$as_val"'` = yes; then
11084 cat >>confdefs.h <<_ACEOF
11085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11086 _ACEOF
11088 fi
11089 done
11091 MSGFMT_OPTS=
11092 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
11093 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
11094 cat >conftest.foo <<_ACEOF
11096 msgid ""
11097 msgstr ""
11098 "Content-Type: text/plain; charset=UTF-8\n"
11099 "Project-Id-Version: test 1.0\n"
11100 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
11101 "Last-Translator: test <foo@bar.xx>\n"
11102 "Language-Team: C <LL@li.org>\n"
11103 "MIME-Version: 1.0\n"
11104 "Content-Transfer-Encoding: 8bit\n"
11106 _ACEOF
11107 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
11108 (msgfmt -c -o /dev/null conftest.foo) 2>&5
11109 ac_status=$?
11110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; then
11112 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 else { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
11116 echo "$as_me: failed input was:" >&5
11117 sed 's/^/| /' conftest.foo >&5
11118 fi
11120 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11121 set dummy gmsgfmt; ac_word=$2
11122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11123 $as_echo_n "checking for $ac_word... " >&6; }
11124 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11125 $as_echo_n "(cached) " >&6
11126 else
11127 case $GMSGFMT in
11128 [\\/]* | ?:[\\/]*)
11129 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11130 ;;
11131 *)
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11134 do
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 break 2
11142 fi
11143 done
11144 done
11145 IFS=$as_save_IFS
11147 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11148 ;;
11149 esac
11150 fi
11151 GMSGFMT=$ac_cv_path_GMSGFMT
11152 if test -n "$GMSGFMT"; then
11153 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11154 $as_echo "$GMSGFMT" >&6; }
11155 else
11156 { $as_echo "$as_me:$LINENO: result: no" >&5
11157 $as_echo "no" >&6; }
11158 fi
11161 # Extract the first word of "xgettext", so it can be a program name with args.
11162 set dummy xgettext; ac_word=$2
11163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11166 $as_echo_n "(cached) " >&6
11167 else
11168 case "$XGETTEXT" in
11169 /*)
11170 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11171 ;;
11172 *)
11173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11174 for ac_dir in $PATH; do
11175 test -z "$ac_dir" && ac_dir=.
11176 if test -f $ac_dir/$ac_word; then
11177 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11178 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11179 break
11180 fi
11181 fi
11182 done
11183 IFS="$ac_save_ifs"
11184 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11185 ;;
11186 esac
11187 fi
11188 XGETTEXT="$ac_cv_path_XGETTEXT"
11189 if test "$XGETTEXT" != ":"; then
11190 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11191 $as_echo "$XGETTEXT" >&6; }
11192 else
11193 { $as_echo "$as_me:$LINENO: result: no" >&5
11194 $as_echo "no" >&6; }
11195 fi
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11204 int
11205 main ()
11206 {
11207 extern int _nl_msg_cat_cntr;
11208 return _nl_msg_cat_cntr
11209 ;
11210 return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (ac_try="$ac_link"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218 esac
11219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11220 $as_echo "$ac_try_echo") >&5
11221 (eval "$ac_link") 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && {
11228 test -z "$ac_c_werror_flag" ||
11229 test ! -s conftest.err
11230 } && test -s conftest$ac_exeext && {
11231 test "$cross_compiling" = yes ||
11232 $as_test_x conftest$ac_exeext
11233 }; then
11234 CATOBJEXT=.gmo
11235 DATADIRNAME=share
11236 else
11237 $as_echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 case $host in
11241 *-*-solaris*)
11242 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
11243 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
11244 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
11245 $as_echo_n "(cached) " >&6
11246 else
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
11254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11255 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
11257 /* System header to define __stub macros and hopefully few prototypes,
11258 which can conflict with char bind_textdomain_codeset (); below.
11259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11260 <limits.h> exists even on freestanding compilers. */
11262 #ifdef __STDC__
11263 # include <limits.h>
11264 #else
11265 # include <assert.h>
11266 #endif
11268 #undef bind_textdomain_codeset
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char bind_textdomain_codeset ();
11277 /* The GNU C library defines this for functions which it implements
11278 to always fail with ENOSYS. Some functions are actually named
11279 something starting with __ and the normal name is an alias. */
11280 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
11281 choke me
11282 #endif
11284 int
11285 main ()
11286 {
11287 return bind_textdomain_codeset ();
11288 ;
11289 return 0;
11290 }
11291 _ACEOF
11292 rm -f conftest.$ac_objext conftest$ac_exeext
11293 if { (ac_try="$ac_link"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297 esac
11298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299 $as_echo "$ac_try_echo") >&5
11300 (eval "$ac_link") 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest$ac_exeext && {
11310 test "$cross_compiling" = yes ||
11311 $as_test_x conftest$ac_exeext
11312 }; then
11313 ac_cv_func_bind_textdomain_codeset=yes
11314 else
11315 $as_echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_func_bind_textdomain_codeset=no
11319 fi
11321 rm -rf conftest.dSYM
11322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11323 conftest$ac_exeext conftest.$ac_ext
11324 fi
11325 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
11326 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
11327 if test $ac_cv_func_bind_textdomain_codeset = yes; then
11328 CATOBJEXT=.gmo
11329 DATADIRNAME=share
11330 else
11331 CATOBJEXT=.mo
11332 DATADIRNAME=lib
11333 fi
11335 ;;
11336 *)
11337 CATOBJEXT=.mo
11338 DATADIRNAME=lib
11339 ;;
11340 esac
11341 fi
11343 rm -rf conftest.dSYM
11344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS="$glib_save_LIBS"
11347 INSTOBJEXT=.mo
11348 else
11349 gt_cv_have_gettext=no
11350 fi
11351 fi
11353 fi
11357 if test "$gt_cv_have_gettext" = "yes" ; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define ENABLE_NLS 1
11361 _ACEOF
11363 fi
11365 if test "$XGETTEXT" != ":"; then
11366 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11367 : ;
11368 else
11369 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11370 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11371 XGETTEXT=":"
11372 fi
11373 fi
11375 # We need to process the po/ directory.
11376 POSUB=po
11378 ac_config_commands="$ac_config_commands default-1"
11381 for lang in $ALL_LINGUAS; do
11382 GMOFILES="$GMOFILES $lang.gmo"
11383 POFILES="$POFILES $lang.po"
11384 done
11398 if test "$gt_cv_have_gettext" = "yes"; then
11399 if test "x$ALL_LINGUAS" = "x"; then
11400 LINGUAS=
11401 else
11402 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11403 $as_echo_n "checking for catalogs to be installed... " >&6; }
11404 NEW_LINGUAS=
11405 for presentlang in $ALL_LINGUAS; do
11406 useit=no
11407 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11408 desiredlanguages="$LINGUAS"
11409 else
11410 desiredlanguages="$ALL_LINGUAS"
11411 fi
11412 for desiredlang in $desiredlanguages; do
11413 # Use the presentlang catalog if desiredlang is
11414 # a. equal to presentlang, or
11415 # b. a variant of presentlang (because in this case,
11416 # presentlang can be used as a fallback for messages
11417 # which are not translated in the desiredlang catalog).
11418 case "$desiredlang" in
11419 "$presentlang"*) useit=yes;;
11420 esac
11421 done
11422 if test $useit = yes; then
11423 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11424 fi
11425 done
11426 LINGUAS=$NEW_LINGUAS
11427 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
11428 $as_echo "$LINGUAS" >&6; }
11429 fi
11431 if test -n "$LINGUAS"; then
11432 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11433 fi
11434 fi
11436 MKINSTALLDIRS=
11437 if test -n "$ac_aux_dir"; then
11438 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11439 fi
11440 if test -z "$MKINSTALLDIRS"; then
11441 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11442 fi
11445 test -d po || mkdir po
11446 if test "x$srcdir" != "x."; then
11447 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11448 posrcprefix="$srcdir/"
11449 else
11450 posrcprefix="../$srcdir/"
11451 fi
11452 else
11453 posrcprefix="../"
11454 fi
11455 rm -f po/POTFILES
11456 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11457 < $srcdir/po/POTFILES.in > po/POTFILES
11460 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
11462 cat >confcache <<\_ACEOF
11463 # This file is a shell script that caches the results of configure
11464 # tests run on this system so they can be shared between configure
11465 # scripts and configure runs, see configure's option --config-cache.
11466 # It is not useful on other systems. If it contains results you don't
11467 # want to keep, you may remove or edit it.
11468 #
11469 # config.status only pays attention to the cache file if you give it
11470 # the --recheck option to rerun configure.
11471 #
11472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11474 # following values.
11476 _ACEOF
11478 # The following way of writing the cache mishandles newlines in values,
11479 # but we know of no workaround that is simple, portable, and efficient.
11480 # So, we kill variables containing newlines.
11481 # Ultrix sh set writes to stderr and can't be redirected directly,
11482 # and sets the high bit in the cache file unless we assign to the vars.
11483 (
11484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11485 eval ac_val=\$$ac_var
11486 case $ac_val in #(
11487 *${as_nl}*)
11488 case $ac_var in #(
11489 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11490 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11491 esac
11492 case $ac_var in #(
11493 _ | IFS | as_nl) ;; #(
11494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11495 *) $as_unset $ac_var ;;
11496 esac ;;
11497 esac
11498 done
11500 (set) 2>&1 |
11501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11502 *${as_nl}ac_space=\ *)
11503 # `set' does not quote correctly, so add quotes (double-quote
11504 # substitution turns \\\\ into \\, and sed turns \\ into \).
11505 sed -n \
11506 "s/'/'\\\\''/g;
11507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11508 ;; #(
11509 *)
11510 # `set' quotes correctly as required by POSIX, so do not add quotes.
11511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11512 ;;
11513 esac |
11514 sort
11515 ) |
11516 sed '
11517 /^ac_cv_env_/b end
11518 t clear
11519 :clear
11520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11521 t end
11522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11523 :end' >>confcache
11524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11525 if test -w "$cache_file"; then
11526 test "x$cache_file" != "x/dev/null" &&
11527 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11528 $as_echo "$as_me: updating cache $cache_file" >&6;}
11529 cat confcache >$cache_file
11530 else
11531 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11533 fi
11534 fi
11535 rm -f confcache
11537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11538 # Let make expand exec_prefix.
11539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11541 DEFS=-DHAVE_CONFIG_H
11543 ac_libobjs=
11544 ac_ltlibobjs=
11545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11546 # 1. Remove the extension, and $U if already installed.
11547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11548 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11550 # will be set to the directory where LIBOBJS objects are built.
11551 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11552 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11553 done
11554 LIBOBJS=$ac_libobjs
11556 LTLIBOBJS=$ac_ltlibobjs
11559 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11560 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11561 Usually this means the macro was only invoked conditionally." >&5
11562 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11563 Usually this means the macro was only invoked conditionally." >&2;}
11564 { (exit 1); exit 1; }; }
11565 fi
11566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11567 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11568 Usually this means the macro was only invoked conditionally." >&5
11569 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11570 Usually this means the macro was only invoked conditionally." >&2;}
11571 { (exit 1); exit 1; }; }
11572 fi
11573 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11574 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11575 Usually this means the macro was only invoked conditionally." >&5
11576 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11577 Usually this means the macro was only invoked conditionally." >&2;}
11578 { (exit 1); exit 1; }; }
11579 fi
11580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11581 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11582 Usually this means the macro was only invoked conditionally." >&5
11583 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11584 Usually this means the macro was only invoked conditionally." >&2;}
11585 { (exit 1); exit 1; }; }
11586 fi
11587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11588 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11589 Usually this means the macro was only invoked conditionally." >&5
11590 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11591 Usually this means the macro was only invoked conditionally." >&2;}
11592 { (exit 1); exit 1; }; }
11593 fi
11594 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11595 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11596 Usually this means the macro was only invoked conditionally." >&5
11597 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11598 Usually this means the macro was only invoked conditionally." >&2;}
11599 { (exit 1); exit 1; }; }
11600 fi
11601 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11602 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11603 Usually this means the macro was only invoked conditionally." >&5
11604 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11605 Usually this means the macro was only invoked conditionally." >&2;}
11606 { (exit 1); exit 1; }; }
11607 fi
11608 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11609 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11610 Usually this means the macro was only invoked conditionally." >&5
11611 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11612 Usually this means the macro was only invoked conditionally." >&2;}
11613 { (exit 1); exit 1; }; }
11614 fi
11615 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11616 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11617 Usually this means the macro was only invoked conditionally." >&5
11618 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11619 Usually this means the macro was only invoked conditionally." >&2;}
11620 { (exit 1); exit 1; }; }
11621 fi
11622 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11623 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11624 Usually this means the macro was only invoked conditionally." >&5
11625 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11626 Usually this means the macro was only invoked conditionally." >&2;}
11627 { (exit 1); exit 1; }; }
11628 fi
11629 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11630 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11631 Usually this means the macro was only invoked conditionally." >&5
11632 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11633 Usually this means the macro was only invoked conditionally." >&2;}
11634 { (exit 1); exit 1; }; }
11635 fi
11636 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
11637 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
11638 Usually this means the macro was only invoked conditionally." >&5
11639 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
11640 Usually this means the macro was only invoked conditionally." >&2;}
11641 { (exit 1); exit 1; }; }
11642 fi
11643 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11644 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11645 Usually this means the macro was only invoked conditionally." >&5
11646 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11647 Usually this means the macro was only invoked conditionally." >&2;}
11648 { (exit 1); exit 1; }; }
11649 fi
11650 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11651 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11652 Usually this means the macro was only invoked conditionally." >&5
11653 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11654 Usually this means the macro was only invoked conditionally." >&2;}
11655 { (exit 1); exit 1; }; }
11656 fi
11657 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11658 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11659 Usually this means the macro was only invoked conditionally." >&5
11660 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11661 Usually this means the macro was only invoked conditionally." >&2;}
11662 { (exit 1); exit 1; }; }
11663 fi
11664 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11665 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11666 Usually this means the macro was only invoked conditionally." >&5
11667 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11668 Usually this means the macro was only invoked conditionally." >&2;}
11669 { (exit 1); exit 1; }; }
11670 fi
11671 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
11672 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
11673 Usually this means the macro was only invoked conditionally." >&5
11674 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
11675 Usually this means the macro was only invoked conditionally." >&2;}
11676 { (exit 1); exit 1; }; }
11677 fi
11678 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
11679 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
11680 Usually this means the macro was only invoked conditionally." >&5
11681 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
11682 Usually this means the macro was only invoked conditionally." >&2;}
11683 { (exit 1); exit 1; }; }
11684 fi
11685 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11686 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11687 Usually this means the macro was only invoked conditionally." >&5
11688 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11689 Usually this means the macro was only invoked conditionally." >&2;}
11690 { (exit 1); exit 1; }; }
11691 fi
11692 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11693 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11694 Usually this means the macro was only invoked conditionally." >&5
11695 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11696 Usually this means the macro was only invoked conditionally." >&2;}
11697 { (exit 1); exit 1; }; }
11698 fi
11699 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11700 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11701 Usually this means the macro was only invoked conditionally." >&5
11702 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11703 Usually this means the macro was only invoked conditionally." >&2;}
11704 { (exit 1); exit 1; }; }
11705 fi
11707 : ${CONFIG_STATUS=./config.status}
11708 ac_write_fail=0
11709 ac_clean_files_save=$ac_clean_files
11710 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11711 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11712 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11713 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11714 #! $SHELL
11715 # Generated by $as_me.
11716 # Run this file to recreate the current configuration.
11717 # Compiler output produced by configure, useful for debugging
11718 # configure, is in config.log if it exists.
11720 debug=false
11721 ac_cs_recheck=false
11722 ac_cs_silent=false
11723 SHELL=\${CONFIG_SHELL-$SHELL}
11724 _ACEOF
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727 ## --------------------- ##
11728 ## M4sh Initialization. ##
11729 ## --------------------- ##
11731 # Be more Bourne compatible
11732 DUALCASE=1; export DUALCASE # for MKS sh
11733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11734 emulate sh
11735 NULLCMD=:
11736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11737 # is contrary to our usage. Disable this feature.
11738 alias -g '${1+"$@"}'='"$@"'
11739 setopt NO_GLOB_SUBST
11740 else
11741 case `(set -o) 2>/dev/null` in
11742 *posix*) set -o posix ;;
11743 esac
11745 fi
11750 # PATH needs CR
11751 # Avoid depending upon Character Ranges.
11752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11755 as_cr_digits='0123456789'
11756 as_cr_alnum=$as_cr_Letters$as_cr_digits
11758 as_nl='
11759 '
11760 export as_nl
11761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11765 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11766 as_echo='printf %s\n'
11767 as_echo_n='printf %s'
11768 else
11769 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11770 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11771 as_echo_n='/usr/ucb/echo -n'
11772 else
11773 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11774 as_echo_n_body='eval
11775 arg=$1;
11776 case $arg in
11777 *"$as_nl"*)
11778 expr "X$arg" : "X\\(.*\\)$as_nl";
11779 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11780 esac;
11781 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11782 '
11783 export as_echo_n_body
11784 as_echo_n='sh -c $as_echo_n_body as_echo'
11785 fi
11786 export as_echo_body
11787 as_echo='sh -c $as_echo_body as_echo'
11788 fi
11790 # The user is always right.
11791 if test "${PATH_SEPARATOR+set}" != set; then
11792 PATH_SEPARATOR=:
11793 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11794 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11795 PATH_SEPARATOR=';'
11796 }
11797 fi
11799 # Support unset when possible.
11800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11801 as_unset=unset
11802 else
11803 as_unset=false
11804 fi
11807 # IFS
11808 # We need space, tab and new line, in precisely that order. Quoting is
11809 # there to prevent editors from complaining about space-tab.
11810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11811 # splitting by setting IFS to empty value.)
11812 IFS=" "" $as_nl"
11814 # Find who we are. Look in the path if we contain no directory separator.
11815 case $0 in
11816 *[\\/]* ) as_myself=$0 ;;
11817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11823 done
11824 IFS=$as_save_IFS
11826 ;;
11827 esac
11828 # We did not find ourselves, most probably we were run as `sh COMMAND'
11829 # in which case we are not to be found in the path.
11830 if test "x$as_myself" = x; then
11831 as_myself=$0
11832 fi
11833 if test ! -f "$as_myself"; then
11834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11835 { (exit 1); exit 1; }
11836 fi
11838 # Work around bugs in pre-3.0 UWIN ksh.
11839 for as_var in ENV MAIL MAILPATH
11840 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11841 done
11842 PS1='$ '
11843 PS2='> '
11844 PS4='+ '
11846 # NLS nuisances.
11847 LC_ALL=C
11848 export LC_ALL
11849 LANGUAGE=C
11850 export LANGUAGE
11852 # Required to use basename.
11853 if expr a : '\(a\)' >/dev/null 2>&1 &&
11854 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11855 as_expr=expr
11856 else
11857 as_expr=false
11858 fi
11860 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11861 as_basename=basename
11862 else
11863 as_basename=false
11864 fi
11867 # Name of the executable.
11868 as_me=`$as_basename -- "$0" ||
11869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11870 X"$0" : 'X\(//\)$' \| \
11871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11872 $as_echo X/"$0" |
11873 sed '/^.*\/\([^/][^/]*\)\/*$/{
11874 s//\1/
11875 q
11876 }
11877 /^X\/\(\/\/\)$/{
11878 s//\1/
11879 q
11880 }
11881 /^X\/\(\/\).*/{
11882 s//\1/
11883 q
11884 }
11885 s/.*/./; q'`
11887 # CDPATH.
11888 $as_unset CDPATH
11892 as_lineno_1=$LINENO
11893 as_lineno_2=$LINENO
11894 test "x$as_lineno_1" != "x$as_lineno_2" &&
11895 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11898 # uniformly replaced by the line number. The first 'sed' inserts a
11899 # line-number line after each line using $LINENO; the second 'sed'
11900 # does the real work. The second script uses 'N' to pair each
11901 # line-number line with the line containing $LINENO, and appends
11902 # trailing '-' during substitution so that $LINENO is not a special
11903 # case at line end.
11904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11905 # scripts with optimization help from Paolo Bonzini. Blame Lee
11906 # E. McMahon (1931-1989) for sed's syntax. :-)
11907 sed -n '
11908 p
11909 /[$]LINENO/=
11910 ' <$as_myself |
11911 sed '
11912 s/[$]LINENO.*/&-/
11913 t lineno
11914 b
11915 :lineno
11916 N
11917 :loop
11918 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11919 t loop
11920 s/-\n.*//
11921 ' >$as_me.lineno &&
11922 chmod +x "$as_me.lineno" ||
11923 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11924 { (exit 1); exit 1; }; }
11926 # Don't try to exec as it changes $[0], causing all sort of problems
11927 # (the dirname of $[0] is not the place where we might find the
11928 # original and so on. Autoconf is especially sensitive to this).
11929 . "./$as_me.lineno"
11930 # Exit status is that of the last command.
11931 exit
11932 }
11935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11936 as_dirname=dirname
11937 else
11938 as_dirname=false
11939 fi
11941 ECHO_C= ECHO_N= ECHO_T=
11942 case `echo -n x` in
11943 -n*)
11944 case `echo 'x\c'` in
11945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11946 *) ECHO_C='\c';;
11947 esac;;
11948 *)
11949 ECHO_N='-n';;
11950 esac
11951 if expr a : '\(a\)' >/dev/null 2>&1 &&
11952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11953 as_expr=expr
11954 else
11955 as_expr=false
11956 fi
11958 rm -f conf$$ conf$$.exe conf$$.file
11959 if test -d conf$$.dir; then
11960 rm -f conf$$.dir/conf$$.file
11961 else
11962 rm -f conf$$.dir
11963 mkdir conf$$.dir 2>/dev/null
11964 fi
11965 if (echo >conf$$.file) 2>/dev/null; then
11966 if ln -s conf$$.file conf$$ 2>/dev/null; then
11967 as_ln_s='ln -s'
11968 # ... but there are two gotchas:
11969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11971 # In both cases, we have to default to `cp -p'.
11972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11973 as_ln_s='cp -p'
11974 elif ln conf$$.file conf$$ 2>/dev/null; then
11975 as_ln_s=ln
11976 else
11977 as_ln_s='cp -p'
11978 fi
11979 else
11980 as_ln_s='cp -p'
11981 fi
11982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983 rmdir conf$$.dir 2>/dev/null
11985 if mkdir -p . 2>/dev/null; then
11986 as_mkdir_p=:
11987 else
11988 test -d ./-p && rmdir ./-p
11989 as_mkdir_p=false
11990 fi
11992 if test -x / >/dev/null 2>&1; then
11993 as_test_x='test -x'
11994 else
11995 if ls -dL / >/dev/null 2>&1; then
11996 as_ls_L_option=L
11997 else
11998 as_ls_L_option=
11999 fi
12000 as_test_x='
12001 eval sh -c '\''
12002 if test -d "$1"; then
12003 test -d "$1/.";
12004 else
12005 case $1 in
12006 -*)set "./$1";;
12007 esac;
12008 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12009 ???[sx]*):;;*)false;;esac;fi
12010 '\'' sh
12011 '
12012 fi
12013 as_executable_p=$as_test_x
12015 # Sed expression to map a string onto a valid CPP name.
12016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12018 # Sed expression to map a string onto a valid variable name.
12019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12022 exec 6>&1
12024 # Save the log message, to keep $[0] and so on meaningful, and to
12025 # report actual input values of CONFIG_FILES etc. instead of their
12026 # values after options handling.
12027 ac_log="
12028 This file was extended by $as_me, which was
12029 generated by GNU Autoconf 2.62. Invocation command line was
12031 CONFIG_FILES = $CONFIG_FILES
12032 CONFIG_HEADERS = $CONFIG_HEADERS
12033 CONFIG_LINKS = $CONFIG_LINKS
12034 CONFIG_COMMANDS = $CONFIG_COMMANDS
12035 $ $0 $@
12037 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12038 "
12040 _ACEOF
12042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12043 # Files that config.status was made for.
12044 config_files="$ac_config_files"
12045 config_headers="$ac_config_headers"
12046 config_commands="$ac_config_commands"
12048 _ACEOF
12050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12051 ac_cs_usage="\
12052 \`$as_me' instantiates files from templates according to the
12053 current configuration.
12055 Usage: $0 [OPTIONS] [FILE]...
12057 -h, --help print this help, then exit
12058 -V, --version print version number and configuration settings, then exit
12059 -q, --quiet do not print progress messages
12060 -d, --debug don't remove temporary files
12061 --recheck update $as_me by reconfiguring in the same conditions
12062 --file=FILE[:TEMPLATE]
12063 instantiate the configuration file FILE
12064 --header=FILE[:TEMPLATE]
12065 instantiate the configuration header FILE
12067 Configuration files:
12068 $config_files
12070 Configuration headers:
12071 $config_headers
12073 Configuration commands:
12074 $config_commands
12076 Report bugs to <bug-autoconf@gnu.org>."
12078 _ACEOF
12079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12080 ac_cs_version="\\
12081 config.status
12082 configured by $0, generated by GNU Autoconf 2.62,
12083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12085 Copyright (C) 2008 Free Software Foundation, Inc.
12086 This config.status script is free software; the Free Software Foundation
12087 gives unlimited permission to copy, distribute and modify it."
12089 ac_pwd='$ac_pwd'
12090 srcdir='$srcdir'
12091 INSTALL='$INSTALL'
12092 AWK='$AWK'
12093 test -n "\$AWK" || AWK=awk
12094 _ACEOF
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097 # The default lists apply if the user does not specify any file.
12098 ac_need_defaults=:
12099 while test $# != 0
12100 do
12101 case $1 in
12102 --*=*)
12103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12105 ac_shift=:
12106 ;;
12107 *)
12108 ac_option=$1
12109 ac_optarg=$2
12110 ac_shift=shift
12111 ;;
12112 esac
12114 case $ac_option in
12115 # Handling of the options.
12116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12117 ac_cs_recheck=: ;;
12118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12119 $as_echo "$ac_cs_version"; exit ;;
12120 --debug | --debu | --deb | --de | --d | -d )
12121 debug=: ;;
12122 --file | --fil | --fi | --f )
12123 $ac_shift
12124 case $ac_optarg in
12125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12126 esac
12127 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12128 ac_need_defaults=false;;
12129 --header | --heade | --head | --hea )
12130 $ac_shift
12131 case $ac_optarg in
12132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12133 esac
12134 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12135 ac_need_defaults=false;;
12136 --he | --h)
12137 # Conflict between --help and --header
12138 { $as_echo "$as_me: error: ambiguous option: $1
12139 Try \`$0 --help' for more information." >&2
12140 { (exit 1); exit 1; }; };;
12141 --help | --hel | -h )
12142 $as_echo "$ac_cs_usage"; exit ;;
12143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12145 ac_cs_silent=: ;;
12147 # This is an error.
12148 -*) { $as_echo "$as_me: error: unrecognized option: $1
12149 Try \`$0 --help' for more information." >&2
12150 { (exit 1); exit 1; }; } ;;
12152 *) ac_config_targets="$ac_config_targets $1"
12153 ac_need_defaults=false ;;
12155 esac
12156 shift
12157 done
12159 ac_configure_extra_args=
12161 if $ac_cs_silent; then
12162 exec 6>/dev/null
12163 ac_configure_extra_args="$ac_configure_extra_args --silent"
12164 fi
12166 _ACEOF
12167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12168 if \$ac_cs_recheck; then
12169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12170 shift
12171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12172 CONFIG_SHELL='$SHELL'
12173 export CONFIG_SHELL
12174 exec "\$@"
12175 fi
12177 _ACEOF
12178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179 exec 5>>config.log
12180 {
12181 echo
12182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12183 ## Running $as_me. ##
12184 _ASBOX
12185 $as_echo "$ac_log"
12186 } >&5
12188 _ACEOF
12189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12190 #
12191 # INIT-COMMANDS
12192 #
12193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12196 _ACEOF
12198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12200 # Handling of arguments.
12201 for ac_config_target in $ac_config_targets
12202 do
12203 case $ac_config_target in
12204 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12205 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12206 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12208 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12209 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12210 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12211 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
12213 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12214 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12215 { (exit 1); exit 1; }; };;
12216 esac
12217 done
12220 # If the user did not use the arguments to specify the items to instantiate,
12221 # then the envvar interface is used. Set only those that are not.
12222 # We use the long form for the default assignment because of an extremely
12223 # bizarre bug on SunOS 4.1.3.
12224 if $ac_need_defaults; then
12225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12228 fi
12230 # Have a temporary directory for convenience. Make it in the build tree
12231 # simply because there is no reason against having it here, and in addition,
12232 # creating and moving files from /tmp can sometimes cause problems.
12233 # Hook for its removal unless debugging.
12234 # Note that there is a small window in which the directory will not be cleaned:
12235 # after its creation but before its name has been assigned to `$tmp'.
12236 $debug ||
12237 {
12238 tmp=
12239 trap 'exit_status=$?
12240 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12241 ' 0
12242 trap '{ (exit 1); exit 1; }' 1 2 13 15
12243 }
12244 # Create a (secure) tmp directory for tmp files.
12246 {
12247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12248 test -n "$tmp" && test -d "$tmp"
12249 } ||
12250 {
12251 tmp=./conf$$-$RANDOM
12252 (umask 077 && mkdir "$tmp")
12253 } ||
12254 {
12255 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12256 { (exit 1); exit 1; }
12257 }
12259 # Set up the scripts for CONFIG_FILES section.
12260 # No need to generate them if there are no CONFIG_FILES.
12261 # This happens for instance with `./config.status config.h'.
12262 if test -n "$CONFIG_FILES"; then
12265 ac_cr='
12266 '
12267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12269 ac_cs_awk_cr='\\r'
12270 else
12271 ac_cs_awk_cr=$ac_cr
12272 fi
12274 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12275 _ACEOF
12278 {
12279 echo "cat >conf$$subs.awk <<_ACEOF" &&
12280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12281 echo "_ACEOF"
12282 } >conf$$subs.sh ||
12283 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12284 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12285 { (exit 1); exit 1; }; }
12286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12287 ac_delim='%!_!# '
12288 for ac_last_try in false false false false false :; do
12289 . ./conf$$subs.sh ||
12290 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12291 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12292 { (exit 1); exit 1; }; }
12294 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
12295 break
12296 elif $ac_last_try; then
12297 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12298 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12299 { (exit 1); exit 1; }; }
12300 else
12301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12302 fi
12303 done
12304 rm -f conf$$subs.sh
12306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12307 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12308 _ACEOF
12309 sed -n '
12310 h
12311 s/^/S["/; s/!.*/"]=/
12312 p
12313 g
12314 s/^[^!]*!//
12315 :repl
12316 t repl
12317 s/'"$ac_delim"'$//
12318 t delim
12319 :nl
12320 h
12321 s/\(.\{148\}\).*/\1/
12322 t more1
12323 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12324 p
12325 n
12326 b repl
12327 :more1
12328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12329 p
12330 g
12331 s/.\{148\}//
12332 t nl
12333 :delim
12334 h
12335 s/\(.\{148\}\).*/\1/
12336 t more2
12337 s/["\\]/\\&/g; s/^/"/; s/$/"/
12338 p
12339 b
12340 :more2
12341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12342 p
12343 g
12344 s/.\{148\}//
12345 t delim
12346 ' <conf$$subs.awk | sed '
12347 /^[^""]/{
12348 N
12349 s/\n//
12350 }
12351 ' >>$CONFIG_STATUS || ac_write_fail=1
12352 rm -f conf$$subs.awk
12353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354 _ACAWK
12355 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12356 for (key in S) S_is_set[key] = 1
12357 FS = ""
12359 }
12360 {
12361 line = $ 0
12362 nfields = split(line, field, "@")
12363 substed = 0
12364 len = length(field[1])
12365 for (i = 2; i < nfields; i++) {
12366 key = field[i]
12367 keylen = length(key)
12368 if (S_is_set[key]) {
12369 value = S[key]
12370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12371 len += length(value) + length(field[++i])
12372 substed = 1
12373 } else
12374 len += 1 + keylen
12375 }
12377 print line
12378 }
12380 _ACAWK
12381 _ACEOF
12382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12383 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12385 else
12386 cat
12387 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12388 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12389 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12390 { (exit 1); exit 1; }; }
12391 _ACEOF
12393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12395 # trailing colons and then remove the whole line if VPATH becomes empty
12396 # (actually we leave an empty line to preserve line numbers).
12397 if test "x$srcdir" = x.; then
12398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12399 s/:*\$(srcdir):*/:/
12400 s/:*\${srcdir}:*/:/
12401 s/:*@srcdir@:*/:/
12402 s/^\([^=]*=[ ]*\):*/\1/
12403 s/:*$//
12404 s/^[^=]*=[ ]*$//
12405 }'
12406 fi
12408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12409 fi # test -n "$CONFIG_FILES"
12411 # Set up the scripts for CONFIG_HEADERS section.
12412 # No need to generate them if there are no CONFIG_HEADERS.
12413 # This happens for instance with `./config.status Makefile'.
12414 if test -n "$CONFIG_HEADERS"; then
12415 cat >"$tmp/defines.awk" <<\_ACAWK ||
12416 BEGIN {
12417 _ACEOF
12419 # Transform confdefs.h into an awk script `defines.awk', embedded as
12420 # here-document in config.status, that substitutes the proper values into
12421 # config.h.in to produce config.h.
12423 # Create a delimiter string that does not exist in confdefs.h, to ease
12424 # handling of long lines.
12425 ac_delim='%!_!# '
12426 for ac_last_try in false false :; do
12427 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12428 if test -z "$ac_t"; then
12429 break
12430 elif $ac_last_try; then
12431 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12432 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12433 { (exit 1); exit 1; }; }
12434 else
12435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12436 fi
12437 done
12439 # For the awk script, D is an array of macro values keyed by name,
12440 # likewise P contains macro parameters if any. Preserve backslash
12441 # newline sequences.
12443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12444 sed -n '
12445 s/.\{148\}/&'"$ac_delim"'/g
12446 t rset
12447 :rset
12448 s/^[ ]*#[ ]*define[ ][ ]*/ /
12449 t def
12450 d
12451 :def
12452 s/\\$//
12453 t bsnl
12454 s/["\\]/\\&/g
12455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12456 D["\1"]=" \3"/p
12457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12458 d
12459 :bsnl
12460 s/["\\]/\\&/g
12461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12462 D["\1"]=" \3\\\\\\n"\\/p
12463 t cont
12464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12465 t cont
12466 d
12467 :cont
12468 n
12469 s/.\{148\}/&'"$ac_delim"'/g
12470 t clear
12471 :clear
12472 s/\\$//
12473 t bsnlc
12474 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12475 d
12476 :bsnlc
12477 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12478 b cont
12479 ' <confdefs.h | sed '
12480 s/'"$ac_delim"'/"\\\
12481 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12484 for (key in D) D_is_set[key] = 1
12485 FS = ""
12486 }
12487 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12488 line = \$ 0
12489 split(line, arg, " ")
12490 if (arg[1] == "#") {
12491 defundef = arg[2]
12492 mac1 = arg[3]
12493 } else {
12494 defundef = substr(arg[1], 2)
12495 mac1 = arg[2]
12496 }
12497 split(mac1, mac2, "(") #)
12498 macro = mac2[1]
12499 if (D_is_set[macro]) {
12500 # Preserve the white space surrounding the "#".
12501 prefix = substr(line, 1, index(line, defundef) - 1)
12502 print prefix "define", macro P[macro] D[macro]
12503 next
12504 } else {
12505 # Replace #undef with comments. This is necessary, for example,
12506 # in the case of _POSIX_SOURCE, which is predefined and required
12507 # on some systems where configure will not decide to define it.
12508 if (defundef == "undef") {
12509 print "/*", line, "*/"
12510 next
12511 }
12512 }
12513 }
12514 { print }
12515 _ACAWK
12516 _ACEOF
12517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12518 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12519 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12520 { (exit 1); exit 1; }; }
12521 fi # test -n "$CONFIG_HEADERS"
12524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12525 shift
12526 for ac_tag
12527 do
12528 case $ac_tag in
12529 :[FHLC]) ac_mode=$ac_tag; continue;;
12530 esac
12531 case $ac_mode$ac_tag in
12532 :[FHL]*:*);;
12533 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12534 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12535 { (exit 1); exit 1; }; };;
12536 :[FH]-) ac_tag=-:-;;
12537 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12538 esac
12539 ac_save_IFS=$IFS
12540 IFS=:
12541 set x $ac_tag
12542 IFS=$ac_save_IFS
12543 shift
12544 ac_file=$1
12545 shift
12547 case $ac_mode in
12548 :L) ac_source=$1;;
12549 :[FH])
12550 ac_file_inputs=
12551 for ac_f
12552 do
12553 case $ac_f in
12554 -) ac_f="$tmp/stdin";;
12555 *) # Look for the file first in the build tree, then in the source tree
12556 # (if the path is not absolute). The absolute path cannot be DOS-style,
12557 # because $ac_f cannot contain `:'.
12558 test -f "$ac_f" ||
12559 case $ac_f in
12560 [\\/$]*) false;;
12561 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12562 esac ||
12563 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12564 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12565 { (exit 1); exit 1; }; };;
12566 esac
12567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12568 ac_file_inputs="$ac_file_inputs '$ac_f'"
12569 done
12571 # Let's still pretend it is `configure' which instantiates (i.e., don't
12572 # use $as_me), people would be surprised to read:
12573 # /* config.h. Generated by config.status. */
12574 configure_input='Generated from '`
12575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12576 `' by configure.'
12577 if test x"$ac_file" != x-; then
12578 configure_input="$ac_file. $configure_input"
12579 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12580 $as_echo "$as_me: creating $ac_file" >&6;}
12581 fi
12582 # Neutralize special characters interpreted by sed in replacement strings.
12583 case $configure_input in #(
12584 *\&* | *\|* | *\\* )
12585 ac_sed_conf_input=`$as_echo "$configure_input" |
12586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12587 *) ac_sed_conf_input=$configure_input;;
12588 esac
12590 case $ac_tag in
12591 *:-:* | *:-) cat >"$tmp/stdin" \
12592 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12593 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12594 { (exit 1); exit 1; }; } ;;
12595 esac
12596 ;;
12597 esac
12599 ac_dir=`$as_dirname -- "$ac_file" ||
12600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12601 X"$ac_file" : 'X\(//\)[^/]' \| \
12602 X"$ac_file" : 'X\(//\)$' \| \
12603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12604 $as_echo X"$ac_file" |
12605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12606 s//\1/
12607 q
12608 }
12609 /^X\(\/\/\)[^/].*/{
12610 s//\1/
12611 q
12612 }
12613 /^X\(\/\/\)$/{
12614 s//\1/
12615 q
12616 }
12617 /^X\(\/\).*/{
12618 s//\1/
12619 q
12620 }
12621 s/.*/./; q'`
12622 { as_dir="$ac_dir"
12623 case $as_dir in #(
12624 -*) as_dir=./$as_dir;;
12625 esac
12626 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12627 as_dirs=
12628 while :; do
12629 case $as_dir in #(
12630 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12631 *) as_qdir=$as_dir;;
12632 esac
12633 as_dirs="'$as_qdir' $as_dirs"
12634 as_dir=`$as_dirname -- "$as_dir" ||
12635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12636 X"$as_dir" : 'X\(//\)[^/]' \| \
12637 X"$as_dir" : 'X\(//\)$' \| \
12638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12639 $as_echo X"$as_dir" |
12640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12641 s//\1/
12642 q
12643 }
12644 /^X\(\/\/\)[^/].*/{
12645 s//\1/
12646 q
12647 }
12648 /^X\(\/\/\)$/{
12649 s//\1/
12650 q
12651 }
12652 /^X\(\/\).*/{
12653 s//\1/
12654 q
12655 }
12656 s/.*/./; q'`
12657 test -d "$as_dir" && break
12658 done
12659 test -z "$as_dirs" || eval "mkdir $as_dirs"
12660 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12661 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12662 { (exit 1); exit 1; }; }; }
12663 ac_builddir=.
12665 case "$ac_dir" in
12666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12667 *)
12668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12669 # A ".." for each directory in $ac_dir_suffix.
12670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12671 case $ac_top_builddir_sub in
12672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12674 esac ;;
12675 esac
12676 ac_abs_top_builddir=$ac_pwd
12677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12678 # for backward compatibility:
12679 ac_top_builddir=$ac_top_build_prefix
12681 case $srcdir in
12682 .) # We are building in place.
12683 ac_srcdir=.
12684 ac_top_srcdir=$ac_top_builddir_sub
12685 ac_abs_top_srcdir=$ac_pwd ;;
12686 [\\/]* | ?:[\\/]* ) # Absolute name.
12687 ac_srcdir=$srcdir$ac_dir_suffix;
12688 ac_top_srcdir=$srcdir
12689 ac_abs_top_srcdir=$srcdir ;;
12690 *) # Relative name.
12691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12692 ac_top_srcdir=$ac_top_build_prefix$srcdir
12693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12694 esac
12695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12698 case $ac_mode in
12699 :F)
12700 #
12701 # CONFIG_FILE
12702 #
12704 case $INSTALL in
12705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12707 esac
12708 _ACEOF
12710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12711 # If the template does not know about datarootdir, expand it.
12712 # FIXME: This hack should be removed a few years after 2.60.
12713 ac_datarootdir_hack=; ac_datarootdir_seen=
12715 ac_sed_dataroot='
12716 /datarootdir/ {
12717 p
12718 q
12719 }
12720 /@datadir@/p
12721 /@docdir@/p
12722 /@infodir@/p
12723 /@localedir@/p
12724 /@mandir@/p
12725 '
12726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12727 *datarootdir*) ac_datarootdir_seen=yes;;
12728 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12729 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12731 _ACEOF
12732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12733 ac_datarootdir_hack='
12734 s&@datadir@&$datadir&g
12735 s&@docdir@&$docdir&g
12736 s&@infodir@&$infodir&g
12737 s&@localedir@&$localedir&g
12738 s&@mandir@&$mandir&g
12739 s&\\\${datarootdir}&$datarootdir&g' ;;
12740 esac
12741 _ACEOF
12743 # Neutralize VPATH when `$srcdir' = `.'.
12744 # Shell code in configure.ac might set extrasub.
12745 # FIXME: do we really want to maintain this feature?
12746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12747 ac_sed_extra="$ac_vpsub
12748 $extrasub
12749 _ACEOF
12750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12751 :t
12752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12753 s|@configure_input@|$ac_sed_conf_input|;t t
12754 s&@top_builddir@&$ac_top_builddir_sub&;t t
12755 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12756 s&@srcdir@&$ac_srcdir&;t t
12757 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12758 s&@top_srcdir@&$ac_top_srcdir&;t t
12759 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12760 s&@builddir@&$ac_builddir&;t t
12761 s&@abs_builddir@&$ac_abs_builddir&;t t
12762 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12763 s&@INSTALL@&$ac_INSTALL&;t t
12764 $ac_datarootdir_hack
12765 "
12766 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12767 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12768 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12769 { (exit 1); exit 1; }; }
12771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12772 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12773 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12775 which seems to be undefined. Please make sure it is defined." >&5
12776 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12777 which seems to be undefined. Please make sure it is defined." >&2;}
12779 rm -f "$tmp/stdin"
12780 case $ac_file in
12781 -) cat "$tmp/out" && rm -f "$tmp/out";;
12782 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12783 esac \
12784 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12785 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12786 { (exit 1); exit 1; }; }
12787 ;;
12788 :H)
12789 #
12790 # CONFIG_HEADER
12791 #
12792 if test x"$ac_file" != x-; then
12793 {
12794 $as_echo "/* $configure_input */" \
12795 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12796 } >"$tmp/config.h" \
12797 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12798 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12799 { (exit 1); exit 1; }; }
12800 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12801 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12803 else
12804 rm -f "$ac_file"
12805 mv "$tmp/config.h" "$ac_file" \
12806 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12807 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12808 { (exit 1); exit 1; }; }
12809 fi
12810 else
12811 $as_echo "/* $configure_input */" \
12812 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12813 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12814 $as_echo "$as_me: error: could not create -" >&2;}
12815 { (exit 1); exit 1; }; }
12816 fi
12817 # Compute "$ac_file"'s index in $config_headers.
12818 _am_stamp_count=1
12819 for _am_header in $config_headers :; do
12820 case $_am_header in
12821 "$ac_file" | "$ac_file":* )
12822 break ;;
12823 * )
12824 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12825 esac
12826 done
12827 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12829 X"$ac_file" : 'X\(//\)[^/]' \| \
12830 X"$ac_file" : 'X\(//\)$' \| \
12831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12832 $as_echo X"$ac_file" |
12833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12834 s//\1/
12835 q
12836 }
12837 /^X\(\/\/\)[^/].*/{
12838 s//\1/
12839 q
12840 }
12841 /^X\(\/\/\)$/{
12842 s//\1/
12843 q
12844 }
12845 /^X\(\/\).*/{
12846 s//\1/
12847 q
12848 }
12849 s/.*/./; q'`/stamp-h$_am_stamp_count
12850 ;;
12852 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12853 $as_echo "$as_me: executing $ac_file commands" >&6;}
12854 ;;
12855 esac
12858 case $ac_file$ac_mode in
12859 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12860 # Strip MF so we end up with the name of the file.
12861 mf=`echo "$mf" | sed -e 's/:.*$//'`
12862 # Check whether this is an Automake generated Makefile or not.
12863 # We used to match only the files named `Makefile.in', but
12864 # some people rename them; so instead we look at the file content.
12865 # Grep'ing the first line is not enough: some people post-process
12866 # each Makefile.in and add a new line on top of each file to say so.
12867 # So let's grep whole file.
12868 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12869 dirpart=`$as_dirname -- "$mf" ||
12870 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871 X"$mf" : 'X\(//\)[^/]' \| \
12872 X"$mf" : 'X\(//\)$' \| \
12873 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12874 $as_echo X"$mf" |
12875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12876 s//\1/
12877 q
12878 }
12879 /^X\(\/\/\)[^/].*/{
12880 s//\1/
12881 q
12882 }
12883 /^X\(\/\/\)$/{
12884 s//\1/
12885 q
12886 }
12887 /^X\(\/\).*/{
12888 s//\1/
12889 q
12890 }
12891 s/.*/./; q'`
12892 else
12893 continue
12894 fi
12895 # Extract the definition of DEPDIR, am__include, and am__quote
12896 # from the Makefile without running `make'.
12897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12898 test -z "$DEPDIR" && continue
12899 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12900 test -z "am__include" && continue
12901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12902 # When using ansi2knr, U may be empty or an underscore; expand it
12903 U=`sed -n 's/^U = //p' < "$mf"`
12904 # Find all dependency output files, they are included files with
12905 # $(DEPDIR) in their names. We invoke sed twice because it is the
12906 # simplest approach to changing $(DEPDIR) to its actual value in the
12907 # expansion.
12908 for file in `sed -n "
12909 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12910 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12911 # Make sure the directory exists.
12912 test -f "$dirpart/$file" && continue
12913 fdir=`$as_dirname -- "$file" ||
12914 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12915 X"$file" : 'X\(//\)[^/]' \| \
12916 X"$file" : 'X\(//\)$' \| \
12917 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12918 $as_echo X"$file" |
12919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12920 s//\1/
12921 q
12922 }
12923 /^X\(\/\/\)[^/].*/{
12924 s//\1/
12925 q
12926 }
12927 /^X\(\/\/\)$/{
12928 s//\1/
12929 q
12930 }
12931 /^X\(\/\).*/{
12932 s//\1/
12933 q
12934 }
12935 s/.*/./; q'`
12936 { as_dir=$dirpart/$fdir
12937 case $as_dir in #(
12938 -*) as_dir=./$as_dir;;
12939 esac
12940 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12941 as_dirs=
12942 while :; do
12943 case $as_dir in #(
12944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12945 *) as_qdir=$as_dir;;
12946 esac
12947 as_dirs="'$as_qdir' $as_dirs"
12948 as_dir=`$as_dirname -- "$as_dir" ||
12949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12950 X"$as_dir" : 'X\(//\)[^/]' \| \
12951 X"$as_dir" : 'X\(//\)$' \| \
12952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12953 $as_echo X"$as_dir" |
12954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12955 s//\1/
12956 q
12957 }
12958 /^X\(\/\/\)[^/].*/{
12959 s//\1/
12960 q
12961 }
12962 /^X\(\/\/\)$/{
12963 s//\1/
12964 q
12965 }
12966 /^X\(\/\).*/{
12967 s//\1/
12968 q
12969 }
12970 s/.*/./; q'`
12971 test -d "$as_dir" && break
12972 done
12973 test -z "$as_dirs" || eval "mkdir $as_dirs"
12974 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12975 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12976 { (exit 1); exit 1; }; }; }
12977 # echo "creating $dirpart/$file"
12978 echo '# dummy' > "$dirpart/$file"
12979 done
12980 done
12981 ;;
12982 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12983 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12984 esac ;;
12986 esac
12987 done # for ac_tag
12990 { (exit 0); exit 0; }
12991 _ACEOF
12992 chmod +x $CONFIG_STATUS
12993 ac_clean_files=$ac_clean_files_save
12995 test $ac_write_fail = 0 ||
12996 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12997 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12998 { (exit 1); exit 1; }; }
13001 # configure is writing to config.log, and then calls config.status.
13002 # config.status does its own redirection, appending to config.log.
13003 # Unfortunately, on DOS this fails, as config.log is still kept open
13004 # by configure, so config.status won't be able to write to it; its
13005 # output is simply discarded. So we exec the FD to /dev/null,
13006 # effectively closing config.log, so it can be properly (re)opened and
13007 # appended to by config.status. When coming back to configure, we
13008 # need to make the FD available again.
13009 if test "$no_create" != yes; then
13010 ac_cs_success=:
13011 ac_config_status_args=
13012 test "$silent" = yes &&
13013 ac_config_status_args="$ac_config_status_args --quiet"
13014 exec 5>/dev/null
13015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13016 exec 5>>config.log
13017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13018 # would make configure fail if this is the last instruction.
13019 $ac_cs_success || { (exit 1); exit 1; }
13020 fi
13021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13022 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13023 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13024 fi
13026 { as_dir=test/sh4
13027 case $as_dir in #(
13028 -*) as_dir=./$as_dir;;
13029 esac
13030 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13031 as_dirs=
13032 while :; do
13033 case $as_dir in #(
13034 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13035 *) as_qdir=$as_dir;;
13036 esac
13037 as_dirs="'$as_qdir' $as_dirs"
13038 as_dir=`$as_dirname -- "$as_dir" ||
13039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13040 X"$as_dir" : 'X\(//\)[^/]' \| \
13041 X"$as_dir" : 'X\(//\)$' \| \
13042 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13043 $as_echo X"$as_dir" |
13044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13045 s//\1/
13046 q
13047 }
13048 /^X\(\/\/\)[^/].*/{
13049 s//\1/
13050 q
13051 }
13052 /^X\(\/\/\)$/{
13053 s//\1/
13054 q
13055 }
13056 /^X\(\/\).*/{
13057 s//\1/
13058 q
13059 }
13060 s/.*/./; q'`
13061 test -d "$as_dir" && break
13062 done
13063 test -z "$as_dirs" || eval "mkdir $as_dirs"
13064 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13065 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13066 { (exit 1); exit 1; }; }; }
13069 echo
13070 echo "Configuration complete"
13071 echo
13073 if test "x$HAVE_GTK" = x; then
13074 if test "x$HAVE_COCOA" = x; then
13075 echo " User interface: none"
13076 else
13077 echo " User interface: Cocoa"
13078 fi
13079 else
13080 echo " User interface: GTK"
13081 fi
13083 if test "x$SH4_TRANSLATOR" = "x"; then
13084 echo " SH4 translator: None (emulation core only)"
13085 else
13086 echo " SH4 translator: $SH4_TRANSLATOR"
13087 fi
13089 if test "x$VIDEO_DRIVERS" = "x"; then
13090 echo " Video drivers: none (no supported GL found)"
13091 else
13092 echo " Video drivers: $VIDEO_DRIVERS"
13093 fi
13095 if test "x$AUDIO_DRIVERS" = "x"; then
13096 echo " Audio drivers: none (no supported output devices found)"
13097 else
13098 echo " Audio drivers: $AUDIO_DRIVERS"
13099 fi
13101 if test "x$CDROM_DRIVER" = "x"; then
13102 echo " CD-ROM driver: none (no supported cd-rom devices found)"
13103 else
13104 echo " CD-ROM driver: $CDROM_DRIVER"
13105 fi
.