filename | configure |
changeset | 1228:8168aa94e6d7 |
prev | 1226:227ceb186ba7 |
next | 1235:8da2f3dad9c0 |
author | nkeynes |
date | Thu Feb 23 22:20:15 2012 +1000 (12 years ago) |
permissions | -rwxr-xr-x |
last change | Remove most of the remaining fixed-functionality in the shader rendering path. Rearrange the renderer to do each list for the full scene in turn, rather than doing each tile completely |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 MAINTAINER_MODE_TRUE
675 MAINTAINER_MODE_FALSE
676 MAINT
677 build
678 build_cpu
679 build_vendor
680 build_os
681 host
682 host_cpu
683 host_vendor
684 host_os
685 CC
686 CFLAGS
687 LDFLAGS
688 CPPFLAGS
689 ac_ct_CC
690 EXEEXT
691 OBJEXT
692 DEPDIR
693 am__include
694 am__quote
695 AMDEP_TRUE
696 AMDEP_FALSE
697 AMDEPBACKSLASH
698 CCDEPMODE
699 am__fastdepCC_TRUE
700 am__fastdepCC_FALSE
701 CPP
702 CC
703 CFLAGS
704 CPPFLAGS
705 CC_FOR_BUILD
706 ac_ct_CC_FOR_BUILD
707 CC_FOR_BUILDDEPMODE
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
710 CPP
711 CPPFLAGS
712 CPP_FOR_BUILD
713 BUILD_EXEEXT
714 BUILD_OBJEXT
715 CFLAGS_FOR_BUILD
716 CPPFLAGS_FOR_BUILD
717 OBJC
718 OBJCFLAGS
719 ac_ct_OBJC
720 SED
721 CCAS
722 CCASFLAGS
723 RANLIB
724 GREP
725 EGREP
726 OBJCDEPMODE
727 am__fastdepOBJC_TRUE
728 am__fastdepOBJC_FALSE
729 POD2MAN
730 POD2HTML
731 GUI_COCOA_TRUE
732 GUI_COCOA_FALSE
733 SOEXT
734 PLUGINCFLAGS
735 PLUGINLDFLAGS
736 LXDREAMLDFLAGS
737 BUILD_PLUGINS_TRUE
738 BUILD_PLUGINS_FALSE
739 LXDREAMCPPFLAGS
740 PKG_CONFIG
741 LIBPNG_CFLAGS
742 LIBPNG_LIBS
743 GLIB_CFLAGS
744 GLIB_LIBS
745 GTK_CFLAGS
746 GTK_LIBS
747 GLIB_FOR_BUILD_CFLAGS
748 GLIB_FOR_BUILD_LIBS
749 GUI_GTK_TRUE
750 GUI_GTK_FALSE
751 LIBISOFS_CFLAGS
752 LIBISOFS_LIBS
753 LIBGL_CFLAGS
754 LIBGL_LIBS
755 VIDEO_OSMESA_TRUE
756 VIDEO_OSMESA_FALSE
757 VIDEO_GLX_TRUE
758 VIDEO_GLX_FALSE
759 VIDEO_NSGL_TRUE
760 VIDEO_NSGL_FALSE
761 BUILD_SH4X86_TRUE
762 BUILD_SH4X86_FALSE
763 AUDIO_OSX_TRUE
764 AUDIO_OSX_FALSE
765 SDL_CFLAGS
766 SDL_LIBS
767 AUDIO_SDL_TRUE
768 AUDIO_SDL_FALSE
769 PULSE_CFLAGS
770 PULSE_LIBS
771 AUDIO_PULSE_TRUE
772 AUDIO_PULSE_FALSE
773 ESOUND_CFLAGS
774 ESOUND_LIBS
775 AUDIO_ESOUND_TRUE
776 AUDIO_ESOUND_FALSE
777 ALSA_CFLAGS
778 ALSA_LIBS
779 AUDIO_ALSA_TRUE
780 AUDIO_ALSA_FALSE
781 CDROM_LINUX_TRUE
782 CDROM_LINUX_FALSE
783 CDROM_OSX_TRUE
784 CDROM_OSX_FALSE
785 CDROM_NONE_TRUE
786 CDROM_NONE_FALSE
787 JOY_LINUX_TRUE
788 JOY_LINUX_FALSE
789 INPUT_LIRC_TRUE
790 INPUT_LIRC_FALSE
791 SHCC
792 SHLD
793 SHOBJCOPY
794 ARMCC
795 ARMLD
796 ARMOBJCOPY
797 BUILD_SYSTEST_TRUE
798 BUILD_SYSTEST_FALSE
799 BUILD_ARMTEST_TRUE
800 BUILD_ARMTEST_FALSE
801 LXDREAM_LIBS
802 GETTEXT_PACKAGE
803 USE_NLS
804 MSGFMT
805 MSGFMT_OPTS
806 GMSGFMT
807 XGETTEXT
808 CATALOGS
809 CATOBJEXT
810 DATADIRNAME
811 GMOFILES
812 INSTOBJEXT
813 INTLLIBS
814 PO_IN_DATADIR_TRUE
815 PO_IN_DATADIR_FALSE
816 POFILES
817 POSUB
818 MKINSTALLDIRS
819 LIBOBJS
820 LTLIBOBJS'
821 ac_subst_files=''
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CPP
831 CC
832 CFLAGS
833 CPPFLAGS
834 CPP
835 CPPFLAGS
836 OBJC
837 OBJCFLAGS
838 CCAS
839 CCASFLAGS
840 PKG_CONFIG
841 LIBPNG_CFLAGS
842 LIBPNG_LIBS
843 GLIB_CFLAGS
844 GLIB_LIBS
845 GTK_CFLAGS
846 GTK_LIBS
847 GLIB_FOR_BUILD_CFLAGS
848 GLIB_FOR_BUILD_LIBS
849 LIBISOFS_CFLAGS
850 LIBISOFS_LIBS
851 LIBGL_CFLAGS
852 LIBGL_LIBS
853 SDL_CFLAGS
854 SDL_LIBS
855 PULSE_CFLAGS
856 PULSE_LIBS
857 ESOUND_CFLAGS
858 ESOUND_LIBS
859 ALSA_CFLAGS
860 ALSA_LIBS'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
920 case $ac_option in
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *) ac_optarg=yes ;;
923 esac
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
948 --config-cache | -C)
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
967 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
968 { (exit 1); exit 1; }; }
969 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
970 eval enable_$ac_feature=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
982 -enable-* | --enable-*)
983 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987 { (exit 1); exit 1; }; }
988 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
989 eval enable_$ac_feature=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186 eval with_$ac_package=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=no ;;
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) { echo "$as_me: error: unrecognized option: $ac_option
1216 Try \`$0 --help' for more information." >&2
1217 { (exit 1); exit 1; }; }
1218 ;;
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1225 { (exit 1); exit 1; }; }
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 ;;
1237 esac
1238 done
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 { echo "$as_me: error: missing argument to $ac_option" >&2
1243 { (exit 1); exit 1; }; }
1244 fi
1246 # Be sure to have absolute directory names.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1251 do
1252 eval ac_val=\$$ac_var
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258 { (exit 1); exit 1; }; }
1259 done
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 { echo "$as_me: error: Working directory cannot be determined" >&2
1289 { (exit 1); exit 1; }; }
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 { echo "$as_me: error: pwd does not report name of working directory" >&2
1292 { (exit 1); exit 1; }; }
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$0" ||
1300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$0" : 'X\(//\)[^/]' \| \
1302 X"$0" : 'X\(//\)$' \| \
1303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 echo X"$0" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332 { (exit 1); exit 1; }; }
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1337 { (exit 1); exit 1; }; }
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures this package to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1418 cat <<\_ACEOF
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1431 if test -n "$ac_init_help"; then
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-strict-warn Enable strict compilation warnings
1443 --disable-translator Disable the SH4 translator (Enabled by default)
1444 --disable-optimized Disable compile-time optimizations (Enabled by
1445 default)
1446 --enable-shared Build drivers as shared libraries (Enabled if
1447 available)
1448 --enable-profiled Enable profiling build
1449 --enable-trace Enable generation of IO traces (warning: hurts
1450 performance)
1451 --enable-watch Enable watchpoints in the debugger (warning: hurts
1452 performance)
1453 --enable-sh4stats Enable statistics on executed sh4 instructions
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-osmesa Build with the osmesa GL library (software
1459 rendering)
1460 --with-gtk Build with the GTK UI. Default on X11 systems
1461 --with-esd Build with support for the ESounD audio system
1462 --with-pulse Build with support for the PulseAudio audio system
1463 --with-sdl Build with support for SDL audio
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 OBJC Objective C compiler command
1475 OBJCFLAGS Objective C compiler flags
1476 CCAS assembler compiler command (defaults to CC)
1477 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1478 PKG_CONFIG path to pkg-config utility
1479 LIBPNG_CFLAGS
1480 C compiler flags for LIBPNG, overriding pkg-config
1481 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1482 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1483 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1484 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1485 GTK_LIBS linker flags for GTK, overriding pkg-config
1486 GLIB_FOR_BUILD_CFLAGS
1487 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1488 GLIB_FOR_BUILD_LIBS
1489 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1490 LIBISOFS_CFLAGS
1491 C compiler flags for LIBISOFS, overriding pkg-config
1492 LIBISOFS_LIBS
1493 linker flags for LIBISOFS, overriding pkg-config
1494 LIBGL_CFLAGS
1495 C compiler flags for LIBGL, overriding pkg-config
1496 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1497 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1498 SDL_LIBS linker flags for SDL, overriding pkg-config
1499 PULSE_CFLAGS
1500 C compiler flags for PULSE, overriding pkg-config
1501 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1502 ESOUND_CFLAGS
1503 C compiler flags for ESOUND, overriding pkg-config
1504 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1505 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1506 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1519 ac_builddir=.
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 configure
1572 generated by GNU Autoconf 2.61
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1585 It was created by $as_me, which was
1586 generated by GNU Autoconf 2.61. Invocation command line was
1588 $ $0 $@
1590 _ACEOF
1591 exec 5>>config.log
1592 {
1593 cat <<_ASUNAME
1594 ## --------- ##
1595 ## Platform. ##
1596 ## --------- ##
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615 _ASUNAME
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 echo "PATH: $as_dir"
1623 done
1624 IFS=$as_save_IFS
1626 } >&5
1628 cat >&5 <<_ACEOF
1631 ## ----------- ##
1632 ## Core tests. ##
1633 ## ----------- ##
1635 _ACEOF
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_configure_args=
1644 ac_configure_args0=
1645 ac_configure_args1=
1646 ac_must_keep_next=false
1647 for ac_pass in 1 2
1648 do
1649 for ac_arg
1650 do
1651 case $ac_arg in
1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654 | -silent | --silent | --silen | --sile | --sil)
1655 continue ;;
1656 *\'*)
1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 esac
1659 case $ac_pass in
1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 2)
1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663 if test $ac_must_keep_next = true; then
1664 ac_must_keep_next=false # Got value, back to normal.
1665 else
1666 case $ac_arg in
1667 *=* | --config-cache | -C | -disable-* | --disable-* \
1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670 | -with-* | --with-* | -without-* | --without-* | --x)
1671 case "$ac_configure_args0 " in
1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673 esac
1674 ;;
1675 -* ) ac_must_keep_next=true ;;
1676 esac
1677 fi
1678 ac_configure_args="$ac_configure_args '$ac_arg'"
1679 ;;
1680 esac
1681 done
1682 done
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log. We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692 # Save into config.log some information that might help in debugging.
1693 {
1694 echo
1696 cat <<\_ASBOX
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1700 _ASBOX
1701 echo
1702 # The following way of writing the cache mishandles newlines in values,
1703 (
1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705 eval ac_val=\$$ac_var
1706 case $ac_val in #(
1707 *${as_nl}*)
1708 case $ac_var in #(
1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711 esac
1712 case $ac_var in #(
1713 _ | IFS | as_nl) ;; #(
1714 *) $as_unset $ac_var ;;
1715 esac ;;
1716 esac
1717 done
1718 (set) 2>&1 |
1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720 *${as_nl}ac_space=\ *)
1721 sed -n \
1722 "s/'\''/'\''\\\\'\'''\''/g;
1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724 ;; #(
1725 *)
1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ;;
1728 esac |
1729 sort
1730 )
1731 echo
1733 cat <<\_ASBOX
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1737 _ASBOX
1738 echo
1739 for ac_var in $ac_subst_vars
1740 do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 esac
1745 echo "$ac_var='\''$ac_val'\''"
1746 done | sort
1747 echo
1749 if test -n "$ac_subst_files"; then
1750 cat <<\_ASBOX
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1754 _ASBOX
1755 echo
1756 for ac_var in $ac_subst_files
1757 do
1758 eval ac_val=\$$ac_var
1759 case $ac_val in
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 esac
1762 echo "$ac_var='\''$ac_val'\''"
1763 done | sort
1764 echo
1765 fi
1767 if test -s confdefs.h; then
1768 cat <<\_ASBOX
1769 ## ----------- ##
1770 ## confdefs.h. ##
1771 ## ----------- ##
1772 _ASBOX
1773 echo
1774 cat confdefs.h
1775 echo
1776 fi
1777 test "$ac_signal" != 0 &&
1778 echo "$as_me: caught signal $ac_signal"
1779 echo "$as_me: exit $exit_status"
1780 } >&5
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783 exit $exit_status
1784 ' 0
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 done
1788 ac_signal=0
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 _ACEOF
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823 set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 else
1827 set x "$ac_default_prefix/share/config.site" \
1828 "$ac_default_prefix/etc/config.site"
1829 fi
1830 shift
1831 for ac_site_file
1832 do
1833 if test -r "$ac_site_file"; then
1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1837 . "$ac_site_file"
1838 fi
1839 done
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 echo "$as_me: loading cache $cache_file" >&6;}
1847 case $cache_file in
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1850 esac
1851 fi
1852 else
1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 echo "$as_me: creating cache $cache_file" >&6;}
1855 >$cache_file
1856 fi
1858 # Check that the precious variables saved in the cache have kept the same
1859 # value.
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1867 set,)
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1871 ,set)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,);;
1876 *)
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1881 echo "$as_me: former value: $ac_old_val" >&2;}
1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1883 echo "$as_me: current value: $ac_new_val" >&2;}
1884 ac_cache_corrupted=:
1885 fi;;
1886 esac
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1889 case $ac_new_val in
1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1892 esac
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 esac
1897 fi
1898 done
1899 if $ac_cache_corrupted; then
1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904 { (exit 1); exit 1; }; }
1905 fi
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 am__api_version="1.9"
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1951 fi
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Find a good install program. We prefer a C program (faster),
1963 # so one script is as good as another. But avoid the broken or
1964 # incompatible versions:
1965 # SysV /etc/install, /usr/sbin/install
1966 # SunOS /usr/etc/install
1967 # IRIX /sbin/install
1968 # AIX /bin/install
1969 # AmigaOS /C/install, which installs bootblocks on floppy discs
1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # OS/2's system install, which has a completely different semantic
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1987 case $as_dir/ in
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1991 /usr/ucb/* ) ;;
1992 *)
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1995 # by default.
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2002 :
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2006 :
2007 else
2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009 break 3
2010 fi
2011 fi
2012 done
2013 done
2014 ;;
2015 esac
2016 done
2017 IFS=$as_save_IFS
2020 fi
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2023 else
2024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
2026 # break other packages using the cache if that directory is
2027 # removed, or if the value is a relative name.
2028 INSTALL=$ac_install_sh
2029 fi
2030 fi
2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2032 echo "${ECHO_T}$INSTALL" >&6; }
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2044 # Just in case
2045 sleep 1
2046 echo timestamp > conftest.file
2047 # Do `set' in a subshell so we don't clobber the current shell's
2048 # arguments. Must try -L first in case configure is actually a
2049 # symlink; some systems play weird games with the mod time of symlinks
2050 # (eg FreeBSD returns the mod time of the symlink's containing
2051 # directory).
2052 if (
2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054 if test "$*" = "X"; then
2055 # -L didn't work.
2056 set X `ls -t $srcdir/configure conftest.file`
2057 fi
2058 rm -f conftest.file
2059 if test "$*" != "X $srcdir/configure conftest.file" \
2060 && test "$*" != "X conftest.file $srcdir/configure"; then
2062 # If neither matched, then we have a broken ls. This can happen
2063 # if, for instance, CONFIG_SHELL is bash and it inherits a
2064 # broken ls alias from the environment. This has actually
2065 # happened. Such a system could not be considered "sane".
2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2067 alias in your environment" >&5
2068 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2073 test "$2" = conftest.file
2074 )
2075 then
2076 # Ok.
2077 :
2078 else
2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080 Check your system clock" >&5
2081 echo "$as_me: error: newly created file is older than distributed files!
2082 Check your system clock" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085 { echo "$as_me:$LINENO: result: yes" >&5
2086 echo "${ECHO_T}yes" >&6; }
2087 test "$program_prefix" != NONE &&
2088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089 # Use a double $ so make ignores it.
2090 test "$program_suffix" != NONE &&
2091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092 # Double any \ or $. echo might interpret backslashes.
2093 # By default was `s,x,x', remove it if useless.
2094 cat <<\_ACEOF >conftest.sed
2095 s/[\\$]/&&/g;s/;s,x,x,$//
2096 _ACEOF
2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2098 rm -f conftest.sed
2100 # expand $ac_aux_dir to an absolute path
2101 am_aux_dir=`cd $ac_aux_dir && pwd`
2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104 # Use eval to expand $SHELL
2105 if eval "$MISSING --run true"; then
2106 am_missing_run="$MISSING --run "
2107 else
2108 am_missing_run=
2109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2111 fi
2113 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2114 # We used to keeping the `.' as first argument, in order to
2115 # allow $(mkdir_p) to be used without argument. As in
2116 # $(mkdir_p) $(somedir)
2117 # where $(somedir) is conditionally defined. However this is wrong
2118 # for two reasons:
2119 # 1. if the package is installed by a user who cannot write `.'
2120 # make install will fail,
2121 # 2. the above comment should most certainly read
2122 # $(mkdir_p) $(DESTDIR)$(somedir)
2123 # so it does not work when $(somedir) is undefined and
2124 # $(DESTDIR) is not.
2125 # To support the latter case, we have to write
2126 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2127 # so the `.' trick is pointless.
2128 mkdir_p='mkdir -p --'
2129 else
2130 # On NextStep and OpenStep, the `mkdir' command does not
2131 # recognize any option. It will interpret all options as
2132 # directories to create, and then abort because `.' already
2133 # exists.
2134 for d in ./-p ./--version;
2135 do
2136 test -d $d && rmdir $d
2137 done
2138 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2139 if test -f "$ac_aux_dir/mkinstalldirs"; then
2140 mkdir_p='$(mkinstalldirs)'
2141 else
2142 mkdir_p='$(install_sh) -d'
2143 fi
2144 fi
2146 for ac_prog in gawk mawk nawk awk
2147 do
2148 # Extract the first word of "$ac_prog", so it can be a program name with args.
2149 set dummy $ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_AWK+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 if test -n "$AWK"; then
2156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_AWK="$ac_prog"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2168 fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2173 fi
2174 fi
2175 AWK=$ac_cv_prog_AWK
2176 if test -n "$AWK"; then
2177 { echo "$as_me:$LINENO: result: $AWK" >&5
2178 echo "${ECHO_T}$AWK" >&6; }
2179 else
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2185 test -n "$AWK" && break
2186 done
2188 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2189 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2190 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2191 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 cat >conftest.make <<\_ACEOF
2195 SHELL = /bin/sh
2196 all:
2197 @echo '@@@%%%=$(MAKE)=@@@%%%'
2198 _ACEOF
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2201 *@@@%%%=?*=@@@%%%*)
2202 eval ac_cv_prog_make_${ac_make}_set=yes;;
2203 *)
2204 eval ac_cv_prog_make_${ac_make}_set=no;;
2205 esac
2206 rm -f conftest.make
2207 fi
2208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2209 { echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6; }
2211 SET_MAKE=
2212 else
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 SET_MAKE="MAKE=${MAKE-make}"
2216 fi
2218 rm -rf .tst 2>/dev/null
2219 mkdir .tst 2>/dev/null
2220 if test -d .tst; then
2221 am__leading_dot=.
2222 else
2223 am__leading_dot=_
2224 fi
2225 rmdir .tst 2>/dev/null
2227 # test to see if srcdir already configured
2228 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2229 test -f $srcdir/config.status; then
2230 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2231 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2232 { (exit 1); exit 1; }; }
2233 fi
2235 # test whether we have cygpath
2236 if test -z "$CYGPATH_W"; then
2237 if (cygpath --version) >/dev/null 2>/dev/null; then
2238 CYGPATH_W='cygpath -w'
2239 else
2240 CYGPATH_W=echo
2241 fi
2242 fi
2245 # Define the identity of the package.
2246 PACKAGE=lxdream
2247 VERSION=0.9.1
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE "$PACKAGE"
2252 _ACEOF
2255 cat >>confdefs.h <<_ACEOF
2256 #define VERSION "$VERSION"
2257 _ACEOF
2259 # Some tools Automake needs.
2261 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2264 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2267 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2270 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2273 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'. However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$STRIP"; then
2291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2308 fi
2309 fi
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312 { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2314 else
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2320 fi
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 ac_ct_STRIP=$STRIP
2323 # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$ac_ct_STRIP"; then
2331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_ac_ct_STRIP="strip"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2348 fi
2349 fi
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2354 else
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2359 if test "x$ac_ct_STRIP" = x; then
2360 STRIP=":"
2361 else
2362 case $cross_compiling:$ac_tool_warned in
2363 yes:)
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2371 esac
2372 STRIP=$ac_ct_STRIP
2373 fi
2374 else
2375 STRIP="$ac_cv_prog_STRIP"
2376 fi
2378 fi
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2381 # We need awk for the "check" target. The system "awk" is bad on
2382 # some platforms.
2383 # Always define AMTAR for backward compatibility.
2385 AMTAR=${AMTAR-"${am_missing_run}tar"}
2387 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2395 # Check whether --enable-maintainer-mode was given.
2396 if test "${enable_maintainer_mode+set}" = set; then
2397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2398 else
2399 USE_MAINTAINER_MODE=no
2400 fi
2402 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2406 if test $USE_MAINTAINER_MODE = yes; then
2407 MAINTAINER_MODE_TRUE=
2408 MAINTAINER_MODE_FALSE='#'
2409 else
2410 MAINTAINER_MODE_TRUE='#'
2411 MAINTAINER_MODE_FALSE=
2412 fi
2414 MAINT=$MAINTAINER_MODE_TRUE
2417 ac_config_headers="$ac_config_headers config.h"
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424 { (exit 1); exit 1; }; }
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437 { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441 { (exit 1); exit 1; }; }
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2447 *-*-*) ;;
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450 { (exit 1); exit 1; }; };;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2473 else
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477 { (exit 1); exit 1; }; }
2478 fi
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2483 case $ac_cv_host in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487 { (exit 1); exit 1; }; };;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512 DEPDIR="${am__leading_dot}deps"
2514 ac_config_commands="$ac_config_commands depfiles"
2517 am_make=${MAKE-make}
2518 cat > confinc << 'END'
2519 am__doit:
2520 @echo done
2521 .PHONY: am__doit
2522 END
2523 # If we don't find an include directive, just comment out the code.
2524 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2525 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2526 am__include="#"
2527 am__quote=
2528 _am_result=none
2529 # First try GNU make style include.
2530 echo "include confinc" > confmf
2531 # We grep out `Entering directory' and `Leaving directory'
2532 # messages which can occur if `w' ends up in MAKEFLAGS.
2533 # In particular we don't look at `^make:' because GNU make might
2534 # be invoked under some other name (usually "gmake"), in which
2535 # case it prints its new name instead of `make'.
2536 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2537 am__include=include
2538 am__quote=
2539 _am_result=GNU
2540 fi
2541 # Now try BSD make style include.
2542 if test "$am__include" = "#"; then
2543 echo '.include "confinc"' > confmf
2544 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2545 am__include=.include
2546 am__quote="\""
2547 _am_result=BSD
2548 fi
2549 fi
2552 { echo "$as_me:$LINENO: result: $_am_result" >&5
2553 echo "${ECHO_T}$_am_result" >&6; }
2554 rm -f confinc confmf
2556 # Check whether --enable-dependency-tracking was given.
2557 if test "${enable_dependency_tracking+set}" = set; then
2558 enableval=$enable_dependency_tracking;
2559 fi
2561 if test "x$enable_dependency_tracking" != xno; then
2562 am_depcomp="$ac_aux_dir/depcomp"
2563 AMDEPBACKSLASH='\'
2564 fi
2567 if test "x$enable_dependency_tracking" != xno; then
2568 AMDEP_TRUE=
2569 AMDEP_FALSE='#'
2570 else
2571 AMDEP_TRUE='#'
2572 AMDEP_FALSE=
2573 fi
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2620 fi
2621 if test -z "$ac_cv_prog_CC"; then
2622 ac_ct_CC=$CC
2623 # Extract the first word of "gcc", so it can be a program name with args.
2624 set dummy gcc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_CC="gcc"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 else
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2659 if test "x$ac_ct_CC" = x; then
2660 CC=""
2661 else
2662 case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672 CC=$ac_ct_CC
2673 fi
2674 else
2675 CC="$ac_cv_prog_CC"
2676 fi
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2705 fi
2706 fi
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { echo "$as_me:$LINENO: result: $CC" >&5
2710 echo "${ECHO_T}$CC" >&6; }
2711 else
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2714 fi
2717 fi
2718 fi
2719 if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2740 continue
2741 fi
2742 ac_cv_prog_CC="cc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2750 if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2753 shift
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2758 shift
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2760 fi
2761 fi
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2768 else
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2771 fi
2774 fi
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2778 do
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2804 fi
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6; }
2810 else
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2816 test -n "$CC" && break
2817 done
2818 fi
2819 if test -z "$CC"; then
2820 ac_ct_CC=$CC
2821 for ac_prog in cl.exe
2822 do
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2848 fi
2849 fi
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 echo "${ECHO_T}$ac_ct_CC" >&6; }
2854 else
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2860 test -n "$ac_ct_CC" && break
2861 done
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876 CC=$ac_ct_CC
2877 fi
2878 fi
2880 fi
2883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: no acceptable C compiler found in \$PATH
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2930 int
2931 main ()
2932 {
2934 ;
2935 return 0;
2936 }
2937 _ACEOF
2938 ac_clean_files_save=$ac_clean_files
2939 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2940 # Try to create an executable without -o first, disregard a.out.
2941 # It will help us diagnose broken compilers, and finding out an intuition
2942 # of exeext.
2943 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2944 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2945 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 #
2947 # List of possible output files, starting from the most likely.
2948 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2949 # only as a last resort. b.out is created by i960 compilers.
2950 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2951 #
2952 # The IRIX 6 linker writes into existing files which may not be
2953 # executable, retaining their permissions. Remove them first so a
2954 # subsequent execution test works.
2955 ac_rmfiles=
2956 for ac_file in $ac_files
2957 do
2958 case $ac_file in
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2960 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2961 esac
2962 done
2963 rm -f $ac_rmfiles
2965 if { (ac_try="$ac_link_default"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_link_default") 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; then
2975 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2976 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2977 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2978 # so that the user can short-circuit this test for compilers unknown to
2979 # Autoconf.
2980 for ac_file in $ac_files ''
2981 do
2982 test -f "$ac_file" || continue
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2985 ;;
2986 [ab].out )
2987 # We found the default executable, but exeext='' is most
2988 # certainly right.
2989 break;;
2990 *.* )
2991 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2992 then :; else
2993 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 fi
2995 # We set ac_cv_exeext here because the later test for it is not
2996 # safe: cross compilers may not add the suffix if given an `-o'
2997 # argument, so we may need to know it at that point already.
2998 # Even if this section looks crufty: it has the advantage of
2999 # actually working.
3000 break;;
3001 * )
3002 break;;
3003 esac
3004 done
3005 test "$ac_cv_exeext" = no && ac_cv_exeext=
3007 else
3008 ac_file=''
3009 fi
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3013 if test -z "$ac_file"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021 { (exit 77); exit 77; }; }
3022 fi
3024 ac_exeext=$ac_cv_exeext
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3029 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3031 # If not cross compiling, check that we can run a simple program.
3032 if test "$cross_compiling" != yes; then
3033 if { ac_try='./$ac_file'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 cross_compiling=no
3044 else
3045 if test "$cross_compiling" = maybe; then
3046 cross_compiling=yes
3047 else
3048 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details." >&5
3051 echo "$as_me: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3055 fi
3056 fi
3057 fi
3058 { echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6; }
3061 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3066 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3067 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3068 echo "${ECHO_T}$cross_compiling" >&6; }
3070 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3071 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3072 if { (ac_try="$ac_link"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_link") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 # `rm'.
3086 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 break;;
3092 * ) break;;
3093 esac
3094 done
3095 else
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3101 fi
3103 rm -f conftest$ac_cv_exeext
3104 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3109 ac_exeext=$EXEEXT
3110 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3122 int
3123 main ()
3124 {
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.o conftest.obj
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 break;;
3147 esac
3148 done
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3158 fi
3160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 fi
3162 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3163 echo "${ECHO_T}$ac_cv_objext" >&6; }
3164 OBJEXT=$ac_cv_objext
3165 ac_objext=$OBJEXT
3166 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3178 int
3179 main ()
3180 {
3181 #ifndef __GNUC__
3182 choke me
3183 #endif
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
3206 ac_compiler_gnu=yes
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_compiler_gnu=no
3212 fi
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217 fi
3218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3220 GCC=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_g+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 ac_save_c_werror_flag=$ac_c_werror_flag
3229 ac_c_werror_flag=yes
3230 ac_cv_prog_cc_g=no
3231 CFLAGS="-g"
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 int
3240 main ()
3241 {
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (ac_try="$ac_compile"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3264 ac_cv_prog_cc_g=yes
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 CFLAGS=""
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3277 int
3278 main ()
3279 {
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3302 :
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308 CFLAGS="-g"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3316 int
3317 main ()
3318 {
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3341 ac_cv_prog_cc_g=yes
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3347 fi
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 fi
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_c_werror_flag=$ac_save_c_werror_flag
3357 fi
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361 CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363 if test "$GCC" = yes; then
3364 CFLAGS="-g -O2"
3365 else
3366 CFLAGS="-g"
3367 fi
3368 else
3369 if test "$GCC" = yes; then
3370 CFLAGS="-O2"
3371 else
3372 CFLAGS=
3373 fi
3374 fi
3375 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3376 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 ac_cv_prog_cc_c89=no
3381 ac_save_CC=$CC
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <stdarg.h>
3389 #include <stdio.h>
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3396 char **p;
3397 int i;
3398 {
3399 return p[i];
3400 }
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3402 {
3403 char *s;
3404 va_list v;
3405 va_start (v,p);
3406 s = g (p, va_arg (v,int));
3407 va_end (v);
3408 return s;
3409 }
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3422 #define FOO(x) 'x'
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429 int argc;
3430 char **argv;
3431 int
3432 main ()
3433 {
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 do
3442 CC="$ac_save_CC $ac_arg"
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_prog_cc_c89=$ac_arg
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3466 fi
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC
3474 fi
3475 # AC_CACHE_VAL
3476 case "x$ac_cv_prog_cc_c89" in
3477 x)
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3480 xno)
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3483 *)
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3487 esac
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 depcc="$CC" am_compiler_list=
3498 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3499 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3500 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3504 # We make a subdir and do the tests there. Otherwise we can end up
3505 # making bogus files that we don't know about and never remove. For
3506 # instance it was reported that on HP-UX the gcc test will end up
3507 # making a dummy file named `D' -- because `-MD' means `put the output
3508 # in D'.
3509 mkdir conftest.dir
3510 # Copy depcomp to subdir because otherwise we won't find it if we're
3511 # using a relative directory.
3512 cp "$am_depcomp" conftest.dir
3513 cd conftest.dir
3514 # We will build objects and dependencies in a subdirectory because
3515 # it helps to detect inapplicable dependency modes. For instance
3516 # both Tru64's cc and ICC support -MD to output dependencies as a
3517 # side effect of compilation, but ICC will put the dependencies in
3518 # the current directory while Tru64 will put them in the object
3519 # directory.
3520 mkdir sub
3522 am_cv_CC_dependencies_compiler_type=none
3523 if test "$am_compiler_list" = ""; then
3524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3525 fi
3526 for depmode in $am_compiler_list; do
3527 # Setup a source with many dependencies, because some compilers
3528 # like to wrap large dependency lists on column 80 (with \), and
3529 # we should not choose a depcomp mode which is confused by this.
3530 #
3531 # We need to recreate these files for each test, as the compiler may
3532 # overwrite some of them when testing with obscure command lines.
3533 # This happens at least with the AIX C compiler.
3534 : > sub/conftest.c
3535 for i in 1 2 3 4 5 6; do
3536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3537 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3538 # Solaris 8's {/usr,}/bin/sh.
3539 touch sub/conftst$i.h
3540 done
3541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3543 case $depmode in
3544 nosideeffect)
3545 # after this tag, mechanisms are not by side-effect, so they'll
3546 # only be used when explicitly requested
3547 if test "x$enable_dependency_tracking" = xyes; then
3548 continue
3549 else
3550 break
3551 fi
3552 ;;
3553 none) break ;;
3554 esac
3555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3556 # mode. It turns out that the SunPro C++ compiler does not properly
3557 # handle `-M -o', and we need to detect this.
3558 if depmode=$depmode \
3559 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3561 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3562 >/dev/null 2>conftest.err &&
3563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566 # icc doesn't choke on unknown options, it will just issue warnings
3567 # or remarks (even with -Werror). So we grep stderr for any message
3568 # that says an option was ignored or not supported.
3569 # When given -MP, icc 7.0 and 7.1 complain thusly:
3570 # icc: Command line warning: ignoring option '-M'; no argument required
3571 # The diagnosis changed in icc 8.0:
3572 # icc: Command line remark: option '-MP' not supported
3573 if (grep 'ignoring option' conftest.err ||
3574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3575 am_cv_CC_dependencies_compiler_type=$depmode
3576 break
3577 fi
3578 fi
3579 done
3581 cd ..
3582 rm -rf conftest.dir
3583 else
3584 am_cv_CC_dependencies_compiler_type=none
3585 fi
3587 fi
3588 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3589 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3590 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3594 if
3595 test "x$enable_dependency_tracking" != xno \
3596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3597 am__fastdepCC_TRUE=
3598 am__fastdepCC_FALSE='#'
3599 else
3600 am__fastdepCC_TRUE='#'
3601 am__fastdepCC_FALSE=
3602 fi
3607 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3608 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3609 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 ac_check_lib_save_LIBS=$LIBS
3613 LIBS="-lcposix $LIBS"
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3621 /* Override any GCC internal prototype to avoid an error.
3622 Use char because int might match the return type of a GCC
3623 builtin and then its argument prototype would still apply. */
3624 #ifdef __cplusplus
3625 extern "C"
3626 #endif
3627 char strerror ();
3628 int
3629 main ()
3630 {
3631 return strerror ();
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (ac_try="$ac_link"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_link") 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest$ac_exeext &&
3653 $as_test_x conftest$ac_exeext; then
3654 ac_cv_lib_cposix_strerror=yes
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_lib_cposix_strerror=no
3660 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3663 conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3665 fi
3666 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3667 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3668 if test $ac_cv_lib_cposix_strerror = yes; then
3669 LIBS="$LIBS -lcposix"
3670 fi
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709 { echo "$as_me:$LINENO: result: $CC" >&5
3710 echo "${ECHO_T}$CC" >&6; }
3711 else
3712 { echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6; }
3714 fi
3717 fi
3718 if test -z "$ac_cv_prog_CC"; then
3719 ac_ct_CC=$CC
3720 # Extract the first word of "gcc", so it can be a program name with args.
3721 set dummy gcc; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 if test -n "$ac_ct_CC"; then
3728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_ac_ct_CC="gcc"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3745 fi
3746 fi
3747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3748 if test -n "$ac_ct_CC"; then
3749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3750 echo "${ECHO_T}$ac_ct_CC" >&6; }
3751 else
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3754 fi
3756 if test "x$ac_ct_CC" = x; then
3757 CC=""
3758 else
3759 case $cross_compiling:$ac_tool_warned in
3760 yes:)
3761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3762 whose name does not start with the host triplet. If you think this
3763 configuration is useful to you, please write to autoconf@gnu.org." >&5
3764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3765 whose name does not start with the host triplet. If you think this
3766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3767 ac_tool_warned=yes ;;
3768 esac
3769 CC=$ac_ct_CC
3770 fi
3771 else
3772 CC="$ac_cv_prog_CC"
3773 fi
3775 if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}cc; ac_word=$2
3779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC="${ac_tool_prefix}cc"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3802 fi
3803 fi
3804 CC=$ac_cv_prog_CC
3805 if test -n "$CC"; then
3806 { echo "$as_me:$LINENO: result: $CC" >&5
3807 echo "${ECHO_T}$CC" >&6; }
3808 else
3809 { echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6; }
3811 fi
3814 fi
3815 fi
3816 if test -z "$CC"; then
3817 # Extract the first word of "cc", so it can be a program name with args.
3818 set dummy cc; ac_word=$2
3819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3821 if test "${ac_cv_prog_CC+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826 else
3827 ac_prog_rejected=no
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3836 ac_prog_rejected=yes
3837 continue
3838 fi
3839 ac_cv_prog_CC="cc"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3847 if test $ac_prog_rejected = yes; then
3848 # We found a bogon in the path, so make sure we never use it.
3849 set dummy $ac_cv_prog_CC
3850 shift
3851 if test $# != 0; then
3852 # We chose a different compiler from the bogus one.
3853 # However, it has the same basename, so the bogon will be chosen
3854 # first if we set CC to just the basename; use the full file name.
3855 shift
3856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3857 fi
3858 fi
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { echo "$as_me:$LINENO: result: $CC" >&5
3864 echo "${ECHO_T}$CC" >&6; }
3865 else
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3868 fi
3871 fi
3872 if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog in cl.exe
3875 do
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3896 fi
3897 done
3898 done
3899 IFS=$as_save_IFS
3901 fi
3902 fi
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905 { echo "$as_me:$LINENO: result: $CC" >&5
3906 echo "${ECHO_T}$CC" >&6; }
3907 else
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3910 fi
3913 test -n "$CC" && break
3914 done
3915 fi
3916 if test -z "$CC"; then
3917 ac_ct_CC=$CC
3918 for ac_prog in cl.exe
3919 do
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_CC"; then
3928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CC="$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3945 fi
3946 fi
3947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3950 echo "${ECHO_T}$ac_ct_CC" >&6; }
3951 else
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3954 fi
3957 test -n "$ac_ct_CC" && break
3958 done
3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966 whose name does not start with the host triplet. If you think this
3967 configuration is useful to you, please write to autoconf@gnu.org." >&5
3968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971 ac_tool_warned=yes ;;
3972 esac
3973 CC=$ac_ct_CC
3974 fi
3975 fi
3977 fi
3980 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: no acceptable C compiler found in \$PATH
3983 See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3986 # Provide some information about the compiler.
3987 echo "$as_me:$LINENO: checking for C compiler version" >&5
3988 ac_compiler=`set X $ac_compile; echo $2`
3989 { (ac_try="$ac_compiler --version >&5"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_compiler --version >&5") 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }
3999 { (ac_try="$ac_compiler -v >&5"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compiler -v >&5") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (ac_try="$ac_compiler -V >&5"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compiler -V >&5") 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4020 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036 choke me
4037 #endif
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (ac_try="$ac_compile"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_compile") 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } && {
4057 test -z "$ac_c_werror_flag" ||
4058 test ! -s conftest.err
4059 } && test -s conftest.$ac_objext; then
4060 ac_compiler_gnu=yes
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_compiler_gnu=no
4066 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 fi
4072 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4073 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4074 GCC=`test $ac_compiler_gnu = yes && echo yes`
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4093 int
4094 main ()
4095 {
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4118 ac_cv_prog_cc_g=yes
4119 else
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 CFLAGS=""
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 int
4132 main ()
4133 {
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
4156 :
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 CFLAGS="-g"
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 int
4171 main ()
4172 {
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && {
4192 test -z "$ac_c_werror_flag" ||
4193 test ! -s conftest.err
4194 } && test -s conftest.$ac_objext; then
4195 ac_cv_prog_cc_g=yes
4196 else
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4201 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 fi
4212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4218 CFLAGS="-g -O2"
4219 else
4220 CFLAGS="-g"
4221 fi
4222 else
4223 if test "$GCC" = yes; then
4224 CFLAGS="-O2"
4225 else
4226 CFLAGS=
4227 fi
4228 fi
4229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4231 if test "${ac_cv_prog_cc_c89+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 ac_cv_prog_cc_c89=no
4235 ac_save_CC=$CC
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <stdarg.h>
4243 #include <stdio.h>
4244 #include <sys/types.h>
4245 #include <sys/stat.h>
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4250 char **p;
4251 int i;
4252 {
4253 return p[i];
4254 }
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4256 {
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4263 }
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276 #define FOO(x) 'x'
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 int argc;
4284 char **argv;
4285 int
4286 main ()
4287 {
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 do
4296 CC="$ac_save_CC $ac_arg"
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 ac_cv_prog_cc_c89=$ac_arg
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4320 fi
4322 rm -f core conftest.err conftest.$ac_objext
4323 test "x$ac_cv_prog_cc_c89" != "xno" && break
4324 done
4325 rm -f conftest.$ac_ext
4326 CC=$ac_save_CC
4328 fi
4329 # AC_CACHE_VAL
4330 case "x$ac_cv_prog_cc_c89" in
4331 x)
4332 { echo "$as_me:$LINENO: result: none needed" >&5
4333 echo "${ECHO_T}none needed" >&6; } ;;
4334 xno)
4335 { echo "$as_me:$LINENO: result: unsupported" >&5
4336 echo "${ECHO_T}unsupported" >&6; } ;;
4337 *)
4338 CC="$CC $ac_cv_prog_cc_c89"
4339 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4340 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4341 esac
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 depcc="$CC" am_compiler_list=
4352 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4353 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4354 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4358 # We make a subdir and do the tests there. Otherwise we can end up
4359 # making bogus files that we don't know about and never remove. For
4360 # instance it was reported that on HP-UX the gcc test will end up
4361 # making a dummy file named `D' -- because `-MD' means `put the output
4362 # in D'.
4363 mkdir conftest.dir
4364 # Copy depcomp to subdir because otherwise we won't find it if we're
4365 # using a relative directory.
4366 cp "$am_depcomp" conftest.dir
4367 cd conftest.dir
4368 # We will build objects and dependencies in a subdirectory because
4369 # it helps to detect inapplicable dependency modes. For instance
4370 # both Tru64's cc and ICC support -MD to output dependencies as a
4371 # side effect of compilation, but ICC will put the dependencies in
4372 # the current directory while Tru64 will put them in the object
4373 # directory.
4374 mkdir sub
4376 am_cv_CC_dependencies_compiler_type=none
4377 if test "$am_compiler_list" = ""; then
4378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4379 fi
4380 for depmode in $am_compiler_list; do
4381 # Setup a source with many dependencies, because some compilers
4382 # like to wrap large dependency lists on column 80 (with \), and
4383 # we should not choose a depcomp mode which is confused by this.
4384 #
4385 # We need to recreate these files for each test, as the compiler may
4386 # overwrite some of them when testing with obscure command lines.
4387 # This happens at least with the AIX C compiler.
4388 : > sub/conftest.c
4389 for i in 1 2 3 4 5 6; do
4390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4391 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4392 # Solaris 8's {/usr,}/bin/sh.
4393 touch sub/conftst$i.h
4394 done
4395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4397 case $depmode in
4398 nosideeffect)
4399 # after this tag, mechanisms are not by side-effect, so they'll
4400 # only be used when explicitly requested
4401 if test "x$enable_dependency_tracking" = xyes; then
4402 continue
4403 else
4404 break
4405 fi
4406 ;;
4407 none) break ;;
4408 esac
4409 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4410 # mode. It turns out that the SunPro C++ compiler does not properly
4411 # handle `-M -o', and we need to detect this.
4412 if depmode=$depmode \
4413 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4415 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4416 >/dev/null 2>conftest.err &&
4417 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4418 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4419 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4420 # icc doesn't choke on unknown options, it will just issue warnings
4421 # or remarks (even with -Werror). So we grep stderr for any message
4422 # that says an option was ignored or not supported.
4423 # When given -MP, icc 7.0 and 7.1 complain thusly:
4424 # icc: Command line warning: ignoring option '-M'; no argument required
4425 # The diagnosis changed in icc 8.0:
4426 # icc: Command line remark: option '-MP' not supported
4427 if (grep 'ignoring option' conftest.err ||
4428 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4429 am_cv_CC_dependencies_compiler_type=$depmode
4430 break
4431 fi
4432 fi
4433 done
4435 cd ..
4436 rm -rf conftest.dir
4437 else
4438 am_cv_CC_dependencies_compiler_type=none
4439 fi
4441 fi
4442 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4443 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4444 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4448 if
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_TRUE=
4452 am__fastdepCC_FALSE='#'
4453 else
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
4456 fi
4459 ac_ext=c
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4490 fi
4491 fi
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { echo "$as_me:$LINENO: result: $CC" >&5
4495 echo "${ECHO_T}$CC" >&6; }
4496 else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4502 fi
4503 if test -z "$ac_cv_prog_CC"; then
4504 ac_ct_CC=$CC
4505 # Extract the first word of "gcc", so it can be a program name with args.
4506 set dummy gcc; ac_word=$2
4507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$ac_ct_CC"; then
4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_CC="gcc"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4530 fi
4531 fi
4532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533 if test -n "$ac_ct_CC"; then
4534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4535 echo "${ECHO_T}$ac_ct_CC" >&6; }
4536 else
4537 { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4539 fi
4541 if test "x$ac_ct_CC" = x; then
4542 CC=""
4543 else
4544 case $cross_compiling:$ac_tool_warned in
4545 yes:)
4546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&5
4549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet. If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554 CC=$ac_ct_CC
4555 fi
4556 else
4557 CC="$ac_cv_prog_CC"
4558 fi
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}cc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CC="${ac_tool_prefix}cc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4587 fi
4588 fi
4589 CC=$ac_cv_prog_CC
4590 if test -n "$CC"; then
4591 { echo "$as_me:$LINENO: result: $CC" >&5
4592 echo "${ECHO_T}$CC" >&6; }
4593 else
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4599 fi
4600 fi
4601 if test -z "$CC"; then
4602 # Extract the first word of "cc", so it can be a program name with args.
4603 set dummy cc; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4611 else
4612 ac_prog_rejected=no
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4621 ac_prog_rejected=yes
4622 continue
4623 fi
4624 ac_cv_prog_CC="cc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4632 if test $ac_prog_rejected = yes; then
4633 # We found a bogon in the path, so make sure we never use it.
4634 set dummy $ac_cv_prog_CC
4635 shift
4636 if test $# != 0; then
4637 # We chose a different compiler from the bogus one.
4638 # However, it has the same basename, so the bogon will be chosen
4639 # first if we set CC to just the basename; use the full file name.
4640 shift
4641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4642 fi
4643 fi
4644 fi
4645 fi
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4656 fi
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in cl.exe
4660 do
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4686 fi
4687 fi
4688 CC=$ac_cv_prog_CC
4689 if test -n "$CC"; then
4690 { echo "$as_me:$LINENO: result: $CC" >&5
4691 echo "${ECHO_T}$CC" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4698 test -n "$CC" && break
4699 done
4700 fi
4701 if test -z "$CC"; then
4702 ac_ct_CC=$CC
4703 for ac_prog in cl.exe
4704 do
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 if test -n "$ac_ct_CC"; then
4713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_ac_ct_CC="$ac_prog"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4730 fi
4731 fi
4732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4733 if test -n "$ac_ct_CC"; then
4734 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4735 echo "${ECHO_T}$ac_ct_CC" >&6; }
4736 else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4742 test -n "$ac_ct_CC" && break
4743 done
4745 if test "x$ac_ct_CC" = x; then
4746 CC=""
4747 else
4748 case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet. If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&5
4753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet. If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 CC=$ac_ct_CC
4759 fi
4760 fi
4762 fi
4765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4766 See \`config.log' for more details." >&5
4767 echo "$as_me: error: no acceptable C compiler found in \$PATH
4768 See \`config.log' for more details." >&2;}
4769 { (exit 1); exit 1; }; }
4771 # Provide some information about the compiler.
4772 echo "$as_me:$LINENO: checking for C compiler version" >&5
4773 ac_compiler=`set X $ac_compile; echo $2`
4774 { (ac_try="$ac_compiler --version >&5"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_compiler --version >&5") 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4784 { (ac_try="$ac_compiler -v >&5"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (ac_try="$ac_compiler -V >&5"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_compiler -V >&5") 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }
4805 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 int
4818 main ()
4819 {
4820 #ifndef __GNUC__
4821 choke me
4822 #endif
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (ac_try="$ac_compile"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compile") 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest.$ac_objext; then
4845 ac_compiler_gnu=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_compiler_gnu=no
4851 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4856 fi
4857 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4858 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4859 GCC=`test $ac_compiler_gnu = yes && echo yes`
4860 ac_test_CFLAGS=${CFLAGS+set}
4861 ac_save_CFLAGS=$CFLAGS
4862 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4863 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_cc_g+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 ac_save_c_werror_flag=$ac_c_werror_flag
4868 ac_c_werror_flag=yes
4869 ac_cv_prog_cc_g=no
4870 CFLAGS="-g"
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 int
4879 main ()
4880 {
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 rm -f conftest.$ac_objext
4887 if { (ac_try="$ac_compile"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4903 ac_cv_prog_cc_g=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 CFLAGS=""
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 int
4917 main ()
4918 {
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 :
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_c_werror_flag=$ac_save_c_werror_flag
4947 CFLAGS="-g"
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 int
4956 main ()
4957 {
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4980 ac_cv_prog_cc_g=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4986 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_c_werror_flag=$ac_save_c_werror_flag
4996 fi
4997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4999 if test "$ac_test_CFLAGS" = set; then
5000 CFLAGS=$ac_save_CFLAGS
5001 elif test $ac_cv_prog_cc_g = yes; then
5002 if test "$GCC" = yes; then
5003 CFLAGS="-g -O2"
5004 else
5005 CFLAGS="-g"
5006 fi
5007 else
5008 if test "$GCC" = yes; then
5009 CFLAGS="-O2"
5010 else
5011 CFLAGS=
5012 fi
5013 fi
5014 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5015 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_cc_c89+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 ac_cv_prog_cc_c89=no
5020 ac_save_CC=$CC
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <stdarg.h>
5028 #include <stdio.h>
5029 #include <sys/types.h>
5030 #include <sys/stat.h>
5031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5032 struct buf { int x; };
5033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5034 static char *e (p, i)
5035 char **p;
5036 int i;
5037 {
5038 return p[i];
5039 }
5040 static char *f (char * (*g) (char **, int), char **p, ...)
5041 {
5042 char *s;
5043 va_list v;
5044 va_start (v,p);
5045 s = g (p, va_arg (v,int));
5046 va_end (v);
5047 return s;
5048 }
5050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5051 function prototypes and stuff, but not '\xHH' hex character constants.
5052 These don't provoke an error unfortunately, instead are silently treated
5053 as 'x'. The following induces an error, until -std is added to get
5054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5055 array size at least. It's necessary to write '\x00'==0 to get something
5056 that's true only with -std. */
5057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5060 inside strings and character constants. */
5061 #define FOO(x) 'x'
5062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5064 int test (int i, double x);
5065 struct s1 {int (*f) (int a);};
5066 struct s2 {int (*f) (double a);};
5067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5068 int argc;
5069 char **argv;
5070 int
5071 main ()
5072 {
5073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5080 do
5081 CC="$ac_save_CC $ac_arg"
5082 rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest.$ac_objext; then
5099 ac_cv_prog_cc_c89=$ac_arg
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 done
5110 rm -f conftest.$ac_ext
5111 CC=$ac_save_CC
5113 fi
5114 # AC_CACHE_VAL
5115 case "x$ac_cv_prog_cc_c89" in
5116 x)
5117 { echo "$as_me:$LINENO: result: none needed" >&5
5118 echo "${ECHO_T}none needed" >&6; } ;;
5119 xno)
5120 { echo "$as_me:$LINENO: result: unsupported" >&5
5121 echo "${ECHO_T}unsupported" >&6; } ;;
5122 *)
5123 CC="$CC $ac_cv_prog_cc_c89"
5124 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5126 esac
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 depcc="$CC" am_compiler_list=
5137 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5138 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5139 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5143 # We make a subdir and do the tests there. Otherwise we can end up
5144 # making bogus files that we don't know about and never remove. For
5145 # instance it was reported that on HP-UX the gcc test will end up
5146 # making a dummy file named `D' -- because `-MD' means `put the output
5147 # in D'.
5148 mkdir conftest.dir
5149 # Copy depcomp to subdir because otherwise we won't find it if we're
5150 # using a relative directory.
5151 cp "$am_depcomp" conftest.dir
5152 cd conftest.dir
5153 # We will build objects and dependencies in a subdirectory because
5154 # it helps to detect inapplicable dependency modes. For instance
5155 # both Tru64's cc and ICC support -MD to output dependencies as a
5156 # side effect of compilation, but ICC will put the dependencies in
5157 # the current directory while Tru64 will put them in the object
5158 # directory.
5159 mkdir sub
5161 am_cv_CC_dependencies_compiler_type=none
5162 if test "$am_compiler_list" = ""; then
5163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164 fi
5165 for depmode in $am_compiler_list; do
5166 # Setup a source with many dependencies, because some compilers
5167 # like to wrap large dependency lists on column 80 (with \), and
5168 # we should not choose a depcomp mode which is confused by this.
5169 #
5170 # We need to recreate these files for each test, as the compiler may
5171 # overwrite some of them when testing with obscure command lines.
5172 # This happens at least with the AIX C compiler.
5173 : > sub/conftest.c
5174 for i in 1 2 3 4 5 6; do
5175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5176 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5177 # Solaris 8's {/usr,}/bin/sh.
5178 touch sub/conftst$i.h
5179 done
5180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5182 case $depmode in
5183 nosideeffect)
5184 # after this tag, mechanisms are not by side-effect, so they'll
5185 # only be used when explicitly requested
5186 if test "x$enable_dependency_tracking" = xyes; then
5187 continue
5188 else
5189 break
5190 fi
5191 ;;
5192 none) break ;;
5193 esac
5194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5195 # mode. It turns out that the SunPro C++ compiler does not properly
5196 # handle `-M -o', and we need to detect this.
5197 if depmode=$depmode \
5198 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5200 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5201 >/dev/null 2>conftest.err &&
5202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5203 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5205 # icc doesn't choke on unknown options, it will just issue warnings
5206 # or remarks (even with -Werror). So we grep stderr for any message
5207 # that says an option was ignored or not supported.
5208 # When given -MP, icc 7.0 and 7.1 complain thusly:
5209 # icc: Command line warning: ignoring option '-M'; no argument required
5210 # The diagnosis changed in icc 8.0:
5211 # icc: Command line remark: option '-MP' not supported
5212 if (grep 'ignoring option' conftest.err ||
5213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5214 am_cv_CC_dependencies_compiler_type=$depmode
5215 break
5216 fi
5217 fi
5218 done
5220 cd ..
5221 rm -rf conftest.dir
5222 else
5223 am_cv_CC_dependencies_compiler_type=none
5224 fi
5226 fi
5227 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5228 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5229 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233 if
5234 test "x$enable_dependency_tracking" != xno \
5235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5236 am__fastdepCC_TRUE=
5237 am__fastdepCC_FALSE='#'
5238 else
5239 am__fastdepCC_TRUE='#'
5240 am__fastdepCC_FALSE=
5241 fi
5245 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5247 ac_ext=c
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5254 # On Suns, sometimes $CPP names a directory.
5255 if test -n "$CPP" && test -d "$CPP"; then
5256 CPP=
5257 fi
5258 if test -z "$CPP"; then
5259 if test "${ac_cv_prog_CPP+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 # Double quotes because CPP needs to be expanded
5263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5264 do
5265 ac_preproc_ok=false
5266 for ac_c_preproc_warn_flag in '' yes
5267 do
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #ifdef __STDC__
5281 # include <limits.h>
5282 #else
5283 # include <assert.h>
5284 #endif
5285 Syntax error
5286 _ACEOF
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 :
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 # Broken: fails on valid input.
5309 continue
5310 fi
5312 rm -f conftest.err conftest.$ac_ext
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5323 _ACEOF
5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input.
5341 continue
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5349 fi
5351 rm -f conftest.err conftest.$ac_ext
5353 done
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then
5357 break
5358 fi
5360 done
5361 ac_cv_prog_CPP=$CPP
5363 fi
5364 CPP=$ac_cv_prog_CPP
5365 else
5366 ac_cv_prog_CPP=$CPP
5367 fi
5368 { echo "$as_me:$LINENO: result: $CPP" >&5
5369 echo "${ECHO_T}$CPP" >&6; }
5370 ac_preproc_ok=false
5371 for ac_c_preproc_warn_flag in '' yes
5372 do
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390 Syntax error
5391 _ACEOF
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null && {
5405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 }; then
5408 :
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 # Broken: fails on valid input.
5414 continue
5415 fi
5417 rm -f conftest.err conftest.$ac_ext
5419 # OK, works on sane cases. Now check whether nonexistent headers
5420 # can be detected and how.
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <ac_nonexistent.h>
5428 _ACEOF
5429 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null && {
5442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 }; then
5445 # Broken: success on invalid input.
5446 continue
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 # Passes both tests.
5452 ac_preproc_ok=:
5453 break
5454 fi
5456 rm -f conftest.err conftest.$ac_ext
5458 done
5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460 rm -f conftest.err conftest.$ac_ext
5461 if $ac_preproc_ok; then
5462 :
5463 else
5464 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5465 See \`config.log' for more details." >&5
5466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5467 See \`config.log' for more details." >&2;}
5468 { (exit 1); exit 1; }; }
5469 fi
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 ac_main_cc="$CC"
5479 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5481 if test -z "$CC_FOR_BUILD"; then
5482 if test "$#" = yes; then
5483 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot run test program while cross compiling
5486 See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; }
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 int main(){return 0;}
5491 _ACEOF
5492 rm -f conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_link") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503 { (case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 CC_FOR_BUILD="$CC"
5513 else
5514 echo "$as_me: program exited with status $ac_status" >&5
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 fi
5519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520 fi
5523 fi
5526 ac_ext=c
5527 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5528 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5529 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5531 if test -n "$ac_build_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5533 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5536 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 if test -n "$CC_FOR_BUILD"; then
5540 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5557 fi
5558 fi
5559 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5560 if test -n "$CC_FOR_BUILD"; then
5561 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5562 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5563 else
5564 { echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6; }
5566 fi
5569 fi
5570 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5571 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5572 # Extract the first word of "gcc", so it can be a program name with args.
5573 set dummy gcc; ac_word=$2
5574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5576 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 if test -n "$ac_ct_CC_FOR_BUILD"; then
5580 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5597 fi
5598 fi
5599 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5600 if test -n "$ac_ct_CC_FOR_BUILD"; then
5601 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5602 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5603 else
5604 { echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6; }
5606 fi
5608 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5609 CC_FOR_BUILD=""
5610 else
5611 case $#:$ac_tool_warned in
5612 yes:)
5613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5614 whose name does not start with the build triplet. If you think this
5615 configuration is useful to you, please write to autoconf@gnu.org." >&5
5616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5617 whose name does not start with the build triplet. If you think this
5618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5622 fi
5623 else
5624 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5625 fi
5627 if test -z "$CC_FOR_BUILD"; then
5628 if test -n "$ac_build_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5630 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 if test -n "$CC_FOR_BUILD"; then
5637 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5654 fi
5655 fi
5656 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5657 if test -n "$CC_FOR_BUILD"; then
5658 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5659 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5660 else
5661 { echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6; }
5663 fi
5666 fi
5667 fi
5668 if test -z "$CC_FOR_BUILD"; then
5669 # Extract the first word of "cc", so it can be a program name with args.
5670 set dummy cc; ac_word=$2
5671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5673 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 if test -n "$CC_FOR_BUILD"; then
5677 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5678 else
5679 ac_prog_rejected=no
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5688 ac_prog_rejected=yes
5689 continue
5690 fi
5691 ac_cv_prog_CC_FOR_BUILD="cc"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5699 if test $ac_prog_rejected = yes; then
5700 # We found a bogon in the path, so make sure we never use it.
5701 set dummy $ac_cv_prog_CC_FOR_BUILD
5702 shift
5703 if test $# != 0; then
5704 # We chose a different compiler from the bogus one.
5705 # However, it has the same basename, so the bogon will be chosen
5706 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5707 shift
5708 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5709 fi
5710 fi
5711 fi
5712 fi
5713 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5714 if test -n "$CC_FOR_BUILD"; then
5715 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5716 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5717 else
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5720 fi
5723 fi
5724 if test -z "$CC_FOR_BUILD"; then
5725 if test -n "$ac_build_tool_prefix"; then
5726 for ac_prog in cl.exe
5727 do
5728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5729 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 if test -n "$CC_FOR_BUILD"; then
5736 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5753 fi
5754 fi
5755 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5756 if test -n "$CC_FOR_BUILD"; then
5757 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5758 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5759 else
5760 { echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6; }
5762 fi
5765 test -n "$CC_FOR_BUILD" && break
5766 done
5767 fi
5768 if test -z "$CC_FOR_BUILD"; then
5769 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5770 for ac_prog in cl.exe
5771 do
5772 # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy $ac_prog; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 if test -n "$ac_ct_CC_FOR_BUILD"; then
5780 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5797 fi
5798 fi
5799 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5800 if test -n "$ac_ct_CC_FOR_BUILD"; then
5801 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5802 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5803 else
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806 fi
5809 test -n "$ac_ct_CC_FOR_BUILD" && break
5810 done
5812 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5813 CC_FOR_BUILD=""
5814 else
5815 case $#:$ac_tool_warned in
5816 yes:)
5817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5818 whose name does not start with the build triplet. If you think this
5819 configuration is useful to you, please write to autoconf@gnu.org." >&5
5820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5821 whose name does not start with the build triplet. If you think this
5822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5823 ac_tool_warned=yes ;;
5824 esac
5825 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5826 fi
5827 fi
5829 fi
5832 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: no acceptable C compiler found in \$PATH
5835 See \`config.log' for more details." >&2;}
5836 { (exit 1); exit 1; }; }
5838 # Provide some information about the compiler.
5839 echo "$as_me:$LINENO: checking for C compiler version" >&5
5840 ac_compiler=`set X $ac_build_compile; echo $2`
5841 { (ac_try="$ac_compiler --version >&5"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compiler --version >&5") 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }
5851 { (ac_try="$ac_compiler -v >&5"
5852 case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler -v >&5") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861 { (ac_try="$ac_compiler -V >&5"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler -V >&5") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5872 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 int
5885 main ()
5886 {
5887 #ifndef __GNUC__
5888 choke me
5889 #endif
5891 ;
5892 return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_build_objext
5896 if { (ac_try="$ac_build_compile"
5897 case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_build_compile") 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_build_objext; then
5912 ac_build_compiler_gnu=yes
5913 else
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_build_compiler_gnu=no
5918 fi
5920 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5921 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5923 fi
5924 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5925 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5926 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5927 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5928 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5929 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5930 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5931 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 ac_save_c_werror_flag=$ac_c_werror_flag
5935 ac_c_werror_flag=yes
5936 ac_cv_build_prog_cc_g=no
5937 CFLAGS_FOR_BUILD="-g"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5945 int
5946 main ()
5947 {
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_build_objext
5954 if { (ac_try="$ac_build_compile"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_build_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_build_objext; then
5970 ac_cv_build_prog_cc_g=yes
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 CFLAGS_FOR_BUILD=""
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5983 int
5984 main ()
5985 {
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_build_objext
5992 if { (ac_try="$ac_build_compile"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_build_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_build_objext; then
6008 :
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_c_werror_flag=$ac_save_c_werror_flag
6014 CFLAGS_FOR_BUILD="-g"
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6022 int
6023 main ()
6024 {
6026 ;
6027 return 0;
6028 }
6029 _ACEOF
6030 rm -f conftest.$ac_build_objext
6031 if { (ac_try="$ac_build_compile"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_build_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_build_objext; then
6047 ac_cv_build_prog_cc_g=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6053 fi
6055 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6056 fi
6058 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6059 fi
6061 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6062 ac_c_werror_flag=$ac_save_c_werror_flag
6063 fi
6064 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6065 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6066 if test "$ac_test_CFLAGS" = set; then
6067 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6068 elif test $ac_cv_build_prog_cc_g = yes; then
6069 if test "$GCC" = yes; then
6070 CFLAGS_FOR_BUILD="-g -O2"
6071 else
6072 CFLAGS_FOR_BUILD="-g"
6073 fi
6074 else
6075 if test "$GCC" = yes; then
6076 CFLAGS_FOR_BUILD="-O2"
6077 else
6078 CFLAGS_FOR_BUILD=
6079 fi
6080 fi
6081 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6082 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6083 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 ac_cv_build_prog_cc_stdc=no
6087 ac_save_CC=$CC_FOR_BUILD
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <stdarg.h>
6095 #include <stdio.h>
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6099 struct buf { int x; };
6100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6101 static char *e (p, i)
6102 char **p;
6103 int i;
6104 {
6105 return p[i];
6106 }
6107 static char *f (char * (*g) (char **, int), char **p, ...)
6108 {
6109 char *s;
6110 va_list v;
6111 va_start (v,p);
6112 s = g (p, va_arg (v,int));
6113 va_end (v);
6114 return s;
6115 }
6117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6118 function prototypes and stuff, but not '\xHH' hex character constants.
6119 These don't provoke an error unfortunately, instead are silently treated
6120 as 'x'. The following induces an error, until -std is added to get
6121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6122 array size at least. It's necessary to write '\x00'==0 to get something
6123 that's true only with -std. */
6124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6127 inside strings and character constants. */
6128 #define FOO(x) 'x'
6129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6131 int test (int i, double x);
6132 struct s1 {int (*f) (int a);};
6133 struct s2 {int (*f) (double a);};
6134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6135 int argc;
6136 char **argv;
6137 int
6138 main ()
6139 {
6140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6147 do
6148 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6149 rm -f conftest.$ac_build_objext
6150 if { (ac_try="$ac_build_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_build_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_build_objext; then
6166 ac_cv_build_prog_cc_stdc=$ac_arg
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6172 fi
6174 rm -f core conftest.err conftest.$ac_build_objext
6175 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6176 done
6177 rm -f conftest.$ac_ext
6178 CC_FOR_BUILD=$ac_save_CC
6180 fi
6181 # AC_CACHE_VAL
6182 case "x$ac_cv_build_prog_cc_stdc" in
6183 x)
6184 { echo "$as_me:$LINENO: result: none needed" >&5
6185 echo "${ECHO_T}none needed" >&6; } ;;
6186 xno)
6187 { echo "$as_me:$LINENO: result: unsupported" >&5
6188 echo "${ECHO_T}unsupported" >&6; } ;;
6189 *)
6190 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6191 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6193 esac
6196 ac_ext=c
6197 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6198 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6199 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6202 depcc="$CC_FOR_BUILD" am_compiler_list=
6204 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6205 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6206 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6210 # We make a subdir and do the tests there. Otherwise we can end up
6211 # making bogus files that we don't know about and never remove. For
6212 # instance it was reported that on HP-UX the gcc test will end up
6213 # making a dummy file named `D' -- because `-MD' means `put the output
6214 # in D'.
6215 mkdir conftest.dir
6216 # Copy depcomp to subdir because otherwise we won't find it if we're
6217 # using a relative directory.
6218 cp "$am_depcomp" conftest.dir
6219 cd conftest.dir
6220 # We will build objects and dependencies in a subdirectory because
6221 # it helps to detect inapplicable dependency modes. For instance
6222 # both Tru64's cc and ICC support -MD to output dependencies as a
6223 # side effect of compilation, but ICC will put the dependencies in
6224 # the current directory while Tru64 will put them in the object
6225 # directory.
6226 mkdir sub
6228 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6229 if test "$am_compiler_list" = ""; then
6230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6231 fi
6232 for depmode in $am_compiler_list; do
6233 # Setup a source with many dependencies, because some compilers
6234 # like to wrap large dependency lists on column 80 (with \), and
6235 # we should not choose a depcomp mode which is confused by this.
6236 #
6237 # We need to recreate these files for each test, as the compiler may
6238 # overwrite some of them when testing with obscure command lines.
6239 # This happens at least with the AIX C compiler.
6240 : > sub/conftest.c
6241 for i in 1 2 3 4 5 6; do
6242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6244 # Solaris 8's {/usr,}/bin/sh.
6245 touch sub/conftst$i.h
6246 done
6247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6249 case $depmode in
6250 nosideeffect)
6251 # after this tag, mechanisms are not by side-effect, so they'll
6252 # only be used when explicitly requested
6253 if test "x$enable_dependency_tracking" = xyes; then
6254 continue
6255 else
6256 break
6257 fi
6258 ;;
6259 none) break ;;
6260 esac
6261 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6262 # mode. It turns out that the SunPro C++ compiler does not properly
6263 # handle `-M -o', and we need to detect this.
6264 if depmode=$depmode \
6265 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6267 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6268 >/dev/null 2>conftest.err &&
6269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6270 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6272 # icc doesn't choke on unknown options, it will just issue warnings
6273 # or remarks (even with -Werror). So we grep stderr for any message
6274 # that says an option was ignored or not supported.
6275 # When given -MP, icc 7.0 and 7.1 complain thusly:
6276 # icc: Command line warning: ignoring option '-M'; no argument required
6277 # The diagnosis changed in icc 8.0:
6278 # icc: Command line remark: option '-MP' not supported
6279 if (grep 'ignoring option' conftest.err ||
6280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6281 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6282 break
6283 fi
6284 fi
6285 done
6287 cd ..
6288 rm -rf conftest.dir
6289 else
6290 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6291 fi
6293 fi
6294 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6295 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6296 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6300 if
6301 test "x$enable_dependency_tracking" != xno \
6302 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6303 am__fastdepCC_FOR_BUILD_TRUE=
6304 am__fastdepCC_FOR_BUILD_FALSE='#'
6305 else
6306 am__fastdepCC_FOR_BUILD_TRUE='#'
6307 am__fastdepCC_FOR_BUILD_FALSE=
6308 fi
6311 case $ac_cv_build_prog_cc_stdc in
6312 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6313 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6314 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6315 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 ac_cv_build_prog_cc_stdc=no
6319 ac_save_CC=$CC_FOR_BUILD
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <stdarg.h>
6327 #include <stdbool.h>
6328 #include <stdlib.h>
6329 #include <wchar.h>
6330 #include <stdio.h>
6332 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6333 #define debug(...) fprintf (stderr, __VA_ARGS__)
6334 #define showlist(...) puts (#__VA_ARGS__)
6335 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6336 static void
6337 test_varargs_macros (void)
6338 {
6339 int x = 1234;
6340 int y = 5678;
6341 debug ("Flag");
6342 debug ("X = %d\n", x);
6343 showlist (The first, second, and third items.);
6344 report (x>y, "x is %d but y is %d", x, y);
6345 }
6347 // Check long long types.
6348 #define BIG64 18446744073709551615ull
6349 #define BIG32 4294967295ul
6350 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6351 #if !BIG_OK
6352 your preprocessor is broken;
6353 #endif
6354 #if BIG_OK
6355 #else
6356 your preprocessor is broken;
6357 #endif
6358 static long long int bignum = -9223372036854775807LL;
6359 static unsigned long long int ubignum = BIG64;
6361 struct incomplete_array
6362 {
6363 int datasize;
6364 double data[];
6365 };
6367 struct named_init {
6368 int number;
6369 const wchar_t *name;
6370 double average;
6371 };
6373 typedef const char *ccp;
6375 static inline int
6376 test_restrict (ccp restrict text)
6377 {
6378 // See if C++-style comments work.
6379 // Iterate through items via the restricted pointer.
6380 // Also check for declarations in for loops.
6381 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6382 continue;
6383 return 0;
6384 }
6386 // Check varargs and va_copy.
6387 static void
6388 test_varargs (const char *format, ...)
6389 {
6390 va_list args;
6391 va_start (args, format);
6392 va_list args_copy;
6393 va_copy (args_copy, args);
6395 const char *str;
6396 int number;
6397 float fnumber;
6399 while (*format)
6400 {
6401 switch (*format++)
6402 {
6403 case 's': // string
6404 str = va_arg (args_copy, const char *);
6405 break;
6406 case 'd': // int
6407 number = va_arg (args_copy, int);
6408 break;
6409 case 'f': // float
6410 fnumber = va_arg (args_copy, double);
6411 break;
6412 default:
6413 break;
6414 }
6415 }
6416 va_end (args_copy);
6417 va_end (args);
6418 }
6420 int
6421 main ()
6422 {
6424 // Check bool.
6425 _Bool success = false;
6427 // Check restrict.
6428 if (test_restrict ("String literal") == 0)
6429 success = true;
6430 char *restrict newvar = "Another string";
6432 // Check varargs.
6433 test_varargs ("s, d' f .", "string", 65, 34.234);
6434 test_varargs_macros ();
6436 // Check flexible array members.
6437 struct incomplete_array *ia =
6438 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6439 ia->datasize = 10;
6440 for (int i = 0; i < ia->datasize; ++i)
6441 ia->data[i] = i * 1.234;
6443 // Check named initializers.
6444 struct named_init ni = {
6445 .number = 34,
6446 .name = L"Test wide string",
6447 .average = 543.34343,
6448 };
6450 ni.number = 58;
6452 int dynamic_array[ni.number];
6453 dynamic_array[ni.number - 1] = 543;
6455 // work around unused variable warnings
6456 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6457 || dynamic_array[ni.number - 1] != 543);
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6464 do
6465 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6466 rm -f conftest.$ac_build_objext
6467 if { (ac_try="$ac_build_compile"
6468 case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_build_compile") 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && {
6480 test -z "$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 } && test -s conftest.$ac_build_objext; then
6483 ac_cv_build_prog_cc_stdc=$ac_arg
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6489 fi
6491 rm -f core conftest.err conftest.$ac_build_objext
6492 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6493 done
6494 rm -f conftest.$ac_ext
6495 CC_FOR_BUILD=$ac_save_CC
6497 fi
6498 # AC_CACHE_VAL
6499 case "x$ac_cv_build_prog_cc_stdc" in
6500 x)
6501 { echo "$as_me:$LINENO: result: none needed" >&5
6502 echo "${ECHO_T}none needed" >&6; } ;;
6503 xno)
6504 { echo "$as_me:$LINENO: result: unsupported" >&5
6505 echo "${ECHO_T}unsupported" >&6; } ;;
6506 *)
6507 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6508 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6509 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6510 esac
6511 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6512 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6513 else
6514 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6515 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6516 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519 ac_cv_build_prog_cc_stdc=no
6520 ac_save_CC=$CC_FOR_BUILD
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #include <stdarg.h>
6528 #include <stdio.h>
6529 #include <sys/types.h>
6530 #include <sys/stat.h>
6531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6532 struct buf { int x; };
6533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6534 static char *e (p, i)
6535 char **p;
6536 int i;
6537 {
6538 return p[i];
6539 }
6540 static char *f (char * (*g) (char **, int), char **p, ...)
6541 {
6542 char *s;
6543 va_list v;
6544 va_start (v,p);
6545 s = g (p, va_arg (v,int));
6546 va_end (v);
6547 return s;
6548 }
6550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6551 function prototypes and stuff, but not '\xHH' hex character constants.
6552 These don't provoke an error unfortunately, instead are silently treated
6553 as 'x'. The following induces an error, until -std is added to get
6554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6555 array size at least. It's necessary to write '\x00'==0 to get something
6556 that's true only with -std. */
6557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6560 inside strings and character constants. */
6561 #define FOO(x) 'x'
6562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6564 int test (int i, double x);
6565 struct s1 {int (*f) (int a);};
6566 struct s2 {int (*f) (double a);};
6567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6568 int argc;
6569 char **argv;
6570 int
6571 main ()
6572 {
6573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6580 do
6581 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6582 rm -f conftest.$ac_build_objext
6583 if { (ac_try="$ac_build_compile"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_build_compile") 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_build_objext; then
6599 ac_cv_build_prog_cc_stdc=$ac_arg
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6605 fi
6607 rm -f core conftest.err conftest.$ac_build_objext
6608 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6609 done
6610 rm -f conftest.$ac_ext
6611 CC_FOR_BUILD=$ac_save_CC
6613 fi
6614 # AC_CACHE_VAL
6615 case "x$ac_cv_build_prog_cc_stdc" in
6616 x)
6617 { echo "$as_me:$LINENO: result: none needed" >&5
6618 echo "${ECHO_T}none needed" >&6; } ;;
6619 xno)
6620 { echo "$as_me:$LINENO: result: unsupported" >&5
6621 echo "${ECHO_T}unsupported" >&6; } ;;
6622 *)
6623 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6624 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6625 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6626 esac
6627 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6628 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6629 else
6630 ac_cv_build_prog_cc_stdc=no
6631 fi
6634 fi
6636 ;;
6637 esac
6638 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6639 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6640 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 fi
6644 case $ac_cv_build_prog_cc_stdc in
6645 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6646 echo "${ECHO_T}unsupported" >&6; } ;;
6647 '') { echo "$as_me:$LINENO: result: none needed" >&5
6648 echo "${ECHO_T}none needed" >&6; } ;;
6649 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6650 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6651 esac
6654 ac_ext=c
6655 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6656 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6657 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6659 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6661 # On Suns, sometimes $CPP names a directory.
6662 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6663 CPP_FOR_BUILD=
6664 fi
6665 if test -z "$CPP_FOR_BUILD"; then
6666 if test "${ac_cv_build_prog_CPP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 # Double quotes because CPP needs to be expanded
6670 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6671 do
6672 ac_preproc_ok=false
6673 for ac_c_preproc_warn_flag in '' yes
6674 do
6675 # Use a header file that comes with gcc, so configuring glibc
6676 # with a fresh cross-compiler works.
6677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 # <limits.h> exists even on freestanding compilers.
6679 # On the NeXT, cc -E runs the code through the compiler's parser,
6680 # not just through cpp. "Syntax error" is here to catch this case.
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #ifdef __STDC__
6688 # include <limits.h>
6689 #else
6690 # include <assert.h>
6691 #endif
6692 Syntax error
6693 _ACEOF
6694 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev/null && {
6707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 }; then
6710 :
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 # Broken: fails on valid input.
6716 continue
6717 fi
6719 rm -f conftest.err conftest.$ac_ext
6721 # OK, works on sane cases. Now check whether nonexistent headers
6722 # can be detected and how.
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <ac_nonexistent.h>
6730 _ACEOF
6731 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } >/dev/null && {
6744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 }; then
6747 # Broken: success on invalid input.
6748 continue
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 # Passes both tests.
6754 ac_preproc_ok=:
6755 break
6756 fi
6758 rm -f conftest.err conftest.$ac_ext
6760 done
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then
6764 break
6765 fi
6767 done
6768 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6770 fi
6771 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6772 else
6773 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6774 fi
6775 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
6776 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
6777 ac_preproc_ok=false
6778 for ac_c_preproc_warn_flag in '' yes
6779 do
6780 # Use a header file that comes with gcc, so configuring glibc
6781 # with a fresh cross-compiler works.
6782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6783 # <limits.h> exists even on freestanding compilers.
6784 # On the NeXT, cc -E runs the code through the compiler's parser,
6785 # not just through cpp. "Syntax error" is here to catch this case.
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #ifdef __STDC__
6793 # include <limits.h>
6794 #else
6795 # include <assert.h>
6796 #endif
6797 Syntax error
6798 _ACEOF
6799 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6800 case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803 esac
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null && {
6812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6814 }; then
6815 :
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 # Broken: fails on valid input.
6821 continue
6822 fi
6824 rm -f conftest.err conftest.$ac_ext
6826 # OK, works on sane cases. Now check whether nonexistent headers
6827 # can be detected and how.
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #include <ac_nonexistent.h>
6835 _ACEOF
6836 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6837 case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840 esac
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } >/dev/null && {
6849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 }; then
6852 # Broken: success on invalid input.
6853 continue
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 # Passes both tests.
6859 ac_preproc_ok=:
6860 break
6861 fi
6863 rm -f conftest.err conftest.$ac_ext
6865 done
6866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6867 rm -f conftest.err conftest.$ac_ext
6868 if $ac_preproc_ok; then
6869 :
6870 else
6871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6872 See \`config.log' for more details." >&5
6873 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6874 See \`config.log' for more details." >&2;}
6875 { (exit 1); exit 1; }; }
6876 fi
6878 ac_ext=c
6879 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6880 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6881 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6882 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6887 BUILD_EXEEXT=$ac_build_exeext
6888 BUILD_OBJEXT=$ac_build_objext
6890 ac_ext=m
6891 ac_cpp='$OBJCPP $CPPFLAGS'
6892 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6895 if test -n "$ac_tool_prefix"; then
6896 for ac_prog in gcc objcc objc cc CC
6897 do
6898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_prog_OBJC+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 if test -n "$OBJC"; then
6906 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6923 fi
6924 fi
6925 OBJC=$ac_cv_prog_OBJC
6926 if test -n "$OBJC"; then
6927 { echo "$as_me:$LINENO: result: $OBJC" >&5
6928 echo "${ECHO_T}$OBJC" >&6; }
6929 else
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6932 fi
6935 test -n "$OBJC" && break
6936 done
6937 fi
6938 if test -z "$OBJC"; then
6939 ac_ct_OBJC=$OBJC
6940 for ac_prog in gcc objcc objc cc CC
6941 do
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test -n "$ac_ct_OBJC"; then
6950 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6967 fi
6968 fi
6969 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6970 if test -n "$ac_ct_OBJC"; then
6971 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6972 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6973 else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976 fi
6979 test -n "$ac_ct_OBJC" && break
6980 done
6982 if test "x$ac_ct_OBJC" = x; then
6983 OBJC="gcc"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6988 whose name does not start with the host triplet. If you think this
6989 configuration is useful to you, please write to autoconf@gnu.org." >&5
6990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6991 whose name does not start with the host triplet. If you think this
6992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 OBJC=$ac_ct_OBJC
6996 fi
6997 fi
6999 # Provide some information about the compiler.
7000 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7001 ac_compiler=`set X $ac_compile; echo $2`
7002 { (ac_try="$ac_compiler --version >&5"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compiler --version >&5") 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }
7012 { (ac_try="$ac_compiler -v >&5"
7013 case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compiler -v >&5") 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }
7022 { (ac_try="$ac_compiler -V >&5"
7023 case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_compiler -V >&5") 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }
7033 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7034 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7035 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7045 int
7046 main ()
7047 {
7048 #ifndef __GNUC__
7049 choke me
7050 #endif
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7058 case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_objc_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7073 ac_compiler_gnu=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_compiler_gnu=no
7079 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7084 fi
7085 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7086 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7087 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7088 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7089 ac_save_OBJCFLAGS=$OBJCFLAGS
7090 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7091 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7092 if test "${ac_cv_prog_objc_g+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 ac_save_objc_werror_flag=$ac_objc_werror_flag
7096 ac_objc_werror_flag=yes
7097 ac_cv_prog_objc_g=no
7098 OBJCFLAGS="-g"
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h. */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7106 int
7107 main ()
7108 {
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_objc_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_prog_objc_g=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 OBJCFLAGS=""
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7144 int
7145 main ()
7146 {
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_objc_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 :
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_objc_werror_flag=$ac_save_objc_werror_flag
7175 OBJCFLAGS="-g"
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7183 int
7184 main ()
7185 {
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_objc_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_prog_objc_g=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7214 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 ac_objc_werror_flag=$ac_save_objc_werror_flag
7224 fi
7225 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7226 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7227 if test "$ac_test_OBJCFLAGS" = set; then
7228 OBJCFLAGS=$ac_save_OBJCFLAGS
7229 elif test $ac_cv_prog_objc_g = yes; then
7230 if test "$GOBJC" = yes; then
7231 OBJCFLAGS="-g -O2"
7232 else
7233 OBJCFLAGS="-g"
7234 fi
7235 else
7236 if test "$GOBJC" = yes; then
7237 OBJCFLAGS="-O2"
7238 else
7239 OBJCFLAGS=
7240 fi
7241 fi
7242 ac_ext=c
7243 ac_cpp='$CPP $CPPFLAGS'
7244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7249 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_SED+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7254 for ac_i in 1 2 3 4 5 6 7; do
7255 ac_script="$ac_script$as_nl$ac_script"
7256 done
7257 echo "$ac_script" | sed 99q >conftest.sed
7258 $as_unset ac_script || ac_script=
7259 # Extract the first word of "sed gsed" to use in msg output
7260 if test -z "$SED"; then
7261 set dummy sed gsed; ac_prog_name=$2
7262 if test "${ac_cv_path_SED+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 ac_path_SED_found=false
7266 # Loop through the user's path and test for each of PROGNAME-LIST
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_prog in sed gsed; do
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7275 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7276 # Check for GNU ac_path_SED and select it if it is found.
7277 # Check for GNU $ac_path_SED
7278 case `"$ac_path_SED" --version 2>&1` in
7279 *GNU*)
7280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7281 *)
7282 ac_count=0
7283 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7284 while :
7285 do
7286 cat "conftest.in" "conftest.in" >"conftest.tmp"
7287 mv "conftest.tmp" "conftest.in"
7288 cp "conftest.in" "conftest.nl"
7289 echo '' >> "conftest.nl"
7290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7292 ac_count=`expr $ac_count + 1`
7293 if test $ac_count -gt ${ac_path_SED_max-0}; then
7294 # Best one so far, save it but keep looking for a better one
7295 ac_cv_path_SED="$ac_path_SED"
7296 ac_path_SED_max=$ac_count
7297 fi
7298 # 10*(2^10) chars as input seems more than enough
7299 test $ac_count -gt 10 && break
7300 done
7301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7302 esac
7305 $ac_path_SED_found && break 3
7306 done
7307 done
7309 done
7310 IFS=$as_save_IFS
7313 fi
7315 SED="$ac_cv_path_SED"
7316 if test -z "$SED"; then
7317 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7318 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7319 { (exit 1); exit 1; }; }
7320 fi
7322 else
7323 ac_cv_path_SED=$SED
7324 fi
7326 fi
7327 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7328 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7329 SED="$ac_cv_path_SED"
7330 rm -f conftest.sed
7332 # By default we simply use the C compiler to build assembly code.
7334 test "${CCAS+set}" = set || CCAS=$CC
7335 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_RANLIB+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 if test -n "$RANLIB"; then
7348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7365 fi
7366 fi
7367 RANLIB=$ac_cv_prog_RANLIB
7368 if test -n "$RANLIB"; then
7369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7370 echo "${ECHO_T}$RANLIB" >&6; }
7371 else
7372 { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7374 fi
7377 fi
7378 if test -z "$ac_cv_prog_RANLIB"; then
7379 ac_ct_RANLIB=$RANLIB
7380 # Extract the first word of "ranlib", so it can be a program name with args.
7381 set dummy ranlib; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 if test -n "$ac_ct_RANLIB"; then
7388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_ac_ct_RANLIB="ranlib"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7405 fi
7406 fi
7407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408 if test -n "$ac_ct_RANLIB"; then
7409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7411 else
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7416 if test "x$ac_ct_RANLIB" = x; then
7417 RANLIB=":"
7418 else
7419 case $cross_compiling:$ac_tool_warned in
7420 yes:)
7421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7422 whose name does not start with the host triplet. If you think this
7423 configuration is useful to you, please write to autoconf@gnu.org." >&5
7424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7425 whose name does not start with the host triplet. If you think this
7426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 RANLIB=$ac_ct_RANLIB
7430 fi
7431 else
7432 RANLIB="$ac_cv_prog_RANLIB"
7433 fi
7436 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7437 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_GREP+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 # Extract the first word of "grep ggrep" to use in msg output
7442 if test -z "$GREP"; then
7443 set dummy grep ggrep; ac_prog_name=$2
7444 if test "${ac_cv_path_GREP+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 ac_path_GREP_found=false
7448 # Loop through the user's path and test for each of PROGNAME-LIST
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7451 do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_prog in grep ggrep; do
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7457 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7458 # Check for GNU ac_path_GREP and select it if it is found.
7459 # Check for GNU $ac_path_GREP
7460 case `"$ac_path_GREP" --version 2>&1` in
7461 *GNU*)
7462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7463 *)
7464 ac_count=0
7465 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7466 while :
7467 do
7468 cat "conftest.in" "conftest.in" >"conftest.tmp"
7469 mv "conftest.tmp" "conftest.in"
7470 cp "conftest.in" "conftest.nl"
7471 echo 'GREP' >> "conftest.nl"
7472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7474 ac_count=`expr $ac_count + 1`
7475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7476 # Best one so far, save it but keep looking for a better one
7477 ac_cv_path_GREP="$ac_path_GREP"
7478 ac_path_GREP_max=$ac_count
7479 fi
7480 # 10*(2^10) chars as input seems more than enough
7481 test $ac_count -gt 10 && break
7482 done
7483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7484 esac
7487 $ac_path_GREP_found && break 3
7488 done
7489 done
7491 done
7492 IFS=$as_save_IFS
7495 fi
7497 GREP="$ac_cv_path_GREP"
7498 if test -z "$GREP"; then
7499 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7500 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7501 { (exit 1); exit 1; }; }
7502 fi
7504 else
7505 ac_cv_path_GREP=$GREP
7506 fi
7509 fi
7510 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7511 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7512 GREP="$ac_cv_path_GREP"
7515 { echo "$as_me:$LINENO: checking for egrep" >&5
7516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_EGREP+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7521 then ac_cv_path_EGREP="$GREP -E"
7522 else
7523 # Extract the first word of "egrep" to use in msg output
7524 if test -z "$EGREP"; then
7525 set dummy egrep; ac_prog_name=$2
7526 if test "${ac_cv_path_EGREP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 ac_path_EGREP_found=false
7530 # Loop through the user's path and test for each of PROGNAME-LIST
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7533 do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_prog in egrep; do
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7540 # Check for GNU ac_path_EGREP and select it if it is found.
7541 # Check for GNU $ac_path_EGREP
7542 case `"$ac_path_EGREP" --version 2>&1` in
7543 *GNU*)
7544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7545 *)
7546 ac_count=0
7547 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7548 while :
7549 do
7550 cat "conftest.in" "conftest.in" >"conftest.tmp"
7551 mv "conftest.tmp" "conftest.in"
7552 cp "conftest.in" "conftest.nl"
7553 echo 'EGREP' >> "conftest.nl"
7554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7556 ac_count=`expr $ac_count + 1`
7557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7558 # Best one so far, save it but keep looking for a better one
7559 ac_cv_path_EGREP="$ac_path_EGREP"
7560 ac_path_EGREP_max=$ac_count
7561 fi
7562 # 10*(2^10) chars as input seems more than enough
7563 test $ac_count -gt 10 && break
7564 done
7565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7566 esac
7569 $ac_path_EGREP_found && break 3
7570 done
7571 done
7573 done
7574 IFS=$as_save_IFS
7577 fi
7579 EGREP="$ac_cv_path_EGREP"
7580 if test -z "$EGREP"; then
7581 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7582 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7583 { (exit 1); exit 1; }; }
7584 fi
7586 else
7587 ac_cv_path_EGREP=$EGREP
7588 fi
7591 fi
7592 fi
7593 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7594 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7595 EGREP="$ac_cv_path_EGREP"
7598 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7600 if test "${ac_cv_header_stdc+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <stdlib.h>
7610 #include <stdarg.h>
7611 #include <string.h>
7612 #include <float.h>
7614 int
7615 main ()
7616 {
7618 ;
7619 return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 ac_cv_header_stdc=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_header_stdc=no
7645 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 if test $ac_cv_header_stdc = yes; then
7650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <string.h>
7659 _ACEOF
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661 $EGREP "memchr" >/dev/null 2>&1; then
7662 :
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f conftest*
7668 fi
7670 if test $ac_cv_header_stdc = yes; then
7671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <stdlib.h>
7680 _ACEOF
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682 $EGREP "free" >/dev/null 2>&1; then
7683 :
7684 else
7685 ac_cv_header_stdc=no
7686 fi
7687 rm -f conftest*
7689 fi
7691 if test $ac_cv_header_stdc = yes; then
7692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7693 if test "$cross_compiling" = yes; then
7694 :
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 #include <ctype.h>
7703 #include <stdlib.h>
7704 #if ((' ' & 0x0FF) == 0x020)
7705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7707 #else
7708 # define ISLOWER(c) \
7709 (('a' <= (c) && (c) <= 'i') \
7710 || ('j' <= (c) && (c) <= 'r') \
7711 || ('s' <= (c) && (c) <= 'z'))
7712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7713 #endif
7715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7716 int
7717 main ()
7718 {
7719 int i;
7720 for (i = 0; i < 256; i++)
7721 if (XOR (islower (i), ISLOWER (i))
7722 || toupper (i) != TOUPPER (i))
7723 return 2;
7724 return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_link") 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 :
7748 else
7749 echo "$as_me: program exited with status $ac_status" >&5
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ( exit $ac_status )
7754 ac_cv_header_stdc=no
7755 fi
7756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7757 fi
7760 fi
7761 fi
7762 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7763 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7764 if test $ac_cv_header_stdc = yes; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define STDC_HEADERS 1
7768 _ACEOF
7770 fi
7772 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7782 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7783 inttypes.h stdint.h unistd.h
7784 do
7785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7799 #include <$ac_header>
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7803 case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 eval "$as_ac_Header=yes"
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 eval "$as_ac_Header=no"
7824 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 fi
7828 ac_res=`eval echo '${'$as_ac_Header'}'`
7829 { echo "$as_me:$LINENO: result: $ac_res" >&5
7830 echo "${ECHO_T}$ac_res" >&6; }
7831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7832 cat >>confdefs.h <<_ACEOF
7833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7834 _ACEOF
7836 fi
7838 done
7841 { echo "$as_me:$LINENO: checking for void *" >&5
7842 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7843 if test "${ac_cv_type_void_p+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 typedef void * ac__type_new_;
7854 int
7855 main ()
7856 {
7857 if ((ac__type_new_ *) 0)
7858 return 0;
7859 if (sizeof (ac__type_new_))
7860 return 0;
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7867 case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest.$ac_objext; then
7882 ac_cv_type_void_p=yes
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_type_void_p=no
7888 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 fi
7892 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7893 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7895 # The cast to long int works around a bug in the HP C Compiler
7896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7898 # This bug is HP SR number 8606223364.
7899 { echo "$as_me:$LINENO: checking size of void *" >&5
7900 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7901 if test "${ac_cv_sizeof_void_p+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7913 typedef void * ac__type_sizeof_;
7914 int
7915 main ()
7916 {
7917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7918 test_array [0] = 0
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (ac_try="$ac_compile"
7926 case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_compile") 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest.$ac_objext; then
7941 ac_lo=0 ac_mid=0
7942 while :; do
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 $ac_includes_default
7950 typedef void * ac__type_sizeof_;
7951 int
7952 main ()
7953 {
7954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7955 test_array [0] = 0
7957 ;
7958 return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_hi=$ac_mid; break
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_lo=`expr $ac_mid + 1`
7984 if test $ac_lo -le $ac_mid; then
7985 ac_lo= ac_hi=
7986 break
7987 fi
7988 ac_mid=`expr 2 '*' $ac_mid + 1`
7989 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 done
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef void * ac__type_sizeof_;
8005 int
8006 main ()
8007 {
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8009 test_array [0] = 0
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_hi=-1 ac_mid=-1
8033 while :; do
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 typedef void * ac__type_sizeof_;
8042 int
8043 main ()
8044 {
8045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8046 test_array [0] = 0
8048 ;
8049 return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (ac_try="$ac_compile"
8054 case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8069 ac_lo=$ac_mid; break
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 ac_hi=`expr '(' $ac_mid ')' - 1`
8075 if test $ac_mid -le $ac_hi; then
8076 ac_lo= ac_hi=
8077 break
8078 fi
8079 ac_mid=`expr 2 '*' $ac_mid`
8080 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 done
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_lo= ac_hi=
8089 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 # Binary search between lo and hi bounds.
8096 while test "x$ac_lo" != "x$ac_hi"; do
8097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 typedef void * ac__type_sizeof_;
8106 int
8107 main ()
8108 {
8109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8110 test_array [0] = 0
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8118 case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_compile") 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest.$ac_objext; then
8133 ac_hi=$ac_mid
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_lo=`expr '(' $ac_mid ')' + 1`
8139 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 done
8143 case $ac_lo in
8144 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8145 '') if test "$ac_cv_type_void_p" = yes; then
8146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8147 See \`config.log' for more details." >&5
8148 echo "$as_me: error: cannot compute sizeof (void *)
8149 See \`config.log' for more details." >&2;}
8150 { (exit 77); exit 77; }; }
8151 else
8152 ac_cv_sizeof_void_p=0
8153 fi ;;
8154 esac
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 $ac_includes_default
8163 typedef void * ac__type_sizeof_;
8164 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8165 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8166 #include <stdio.h>
8167 #include <stdlib.h>
8168 int
8169 main ()
8170 {
8172 FILE *f = fopen ("conftest.val", "w");
8173 if (! f)
8174 return 1;
8175 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8176 {
8177 long int i = longval ();
8178 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8179 return 1;
8180 fprintf (f, "%ld\n", i);
8181 }
8182 else
8183 {
8184 unsigned long int i = ulongval ();
8185 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8186 return 1;
8187 fprintf (f, "%lu\n", i);
8188 }
8189 return ferror (f) || fclose (f) != 0;
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_sizeof_void_p=`cat conftest.val`
8216 else
8217 echo "$as_me: program exited with status $ac_status" >&5
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 ( exit $ac_status )
8222 if test "$ac_cv_type_void_p" = yes; then
8223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8224 See \`config.log' for more details." >&5
8225 echo "$as_me: error: cannot compute sizeof (void *)
8226 See \`config.log' for more details." >&2;}
8227 { (exit 77); exit 77; }; }
8228 else
8229 ac_cv_sizeof_void_p=0
8230 fi
8231 fi
8232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 rm -f conftest.val
8235 fi
8236 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8237 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8241 cat >>confdefs.h <<_ACEOF
8242 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8243 _ACEOF
8246 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8248 if test "${ac_cv_header_stdc+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <stdlib.h>
8258 #include <stdarg.h>
8259 #include <string.h>
8260 #include <float.h>
8262 int
8263 main ()
8264 {
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8272 case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.$ac_objext; then
8287 ac_cv_header_stdc=yes
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 ac_cv_header_stdc=no
8293 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 if test $ac_cv_header_stdc = yes; then
8298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 #include <string.h>
8307 _ACEOF
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 $EGREP "memchr" >/dev/null 2>&1; then
8310 :
8311 else
8312 ac_cv_header_stdc=no
8313 fi
8314 rm -f conftest*
8316 fi
8318 if test $ac_cv_header_stdc = yes; then
8319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 #include <stdlib.h>
8328 _ACEOF
8329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8330 $EGREP "free" >/dev/null 2>&1; then
8331 :
8332 else
8333 ac_cv_header_stdc=no
8334 fi
8335 rm -f conftest*
8337 fi
8339 if test $ac_cv_header_stdc = yes; then
8340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8341 if test "$cross_compiling" = yes; then
8342 :
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <ctype.h>
8351 #include <stdlib.h>
8352 #if ((' ' & 0x0FF) == 0x020)
8353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8355 #else
8356 # define ISLOWER(c) \
8357 (('a' <= (c) && (c) <= 'i') \
8358 || ('j' <= (c) && (c) <= 'r') \
8359 || ('s' <= (c) && (c) <= 'z'))
8360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8361 #endif
8363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8364 int
8365 main ()
8366 {
8367 int i;
8368 for (i = 0; i < 256; i++)
8369 if (XOR (islower (i), ISLOWER (i))
8370 || toupper (i) != TOUPPER (i))
8371 return 2;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_link") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8386 { (case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_try") 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 :
8396 else
8397 echo "$as_me: program exited with status $ac_status" >&5
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ( exit $ac_status )
8402 ac_cv_header_stdc=no
8403 fi
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8405 fi
8408 fi
8409 fi
8410 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8411 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8412 if test $ac_cv_header_stdc = yes; then
8414 cat >>confdefs.h <<\_ACEOF
8415 #define STDC_HEADERS 1
8416 _ACEOF
8418 fi
8422 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8426 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8430 # We make a subdir and do the tests there. Otherwise we can end up
8431 # making bogus files that we don't know about and never remove. For
8432 # instance it was reported that on HP-UX the gcc test will end up
8433 # making a dummy file named `D' -- because `-MD' means `put the output
8434 # in D'.
8435 mkdir conftest.dir
8436 # Copy depcomp to subdir because otherwise we won't find it if we're
8437 # using a relative directory.
8438 cp "$am_depcomp" conftest.dir
8439 cd conftest.dir
8440 # We will build objects and dependencies in a subdirectory because
8441 # it helps to detect inapplicable dependency modes. For instance
8442 # both Tru64's cc and ICC support -MD to output dependencies as a
8443 # side effect of compilation, but ICC will put the dependencies in
8444 # the current directory while Tru64 will put them in the object
8445 # directory.
8446 mkdir sub
8448 am_cv_OBJC_dependencies_compiler_type=none
8449 if test "$am_compiler_list" = ""; then
8450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8451 fi
8452 for depmode in $am_compiler_list; do
8453 # Setup a source with many dependencies, because some compilers
8454 # like to wrap large dependency lists on column 80 (with \), and
8455 # we should not choose a depcomp mode which is confused by this.
8456 #
8457 # We need to recreate these files for each test, as the compiler may
8458 # overwrite some of them when testing with obscure command lines.
8459 # This happens at least with the AIX C compiler.
8460 : > sub/conftest.c
8461 for i in 1 2 3 4 5 6; do
8462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8464 # Solaris 8's {/usr,}/bin/sh.
8465 touch sub/conftst$i.h
8466 done
8467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8469 case $depmode in
8470 nosideeffect)
8471 # after this tag, mechanisms are not by side-effect, so they'll
8472 # only be used when explicitly requested
8473 if test "x$enable_dependency_tracking" = xyes; then
8474 continue
8475 else
8476 break
8477 fi
8478 ;;
8479 none) break ;;
8480 esac
8481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8482 # mode. It turns out that the SunPro C++ compiler does not properly
8483 # handle `-M -o', and we need to detect this.
8484 if depmode=$depmode \
8485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8488 >/dev/null 2>conftest.err &&
8489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8492 # icc doesn't choke on unknown options, it will just issue warnings
8493 # or remarks (even with -Werror). So we grep stderr for any message
8494 # that says an option was ignored or not supported.
8495 # When given -MP, icc 7.0 and 7.1 complain thusly:
8496 # icc: Command line warning: ignoring option '-M'; no argument required
8497 # The diagnosis changed in icc 8.0:
8498 # icc: Command line remark: option '-MP' not supported
8499 if (grep 'ignoring option' conftest.err ||
8500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8501 am_cv_OBJC_dependencies_compiler_type=$depmode
8502 break
8503 fi
8504 fi
8505 done
8507 cd ..
8508 rm -rf conftest.dir
8509 else
8510 am_cv_OBJC_dependencies_compiler_type=none
8511 fi
8513 fi
8514 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8515 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8516 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8520 if
8521 test "x$enable_dependency_tracking" != xno \
8522 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8523 am__fastdepOBJC_TRUE=
8524 am__fastdepOBJC_FALSE='#'
8525 else
8526 am__fastdepOBJC_TRUE='#'
8527 am__fastdepOBJC_FALSE=
8528 fi
8532 # Extract the first word of "pod2man", so it can be a program name with args.
8533 set dummy pod2man; ac_word=$2
8534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8536 if test "${ac_cv_path_POD2MAN+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 case $POD2MAN in
8540 [\\/]* | ?:[\\/]*)
8541 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8542 ;;
8543 *)
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8559 ;;
8560 esac
8561 fi
8562 POD2MAN=$ac_cv_path_POD2MAN
8563 if test -n "$POD2MAN"; then
8564 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8565 echo "${ECHO_T}$POD2MAN" >&6; }
8566 else
8567 { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8569 fi
8572 # Extract the first word of "pod2html", so it can be a program name with args.
8573 set dummy pod2html; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_POD2HTML+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579 case $POD2HTML in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8582 ;;
8583 *)
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8599 ;;
8600 esac
8601 fi
8602 POD2HTML=$ac_cv_path_POD2HTML
8603 if test -n "$POD2HTML"; then
8604 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8605 echo "${ECHO_T}$POD2HTML" >&6; }
8606 else
8607 { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8609 fi
8614 # Check whether --enable-strict-warn was given.
8615 if test "${enable_strict_warn+set}" = set; then
8616 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8617 enable_strictwarn=yes
8618 fi
8619 fi
8621 # Check whether --enable-translator was given.
8622 if test "${enable_translator+set}" = set; then
8623 enableval=$enable_translator; true
8624 else
8625 enable_translator=yes
8626 fi
8628 # Check whether --enable-optimized was given.
8629 if test "${enable_optimized+set}" = set; then
8630 enableval=$enable_optimized; true
8631 else
8632 enable_optimized=yes
8633 fi
8635 # Check whether --enable-shared was given.
8636 if test "${enable_shared+set}" = set; then
8637 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8638 else
8639 enable_shared=cond
8640 fi
8642 # Check whether --enable-profiled was given.
8643 if test "${enable_profiled+set}" = set; then
8644 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8645 enable_profiled=yes;
8646 fi
8647 fi
8649 # Check whether --enable-trace was given.
8650 if test "${enable_trace+set}" = set; then
8651 enableval=$enable_trace; if test "$enableval" == "yes"; then
8653 cat >>confdefs.h <<\_ACEOF
8654 #define ENABLE_TRACE_IO 1
8655 _ACEOF
8657 fi
8658 fi
8660 # Check whether --enable-watch was given.
8661 if test "${enable_watch+set}" = set; then
8662 enableval=$enable_watch; if test "$enableval" == "yes"; then
8664 cat >>confdefs.h <<\_ACEOF
8665 #define ENABLE_WATCH 1
8666 _ACEOF
8668 fi
8669 fi
8671 # Check whether --enable-sh4stats was given.
8672 if test "${enable_sh4stats+set}" = set; then
8673 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8675 cat >>confdefs.h <<\_ACEOF
8676 #define ENABLE_SH4STATS 1
8677 _ACEOF
8679 fi
8680 fi
8683 # Check whether --with-osmesa was given.
8684 if test "${with_osmesa+set}" = set; then
8685 withval=$with_osmesa;
8686 else
8687 with_osmesa=no
8688 fi
8691 # Check whether --with-gtk was given.
8692 if test "${with_gtk+set}" = set; then
8693 withval=$with_gtk; with_gtk=yes
8694 else
8695 with_gtk=x11
8696 fi
8699 # Check whether --with-esd was given.
8700 if test "${with_esd+set}" = set; then
8701 withval=$with_esd;
8702 fi
8705 # Check whether --with-pulse was given.
8706 if test "${with_pulse+set}" = set; then
8707 withval=$with_pulse;
8708 fi
8711 # Check whether --with-sdl was given.
8712 if test "${with_sdl+set}" = set; then
8713 withval=$with_sdl;
8714 fi
8721 ac_ext=m
8722 ac_cpp='$OBJCPP $CPPFLAGS'
8723 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8726 if test -n "$ac_tool_prefix"; then
8727 for ac_prog in gcc objcc objc cc CC
8728 do
8729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8733 if test "${ac_cv_prog_OBJC+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 if test -n "$OBJC"; then
8737 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750 done
8751 done
8752 IFS=$as_save_IFS
8754 fi
8755 fi
8756 OBJC=$ac_cv_prog_OBJC
8757 if test -n "$OBJC"; then
8758 { echo "$as_me:$LINENO: result: $OBJC" >&5
8759 echo "${ECHO_T}$OBJC" >&6; }
8760 else
8761 { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8763 fi
8766 test -n "$OBJC" && break
8767 done
8768 fi
8769 if test -z "$OBJC"; then
8770 ac_ct_OBJC=$OBJC
8771 for ac_prog in gcc objcc objc cc CC
8772 do
8773 # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy $ac_prog; ac_word=$2
8775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8777 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 if test -n "$ac_ct_OBJC"; then
8781 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796 IFS=$as_save_IFS
8798 fi
8799 fi
8800 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8801 if test -n "$ac_ct_OBJC"; then
8802 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
8803 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
8804 else
8805 { echo "$as_me:$LINENO: result: no" >&5
8806 echo "${ECHO_T}no" >&6; }
8807 fi
8810 test -n "$ac_ct_OBJC" && break
8811 done
8813 if test "x$ac_ct_OBJC" = x; then
8814 OBJC="gcc"
8815 else
8816 case $cross_compiling:$ac_tool_warned in
8817 yes:)
8818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8819 whose name does not start with the host triplet. If you think this
8820 configuration is useful to you, please write to autoconf@gnu.org." >&5
8821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8822 whose name does not start with the host triplet. If you think this
8823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8824 ac_tool_warned=yes ;;
8825 esac
8826 OBJC=$ac_ct_OBJC
8827 fi
8828 fi
8830 # Provide some information about the compiler.
8831 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
8832 ac_compiler=`set X $ac_compile; echo $2`
8833 { (ac_try="$ac_compiler --version >&5"
8834 case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compiler --version >&5") 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }
8843 { (ac_try="$ac_compiler -v >&5"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compiler -v >&5") 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }
8853 { (ac_try="$ac_compiler -V >&5"
8854 case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_compiler -V >&5") 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }
8864 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
8865 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
8866 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 int
8877 main ()
8878 {
8879 #ifndef __GNUC__
8880 choke me
8881 #endif
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext
8888 if { (ac_try="$ac_compile"
8889 case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892 esac
8893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894 (eval "$ac_compile") 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && {
8901 test -z "$ac_objc_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest.$ac_objext; then
8904 ac_compiler_gnu=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_compiler_gnu=no
8910 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8915 fi
8916 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
8917 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
8918 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
8919 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8920 ac_save_OBJCFLAGS=$OBJCFLAGS
8921 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
8922 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
8923 if test "${ac_cv_prog_objc_g+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 ac_save_objc_werror_flag=$ac_objc_werror_flag
8927 ac_objc_werror_flag=yes
8928 ac_cv_prog_objc_g=no
8929 OBJCFLAGS="-g"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 int
8938 main ()
8939 {
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (ac_try="$ac_compile"
8947 case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_objc_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 ac_cv_prog_objc_g=yes
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 OBJCFLAGS=""
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h. */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8975 int
8976 main ()
8977 {
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_objc_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 :
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_objc_werror_flag=$ac_save_objc_werror_flag
9006 OBJCFLAGS="-g"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9014 int
9015 main ()
9016 {
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext
9023 if { (ac_try="$ac_compile"
9024 case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_compile") 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && {
9036 test -z "$ac_objc_werror_flag" ||
9037 test ! -s conftest.err
9038 } && test -s conftest.$ac_objext; then
9039 ac_cv_prog_objc_g=yes
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 ac_objc_werror_flag=$ac_save_objc_werror_flag
9055 fi
9056 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9057 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9058 if test "$ac_test_OBJCFLAGS" = set; then
9059 OBJCFLAGS=$ac_save_OBJCFLAGS
9060 elif test $ac_cv_prog_objc_g = yes; then
9061 if test "$GOBJC" = yes; then
9062 OBJCFLAGS="-g -O2"
9063 else
9064 OBJCFLAGS="-g"
9065 fi
9066 else
9067 if test "$GOBJC" = yes; then
9068 OBJCFLAGS="-O2"
9069 else
9070 OBJCFLAGS=
9071 fi
9072 fi
9073 ac_ext=c
9074 ac_cpp='$CPP $CPPFLAGS'
9075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9079 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9080 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9081 ac_ext=m
9082 ac_cpp='$OBJCPP $CPPFLAGS'
9083 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 @interface Foo @end
9093 int
9094 main ()
9095 {
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (ac_try="$ac_compile"
9103 case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_objc_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest.$ac_objext; then
9118 { echo "$as_me:$LINENO: result: yes" >&5
9119 echo "${ECHO_T}yes" >&6; }
9121 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9122 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9123 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9134 #include <Cocoa/Cocoa.h>
9135 _ACEOF
9136 rm -f conftest.$ac_objext
9137 if { (ac_try="$ac_compile"
9138 case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_objc_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_cv_header_Cocoa_Cocoa_h=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_cv_header_Cocoa_Cocoa_h=no
9159 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9165 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9167 HAVE_COCOA='yes'
9168 APPLE_BUILD='yes'
9169 LIBS="$LIBS -framework AppKit -framework Carbon"
9170 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"
9171 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9172 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9174 cat >>confdefs.h <<\_ACEOF
9175 #define HAVE_COCOA 1
9176 _ACEOF
9179 cat >>confdefs.h <<\_ACEOF
9180 #define APPLE_BUILD 1
9181 _ACEOF
9183 if test "x$with_gtk" = "xx11"; then
9184 with_gtk=no
9185 fi
9187 fi
9192 { echo "$as_me:$LINENO: checking OBJC version" >&5
9193 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9194 if test -n "$OBJC"; then
9195 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9196 if test -n "$_GOBJC_VERSION"; then
9197 { echo "$as_me:$LINENO: result: GCC" >&5
9198 echo "${ECHO_T}GCC" >&6; }
9199 OBJCOPT="-O2"
9200 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9201 else
9202 { echo "$as_me:$LINENO: result: Unknown" >&5
9203 echo "${ECHO_T}Unknown" >&6; }
9204 OBJCOPT="-O2"
9205 fi
9206 else
9207 { echo "$as_me:$LINENO: result: None" >&5
9208 echo "${ECHO_T}None" >&6; }
9210 fi
9213 ac_ext=m
9214 ac_cpp='$OBJCPP $CPPFLAGS'
9215 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9216 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9217 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9219 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9220 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9221 save_OBJCFLAGS="$OBJCFLAGS"
9222 OBJCFLAGS="-msse2 $OBJCFLAGS"
9223 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 int main() { return 0; }
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_objc_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9250 { echo "$as_me:$LINENO: result: yes" >&5
9251 echo "${ECHO_T}yes" >&6; }
9253 else
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9258 OBJCFLAGS="$save_OBJCFLAGS"
9259 { echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6; }
9262 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 ac_ext=m
9266 ac_cpp='$OBJCPP $CPPFLAGS'
9267 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9273 ac_ext=m
9274 ac_cpp='$OBJCPP $CPPFLAGS'
9275 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9276 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9277 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9279 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9280 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9281 save_OBJCFLAGS="$OBJCFLAGS"
9282 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9283 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 int main() { return 0; }
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (ac_try="$ac_compile"
9294 case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_compile") 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_objc_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest.$ac_objext; then
9310 { echo "$as_me:$LINENO: result: yes" >&5
9311 echo "${ECHO_T}yes" >&6; }
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9318 OBJCFLAGS="$save_OBJCFLAGS"
9319 { echo "$as_me:$LINENO: result: no" >&5
9320 echo "${ECHO_T}no" >&6; }
9322 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 ac_ext=m
9326 ac_cpp='$OBJCPP $CPPFLAGS'
9327 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 { echo "$as_me:$LINENO: result: No" >&5
9338 echo "${ECHO_T}No" >&6; }
9340 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9343 ac_ext=c
9344 ac_cpp='$CPP $CPPFLAGS'
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9353 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9354 GUI_COCOA_TRUE=
9355 GUI_COCOA_FALSE='#'
9356 else
9357 GUI_COCOA_TRUE='#'
9358 GUI_COCOA_FALSE=
9359 fi
9361 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9363 cat >>confdefs.h <<\_ACEOF
9364 #define OSX_BUNDLE 1
9365 _ACEOF
9367 fi
9369 CFLAGS_FOR_BUILD="-O2 -std=c99"
9370 CFLAGS="-g -fexceptions"
9371 OBJCFLAGS="-g -fexceptions"
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_EXCEPTIONS 1
9375 _ACEOF
9378 STDCFLAG="-std=c99"
9380 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9381 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9382 { echo "$as_me:$LINENO: checking CC version" >&5
9383 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9384 if test -n "$_ICC_VERSION"; then
9385 { echo "$as_me:$LINENO: result: ICC" >&5
9386 echo "${ECHO_T}ICC" >&6; }
9387 CCOPT="$CFLAGS -fast"
9388 CFLAGS="$CFLAGS -fno-strict-aliasing"
9389 elif test -n "$_GCC_VERSION"; then
9390 { echo "$as_me:$LINENO: result: GCC" >&5
9391 echo "${ECHO_T}GCC" >&6; }
9392 CCOPT="-O2"
9393 CFLAGS="$CFLAGS -fno-strict-aliasing"
9394 else
9395 { echo "$as_me:$LINENO: result: Unknown" >&5
9396 echo "${ECHO_T}Unknown" >&6; }
9397 CCOPT="$CFLAGS -O2"
9398 fi
9401 ac_ext=c
9402 ac_cpp='$CPP $CPPFLAGS'
9403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9408 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9409 save_CFLAGS="$CFLAGS"
9410 CFLAGS="-msse2 $CFLAGS"
9411 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 int main() { return 0; }
9419 _ACEOF
9420 rm -f conftest.$ac_objext
9421 if { (ac_try="$ac_compile"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_compile") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest.$ac_objext; then
9438 { echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6; }
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9446 CFLAGS="$save_CFLAGS"
9447 { echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6; }
9450 fi
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 ac_ext=c
9454 ac_cpp='$CPP $CPPFLAGS'
9455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461 ac_ext=c
9462 ac_cpp='$CPP $CPPFLAGS'
9463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9467 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9468 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9469 save_CFLAGS="$CFLAGS"
9470 CFLAGS="-mfpmath=sse $CFLAGS"
9471 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 int main() { return 0; }
9479 _ACEOF
9480 rm -f conftest.$ac_objext
9481 if { (ac_try="$ac_compile"
9482 case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_compile") 2>conftest.er1
9488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest.$ac_objext; then
9498 { echo "$as_me:$LINENO: result: yes" >&5
9499 echo "${ECHO_T}yes" >&6; }
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9506 CFLAGS="$save_CFLAGS"
9507 { echo "$as_me:$LINENO: result: no" >&5
9508 echo "${ECHO_T}no" >&6; }
9510 fi
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 ac_ext=c
9514 ac_cpp='$CPP $CPPFLAGS'
9515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9521 if test "x$enable_optimized" = "xyes"; then
9522 CFLAGS="$CFLAGS $CCOPT"
9523 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9524 if test "x$enable_profiled" != "xyes"; then
9525 CFLAGS="$CFLAGS -fomit-frame-pointer"
9526 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9527 fi
9528 else
9529 CFLAGS="$CFLAGS -g3"
9530 OBJCFLAGS="$OBJCFLAGS -g3"
9531 fi
9533 if test "x$enable_profiled" = "xyes"; then
9534 CFLAGS="$CFLAGS -pg"
9535 LDFLAGS="$LDFLAGS -pg";
9536 OBJCFLAGS="$OBJCFLAGS -pg";
9537 fi
9539 if test "x$enable_strictwarn" = "xyes"; then
9540 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9541 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9542 fi
9544 if test "x$enable_shared" != "xno"; then
9545 if test "x$APPLE_BUILD" = "xyes"; then
9546 SOEXT="dylib"
9547 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9548 else
9549 SOEXT="so"
9550 PLUGINLDFLAGS="-shared"
9551 fi
9552 PLUGINCFLAGS="-fPIC"
9554 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9555 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9556 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9557 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 fi
9560 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9561 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9562 else
9563 # Is the header compilable?
9564 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9565 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 $ac_includes_default
9573 #include <dlfcn.h>
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9592 ac_header_compiler=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_header_compiler=no
9598 fi
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9602 echo "${ECHO_T}$ac_header_compiler" >&6; }
9604 # Is the header present?
9605 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9606 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 #include <dlfcn.h>
9614 _ACEOF
9615 if { (ac_try="$ac_cpp conftest.$ac_ext"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } >/dev/null && {
9628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 }; then
9631 ac_header_preproc=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_preproc=no
9637 fi
9639 rm -f conftest.err conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9641 echo "${ECHO_T}$ac_header_preproc" >&6; }
9643 # So? What about this header?
9644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9645 yes:no: )
9646 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9647 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9649 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9650 ac_header_preproc=yes
9651 ;;
9652 no:yes:* )
9653 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9654 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9656 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9658 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9660 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9661 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9662 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9664 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9666 ;;
9667 esac
9668 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9669 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9670 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 ac_cv_header_dlfcn_h=$ac_header_preproc
9674 fi
9675 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9678 fi
9679 if test $ac_cv_header_dlfcn_h = yes; then
9681 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9682 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9683 if test "${ac_cv_search_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 ac_func_search_save_LIBS=$LIBS
9687 cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h. */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 char dlopen ();
9701 int
9702 main ()
9703 {
9704 return dlopen ();
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 for ac_lib in '' dl; do
9710 if test -z "$ac_lib"; then
9711 ac_res="none required"
9712 else
9713 ac_res=-l$ac_lib
9714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9715 fi
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest$ac_exeext &&
9733 $as_test_x conftest$ac_exeext; then
9734 ac_cv_search_dlopen=$ac_res
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9740 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743 conftest$ac_exeext
9744 if test "${ac_cv_search_dlopen+set}" = set; then
9745 break
9746 fi
9747 done
9748 if test "${ac_cv_search_dlopen+set}" = set; then
9749 :
9750 else
9751 ac_cv_search_dlopen=no
9752 fi
9753 rm conftest.$ac_ext
9754 LIBS=$ac_func_search_save_LIBS
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9757 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9758 ac_res=$ac_cv_search_dlopen
9759 if test "$ac_res" != no; then
9760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9761 have_dlopen=yes
9762 fi
9764 fi
9767 if test "x$have_dlopen" != "xyes"; then
9768 if test "x$enable_shared" == "xyes"; then
9769 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
9770 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
9771 { (exit 1); exit 1; }; }
9772 else
9773 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
9774 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
9775 fi
9776 fi
9778 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
9779 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
9780 old_LDFLAGS="$LDFLAGS"
9781 LDFLAGS="$LDFLAGS -rdynamic"
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 int main() { return 0; }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9792 case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_link") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest$ac_exeext &&
9807 $as_test_x conftest$ac_exeext; then
9809 LXDREAMLDFLAGS="-rdynamic"
9810 { echo "$as_me:$LINENO: result: yes" >&5
9811 echo "${ECHO_T}yes" >&6; }
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9818 LXDREAMLDFLAGS=""
9819 { echo "$as_me:$LINENO: result: no" >&5
9820 echo "${ECHO_T}no" >&6; }
9821 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LDFLAGS="$old_LDFLAGS"
9831 fi
9832 if test "x$have_dlopen" = "xyes"; then
9834 cat >>confdefs.h <<\_ACEOF
9835 #define BUILD_PLUGINS 1
9836 _ACEOF
9838 fi
9841 if test "x$have_dlopen" = "xyes"; then
9842 BUILD_PLUGINS_TRUE=
9843 BUILD_PLUGINS_FALSE='#'
9844 else
9845 BUILD_PLUGINS_TRUE='#'
9846 BUILD_PLUGINS_FALSE=
9847 fi
9851 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
9852 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
9853 save_CFLAGS="$CFLAGS"
9854 CFLAGS="-Werror $save_CFLAGS"
9855 if test "$cross_compiling" = yes; then
9857 { echo "$as_me:$LINENO: result: no" >&5
9858 echo "${ECHO_T}no" >&6; }
9860 else
9861 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9869 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
9871 int main(int argc, char *argv[])
9872 {
9873 return foo( 1, 2 ) == 3 ? 0 : 1;
9874 }
9875 _ACEOF
9876 rm -f conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9897 { echo "$as_me:$LINENO: result: yes" >&5
9898 echo "${ECHO_T}yes" >&6; }
9901 cat >>confdefs.h <<\_ACEOF
9902 #define HAVE_FASTCALL 1
9903 _ACEOF
9906 else
9907 echo "$as_me: program exited with status $ac_status" >&5
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ( exit $ac_status )
9913 { echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6; }
9916 fi
9917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918 fi
9921 CFLAGS="$save_CFLAGS"
9924 { echo "$as_me:$LINENO: checking support for force inlining" >&5
9925 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
9926 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
9936 int main(int argc, char *argv[])
9937 {
9938 return foo( 1, 2 ) == 3 ? 0 : 1;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (ac_try="$ac_compile"
9943 case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_compile") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } && {
9955 test -z "$ac_c_werror_flag" ||
9956 test ! -s conftest.err
9957 } && test -s conftest.$ac_objext; then
9959 FORCEINLINE="__attribute__((always_inline))"
9960 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
9961 echo "${ECHO_T}$FORCEINLINE" >&6; }
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9968 FORCEINLINE=""
9969 { echo "$as_me:$LINENO: result: no" >&5
9970 echo "${ECHO_T}no" >&6; }
9972 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 cat >>confdefs.h <<_ACEOF
9978 #define FORCEINLINE $FORCEINLINE
9979 _ACEOF
9982 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
9983 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
9984 if test "$cross_compiling" = yes; then
9986 { echo "$as_me:$LINENO: result: no" >&5
9987 echo "${ECHO_T}no" >&6; }
9988 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9989 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9990 else
9991 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10000 int __attribute__((noinline)) foo( int arg, void *exc )
10001 {
10002 if( arg < 2 ) {
10003 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10004 }
10005 return 0;
10006 }
10008 int main(int argc, char *argv[])
10009 {
10010 goto *first_arg(&&start, &&except);
10012 start:
10013 return foo( argc, &&except ) + 1;
10015 except:
10016 return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10030 { (case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_try") 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10040 { echo "$as_me:$LINENO: result: yes" >&5
10041 echo "${ECHO_T}yes" >&6; }
10044 cat >>confdefs.h <<\_ACEOF
10045 #define HAVE_FRAME_ADDRESS 1
10046 _ACEOF
10049 else
10050 echo "$as_me: program exited with status $ac_status" >&5
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ( exit $ac_status )
10056 { echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6; }
10058 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10059 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10060 fi
10061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10062 fi
10068 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10069 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10070 if test "${ac_cv_search_listen+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 ac_func_search_save_LIBS=$LIBS
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char listen ();
10088 int
10089 main ()
10090 {
10091 return listen ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 for ac_lib in '' socket; do
10097 if test -z "$ac_lib"; then
10098 ac_res="none required"
10099 else
10100 ac_res=-l$ac_lib
10101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10102 fi
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext &&
10120 $as_test_x conftest$ac_exeext; then
10121 ac_cv_search_listen=$ac_res
10122 else
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10127 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130 conftest$ac_exeext
10131 if test "${ac_cv_search_listen+set}" = set; then
10132 break
10133 fi
10134 done
10135 if test "${ac_cv_search_listen+set}" = set; then
10136 :
10137 else
10138 ac_cv_search_listen=no
10139 fi
10140 rm conftest.$ac_ext
10141 LIBS=$ac_func_search_save_LIBS
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10144 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10145 ac_res=$ac_cv_search_listen
10146 if test "$ac_res" != no; then
10147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10149 fi
10151 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10152 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10153 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156 ac_func_search_save_LIBS=$LIBS
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char inet_ntoa ();
10171 int
10172 main ()
10173 {
10174 return inet_ntoa ();
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 for ac_lib in '' nsl; do
10180 if test -z "$ac_lib"; then
10181 ac_res="none required"
10182 else
10183 ac_res=-l$ac_lib
10184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10185 fi
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest$ac_exeext &&
10203 $as_test_x conftest$ac_exeext; then
10204 ac_cv_search_inet_ntoa=$ac_res
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10210 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10213 conftest$ac_exeext
10214 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10215 break
10216 fi
10217 done
10218 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10219 :
10220 else
10221 ac_cv_search_inet_ntoa=no
10222 fi
10223 rm conftest.$ac_ext
10224 LIBS=$ac_func_search_save_LIBS
10225 fi
10226 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10227 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10228 ac_res=$ac_cv_search_inet_ntoa
10229 if test "$ac_res" != no; then
10230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10232 fi
10237 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10238 if test -n "$ac_tool_prefix"; then
10239 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10240 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10243 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 case $PKG_CONFIG in
10247 [\\/]* | ?:[\\/]*)
10248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10249 ;;
10250 *)
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10261 fi
10262 done
10263 done
10264 IFS=$as_save_IFS
10266 ;;
10267 esac
10268 fi
10269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10270 if test -n "$PKG_CONFIG"; then
10271 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10272 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10273 else
10274 { echo "$as_me:$LINENO: result: no" >&5
10275 echo "${ECHO_T}no" >&6; }
10276 fi
10279 fi
10280 if test -z "$ac_cv_path_PKG_CONFIG"; then
10281 ac_pt_PKG_CONFIG=$PKG_CONFIG
10282 # Extract the first word of "pkg-config", so it can be a program name with args.
10283 set dummy pkg-config; ac_word=$2
10284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10286 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 case $ac_pt_PKG_CONFIG in
10290 [\\/]* | ?:[\\/]*)
10291 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10292 ;;
10293 *)
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10296 do
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10301 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10304 fi
10305 done
10306 done
10307 IFS=$as_save_IFS
10309 ;;
10310 esac
10311 fi
10312 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10313 if test -n "$ac_pt_PKG_CONFIG"; then
10314 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10315 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10316 else
10317 { echo "$as_me:$LINENO: result: no" >&5
10318 echo "${ECHO_T}no" >&6; }
10319 fi
10321 if test "x$ac_pt_PKG_CONFIG" = x; then
10322 PKG_CONFIG=""
10323 else
10324 case $cross_compiling:$ac_tool_warned in
10325 yes:)
10326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10327 whose name does not start with the host triplet. If you think this
10328 configuration is useful to you, please write to autoconf@gnu.org." >&5
10329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10330 whose name does not start with the host triplet. If you think this
10331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10332 ac_tool_warned=yes ;;
10333 esac
10334 PKG_CONFIG=$ac_pt_PKG_CONFIG
10335 fi
10336 else
10337 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10338 fi
10340 fi
10341 if test -n "$PKG_CONFIG"; then
10342 _pkg_min_version=0.9.0
10343 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10344 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10345 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10346 { echo "$as_me:$LINENO: result: yes" >&5
10347 echo "${ECHO_T}yes" >&6; }
10348 else
10349 { echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6; }
10351 PKG_CONFIG=""
10352 fi
10354 fi
10356 pkg_failed=no
10357 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10358 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10360 if test -n "$LIBPNG_CFLAGS"; then
10361 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10365 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10370 else
10371 pkg_failed=yes
10372 fi
10373 else
10374 pkg_failed=untried
10375 fi
10376 if test -n "$LIBPNG_LIBS"; then
10377 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10378 elif test -n "$PKG_CONFIG"; then
10379 if test -n "$PKG_CONFIG" && \
10380 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10381 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; then
10385 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10386 else
10387 pkg_failed=yes
10388 fi
10389 else
10390 pkg_failed=untried
10391 fi
10395 if test $pkg_failed = yes; then
10397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10398 _pkg_short_errors_supported=yes
10399 else
10400 _pkg_short_errors_supported=no
10401 fi
10402 if test $_pkg_short_errors_supported = yes; then
10403 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10404 else
10405 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10406 fi
10407 # Put the nasty error message in config.log where it belongs
10408 echo "$LIBPNG_PKG_ERRORS" >&5
10410 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10412 $LIBPNG_PKG_ERRORS
10414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10415 installed software in a non-standard prefix.
10417 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10418 and LIBPNG_LIBS to avoid the need to call pkg-config.
10419 See the pkg-config man page for more details.
10420 " >&5
10421 echo "$as_me: error: Package requirements (libpng ) were not met:
10423 $LIBPNG_PKG_ERRORS
10425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10426 installed software in a non-standard prefix.
10428 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10429 and LIBPNG_LIBS to avoid the need to call pkg-config.
10430 See the pkg-config man page for more details.
10431 " >&2;}
10432 { (exit 1); exit 1; }; }
10433 elif test $pkg_failed = untried; then
10434 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10435 is in your PATH or set the PKG_CONFIG environment variable to the full
10436 path to pkg-config.
10438 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10439 and LIBPNG_LIBS to avoid the need to call pkg-config.
10440 See the pkg-config man page for more details.
10442 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10443 See \`config.log' for more details." >&5
10444 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10445 is in your PATH or set the PKG_CONFIG environment variable to the full
10446 path to pkg-config.
10448 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10449 and LIBPNG_LIBS to avoid the need to call pkg-config.
10450 See the pkg-config man page for more details.
10452 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10453 See \`config.log' for more details." >&2;}
10454 { (exit 1); exit 1; }; }
10455 else
10456 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10457 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10458 { echo "$as_me:$LINENO: result: yes" >&5
10459 echo "${ECHO_T}yes" >&6; }
10460 :
10461 fi
10464 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10465 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10466 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469 ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lz $LIBS"
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 char uncompress ();
10485 int
10486 main ()
10487 {
10488 return uncompress ();
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (ac_try="$ac_link"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_link") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest$ac_exeext &&
10510 $as_test_x conftest$ac_exeext; then
10511 ac_cv_lib_z_uncompress=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_cv_lib_z_uncompress=no
10517 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10524 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10525 if test $ac_cv_lib_z_uncompress = yes; then
10526 cat >>confdefs.h <<_ACEOF
10527 #define HAVE_LIBZ 1
10528 _ACEOF
10530 LIBS="-lz $LIBS"
10532 else
10534 echo "Zlib (libz.so) could not be found, but is required."
10535 exit 1
10536 fi
10539 if test "x$with_gtk" = "xno"; then
10541 pkg_failed=no
10542 { echo "$as_me:$LINENO: checking for GLIB" >&5
10543 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10545 if test -n "$GLIB_CFLAGS"; then
10546 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10547 elif test -n "$PKG_CONFIG"; then
10548 if test -n "$PKG_CONFIG" && \
10549 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10550 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; then
10554 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10555 else
10556 pkg_failed=yes
10557 fi
10558 else
10559 pkg_failed=untried
10560 fi
10561 if test -n "$GLIB_LIBS"; then
10562 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10563 elif test -n "$PKG_CONFIG"; then
10564 if test -n "$PKG_CONFIG" && \
10565 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10566 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; then
10570 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10571 else
10572 pkg_failed=yes
10573 fi
10574 else
10575 pkg_failed=untried
10576 fi
10580 if test $pkg_failed = yes; then
10582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10583 _pkg_short_errors_supported=yes
10584 else
10585 _pkg_short_errors_supported=no
10586 fi
10587 if test $_pkg_short_errors_supported = yes; then
10588 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10589 else
10590 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10591 fi
10592 # Put the nasty error message in config.log where it belongs
10593 echo "$GLIB_PKG_ERRORS" >&5
10595 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10597 $GLIB_PKG_ERRORS
10599 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10600 installed software in a non-standard prefix.
10602 Alternatively, you may set the environment variables GLIB_CFLAGS
10603 and GLIB_LIBS to avoid the need to call pkg-config.
10604 See the pkg-config man page for more details.
10605 " >&5
10606 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10608 $GLIB_PKG_ERRORS
10610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10611 installed software in a non-standard prefix.
10613 Alternatively, you may set the environment variables GLIB_CFLAGS
10614 and GLIB_LIBS to avoid the need to call pkg-config.
10615 See the pkg-config man page for more details.
10616 " >&2;}
10617 { (exit 1); exit 1; }; }
10618 elif test $pkg_failed = untried; then
10619 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10620 is in your PATH or set the PKG_CONFIG environment variable to the full
10621 path to pkg-config.
10623 Alternatively, you may set the environment variables GLIB_CFLAGS
10624 and GLIB_LIBS to avoid the need to call pkg-config.
10625 See the pkg-config man page for more details.
10627 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10628 See \`config.log' for more details." >&5
10629 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10630 is in your PATH or set the PKG_CONFIG environment variable to the full
10631 path to pkg-config.
10633 Alternatively, you may set the environment variables GLIB_CFLAGS
10634 and GLIB_LIBS to avoid the need to call pkg-config.
10635 See the pkg-config man page for more details.
10637 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10638 See \`config.log' for more details." >&2;}
10639 { (exit 1); exit 1; }; }
10640 else
10641 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10642 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10643 { echo "$as_me:$LINENO: result: yes" >&5
10644 echo "${ECHO_T}yes" >&6; }
10645 :
10646 fi
10647 else
10649 pkg_failed=no
10650 { echo "$as_me:$LINENO: checking for GTK" >&5
10651 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10653 if test -n "$GTK_CFLAGS"; then
10654 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10655 elif test -n "$PKG_CONFIG"; then
10656 if test -n "$PKG_CONFIG" && \
10657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10658 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; then
10662 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10663 else
10664 pkg_failed=yes
10665 fi
10666 else
10667 pkg_failed=untried
10668 fi
10669 if test -n "$GTK_LIBS"; then
10670 pkg_cv_GTK_LIBS="$GTK_LIBS"
10671 elif test -n "$PKG_CONFIG"; then
10672 if test -n "$PKG_CONFIG" && \
10673 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10674 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; then
10678 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10679 else
10680 pkg_failed=yes
10681 fi
10682 else
10683 pkg_failed=untried
10684 fi
10688 if test $pkg_failed = yes; then
10690 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10691 _pkg_short_errors_supported=yes
10692 else
10693 _pkg_short_errors_supported=no
10694 fi
10695 if test $_pkg_short_errors_supported = yes; then
10696 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10697 else
10698 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10699 fi
10700 # Put the nasty error message in config.log where it belongs
10701 echo "$GTK_PKG_ERRORS" >&5
10703 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10705 $GTK_PKG_ERRORS
10707 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10708 installed software in a non-standard prefix.
10710 Alternatively, you may set the environment variables GTK_CFLAGS
10711 and GTK_LIBS to avoid the need to call pkg-config.
10712 See the pkg-config man page for more details.
10713 " >&5
10714 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10716 $GTK_PKG_ERRORS
10718 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10719 installed software in a non-standard prefix.
10721 Alternatively, you may set the environment variables GTK_CFLAGS
10722 and GTK_LIBS to avoid the need to call pkg-config.
10723 See the pkg-config man page for more details.
10724 " >&2;}
10725 { (exit 1); exit 1; }; }
10726 elif test $pkg_failed = untried; then
10727 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10728 is in your PATH or set the PKG_CONFIG environment variable to the full
10729 path to pkg-config.
10731 Alternatively, you may set the environment variables GTK_CFLAGS
10732 and GTK_LIBS to avoid the need to call pkg-config.
10733 See the pkg-config man page for more details.
10735 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10736 See \`config.log' for more details." >&5
10737 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10738 is in your PATH or set the PKG_CONFIG environment variable to the full
10739 path to pkg-config.
10741 Alternatively, you may set the environment variables GTK_CFLAGS
10742 and GTK_LIBS to avoid the need to call pkg-config.
10743 See the pkg-config man page for more details.
10745 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10746 See \`config.log' for more details." >&2;}
10747 { (exit 1); exit 1; }; }
10748 else
10749 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10750 GTK_LIBS=$pkg_cv_GTK_LIBS
10751 { echo "$as_me:$LINENO: result: yes" >&5
10752 echo "${ECHO_T}yes" >&6; }
10754 HAVE_GTK='yes'
10756 cat >>confdefs.h <<\_ACEOF
10757 #define HAVE_GTK 1
10758 _ACEOF
10761 fi
10763 LIBS="$LIBS $GTK_LIBS"
10764 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
10765 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
10766 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10777 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char gdk_x11_display_get_xdisplay (); below.
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10790 #undef gdk_x11_display_get_xdisplay
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char gdk_x11_display_get_xdisplay ();
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
10803 choke me
10804 #endif
10806 int
10807 main ()
10808 {
10809 return gdk_x11_display_get_xdisplay ();
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_link") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest$ac_exeext &&
10831 $as_test_x conftest$ac_exeext; then
10832 ac_cv_func_gdk_x11_display_get_xdisplay=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 ac_cv_func_gdk_x11_display_get_xdisplay=no
10838 fi
10840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10841 conftest$ac_exeext conftest.$ac_ext
10842 fi
10843 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
10844 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
10845 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
10847 HAVE_GTK_X11='yes'
10849 cat >>confdefs.h <<\_ACEOF
10850 #define HAVE_GTK_X11 1
10851 _ACEOF
10853 fi
10855 GTK_LIBS="$GTK_LIBS -lX11"
10856 LIBS="$LIBS -lX11"
10857 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
10858 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
10859 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h. */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
10869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10870 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
10872 /* System header to define __stub macros and hopefully few prototypes,
10873 which can conflict with char gdk_quartz_window_get_nsview (); below.
10874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10875 <limits.h> exists even on freestanding compilers. */
10877 #ifdef __STDC__
10878 # include <limits.h>
10879 #else
10880 # include <assert.h>
10881 #endif
10883 #undef gdk_quartz_window_get_nsview
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char gdk_quartz_window_get_nsview ();
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
10896 choke me
10897 #endif
10899 int
10900 main ()
10901 {
10902 return gdk_quartz_window_get_nsview ();
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest$ac_exeext &&
10924 $as_test_x conftest$ac_exeext; then
10925 ac_cv_func_gdk_quartz_window_get_nsview=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_func_gdk_quartz_window_get_nsview=no
10931 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 conftest$ac_exeext conftest.$ac_ext
10935 fi
10936 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
10937 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
10938 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
10940 HAVE_GTK_OSX='yes'
10942 cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_GTK_OSX 1
10944 _ACEOF
10946 fi
10948 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
10949 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
10950 See \`config.log' for more details." >&5
10951 echo "$as_me: error: Unable to identify GTK platform
10952 See \`config.log' for more details." >&2;}
10953 { (exit 1); exit 1; }; }
10954 fi
10955 fi
10959 pkg_failed=no
10960 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
10961 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
10963 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
10964 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
10965 elif test -n "$PKG_CONFIG"; then
10966 if test -n "$PKG_CONFIG" && \
10967 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10968 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; then
10972 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10973 else
10974 pkg_failed=yes
10975 fi
10976 else
10977 pkg_failed=untried
10978 fi
10979 if test -n "$GLIB_FOR_BUILD_LIBS"; then
10980 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
10981 elif test -n "$PKG_CONFIG"; then
10982 if test -n "$PKG_CONFIG" && \
10983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10984 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; then
10988 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10989 else
10990 pkg_failed=yes
10991 fi
10992 else
10993 pkg_failed=untried
10994 fi
10998 if test $pkg_failed = yes; then
11000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11001 _pkg_short_errors_supported=yes
11002 else
11003 _pkg_short_errors_supported=no
11004 fi
11005 if test $_pkg_short_errors_supported = yes; then
11006 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11007 else
11008 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11009 fi
11010 # Put the nasty error message in config.log where it belongs
11011 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11013 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11015 $GLIB_FOR_BUILD_PKG_ERRORS
11017 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11018 installed software in a non-standard prefix.
11020 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11021 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11022 See the pkg-config man page for more details.
11023 " >&5
11024 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11026 $GLIB_FOR_BUILD_PKG_ERRORS
11028 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11029 installed software in a non-standard prefix.
11031 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11032 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11033 See the pkg-config man page for more details.
11034 " >&2;}
11035 { (exit 1); exit 1; }; }
11036 elif test $pkg_failed = untried; then
11037 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11038 is in your PATH or set the PKG_CONFIG environment variable to the full
11039 path to pkg-config.
11041 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11042 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11043 See the pkg-config man page for more details.
11045 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11046 See \`config.log' for more details." >&5
11047 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11048 is in your PATH or set the PKG_CONFIG environment variable to the full
11049 path to pkg-config.
11051 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11052 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11053 See the pkg-config man page for more details.
11055 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11056 See \`config.log' for more details." >&2;}
11057 { (exit 1); exit 1; }; }
11058 else
11059 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11060 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11061 { echo "$as_me:$LINENO: result: yes" >&5
11062 echo "${ECHO_T}yes" >&6; }
11063 :
11064 fi
11069 if test "$HAVE_GTK" = 'yes'; then
11070 GUI_GTK_TRUE=
11071 GUI_GTK_FALSE='#'
11072 else
11073 GUI_GTK_TRUE='#'
11074 GUI_GTK_FALSE=
11075 fi
11079 pkg_failed=no
11080 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11081 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11083 if test -n "$LIBISOFS_CFLAGS"; then
11084 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11085 elif test -n "$PKG_CONFIG"; then
11086 if test -n "$PKG_CONFIG" && \
11087 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11088 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; then
11092 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11093 else
11094 pkg_failed=yes
11095 fi
11096 else
11097 pkg_failed=untried
11098 fi
11099 if test -n "$LIBISOFS_LIBS"; then
11100 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11101 elif test -n "$PKG_CONFIG"; then
11102 if test -n "$PKG_CONFIG" && \
11103 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11104 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; then
11108 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11109 else
11110 pkg_failed=yes
11111 fi
11112 else
11113 pkg_failed=untried
11114 fi
11118 if test $pkg_failed = yes; then
11120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11121 _pkg_short_errors_supported=yes
11122 else
11123 _pkg_short_errors_supported=no
11124 fi
11125 if test $_pkg_short_errors_supported = yes; then
11126 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11127 else
11128 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11129 fi
11130 # Put the nasty error message in config.log where it belongs
11131 echo "$LIBISOFS_PKG_ERRORS" >&5
11133 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11135 $LIBISOFS_PKG_ERRORS
11137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11138 installed software in a non-standard prefix.
11140 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11141 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11142 See the pkg-config man page for more details.
11143 " >&5
11144 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11146 $LIBISOFS_PKG_ERRORS
11148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11149 installed software in a non-standard prefix.
11151 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11152 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11153 See the pkg-config man page for more details.
11154 " >&2;}
11155 { (exit 1); exit 1; }; }
11156 elif test $pkg_failed = untried; then
11157 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11158 is in your PATH or set the PKG_CONFIG environment variable to the full
11159 path to pkg-config.
11161 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11162 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11163 See the pkg-config man page for more details.
11165 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11166 See \`config.log' for more details." >&5
11167 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11168 is in your PATH or set the PKG_CONFIG environment variable to the full
11169 path to pkg-config.
11171 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11172 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11173 See the pkg-config man page for more details.
11175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11176 See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 else
11179 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11180 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11181 { echo "$as_me:$LINENO: result: yes" >&5
11182 echo "${ECHO_T}yes" >&6; }
11183 :
11184 fi
11186 if test "x$with_osmesa" != xno; then
11190 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11191 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11192 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-lOSMesa $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char OSMesaCreateContext ();
11211 int
11212 main ()
11213 {
11214 return OSMesaCreateContext ();
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (ac_try="$ac_link"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_link") 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && {
11233 test -z "$ac_c_werror_flag" ||
11234 test ! -s conftest.err
11235 } && test -s conftest$ac_exeext &&
11236 $as_test_x conftest$ac_exeext; then
11237 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11243 fi
11245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11248 fi
11249 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11250 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11251 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define HAVE_LIBOSMESA 1
11254 _ACEOF
11256 LIBS="-lOSMesa $LIBS"
11258 else
11259 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11260 See \`config.log' for more details." >&5
11261 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11262 See \`config.log' for more details." >&2;}
11263 { (exit 1); exit 1; }; }
11264 fi
11266 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11267 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11268 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11269 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11273 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11274 else
11275 # Is the header compilable?
11276 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11277 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 #include <GL/osmesa.h>
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (ac_try="$ac_compile"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && {
11301 test -z "$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11303 } && test -s conftest.$ac_objext; then
11304 ac_header_compiler=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_header_compiler=no
11310 fi
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11314 echo "${ECHO_T}$ac_header_compiler" >&6; }
11316 # Is the header present?
11317 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11318 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h. */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 #include <GL/osmesa.h>
11326 _ACEOF
11327 if { (ac_try="$ac_cpp conftest.$ac_ext"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } >/dev/null && {
11340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 }; then
11343 ac_header_preproc=yes
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_header_preproc=no
11349 fi
11351 rm -f conftest.err conftest.$ac_ext
11352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11353 echo "${ECHO_T}$ac_header_preproc" >&6; }
11355 # So? What about this header?
11356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 yes:no: )
11358 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11359 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11361 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11362 ac_header_preproc=yes
11363 ;;
11364 no:yes:* )
11365 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11366 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11368 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11370 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11372 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11374 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11376 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11378 ;;
11379 esac
11380 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11381 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11382 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11386 fi
11387 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11388 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11390 fi
11391 if test $ac_cv_header_GL_osmesa_h = yes; then
11392 :
11393 else
11394 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11395 See \`config.log' for more details." >&5
11396 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11397 See \`config.log' for more details." >&2;}
11398 { (exit 1); exit 1; }; }
11399 fi
11402 HAVE_OSMESA='yes'
11403 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11405 cat >>confdefs.h <<\_ACEOF
11406 #define HAVE_OSMESA 1
11407 _ACEOF
11409 else
11412 if test "x$APPLE_BUILD" != 'xyes'; then
11414 pkg_failed=no
11415 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11416 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11418 if test -n "$LIBGL_CFLAGS"; then
11419 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11420 elif test -n "$PKG_CONFIG"; then
11421 if test -n "$PKG_CONFIG" && \
11422 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11423 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; then
11427 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11428 else
11429 pkg_failed=yes
11430 fi
11431 else
11432 pkg_failed=untried
11433 fi
11434 if test -n "$LIBGL_LIBS"; then
11435 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11436 elif test -n "$PKG_CONFIG"; then
11437 if test -n "$PKG_CONFIG" && \
11438 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11439 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; then
11443 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11444 else
11445 pkg_failed=yes
11446 fi
11447 else
11448 pkg_failed=untried
11449 fi
11453 if test $pkg_failed = yes; then
11455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11456 _pkg_short_errors_supported=yes
11457 else
11458 _pkg_short_errors_supported=no
11459 fi
11460 if test $_pkg_short_errors_supported = yes; then
11461 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11462 else
11463 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11464 fi
11465 # Put the nasty error message in config.log where it belongs
11466 echo "$LIBGL_PKG_ERRORS" >&5
11468 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11470 $LIBGL_PKG_ERRORS
11472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11473 installed software in a non-standard prefix.
11475 Alternatively, you may set the environment variables LIBGL_CFLAGS
11476 and LIBGL_LIBS to avoid the need to call pkg-config.
11477 See the pkg-config man page for more details.
11478 " >&5
11479 echo "$as_me: error: Package requirements (gl ) were not met:
11481 $LIBGL_PKG_ERRORS
11483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11484 installed software in a non-standard prefix.
11486 Alternatively, you may set the environment variables LIBGL_CFLAGS
11487 and LIBGL_LIBS to avoid the need to call pkg-config.
11488 See the pkg-config man page for more details.
11489 " >&2;}
11490 { (exit 1); exit 1; }; }
11491 elif test $pkg_failed = untried; then
11492 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11493 is in your PATH or set the PKG_CONFIG environment variable to the full
11494 path to pkg-config.
11496 Alternatively, you may set the environment variables LIBGL_CFLAGS
11497 and LIBGL_LIBS to avoid the need to call pkg-config.
11498 See the pkg-config man page for more details.
11500 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11501 See \`config.log' for more details." >&5
11502 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11503 is in your PATH or set the PKG_CONFIG environment variable to the full
11504 path to pkg-config.
11506 Alternatively, you may set the environment variables LIBGL_CFLAGS
11507 and LIBGL_LIBS to avoid the need to call pkg-config.
11508 See the pkg-config man page for more details.
11510 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11511 See \`config.log' for more details." >&2;}
11512 { (exit 1); exit 1; }; }
11513 else
11514 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11515 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11516 { echo "$as_me:$LINENO: result: yes" >&5
11517 echo "${ECHO_T}yes" >&6; }
11518 :
11519 fi
11520 LIBS="$LIBS $LIBGL_LIBS";
11521 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11522 else
11523 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11524 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11525 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11536 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char NSOpenGLGetVersion (); below.
11540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11541 <limits.h> exists even on freestanding compilers. */
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11549 #undef NSOpenGLGetVersion
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char NSOpenGLGetVersion ();
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11562 choke me
11563 #endif
11565 int
11566 main ()
11567 {
11568 return NSOpenGLGetVersion ();
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (ac_try="$ac_link"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_link") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest$ac_exeext &&
11590 $as_test_x conftest$ac_exeext; then
11591 ac_cv_func_NSOpenGLGetVersion=yes
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_cv_func_NSOpenGLGetVersion=no
11597 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11600 conftest$ac_exeext conftest.$ac_ext
11601 fi
11602 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11603 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11604 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11606 HAVE_NSGL='yes'
11607 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11609 cat >>confdefs.h <<\_ACEOF
11610 #define HAVE_NSGL 1
11611 _ACEOF
11613 fi
11615 fi
11617 if test "x$HAVE_GTK_X11" = "xyes"; then
11618 if test "x$APPLE_BUILD" = "xyes"; then
11619 LIBS="$LIBS -L/usr/X11/lib -lGL"
11620 fi
11621 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11622 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11623 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11634 #define glXQueryVersion innocuous_glXQueryVersion
11636 /* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char glXQueryVersion (); below.
11638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11639 <limits.h> exists even on freestanding compilers. */
11641 #ifdef __STDC__
11642 # include <limits.h>
11643 #else
11644 # include <assert.h>
11645 #endif
11647 #undef glXQueryVersion
11649 /* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11652 #ifdef __cplusplus
11653 extern "C"
11654 #endif
11655 char glXQueryVersion ();
11656 /* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11660 choke me
11661 #endif
11663 int
11664 main ()
11665 {
11666 return glXQueryVersion ();
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (ac_try="$ac_link"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_link") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest$ac_exeext &&
11688 $as_test_x conftest$ac_exeext; then
11689 ac_cv_func_glXQueryVersion=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_cv_func_glXQueryVersion=no
11695 fi
11697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11698 conftest$ac_exeext conftest.$ac_ext
11699 fi
11700 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11701 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11702 if test $ac_cv_func_glXQueryVersion = yes; then
11704 HAVE_GLX='yes'
11705 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_GLX 1
11709 _ACEOF
11711 fi
11713 fi
11716 fi
11723 if test "x$HAVE_OSMESA" = "xyes"; then
11724 VIDEO_OSMESA_TRUE=
11725 VIDEO_OSMESA_FALSE='#'
11726 else
11727 VIDEO_OSMESA_TRUE='#'
11728 VIDEO_OSMESA_FALSE=
11729 fi
11733 if test "x$HAVE_GLX" = "xyes"; then
11734 VIDEO_GLX_TRUE=
11735 VIDEO_GLX_FALSE='#'
11736 else
11737 VIDEO_GLX_TRUE='#'
11738 VIDEO_GLX_FALSE=
11739 fi
11743 if test "x$HAVE_NSGL" = "xyes"; then
11744 VIDEO_NSGL_TRUE=
11745 VIDEO_NSGL_FALSE='#'
11746 else
11747 VIDEO_NSGL_TRUE='#'
11748 VIDEO_NSGL_FALSE=
11749 fi
11752 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
11753 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
11754 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
11764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11765 #define glGenFramebuffers innocuous_glGenFramebuffers
11767 /* System header to define __stub macros and hopefully few prototypes,
11768 which can conflict with char glGenFramebuffers (); below.
11769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11770 <limits.h> exists even on freestanding compilers. */
11772 #ifdef __STDC__
11773 # include <limits.h>
11774 #else
11775 # include <assert.h>
11776 #endif
11778 #undef glGenFramebuffers
11780 /* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783 #ifdef __cplusplus
11784 extern "C"
11785 #endif
11786 char glGenFramebuffers ();
11787 /* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
11791 choke me
11792 #endif
11794 int
11795 main ()
11796 {
11797 return glGenFramebuffers ();
11798 ;
11799 return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (ac_try="$ac_link"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_link") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest$ac_exeext &&
11819 $as_test_x conftest$ac_exeext; then
11820 ac_cv_func_glGenFramebuffers=yes
11821 else
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_cv_func_glGenFramebuffers=no
11826 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11829 conftest$ac_exeext conftest.$ac_ext
11830 fi
11831 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
11832 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
11833 if test $ac_cv_func_glGenFramebuffers = yes; then
11835 cat >>confdefs.h <<\_ACEOF
11836 #define HAVE_OPENGL_FBO 1
11837 _ACEOF
11839 fi
11841 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
11842 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
11843 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
11853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11854 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
11856 /* System header to define __stub macros and hopefully few prototypes,
11857 which can conflict with char glGenFramebuffersEXT (); below.
11858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11859 <limits.h> exists even on freestanding compilers. */
11861 #ifdef __STDC__
11862 # include <limits.h>
11863 #else
11864 # include <assert.h>
11865 #endif
11867 #undef glGenFramebuffersEXT
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char glGenFramebuffersEXT ();
11876 /* The GNU C library defines this for functions which it implements
11877 to always fail with ENOSYS. Some functions are actually named
11878 something starting with __ and the normal name is an alias. */
11879 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
11880 choke me
11881 #endif
11883 int
11884 main ()
11885 {
11886 return glGenFramebuffersEXT ();
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (ac_try="$ac_link"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_link") 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest$ac_exeext &&
11908 $as_test_x conftest$ac_exeext; then
11909 ac_cv_func_glGenFramebuffersEXT=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_cv_func_glGenFramebuffersEXT=no
11915 fi
11917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918 conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
11921 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
11922 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
11924 cat >>confdefs.h <<\_ACEOF
11925 #define HAVE_OPENGL_FBO_EXT 1
11926 _ACEOF
11928 fi
11930 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
11931 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
11932 if test "${ac_cv_func_glCreateShader+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
11942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943 #define glCreateShader innocuous_glCreateShader
11945 /* System header to define __stub macros and hopefully few prototypes,
11946 which can conflict with char glCreateShader (); below.
11947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948 <limits.h> exists even on freestanding compilers. */
11950 #ifdef __STDC__
11951 # include <limits.h>
11952 #else
11953 # include <assert.h>
11954 #endif
11956 #undef glCreateShader
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char glCreateShader ();
11965 /* The GNU C library defines this for functions which it implements
11966 to always fail with ENOSYS. Some functions are actually named
11967 something starting with __ and the normal name is an alias. */
11968 #if defined __stub_glCreateShader || defined __stub___glCreateShader
11969 choke me
11970 #endif
11972 int
11973 main ()
11974 {
11975 return glCreateShader ();
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_link") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } && {
11994 test -z "$ac_c_werror_flag" ||
11995 test ! -s conftest.err
11996 } && test -s conftest$ac_exeext &&
11997 $as_test_x conftest$ac_exeext; then
11998 ac_cv_func_glCreateShader=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_cv_func_glCreateShader=no
12004 fi
12006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12007 conftest$ac_exeext conftest.$ac_ext
12008 fi
12009 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12010 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12011 if test $ac_cv_func_glCreateShader = yes; then
12013 cat >>confdefs.h <<\_ACEOF
12014 #define HAVE_OPENGL_SHADER 1
12015 _ACEOF
12017 fi
12019 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12020 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12021 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12032 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12034 /* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char glCreateShaderObjectARB (); below.
12036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 <limits.h> exists even on freestanding compilers. */
12039 #ifdef __STDC__
12040 # include <limits.h>
12041 #else
12042 # include <assert.h>
12043 #endif
12045 #undef glCreateShaderObjectARB
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char glCreateShaderObjectARB ();
12054 /* The GNU C library defines this for functions which it implements
12055 to always fail with ENOSYS. Some functions are actually named
12056 something starting with __ and the normal name is an alias. */
12057 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12058 choke me
12059 #endif
12061 int
12062 main ()
12063 {
12064 return glCreateShaderObjectARB ();
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } && {
12083 test -z "$ac_c_werror_flag" ||
12084 test ! -s conftest.err
12085 } && test -s conftest$ac_exeext &&
12086 $as_test_x conftest$ac_exeext; then
12087 ac_cv_func_glCreateShaderObjectARB=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_cv_func_glCreateShaderObjectARB=no
12093 fi
12095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12096 conftest$ac_exeext conftest.$ac_ext
12097 fi
12098 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12099 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12100 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_OPENGL_SHADER_ARB 1
12104 _ACEOF
12106 fi
12108 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12109 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12110 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12121 #define glClampColorARB innocuous_glClampColorARB
12123 /* System header to define __stub macros and hopefully few prototypes,
12124 which can conflict with char glClampColorARB (); below.
12125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126 <limits.h> exists even on freestanding compilers. */
12128 #ifdef __STDC__
12129 # include <limits.h>
12130 #else
12131 # include <assert.h>
12132 #endif
12134 #undef glClampColorARB
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char glClampColorARB ();
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12147 choke me
12148 #endif
12150 int
12151 main ()
12152 {
12153 return glClampColorARB ();
12154 ;
12155 return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext &&
12175 $as_test_x conftest$ac_exeext; then
12176 ac_cv_func_glClampColorARB=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_func_glClampColorARB=no
12182 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12186 fi
12187 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12188 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12189 if test $ac_cv_func_glClampColorARB = yes; then
12191 cat >>confdefs.h <<\_ACEOF
12192 #define HAVE_OPENGL_CLAMP_COLOR 1
12193 _ACEOF
12195 fi
12197 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12198 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12199 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12210 #define glClearDepthf innocuous_glClearDepthf
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char glClearDepthf (); below.
12214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 <limits.h> exists even on freestanding compilers. */
12217 #ifdef __STDC__
12218 # include <limits.h>
12219 #else
12220 # include <assert.h>
12221 #endif
12223 #undef glClearDepthf
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char glClearDepthf ();
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12236 choke me
12237 #endif
12239 int
12240 main ()
12241 {
12242 return glClearDepthf ();
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest$ac_exeext &&
12264 $as_test_x conftest$ac_exeext; then
12265 ac_cv_func_glClearDepthf=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_cv_func_glClearDepthf=no
12271 fi
12273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12274 conftest$ac_exeext conftest.$ac_ext
12275 fi
12276 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12277 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12278 if test $ac_cv_func_glClearDepthf = yes; then
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12282 _ACEOF
12284 fi
12286 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12287 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12288 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12299 #define glAreTexturesResident innocuous_glAreTexturesResident
12301 /* System header to define __stub macros and hopefully few prototypes,
12302 which can conflict with char glAreTexturesResident (); below.
12303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12304 <limits.h> exists even on freestanding compilers. */
12306 #ifdef __STDC__
12307 # include <limits.h>
12308 #else
12309 # include <assert.h>
12310 #endif
12312 #undef glAreTexturesResident
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char glAreTexturesResident ();
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12325 choke me
12326 #endif
12328 int
12329 main ()
12330 {
12331 return glAreTexturesResident ();
12332 ;
12333 return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext &&
12353 $as_test_x conftest$ac_exeext; then
12354 ac_cv_func_glAreTexturesResident=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_func_glAreTexturesResident=no
12360 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12364 fi
12365 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12366 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12367 if test $ac_cv_func_glAreTexturesResident = yes; then
12369 cat >>confdefs.h <<\_ACEOF
12370 #define HAVE_OPENGL_TEX_RESIDENT 1
12371 _ACEOF
12373 fi
12375 { echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
12376 echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
12377 if test "${ac_cv_func_glDrawBuffer+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 /* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
12387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12388 #define glDrawBuffer innocuous_glDrawBuffer
12390 /* System header to define __stub macros and hopefully few prototypes,
12391 which can conflict with char glDrawBuffer (); below.
12392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393 <limits.h> exists even on freestanding compilers. */
12395 #ifdef __STDC__
12396 # include <limits.h>
12397 #else
12398 # include <assert.h>
12399 #endif
12401 #undef glDrawBuffer
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char glDrawBuffer ();
12410 /* The GNU C library defines this for functions which it implements
12411 to always fail with ENOSYS. Some functions are actually named
12412 something starting with __ and the normal name is an alias. */
12413 #if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
12414 choke me
12415 #endif
12417 int
12418 main ()
12419 {
12420 return glDrawBuffer ();
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext &&
12442 $as_test_x conftest$ac_exeext; then
12443 ac_cv_func_glDrawBuffer=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_func_glDrawBuffer=no
12449 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
12455 echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
12456 if test $ac_cv_func_glDrawBuffer = yes; then
12458 cat >>confdefs.h <<\_ACEOF
12459 #define HAVE_OPENGL_DRAW_BUFFER 1
12460 _ACEOF
12462 fi
12464 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12465 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12466 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12477 #define glTexEnvi innocuous_glTexEnvi
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char glTexEnvi (); below.
12481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482 <limits.h> exists even on freestanding compilers. */
12484 #ifdef __STDC__
12485 # include <limits.h>
12486 #else
12487 # include <assert.h>
12488 #endif
12490 #undef glTexEnvi
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char glTexEnvi ();
12499 /* The GNU C library defines this for functions which it implements
12500 to always fail with ENOSYS. Some functions are actually named
12501 something starting with __ and the normal name is an alias. */
12502 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12503 choke me
12504 #endif
12506 int
12507 main ()
12508 {
12509 return glTexEnvi ();
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_link") 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } && {
12528 test -z "$ac_c_werror_flag" ||
12529 test ! -s conftest.err
12530 } && test -s conftest$ac_exeext &&
12531 $as_test_x conftest$ac_exeext; then
12532 ac_cv_func_glTexEnvi=yes
12533 else
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_cv_func_glTexEnvi=no
12538 fi
12540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12541 conftest$ac_exeext conftest.$ac_ext
12542 fi
12543 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12544 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12545 if test $ac_cv_func_glTexEnvi = yes; then
12547 cat >>confdefs.h <<\_ACEOF
12548 #define HAVE_OPENGL_FIXEDFUNC 1
12549 _ACEOF
12551 fi
12556 if test "x$enable_translator" != "xno"; then
12557 case $host_cpu in
12558 i386|i486|i586|i686|x86_64)
12559 SH4_TRANSLATOR="x86"
12561 cat >>confdefs.h <<_ACEOF
12562 #define SH4_TRANSLATOR TARGET_X86
12563 _ACEOF
12564 ;;
12565 esac
12566 fi
12569 if test "$SH4_TRANSLATOR" = "x86"; then
12570 BUILD_SH4X86_TRUE=
12571 BUILD_SH4X86_FALSE='#'
12572 else
12573 BUILD_SH4X86_TRUE='#'
12574 BUILD_SH4X86_FALSE=
12575 fi
12578 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12579 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12580 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12581 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 fi
12584 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12586 else
12587 # Is the header compilable?
12588 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12589 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <CoreAudio/CoreAudio.h>
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (ac_try="$ac_compile"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 ac_header_compiler=yes
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_header_compiler=no
12622 fi
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6; }
12628 # Is the header present?
12629 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12630 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <CoreAudio/CoreAudio.h>
12638 _ACEOF
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 }; then
12655 ac_header_preproc=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_header_preproc=no
12661 fi
12663 rm -f conftest.err conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 echo "${ECHO_T}$ac_header_preproc" >&6; }
12667 # So? What about this header?
12668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12669 yes:no: )
12670 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12671 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12673 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12674 ac_header_preproc=yes
12675 ;;
12676 no:yes:* )
12677 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12678 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12680 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12682 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12684 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12688 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12690 ;;
12691 esac
12692 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12693 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12694 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12698 fi
12699 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12700 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12702 fi
12703 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12705 HAVE_CORE_AUDIO=yes
12706 LIBS="$LIBS -framework CoreAudio"
12707 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_CORE_AUDIO 1
12711 _ACEOF
12713 else
12714 true
12715 fi
12720 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
12721 AUDIO_OSX_TRUE=
12722 AUDIO_OSX_FALSE='#'
12723 else
12724 AUDIO_OSX_TRUE='#'
12725 AUDIO_OSX_FALSE=
12726 fi
12729 if test "x$with_sdl" != "xno"; then
12731 pkg_failed=no
12732 { echo "$as_me:$LINENO: checking for SDL" >&5
12733 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12735 if test -n "$SDL_CFLAGS"; then
12736 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12737 elif test -n "$PKG_CONFIG"; then
12738 if test -n "$PKG_CONFIG" && \
12739 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12740 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; then
12744 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12745 else
12746 pkg_failed=yes
12747 fi
12748 else
12749 pkg_failed=untried
12750 fi
12751 if test -n "$SDL_LIBS"; then
12752 pkg_cv_SDL_LIBS="$SDL_LIBS"
12753 elif test -n "$PKG_CONFIG"; then
12754 if test -n "$PKG_CONFIG" && \
12755 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12756 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; then
12760 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12761 else
12762 pkg_failed=yes
12763 fi
12764 else
12765 pkg_failed=untried
12766 fi
12770 if test $pkg_failed = yes; then
12772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12773 _pkg_short_errors_supported=yes
12774 else
12775 _pkg_short_errors_supported=no
12776 fi
12777 if test $_pkg_short_errors_supported = yes; then
12778 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
12779 else
12780 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
12781 fi
12782 # Put the nasty error message in config.log where it belongs
12783 echo "$SDL_PKG_ERRORS" >&5
12785 { echo "$as_me:$LINENO: result: no" >&5
12786 echo "${ECHO_T}no" >&6; }
12788 if test "x$with_sdl" = "xyes"; then
12789 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12790 See \`config.log' for more details." >&5
12791 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12792 See \`config.log' for more details." >&2;}
12793 { (exit 1); exit 1; }; }
12794 fi
12796 elif test $pkg_failed = untried; then
12798 if test "x$with_sdl" = "xyes"; then
12799 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12800 See \`config.log' for more details." >&5
12801 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12802 See \`config.log' for more details." >&2;}
12803 { (exit 1); exit 1; }; }
12804 fi
12806 else
12807 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12808 SDL_LIBS=$pkg_cv_SDL_LIBS
12809 { echo "$as_me:$LINENO: result: yes" >&5
12810 echo "${ECHO_T}yes" >&6; }
12812 HAVE_SDL='yes'
12813 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_SDL 1
12817 _ACEOF
12820 fi
12821 fi
12824 if test "$HAVE_SDL" = 'yes' ; then
12825 AUDIO_SDL_TRUE=
12826 AUDIO_SDL_FALSE='#'
12827 else
12828 AUDIO_SDL_TRUE='#'
12829 AUDIO_SDL_FALSE=
12830 fi
12833 if test "x$with_pulse" != "xno"; then
12835 pkg_failed=no
12836 { echo "$as_me:$LINENO: checking for PULSE" >&5
12837 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
12839 if test -n "$PULSE_CFLAGS"; then
12840 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
12841 elif test -n "$PKG_CONFIG"; then
12842 if test -n "$PKG_CONFIG" && \
12843 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12844 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; then
12848 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
12849 else
12850 pkg_failed=yes
12851 fi
12852 else
12853 pkg_failed=untried
12854 fi
12855 if test -n "$PULSE_LIBS"; then
12856 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
12857 elif test -n "$PKG_CONFIG"; then
12858 if test -n "$PKG_CONFIG" && \
12859 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12860 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; then
12864 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
12865 else
12866 pkg_failed=yes
12867 fi
12868 else
12869 pkg_failed=untried
12870 fi
12874 if test $pkg_failed = yes; then
12876 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12877 _pkg_short_errors_supported=yes
12878 else
12879 _pkg_short_errors_supported=no
12880 fi
12881 if test $_pkg_short_errors_supported = yes; then
12882 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
12883 else
12884 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
12885 fi
12886 # Put the nasty error message in config.log where it belongs
12887 echo "$PULSE_PKG_ERRORS" >&5
12889 { echo "$as_me:$LINENO: result: no" >&5
12890 echo "${ECHO_T}no" >&6; }
12892 if test "x$with_pulse" = "xyes"; then
12893 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12896 See \`config.log' for more details." >&2;}
12897 { (exit 1); exit 1; }; }
12898 fi
12900 elif test $pkg_failed = untried; then
12902 if test "x$with_pulse" = "xyes"; then
12903 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12904 See \`config.log' for more details." >&5
12905 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12906 See \`config.log' for more details." >&2;}
12907 { (exit 1); exit 1; }; }
12908 fi
12910 else
12911 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
12912 PULSE_LIBS=$pkg_cv_PULSE_LIBS
12913 { echo "$as_me:$LINENO: result: yes" >&5
12914 echo "${ECHO_T}yes" >&6; }
12916 HAVE_PULSE='yes'
12917 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_PULSE 1
12921 _ACEOF
12924 fi
12925 fi
12928 if test "$HAVE_PULSE" = 'yes' ; then
12929 AUDIO_PULSE_TRUE=
12930 AUDIO_PULSE_FALSE='#'
12931 else
12932 AUDIO_PULSE_TRUE='#'
12933 AUDIO_PULSE_FALSE=
12934 fi
12937 if test "x$with_esd" != "xno"; then
12939 pkg_failed=no
12940 { echo "$as_me:$LINENO: checking for ESOUND" >&5
12941 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
12943 if test -n "$ESOUND_CFLAGS"; then
12944 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
12945 elif test -n "$PKG_CONFIG"; then
12946 if test -n "$PKG_CONFIG" && \
12947 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12948 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
12953 else
12954 pkg_failed=yes
12955 fi
12956 else
12957 pkg_failed=untried
12958 fi
12959 if test -n "$ESOUND_LIBS"; then
12960 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
12961 elif test -n "$PKG_CONFIG"; then
12962 if test -n "$PKG_CONFIG" && \
12963 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12964 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; then
12968 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
12969 else
12970 pkg_failed=yes
12971 fi
12972 else
12973 pkg_failed=untried
12974 fi
12978 if test $pkg_failed = yes; then
12980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12981 _pkg_short_errors_supported=yes
12982 else
12983 _pkg_short_errors_supported=no
12984 fi
12985 if test $_pkg_short_errors_supported = yes; then
12986 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
12987 else
12988 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
12989 fi
12990 # Put the nasty error message in config.log where it belongs
12991 echo "$ESOUND_PKG_ERRORS" >&5
12993 { echo "$as_me:$LINENO: result: no" >&5
12994 echo "${ECHO_T}no" >&6; }
12996 if test "x$with_esd" = "xyes"; then
12997 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12998 See \`config.log' for more details." >&5
12999 echo "$as_me: error: ESounD audio package could not be found (but was required)
13000 See \`config.log' for more details." >&2;}
13001 { (exit 1); exit 1; }; }
13002 fi
13004 elif test $pkg_failed = untried; then
13006 if test "x$with_esd" = "xyes"; then
13007 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
13008 See \`config.log' for more details." >&5
13009 echo "$as_me: error: ESounD audio package could not be found (but was required)
13010 See \`config.log' for more details." >&2;}
13011 { (exit 1); exit 1; }; }
13012 fi
13014 else
13015 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
13016 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
13017 { echo "$as_me:$LINENO: result: yes" >&5
13018 echo "${ECHO_T}yes" >&6; }
13020 HAVE_ESOUND='yes'
13021 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
13023 cat >>confdefs.h <<\_ACEOF
13024 #define HAVE_ESOUND 1
13025 _ACEOF
13028 fi
13029 fi
13032 if test "$HAVE_ESOUND" = 'yes' ; then
13033 AUDIO_ESOUND_TRUE=
13034 AUDIO_ESOUND_FALSE='#'
13035 else
13036 AUDIO_ESOUND_TRUE='#'
13037 AUDIO_ESOUND_FALSE=
13038 fi
13042 pkg_failed=no
13043 { echo "$as_me:$LINENO: checking for ALSA" >&5
13044 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
13046 if test -n "$ALSA_CFLAGS"; then
13047 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
13048 elif test -n "$PKG_CONFIG"; then
13049 if test -n "$PKG_CONFIG" && \
13050 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13051 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; then
13055 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
13056 else
13057 pkg_failed=yes
13058 fi
13059 else
13060 pkg_failed=untried
13061 fi
13062 if test -n "$ALSA_LIBS"; then
13063 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
13064 elif test -n "$PKG_CONFIG"; then
13065 if test -n "$PKG_CONFIG" && \
13066 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
13067 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; then
13071 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
13072 else
13073 pkg_failed=yes
13074 fi
13075 else
13076 pkg_failed=untried
13077 fi
13081 if test $pkg_failed = yes; then
13083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13084 _pkg_short_errors_supported=yes
13085 else
13086 _pkg_short_errors_supported=no
13087 fi
13088 if test $_pkg_short_errors_supported = yes; then
13089 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13090 else
13091 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13092 fi
13093 # Put the nasty error message in config.log where it belongs
13094 echo "$ALSA_PKG_ERRORS" >&5
13096 { echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6; }
13098 true
13099 elif test $pkg_failed = untried; then
13100 true
13101 else
13102 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13103 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13104 { echo "$as_me:$LINENO: result: yes" >&5
13105 echo "${ECHO_T}yes" >&6; }
13107 HAVE_ALSA='yes'
13108 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13110 cat >>confdefs.h <<\_ACEOF
13111 #define HAVE_ALSA 1
13112 _ACEOF
13114 fi
13117 if test "$HAVE_ALSA" = 'yes' ; then
13118 AUDIO_ALSA_TRUE=
13119 AUDIO_ALSA_FALSE='#'
13120 else
13121 AUDIO_ALSA_TRUE='#'
13122 AUDIO_ALSA_FALSE=
13123 fi
13127 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13128 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13129 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13130 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 fi
13133 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13134 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13135 else
13136 # Is the header compilable?
13137 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13138 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13145 $ac_includes_default
13146 #include <linux/cdrom.h>
13147 _ACEOF
13148 rm -f conftest.$ac_objext
13149 if { (ac_try="$ac_compile"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_compile") 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.$ac_objext; then
13165 ac_header_compiler=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_compiler=no
13171 fi
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13175 echo "${ECHO_T}$ac_header_compiler" >&6; }
13177 # Is the header present?
13178 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13179 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 #include <linux/cdrom.h>
13187 _ACEOF
13188 if { (ac_try="$ac_cpp conftest.$ac_ext"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } >/dev/null && {
13201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13202 test ! -s conftest.err
13203 }; then
13204 ac_header_preproc=yes
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 ac_header_preproc=no
13210 fi
13212 rm -f conftest.err conftest.$ac_ext
13213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13214 echo "${ECHO_T}$ac_header_preproc" >&6; }
13216 # So? What about this header?
13217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13218 yes:no: )
13219 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13220 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13221 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13222 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13223 ac_header_preproc=yes
13224 ;;
13225 no:yes:* )
13226 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13227 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13229 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13231 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13233 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13234 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13235 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13236 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13237 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13239 ;;
13240 esac
13241 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13242 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13243 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13247 fi
13248 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13249 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13251 fi
13252 if test $ac_cv_header_linux_cdrom_h = yes; then
13254 CDROM_DRIVER=linux
13255 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13256 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13257 old_CFLAGS="$CFLAGS"
13258 CFLAGS="$CFLAGS $STDCFLAG"
13259 cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h. */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 #include <linux/cdrom.h>
13266 int
13267 main ()
13268 {
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 rm -f conftest.$ac_objext
13275 if { (ac_try="$ac_compile"
13276 case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279 esac
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_compile") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest.$ac_objext; then
13291 { echo "$as_me:$LINENO: result: Yes" >&5
13292 echo "${ECHO_T}Yes" >&6; }
13293 else
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13298 { echo "$as_me:$LINENO: result: No" >&5
13299 echo "${ECHO_T}No" >&6; }
13300 STDCFLAG="-std=gnu99"
13301 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 CFLAGS="$old_CFLAGS"
13306 else
13307 true
13308 fi
13311 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13312 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13313 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13314 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 fi
13317 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13318 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13319 else
13320 # Is the header compilable?
13321 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13322 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13323 cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h. */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 $ac_includes_default
13330 #include <IOKit/IOKitLib.h>
13331 _ACEOF
13332 rm -f conftest.$ac_objext
13333 if { (ac_try="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 ac_header_compiler=yes
13350 else
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_header_compiler=no
13355 fi
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6; }
13361 # Is the header present?
13362 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13363 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <IOKit/IOKitLib.h>
13371 _ACEOF
13372 if { (ac_try="$ac_cpp conftest.$ac_ext"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev/null && {
13385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 }; then
13388 ac_header_preproc=yes
13389 else
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ac_header_preproc=no
13394 fi
13396 rm -f conftest.err conftest.$ac_ext
13397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13398 echo "${ECHO_T}$ac_header_preproc" >&6; }
13400 # So? What about this header?
13401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13402 yes:no: )
13403 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13404 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13406 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13407 ac_header_preproc=yes
13408 ;;
13409 no:yes:* )
13410 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13411 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13413 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13415 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13417 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13419 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13421 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13423 ;;
13424 esac
13425 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13426 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13427 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13431 fi
13432 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13433 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13435 fi
13436 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13438 CDROM_DRIVER=osx
13439 LIBS="$LIBS -framework IOKit"
13440 else
13441 true
13442 fi
13447 if test "x$CDROM_DRIVER" = "xlinux"; then
13448 CDROM_LINUX_TRUE=
13449 CDROM_LINUX_FALSE='#'
13450 else
13451 CDROM_LINUX_TRUE='#'
13452 CDROM_LINUX_FALSE=
13453 fi
13457 if test "x$CDROM_DRIVER" = "xosx"; then
13458 CDROM_OSX_TRUE=
13459 CDROM_OSX_FALSE='#'
13460 else
13461 CDROM_OSX_TRUE='#'
13462 CDROM_OSX_FALSE=
13463 fi
13467 if test "x$CDROM_DRIVER" = "x"; then
13468 CDROM_NONE_TRUE=
13469 CDROM_NONE_FALSE='#'
13470 else
13471 CDROM_NONE_TRUE='#'
13472 CDROM_NONE_FALSE=
13473 fi
13475 if test "x$CDROM_DRIVER" = "xlinux"; then
13477 cat >>confdefs.h <<\_ACEOF
13478 #define HAVE_LINUX_CDROM 1
13479 _ACEOF
13481 fi
13483 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13484 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13485 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13486 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 fi
13489 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13490 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13491 else
13492 # Is the header compilable?
13493 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13494 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 $ac_includes_default
13502 #include <linux/joystick.h>
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 ac_header_compiler=yes
13522 else
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ac_header_compiler=no
13527 fi
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13531 echo "${ECHO_T}$ac_header_compiler" >&6; }
13533 # Is the header present?
13534 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13535 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h. */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 #include <linux/joystick.h>
13543 _ACEOF
13544 if { (ac_try="$ac_cpp conftest.$ac_ext"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } >/dev/null && {
13557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13558 test ! -s conftest.err
13559 }; then
13560 ac_header_preproc=yes
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_header_preproc=no
13566 fi
13568 rm -f conftest.err conftest.$ac_ext
13569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13570 echo "${ECHO_T}$ac_header_preproc" >&6; }
13572 # So? What about this header?
13573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13574 yes:no: )
13575 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13576 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13578 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13579 ac_header_preproc=yes
13580 ;;
13581 no:yes:* )
13582 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13583 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13584 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13585 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13587 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13589 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13591 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13593 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13595 ;;
13596 esac
13597 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13598 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13599 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602 ac_cv_header_linux_joystick_h=$ac_header_preproc
13603 fi
13604 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13605 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13607 fi
13608 if test $ac_cv_header_linux_joystick_h = yes; then
13610 HAVE_LINUX_JOYSTICK_H=yes
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_LINUX_JOYSTICK 1
13614 _ACEOF
13616 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13617 else
13618 echo "Linux Joystick support not found, building without it."
13619 fi
13624 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13625 JOY_LINUX_TRUE=
13626 JOY_LINUX_FALSE='#'
13627 else
13628 JOY_LINUX_TRUE='#'
13629 JOY_LINUX_FALSE=
13630 fi
13633 if test "x$with_lirc" != "xno"; then
13634 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13635 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13636 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13637 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 fi
13640 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13641 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13642 else
13643 # Is the header compilable?
13644 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13645 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13653 #include <lirc/lirc_client.h>
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (ac_try="$ac_compile"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_compile") 2>conftest.er1
13663 ac_status=$?
13664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } && {
13669 test -z "$ac_c_werror_flag" ||
13670 test ! -s conftest.err
13671 } && test -s conftest.$ac_objext; then
13672 ac_header_compiler=yes
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_header_compiler=no
13678 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13682 echo "${ECHO_T}$ac_header_compiler" >&6; }
13684 # Is the header present?
13685 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13686 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #include <lirc/lirc_client.h>
13694 _ACEOF
13695 if { (ac_try="$ac_cpp conftest.$ac_ext"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } >/dev/null && {
13708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 }; then
13711 ac_header_preproc=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_header_preproc=no
13717 fi
13719 rm -f conftest.err conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721 echo "${ECHO_T}$ac_header_preproc" >&6; }
13723 # So? What about this header?
13724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13725 yes:no: )
13726 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
13729 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
13730 ac_header_preproc=yes
13731 ;;
13732 no:yes:* )
13733 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
13734 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
13736 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
13738 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
13740 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
13744 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
13746 ;;
13747 esac
13748 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13749 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13750 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
13754 fi
13755 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13756 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13758 fi
13759 if test $ac_cv_header_lirc_lirc_client_h = yes; then
13761 HAVE_LIRC_CLIENT_H=yes
13763 cat >>confdefs.h <<\_ACEOF
13764 #define HAVE_LIRC 1
13765 _ACEOF
13767 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
13769 else
13770 echo "LIRC support not found, building without it."
13771 fi
13774 fi
13777 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
13778 INPUT_LIRC_TRUE=
13779 INPUT_LIRC_FALSE='#'
13780 else
13781 INPUT_LIRC_TRUE='#'
13782 INPUT_LIRC_FALSE=
13783 fi
13786 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
13787 set dummy sh-elf-gcc; ac_word=$2
13788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13790 if test "${ac_cv_path_SHCC+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 case $SHCC in
13794 [\\/]* | ?:[\\/]*)
13795 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
13796 ;;
13797 *)
13798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799 for as_dir in $PATH
13800 do
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
13804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13805 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
13806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13808 fi
13809 done
13810 done
13811 IFS=$as_save_IFS
13813 ;;
13814 esac
13815 fi
13816 SHCC=$ac_cv_path_SHCC
13817 if test -n "$SHCC"; then
13818 { echo "$as_me:$LINENO: result: $SHCC" >&5
13819 echo "${ECHO_T}$SHCC" >&6; }
13820 else
13821 { echo "$as_me:$LINENO: result: no" >&5
13822 echo "${ECHO_T}no" >&6; }
13823 fi
13826 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
13827 set dummy sh-elf-ld; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_path_SHLD+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833 case $SHLD in
13834 [\\/]* | ?:[\\/]*)
13835 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
13836 ;;
13837 *)
13838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839 for as_dir in $PATH
13840 do
13841 IFS=$as_save_IFS
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13845 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
13846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13847 break 2
13848 fi
13849 done
13850 done
13851 IFS=$as_save_IFS
13853 ;;
13854 esac
13855 fi
13856 SHLD=$ac_cv_path_SHLD
13857 if test -n "$SHLD"; then
13858 { echo "$as_me:$LINENO: result: $SHLD" >&5
13859 echo "${ECHO_T}$SHLD" >&6; }
13860 else
13861 { echo "$as_me:$LINENO: result: no" >&5
13862 echo "${ECHO_T}no" >&6; }
13863 fi
13866 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
13867 set dummy sh-elf-objcopy; ac_word=$2
13868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13870 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 case $SHOBJCOPY in
13874 [\\/]* | ?:[\\/]*)
13875 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
13876 ;;
13877 *)
13878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879 for as_dir in $PATH
13880 do
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
13884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13885 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13888 fi
13889 done
13890 done
13891 IFS=$as_save_IFS
13893 ;;
13894 esac
13895 fi
13896 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
13897 if test -n "$SHOBJCOPY"; then
13898 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
13899 echo "${ECHO_T}$SHOBJCOPY" >&6; }
13900 else
13901 { echo "$as_me:$LINENO: result: no" >&5
13902 echo "${ECHO_T}no" >&6; }
13903 fi
13906 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
13907 set dummy arm-elf-gcc; ac_word=$2
13908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13910 if test "${ac_cv_path_ARMCC+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913 case $ARMCC in
13914 [\\/]* | ?:[\\/]*)
13915 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
13916 ;;
13917 *)
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13920 do
13921 IFS=$as_save_IFS
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13925 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
13926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13927 break 2
13928 fi
13929 done
13930 done
13931 IFS=$as_save_IFS
13933 ;;
13934 esac
13935 fi
13936 ARMCC=$ac_cv_path_ARMCC
13937 if test -n "$ARMCC"; then
13938 { echo "$as_me:$LINENO: result: $ARMCC" >&5
13939 echo "${ECHO_T}$ARMCC" >&6; }
13940 else
13941 { echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6; }
13943 fi
13946 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
13947 set dummy arm-elf-ld; ac_word=$2
13948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13950 if test "${ac_cv_path_ARMLD+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953 case $ARMLD in
13954 [\\/]* | ?:[\\/]*)
13955 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
13956 ;;
13957 *)
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13960 do
13961 IFS=$as_save_IFS
13962 test -z "$as_dir" && as_dir=.
13963 for ac_exec_ext in '' $ac_executable_extensions; do
13964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13965 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
13966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13967 break 2
13968 fi
13969 done
13970 done
13971 IFS=$as_save_IFS
13973 ;;
13974 esac
13975 fi
13976 ARMLD=$ac_cv_path_ARMLD
13977 if test -n "$ARMLD"; then
13978 { echo "$as_me:$LINENO: result: $ARMLD" >&5
13979 echo "${ECHO_T}$ARMLD" >&6; }
13980 else
13981 { echo "$as_me:$LINENO: result: no" >&5
13982 echo "${ECHO_T}no" >&6; }
13983 fi
13986 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
13987 set dummy arm-elf-objcopy; ac_word=$2
13988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13990 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993 case $ARMOBJCOPY in
13994 [\\/]* | ?:[\\/]*)
13995 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
13996 ;;
13997 *)
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001 IFS=$as_save_IFS
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14005 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
14006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14007 break 2
14008 fi
14009 done
14010 done
14011 IFS=$as_save_IFS
14013 ;;
14014 esac
14015 fi
14016 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
14017 if test -n "$ARMOBJCOPY"; then
14018 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
14019 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
14020 else
14021 { echo "$as_me:$LINENO: result: no" >&5
14022 echo "${ECHO_T}no" >&6; }
14023 fi
14027 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
14028 BUILD_SH="no"
14029 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
14030 else
14031 BUILD_SH="yes"
14032 fi
14033 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
14034 BUILD_ARM="no"
14035 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
14036 else
14037 BUILD_ARM="yes"
14038 fi
14041 if test "$BUILD_SH" = "yes"; then
14042 BUILD_SYSTEST_TRUE=
14043 BUILD_SYSTEST_FALSE='#'
14044 else
14045 BUILD_SYSTEST_TRUE='#'
14046 BUILD_SYSTEST_FALSE=
14047 fi
14051 if test "$BUILD_ARM" = "yes"; then
14052 BUILD_ARMTEST_TRUE=
14053 BUILD_ARMTEST_FALSE='#'
14054 else
14055 BUILD_ARMTEST_TRUE='#'
14056 BUILD_ARMTEST_FALSE=
14057 fi
14060 CFLAGS="$CFLAGS $STDCFLAG"
14062 GETTEXT_PACKAGE=lxdream
14063 LXDREAM_LIBS="$LIBS"
14064 LIBS=""
14068 cat >>confdefs.h <<_ACEOF
14069 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14070 _ACEOF
14073 ALL_LINGUAS="de es it nl pt_BR"
14076 for ac_header in locale.h
14077 do
14078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 fi
14085 ac_res=`eval echo '${'$as_ac_Header'}'`
14086 { echo "$as_me:$LINENO: result: $ac_res" >&5
14087 echo "${ECHO_T}$ac_res" >&6; }
14088 else
14089 # Is the header compilable?
14090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14092 cat >conftest.$ac_ext <<_ACEOF
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 $ac_includes_default
14099 #include <$ac_header>
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (ac_try="$ac_compile"
14103 case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_compile") 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest.$ac_objext; then
14118 ac_header_compiler=yes
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_header_compiler=no
14124 fi
14126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14128 echo "${ECHO_T}$ac_header_compiler" >&6; }
14130 # Is the header present?
14131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <$ac_header>
14140 _ACEOF
14141 if { (ac_try="$ac_cpp conftest.$ac_ext"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } >/dev/null && {
14154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 }; then
14157 ac_header_preproc=yes
14158 else
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_header_preproc=no
14163 fi
14165 rm -f conftest.err conftest.$ac_ext
14166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14167 echo "${ECHO_T}$ac_header_preproc" >&6; }
14169 # So? What about this header?
14170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14171 yes:no: )
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14176 ac_header_preproc=yes
14177 ;;
14178 no:yes:* )
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14192 ;;
14193 esac
14194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 eval "$as_ac_Header=\$ac_header_preproc"
14200 fi
14201 ac_res=`eval echo '${'$as_ac_Header'}'`
14202 { echo "$as_me:$LINENO: result: $ac_res" >&5
14203 echo "${ECHO_T}$ac_res" >&6; }
14205 fi
14206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 _ACEOF
14211 fi
14213 done
14215 if test $ac_cv_header_locale_h = yes; then
14216 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14217 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14218 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 #include <locale.h>
14228 int
14229 main ()
14230 {
14231 return LC_MESSAGES
14232 ;
14233 return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (ac_try="$ac_link"
14238 case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_link") 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } && {
14250 test -z "$ac_c_werror_flag" ||
14251 test ! -s conftest.err
14252 } && test -s conftest$ac_exeext &&
14253 $as_test_x conftest$ac_exeext; then
14254 am_cv_val_LC_MESSAGES=yes
14255 else
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 am_cv_val_LC_MESSAGES=no
14260 fi
14262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14263 conftest$ac_exeext conftest.$ac_ext
14264 fi
14265 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14266 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14267 if test $am_cv_val_LC_MESSAGES = yes; then
14269 cat >>confdefs.h <<\_ACEOF
14270 #define HAVE_LC_MESSAGES 1
14271 _ACEOF
14273 fi
14274 fi
14275 USE_NLS=yes
14278 gt_cv_have_gettext=no
14280 CATOBJEXT=NONE
14281 XGETTEXT=:
14282 INTLLIBS=
14284 if test "${ac_cv_header_libintl_h+set}" = set; then
14285 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14286 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14287 if test "${ac_cv_header_libintl_h+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 fi
14290 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14291 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14292 else
14293 # Is the header compilable?
14294 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14295 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h. */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 $ac_includes_default
14303 #include <libintl.h>
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_compile") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && {
14319 test -z "$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 } && test -s conftest.$ac_objext; then
14322 ac_header_compiler=yes
14323 else
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_header_compiler=no
14328 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332 echo "${ECHO_T}$ac_header_compiler" >&6; }
14334 # Is the header present?
14335 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14336 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <libintl.h>
14344 _ACEOF
14345 if { (ac_try="$ac_cpp conftest.$ac_ext"
14346 case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14349 esac
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14352 ac_status=$?
14353 grep -v '^ *+' conftest.er1 >conftest.err
14354 rm -f conftest.er1
14355 cat conftest.err >&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } >/dev/null && {
14358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14359 test ! -s conftest.err
14360 }; then
14361 ac_header_preproc=yes
14362 else
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_header_preproc=no
14367 fi
14369 rm -f conftest.err conftest.$ac_ext
14370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14371 echo "${ECHO_T}$ac_header_preproc" >&6; }
14373 # So? What about this header?
14374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14375 yes:no: )
14376 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14377 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14379 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14380 ac_header_preproc=yes
14381 ;;
14382 no:yes:* )
14383 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14384 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14386 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14388 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14390 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14392 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14394 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14396 ;;
14397 esac
14398 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14399 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14400 if test "${ac_cv_header_libintl_h+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403 ac_cv_header_libintl_h=$ac_header_preproc
14404 fi
14405 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14406 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14408 fi
14409 if test $ac_cv_header_libintl_h = yes; then
14410 gt_cv_func_dgettext_libintl="no"
14411 libintl_extra_libs=""
14413 #
14414 # First check in libc
14415 #
14416 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14417 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14418 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14428 #include <libintl.h>
14430 int
14431 main ()
14432 {
14433 return !ngettext ("","", 1)
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (ac_try="$ac_link"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_link") 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } && {
14452 test -z "$ac_c_werror_flag" ||
14453 test ! -s conftest.err
14454 } && test -s conftest$ac_exeext &&
14455 $as_test_x conftest$ac_exeext; then
14456 gt_cv_func_ngettext_libc=yes
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 gt_cv_func_ngettext_libc=no
14462 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14465 conftest$ac_exeext conftest.$ac_ext
14467 fi
14468 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14469 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14471 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14472 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14473 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14474 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h. */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14484 #include <libintl.h>
14486 int
14487 main ()
14488 {
14489 return !dgettext ("","")
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest$ac_exeext &&
14511 $as_test_x conftest$ac_exeext; then
14512 gt_cv_func_dgettext_libc=yes
14513 else
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 gt_cv_func_dgettext_libc=no
14518 fi
14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521 conftest$ac_exeext conftest.$ac_ext
14523 fi
14524 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14525 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14526 fi
14528 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14530 for ac_func in bind_textdomain_codeset
14531 do
14532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14546 #define $ac_func innocuous_$ac_func
14548 /* System header to define __stub macros and hopefully few prototypes,
14549 which can conflict with char $ac_func (); below.
14550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14551 <limits.h> exists even on freestanding compilers. */
14553 #ifdef __STDC__
14554 # include <limits.h>
14555 #else
14556 # include <assert.h>
14557 #endif
14559 #undef $ac_func
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char $ac_func ();
14568 /* The GNU C library defines this for functions which it implements
14569 to always fail with ENOSYS. Some functions are actually named
14570 something starting with __ and the normal name is an alias. */
14571 #if defined __stub_$ac_func || defined __stub___$ac_func
14572 choke me
14573 #endif
14575 int
14576 main ()
14577 {
14578 return $ac_func ();
14579 ;
14580 return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext conftest$ac_exeext
14584 if { (ac_try="$ac_link"
14585 case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_link") 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } && {
14597 test -z "$ac_c_werror_flag" ||
14598 test ! -s conftest.err
14599 } && test -s conftest$ac_exeext &&
14600 $as_test_x conftest$ac_exeext; then
14601 eval "$as_ac_var=yes"
14602 else
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14606 eval "$as_ac_var=no"
14607 fi
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14611 fi
14612 ac_res=`eval echo '${'$as_ac_var'}'`
14613 { echo "$as_me:$LINENO: result: $ac_res" >&5
14614 echo "${ECHO_T}$ac_res" >&6; }
14615 if test `eval echo '${'$as_ac_var'}'` = yes; then
14616 cat >>confdefs.h <<_ACEOF
14617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14618 _ACEOF
14620 fi
14621 done
14623 fi
14625 #
14626 # If we don't have everything we want, check in libintl
14627 #
14628 if test "$gt_cv_func_dgettext_libc" != "yes" \
14629 || test "$gt_cv_func_ngettext_libc" != "yes" \
14630 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14632 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14633 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14634 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637 ac_check_lib_save_LIBS=$LIBS
14638 LIBS="-lintl $LIBS"
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h. */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14646 /* Override any GCC internal prototype to avoid an error.
14647 Use char because int might match the return type of a GCC
14648 builtin and then its argument prototype would still apply. */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 char bindtextdomain ();
14653 int
14654 main ()
14655 {
14656 return bindtextdomain ();
14657 ;
14658 return 0;
14659 }
14660 _ACEOF
14661 rm -f conftest.$ac_objext conftest$ac_exeext
14662 if { (ac_try="$ac_link"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_link") 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && {
14675 test -z "$ac_c_werror_flag" ||
14676 test ! -s conftest.err
14677 } && test -s conftest$ac_exeext &&
14678 $as_test_x conftest$ac_exeext; then
14679 ac_cv_lib_intl_bindtextdomain=yes
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 ac_cv_lib_intl_bindtextdomain=no
14685 fi
14687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14688 conftest$ac_exeext conftest.$ac_ext
14689 LIBS=$ac_check_lib_save_LIBS
14690 fi
14691 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14692 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14693 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14694 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14695 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14696 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lintl $LIBS"
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char ngettext ();
14715 int
14716 main ()
14717 {
14718 return ngettext ();
14719 ;
14720 return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest$ac_exeext &&
14740 $as_test_x conftest$ac_exeext; then
14741 ac_cv_lib_intl_ngettext=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_intl_ngettext=no
14747 fi
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14752 fi
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14754 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14755 if test $ac_cv_lib_intl_ngettext = yes; then
14756 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14757 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
14758 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761 ac_check_lib_save_LIBS=$LIBS
14762 LIBS="-lintl $LIBS"
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14770 /* Override any GCC internal prototype to avoid an error.
14771 Use char because int might match the return type of a GCC
14772 builtin and then its argument prototype would still apply. */
14773 #ifdef __cplusplus
14774 extern "C"
14775 #endif
14776 char dgettext ();
14777 int
14778 main ()
14779 {
14780 return dgettext ();
14781 ;
14782 return 0;
14783 }
14784 _ACEOF
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (ac_try="$ac_link"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_link") 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && {
14799 test -z "$ac_c_werror_flag" ||
14800 test ! -s conftest.err
14801 } && test -s conftest$ac_exeext &&
14802 $as_test_x conftest$ac_exeext; then
14803 ac_cv_lib_intl_dgettext=yes
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_cv_lib_intl_dgettext=no
14809 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14812 conftest$ac_exeext conftest.$ac_ext
14813 LIBS=$ac_check_lib_save_LIBS
14814 fi
14815 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14816 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
14817 if test $ac_cv_lib_intl_dgettext = yes; then
14818 gt_cv_func_dgettext_libintl=yes
14819 fi
14821 fi
14823 fi
14826 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
14827 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
14828 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
14829 { echo "$as_me:$LINENO: result: " >&5
14830 echo "${ECHO_T}" >&6; }
14831 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14832 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14833 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 ac_check_lib_save_LIBS=$LIBS
14837 LIBS="-lintl -liconv $LIBS"
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14845 /* Override any GCC internal prototype to avoid an error.
14846 Use char because int might match the return type of a GCC
14847 builtin and then its argument prototype would still apply. */
14848 #ifdef __cplusplus
14849 extern "C"
14850 #endif
14851 char ngettext ();
14852 int
14853 main ()
14854 {
14855 return ngettext ();
14856 ;
14857 return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (ac_try="$ac_link"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_link") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } && {
14874 test -z "$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14876 } && test -s conftest$ac_exeext &&
14877 $as_test_x conftest$ac_exeext; then
14878 ac_cv_lib_intl_ngettext=yes
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_cv_lib_intl_ngettext=no
14884 fi
14886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14887 conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14889 fi
14890 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14891 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14892 if test $ac_cv_lib_intl_ngettext = yes; then
14893 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
14894 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
14895 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 ac_check_lib_save_LIBS=$LIBS
14899 LIBS="-lintl -liconv $LIBS"
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14907 /* Override any GCC internal prototype to avoid an error.
14908 Use char because int might match the return type of a GCC
14909 builtin and then its argument prototype would still apply. */
14910 #ifdef __cplusplus
14911 extern "C"
14912 #endif
14913 char dcgettext ();
14914 int
14915 main ()
14916 {
14917 return dcgettext ();
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (ac_try="$ac_link"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_link") 2>conftest.er1
14930 ac_status=$?
14931 grep -v '^ *+' conftest.er1 >conftest.err
14932 rm -f conftest.er1
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest$ac_exeext &&
14939 $as_test_x conftest$ac_exeext; then
14940 ac_cv_lib_intl_dcgettext=yes
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_cv_lib_intl_dcgettext=no
14946 fi
14948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14951 fi
14952 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
14953 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
14954 if test $ac_cv_lib_intl_dcgettext = yes; then
14955 gt_cv_func_dgettext_libintl=yes
14956 libintl_extra_libs=-liconv
14957 else
14958 :
14959 fi
14961 else
14962 :
14963 fi
14965 fi
14967 #
14968 # If we found libintl, then check in it for bind_textdomain_codeset();
14969 # we'll prefer libc if neither have bind_textdomain_codeset(),
14970 # and both have dgettext and ngettext
14971 #
14972 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14973 glib_save_LIBS="$LIBS"
14974 LIBS="$LIBS -lintl $libintl_extra_libs"
14975 unset ac_cv_func_bind_textdomain_codeset
14977 for ac_func in bind_textdomain_codeset
14978 do
14979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985 cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h. */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14993 #define $ac_func innocuous_$ac_func
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char $ac_func (); below.
14997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998 <limits.h> exists even on freestanding compilers. */
15000 #ifdef __STDC__
15001 # include <limits.h>
15002 #else
15003 # include <assert.h>
15004 #endif
15006 #undef $ac_func
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15011 #ifdef __cplusplus
15012 extern "C"
15013 #endif
15014 char $ac_func ();
15015 /* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018 #if defined __stub_$ac_func || defined __stub___$ac_func
15019 choke me
15020 #endif
15022 int
15023 main ()
15024 {
15025 return $ac_func ();
15026 ;
15027 return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15038 ac_status=$?
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest$ac_exeext &&
15047 $as_test_x conftest$ac_exeext; then
15048 eval "$as_ac_var=yes"
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 eval "$as_ac_var=no"
15054 fi
15056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15057 conftest$ac_exeext conftest.$ac_ext
15058 fi
15059 ac_res=`eval echo '${'$as_ac_var'}'`
15060 { echo "$as_me:$LINENO: result: $ac_res" >&5
15061 echo "${ECHO_T}$ac_res" >&6; }
15062 if test `eval echo '${'$as_ac_var'}'` = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15065 _ACEOF
15067 fi
15068 done
15070 LIBS="$glib_save_LIBS"
15072 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
15073 gt_cv_func_dgettext_libc=no
15074 else
15075 if test "$gt_cv_func_dgettext_libc" = "yes" \
15076 && test "$gt_cv_func_ngettext_libc" = "yes"; then
15077 gt_cv_func_dgettext_libintl=no
15078 fi
15079 fi
15080 fi
15081 fi
15083 if test "$gt_cv_func_dgettext_libc" = "yes" \
15084 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
15085 gt_cv_have_gettext=yes
15086 fi
15088 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15089 INTLLIBS="-lintl $libintl_extra_libs"
15090 fi
15092 if test "$gt_cv_have_gettext" = "yes"; then
15094 cat >>confdefs.h <<\_ACEOF
15095 #define HAVE_GETTEXT 1
15096 _ACEOF
15098 # Extract the first word of "msgfmt", so it can be a program name with args.
15099 set dummy msgfmt; ac_word=$2
15100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15102 if test "${ac_cv_path_MSGFMT+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105 case "$MSGFMT" in
15106 /*)
15107 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15108 ;;
15109 *)
15110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15111 for ac_dir in $PATH; do
15112 test -z "$ac_dir" && ac_dir=.
15113 if test -f $ac_dir/$ac_word; then
15114 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15115 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15116 break
15117 fi
15118 fi
15119 done
15120 IFS="$ac_save_ifs"
15121 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15122 ;;
15123 esac
15124 fi
15125 MSGFMT="$ac_cv_path_MSGFMT"
15126 if test "$MSGFMT" != "no"; then
15127 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15128 echo "${ECHO_T}$MSGFMT" >&6; }
15129 else
15130 { echo "$as_me:$LINENO: result: no" >&5
15131 echo "${ECHO_T}no" >&6; }
15132 fi
15133 if test "$MSGFMT" != "no"; then
15134 glib_save_LIBS="$LIBS"
15135 LIBS="$LIBS $INTLLIBS"
15137 for ac_func in dcgettext
15138 do
15139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h. */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15153 #define $ac_func innocuous_$ac_func
15155 /* System header to define __stub macros and hopefully few prototypes,
15156 which can conflict with char $ac_func (); below.
15157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15158 <limits.h> exists even on freestanding compilers. */
15160 #ifdef __STDC__
15161 # include <limits.h>
15162 #else
15163 # include <assert.h>
15164 #endif
15166 #undef $ac_func
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15171 #ifdef __cplusplus
15172 extern "C"
15173 #endif
15174 char $ac_func ();
15175 /* The GNU C library defines this for functions which it implements
15176 to always fail with ENOSYS. Some functions are actually named
15177 something starting with __ and the normal name is an alias. */
15178 #if defined __stub_$ac_func || defined __stub___$ac_func
15179 choke me
15180 #endif
15182 int
15183 main ()
15184 {
15185 return $ac_func ();
15186 ;
15187 return 0;
15188 }
15189 _ACEOF
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (ac_try="$ac_link"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15195 esac
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_link") 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } && {
15204 test -z "$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 } && test -s conftest$ac_exeext &&
15207 $as_test_x conftest$ac_exeext; then
15208 eval "$as_ac_var=yes"
15209 else
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 eval "$as_ac_var=no"
15214 fi
15216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15217 conftest$ac_exeext conftest.$ac_ext
15218 fi
15219 ac_res=`eval echo '${'$as_ac_var'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_var'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15225 _ACEOF
15227 fi
15228 done
15230 MSGFMT_OPTS=
15231 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15232 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15233 cat >conftest.foo <<_ACEOF
15235 msgid ""
15236 msgstr ""
15237 "Content-Type: text/plain; charset=UTF-8\n"
15238 "Project-Id-Version: test 1.0\n"
15239 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15240 "Last-Translator: test <foo@bar.xx>\n"
15241 "Language-Team: C <LL@li.org>\n"
15242 "MIME-Version: 1.0\n"
15243 "Content-Transfer-Encoding: 8bit\n"
15245 _ACEOF
15246 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15247 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; then
15251 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15252 echo "${ECHO_T}yes" >&6; }
15253 else { echo "$as_me:$LINENO: result: no" >&5
15254 echo "${ECHO_T}no" >&6; }
15255 echo "$as_me: failed input was:" >&5
15256 sed 's/^/| /' conftest.foo >&5
15257 fi
15259 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15260 set dummy gmsgfmt; ac_word=$2
15261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15263 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266 case $GMSGFMT in
15267 [\\/]* | ?:[\\/]*)
15268 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15269 ;;
15270 *)
15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $PATH
15273 do
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
15276 for ac_exec_ext in '' $ac_executable_extensions; do
15277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15278 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15280 break 2
15281 fi
15282 done
15283 done
15284 IFS=$as_save_IFS
15286 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15287 ;;
15288 esac
15289 fi
15290 GMSGFMT=$ac_cv_path_GMSGFMT
15291 if test -n "$GMSGFMT"; then
15292 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15293 echo "${ECHO_T}$GMSGFMT" >&6; }
15294 else
15295 { echo "$as_me:$LINENO: result: no" >&5
15296 echo "${ECHO_T}no" >&6; }
15297 fi
15300 # Extract the first word of "xgettext", so it can be a program name with args.
15301 set dummy xgettext; ac_word=$2
15302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15304 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307 case "$XGETTEXT" in
15308 /*)
15309 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15310 ;;
15311 *)
15312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15313 for ac_dir in $PATH; do
15314 test -z "$ac_dir" && ac_dir=.
15315 if test -f $ac_dir/$ac_word; then
15316 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15317 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15318 break
15319 fi
15320 fi
15321 done
15322 IFS="$ac_save_ifs"
15323 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15324 ;;
15325 esac
15326 fi
15327 XGETTEXT="$ac_cv_path_XGETTEXT"
15328 if test "$XGETTEXT" != ":"; then
15329 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15330 echo "${ECHO_T}$XGETTEXT" >&6; }
15331 else
15332 { echo "$as_me:$LINENO: result: no" >&5
15333 echo "${ECHO_T}no" >&6; }
15334 fi
15336 cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h. */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15343 int
15344 main ()
15345 {
15346 extern int _nl_msg_cat_cntr;
15347 return _nl_msg_cat_cntr
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext &&
15369 $as_test_x conftest$ac_exeext; then
15370 CATOBJEXT=.gmo
15371 DATADIRNAME=share
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 case $host in
15377 *-*-solaris*)
15378 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15379 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15380 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15391 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15393 /* System header to define __stub macros and hopefully few prototypes,
15394 which can conflict with char bind_textdomain_codeset (); below.
15395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15396 <limits.h> exists even on freestanding compilers. */
15398 #ifdef __STDC__
15399 # include <limits.h>
15400 #else
15401 # include <assert.h>
15402 #endif
15404 #undef bind_textdomain_codeset
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409 #ifdef __cplusplus
15410 extern "C"
15411 #endif
15412 char bind_textdomain_codeset ();
15413 /* The GNU C library defines this for functions which it implements
15414 to always fail with ENOSYS. Some functions are actually named
15415 something starting with __ and the normal name is an alias. */
15416 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15417 choke me
15418 #endif
15420 int
15421 main ()
15422 {
15423 return bind_textdomain_codeset ();
15424 ;
15425 return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (ac_try="$ac_link"
15430 case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_link") 2>conftest.er1
15436 ac_status=$?
15437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } && {
15442 test -z "$ac_c_werror_flag" ||
15443 test ! -s conftest.err
15444 } && test -s conftest$ac_exeext &&
15445 $as_test_x conftest$ac_exeext; then
15446 ac_cv_func_bind_textdomain_codeset=yes
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 ac_cv_func_bind_textdomain_codeset=no
15452 fi
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455 conftest$ac_exeext conftest.$ac_ext
15456 fi
15457 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15458 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15459 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15460 CATOBJEXT=.gmo
15461 DATADIRNAME=share
15462 else
15463 CATOBJEXT=.mo
15464 DATADIRNAME=lib
15465 fi
15467 ;;
15468 *)
15469 CATOBJEXT=.mo
15470 DATADIRNAME=lib
15471 ;;
15472 esac
15473 fi
15475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15476 conftest$ac_exeext conftest.$ac_ext
15477 LIBS="$glib_save_LIBS"
15478 INSTOBJEXT=.mo
15479 else
15480 gt_cv_have_gettext=no
15481 fi
15482 fi
15484 fi
15488 if test "$gt_cv_have_gettext" = "yes" ; then
15490 cat >>confdefs.h <<\_ACEOF
15491 #define ENABLE_NLS 1
15492 _ACEOF
15494 fi
15496 if test "$XGETTEXT" != ":"; then
15497 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15498 : ;
15499 else
15500 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15501 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15502 XGETTEXT=":"
15503 fi
15504 fi
15506 # We need to process the po/ directory.
15507 POSUB=po
15509 ac_config_commands="$ac_config_commands default-1"
15512 for lang in $ALL_LINGUAS; do
15513 GMOFILES="$GMOFILES $lang.gmo"
15514 POFILES="$POFILES $lang.po"
15515 done
15529 if test "$gt_cv_have_gettext" = "yes"; then
15530 if test "x$ALL_LINGUAS" = "x"; then
15531 LINGUAS=
15532 else
15533 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15534 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15535 NEW_LINGUAS=
15536 for presentlang in $ALL_LINGUAS; do
15537 useit=no
15538 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15539 desiredlanguages="$LINGUAS"
15540 else
15541 desiredlanguages="$ALL_LINGUAS"
15542 fi
15543 for desiredlang in $desiredlanguages; do
15544 # Use the presentlang catalog if desiredlang is
15545 # a. equal to presentlang, or
15546 # b. a variant of presentlang (because in this case,
15547 # presentlang can be used as a fallback for messages
15548 # which are not translated in the desiredlang catalog).
15549 case "$desiredlang" in
15550 "$presentlang"*) useit=yes;;
15551 esac
15552 done
15553 if test $useit = yes; then
15554 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15555 fi
15556 done
15557 LINGUAS=$NEW_LINGUAS
15558 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15559 echo "${ECHO_T}$LINGUAS" >&6; }
15560 fi
15562 if test -n "$LINGUAS"; then
15563 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15564 fi
15565 fi
15567 MKINSTALLDIRS=
15568 if test -n "$ac_aux_dir"; then
15569 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15570 fi
15571 if test -z "$MKINSTALLDIRS"; then
15572 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15573 fi
15576 test -d po || mkdir po
15577 if test "x$srcdir" != "x."; then
15578 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15579 posrcprefix="$srcdir/"
15580 else
15581 posrcprefix="../$srcdir/"
15582 fi
15583 else
15584 posrcprefix="../"
15585 fi
15586 rm -f po/POTFILES
15587 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15588 < $srcdir/po/POTFILES.in > po/POTFILES
15591 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15593 cat >confcache <<\_ACEOF
15594 # This file is a shell script that caches the results of configure
15595 # tests run on this system so they can be shared between configure
15596 # scripts and configure runs, see configure's option --config-cache.
15597 # It is not useful on other systems. If it contains results you don't
15598 # want to keep, you may remove or edit it.
15599 #
15600 # config.status only pays attention to the cache file if you give it
15601 # the --recheck option to rerun configure.
15602 #
15603 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15605 # following values.
15607 _ACEOF
15609 # The following way of writing the cache mishandles newlines in values,
15610 # but we know of no workaround that is simple, portable, and efficient.
15611 # So, we kill variables containing newlines.
15612 # Ultrix sh set writes to stderr and can't be redirected directly,
15613 # and sets the high bit in the cache file unless we assign to the vars.
15614 (
15615 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15616 eval ac_val=\$$ac_var
15617 case $ac_val in #(
15618 *${as_nl}*)
15619 case $ac_var in #(
15620 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15621 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15622 esac
15623 case $ac_var in #(
15624 _ | IFS | as_nl) ;; #(
15625 *) $as_unset $ac_var ;;
15626 esac ;;
15627 esac
15628 done
15630 (set) 2>&1 |
15631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15632 *${as_nl}ac_space=\ *)
15633 # `set' does not quote correctly, so add quotes (double-quote
15634 # substitution turns \\\\ into \\, and sed turns \\ into \).
15635 sed -n \
15636 "s/'/'\\\\''/g;
15637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15638 ;; #(
15639 *)
15640 # `set' quotes correctly as required by POSIX, so do not add quotes.
15641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15642 ;;
15643 esac |
15644 sort
15645 ) |
15646 sed '
15647 /^ac_cv_env_/b end
15648 t clear
15649 :clear
15650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15651 t end
15652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15653 :end' >>confcache
15654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15655 if test -w "$cache_file"; then
15656 test "x$cache_file" != "x/dev/null" &&
15657 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15658 echo "$as_me: updating cache $cache_file" >&6;}
15659 cat confcache >$cache_file
15660 else
15661 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15662 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15663 fi
15664 fi
15665 rm -f confcache
15667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15668 # Let make expand exec_prefix.
15669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15671 DEFS=-DHAVE_CONFIG_H
15673 ac_libobjs=
15674 ac_ltlibobjs=
15675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15676 # 1. Remove the extension, and $U if already installed.
15677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15678 ac_i=`echo "$ac_i" | sed "$ac_script"`
15679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15680 # will be set to the directory where LIBOBJS objects are built.
15681 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15682 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15683 done
15684 LIBOBJS=$ac_libobjs
15686 LTLIBOBJS=$ac_ltlibobjs
15689 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15690 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15691 Usually this means the macro was only invoked conditionally." >&5
15692 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15693 Usually this means the macro was only invoked conditionally." >&2;}
15694 { (exit 1); exit 1; }; }
15695 fi
15696 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15697 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15698 Usually this means the macro was only invoked conditionally." >&5
15699 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15700 Usually this means the macro was only invoked conditionally." >&2;}
15701 { (exit 1); exit 1; }; }
15702 fi
15703 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15704 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15705 Usually this means the macro was only invoked conditionally." >&5
15706 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15707 Usually this means the macro was only invoked conditionally." >&2;}
15708 { (exit 1); exit 1; }; }
15709 fi
15710 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15711 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15712 Usually this means the macro was only invoked conditionally." >&5
15713 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15714 Usually this means the macro was only invoked conditionally." >&2;}
15715 { (exit 1); exit 1; }; }
15716 fi
15717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15718 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15719 Usually this means the macro was only invoked conditionally." >&5
15720 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15721 Usually this means the macro was only invoked conditionally." >&2;}
15722 { (exit 1); exit 1; }; }
15723 fi
15724 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
15725 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15726 Usually this means the macro was only invoked conditionally." >&5
15727 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15728 Usually this means the macro was only invoked conditionally." >&2;}
15729 { (exit 1); exit 1; }; }
15730 fi
15731 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
15732 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
15733 Usually this means the macro was only invoked conditionally." >&5
15734 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
15735 Usually this means the macro was only invoked conditionally." >&2;}
15736 { (exit 1); exit 1; }; }
15737 fi
15738 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
15739 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
15740 Usually this means the macro was only invoked conditionally." >&5
15741 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
15742 Usually this means the macro was only invoked conditionally." >&2;}
15743 { (exit 1); exit 1; }; }
15744 fi
15745 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
15746 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
15747 Usually this means the macro was only invoked conditionally." >&5
15748 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
15749 Usually this means the macro was only invoked conditionally." >&2;}
15750 { (exit 1); exit 1; }; }
15751 fi
15752 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
15753 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
15754 Usually this means the macro was only invoked conditionally." >&5
15755 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
15756 Usually this means the macro was only invoked conditionally." >&2;}
15757 { (exit 1); exit 1; }; }
15758 fi
15759 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
15760 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
15761 Usually this means the macro was only invoked conditionally." >&5
15762 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
15763 Usually this means the macro was only invoked conditionally." >&2;}
15764 { (exit 1); exit 1; }; }
15765 fi
15766 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
15767 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
15768 Usually this means the macro was only invoked conditionally." >&5
15769 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
15770 Usually this means the macro was only invoked conditionally." >&2;}
15771 { (exit 1); exit 1; }; }
15772 fi
15773 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
15774 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
15775 Usually this means the macro was only invoked conditionally." >&5
15776 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
15777 Usually this means the macro was only invoked conditionally." >&2;}
15778 { (exit 1); exit 1; }; }
15779 fi
15780 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
15781 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
15782 Usually this means the macro was only invoked conditionally." >&5
15783 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
15784 Usually this means the macro was only invoked conditionally." >&2;}
15785 { (exit 1); exit 1; }; }
15786 fi
15787 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
15788 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
15789 Usually this means the macro was only invoked conditionally." >&5
15790 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
15791 Usually this means the macro was only invoked conditionally." >&2;}
15792 { (exit 1); exit 1; }; }
15793 fi
15794 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
15795 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
15796 Usually this means the macro was only invoked conditionally." >&5
15797 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
15798 Usually this means the macro was only invoked conditionally." >&2;}
15799 { (exit 1); exit 1; }; }
15800 fi
15801 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
15802 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
15803 Usually this means the macro was only invoked conditionally." >&5
15804 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
15805 Usually this means the macro was only invoked conditionally." >&2;}
15806 { (exit 1); exit 1; }; }
15807 fi
15808 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
15809 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
15810 Usually this means the macro was only invoked conditionally." >&5
15811 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
15812 Usually this means the macro was only invoked conditionally." >&2;}
15813 { (exit 1); exit 1; }; }
15814 fi
15815 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
15816 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
15817 Usually this means the macro was only invoked conditionally." >&5
15818 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
15819 Usually this means the macro was only invoked conditionally." >&2;}
15820 { (exit 1); exit 1; }; }
15821 fi
15822 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
15823 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
15824 Usually this means the macro was only invoked conditionally." >&5
15825 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
15826 Usually this means the macro was only invoked conditionally." >&2;}
15827 { (exit 1); exit 1; }; }
15828 fi
15829 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
15830 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
15831 Usually this means the macro was only invoked conditionally." >&5
15832 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
15833 Usually this means the macro was only invoked conditionally." >&2;}
15834 { (exit 1); exit 1; }; }
15835 fi
15836 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
15837 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
15838 Usually this means the macro was only invoked conditionally." >&5
15839 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
15840 Usually this means the macro was only invoked conditionally." >&2;}
15841 { (exit 1); exit 1; }; }
15842 fi
15843 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
15844 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
15845 Usually this means the macro was only invoked conditionally." >&5
15846 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
15847 Usually this means the macro was only invoked conditionally." >&2;}
15848 { (exit 1); exit 1; }; }
15849 fi
15850 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
15851 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
15852 Usually this means the macro was only invoked conditionally." >&5
15853 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
15854 Usually this means the macro was only invoked conditionally." >&2;}
15855 { (exit 1); exit 1; }; }
15856 fi
15857 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
15858 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
15859 Usually this means the macro was only invoked conditionally." >&5
15860 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
15861 Usually this means the macro was only invoked conditionally." >&2;}
15862 { (exit 1); exit 1; }; }
15863 fi
15864 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
15865 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
15866 Usually this means the macro was only invoked conditionally." >&5
15867 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
15868 Usually this means the macro was only invoked conditionally." >&2;}
15869 { (exit 1); exit 1; }; }
15870 fi
15872 : ${CONFIG_STATUS=./config.status}
15873 ac_clean_files_save=$ac_clean_files
15874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15875 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15876 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15877 cat >$CONFIG_STATUS <<_ACEOF
15878 #! $SHELL
15879 # Generated by $as_me.
15880 # Run this file to recreate the current configuration.
15881 # Compiler output produced by configure, useful for debugging
15882 # configure, is in config.log if it exists.
15884 debug=false
15885 ac_cs_recheck=false
15886 ac_cs_silent=false
15887 SHELL=\${CONFIG_SHELL-$SHELL}
15888 _ACEOF
15890 cat >>$CONFIG_STATUS <<\_ACEOF
15891 ## --------------------- ##
15892 ## M4sh Initialization. ##
15893 ## --------------------- ##
15895 # Be more Bourne compatible
15896 DUALCASE=1; export DUALCASE # for MKS sh
15897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15898 emulate sh
15899 NULLCMD=:
15900 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15901 # is contrary to our usage. Disable this feature.
15902 alias -g '${1+"$@"}'='"$@"'
15903 setopt NO_GLOB_SUBST
15904 else
15905 case `(set -o) 2>/dev/null` in
15906 *posix*) set -o posix ;;
15907 esac
15909 fi
15914 # PATH needs CR
15915 # Avoid depending upon Character Ranges.
15916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15919 as_cr_digits='0123456789'
15920 as_cr_alnum=$as_cr_Letters$as_cr_digits
15922 # The user is always right.
15923 if test "${PATH_SEPARATOR+set}" != set; then
15924 echo "#! /bin/sh" >conf$$.sh
15925 echo "exit 0" >>conf$$.sh
15926 chmod +x conf$$.sh
15927 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15928 PATH_SEPARATOR=';'
15929 else
15930 PATH_SEPARATOR=:
15931 fi
15932 rm -f conf$$.sh
15933 fi
15935 # Support unset when possible.
15936 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15937 as_unset=unset
15938 else
15939 as_unset=false
15940 fi
15943 # IFS
15944 # We need space, tab and new line, in precisely that order. Quoting is
15945 # there to prevent editors from complaining about space-tab.
15946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15947 # splitting by setting IFS to empty value.)
15948 as_nl='
15949 '
15950 IFS=" "" $as_nl"
15952 # Find who we are. Look in the path if we contain no directory separator.
15953 case $0 in
15954 *[\\/]* ) as_myself=$0 ;;
15955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15956 for as_dir in $PATH
15957 do
15958 IFS=$as_save_IFS
15959 test -z "$as_dir" && as_dir=.
15960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15961 done
15962 IFS=$as_save_IFS
15964 ;;
15965 esac
15966 # We did not find ourselves, most probably we were run as `sh COMMAND'
15967 # in which case we are not to be found in the path.
15968 if test "x$as_myself" = x; then
15969 as_myself=$0
15970 fi
15971 if test ! -f "$as_myself"; then
15972 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15973 { (exit 1); exit 1; }
15974 fi
15976 # Work around bugs in pre-3.0 UWIN ksh.
15977 for as_var in ENV MAIL MAILPATH
15978 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15979 done
15980 PS1='$ '
15981 PS2='> '
15982 PS4='+ '
15984 # NLS nuisances.
15985 for as_var in \
15986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15988 LC_TELEPHONE LC_TIME
15989 do
15990 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15991 eval $as_var=C; export $as_var
15992 else
15993 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15994 fi
15995 done
15997 # Required to use basename.
15998 if expr a : '\(a\)' >/dev/null 2>&1 &&
15999 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16000 as_expr=expr
16001 else
16002 as_expr=false
16003 fi
16005 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16006 as_basename=basename
16007 else
16008 as_basename=false
16009 fi
16012 # Name of the executable.
16013 as_me=`$as_basename -- "$0" ||
16014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16015 X"$0" : 'X\(//\)$' \| \
16016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16017 echo X/"$0" |
16018 sed '/^.*\/\([^/][^/]*\)\/*$/{
16019 s//\1/
16020 q
16021 }
16022 /^X\/\(\/\/\)$/{
16023 s//\1/
16024 q
16025 }
16026 /^X\/\(\/\).*/{
16027 s//\1/
16028 q
16029 }
16030 s/.*/./; q'`
16032 # CDPATH.
16033 $as_unset CDPATH
16037 as_lineno_1=$LINENO
16038 as_lineno_2=$LINENO
16039 test "x$as_lineno_1" != "x$as_lineno_2" &&
16040 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16043 # uniformly replaced by the line number. The first 'sed' inserts a
16044 # line-number line after each line using $LINENO; the second 'sed'
16045 # does the real work. The second script uses 'N' to pair each
16046 # line-number line with the line containing $LINENO, and appends
16047 # trailing '-' during substitution so that $LINENO is not a special
16048 # case at line end.
16049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16050 # scripts with optimization help from Paolo Bonzini. Blame Lee
16051 # E. McMahon (1931-1989) for sed's syntax. :-)
16052 sed -n '
16053 p
16054 /[$]LINENO/=
16055 ' <$as_myself |
16056 sed '
16057 s/[$]LINENO.*/&-/
16058 t lineno
16059 b
16060 :lineno
16061 N
16062 :loop
16063 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16064 t loop
16065 s/-\n.*//
16066 ' >$as_me.lineno &&
16067 chmod +x "$as_me.lineno" ||
16068 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16069 { (exit 1); exit 1; }; }
16071 # Don't try to exec as it changes $[0], causing all sort of problems
16072 # (the dirname of $[0] is not the place where we might find the
16073 # original and so on. Autoconf is especially sensitive to this).
16074 . "./$as_me.lineno"
16075 # Exit status is that of the last command.
16076 exit
16077 }
16080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16081 as_dirname=dirname
16082 else
16083 as_dirname=false
16084 fi
16086 ECHO_C= ECHO_N= ECHO_T=
16087 case `echo -n x` in
16088 -n*)
16089 case `echo 'x\c'` in
16090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16091 *) ECHO_C='\c';;
16092 esac;;
16093 *)
16094 ECHO_N='-n';;
16095 esac
16097 if expr a : '\(a\)' >/dev/null 2>&1 &&
16098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16099 as_expr=expr
16100 else
16101 as_expr=false
16102 fi
16104 rm -f conf$$ conf$$.exe conf$$.file
16105 if test -d conf$$.dir; then
16106 rm -f conf$$.dir/conf$$.file
16107 else
16108 rm -f conf$$.dir
16109 mkdir conf$$.dir
16110 fi
16111 echo >conf$$.file
16112 if ln -s conf$$.file conf$$ 2>/dev/null; then
16113 as_ln_s='ln -s'
16114 # ... but there are two gotchas:
16115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16117 # In both cases, we have to default to `cp -p'.
16118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16119 as_ln_s='cp -p'
16120 elif ln conf$$.file conf$$ 2>/dev/null; then
16121 as_ln_s=ln
16122 else
16123 as_ln_s='cp -p'
16124 fi
16125 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16126 rmdir conf$$.dir 2>/dev/null
16128 if mkdir -p . 2>/dev/null; then
16129 as_mkdir_p=:
16130 else
16131 test -d ./-p && rmdir ./-p
16132 as_mkdir_p=false
16133 fi
16135 if test -x / >/dev/null 2>&1; then
16136 as_test_x='test -x'
16137 else
16138 if ls -dL / >/dev/null 2>&1; then
16139 as_ls_L_option=L
16140 else
16141 as_ls_L_option=
16142 fi
16143 as_test_x='
16144 eval sh -c '\''
16145 if test -d "$1"; then
16146 test -d "$1/.";
16147 else
16148 case $1 in
16149 -*)set "./$1";;
16150 esac;
16151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16152 ???[sx]*):;;*)false;;esac;fi
16153 '\'' sh
16154 '
16155 fi
16156 as_executable_p=$as_test_x
16158 # Sed expression to map a string onto a valid CPP name.
16159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16161 # Sed expression to map a string onto a valid variable name.
16162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16165 exec 6>&1
16167 # Save the log message, to keep $[0] and so on meaningful, and to
16168 # report actual input values of CONFIG_FILES etc. instead of their
16169 # values after options handling.
16170 ac_log="
16171 This file was extended by $as_me, which was
16172 generated by GNU Autoconf 2.61. Invocation command line was
16174 CONFIG_FILES = $CONFIG_FILES
16175 CONFIG_HEADERS = $CONFIG_HEADERS
16176 CONFIG_LINKS = $CONFIG_LINKS
16177 CONFIG_COMMANDS = $CONFIG_COMMANDS
16178 $ $0 $@
16180 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16181 "
16183 _ACEOF
16185 cat >>$CONFIG_STATUS <<_ACEOF
16186 # Files that config.status was made for.
16187 config_files="$ac_config_files"
16188 config_headers="$ac_config_headers"
16189 config_commands="$ac_config_commands"
16191 _ACEOF
16193 cat >>$CONFIG_STATUS <<\_ACEOF
16194 ac_cs_usage="\
16195 \`$as_me' instantiates files from templates according to the
16196 current configuration.
16198 Usage: $0 [OPTIONS] [FILE]...
16200 -h, --help print this help, then exit
16201 -V, --version print version number and configuration settings, then exit
16202 -q, --quiet do not print progress messages
16203 -d, --debug don't remove temporary files
16204 --recheck update $as_me by reconfiguring in the same conditions
16205 --file=FILE[:TEMPLATE]
16206 instantiate the configuration file FILE
16207 --header=FILE[:TEMPLATE]
16208 instantiate the configuration header FILE
16210 Configuration files:
16211 $config_files
16213 Configuration headers:
16214 $config_headers
16216 Configuration commands:
16217 $config_commands
16219 Report bugs to <bug-autoconf@gnu.org>."
16221 _ACEOF
16222 cat >>$CONFIG_STATUS <<_ACEOF
16223 ac_cs_version="\\
16224 config.status
16225 configured by $0, generated by GNU Autoconf 2.61,
16226 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16228 Copyright (C) 2006 Free Software Foundation, Inc.
16229 This config.status script is free software; the Free Software Foundation
16230 gives unlimited permission to copy, distribute and modify it."
16232 ac_pwd='$ac_pwd'
16233 srcdir='$srcdir'
16234 INSTALL='$INSTALL'
16235 _ACEOF
16237 cat >>$CONFIG_STATUS <<\_ACEOF
16238 # If no file are specified by the user, then we need to provide default
16239 # value. By we need to know if files were specified by the user.
16240 ac_need_defaults=:
16241 while test $# != 0
16242 do
16243 case $1 in
16244 --*=*)
16245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16246 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16247 ac_shift=:
16248 ;;
16249 *)
16250 ac_option=$1
16251 ac_optarg=$2
16252 ac_shift=shift
16253 ;;
16254 esac
16256 case $ac_option in
16257 # Handling of the options.
16258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16259 ac_cs_recheck=: ;;
16260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16261 echo "$ac_cs_version"; exit ;;
16262 --debug | --debu | --deb | --de | --d | -d )
16263 debug=: ;;
16264 --file | --fil | --fi | --f )
16265 $ac_shift
16266 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16267 ac_need_defaults=false;;
16268 --header | --heade | --head | --hea )
16269 $ac_shift
16270 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16271 ac_need_defaults=false;;
16272 --he | --h)
16273 # Conflict between --help and --header
16274 { echo "$as_me: error: ambiguous option: $1
16275 Try \`$0 --help' for more information." >&2
16276 { (exit 1); exit 1; }; };;
16277 --help | --hel | -h )
16278 echo "$ac_cs_usage"; exit ;;
16279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16280 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16281 ac_cs_silent=: ;;
16283 # This is an error.
16284 -*) { echo "$as_me: error: unrecognized option: $1
16285 Try \`$0 --help' for more information." >&2
16286 { (exit 1); exit 1; }; } ;;
16288 *) ac_config_targets="$ac_config_targets $1"
16289 ac_need_defaults=false ;;
16291 esac
16292 shift
16293 done
16295 ac_configure_extra_args=
16297 if $ac_cs_silent; then
16298 exec 6>/dev/null
16299 ac_configure_extra_args="$ac_configure_extra_args --silent"
16300 fi
16302 _ACEOF
16303 cat >>$CONFIG_STATUS <<_ACEOF
16304 if \$ac_cs_recheck; then
16305 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16306 CONFIG_SHELL=$SHELL
16307 export CONFIG_SHELL
16308 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16309 fi
16311 _ACEOF
16312 cat >>$CONFIG_STATUS <<\_ACEOF
16313 exec 5>>config.log
16314 {
16315 echo
16316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16317 ## Running $as_me. ##
16318 _ASBOX
16319 echo "$ac_log"
16320 } >&5
16322 _ACEOF
16323 cat >>$CONFIG_STATUS <<_ACEOF
16324 #
16325 # INIT-COMMANDS
16326 #
16327 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16330 _ACEOF
16332 cat >>$CONFIG_STATUS <<\_ACEOF
16334 # Handling of arguments.
16335 for ac_config_target in $ac_config_targets
16336 do
16337 case $ac_config_target in
16338 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16339 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16340 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16341 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16342 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16343 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16344 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16345 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16346 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16348 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16349 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16350 { (exit 1); exit 1; }; };;
16351 esac
16352 done
16355 # If the user did not use the arguments to specify the items to instantiate,
16356 # then the envvar interface is used. Set only those that are not.
16357 # We use the long form for the default assignment because of an extremely
16358 # bizarre bug on SunOS 4.1.3.
16359 if $ac_need_defaults; then
16360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16363 fi
16365 # Have a temporary directory for convenience. Make it in the build tree
16366 # simply because there is no reason against having it here, and in addition,
16367 # creating and moving files from /tmp can sometimes cause problems.
16368 # Hook for its removal unless debugging.
16369 # Note that there is a small window in which the directory will not be cleaned:
16370 # after its creation but before its name has been assigned to `$tmp'.
16371 $debug ||
16372 {
16373 tmp=
16374 trap 'exit_status=$?
16375 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16376 ' 0
16377 trap '{ (exit 1); exit 1; }' 1 2 13 15
16378 }
16379 # Create a (secure) tmp directory for tmp files.
16381 {
16382 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16383 test -n "$tmp" && test -d "$tmp"
16384 } ||
16385 {
16386 tmp=./conf$$-$RANDOM
16387 (umask 077 && mkdir "$tmp")
16388 } ||
16389 {
16390 echo "$me: cannot create a temporary directory in ." >&2
16391 { (exit 1); exit 1; }
16392 }
16394 #
16395 # Set up the sed scripts for CONFIG_FILES section.
16396 #
16398 # No need to generate the scripts if there are no CONFIG_FILES.
16399 # This happens for instance when ./config.status config.h
16400 if test -n "$CONFIG_FILES"; then
16402 _ACEOF
16406 ac_delim='%!_!# '
16407 for ac_last_try in false false false false false :; do
16408 cat >conf$$subs.sed <<_ACEOF
16409 SHELL!$SHELL$ac_delim
16410 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16411 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16412 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16413 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16414 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16415 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16416 exec_prefix!$exec_prefix$ac_delim
16417 prefix!$prefix$ac_delim
16418 program_transform_name!$program_transform_name$ac_delim
16419 bindir!$bindir$ac_delim
16420 sbindir!$sbindir$ac_delim
16421 libexecdir!$libexecdir$ac_delim
16422 datarootdir!$datarootdir$ac_delim
16423 datadir!$datadir$ac_delim
16424 sysconfdir!$sysconfdir$ac_delim
16425 sharedstatedir!$sharedstatedir$ac_delim
16426 localstatedir!$localstatedir$ac_delim
16427 includedir!$includedir$ac_delim
16428 oldincludedir!$oldincludedir$ac_delim
16429 docdir!$docdir$ac_delim
16430 infodir!$infodir$ac_delim
16431 htmldir!$htmldir$ac_delim
16432 dvidir!$dvidir$ac_delim
16433 pdfdir!$pdfdir$ac_delim
16434 psdir!$psdir$ac_delim
16435 libdir!$libdir$ac_delim
16436 localedir!$localedir$ac_delim
16437 mandir!$mandir$ac_delim
16438 DEFS!$DEFS$ac_delim
16439 ECHO_C!$ECHO_C$ac_delim
16440 ECHO_N!$ECHO_N$ac_delim
16441 ECHO_T!$ECHO_T$ac_delim
16442 LIBS!$LIBS$ac_delim
16443 build_alias!$build_alias$ac_delim
16444 host_alias!$host_alias$ac_delim
16445 target_alias!$target_alias$ac_delim
16446 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16447 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16448 INSTALL_DATA!$INSTALL_DATA$ac_delim
16449 CYGPATH_W!$CYGPATH_W$ac_delim
16450 PACKAGE!$PACKAGE$ac_delim
16451 VERSION!$VERSION$ac_delim
16452 ACLOCAL!$ACLOCAL$ac_delim
16453 AUTOCONF!$AUTOCONF$ac_delim
16454 AUTOMAKE!$AUTOMAKE$ac_delim
16455 AUTOHEADER!$AUTOHEADER$ac_delim
16456 MAKEINFO!$MAKEINFO$ac_delim
16457 install_sh!$install_sh$ac_delim
16458 STRIP!$STRIP$ac_delim
16459 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16460 mkdir_p!$mkdir_p$ac_delim
16461 AWK!$AWK$ac_delim
16462 SET_MAKE!$SET_MAKE$ac_delim
16463 am__leading_dot!$am__leading_dot$ac_delim
16464 AMTAR!$AMTAR$ac_delim
16465 am__tar!$am__tar$ac_delim
16466 am__untar!$am__untar$ac_delim
16467 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16468 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16469 MAINT!$MAINT$ac_delim
16470 build!$build$ac_delim
16471 build_cpu!$build_cpu$ac_delim
16472 build_vendor!$build_vendor$ac_delim
16473 build_os!$build_os$ac_delim
16474 host!$host$ac_delim
16475 host_cpu!$host_cpu$ac_delim
16476 host_vendor!$host_vendor$ac_delim
16477 host_os!$host_os$ac_delim
16478 CC!$CC$ac_delim
16479 CFLAGS!$CFLAGS$ac_delim
16480 LDFLAGS!$LDFLAGS$ac_delim
16481 CPPFLAGS!$CPPFLAGS$ac_delim
16482 ac_ct_CC!$ac_ct_CC$ac_delim
16483 EXEEXT!$EXEEXT$ac_delim
16484 OBJEXT!$OBJEXT$ac_delim
16485 DEPDIR!$DEPDIR$ac_delim
16486 am__include!$am__include$ac_delim
16487 am__quote!$am__quote$ac_delim
16488 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16489 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16490 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16491 CCDEPMODE!$CCDEPMODE$ac_delim
16492 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16493 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16494 CPP!$CPP$ac_delim
16495 CC!$CC$ac_delim
16496 CFLAGS!$CFLAGS$ac_delim
16497 CPPFLAGS!$CPPFLAGS$ac_delim
16498 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16499 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16500 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16501 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16502 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16503 CPP!$CPP$ac_delim
16504 CPPFLAGS!$CPPFLAGS$ac_delim
16505 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16506 _ACEOF
16508 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16509 break
16510 elif $ac_last_try; then
16511 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16513 { (exit 1); exit 1; }; }
16514 else
16515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16516 fi
16517 done
16519 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16520 if test -n "$ac_eof"; then
16521 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16522 ac_eof=`expr $ac_eof + 1`
16523 fi
16525 cat >>$CONFIG_STATUS <<_ACEOF
16526 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16528 _ACEOF
16529 sed '
16530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16531 s/^/s,@/; s/!/@,|#_!!_#|/
16532 :n
16533 t n
16534 s/'"$ac_delim"'$/,g/; t
16535 s/$/\\/; p
16536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16537 ' >>$CONFIG_STATUS <conf$$subs.sed
16538 rm -f conf$$subs.sed
16539 cat >>$CONFIG_STATUS <<_ACEOF
16540 CEOF$ac_eof
16541 _ACEOF
16544 ac_delim='%!_!# '
16545 for ac_last_try in false false false false false :; do
16546 cat >conf$$subs.sed <<_ACEOF
16547 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16548 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16549 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16550 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16551 OBJC!$OBJC$ac_delim
16552 OBJCFLAGS!$OBJCFLAGS$ac_delim
16553 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16554 SED!$SED$ac_delim
16555 CCAS!$CCAS$ac_delim
16556 CCASFLAGS!$CCASFLAGS$ac_delim
16557 RANLIB!$RANLIB$ac_delim
16558 GREP!$GREP$ac_delim
16559 EGREP!$EGREP$ac_delim
16560 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16561 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16562 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16563 POD2MAN!$POD2MAN$ac_delim
16564 POD2HTML!$POD2HTML$ac_delim
16565 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16566 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16567 SOEXT!$SOEXT$ac_delim
16568 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16569 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16570 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16571 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16572 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16573 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16574 PKG_CONFIG!$PKG_CONFIG$ac_delim
16575 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16576 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16577 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16578 GLIB_LIBS!$GLIB_LIBS$ac_delim
16579 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16580 GTK_LIBS!$GTK_LIBS$ac_delim
16581 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16582 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16583 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16584 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16585 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16586 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16587 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16588 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16589 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16590 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16591 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16592 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16593 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16594 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16595 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16596 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16597 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16598 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16599 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16600 SDL_LIBS!$SDL_LIBS$ac_delim
16601 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16602 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16603 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16604 PULSE_LIBS!$PULSE_LIBS$ac_delim
16605 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16606 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16607 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16608 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16609 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16610 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16611 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16612 ALSA_LIBS!$ALSA_LIBS$ac_delim
16613 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16614 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16615 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16616 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16617 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16618 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16619 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16620 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16621 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16622 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16623 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16624 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16625 SHCC!$SHCC$ac_delim
16626 SHLD!$SHLD$ac_delim
16627 SHOBJCOPY!$SHOBJCOPY$ac_delim
16628 ARMCC!$ARMCC$ac_delim
16629 ARMLD!$ARMLD$ac_delim
16630 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16631 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16632 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16633 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16634 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16635 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16636 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16637 USE_NLS!$USE_NLS$ac_delim
16638 MSGFMT!$MSGFMT$ac_delim
16639 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16640 GMSGFMT!$GMSGFMT$ac_delim
16641 XGETTEXT!$XGETTEXT$ac_delim
16642 CATALOGS!$CATALOGS$ac_delim
16643 CATOBJEXT!$CATOBJEXT$ac_delim
16644 _ACEOF
16646 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16647 break
16648 elif $ac_last_try; then
16649 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16650 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16651 { (exit 1); exit 1; }; }
16652 else
16653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16654 fi
16655 done
16657 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16658 if test -n "$ac_eof"; then
16659 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16660 ac_eof=`expr $ac_eof + 1`
16661 fi
16663 cat >>$CONFIG_STATUS <<_ACEOF
16664 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16666 _ACEOF
16667 sed '
16668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16669 s/^/s,@/; s/!/@,|#_!!_#|/
16670 :n
16671 t n
16672 s/'"$ac_delim"'$/,g/; t
16673 s/$/\\/; p
16674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16675 ' >>$CONFIG_STATUS <conf$$subs.sed
16676 rm -f conf$$subs.sed
16677 cat >>$CONFIG_STATUS <<_ACEOF
16678 CEOF$ac_eof
16679 _ACEOF
16682 ac_delim='%!_!# '
16683 for ac_last_try in false false false false false :; do
16684 cat >conf$$subs.sed <<_ACEOF
16685 DATADIRNAME!$DATADIRNAME$ac_delim
16686 GMOFILES!$GMOFILES$ac_delim
16687 INSTOBJEXT!$INSTOBJEXT$ac_delim
16688 INTLLIBS!$INTLLIBS$ac_delim
16689 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
16690 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
16691 POFILES!$POFILES$ac_delim
16692 POSUB!$POSUB$ac_delim
16693 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16694 LIBOBJS!$LIBOBJS$ac_delim
16695 LTLIBOBJS!$LTLIBOBJS$ac_delim
16696 _ACEOF
16698 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
16699 break
16700 elif $ac_last_try; then
16701 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16703 { (exit 1); exit 1; }; }
16704 else
16705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16706 fi
16707 done
16709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16710 if test -n "$ac_eof"; then
16711 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16712 ac_eof=`expr $ac_eof + 1`
16713 fi
16715 cat >>$CONFIG_STATUS <<_ACEOF
16716 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
16717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16718 _ACEOF
16719 sed '
16720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16721 s/^/s,@/; s/!/@,|#_!!_#|/
16722 :n
16723 t n
16724 s/'"$ac_delim"'$/,g/; t
16725 s/$/\\/; p
16726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16727 ' >>$CONFIG_STATUS <conf$$subs.sed
16728 rm -f conf$$subs.sed
16729 cat >>$CONFIG_STATUS <<_ACEOF
16730 :end
16731 s/|#_!!_#|//g
16732 CEOF$ac_eof
16733 _ACEOF
16736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16738 # trailing colons and then remove the whole line if VPATH becomes empty
16739 # (actually we leave an empty line to preserve line numbers).
16740 if test "x$srcdir" = x.; then
16741 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16742 s/:*\$(srcdir):*/:/
16743 s/:*\${srcdir}:*/:/
16744 s/:*@srcdir@:*/:/
16745 s/^\([^=]*=[ ]*\):*/\1/
16746 s/:*$//
16747 s/^[^=]*=[ ]*$//
16748 }'
16749 fi
16751 cat >>$CONFIG_STATUS <<\_ACEOF
16752 fi # test -n "$CONFIG_FILES"
16755 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16756 do
16757 case $ac_tag in
16758 :[FHLC]) ac_mode=$ac_tag; continue;;
16759 esac
16760 case $ac_mode$ac_tag in
16761 :[FHL]*:*);;
16762 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16763 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16764 { (exit 1); exit 1; }; };;
16765 :[FH]-) ac_tag=-:-;;
16766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16767 esac
16768 ac_save_IFS=$IFS
16769 IFS=:
16770 set x $ac_tag
16771 IFS=$ac_save_IFS
16772 shift
16773 ac_file=$1
16774 shift
16776 case $ac_mode in
16777 :L) ac_source=$1;;
16778 :[FH])
16779 ac_file_inputs=
16780 for ac_f
16781 do
16782 case $ac_f in
16783 -) ac_f="$tmp/stdin";;
16784 *) # Look for the file first in the build tree, then in the source tree
16785 # (if the path is not absolute). The absolute path cannot be DOS-style,
16786 # because $ac_f cannot contain `:'.
16787 test -f "$ac_f" ||
16788 case $ac_f in
16789 [\\/$]*) false;;
16790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16791 esac ||
16792 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16793 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16794 { (exit 1); exit 1; }; };;
16795 esac
16796 ac_file_inputs="$ac_file_inputs $ac_f"
16797 done
16799 # Let's still pretend it is `configure' which instantiates (i.e., don't
16800 # use $as_me), people would be surprised to read:
16801 # /* config.h. Generated by config.status. */
16802 configure_input="Generated from "`IFS=:
16803 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16804 if test x"$ac_file" != x-; then
16805 configure_input="$ac_file. $configure_input"
16806 { echo "$as_me:$LINENO: creating $ac_file" >&5
16807 echo "$as_me: creating $ac_file" >&6;}
16808 fi
16810 case $ac_tag in
16811 *:-:* | *:-) cat >"$tmp/stdin";;
16812 esac
16813 ;;
16814 esac
16816 ac_dir=`$as_dirname -- "$ac_file" ||
16817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16818 X"$ac_file" : 'X\(//\)[^/]' \| \
16819 X"$ac_file" : 'X\(//\)$' \| \
16820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16821 echo X"$ac_file" |
16822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16823 s//\1/
16824 q
16825 }
16826 /^X\(\/\/\)[^/].*/{
16827 s//\1/
16828 q
16829 }
16830 /^X\(\/\/\)$/{
16831 s//\1/
16832 q
16833 }
16834 /^X\(\/\).*/{
16835 s//\1/
16836 q
16837 }
16838 s/.*/./; q'`
16839 { as_dir="$ac_dir"
16840 case $as_dir in #(
16841 -*) as_dir=./$as_dir;;
16842 esac
16843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16844 as_dirs=
16845 while :; do
16846 case $as_dir in #(
16847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16848 *) as_qdir=$as_dir;;
16849 esac
16850 as_dirs="'$as_qdir' $as_dirs"
16851 as_dir=`$as_dirname -- "$as_dir" ||
16852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16853 X"$as_dir" : 'X\(//\)[^/]' \| \
16854 X"$as_dir" : 'X\(//\)$' \| \
16855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16856 echo X"$as_dir" |
16857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16858 s//\1/
16859 q
16860 }
16861 /^X\(\/\/\)[^/].*/{
16862 s//\1/
16863 q
16864 }
16865 /^X\(\/\/\)$/{
16866 s//\1/
16867 q
16868 }
16869 /^X\(\/\).*/{
16870 s//\1/
16871 q
16872 }
16873 s/.*/./; q'`
16874 test -d "$as_dir" && break
16875 done
16876 test -z "$as_dirs" || eval "mkdir $as_dirs"
16877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16879 { (exit 1); exit 1; }; }; }
16880 ac_builddir=.
16882 case "$ac_dir" in
16883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16884 *)
16885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16886 # A ".." for each directory in $ac_dir_suffix.
16887 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16888 case $ac_top_builddir_sub in
16889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16891 esac ;;
16892 esac
16893 ac_abs_top_builddir=$ac_pwd
16894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16895 # for backward compatibility:
16896 ac_top_builddir=$ac_top_build_prefix
16898 case $srcdir in
16899 .) # We are building in place.
16900 ac_srcdir=.
16901 ac_top_srcdir=$ac_top_builddir_sub
16902 ac_abs_top_srcdir=$ac_pwd ;;
16903 [\\/]* | ?:[\\/]* ) # Absolute name.
16904 ac_srcdir=$srcdir$ac_dir_suffix;
16905 ac_top_srcdir=$srcdir
16906 ac_abs_top_srcdir=$srcdir ;;
16907 *) # Relative name.
16908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16909 ac_top_srcdir=$ac_top_build_prefix$srcdir
16910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16911 esac
16912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16915 case $ac_mode in
16916 :F)
16917 #
16918 # CONFIG_FILE
16919 #
16921 case $INSTALL in
16922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16924 esac
16925 _ACEOF
16927 cat >>$CONFIG_STATUS <<\_ACEOF
16928 # If the template does not know about datarootdir, expand it.
16929 # FIXME: This hack should be removed a few years after 2.60.
16930 ac_datarootdir_hack=; ac_datarootdir_seen=
16932 case `sed -n '/datarootdir/ {
16933 p
16934 q
16935 }
16936 /@datadir@/p
16937 /@docdir@/p
16938 /@infodir@/p
16939 /@localedir@/p
16940 /@mandir@/p
16941 ' $ac_file_inputs` in
16942 *datarootdir*) ac_datarootdir_seen=yes;;
16943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16944 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16945 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16946 _ACEOF
16947 cat >>$CONFIG_STATUS <<_ACEOF
16948 ac_datarootdir_hack='
16949 s&@datadir@&$datadir&g
16950 s&@docdir@&$docdir&g
16951 s&@infodir@&$infodir&g
16952 s&@localedir@&$localedir&g
16953 s&@mandir@&$mandir&g
16954 s&\\\${datarootdir}&$datarootdir&g' ;;
16955 esac
16956 _ACEOF
16958 # Neutralize VPATH when `$srcdir' = `.'.
16959 # Shell code in configure.ac might set extrasub.
16960 # FIXME: do we really want to maintain this feature?
16961 cat >>$CONFIG_STATUS <<_ACEOF
16962 sed "$ac_vpsub
16963 $extrasub
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<\_ACEOF
16966 :t
16967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16968 s&@configure_input@&$configure_input&;t t
16969 s&@top_builddir@&$ac_top_builddir_sub&;t t
16970 s&@srcdir@&$ac_srcdir&;t t
16971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16972 s&@top_srcdir@&$ac_top_srcdir&;t t
16973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16974 s&@builddir@&$ac_builddir&;t t
16975 s&@abs_builddir@&$ac_abs_builddir&;t t
16976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16977 s&@INSTALL@&$ac_INSTALL&;t t
16978 $ac_datarootdir_hack
16979 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
16981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16982 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16984 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16985 which seems to be undefined. Please make sure it is defined." >&5
16986 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16987 which seems to be undefined. Please make sure it is defined." >&2;}
16989 rm -f "$tmp/stdin"
16990 case $ac_file in
16991 -) cat "$tmp/out"; rm -f "$tmp/out";;
16992 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16993 esac
16994 ;;
16995 :H)
16996 #
16997 # CONFIG_HEADER
16998 #
16999 _ACEOF
17001 # Transform confdefs.h into a sed script `conftest.defines', that
17002 # substitutes the proper values into config.h.in to produce config.h.
17003 rm -f conftest.defines conftest.tail
17004 # First, append a space to every undef/define line, to ease matching.
17005 echo 's/$/ /' >conftest.defines
17006 # Then, protect against being on the right side of a sed subst, or in
17007 # an unquoted here document, in config.status. If some macros were
17008 # called several times there might be several #defines for the same
17009 # symbol, which is useless. But do not sort them, since the last
17010 # AC_DEFINE must be honored.
17011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17012 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17013 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17014 # PARAMS is the parameter list in the macro definition--in most cases, it's
17015 # just an empty string.
17016 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17017 ac_dB='\\)[ (].*,\\1define\\2'
17018 ac_dC=' '
17019 ac_dD=' ,'
17021 uniq confdefs.h |
17022 sed -n '
17023 t rset
17024 :rset
17025 s/^[ ]*#[ ]*define[ ][ ]*//
17026 t ok
17027 d
17028 :ok
17029 s/[\\&,]/\\&/g
17030 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17031 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17032 ' >>conftest.defines
17034 # Remove the space that was appended to ease matching.
17035 # Then replace #undef with comments. This is necessary, for
17036 # example, in the case of _POSIX_SOURCE, which is predefined and required
17037 # on some systems where configure will not decide to define it.
17038 # (The regexp can be short, since the line contains either #define or #undef.)
17039 echo 's/ $//
17040 s,^[ #]*u.*,/* & */,' >>conftest.defines
17042 # Break up conftest.defines:
17043 ac_max_sed_lines=50
17045 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17046 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17047 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17048 # et cetera.
17049 ac_in='$ac_file_inputs'
17050 ac_out='"$tmp/out1"'
17051 ac_nxt='"$tmp/out2"'
17053 while :
17054 do
17055 # Write a here document:
17056 cat >>$CONFIG_STATUS <<_ACEOF
17057 # First, check the format of the line:
17058 cat >"\$tmp/defines.sed" <<\\CEOF
17059 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17060 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17061 b
17062 :def
17063 _ACEOF
17064 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17065 echo 'CEOF
17066 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17067 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17068 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17069 grep . conftest.tail >/dev/null || break
17070 rm -f conftest.defines
17071 mv conftest.tail conftest.defines
17072 done
17073 rm -f conftest.defines conftest.tail
17075 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17076 cat >>$CONFIG_STATUS <<\_ACEOF
17077 if test x"$ac_file" != x-; then
17078 echo "/* $configure_input */" >"$tmp/config.h"
17079 cat "$ac_result" >>"$tmp/config.h"
17080 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17081 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17082 echo "$as_me: $ac_file is unchanged" >&6;}
17083 else
17084 rm -f $ac_file
17085 mv "$tmp/config.h" $ac_file
17086 fi
17087 else
17088 echo "/* $configure_input */"
17089 cat "$ac_result"
17090 fi
17091 rm -f "$tmp/out12"
17092 # Compute $ac_file's index in $config_headers.
17093 _am_stamp_count=1
17094 for _am_header in $config_headers :; do
17095 case $_am_header in
17096 $ac_file | $ac_file:* )
17097 break ;;
17098 * )
17099 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17100 esac
17101 done
17102 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17103 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17104 X$ac_file : 'X\(//\)[^/]' \| \
17105 X$ac_file : 'X\(//\)$' \| \
17106 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17107 echo X$ac_file |
17108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17109 s//\1/
17110 q
17111 }
17112 /^X\(\/\/\)[^/].*/{
17113 s//\1/
17114 q
17115 }
17116 /^X\(\/\/\)$/{
17117 s//\1/
17118 q
17119 }
17120 /^X\(\/\).*/{
17121 s//\1/
17122 q
17123 }
17124 s/.*/./; q'`/stamp-h$_am_stamp_count
17125 ;;
17127 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17128 echo "$as_me: executing $ac_file commands" >&6;}
17129 ;;
17130 esac
17133 case $ac_file$ac_mode in
17134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17135 # Strip MF so we end up with the name of the file.
17136 mf=`echo "$mf" | sed -e 's/:.*$//'`
17137 # Check whether this is an Automake generated Makefile or not.
17138 # We used to match only the files named `Makefile.in', but
17139 # some people rename them; so instead we look at the file content.
17140 # Grep'ing the first line is not enough: some people post-process
17141 # each Makefile.in and add a new line on top of each file to say so.
17142 # So let's grep whole file.
17143 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17144 dirpart=`$as_dirname -- "$mf" ||
17145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17146 X"$mf" : 'X\(//\)[^/]' \| \
17147 X"$mf" : 'X\(//\)$' \| \
17148 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17149 echo X"$mf" |
17150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17151 s//\1/
17152 q
17153 }
17154 /^X\(\/\/\)[^/].*/{
17155 s//\1/
17156 q
17157 }
17158 /^X\(\/\/\)$/{
17159 s//\1/
17160 q
17161 }
17162 /^X\(\/\).*/{
17163 s//\1/
17164 q
17165 }
17166 s/.*/./; q'`
17167 else
17168 continue
17169 fi
17170 # Extract the definition of DEPDIR, am__include, and am__quote
17171 # from the Makefile without running `make'.
17172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17173 test -z "$DEPDIR" && continue
17174 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17175 test -z "am__include" && continue
17176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17177 # When using ansi2knr, U may be empty or an underscore; expand it
17178 U=`sed -n 's/^U = //p' < "$mf"`
17179 # Find all dependency output files, they are included files with
17180 # $(DEPDIR) in their names. We invoke sed twice because it is the
17181 # simplest approach to changing $(DEPDIR) to its actual value in the
17182 # expansion.
17183 for file in `sed -n "
17184 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17185 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17186 # Make sure the directory exists.
17187 test -f "$dirpart/$file" && continue
17188 fdir=`$as_dirname -- "$file" ||
17189 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190 X"$file" : 'X\(//\)[^/]' \| \
17191 X"$file" : 'X\(//\)$' \| \
17192 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17193 echo X"$file" |
17194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17195 s//\1/
17196 q
17197 }
17198 /^X\(\/\/\)[^/].*/{
17199 s//\1/
17200 q
17201 }
17202 /^X\(\/\/\)$/{
17203 s//\1/
17204 q
17205 }
17206 /^X\(\/\).*/{
17207 s//\1/
17208 q
17209 }
17210 s/.*/./; q'`
17211 { as_dir=$dirpart/$fdir
17212 case $as_dir in #(
17213 -*) as_dir=./$as_dir;;
17214 esac
17215 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17216 as_dirs=
17217 while :; do
17218 case $as_dir in #(
17219 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17220 *) as_qdir=$as_dir;;
17221 esac
17222 as_dirs="'$as_qdir' $as_dirs"
17223 as_dir=`$as_dirname -- "$as_dir" ||
17224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17225 X"$as_dir" : 'X\(//\)[^/]' \| \
17226 X"$as_dir" : 'X\(//\)$' \| \
17227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17228 echo X"$as_dir" |
17229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17230 s//\1/
17231 q
17232 }
17233 /^X\(\/\/\)[^/].*/{
17234 s//\1/
17235 q
17236 }
17237 /^X\(\/\/\)$/{
17238 s//\1/
17239 q
17240 }
17241 /^X\(\/\).*/{
17242 s//\1/
17243 q
17244 }
17245 s/.*/./; q'`
17246 test -d "$as_dir" && break
17247 done
17248 test -z "$as_dirs" || eval "mkdir $as_dirs"
17249 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17250 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17251 { (exit 1); exit 1; }; }; }
17252 # echo "creating $dirpart/$file"
17253 echo '# dummy' > "$dirpart/$file"
17254 done
17255 done
17256 ;;
17257 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17258 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17259 esac ;;
17261 esac
17262 done # for ac_tag
17265 { (exit 0); exit 0; }
17266 _ACEOF
17267 chmod +x $CONFIG_STATUS
17268 ac_clean_files=$ac_clean_files_save
17271 # configure is writing to config.log, and then calls config.status.
17272 # config.status does its own redirection, appending to config.log.
17273 # Unfortunately, on DOS this fails, as config.log is still kept open
17274 # by configure, so config.status won't be able to write to it; its
17275 # output is simply discarded. So we exec the FD to /dev/null,
17276 # effectively closing config.log, so it can be properly (re)opened and
17277 # appended to by config.status. When coming back to configure, we
17278 # need to make the FD available again.
17279 if test "$no_create" != yes; then
17280 ac_cs_success=:
17281 ac_config_status_args=
17282 test "$silent" = yes &&
17283 ac_config_status_args="$ac_config_status_args --quiet"
17284 exec 5>/dev/null
17285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17286 exec 5>>config.log
17287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17288 # would make configure fail if this is the last instruction.
17289 $ac_cs_success || { (exit 1); exit 1; }
17290 fi
17292 { as_dir=test/sh4
17293 case $as_dir in #(
17294 -*) as_dir=./$as_dir;;
17295 esac
17296 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17297 as_dirs=
17298 while :; do
17299 case $as_dir in #(
17300 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17301 *) as_qdir=$as_dir;;
17302 esac
17303 as_dirs="'$as_qdir' $as_dirs"
17304 as_dir=`$as_dirname -- "$as_dir" ||
17305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17306 X"$as_dir" : 'X\(//\)[^/]' \| \
17307 X"$as_dir" : 'X\(//\)$' \| \
17308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17309 echo X"$as_dir" |
17310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17311 s//\1/
17312 q
17313 }
17314 /^X\(\/\/\)[^/].*/{
17315 s//\1/
17316 q
17317 }
17318 /^X\(\/\/\)$/{
17319 s//\1/
17320 q
17321 }
17322 /^X\(\/\).*/{
17323 s//\1/
17324 q
17325 }
17326 s/.*/./; q'`
17327 test -d "$as_dir" && break
17328 done
17329 test -z "$as_dirs" || eval "mkdir $as_dirs"
17330 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17331 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17332 { (exit 1); exit 1; }; }; }
17335 echo
17336 echo "Configuration complete"
17337 echo
17339 if test "x$HAVE_GTK" = x; then
17340 if test "x$HAVE_COCOA" = x; then
17341 echo " User interface: none"
17342 else
17343 echo " User interface: Cocoa"
17344 fi
17345 else
17346 echo " User interface: GTK"
17347 fi
17349 if test "x$SH4_TRANSLATOR" = "x"; then
17350 echo " SH4 translator: None (emulation core only)"
17351 else
17352 echo " SH4 translator: $SH4_TRANSLATOR"
17353 fi
17355 if test "x$VIDEO_DRIVERS" = "x"; then
17356 echo " Video drivers: none (no supported GL found)"
17357 else
17358 echo " Video drivers: $VIDEO_DRIVERS"
17359 fi
17361 if test "x$AUDIO_DRIVERS" = "x"; then
17362 echo " Audio drivers: none (no supported output devices found)"
17363 else
17364 echo " Audio drivers: $AUDIO_DRIVERS"
17365 fi
17367 if test "x$INPUT_DRIVERS" = "x"; then
17368 echo " Input drivers: none (no supported input devices found)"
17369 else
17370 echo " Input drivers: $INPUT_DRIVERS"
17371 fi
17373 if test "x$CDROM_DRIVER" = "x"; then
17374 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17375 else
17376 echo " CD-ROM driver: $CDROM_DRIVER"
17377 fi
.