filename | configure |
changeset | 1200:3b2097efa97d |
prev | 1199:62d0a21fac1c |
next | 1210:79bbd30363f4 |
author | nkeynes |
date | Mon Jan 30 20:11:08 2012 +1000 (12 years ago) |
permissions | -rwxr-xr-x |
last change | Replace wordexp() with a hand-coded env-var substitution. More portable, and avoids bugs with some wordexp() implementations |
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 CC
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CCDEPMODE
691 am__fastdepCC_TRUE
692 am__fastdepCC_FALSE
693 CPP
694 build
695 build_cpu
696 build_vendor
697 build_os
698 host
699 host_cpu
700 host_vendor
701 host_os
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 GREP
724 EGREP
725 OBJCDEPMODE
726 am__fastdepOBJC_TRUE
727 am__fastdepOBJC_FALSE
728 POD2MAN
729 POD2HTML
730 GUI_COCOA_TRUE
731 GUI_COCOA_FALSE
732 SOEXT
733 PLUGINCFLAGS
734 PLUGINLDFLAGS
735 LXDREAMLDFLAGS
736 BUILD_SHARED_TRUE
737 BUILD_SHARED_FALSE
738 LXDREAMCPPFLAGS
739 PKG_CONFIG
740 LIBPNG_CFLAGS
741 LIBPNG_LIBS
742 GLIB_CFLAGS
743 GLIB_LIBS
744 GTK_CFLAGS
745 GTK_LIBS
746 GUI_GTK_TRUE
747 GUI_GTK_FALSE
748 LIBISOFS_CFLAGS
749 LIBISOFS_LIBS
750 LIBGL_CFLAGS
751 LIBGL_LIBS
752 VIDEO_OSMESA_TRUE
753 VIDEO_OSMESA_FALSE
754 VIDEO_GLX_TRUE
755 VIDEO_GLX_FALSE
756 VIDEO_NSGL_TRUE
757 VIDEO_NSGL_FALSE
758 BUILD_SH4X86_TRUE
759 BUILD_SH4X86_FALSE
760 AUDIO_OSX_TRUE
761 AUDIO_OSX_FALSE
762 SDL_CFLAGS
763 SDL_LIBS
764 AUDIO_SDL_TRUE
765 AUDIO_SDL_FALSE
766 PULSE_CFLAGS
767 PULSE_LIBS
768 AUDIO_PULSE_TRUE
769 AUDIO_PULSE_FALSE
770 ESOUND_CFLAGS
771 ESOUND_LIBS
772 AUDIO_ESOUND_TRUE
773 AUDIO_ESOUND_FALSE
774 ALSA_CFLAGS
775 ALSA_LIBS
776 AUDIO_ALSA_TRUE
777 AUDIO_ALSA_FALSE
778 CDROM_LINUX_TRUE
779 CDROM_LINUX_FALSE
780 CDROM_OSX_TRUE
781 CDROM_OSX_FALSE
782 CDROM_NONE_TRUE
783 CDROM_NONE_FALSE
784 JOY_LINUX_TRUE
785 JOY_LINUX_FALSE
786 INPUT_LIRC_TRUE
787 INPUT_LIRC_FALSE
788 SHCC
789 SHLD
790 SHOBJCOPY
791 ARMCC
792 ARMLD
793 ARMOBJCOPY
794 BUILD_SYSTEST_TRUE
795 BUILD_SYSTEST_FALSE
796 BUILD_ARMTEST_TRUE
797 BUILD_ARMTEST_FALSE
798 LXDREAM_LIBS
799 GETTEXT_PACKAGE
800 USE_NLS
801 MSGFMT
802 MSGFMT_OPTS
803 GMSGFMT
804 XGETTEXT
805 CATALOGS
806 CATOBJEXT
807 DATADIRNAME
808 GMOFILES
809 INSTOBJEXT
810 INTLLIBS
811 PO_IN_DATADIR_TRUE
812 PO_IN_DATADIR_FALSE
813 POFILES
814 POSUB
815 MKINSTALLDIRS
816 LIBOBJS
817 LTLIBOBJS'
818 ac_subst_files=''
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 CPP
828 CC
829 CFLAGS
830 CPPFLAGS
831 CPP
832 CPPFLAGS
833 OBJC
834 OBJCFLAGS
835 CCAS
836 CCASFLAGS
837 PKG_CONFIG
838 LIBPNG_CFLAGS
839 LIBPNG_LIBS
840 GLIB_CFLAGS
841 GLIB_LIBS
842 GTK_CFLAGS
843 GTK_LIBS
844 LIBISOFS_CFLAGS
845 LIBISOFS_LIBS
846 LIBGL_CFLAGS
847 LIBGL_LIBS
848 SDL_CFLAGS
849 SDL_LIBS
850 PULSE_CFLAGS
851 PULSE_LIBS
852 ESOUND_CFLAGS
853 ESOUND_LIBS
854 ALSA_CFLAGS
855 ALSA_LIBS'
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
963 { (exit 1); exit 1; }; }
964 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
965 eval enable_$ac_feature=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
977 -enable-* | --enable-*)
978 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
981 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982 { (exit 1); exit 1; }; }
983 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
984 eval enable_$ac_feature=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1174 -with-* | --with-*)
1175 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid package name: $ac_package" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1181 eval with_$ac_package=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid package name: $ac_package" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1190 eval with_$ac_package=no ;;
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) { echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1213 ;;
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1224 *)
1225 # FIXME: should be removed in autoconf 3.0.
1226 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 ;;
1232 esac
1233 done
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 { echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1239 fi
1241 # Be sure to have absolute directory names.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1246 do
1247 eval ac_val=\$$ac_var
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1253 { (exit 1); exit 1; }; }
1254 done
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 { echo "$as_me: error: Working directory cannot be determined" >&2
1284 { (exit 1); exit 1; }; }
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 { echo "$as_me: error: pwd does not report name of working directory" >&2
1287 { (exit 1); exit 1; }; }
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$0" ||
1295 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$0" : 'X\(//\)[^/]' \| \
1297 X"$0" : 'X\(//\)$' \| \
1298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1299 echo X"$0" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1327 { (exit 1); exit 1; }; }
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1332 { (exit 1); exit 1; }; }
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures this package to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1413 cat <<\_ACEOF
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1426 if test -n "$ac_init_help"; then
1428 cat <<\_ACEOF
1430 Optional Features:
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-maintainer-mode enable make rules and dependencies not useful
1434 (and sometimes confusing) to the casual installer
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
1437 --enable-strict-warn Enable strict compilation warnings
1438 --disable-translator Disable the SH4 translator (Enabled by default)
1439 --disable-optimized Disable compile-time optimizations (Enabled by
1440 default)
1441 --enable-shared Build drivers as shared libraries (Enabled if
1442 available)
1443 --enable-profiled Enable profiling build
1444 --enable-trace Enable generation of IO traces (warning: hurts
1445 performance)
1446 --enable-watch Enable watchpoints in the debugger (warning: hurts
1447 performance)
1448 --enable-sh4stats Enable statistics on executed sh4 instructions
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-osmesa Build with the osmesa GL library (software
1454 rendering)
1455 --with-gtk Build with the GTK UI. Default on X11 systems
1456 --with-esd Build with support for the ESounD audio system
1457 --with-pulse Build with support for the PulseAudio audio system
1458 --with-sdl Build with support for SDL audio
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 OBJC Objective C compiler command
1470 OBJCFLAGS Objective C compiler flags
1471 CCAS assembler compiler command (defaults to CC)
1472 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1473 PKG_CONFIG path to pkg-config utility
1474 LIBPNG_CFLAGS
1475 C compiler flags for LIBPNG, overriding pkg-config
1476 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1477 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1478 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1479 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1480 GTK_LIBS linker flags for GTK, overriding pkg-config
1481 LIBISOFS_CFLAGS
1482 C compiler flags for LIBISOFS, overriding pkg-config
1483 LIBISOFS_LIBS
1484 linker flags for LIBISOFS, overriding pkg-config
1485 LIBGL_CFLAGS
1486 C compiler flags for LIBGL, overriding pkg-config
1487 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1488 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1489 SDL_LIBS linker flags for SDL, overriding pkg-config
1490 PULSE_CFLAGS
1491 C compiler flags for PULSE, overriding pkg-config
1492 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1493 ESOUND_CFLAGS
1494 C compiler flags for ESOUND, overriding pkg-config
1495 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1496 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1497 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1510 ac_builddir=.
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1557 fi
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561 cat <<\_ACEOF
1562 configure
1563 generated by GNU Autoconf 2.61
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1576 It was created by $as_me, which was
1577 generated by GNU Autoconf 2.61. Invocation command line was
1579 $ $0 $@
1581 _ACEOF
1582 exec 5>>config.log
1583 {
1584 cat <<_ASUNAME
1585 ## --------- ##
1586 ## Platform. ##
1587 ## --------- ##
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1598 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1599 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1602 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1603 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1604 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 _ASUNAME
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 echo "PATH: $as_dir"
1614 done
1615 IFS=$as_save_IFS
1617 } >&5
1619 cat >&5 <<_ACEOF
1622 ## ----------- ##
1623 ## Core tests. ##
1624 ## ----------- ##
1626 _ACEOF
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1634 ac_configure_args=
1635 ac_configure_args0=
1636 ac_configure_args1=
1637 ac_must_keep_next=false
1638 for ac_pass in 1 2
1639 do
1640 for ac_arg
1641 do
1642 case $ac_arg in
1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1646 continue ;;
1647 *\'*)
1648 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 esac
1650 case $ac_pass in
1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652 2)
1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654 if test $ac_must_keep_next = true; then
1655 ac_must_keep_next=false # Got value, back to normal.
1656 else
1657 case $ac_arg in
1658 *=* | --config-cache | -C | -disable-* | --disable-* \
1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661 | -with-* | --with-* | -without-* | --without-* | --x)
1662 case "$ac_configure_args0 " in
1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 esac
1665 ;;
1666 -* ) ac_must_keep_next=true ;;
1667 esac
1668 fi
1669 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 ;;
1671 esac
1672 done
1673 done
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log. We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1684 {
1685 echo
1687 cat <<\_ASBOX
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1691 _ASBOX
1692 echo
1693 # The following way of writing the cache mishandles newlines in values,
1694 (
1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696 eval ac_val=\$$ac_var
1697 case $ac_val in #(
1698 *${as_nl}*)
1699 case $ac_var in #(
1700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 esac
1703 case $ac_var in #(
1704 _ | IFS | as_nl) ;; #(
1705 *) $as_unset $ac_var ;;
1706 esac ;;
1707 esac
1708 done
1709 (set) 2>&1 |
1710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
1712 sed -n \
1713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 ;; #(
1716 *)
1717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ;;
1719 esac |
1720 sort
1721 )
1722 echo
1724 cat <<\_ASBOX
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1728 _ASBOX
1729 echo
1730 for ac_var in $ac_subst_vars
1731 do
1732 eval ac_val=\$$ac_var
1733 case $ac_val in
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 esac
1736 echo "$ac_var='\''$ac_val'\''"
1737 done | sort
1738 echo
1740 if test -n "$ac_subst_files"; then
1741 cat <<\_ASBOX
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1745 _ASBOX
1746 echo
1747 for ac_var in $ac_subst_files
1748 do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1756 fi
1758 if test -s confdefs.h; then
1759 cat <<\_ASBOX
1760 ## ----------- ##
1761 ## confdefs.h. ##
1762 ## ----------- ##
1763 _ASBOX
1764 echo
1765 cat confdefs.h
1766 echo
1767 fi
1768 test "$ac_signal" != 0 &&
1769 echo "$as_me: caught signal $ac_signal"
1770 echo "$as_me: exit $exit_status"
1771 } >&5
1772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 exit $exit_status
1775 ' 0
1776 for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778 done
1779 ac_signal=0
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1784 # Predefined preprocessor variables.
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1788 _ACEOF
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793 _ACEOF
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 _ACEOF
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1803 _ACEOF
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808 _ACEOF
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814 set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817 else
1818 set x "$ac_default_prefix/share/config.site" \
1819 "$ac_default_prefix/etc/config.site"
1820 fi
1821 shift
1822 for ac_site_file
1823 do
1824 if test -r "$ac_site_file"; then
1825 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827 sed 's/^/| /' "$ac_site_file" >&5
1828 . "$ac_site_file"
1829 fi
1830 done
1832 if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special
1834 # files actually), so we avoid doing that.
1835 if test -f "$cache_file"; then
1836 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1838 case $cache_file in
1839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
1841 esac
1842 fi
1843 else
1844 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1846 >$cache_file
1847 fi
1849 # Check that the precious variables saved in the cache have kept the same
1850 # value.
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
1855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
1857 case $ac_old_set,$ac_new_set in
1858 set,)
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,set)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,);;
1867 *)
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
1869 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1872 echo "$as_me: former value: $ac_old_val" >&2;}
1873 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1874 echo "$as_me: current value: $ac_new_val" >&2;}
1875 ac_cache_corrupted=:
1876 fi;;
1877 esac
1878 # Pass precious variables to config.status.
1879 if test "$ac_new_set" = set; then
1880 case $ac_new_val in
1881 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 *) ac_arg=$ac_var=$ac_new_val ;;
1883 esac
1884 case " $ac_configure_args " in
1885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887 esac
1888 fi
1889 done
1890 if $ac_cache_corrupted; then
1891 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895 { (exit 1); exit 1; }; }
1896 fi
1914 ac_ext=c
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 am__api_version="1.9"
1922 ac_aux_dir=
1923 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
1937 done
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1941 { (exit 1); exit 1; }; }
1942 fi
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1953 # Find a good install program. We prefer a C program (faster),
1954 # so one script is as good as another. But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1959 # AIX /bin/install
1960 # AmigaOS /C/install, which installs bootblocks on floppy discs
1961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964 # OS/2's system install, which has a completely different semantic
1965 # ./install, which can be erroneously created by make from ./install.sh.
1966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1968 if test -z "$INSTALL"; then
1969 if test "${ac_cv_path_install+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 # Account for people who put trailing slashes in PATH elements.
1978 case $as_dir/ in
1979 ./ | .// | /cC/* | \
1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1982 /usr/ucb/* ) ;;
1983 *)
1984 # OSF1 and SCO ODT 3.0 have their own names for install.
1985 # Don't use installbsd from OSF since it installs stuff as root
1986 # by default.
1987 for ac_prog in ginstall scoinst install; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1990 if test $ac_prog = install &&
1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # AIX install. It has an incompatible calling convention.
1993 :
1994 elif test $ac_prog = install &&
1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # program-specific install script used by HP pwplus--don't use.
1997 :
1998 else
1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000 break 3
2001 fi
2002 fi
2003 done
2004 done
2005 ;;
2006 esac
2007 done
2008 IFS=$as_save_IFS
2011 fi
2012 if test "${ac_cv_path_install+set}" = set; then
2013 INSTALL=$ac_cv_path_install
2014 else
2015 # As a last resort, use the slow shell script. Don't cache a
2016 # value for INSTALL within a source directory, because that will
2017 # break other packages using the cache if that directory is
2018 # removed, or if the value is a relative name.
2019 INSTALL=$ac_install_sh
2020 fi
2021 fi
2022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2023 echo "${ECHO_T}$INSTALL" >&6; }
2025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026 # It thinks the first close brace ends the variable substitution.
2027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2033 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2035 # Just in case
2036 sleep 1
2037 echo timestamp > conftest.file
2038 # Do `set' in a subshell so we don't clobber the current shell's
2039 # arguments. Must try -L first in case configure is actually a
2040 # symlink; some systems play weird games with the mod time of symlinks
2041 # (eg FreeBSD returns the mod time of the symlink's containing
2042 # directory).
2043 if (
2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045 if test "$*" = "X"; then
2046 # -L didn't work.
2047 set X `ls -t $srcdir/configure conftest.file`
2048 fi
2049 rm -f conftest.file
2050 if test "$*" != "X $srcdir/configure conftest.file" \
2051 && test "$*" != "X conftest.file $srcdir/configure"; then
2053 # If neither matched, then we have a broken ls. This can happen
2054 # if, for instance, CONFIG_SHELL is bash and it inherits a
2055 # broken ls alias from the environment. This has actually
2056 # happened. Such a system could not be considered "sane".
2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2058 alias in your environment" >&5
2059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2060 alias in your environment" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2064 test "$2" = conftest.file
2065 )
2066 then
2067 # Ok.
2068 :
2069 else
2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071 Check your system clock" >&5
2072 echo "$as_me: error: newly created file is older than distributed files!
2073 Check your system clock" >&2;}
2074 { (exit 1); exit 1; }; }
2075 fi
2076 { echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6; }
2078 test "$program_prefix" != NONE &&
2079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2080 # Use a double $ so make ignores it.
2081 test "$program_suffix" != NONE &&
2082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2083 # Double any \ or $. echo might interpret backslashes.
2084 # By default was `s,x,x', remove it if useless.
2085 cat <<\_ACEOF >conftest.sed
2086 s/[\\$]/&&/g;s/;s,x,x,$//
2087 _ACEOF
2088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2089 rm -f conftest.sed
2091 # expand $ac_aux_dir to an absolute path
2092 am_aux_dir=`cd $ac_aux_dir && pwd`
2094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095 # Use eval to expand $SHELL
2096 if eval "$MISSING --run true"; then
2097 am_missing_run="$MISSING --run "
2098 else
2099 am_missing_run=
2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2102 fi
2104 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2105 # We used to keeping the `.' as first argument, in order to
2106 # allow $(mkdir_p) to be used without argument. As in
2107 # $(mkdir_p) $(somedir)
2108 # where $(somedir) is conditionally defined. However this is wrong
2109 # for two reasons:
2110 # 1. if the package is installed by a user who cannot write `.'
2111 # make install will fail,
2112 # 2. the above comment should most certainly read
2113 # $(mkdir_p) $(DESTDIR)$(somedir)
2114 # so it does not work when $(somedir) is undefined and
2115 # $(DESTDIR) is not.
2116 # To support the latter case, we have to write
2117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2118 # so the `.' trick is pointless.
2119 mkdir_p='mkdir -p --'
2120 else
2121 # On NextStep and OpenStep, the `mkdir' command does not
2122 # recognize any option. It will interpret all options as
2123 # directories to create, and then abort because `.' already
2124 # exists.
2125 for d in ./-p ./--version;
2126 do
2127 test -d $d && rmdir $d
2128 done
2129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2130 if test -f "$ac_aux_dir/mkinstalldirs"; then
2131 mkdir_p='$(mkinstalldirs)'
2132 else
2133 mkdir_p='$(install_sh) -d'
2134 fi
2135 fi
2137 for ac_prog in gawk mawk nawk awk
2138 do
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140 set dummy $ac_prog; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_AWK+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$AWK"; then
2147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_AWK="$ac_prog"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160 done
2161 done
2162 IFS=$as_save_IFS
2164 fi
2165 fi
2166 AWK=$ac_cv_prog_AWK
2167 if test -n "$AWK"; then
2168 { echo "$as_me:$LINENO: result: $AWK" >&5
2169 echo "${ECHO_T}$AWK" >&6; }
2170 else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2173 fi
2176 test -n "$AWK" && break
2177 done
2179 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2181 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2182 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 cat >conftest.make <<\_ACEOF
2186 SHELL = /bin/sh
2187 all:
2188 @echo '@@@%%%=$(MAKE)=@@@%%%'
2189 _ACEOF
2190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2192 *@@@%%%=?*=@@@%%%*)
2193 eval ac_cv_prog_make_${ac_make}_set=yes;;
2194 *)
2195 eval ac_cv_prog_make_${ac_make}_set=no;;
2196 esac
2197 rm -f conftest.make
2198 fi
2199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2200 { echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6; }
2202 SET_MAKE=
2203 else
2204 { echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6; }
2206 SET_MAKE="MAKE=${MAKE-make}"
2207 fi
2209 rm -rf .tst 2>/dev/null
2210 mkdir .tst 2>/dev/null
2211 if test -d .tst; then
2212 am__leading_dot=.
2213 else
2214 am__leading_dot=_
2215 fi
2216 rmdir .tst 2>/dev/null
2218 # test to see if srcdir already configured
2219 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2220 test -f $srcdir/config.status; then
2221 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2222 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2223 { (exit 1); exit 1; }; }
2224 fi
2226 # test whether we have cygpath
2227 if test -z "$CYGPATH_W"; then
2228 if (cygpath --version) >/dev/null 2>/dev/null; then
2229 CYGPATH_W='cygpath -w'
2230 else
2231 CYGPATH_W=echo
2232 fi
2233 fi
2236 # Define the identity of the package.
2237 PACKAGE=lxdream
2238 VERSION=0.9.1
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE "$PACKAGE"
2243 _ACEOF
2246 cat >>confdefs.h <<_ACEOF
2247 #define VERSION "$VERSION"
2248 _ACEOF
2250 # Some tools Automake needs.
2252 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2255 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2258 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2261 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2264 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2266 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2268 # Installed binaries are usually stripped using `strip' when the user
2269 # run `make install-strip'. However `strip' might not be the right
2270 # tool to use in cross-compilation environments, therefore Automake
2271 # will honor the `STRIP' environment variable to overrule this program.
2272 if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275 set dummy ${ac_tool_prefix}strip; ac_word=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_STRIP+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295 done
2296 done
2297 IFS=$as_save_IFS
2299 fi
2300 fi
2301 STRIP=$ac_cv_prog_STRIP
2302 if test -n "$STRIP"; then
2303 { echo "$as_me:$LINENO: result: $STRIP" >&5
2304 echo "${ECHO_T}$STRIP" >&6; }
2305 else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2308 fi
2311 fi
2312 if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315 set dummy strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_STRIP="strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2339 fi
2340 fi
2341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342 if test -n "$ac_ct_STRIP"; then
2343 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2345 else
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2348 fi
2350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354 yes:)
2355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&5
2358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359 whose name does not start with the host triplet. If you think this
2360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361 ac_tool_warned=yes ;;
2362 esac
2363 STRIP=$ac_ct_STRIP
2364 fi
2365 else
2366 STRIP="$ac_cv_prog_STRIP"
2367 fi
2369 fi
2370 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2372 # We need awk for the "check" target. The system "awk" is bad on
2373 # some platforms.
2374 # Always define AMTAR for backward compatibility.
2376 AMTAR=${AMTAR-"${am_missing_run}tar"}
2378 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2384 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2386 # Check whether --enable-maintainer-mode was given.
2387 if test "${enable_maintainer_mode+set}" = set; then
2388 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2389 else
2390 USE_MAINTAINER_MODE=no
2391 fi
2393 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2394 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2397 if test $USE_MAINTAINER_MODE = yes; then
2398 MAINTAINER_MODE_TRUE=
2399 MAINTAINER_MODE_FALSE='#'
2400 else
2401 MAINTAINER_MODE_TRUE='#'
2402 MAINTAINER_MODE_FALSE=
2403 fi
2405 MAINT=$MAINTAINER_MODE_TRUE
2408 ac_config_headers="$ac_config_headers config.h"
2411 DEPDIR="${am__leading_dot}deps"
2413 ac_config_commands="$ac_config_commands depfiles"
2416 am_make=${MAKE-make}
2417 cat > confinc << 'END'
2418 am__doit:
2419 @echo done
2420 .PHONY: am__doit
2421 END
2422 # If we don't find an include directive, just comment out the code.
2423 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2424 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2425 am__include="#"
2426 am__quote=
2427 _am_result=none
2428 # First try GNU make style include.
2429 echo "include confinc" > confmf
2430 # We grep out `Entering directory' and `Leaving directory'
2431 # messages which can occur if `w' ends up in MAKEFLAGS.
2432 # In particular we don't look at `^make:' because GNU make might
2433 # be invoked under some other name (usually "gmake"), in which
2434 # case it prints its new name instead of `make'.
2435 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2436 am__include=include
2437 am__quote=
2438 _am_result=GNU
2439 fi
2440 # Now try BSD make style include.
2441 if test "$am__include" = "#"; then
2442 echo '.include "confinc"' > confmf
2443 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2444 am__include=.include
2445 am__quote="\""
2446 _am_result=BSD
2447 fi
2448 fi
2451 { echo "$as_me:$LINENO: result: $_am_result" >&5
2452 echo "${ECHO_T}$_am_result" >&6; }
2453 rm -f confinc confmf
2455 # Check whether --enable-dependency-tracking was given.
2456 if test "${enable_dependency_tracking+set}" = set; then
2457 enableval=$enable_dependency_tracking;
2458 fi
2460 if test "x$enable_dependency_tracking" != xno; then
2461 am_depcomp="$ac_aux_dir/depcomp"
2462 AMDEPBACKSLASH='\'
2463 fi
2466 if test "x$enable_dependency_tracking" != xno; then
2467 AMDEP_TRUE=
2468 AMDEP_FALSE='#'
2469 else
2470 AMDEP_TRUE='#'
2471 AMDEP_FALSE=
2472 fi
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2516 fi
2519 fi
2520 if test -z "$ac_cv_prog_CC"; then
2521 ac_ct_CC=$CC
2522 # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_CC="gcc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2547 fi
2548 fi
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552 echo "${ECHO_T}$ac_ct_CC" >&6; }
2553 else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2556 fi
2558 if test "x$ac_ct_CC" = x; then
2559 CC=""
2560 else
2561 case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571 CC=$ac_ct_CC
2572 fi
2573 else
2574 CC="$ac_cv_prog_CC"
2575 fi
2577 if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_CC="${ac_tool_prefix}cc"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2599 fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2604 fi
2605 fi
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608 { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2610 else
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2613 fi
2616 fi
2617 fi
2618 if test -z "$CC"; then
2619 # Extract the first word of "cc", so it can be a program name with args.
2620 set dummy cc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 ac_prog_rejected=no
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2638 ac_prog_rejected=yes
2639 continue
2640 fi
2641 ac_cv_prog_CC="cc"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2649 if test $ac_prog_rejected = yes; then
2650 # We found a bogon in the path, so make sure we never use it.
2651 set dummy $ac_cv_prog_CC
2652 shift
2653 if test $# != 0; then
2654 # We chose a different compiler from the bogus one.
2655 # However, it has the same basename, so the bogon will be chosen
2656 # first if we set CC to just the basename; use the full file name.
2657 shift
2658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2659 fi
2660 fi
2661 fi
2662 fi
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2667 else
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670 fi
2673 fi
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 for ac_prog in cl.exe
2677 do
2678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2703 fi
2704 fi
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707 { echo "$as_me:$LINENO: result: $CC" >&5
2708 echo "${ECHO_T}$CC" >&6; }
2709 else
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2715 test -n "$CC" && break
2716 done
2717 fi
2718 if test -z "$CC"; then
2719 ac_ct_CC=$CC
2720 for ac_prog in cl.exe
2721 do
2722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC="$ac_prog"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2747 fi
2748 fi
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2752 echo "${ECHO_T}$ac_ct_CC" >&6; }
2753 else
2754 { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2756 fi
2759 test -n "$ac_ct_CC" && break
2760 done
2762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766 yes:)
2767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2768 whose name does not start with the host triplet. If you think this
2769 configuration is useful to you, please write to autoconf@gnu.org." >&5
2770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2771 whose name does not start with the host triplet. If you think this
2772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 CC=$ac_ct_CC
2776 fi
2777 fi
2779 fi
2782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: no acceptable C compiler found in \$PATH
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2788 # Provide some information about the compiler.
2789 echo "$as_me:$LINENO: checking for C compiler version" >&5
2790 ac_compiler=`set X $ac_compile; echo $2`
2791 { (ac_try="$ac_compiler --version >&5"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_compiler --version >&5") 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }
2801 { (ac_try="$ac_compiler -v >&5"
2802 case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compiler -v >&5") 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811 { (ac_try="$ac_compiler -V >&5"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler -V >&5") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2829 int
2830 main ()
2831 {
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2841 # of exeext.
2842 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2843 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2845 #
2846 # List of possible output files, starting from the most likely.
2847 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2848 # only as a last resort. b.out is created by i960 compilers.
2849 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2850 #
2851 # The IRIX 6 linker writes into existing files which may not be
2852 # executable, retaining their permissions. Remove them first so a
2853 # subsequent execution test works.
2854 ac_rmfiles=
2855 for ac_file in $ac_files
2856 do
2857 case $ac_file in
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2860 esac
2861 done
2862 rm -f $ac_rmfiles
2864 if { (ac_try="$ac_link_default"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_link_default") 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2877 # so that the user can short-circuit this test for compilers unknown to
2878 # Autoconf.
2879 for ac_file in $ac_files ''
2880 do
2881 test -f "$ac_file" || continue
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2884 ;;
2885 [ab].out )
2886 # We found the default executable, but exeext='' is most
2887 # certainly right.
2888 break;;
2889 *.* )
2890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2891 then :; else
2892 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2893 fi
2894 # We set ac_cv_exeext here because the later test for it is not
2895 # safe: cross compilers may not add the suffix if given an `-o'
2896 # argument, so we may need to know it at that point already.
2897 # Even if this section looks crufty: it has the advantage of
2898 # actually working.
2899 break;;
2900 * )
2901 break;;
2902 esac
2903 done
2904 test "$ac_cv_exeext" = no && ac_cv_exeext=
2906 else
2907 ac_file=''
2908 fi
2910 { echo "$as_me:$LINENO: result: $ac_file" >&5
2911 echo "${ECHO_T}$ac_file" >&6; }
2912 if test -z "$ac_file"; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C compiler cannot create executables
2919 See \`config.log' for more details." >&2;}
2920 { (exit 77); exit 77; }; }
2921 fi
2923 ac_exeext=$ac_cv_exeext
2925 # Check that the compiler produces executables we can run. If not, either
2926 # the compiler is broken, or we cross compile.
2927 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2930 # If not cross compiling, check that we can run a simple program.
2931 if test "$cross_compiling" != yes; then
2932 if { ac_try='./$ac_file'
2933 { (case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_try") 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 cross_compiling=no
2943 else
2944 if test "$cross_compiling" = maybe; then
2945 cross_compiling=yes
2946 else
2947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2948 If you meant to cross compile, use \`--host'.
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot run C compiled programs.
2951 If you meant to cross compile, use \`--host'.
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2954 fi
2955 fi
2956 fi
2957 { echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6; }
2960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2966 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2967 echo "${ECHO_T}$cross_compiling" >&6; }
2969 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2971 if { (ac_try="$ac_link"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_link") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2984 # `rm'.
2985 for ac_file in conftest.exe conftest conftest.*; do
2986 test -f "$ac_file" || continue
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 break;;
2991 * ) break;;
2992 esac
2993 done
2994 else
2995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3000 fi
3002 rm -f conftest$ac_cv_exeext
3003 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3004 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3006 rm -f conftest.$ac_ext
3007 EXEEXT=$ac_cv_exeext
3008 ac_exeext=$EXEEXT
3009 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3011 if test "${ac_cv_objext+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3021 int
3022 main ()
3023 {
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.o conftest.obj
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; then
3040 for ac_file in conftest.o conftest.obj conftest.*; do
3041 test -f "$ac_file" || continue;
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3045 break;;
3046 esac
3047 done
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3060 fi
3061 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3062 echo "${ECHO_T}$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3064 ac_objext=$OBJEXT
3065 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3066 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3067 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 int
3078 main ()
3079 {
3080 #ifndef __GNUC__
3081 choke me
3082 #endif
3084 ;
3085 return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3105 ac_compiler_gnu=yes
3106 else
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_compiler_gnu=no
3111 fi
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3116 fi
3117 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3119 GCC=`test $ac_compiler_gnu = yes && echo yes`
3120 ac_test_CFLAGS=${CFLAGS+set}
3121 ac_save_CFLAGS=$CFLAGS
3122 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_g+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 ac_save_c_werror_flag=$ac_c_werror_flag
3128 ac_c_werror_flag=yes
3129 ac_cv_prog_cc_g=no
3130 CFLAGS="-g"
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3138 int
3139 main ()
3140 {
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3163 ac_cv_prog_cc_g=yes
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 CFLAGS=""
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3176 int
3177 main ()
3178 {
3180 ;
3181 return 0;
3182 }
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3201 :
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207 CFLAGS="-g"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 int
3216 main ()
3217 {
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_g=yes
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3246 fi
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 fi
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3256 fi
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3263 CFLAGS="-g -O2"
3264 else
3265 CFLAGS="-g"
3266 fi
3267 else
3268 if test "$GCC" = yes; then
3269 CFLAGS="-O2"
3270 else
3271 CFLAGS=
3272 fi
3273 fi
3274 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3275 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3276 if test "${ac_cv_prog_cc_c89+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 ac_cv_prog_cc_c89=no
3280 ac_save_CC=$CC
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdarg.h>
3288 #include <stdio.h>
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3295 char **p;
3296 int i;
3297 {
3298 return p[i];
3299 }
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3301 {
3302 char *s;
3303 va_list v;
3304 va_start (v,p);
3305 s = g (p, va_arg (v,int));
3306 va_end (v);
3307 return s;
3308 }
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320 inside strings and character constants. */
3321 #define FOO(x) 'x'
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 int argc;
3329 char **argv;
3330 int
3331 main ()
3332 {
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 do
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3359 ac_cv_prog_cc_c89=$ac_arg
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3365 fi
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3369 done
3370 rm -f conftest.$ac_ext
3371 CC=$ac_save_CC
3373 fi
3374 # AC_CACHE_VAL
3375 case "x$ac_cv_prog_cc_c89" in
3376 x)
3377 { echo "$as_me:$LINENO: result: none needed" >&5
3378 echo "${ECHO_T}none needed" >&6; } ;;
3379 xno)
3380 { echo "$as_me:$LINENO: result: unsupported" >&5
3381 echo "${ECHO_T}unsupported" >&6; } ;;
3382 *)
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3386 esac
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 depcc="$CC" am_compiler_list=
3397 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3399 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3403 # We make a subdir and do the tests there. Otherwise we can end up
3404 # making bogus files that we don't know about and never remove. For
3405 # instance it was reported that on HP-UX the gcc test will end up
3406 # making a dummy file named `D' -- because `-MD' means `put the output
3407 # in D'.
3408 mkdir conftest.dir
3409 # Copy depcomp to subdir because otherwise we won't find it if we're
3410 # using a relative directory.
3411 cp "$am_depcomp" conftest.dir
3412 cd conftest.dir
3413 # We will build objects and dependencies in a subdirectory because
3414 # it helps to detect inapplicable dependency modes. For instance
3415 # both Tru64's cc and ICC support -MD to output dependencies as a
3416 # side effect of compilation, but ICC will put the dependencies in
3417 # the current directory while Tru64 will put them in the object
3418 # directory.
3419 mkdir sub
3421 am_cv_CC_dependencies_compiler_type=none
3422 if test "$am_compiler_list" = ""; then
3423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3424 fi
3425 for depmode in $am_compiler_list; do
3426 # Setup a source with many dependencies, because some compilers
3427 # like to wrap large dependency lists on column 80 (with \), and
3428 # we should not choose a depcomp mode which is confused by this.
3429 #
3430 # We need to recreate these files for each test, as the compiler may
3431 # overwrite some of them when testing with obscure command lines.
3432 # This happens at least with the AIX C compiler.
3433 : > sub/conftest.c
3434 for i in 1 2 3 4 5 6; do
3435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3437 # Solaris 8's {/usr,}/bin/sh.
3438 touch sub/conftst$i.h
3439 done
3440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3442 case $depmode in
3443 nosideeffect)
3444 # after this tag, mechanisms are not by side-effect, so they'll
3445 # only be used when explicitly requested
3446 if test "x$enable_dependency_tracking" = xyes; then
3447 continue
3448 else
3449 break
3450 fi
3451 ;;
3452 none) break ;;
3453 esac
3454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3455 # mode. It turns out that the SunPro C++ compiler does not properly
3456 # handle `-M -o', and we need to detect this.
3457 if depmode=$depmode \
3458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3461 >/dev/null 2>conftest.err &&
3462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3465 # icc doesn't choke on unknown options, it will just issue warnings
3466 # or remarks (even with -Werror). So we grep stderr for any message
3467 # that says an option was ignored or not supported.
3468 # When given -MP, icc 7.0 and 7.1 complain thusly:
3469 # icc: Command line warning: ignoring option '-M'; no argument required
3470 # The diagnosis changed in icc 8.0:
3471 # icc: Command line remark: option '-MP' not supported
3472 if (grep 'ignoring option' conftest.err ||
3473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3474 am_cv_CC_dependencies_compiler_type=$depmode
3475 break
3476 fi
3477 fi
3478 done
3480 cd ..
3481 rm -rf conftest.dir
3482 else
3483 am_cv_CC_dependencies_compiler_type=none
3484 fi
3486 fi
3487 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3488 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3489 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3493 if
3494 test "x$enable_dependency_tracking" != xno \
3495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3496 am__fastdepCC_TRUE=
3497 am__fastdepCC_FALSE='#'
3498 else
3499 am__fastdepCC_TRUE='#'
3500 am__fastdepCC_FALSE=
3501 fi
3506 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3507 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3508 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 ac_check_lib_save_LIBS=$LIBS
3512 LIBS="-lcposix $LIBS"
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 char strerror ();
3527 int
3528 main ()
3529 {
3530 return strerror ();
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext conftest$ac_exeext
3536 if { (ac_try="$ac_link"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_link") 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest$ac_exeext &&
3552 $as_test_x conftest$ac_exeext; then
3553 ac_cv_lib_cposix_strerror=yes
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_cv_lib_cposix_strerror=no
3559 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3562 conftest$ac_exeext conftest.$ac_ext
3563 LIBS=$ac_check_lib_save_LIBS
3564 fi
3565 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3566 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3567 if test $ac_cv_lib_cposix_strerror = yes; then
3568 LIBS="$LIBS -lcposix"
3569 fi
3573 ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600 done
3601 done
3602 IFS=$as_save_IFS
3604 fi
3605 fi
3606 CC=$ac_cv_prog_CC
3607 if test -n "$CC"; then
3608 { echo "$as_me:$LINENO: result: $CC" >&5
3609 echo "${ECHO_T}$CC" >&6; }
3610 else
3611 { echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6; }
3613 fi
3616 fi
3617 if test -z "$ac_cv_prog_CC"; then
3618 ac_ct_CC=$CC
3619 # Extract the first word of "gcc", so it can be a program name with args.
3620 set dummy gcc; ac_word=$2
3621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3636 ac_cv_prog_ac_ct_CC="gcc"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3644 fi
3645 fi
3646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3647 if test -n "$ac_ct_CC"; then
3648 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3649 echo "${ECHO_T}$ac_ct_CC" >&6; }
3650 else
3651 { echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6; }
3653 fi
3655 if test "x$ac_ct_CC" = x; then
3656 CC=""
3657 else
3658 case $cross_compiling:$ac_tool_warned in
3659 yes:)
3660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3661 whose name does not start with the host triplet. If you think this
3662 configuration is useful to you, please write to autoconf@gnu.org." >&5
3663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3664 whose name does not start with the host triplet. If you think this
3665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3666 ac_tool_warned=yes ;;
3667 esac
3668 CC=$ac_ct_CC
3669 fi
3670 else
3671 CC="$ac_cv_prog_CC"
3672 fi
3674 if test -z "$CC"; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}cc; ac_word=$2
3678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3680 if test "${ac_cv_prog_CC+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_CC="${ac_tool_prefix}cc"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3701 fi
3702 fi
3703 CC=$ac_cv_prog_CC
3704 if test -n "$CC"; then
3705 { echo "$as_me:$LINENO: result: $CC" >&5
3706 echo "${ECHO_T}$CC" >&6; }
3707 else
3708 { echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6; }
3710 fi
3713 fi
3714 fi
3715 if test -z "$CC"; then
3716 # Extract the first word of "cc", so it can be a program name with args.
3717 set dummy cc; ac_word=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_prog_CC+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3725 else
3726 ac_prog_rejected=no
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3735 ac_prog_rejected=yes
3736 continue
3737 fi
3738 ac_cv_prog_CC="cc"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3746 if test $ac_prog_rejected = yes; then
3747 # We found a bogon in the path, so make sure we never use it.
3748 set dummy $ac_cv_prog_CC
3749 shift
3750 if test $# != 0; then
3751 # We chose a different compiler from the bogus one.
3752 # However, it has the same basename, so the bogon will be chosen
3753 # first if we set CC to just the basename; use the full file name.
3754 shift
3755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3756 fi
3757 fi
3758 fi
3759 fi
3760 CC=$ac_cv_prog_CC
3761 if test -n "$CC"; then
3762 { echo "$as_me:$LINENO: result: $CC" >&5
3763 echo "${ECHO_T}$CC" >&6; }
3764 else
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3767 fi
3770 fi
3771 if test -z "$CC"; then
3772 if test -n "$ac_tool_prefix"; then
3773 for ac_prog in cl.exe
3774 do
3775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3779 if test "${ac_cv_prog_CC+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
3796 done
3797 done
3798 IFS=$as_save_IFS
3800 fi
3801 fi
3802 CC=$ac_cv_prog_CC
3803 if test -n "$CC"; then
3804 { echo "$as_me:$LINENO: result: $CC" >&5
3805 echo "${ECHO_T}$CC" >&6; }
3806 else
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3809 fi
3812 test -n "$CC" && break
3813 done
3814 fi
3815 if test -z "$CC"; then
3816 ac_ct_CC=$CC
3817 for ac_prog in cl.exe
3818 do
3819 # Extract the first word of "$ac_prog", so it can be a program name with args.
3820 set dummy $ac_prog; ac_word=$2
3821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 if test -n "$ac_ct_CC"; then
3827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_ac_ct_CC="$ac_prog"
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840 done
3841 done
3842 IFS=$as_save_IFS
3844 fi
3845 fi
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3849 echo "${ECHO_T}$ac_ct_CC" >&6; }
3850 else
3851 { echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6; }
3853 fi
3856 test -n "$ac_ct_CC" && break
3857 done
3859 if test "x$ac_ct_CC" = x; then
3860 CC=""
3861 else
3862 case $cross_compiling:$ac_tool_warned in
3863 yes:)
3864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3865 whose name does not start with the host triplet. If you think this
3866 configuration is useful to you, please write to autoconf@gnu.org." >&5
3867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3868 whose name does not start with the host triplet. If you think this
3869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3870 ac_tool_warned=yes ;;
3871 esac
3872 CC=$ac_ct_CC
3873 fi
3874 fi
3876 fi
3879 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3880 See \`config.log' for more details." >&5
3881 echo "$as_me: error: no acceptable C compiler found in \$PATH
3882 See \`config.log' for more details." >&2;}
3883 { (exit 1); exit 1; }; }
3885 # Provide some information about the compiler.
3886 echo "$as_me:$LINENO: checking for C compiler version" >&5
3887 ac_compiler=`set X $ac_compile; echo $2`
3888 { (ac_try="$ac_compiler --version >&5"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_compiler --version >&5") 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3898 { (ac_try="$ac_compiler -v >&5"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compiler -v >&5") 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }
3908 { (ac_try="$ac_compiler -V >&5"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compiler -V >&5") 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }
3919 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3931 int
3932 main ()
3933 {
3934 #ifndef __GNUC__
3935 choke me
3936 #endif
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (ac_try="$ac_compile"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && {
3956 test -z "$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3958 } && test -s conftest.$ac_objext; then
3959 ac_compiler_gnu=yes
3960 else
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 ac_compiler_gnu=no
3965 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3970 fi
3971 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3972 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3973 GCC=`test $ac_compiler_gnu = yes && echo yes`
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3978 if test "${ac_cv_prog_cc_g+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981 ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3983 ac_cv_prog_cc_g=no
3984 CFLAGS="-g"
3985 cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h. */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3992 int
3993 main ()
3994 {
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.$ac_objext
4001 if { (ac_try="$ac_compile"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_compile") 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
4017 ac_cv_prog_cc_g=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 CFLAGS=""
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4030 int
4031 main ()
4032 {
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4055 :
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ac_c_werror_flag=$ac_save_c_werror_flag
4061 CFLAGS="-g"
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4069 int
4070 main ()
4071 {
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
4094 ac_cv_prog_cc_g=yes
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4100 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4110 fi
4111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4117 CFLAGS="-g -O2"
4118 else
4119 CFLAGS="-g"
4120 fi
4121 else
4122 if test "$GCC" = yes; then
4123 CFLAGS="-O2"
4124 else
4125 CFLAGS=
4126 fi
4127 fi
4128 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4129 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4130 if test "${ac_cv_prog_cc_c89+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 ac_cv_prog_cc_c89=no
4134 ac_save_CC=$CC
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <stdarg.h>
4142 #include <stdio.h>
4143 #include <sys/types.h>
4144 #include <sys/stat.h>
4145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4146 struct buf { int x; };
4147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4148 static char *e (p, i)
4149 char **p;
4150 int i;
4151 {
4152 return p[i];
4153 }
4154 static char *f (char * (*g) (char **, int), char **p, ...)
4155 {
4156 char *s;
4157 va_list v;
4158 va_start (v,p);
4159 s = g (p, va_arg (v,int));
4160 va_end (v);
4161 return s;
4162 }
4164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4165 function prototypes and stuff, but not '\xHH' hex character constants.
4166 These don't provoke an error unfortunately, instead are silently treated
4167 as 'x'. The following induces an error, until -std is added to get
4168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4169 array size at least. It's necessary to write '\x00'==0 to get something
4170 that's true only with -std. */
4171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4174 inside strings and character constants. */
4175 #define FOO(x) 'x'
4176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4178 int test (int i, double x);
4179 struct s1 {int (*f) (int a);};
4180 struct s2 {int (*f) (double a);};
4181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4182 int argc;
4183 char **argv;
4184 int
4185 main ()
4186 {
4187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4194 do
4195 CC="$ac_save_CC $ac_arg"
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && {
4210 test -z "$ac_c_werror_flag" ||
4211 test ! -s conftest.err
4212 } && test -s conftest.$ac_objext; then
4213 ac_cv_prog_cc_c89=$ac_arg
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4219 fi
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4223 done
4224 rm -f conftest.$ac_ext
4225 CC=$ac_save_CC
4227 fi
4228 # AC_CACHE_VAL
4229 case "x$ac_cv_prog_cc_c89" in
4230 x)
4231 { echo "$as_me:$LINENO: result: none needed" >&5
4232 echo "${ECHO_T}none needed" >&6; } ;;
4233 xno)
4234 { echo "$as_me:$LINENO: result: unsupported" >&5
4235 echo "${ECHO_T}unsupported" >&6; } ;;
4236 *)
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4239 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4240 esac
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 depcc="$CC" am_compiler_list=
4251 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4252 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4253 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4257 # We make a subdir and do the tests there. Otherwise we can end up
4258 # making bogus files that we don't know about and never remove. For
4259 # instance it was reported that on HP-UX the gcc test will end up
4260 # making a dummy file named `D' -- because `-MD' means `put the output
4261 # in D'.
4262 mkdir conftest.dir
4263 # Copy depcomp to subdir because otherwise we won't find it if we're
4264 # using a relative directory.
4265 cp "$am_depcomp" conftest.dir
4266 cd conftest.dir
4267 # We will build objects and dependencies in a subdirectory because
4268 # it helps to detect inapplicable dependency modes. For instance
4269 # both Tru64's cc and ICC support -MD to output dependencies as a
4270 # side effect of compilation, but ICC will put the dependencies in
4271 # the current directory while Tru64 will put them in the object
4272 # directory.
4273 mkdir sub
4275 am_cv_CC_dependencies_compiler_type=none
4276 if test "$am_compiler_list" = ""; then
4277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4278 fi
4279 for depmode in $am_compiler_list; do
4280 # Setup a source with many dependencies, because some compilers
4281 # like to wrap large dependency lists on column 80 (with \), and
4282 # we should not choose a depcomp mode which is confused by this.
4283 #
4284 # We need to recreate these files for each test, as the compiler may
4285 # overwrite some of them when testing with obscure command lines.
4286 # This happens at least with the AIX C compiler.
4287 : > sub/conftest.c
4288 for i in 1 2 3 4 5 6; do
4289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4290 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4291 # Solaris 8's {/usr,}/bin/sh.
4292 touch sub/conftst$i.h
4293 done
4294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296 case $depmode in
4297 nosideeffect)
4298 # after this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested
4300 if test "x$enable_dependency_tracking" = xyes; then
4301 continue
4302 else
4303 break
4304 fi
4305 ;;
4306 none) break ;;
4307 esac
4308 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4309 # mode. It turns out that the SunPro C++ compiler does not properly
4310 # handle `-M -o', and we need to detect this.
4311 if depmode=$depmode \
4312 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4314 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4315 >/dev/null 2>conftest.err &&
4316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4317 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4319 # icc doesn't choke on unknown options, it will just issue warnings
4320 # or remarks (even with -Werror). So we grep stderr for any message
4321 # that says an option was ignored or not supported.
4322 # When given -MP, icc 7.0 and 7.1 complain thusly:
4323 # icc: Command line warning: ignoring option '-M'; no argument required
4324 # The diagnosis changed in icc 8.0:
4325 # icc: Command line remark: option '-MP' not supported
4326 if (grep 'ignoring option' conftest.err ||
4327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4328 am_cv_CC_dependencies_compiler_type=$depmode
4329 break
4330 fi
4331 fi
4332 done
4334 cd ..
4335 rm -rf conftest.dir
4336 else
4337 am_cv_CC_dependencies_compiler_type=none
4338 fi
4340 fi
4341 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4342 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4343 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4347 if
4348 test "x$enable_dependency_tracking" != xno \
4349 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4350 am__fastdepCC_TRUE=
4351 am__fastdepCC_FALSE='#'
4352 else
4353 am__fastdepCC_TRUE='#'
4354 am__fastdepCC_FALSE=
4355 fi
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4364 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4365 # On Suns, sometimes $CPP names a directory.
4366 if test -n "$CPP" && test -d "$CPP"; then
4367 CPP=
4368 fi
4369 if test -z "$CPP"; then
4370 if test "${ac_cv_prog_CPP+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 # Double quotes because CPP needs to be expanded
4374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4375 do
4376 ac_preproc_ok=false
4377 for ac_c_preproc_warn_flag in '' yes
4378 do
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h. */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 #ifdef __STDC__
4392 # include <limits.h>
4393 #else
4394 # include <assert.h>
4395 #endif
4396 Syntax error
4397 _ACEOF
4398 if { (ac_try="$ac_cpp conftest.$ac_ext"
4399 case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } >/dev/null && {
4411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4413 }; then
4414 :
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 # Broken: fails on valid input.
4420 continue
4421 fi
4423 rm -f conftest.err conftest.$ac_ext
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <ac_nonexistent.h>
4434 _ACEOF
4435 if { (ac_try="$ac_cpp conftest.$ac_ext"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } >/dev/null && {
4448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4449 test ! -s conftest.err
4450 }; then
4451 # Broken: success on invalid input.
4452 continue
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 # Passes both tests.
4458 ac_preproc_ok=:
4459 break
4460 fi
4462 rm -f conftest.err conftest.$ac_ext
4464 done
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then
4468 break
4469 fi
4471 done
4472 ac_cv_prog_CPP=$CPP
4474 fi
4475 CPP=$ac_cv_prog_CPP
4476 else
4477 ac_cv_prog_CPP=$CPP
4478 fi
4479 { echo "$as_me:$LINENO: result: $CPP" >&5
4480 echo "${ECHO_T}$CPP" >&6; }
4481 ac_preproc_ok=false
4482 for ac_c_preproc_warn_flag in '' yes
4483 do
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #ifdef __STDC__
4497 # include <limits.h>
4498 #else
4499 # include <assert.h>
4500 #endif
4501 Syntax error
4502 _ACEOF
4503 if { (ac_try="$ac_cpp conftest.$ac_ext"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } >/dev/null && {
4516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4517 test ! -s conftest.err
4518 }; then
4519 :
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 # Broken: fails on valid input.
4525 continue
4526 fi
4528 rm -f conftest.err conftest.$ac_ext
4530 # OK, works on sane cases. Now check whether nonexistent headers
4531 # can be detected and how.
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <ac_nonexistent.h>
4539 _ACEOF
4540 if { (ac_try="$ac_cpp conftest.$ac_ext"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4547 ac_status=$?
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } >/dev/null && {
4553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4554 test ! -s conftest.err
4555 }; then
4556 # Broken: success on invalid input.
4557 continue
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 # Passes both tests.
4563 ac_preproc_ok=:
4564 break
4565 fi
4567 rm -f conftest.err conftest.$ac_ext
4569 done
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then
4573 :
4574 else
4575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details." >&5
4577 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details." >&2;}
4579 { (exit 1); exit 1; }; }
4580 fi
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 # Make sure we can run config.sub.
4590 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4591 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4592 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4593 { (exit 1); exit 1; }; }
4595 { echo "$as_me:$LINENO: checking build system type" >&5
4596 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4597 if test "${ac_cv_build+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 ac_build_alias=$build_alias
4601 test "x$ac_build_alias" = x &&
4602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4603 test "x$ac_build_alias" = x &&
4604 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4605 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4606 { (exit 1); exit 1; }; }
4607 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4609 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4610 { (exit 1); exit 1; }; }
4612 fi
4613 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4614 echo "${ECHO_T}$ac_cv_build" >&6; }
4615 case $ac_cv_build in
4616 *-*-*) ;;
4617 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4618 echo "$as_me: error: invalid value of canonical build" >&2;}
4619 { (exit 1); exit 1; }; };;
4620 esac
4621 build=$ac_cv_build
4622 ac_save_IFS=$IFS; IFS='-'
4623 set x $ac_cv_build
4624 shift
4625 build_cpu=$1
4626 build_vendor=$2
4627 shift; shift
4628 # Remember, the first character of IFS is used to create $*,
4629 # except with old shells:
4630 build_os=$*
4631 IFS=$ac_save_IFS
4632 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4635 { echo "$as_me:$LINENO: checking host system type" >&5
4636 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4637 if test "${ac_cv_host+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test "x$host_alias" = x; then
4641 ac_cv_host=$ac_cv_build
4642 else
4643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4644 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4645 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4646 { (exit 1); exit 1; }; }
4647 fi
4649 fi
4650 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4651 echo "${ECHO_T}$ac_cv_host" >&6; }
4652 case $ac_cv_host in
4653 *-*-*) ;;
4654 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4655 echo "$as_me: error: invalid value of canonical host" >&2;}
4656 { (exit 1); exit 1; }; };;
4657 esac
4658 host=$ac_cv_host
4659 ac_save_IFS=$IFS; IFS='-'
4660 set x $ac_cv_host
4661 shift
4662 host_cpu=$1
4663 host_vendor=$2
4664 shift; shift
4665 # Remember, the first character of IFS is used to create $*,
4666 # except with old shells:
4667 host_os=$*
4668 IFS=$ac_save_IFS
4669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4672 ac_main_cc="$CC"
4673 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
4675 if test -z "$CC_FOR_BUILD"; then
4676 if test "$#" = yes; then
4677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4678 See \`config.log' for more details." >&5
4679 echo "$as_me: error: cannot run test program while cross compiling
4680 See \`config.log' for more details." >&2;}
4681 { (exit 1); exit 1; }; }
4682 else
4683 cat >conftest.$ac_ext <<_ACEOF
4684 int main(){return 0;}
4685 _ACEOF
4686 rm -f conftest$ac_exeext
4687 if { (ac_try="$ac_link"
4688 case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_link") 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4697 { (case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_try") 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 CC_FOR_BUILD="$CC"
4707 else
4708 echo "$as_me: program exited with status $ac_status" >&5
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 fi
4713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4714 fi
4717 fi
4719 ac_ext=c
4720 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4721 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4722 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724 if test -n "$ac_build_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4726 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$CC_FOR_BUILD"; then
4733 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4750 fi
4751 fi
4752 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4753 if test -n "$CC_FOR_BUILD"; then
4754 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4755 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4759 fi
4762 fi
4763 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4764 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4765 # Extract the first word of "gcc", so it can be a program name with args.
4766 set dummy gcc; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if test -n "$ac_ct_CC_FOR_BUILD"; then
4773 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4790 fi
4791 fi
4792 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4793 if test -n "$ac_ct_CC_FOR_BUILD"; then
4794 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
4795 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
4796 else
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4799 fi
4801 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4802 CC_FOR_BUILD=""
4803 else
4804 case $#:$ac_tool_warned in
4805 yes:)
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the build triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the build triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4815 fi
4816 else
4817 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4818 fi
4820 if test -z "$CC_FOR_BUILD"; then
4821 if test -n "$ac_build_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4823 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 if test -n "$CC_FOR_BUILD"; then
4830 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4847 fi
4848 fi
4849 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4850 if test -n "$CC_FOR_BUILD"; then
4851 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4852 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4853 else
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4859 fi
4860 fi
4861 if test -z "$CC_FOR_BUILD"; then
4862 # Extract the first word of "cc", so it can be a program name with args.
4863 set dummy cc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 if test -n "$CC_FOR_BUILD"; then
4870 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4871 else
4872 ac_prog_rejected=no
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4881 ac_prog_rejected=yes
4882 continue
4883 fi
4884 ac_cv_prog_CC_FOR_BUILD="cc"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4892 if test $ac_prog_rejected = yes; then
4893 # We found a bogon in the path, so make sure we never use it.
4894 set dummy $ac_cv_prog_CC_FOR_BUILD
4895 shift
4896 if test $# != 0; then
4897 # We chose a different compiler from the bogus one.
4898 # However, it has the same basename, so the bogon will be chosen
4899 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4900 shift
4901 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4902 fi
4903 fi
4904 fi
4905 fi
4906 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4907 if test -n "$CC_FOR_BUILD"; then
4908 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4909 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4910 else
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4913 fi
4916 fi
4917 if test -z "$CC_FOR_BUILD"; then
4918 if test -n "$ac_build_tool_prefix"; then
4919 for ac_prog in cl.exe
4920 do
4921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 if test -n "$CC_FOR_BUILD"; then
4929 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4946 fi
4947 fi
4948 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4949 if test -n "$CC_FOR_BUILD"; then
4950 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4951 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4952 else
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4955 fi
4958 test -n "$CC_FOR_BUILD" && break
4959 done
4960 fi
4961 if test -z "$CC_FOR_BUILD"; then
4962 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4963 for ac_prog in cl.exe
4964 do
4965 # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 if test -n "$ac_ct_CC_FOR_BUILD"; then
4973 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4990 fi
4991 fi
4992 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4993 if test -n "$ac_ct_CC_FOR_BUILD"; then
4994 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
4995 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
4996 else
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5002 test -n "$ac_ct_CC_FOR_BUILD" && break
5003 done
5005 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5006 CC_FOR_BUILD=""
5007 else
5008 case $#:$ac_tool_warned in
5009 yes:)
5010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the build triplet. If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&5
5013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5014 whose name does not start with the build triplet. If you think this
5015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5016 ac_tool_warned=yes ;;
5017 esac
5018 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5019 fi
5020 fi
5022 fi
5025 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5026 See \`config.log' for more details." >&5
5027 echo "$as_me: error: no acceptable C compiler found in \$PATH
5028 See \`config.log' for more details." >&2;}
5029 { (exit 1); exit 1; }; }
5031 # Provide some information about the compiler.
5032 echo "$as_me:$LINENO: checking for C compiler version" >&5
5033 ac_compiler=`set X $ac_build_compile; echo $2`
5034 { (ac_try="$ac_compiler --version >&5"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_compiler --version >&5") 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }
5044 { (ac_try="$ac_compiler -v >&5"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_compiler -v >&5") 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }
5054 { (ac_try="$ac_compiler -V >&5"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_compiler -V >&5") 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }
5065 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5066 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5067 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5077 int
5078 main ()
5079 {
5080 #ifndef __GNUC__
5081 choke me
5082 #endif
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_build_objext
5089 if { (ac_try="$ac_build_compile"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_build_compile") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_build_objext; then
5105 ac_compiler_gnu=yes
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ac_compiler_gnu=no
5111 fi
5113 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5116 fi
5117 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5119 GCC=`test $ac_compiler_gnu = yes && echo yes`
5120 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5121 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5122 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5123 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5124 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 ac_save_c_werror_flag=$ac_c_werror_flag
5128 ac_c_werror_flag=yes
5129 ac_cv_build_prog_cc_g=no
5130 CFLAGS_FOR_BUILD="-g"
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5138 int
5139 main ()
5140 {
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest.$ac_build_objext
5147 if { (ac_try="$ac_build_compile"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_build_compile") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_build_objext; then
5163 ac_cv_build_prog_cc_g=yes
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 CFLAGS_FOR_BUILD=""
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 int
5177 main ()
5178 {
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_build_objext
5185 if { (ac_try="$ac_build_compile"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_build_compile") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_build_objext; then
5201 :
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_c_werror_flag=$ac_save_c_werror_flag
5207 CFLAGS_FOR_BUILD="-g"
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5215 int
5216 main ()
5217 {
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 rm -f conftest.$ac_build_objext
5224 if { (ac_try="$ac_build_compile"
5225 case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228 esac
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_build_compile") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_build_objext; then
5240 ac_cv_build_prog_cc_g=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5246 fi
5248 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5249 fi
5251 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5252 fi
5254 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5255 ac_c_werror_flag=$ac_save_c_werror_flag
5256 fi
5257 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
5258 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
5259 if test "$ac_test_CFLAGS" = set; then
5260 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5261 elif test $ac_cv_build_prog_cc_g = yes; then
5262 if test "$GCC" = yes; then
5263 CFLAGS_FOR_BUILD="-g -O2"
5264 else
5265 CFLAGS_FOR_BUILD="-g"
5266 fi
5267 else
5268 if test "$GCC" = yes; then
5269 CFLAGS_FOR_BUILD="-O2"
5270 else
5271 CFLAGS_FOR_BUILD=
5272 fi
5273 fi
5274 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5275 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_cc_c89+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 ac_cv_prog_cc_c89=no
5280 ac_save_CC=$CC_FOR_BUILD
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 #include <stdarg.h>
5288 #include <stdio.h>
5289 #include <sys/types.h>
5290 #include <sys/stat.h>
5291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5292 struct buf { int x; };
5293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5294 static char *e (p, i)
5295 char **p;
5296 int i;
5297 {
5298 return p[i];
5299 }
5300 static char *f (char * (*g) (char **, int), char **p, ...)
5301 {
5302 char *s;
5303 va_list v;
5304 va_start (v,p);
5305 s = g (p, va_arg (v,int));
5306 va_end (v);
5307 return s;
5308 }
5310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5311 function prototypes and stuff, but not '\xHH' hex character constants.
5312 These don't provoke an error unfortunately, instead are silently treated
5313 as 'x'. The following induces an error, until -std is added to get
5314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5315 array size at least. It's necessary to write '\x00'==0 to get something
5316 that's true only with -std. */
5317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5320 inside strings and character constants. */
5321 #define FOO(x) 'x'
5322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5324 int test (int i, double x);
5325 struct s1 {int (*f) (int a);};
5326 struct s2 {int (*f) (double a);};
5327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5328 int argc;
5329 char **argv;
5330 int
5331 main ()
5332 {
5333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5340 do
5341 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5342 rm -f conftest.$ac_build_objext
5343 if { (ac_try="$ac_build_compile"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_build_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_build_objext; then
5359 ac_cv_prog_cc_c89=$ac_arg
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5365 fi
5367 rm -f core conftest.err conftest.$ac_build_objext
5368 test "x$ac_cv_prog_cc_c89" != "xno" && break
5369 done
5370 rm -f conftest.$ac_ext
5371 CC_FOR_BUILD=$ac_save_CC
5373 fi
5374 # AC_CACHE_VAL
5375 case "x$ac_cv_prog_cc_c89" in
5376 x)
5377 { echo "$as_me:$LINENO: result: none needed" >&5
5378 echo "${ECHO_T}none needed" >&6; } ;;
5379 xno)
5380 { echo "$as_me:$LINENO: result: unsupported" >&5
5381 echo "${ECHO_T}unsupported" >&6; } ;;
5382 *)
5383 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5385 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5386 esac
5389 ac_ext=c
5390 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5391 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5392 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395 depcc="$CC_FOR_BUILD" am_compiler_list=
5397 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5399 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5403 # We make a subdir and do the tests there. Otherwise we can end up
5404 # making bogus files that we don't know about and never remove. For
5405 # instance it was reported that on HP-UX the gcc test will end up
5406 # making a dummy file named `D' -- because `-MD' means `put the output
5407 # in D'.
5408 mkdir conftest.dir
5409 # Copy depcomp to subdir because otherwise we won't find it if we're
5410 # using a relative directory.
5411 cp "$am_depcomp" conftest.dir
5412 cd conftest.dir
5413 # We will build objects and dependencies in a subdirectory because
5414 # it helps to detect inapplicable dependency modes. For instance
5415 # both Tru64's cc and ICC support -MD to output dependencies as a
5416 # side effect of compilation, but ICC will put the dependencies in
5417 # the current directory while Tru64 will put them in the object
5418 # directory.
5419 mkdir sub
5421 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
5422 if test "$am_compiler_list" = ""; then
5423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5424 fi
5425 for depmode in $am_compiler_list; do
5426 # Setup a source with many dependencies, because some compilers
5427 # like to wrap large dependency lists on column 80 (with \), and
5428 # we should not choose a depcomp mode which is confused by this.
5429 #
5430 # We need to recreate these files for each test, as the compiler may
5431 # overwrite some of them when testing with obscure command lines.
5432 # This happens at least with the AIX C compiler.
5433 : > sub/conftest.c
5434 for i in 1 2 3 4 5 6; do
5435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5437 # Solaris 8's {/usr,}/bin/sh.
5438 touch sub/conftst$i.h
5439 done
5440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5442 case $depmode in
5443 nosideeffect)
5444 # after this tag, mechanisms are not by side-effect, so they'll
5445 # only be used when explicitly requested
5446 if test "x$enable_dependency_tracking" = xyes; then
5447 continue
5448 else
5449 break
5450 fi
5451 ;;
5452 none) break ;;
5453 esac
5454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5455 # mode. It turns out that the SunPro C++ compiler does not properly
5456 # handle `-M -o', and we need to detect this.
5457 if depmode=$depmode \
5458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5461 >/dev/null 2>conftest.err &&
5462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5465 # icc doesn't choke on unknown options, it will just issue warnings
5466 # or remarks (even with -Werror). So we grep stderr for any message
5467 # that says an option was ignored or not supported.
5468 # When given -MP, icc 7.0 and 7.1 complain thusly:
5469 # icc: Command line warning: ignoring option '-M'; no argument required
5470 # The diagnosis changed in icc 8.0:
5471 # icc: Command line remark: option '-MP' not supported
5472 if (grep 'ignoring option' conftest.err ||
5473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5474 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
5475 break
5476 fi
5477 fi
5478 done
5480 cd ..
5481 rm -rf conftest.dir
5482 else
5483 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
5484 fi
5486 fi
5487 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
5488 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
5489 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
5493 if
5494 test "x$enable_dependency_tracking" != xno \
5495 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
5496 am__fastdepCC_FOR_BUILD_TRUE=
5497 am__fastdepCC_FOR_BUILD_FALSE='#'
5498 else
5499 am__fastdepCC_FOR_BUILD_TRUE='#'
5500 am__fastdepCC_FOR_BUILD_FALSE=
5501 fi
5504 ac_ext=c
5505 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5506 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5507 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5511 # On Suns, sometimes $CPP names a directory.
5512 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5513 CPP_FOR_BUILD=
5514 fi
5515 if test -z "$CPP_FOR_BUILD"; then
5516 if test "${ac_cv_build_prog_CPP+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 # Double quotes because CPP needs to be expanded
5520 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5521 do
5522 ac_preproc_ok=false
5523 for ac_c_preproc_warn_flag in '' yes
5524 do
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #ifdef __STDC__
5538 # include <limits.h>
5539 #else
5540 # include <assert.h>
5541 #endif
5542 Syntax error
5543 _ACEOF
5544 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5545 case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null && {
5557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 }; then
5560 :
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 # Broken: fails on valid input.
5566 continue
5567 fi
5569 rm -f conftest.err conftest.$ac_ext
5571 # OK, works on sane cases. Now check whether nonexistent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } >/dev/null && {
5594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 }; then
5597 # Broken: success on invalid input.
5598 continue
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 # Passes both tests.
5604 ac_preproc_ok=:
5605 break
5606 fi
5608 rm -f conftest.err conftest.$ac_ext
5610 done
5611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612 rm -f conftest.err conftest.$ac_ext
5613 if $ac_preproc_ok; then
5614 break
5615 fi
5617 done
5618 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5620 fi
5621 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5622 else
5623 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5624 fi
5625 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
5626 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
5627 ac_preproc_ok=false
5628 for ac_c_preproc_warn_flag in '' yes
5629 do
5630 # Use a header file that comes with gcc, so configuring glibc
5631 # with a fresh cross-compiler works.
5632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5633 # <limits.h> exists even on freestanding compilers.
5634 # On the NeXT, cc -E runs the code through the compiler's parser,
5635 # not just through cpp. "Syntax error" is here to catch this case.
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #ifdef __STDC__
5643 # include <limits.h>
5644 #else
5645 # include <assert.h>
5646 #endif
5647 Syntax error
5648 _ACEOF
5649 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev/null && {
5662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 }; then
5665 :
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 # Broken: fails on valid input.
5671 continue
5672 fi
5674 rm -f conftest.err conftest.$ac_ext
5676 # OK, works on sane cases. Now check whether nonexistent headers
5677 # can be detected and how.
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #include <ac_nonexistent.h>
5685 _ACEOF
5686 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null && {
5699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 }; then
5702 # Broken: success on invalid input.
5703 continue
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 # Passes both tests.
5709 ac_preproc_ok=:
5710 break
5711 fi
5713 rm -f conftest.err conftest.$ac_ext
5715 done
5716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5717 rm -f conftest.err conftest.$ac_ext
5718 if $ac_preproc_ok; then
5719 :
5720 else
5721 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5722 See \`config.log' for more details." >&5
5723 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5724 See \`config.log' for more details." >&2;}
5725 { (exit 1); exit 1; }; }
5726 fi
5728 ac_ext=c
5729 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5730 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5731 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 BUILD_EXEEXT=$ac_build_exeext
5738 BUILD_OBJEXT=$ac_build_objext
5740 ac_ext=c
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_CC+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test -n "$CC"; then
5754 ac_cv_prog_CC="$CC" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5771 fi
5772 fi
5773 CC=$ac_cv_prog_CC
5774 if test -n "$CC"; then
5775 { echo "$as_me:$LINENO: result: $CC" >&5
5776 echo "${ECHO_T}$CC" >&6; }
5777 else
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5780 fi
5783 fi
5784 if test -z "$ac_cv_prog_CC"; then
5785 ac_ct_CC=$CC
5786 # Extract the first word of "gcc", so it can be a program name with args.
5787 set dummy gcc; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 if test -n "$ac_ct_CC"; then
5794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_ac_ct_CC="gcc"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5811 fi
5812 fi
5813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5814 if test -n "$ac_ct_CC"; then
5815 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5816 echo "${ECHO_T}$ac_ct_CC" >&6; }
5817 else
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5820 fi
5822 if test "x$ac_ct_CC" = x; then
5823 CC=""
5824 else
5825 case $cross_compiling:$ac_tool_warned in
5826 yes:)
5827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5828 whose name does not start with the host triplet. If you think this
5829 configuration is useful to you, please write to autoconf@gnu.org." >&5
5830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5831 whose name does not start with the host triplet. If you think this
5832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5833 ac_tool_warned=yes ;;
5834 esac
5835 CC=$ac_ct_CC
5836 fi
5837 else
5838 CC="$ac_cv_prog_CC"
5839 fi
5841 if test -z "$CC"; then
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}cc; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_prog_CC+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850 if test -n "$CC"; then
5851 ac_cv_prog_CC="$CC" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_CC="${ac_tool_prefix}cc"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5868 fi
5869 fi
5870 CC=$ac_cv_prog_CC
5871 if test -n "$CC"; then
5872 { echo "$as_me:$LINENO: result: $CC" >&5
5873 echo "${ECHO_T}$CC" >&6; }
5874 else
5875 { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5877 fi
5880 fi
5881 fi
5882 if test -z "$CC"; then
5883 # Extract the first word of "cc", so it can be a program name with args.
5884 set dummy cc; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_prog_CC+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 if test -n "$CC"; then
5891 ac_cv_prog_CC="$CC" # Let the user override the test.
5892 else
5893 ac_prog_rejected=no
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5902 ac_prog_rejected=yes
5903 continue
5904 fi
5905 ac_cv_prog_CC="cc"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5908 fi
5909 done
5910 done
5911 IFS=$as_save_IFS
5913 if test $ac_prog_rejected = yes; then
5914 # We found a bogon in the path, so make sure we never use it.
5915 set dummy $ac_cv_prog_CC
5916 shift
5917 if test $# != 0; then
5918 # We chose a different compiler from the bogus one.
5919 # However, it has the same basename, so the bogon will be chosen
5920 # first if we set CC to just the basename; use the full file name.
5921 shift
5922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5923 fi
5924 fi
5925 fi
5926 fi
5927 CC=$ac_cv_prog_CC
5928 if test -n "$CC"; then
5929 { echo "$as_me:$LINENO: result: $CC" >&5
5930 echo "${ECHO_T}$CC" >&6; }
5931 else
5932 { echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6; }
5934 fi
5937 fi
5938 if test -z "$CC"; then
5939 if test -n "$ac_tool_prefix"; then
5940 for ac_prog in cl.exe
5941 do
5942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_CC+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 if test -n "$CC"; then
5950 ac_cv_prog_CC="$CC" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5967 fi
5968 fi
5969 CC=$ac_cv_prog_CC
5970 if test -n "$CC"; then
5971 { echo "$as_me:$LINENO: result: $CC" >&5
5972 echo "${ECHO_T}$CC" >&6; }
5973 else
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5976 fi
5979 test -n "$CC" && break
5980 done
5981 fi
5982 if test -z "$CC"; then
5983 ac_ct_CC=$CC
5984 for ac_prog in cl.exe
5985 do
5986 # Extract the first word of "$ac_prog", so it can be a program name with args.
5987 set dummy $ac_prog; ac_word=$2
5988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 if test -n "$ac_ct_CC"; then
5994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_ac_ct_CC="$ac_prog"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6006 fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6011 fi
6012 fi
6013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6014 if test -n "$ac_ct_CC"; then
6015 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6016 echo "${ECHO_T}$ac_ct_CC" >&6; }
6017 else
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6023 test -n "$ac_ct_CC" && break
6024 done
6026 if test "x$ac_ct_CC" = x; then
6027 CC=""
6028 else
6029 case $cross_compiling:$ac_tool_warned in
6030 yes:)
6031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6032 whose name does not start with the host triplet. If you think this
6033 configuration is useful to you, please write to autoconf@gnu.org." >&5
6034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet. If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 CC=$ac_ct_CC
6040 fi
6041 fi
6043 fi
6046 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6047 See \`config.log' for more details." >&5
6048 echo "$as_me: error: no acceptable C compiler found in \$PATH
6049 See \`config.log' for more details." >&2;}
6050 { (exit 1); exit 1; }; }
6052 # Provide some information about the compiler.
6053 echo "$as_me:$LINENO: checking for C compiler version" >&5
6054 ac_compiler=`set X $ac_compile; echo $2`
6055 { (ac_try="$ac_compiler --version >&5"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compiler --version >&5") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }
6065 { (ac_try="$ac_compiler -v >&5"
6066 case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compiler -v >&5") 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }
6075 { (ac_try="$ac_compiler -V >&5"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compiler -V >&5") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6086 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6087 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6088 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6098 int
6099 main ()
6100 {
6101 #ifndef __GNUC__
6102 choke me
6103 #endif
6105 ;
6106 return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
6126 ac_compiler_gnu=yes
6127 else
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 ac_compiler_gnu=no
6132 fi
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6137 fi
6138 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6139 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6140 GCC=`test $ac_compiler_gnu = yes && echo yes`
6141 ac_test_CFLAGS=${CFLAGS+set}
6142 ac_save_CFLAGS=$CFLAGS
6143 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6144 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_cc_g+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 ac_save_c_werror_flag=$ac_c_werror_flag
6149 ac_c_werror_flag=yes
6150 ac_cv_prog_cc_g=no
6151 CFLAGS="-g"
6152 cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6159 int
6160 main ()
6161 {
6163 ;
6164 return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_cv_prog_cc_g=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 CFLAGS=""
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6197 int
6198 main ()
6199 {
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (ac_try="$ac_compile"
6207 case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 :
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_c_werror_flag=$ac_save_c_werror_flag
6228 CFLAGS="-g"
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 int
6237 main ()
6238 {
6240 ;
6241 return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 ac_cv_prog_cc_g=yes
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6267 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 fi
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 ac_c_werror_flag=$ac_save_c_werror_flag
6277 fi
6278 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6280 if test "$ac_test_CFLAGS" = set; then
6281 CFLAGS=$ac_save_CFLAGS
6282 elif test $ac_cv_prog_cc_g = yes; then
6283 if test "$GCC" = yes; then
6284 CFLAGS="-g -O2"
6285 else
6286 CFLAGS="-g"
6287 fi
6288 else
6289 if test "$GCC" = yes; then
6290 CFLAGS="-O2"
6291 else
6292 CFLAGS=
6293 fi
6294 fi
6295 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6296 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_cc_c89+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 ac_cv_prog_cc_c89=no
6301 ac_save_CC=$CC
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <stdarg.h>
6309 #include <stdio.h>
6310 #include <sys/types.h>
6311 #include <sys/stat.h>
6312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6313 struct buf { int x; };
6314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6315 static char *e (p, i)
6316 char **p;
6317 int i;
6318 {
6319 return p[i];
6320 }
6321 static char *f (char * (*g) (char **, int), char **p, ...)
6322 {
6323 char *s;
6324 va_list v;
6325 va_start (v,p);
6326 s = g (p, va_arg (v,int));
6327 va_end (v);
6328 return s;
6329 }
6331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6332 function prototypes and stuff, but not '\xHH' hex character constants.
6333 These don't provoke an error unfortunately, instead are silently treated
6334 as 'x'. The following induces an error, until -std is added to get
6335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6336 array size at least. It's necessary to write '\x00'==0 to get something
6337 that's true only with -std. */
6338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6341 inside strings and character constants. */
6342 #define FOO(x) 'x'
6343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6345 int test (int i, double x);
6346 struct s1 {int (*f) (int a);};
6347 struct s2 {int (*f) (double a);};
6348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6349 int argc;
6350 char **argv;
6351 int
6352 main ()
6353 {
6354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6361 do
6362 CC="$ac_save_CC $ac_arg"
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6365 case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368 esac
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_compile") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && {
6377 test -z "$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 } && test -s conftest.$ac_objext; then
6380 ac_cv_prog_cc_c89=$ac_arg
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6386 fi
6388 rm -f core conftest.err conftest.$ac_objext
6389 test "x$ac_cv_prog_cc_c89" != "xno" && break
6390 done
6391 rm -f conftest.$ac_ext
6392 CC=$ac_save_CC
6394 fi
6395 # AC_CACHE_VAL
6396 case "x$ac_cv_prog_cc_c89" in
6397 x)
6398 { echo "$as_me:$LINENO: result: none needed" >&5
6399 echo "${ECHO_T}none needed" >&6; } ;;
6400 xno)
6401 { echo "$as_me:$LINENO: result: unsupported" >&5
6402 echo "${ECHO_T}unsupported" >&6; } ;;
6403 *)
6404 CC="$CC $ac_cv_prog_cc_c89"
6405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6406 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6407 esac
6410 ac_ext=c
6411 ac_cpp='$CPP $CPPFLAGS'
6412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416 depcc="$CC" am_compiler_list=
6418 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6420 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6424 # We make a subdir and do the tests there. Otherwise we can end up
6425 # making bogus files that we don't know about and never remove. For
6426 # instance it was reported that on HP-UX the gcc test will end up
6427 # making a dummy file named `D' -- because `-MD' means `put the output
6428 # in D'.
6429 mkdir conftest.dir
6430 # Copy depcomp to subdir because otherwise we won't find it if we're
6431 # using a relative directory.
6432 cp "$am_depcomp" conftest.dir
6433 cd conftest.dir
6434 # We will build objects and dependencies in a subdirectory because
6435 # it helps to detect inapplicable dependency modes. For instance
6436 # both Tru64's cc and ICC support -MD to output dependencies as a
6437 # side effect of compilation, but ICC will put the dependencies in
6438 # the current directory while Tru64 will put them in the object
6439 # directory.
6440 mkdir sub
6442 am_cv_CC_dependencies_compiler_type=none
6443 if test "$am_compiler_list" = ""; then
6444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6445 fi
6446 for depmode in $am_compiler_list; do
6447 # Setup a source with many dependencies, because some compilers
6448 # like to wrap large dependency lists on column 80 (with \), and
6449 # we should not choose a depcomp mode which is confused by this.
6450 #
6451 # We need to recreate these files for each test, as the compiler may
6452 # overwrite some of them when testing with obscure command lines.
6453 # This happens at least with the AIX C compiler.
6454 : > sub/conftest.c
6455 for i in 1 2 3 4 5 6; do
6456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6458 # Solaris 8's {/usr,}/bin/sh.
6459 touch sub/conftst$i.h
6460 done
6461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6463 case $depmode in
6464 nosideeffect)
6465 # after this tag, mechanisms are not by side-effect, so they'll
6466 # only be used when explicitly requested
6467 if test "x$enable_dependency_tracking" = xyes; then
6468 continue
6469 else
6470 break
6471 fi
6472 ;;
6473 none) break ;;
6474 esac
6475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6476 # mode. It turns out that the SunPro C++ compiler does not properly
6477 # handle `-M -o', and we need to detect this.
6478 if depmode=$depmode \
6479 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6481 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6482 >/dev/null 2>conftest.err &&
6483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6484 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6486 # icc doesn't choke on unknown options, it will just issue warnings
6487 # or remarks (even with -Werror). So we grep stderr for any message
6488 # that says an option was ignored or not supported.
6489 # When given -MP, icc 7.0 and 7.1 complain thusly:
6490 # icc: Command line warning: ignoring option '-M'; no argument required
6491 # The diagnosis changed in icc 8.0:
6492 # icc: Command line remark: option '-MP' not supported
6493 if (grep 'ignoring option' conftest.err ||
6494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6495 am_cv_CC_dependencies_compiler_type=$depmode
6496 break
6497 fi
6498 fi
6499 done
6501 cd ..
6502 rm -rf conftest.dir
6503 else
6504 am_cv_CC_dependencies_compiler_type=none
6505 fi
6507 fi
6508 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6509 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
6510 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6514 if
6515 test "x$enable_dependency_tracking" != xno \
6516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6517 am__fastdepCC_TRUE=
6518 am__fastdepCC_FALSE='#'
6519 else
6520 am__fastdepCC_TRUE='#'
6521 am__fastdepCC_FALSE=
6522 fi
6526 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6528 ac_ext=m
6529 ac_cpp='$OBJCPP $CPPFLAGS'
6530 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6533 if test -n "$ac_tool_prefix"; then
6534 for ac_prog in gcc objcc objc cc CC
6535 do
6536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_OBJC+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 if test -n "$OBJC"; then
6544 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6561 fi
6562 fi
6563 OBJC=$ac_cv_prog_OBJC
6564 if test -n "$OBJC"; then
6565 { echo "$as_me:$LINENO: result: $OBJC" >&5
6566 echo "${ECHO_T}$OBJC" >&6; }
6567 else
6568 { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6570 fi
6573 test -n "$OBJC" && break
6574 done
6575 fi
6576 if test -z "$OBJC"; then
6577 ac_ct_OBJC=$OBJC
6578 for ac_prog in gcc objcc objc cc CC
6579 do
6580 # Extract the first word of "$ac_prog", so it can be a program name with args.
6581 set dummy $ac_prog; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 if test -n "$ac_ct_OBJC"; then
6588 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6605 fi
6606 fi
6607 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6608 if test -n "$ac_ct_OBJC"; then
6609 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6610 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6611 else
6612 { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6614 fi
6617 test -n "$ac_ct_OBJC" && break
6618 done
6620 if test "x$ac_ct_OBJC" = x; then
6621 OBJC="gcc"
6622 else
6623 case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6626 whose name does not start with the host triplet. If you think this
6627 configuration is useful to you, please write to autoconf@gnu.org." >&5
6628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet. If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 OBJC=$ac_ct_OBJC
6634 fi
6635 fi
6637 # Provide some information about the compiler.
6638 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
6639 ac_compiler=`set X $ac_compile; echo $2`
6640 { (ac_try="$ac_compiler --version >&5"
6641 case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644 esac
6645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_compiler --version >&5") 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }
6650 { (ac_try="$ac_compiler -v >&5"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compiler -v >&5") 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }
6660 { (ac_try="$ac_compiler -V >&5"
6661 case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664 esac
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_compiler -V >&5") 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }
6671 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
6672 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
6673 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6683 int
6684 main ()
6685 {
6686 #ifndef __GNUC__
6687 choke me
6688 #endif
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_objc_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6711 ac_compiler_gnu=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_compiler_gnu=no
6717 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
6722 fi
6723 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
6724 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
6725 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
6726 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
6727 ac_save_OBJCFLAGS=$OBJCFLAGS
6728 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
6729 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
6730 if test "${ac_cv_prog_objc_g+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 ac_save_objc_werror_flag=$ac_objc_werror_flag
6734 ac_objc_werror_flag=yes
6735 ac_cv_prog_objc_g=no
6736 OBJCFLAGS="-g"
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6744 int
6745 main ()
6746 {
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6754 case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_objc_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6769 ac_cv_prog_objc_g=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 OBJCFLAGS=""
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6782 int
6783 main ()
6784 {
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 rm -f conftest.$ac_objext
6791 if { (ac_try="$ac_compile"
6792 case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795 esac
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_compile") 2>conftest.er1
6798 ac_status=$?
6799 grep -v '^ *+' conftest.er1 >conftest.err
6800 rm -f conftest.er1
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } && {
6804 test -z "$ac_objc_werror_flag" ||
6805 test ! -s conftest.err
6806 } && test -s conftest.$ac_objext; then
6807 :
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 ac_objc_werror_flag=$ac_save_objc_werror_flag
6813 OBJCFLAGS="-g"
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6821 int
6822 main ()
6823 {
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6831 case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834 esac
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_objc_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 ac_cv_prog_objc_g=yes
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6852 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 ac_objc_werror_flag=$ac_save_objc_werror_flag
6862 fi
6863 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
6864 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
6865 if test "$ac_test_OBJCFLAGS" = set; then
6866 OBJCFLAGS=$ac_save_OBJCFLAGS
6867 elif test $ac_cv_prog_objc_g = yes; then
6868 if test "$GOBJC" = yes; then
6869 OBJCFLAGS="-g -O2"
6870 else
6871 OBJCFLAGS="-g"
6872 fi
6873 else
6874 if test "$GOBJC" = yes; then
6875 OBJCFLAGS="-O2"
6876 else
6877 OBJCFLAGS=
6878 fi
6879 fi
6880 ac_ext=c
6881 ac_cpp='$CPP $CPPFLAGS'
6882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6887 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_SED+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6892 for ac_i in 1 2 3 4 5 6 7; do
6893 ac_script="$ac_script$as_nl$ac_script"
6894 done
6895 echo "$ac_script" | sed 99q >conftest.sed
6896 $as_unset ac_script || ac_script=
6897 # Extract the first word of "sed gsed" to use in msg output
6898 if test -z "$SED"; then
6899 set dummy sed gsed; ac_prog_name=$2
6900 if test "${ac_cv_path_SED+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903 ac_path_SED_found=false
6904 # Loop through the user's path and test for each of PROGNAME-LIST
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_prog in sed gsed; do
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6913 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6914 # Check for GNU ac_path_SED and select it if it is found.
6915 # Check for GNU $ac_path_SED
6916 case `"$ac_path_SED" --version 2>&1` in
6917 *GNU*)
6918 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6919 *)
6920 ac_count=0
6921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6922 while :
6923 do
6924 cat "conftest.in" "conftest.in" >"conftest.tmp"
6925 mv "conftest.tmp" "conftest.in"
6926 cp "conftest.in" "conftest.nl"
6927 echo '' >> "conftest.nl"
6928 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6930 ac_count=`expr $ac_count + 1`
6931 if test $ac_count -gt ${ac_path_SED_max-0}; then
6932 # Best one so far, save it but keep looking for a better one
6933 ac_cv_path_SED="$ac_path_SED"
6934 ac_path_SED_max=$ac_count
6935 fi
6936 # 10*(2^10) chars as input seems more than enough
6937 test $ac_count -gt 10 && break
6938 done
6939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6940 esac
6943 $ac_path_SED_found && break 3
6944 done
6945 done
6947 done
6948 IFS=$as_save_IFS
6951 fi
6953 SED="$ac_cv_path_SED"
6954 if test -z "$SED"; then
6955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6956 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6957 { (exit 1); exit 1; }; }
6958 fi
6960 else
6961 ac_cv_path_SED=$SED
6962 fi
6964 fi
6965 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6966 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6967 SED="$ac_cv_path_SED"
6968 rm -f conftest.sed
6970 # By default we simply use the C compiler to build assembly code.
6972 test "${CCAS+set}" = set || CCAS=$CC
6973 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6978 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6979 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 # Extract the first word of "grep ggrep" to use in msg output
6984 if test -z "$GREP"; then
6985 set dummy grep ggrep; ac_prog_name=$2
6986 if test "${ac_cv_path_GREP+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 ac_path_GREP_found=false
6990 # Loop through the user's path and test for each of PROGNAME-LIST
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_prog in grep ggrep; do
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7000 # Check for GNU ac_path_GREP and select it if it is found.
7001 # Check for GNU $ac_path_GREP
7002 case `"$ac_path_GREP" --version 2>&1` in
7003 *GNU*)
7004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7005 *)
7006 ac_count=0
7007 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7008 while :
7009 do
7010 cat "conftest.in" "conftest.in" >"conftest.tmp"
7011 mv "conftest.tmp" "conftest.in"
7012 cp "conftest.in" "conftest.nl"
7013 echo 'GREP' >> "conftest.nl"
7014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7016 ac_count=`expr $ac_count + 1`
7017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7018 # Best one so far, save it but keep looking for a better one
7019 ac_cv_path_GREP="$ac_path_GREP"
7020 ac_path_GREP_max=$ac_count
7021 fi
7022 # 10*(2^10) chars as input seems more than enough
7023 test $ac_count -gt 10 && break
7024 done
7025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7026 esac
7029 $ac_path_GREP_found && break 3
7030 done
7031 done
7033 done
7034 IFS=$as_save_IFS
7037 fi
7039 GREP="$ac_cv_path_GREP"
7040 if test -z "$GREP"; then
7041 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7042 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7043 { (exit 1); exit 1; }; }
7044 fi
7046 else
7047 ac_cv_path_GREP=$GREP
7048 fi
7051 fi
7052 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7053 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7054 GREP="$ac_cv_path_GREP"
7057 { echo "$as_me:$LINENO: checking for egrep" >&5
7058 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_EGREP+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7063 then ac_cv_path_EGREP="$GREP -E"
7064 else
7065 # Extract the first word of "egrep" to use in msg output
7066 if test -z "$EGREP"; then
7067 set dummy egrep; ac_prog_name=$2
7068 if test "${ac_cv_path_EGREP+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071 ac_path_EGREP_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7075 do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_prog in egrep; do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7081 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7082 # Check for GNU ac_path_EGREP and select it if it is found.
7083 # Check for GNU $ac_path_EGREP
7084 case `"$ac_path_EGREP" --version 2>&1` in
7085 *GNU*)
7086 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7087 *)
7088 ac_count=0
7089 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7090 while :
7091 do
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 echo 'EGREP' >> "conftest.nl"
7096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 ac_count=`expr $ac_count + 1`
7099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_EGREP="$ac_path_EGREP"
7102 ac_path_EGREP_max=$ac_count
7103 fi
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7106 done
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7108 esac
7111 $ac_path_EGREP_found && break 3
7112 done
7113 done
7115 done
7116 IFS=$as_save_IFS
7119 fi
7121 EGREP="$ac_cv_path_EGREP"
7122 if test -z "$EGREP"; then
7123 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7124 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7125 { (exit 1); exit 1; }; }
7126 fi
7128 else
7129 ac_cv_path_EGREP=$EGREP
7130 fi
7133 fi
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7136 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7137 EGREP="$ac_cv_path_EGREP"
7140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7142 if test "${ac_cv_header_stdc+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <stdlib.h>
7152 #include <stdarg.h>
7153 #include <string.h>
7154 #include <float.h>
7156 int
7157 main ()
7158 {
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_cv_header_stdc=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 ac_cv_header_stdc=no
7187 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 if test $ac_cv_header_stdc = yes; then
7192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <string.h>
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "memchr" >/dev/null 2>&1; then
7204 :
7205 else
7206 ac_cv_header_stdc=no
7207 fi
7208 rm -f conftest*
7210 fi
7212 if test $ac_cv_header_stdc = yes; then
7213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 #include <stdlib.h>
7222 _ACEOF
7223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7224 $EGREP "free" >/dev/null 2>&1; then
7225 :
7226 else
7227 ac_cv_header_stdc=no
7228 fi
7229 rm -f conftest*
7231 fi
7233 if test $ac_cv_header_stdc = yes; then
7234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7235 if test "$cross_compiling" = yes; then
7236 :
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 #include <ctype.h>
7245 #include <stdlib.h>
7246 #if ((' ' & 0x0FF) == 0x020)
7247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7249 #else
7250 # define ISLOWER(c) \
7251 (('a' <= (c) && (c) <= 'i') \
7252 || ('j' <= (c) && (c) <= 'r') \
7253 || ('s' <= (c) && (c) <= 'z'))
7254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7255 #endif
7257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7258 int
7259 main ()
7260 {
7261 int i;
7262 for (i = 0; i < 256; i++)
7263 if (XOR (islower (i), ISLOWER (i))
7264 || toupper (i) != TOUPPER (i))
7265 return 2;
7266 return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest$ac_exeext
7270 if { (ac_try="$ac_link"
7271 case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_link") 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7280 { (case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_try") 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 :
7290 else
7291 echo "$as_me: program exited with status $ac_status" >&5
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 ( exit $ac_status )
7296 ac_cv_header_stdc=no
7297 fi
7298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7299 fi
7302 fi
7303 fi
7304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7306 if test $ac_cv_header_stdc = yes; then
7308 cat >>confdefs.h <<\_ACEOF
7309 #define STDC_HEADERS 1
7310 _ACEOF
7312 fi
7314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7325 inttypes.h stdint.h unistd.h
7326 do
7327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7341 #include <$ac_header>
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7345 case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 eval "$as_ac_Header=yes"
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 eval "$as_ac_Header=no"
7366 fi
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 ac_res=`eval echo '${'$as_ac_Header'}'`
7371 { echo "$as_me:$LINENO: result: $ac_res" >&5
7372 echo "${ECHO_T}$ac_res" >&6; }
7373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 _ACEOF
7378 fi
7380 done
7383 { echo "$as_me:$LINENO: checking for void *" >&5
7384 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7385 if test "${ac_cv_type_void_p+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h. */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7394 $ac_includes_default
7395 typedef void * ac__type_new_;
7396 int
7397 main ()
7398 {
7399 if ((ac__type_new_ *) 0)
7400 return 0;
7401 if (sizeof (ac__type_new_))
7402 return 0;
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_type_void_p=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_void_p=no
7430 fi
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7435 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7437 # The cast to long int works around a bug in the HP C Compiler
7438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7440 # This bug is HP SR number 8606223364.
7441 { echo "$as_me:$LINENO: checking size of void *" >&5
7442 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7443 if test "${ac_cv_sizeof_void_p+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 if test "$cross_compiling" = yes; then
7447 # Depending upon the size, compute the lo and hi bounds.
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 $ac_includes_default
7455 typedef void * ac__type_sizeof_;
7456 int
7457 main ()
7458 {
7459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7460 test_array [0] = 0
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (ac_try="$ac_compile"
7468 case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471 esac
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_compile") 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest.$ac_objext; then
7483 ac_lo=0 ac_mid=0
7484 while :; do
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7492 typedef void * ac__type_sizeof_;
7493 int
7494 main ()
7495 {
7496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7497 test_array [0] = 0
7499 ;
7500 return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
7520 ac_hi=$ac_mid; break
7521 else
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 ac_lo=`expr $ac_mid + 1`
7526 if test $ac_lo -le $ac_mid; then
7527 ac_lo= ac_hi=
7528 break
7529 fi
7530 ac_mid=`expr 2 '*' $ac_mid + 1`
7531 fi
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534 done
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 typedef void * ac__type_sizeof_;
7547 int
7548 main ()
7549 {
7550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7551 test_array [0] = 0
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7574 ac_hi=-1 ac_mid=-1
7575 while :; do
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef void * ac__type_sizeof_;
7584 int
7585 main ()
7586 {
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7588 test_array [0] = 0
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_lo=$ac_mid; break
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_hi=`expr '(' $ac_mid ')' - 1`
7617 if test $ac_mid -le $ac_hi; then
7618 ac_lo= ac_hi=
7619 break
7620 fi
7621 ac_mid=`expr 2 '*' $ac_mid`
7622 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 done
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_lo= ac_hi=
7631 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 fi
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 # Binary search between lo and hi bounds.
7638 while test "x$ac_lo" != "x$ac_hi"; do
7639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 $ac_includes_default
7647 typedef void * ac__type_sizeof_;
7648 int
7649 main ()
7650 {
7651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7652 test_array [0] = 0
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7660 case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663 esac
7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_compile") 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } && {
7672 test -z "$ac_c_werror_flag" ||
7673 test ! -s conftest.err
7674 } && test -s conftest.$ac_objext; then
7675 ac_hi=$ac_mid
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_lo=`expr '(' $ac_mid ')' + 1`
7681 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 done
7685 case $ac_lo in
7686 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7687 '') if test "$ac_cv_type_void_p" = yes; then
7688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7689 See \`config.log' for more details." >&5
7690 echo "$as_me: error: cannot compute sizeof (void *)
7691 See \`config.log' for more details." >&2;}
7692 { (exit 77); exit 77; }; }
7693 else
7694 ac_cv_sizeof_void_p=0
7695 fi ;;
7696 esac
7697 else
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7705 typedef void * ac__type_sizeof_;
7706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7708 #include <stdio.h>
7709 #include <stdlib.h>
7710 int
7711 main ()
7712 {
7714 FILE *f = fopen ("conftest.val", "w");
7715 if (! f)
7716 return 1;
7717 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7718 {
7719 long int i = longval ();
7720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7721 return 1;
7722 fprintf (f, "%ld\n", i);
7723 }
7724 else
7725 {
7726 unsigned long int i = ulongval ();
7727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7728 return 1;
7729 fprintf (f, "%lu\n", i);
7730 }
7731 return ferror (f) || fclose (f) != 0;
7733 ;
7734 return 0;
7735 }
7736 _ACEOF
7737 rm -f conftest$ac_exeext
7738 if { (ac_try="$ac_link"
7739 case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_sizeof_void_p=`cat conftest.val`
7758 else
7759 echo "$as_me: program exited with status $ac_status" >&5
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ( exit $ac_status )
7764 if test "$ac_cv_type_void_p" = yes; then
7765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7766 See \`config.log' for more details." >&5
7767 echo "$as_me: error: cannot compute sizeof (void *)
7768 See \`config.log' for more details." >&2;}
7769 { (exit 77); exit 77; }; }
7770 else
7771 ac_cv_sizeof_void_p=0
7772 fi
7773 fi
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7775 fi
7776 rm -f conftest.val
7777 fi
7778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7779 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7783 cat >>confdefs.h <<_ACEOF
7784 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7785 _ACEOF
7788 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7790 if test "${ac_cv_header_stdc+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 #include <stdlib.h>
7800 #include <stdarg.h>
7801 #include <string.h>
7802 #include <float.h>
7804 int
7805 main ()
7806 {
7808 ;
7809 return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7814 case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_compile") 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && {
7826 test -z "$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 } && test -s conftest.$ac_objext; then
7829 ac_cv_header_stdc=yes
7830 else
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ac_cv_header_stdc=no
7835 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 if test $ac_cv_header_stdc = yes; then
7840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 #include <string.h>
7849 _ACEOF
7850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7851 $EGREP "memchr" >/dev/null 2>&1; then
7852 :
7853 else
7854 ac_cv_header_stdc=no
7855 fi
7856 rm -f conftest*
7858 fi
7860 if test $ac_cv_header_stdc = yes; then
7861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <stdlib.h>
7870 _ACEOF
7871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7872 $EGREP "free" >/dev/null 2>&1; then
7873 :
7874 else
7875 ac_cv_header_stdc=no
7876 fi
7877 rm -f conftest*
7879 fi
7881 if test $ac_cv_header_stdc = yes; then
7882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7883 if test "$cross_compiling" = yes; then
7884 :
7885 else
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <ctype.h>
7893 #include <stdlib.h>
7894 #if ((' ' & 0x0FF) == 0x020)
7895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7897 #else
7898 # define ISLOWER(c) \
7899 (('a' <= (c) && (c) <= 'i') \
7900 || ('j' <= (c) && (c) <= 'r') \
7901 || ('s' <= (c) && (c) <= 'z'))
7902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7903 #endif
7905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7906 int
7907 main ()
7908 {
7909 int i;
7910 for (i = 0; i < 256; i++)
7911 if (XOR (islower (i), ISLOWER (i))
7912 || toupper (i) != TOUPPER (i))
7913 return 2;
7914 return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7919 case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_link") 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7928 { (case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931 esac
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_try") 2>&5
7934 ac_status=$?
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7937 :
7938 else
7939 echo "$as_me: program exited with status $ac_status" >&5
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ( exit $ac_status )
7944 ac_cv_header_stdc=no
7945 fi
7946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7947 fi
7950 fi
7951 fi
7952 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7953 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7954 if test $ac_cv_header_stdc = yes; then
7956 cat >>confdefs.h <<\_ACEOF
7957 #define STDC_HEADERS 1
7958 _ACEOF
7960 fi
7962 # Make sure we can run config.sub.
7963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7966 { (exit 1); exit 1; }; }
7968 { echo "$as_me:$LINENO: checking build system type" >&5
7969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
7970 if test "${ac_cv_build+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 ac_build_alias=$build_alias
7974 test "x$ac_build_alias" = x &&
7975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7976 test "x$ac_build_alias" = x &&
7977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7979 { (exit 1); exit 1; }; }
7980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7983 { (exit 1); exit 1; }; }
7985 fi
7986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7987 echo "${ECHO_T}$ac_cv_build" >&6; }
7988 case $ac_cv_build in
7989 *-*-*) ;;
7990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7991 echo "$as_me: error: invalid value of canonical build" >&2;}
7992 { (exit 1); exit 1; }; };;
7993 esac
7994 build=$ac_cv_build
7995 ac_save_IFS=$IFS; IFS='-'
7996 set x $ac_cv_build
7997 shift
7998 build_cpu=$1
7999 build_vendor=$2
8000 shift; shift
8001 # Remember, the first character of IFS is used to create $*,
8002 # except with old shells:
8003 build_os=$*
8004 IFS=$ac_save_IFS
8005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8008 { echo "$as_me:$LINENO: checking host system type" >&5
8009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8010 if test "${ac_cv_host+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 if test "x$host_alias" = x; then
8014 ac_cv_host=$ac_cv_build
8015 else
8016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8019 { (exit 1); exit 1; }; }
8020 fi
8022 fi
8023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8024 echo "${ECHO_T}$ac_cv_host" >&6; }
8025 case $ac_cv_host in
8026 *-*-*) ;;
8027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8028 echo "$as_me: error: invalid value of canonical host" >&2;}
8029 { (exit 1); exit 1; }; };;
8030 esac
8031 host=$ac_cv_host
8032 ac_save_IFS=$IFS; IFS='-'
8033 set x $ac_cv_host
8034 shift
8035 host_cpu=$1
8036 host_vendor=$2
8037 shift; shift
8038 # Remember, the first character of IFS is used to create $*,
8039 # except with old shells:
8040 host_os=$*
8041 IFS=$ac_save_IFS
8042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8047 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8049 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8051 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8055 # We make a subdir and do the tests there. Otherwise we can end up
8056 # making bogus files that we don't know about and never remove. For
8057 # instance it was reported that on HP-UX the gcc test will end up
8058 # making a dummy file named `D' -- because `-MD' means `put the output
8059 # in D'.
8060 mkdir conftest.dir
8061 # Copy depcomp to subdir because otherwise we won't find it if we're
8062 # using a relative directory.
8063 cp "$am_depcomp" conftest.dir
8064 cd conftest.dir
8065 # We will build objects and dependencies in a subdirectory because
8066 # it helps to detect inapplicable dependency modes. For instance
8067 # both Tru64's cc and ICC support -MD to output dependencies as a
8068 # side effect of compilation, but ICC will put the dependencies in
8069 # the current directory while Tru64 will put them in the object
8070 # directory.
8071 mkdir sub
8073 am_cv_OBJC_dependencies_compiler_type=none
8074 if test "$am_compiler_list" = ""; then
8075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8076 fi
8077 for depmode in $am_compiler_list; do
8078 # Setup a source with many dependencies, because some compilers
8079 # like to wrap large dependency lists on column 80 (with \), and
8080 # we should not choose a depcomp mode which is confused by this.
8081 #
8082 # We need to recreate these files for each test, as the compiler may
8083 # overwrite some of them when testing with obscure command lines.
8084 # This happens at least with the AIX C compiler.
8085 : > sub/conftest.c
8086 for i in 1 2 3 4 5 6; do
8087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8089 # Solaris 8's {/usr,}/bin/sh.
8090 touch sub/conftst$i.h
8091 done
8092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8094 case $depmode in
8095 nosideeffect)
8096 # after this tag, mechanisms are not by side-effect, so they'll
8097 # only be used when explicitly requested
8098 if test "x$enable_dependency_tracking" = xyes; then
8099 continue
8100 else
8101 break
8102 fi
8103 ;;
8104 none) break ;;
8105 esac
8106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8107 # mode. It turns out that the SunPro C++ compiler does not properly
8108 # handle `-M -o', and we need to detect this.
8109 if depmode=$depmode \
8110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8113 >/dev/null 2>conftest.err &&
8114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8115 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8117 # icc doesn't choke on unknown options, it will just issue warnings
8118 # or remarks (even with -Werror). So we grep stderr for any message
8119 # that says an option was ignored or not supported.
8120 # When given -MP, icc 7.0 and 7.1 complain thusly:
8121 # icc: Command line warning: ignoring option '-M'; no argument required
8122 # The diagnosis changed in icc 8.0:
8123 # icc: Command line remark: option '-MP' not supported
8124 if (grep 'ignoring option' conftest.err ||
8125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8126 am_cv_OBJC_dependencies_compiler_type=$depmode
8127 break
8128 fi
8129 fi
8130 done
8132 cd ..
8133 rm -rf conftest.dir
8134 else
8135 am_cv_OBJC_dependencies_compiler_type=none
8136 fi
8138 fi
8139 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8140 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8141 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8145 if
8146 test "x$enable_dependency_tracking" != xno \
8147 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8148 am__fastdepOBJC_TRUE=
8149 am__fastdepOBJC_FALSE='#'
8150 else
8151 am__fastdepOBJC_TRUE='#'
8152 am__fastdepOBJC_FALSE=
8153 fi
8157 # Extract the first word of "pod2man", so it can be a program name with args.
8158 set dummy pod2man; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_POD2MAN+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 case $POD2MAN in
8165 [\\/]* | ?:[\\/]*)
8166 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8167 ;;
8168 *)
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8184 ;;
8185 esac
8186 fi
8187 POD2MAN=$ac_cv_path_POD2MAN
8188 if test -n "$POD2MAN"; then
8189 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8190 echo "${ECHO_T}$POD2MAN" >&6; }
8191 else
8192 { echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6; }
8194 fi
8197 # Extract the first word of "pod2html", so it can be a program name with args.
8198 set dummy pod2html; ac_word=$2
8199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201 if test "${ac_cv_path_POD2HTML+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 case $POD2HTML in
8205 [\\/]* | ?:[\\/]*)
8206 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8207 ;;
8208 *)
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8224 ;;
8225 esac
8226 fi
8227 POD2HTML=$ac_cv_path_POD2HTML
8228 if test -n "$POD2HTML"; then
8229 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8230 echo "${ECHO_T}$POD2HTML" >&6; }
8231 else
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8234 fi
8239 # Check whether --enable-strict-warn was given.
8240 if test "${enable_strict_warn+set}" = set; then
8241 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8242 enable_strictwarn=yes
8243 fi
8244 fi
8246 # Check whether --enable-translator was given.
8247 if test "${enable_translator+set}" = set; then
8248 enableval=$enable_translator; true
8249 else
8250 enable_translator=yes
8251 fi
8253 # Check whether --enable-optimized was given.
8254 if test "${enable_optimized+set}" = set; then
8255 enableval=$enable_optimized; true
8256 else
8257 enable_optimized=yes
8258 fi
8260 # Check whether --enable-shared was given.
8261 if test "${enable_shared+set}" = set; then
8262 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8263 else
8264 enable_shared=cond
8265 fi
8267 # Check whether --enable-profiled was given.
8268 if test "${enable_profiled+set}" = set; then
8269 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8270 enable_profiled=yes;
8271 fi
8272 fi
8274 # Check whether --enable-trace was given.
8275 if test "${enable_trace+set}" = set; then
8276 enableval=$enable_trace; if test "$enableval" == "yes"; then
8278 cat >>confdefs.h <<\_ACEOF
8279 #define ENABLE_TRACE_IO 1
8280 _ACEOF
8282 fi
8283 fi
8285 # Check whether --enable-watch was given.
8286 if test "${enable_watch+set}" = set; then
8287 enableval=$enable_watch; if test "$enableval" == "yes"; then
8289 cat >>confdefs.h <<\_ACEOF
8290 #define ENABLE_WATCH 1
8291 _ACEOF
8293 fi
8294 fi
8296 # Check whether --enable-sh4stats was given.
8297 if test "${enable_sh4stats+set}" = set; then
8298 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8300 cat >>confdefs.h <<\_ACEOF
8301 #define ENABLE_SH4STATS 1
8302 _ACEOF
8304 fi
8305 fi
8308 # Check whether --with-osmesa was given.
8309 if test "${with_osmesa+set}" = set; then
8310 withval=$with_osmesa;
8311 else
8312 with_osmesa=no
8313 fi
8316 # Check whether --with-gtk was given.
8317 if test "${with_gtk+set}" = set; then
8318 withval=$with_gtk; with_gtk=yes
8319 else
8320 with_gtk=x11
8321 fi
8324 # Check whether --with-esd was given.
8325 if test "${with_esd+set}" = set; then
8326 withval=$with_esd;
8327 fi
8330 # Check whether --with-pulse was given.
8331 if test "${with_pulse+set}" = set; then
8332 withval=$with_pulse;
8333 fi
8336 # Check whether --with-sdl was given.
8337 if test "${with_sdl+set}" = set; then
8338 withval=$with_sdl;
8339 fi
8346 ac_ext=m
8347 ac_cpp='$OBJCPP $CPPFLAGS'
8348 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8349 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8350 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8351 if test -n "$ac_tool_prefix"; then
8352 for ac_prog in gcc objcc objc cc CC
8353 do
8354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_OBJC+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 if test -n "$OBJC"; then
8362 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8379 fi
8380 fi
8381 OBJC=$ac_cv_prog_OBJC
8382 if test -n "$OBJC"; then
8383 { echo "$as_me:$LINENO: result: $OBJC" >&5
8384 echo "${ECHO_T}$OBJC" >&6; }
8385 else
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8391 test -n "$OBJC" && break
8392 done
8393 fi
8394 if test -z "$OBJC"; then
8395 ac_ct_OBJC=$OBJC
8396 for ac_prog in gcc objcc objc cc CC
8397 do
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 if test -n "$ac_ct_OBJC"; then
8406 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8423 fi
8424 fi
8425 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8426 if test -n "$ac_ct_OBJC"; then
8427 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
8428 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
8429 else
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8432 fi
8435 test -n "$ac_ct_OBJC" && break
8436 done
8438 if test "x$ac_ct_OBJC" = x; then
8439 OBJC="gcc"
8440 else
8441 case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451 OBJC=$ac_ct_OBJC
8452 fi
8453 fi
8455 # Provide some information about the compiler.
8456 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
8457 ac_compiler=`set X $ac_compile; echo $2`
8458 { (ac_try="$ac_compiler --version >&5"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compiler --version >&5") 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }
8468 { (ac_try="$ac_compiler -v >&5"
8469 case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compiler -v >&5") 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }
8478 { (ac_try="$ac_compiler -V >&5"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compiler -V >&5") 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }
8489 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
8490 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
8491 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 int
8502 main ()
8503 {
8504 #ifndef __GNUC__
8505 choke me
8506 #endif
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8514 case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_objc_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_compiler_gnu=yes
8530 else
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_compiler_gnu=no
8535 fi
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8540 fi
8541 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
8542 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
8543 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
8544 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8545 ac_save_OBJCFLAGS=$OBJCFLAGS
8546 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
8547 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
8548 if test "${ac_cv_prog_objc_g+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 ac_save_objc_werror_flag=$ac_objc_werror_flag
8552 ac_objc_werror_flag=yes
8553 ac_cv_prog_objc_g=no
8554 OBJCFLAGS="-g"
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8562 int
8563 main ()
8564 {
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_objc_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest.$ac_objext; then
8587 ac_cv_prog_objc_g=yes
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8592 OBJCFLAGS=""
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8600 int
8601 main ()
8602 {
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (ac_try="$ac_compile"
8610 case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_compile") 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_objc_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest.$ac_objext; then
8625 :
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_objc_werror_flag=$ac_save_objc_werror_flag
8631 OBJCFLAGS="-g"
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8639 int
8640 main ()
8641 {
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8649 case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_compile") 2>conftest.er1
8655 ac_status=$?
8656 grep -v '^ *+' conftest.er1 >conftest.err
8657 rm -f conftest.er1
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && {
8661 test -z "$ac_objc_werror_flag" ||
8662 test ! -s conftest.err
8663 } && test -s conftest.$ac_objext; then
8664 ac_cv_prog_objc_g=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8670 fi
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 fi
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 ac_objc_werror_flag=$ac_save_objc_werror_flag
8680 fi
8681 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
8682 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
8683 if test "$ac_test_OBJCFLAGS" = set; then
8684 OBJCFLAGS=$ac_save_OBJCFLAGS
8685 elif test $ac_cv_prog_objc_g = yes; then
8686 if test "$GOBJC" = yes; then
8687 OBJCFLAGS="-g -O2"
8688 else
8689 OBJCFLAGS="-g"
8690 fi
8691 else
8692 if test "$GOBJC" = yes; then
8693 OBJCFLAGS="-O2"
8694 else
8695 OBJCFLAGS=
8696 fi
8697 fi
8698 ac_ext=c
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
8705 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
8706 ac_ext=m
8707 ac_cpp='$OBJCPP $CPPFLAGS'
8708 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 @interface Foo @end
8718 int
8719 main ()
8720 {
8722 ;
8723 return 0;
8724 }
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8728 case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_compile") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && {
8740 test -z "$ac_objc_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest.$ac_objext; then
8743 { echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6; }
8746 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
8747 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
8748 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h. */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757 $ac_includes_default
8759 #include <Cocoa/Cocoa.h>
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8763 case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_objc_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_header_Cocoa_Cocoa_h=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_header_Cocoa_Cocoa_h=no
8784 fi
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
8789 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
8790 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
8792 HAVE_COCOA='yes'
8793 APPLE_BUILD='yes'
8794 LIBS="$LIBS -framework AppKit -framework Carbon"
8795 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"
8796 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
8797 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_COCOA 1
8801 _ACEOF
8804 cat >>confdefs.h <<\_ACEOF
8805 #define APPLE_BUILD 1
8806 _ACEOF
8808 if test "x$with_gtk" = "xx11"; then
8809 with_gtk=no
8810 fi
8812 fi
8817 { echo "$as_me:$LINENO: checking OBJC version" >&5
8818 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
8819 if test -n "$OBJC"; then
8820 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
8821 if test -n "$_GOBJC_VERSION"; then
8822 { echo "$as_me:$LINENO: result: GCC" >&5
8823 echo "${ECHO_T}GCC" >&6; }
8824 OBJCOPT="-O2"
8825 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
8826 else
8827 { echo "$as_me:$LINENO: result: Unknown" >&5
8828 echo "${ECHO_T}Unknown" >&6; }
8829 OBJCOPT="-O2"
8830 fi
8831 else
8832 { echo "$as_me:$LINENO: result: None" >&5
8833 echo "${ECHO_T}None" >&6; }
8835 fi
8838 ac_ext=m
8839 ac_cpp='$OBJCPP $CPPFLAGS'
8840 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8844 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
8845 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
8846 save_OBJCFLAGS="$OBJCFLAGS"
8847 OBJCFLAGS="-msse2 $OBJCFLAGS"
8848 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 int main() { return 0; }
8856 _ACEOF
8857 rm -f conftest.$ac_objext
8858 if { (ac_try="$ac_compile"
8859 case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862 esac
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_objc_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8875 { echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6; }
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8883 OBJCFLAGS="$save_OBJCFLAGS"
8884 { echo "$as_me:$LINENO: result: no" >&5
8885 echo "${ECHO_T}no" >&6; }
8887 fi
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 ac_ext=m
8891 ac_cpp='$OBJCPP $CPPFLAGS'
8892 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8898 ac_ext=m
8899 ac_cpp='$OBJCPP $CPPFLAGS'
8900 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8901 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8902 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8904 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
8905 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
8906 save_OBJCFLAGS="$OBJCFLAGS"
8907 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
8908 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 int main() { return 0; }
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_objc_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8935 { echo "$as_me:$LINENO: result: yes" >&5
8936 echo "${ECHO_T}yes" >&6; }
8938 else
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8943 OBJCFLAGS="$save_OBJCFLAGS"
8944 { echo "$as_me:$LINENO: result: no" >&5
8945 echo "${ECHO_T}no" >&6; }
8947 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 ac_ext=m
8951 ac_cpp='$OBJCPP $CPPFLAGS'
8952 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 { echo "$as_me:$LINENO: result: No" >&5
8963 echo "${ECHO_T}No" >&6; }
8965 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
8968 ac_ext=c
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
8979 GUI_COCOA_TRUE=
8980 GUI_COCOA_FALSE='#'
8981 else
8982 GUI_COCOA_TRUE='#'
8983 GUI_COCOA_FALSE=
8984 fi
8986 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define OSX_BUNDLE 1
8990 _ACEOF
8992 fi
8994 CFLAGS="-g -fexceptions"
8995 OBJCFLAGS="-g -fexceptions"
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_EXCEPTIONS 1
8999 _ACEOF
9002 STDCFLAG="-std=c99"
9004 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9005 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9006 { echo "$as_me:$LINENO: checking CC version" >&5
9007 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9008 if test -n "$_ICC_VERSION"; then
9009 { echo "$as_me:$LINENO: result: ICC" >&5
9010 echo "${ECHO_T}ICC" >&6; }
9011 CCOPT="$CFLAGS -fast"
9012 CFLAGS="$CFLAGS -fno-strict-aliasing"
9013 elif test -n "$_GCC_VERSION"; then
9014 { echo "$as_me:$LINENO: result: GCC" >&5
9015 echo "${ECHO_T}GCC" >&6; }
9016 CCOPT="-O2"
9017 CFLAGS="$CFLAGS -fno-strict-aliasing"
9018 else
9019 { echo "$as_me:$LINENO: result: Unknown" >&5
9020 echo "${ECHO_T}Unknown" >&6; }
9021 CCOPT="$CFLAGS -O2"
9022 fi
9025 ac_ext=c
9026 ac_cpp='$CPP $CPPFLAGS'
9027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9032 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9033 save_CFLAGS="$CFLAGS"
9034 CFLAGS="-msse2 $CFLAGS"
9035 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h. */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 int main() { return 0; }
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9046 case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest.$ac_objext; then
9062 { echo "$as_me:$LINENO: result: yes" >&5
9063 echo "${ECHO_T}yes" >&6; }
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9070 CFLAGS="$save_CFLAGS"
9071 { echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6; }
9074 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 ac_ext=c
9078 ac_cpp='$CPP $CPPFLAGS'
9079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9085 ac_ext=c
9086 ac_cpp='$CPP $CPPFLAGS'
9087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9091 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9092 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9093 save_CFLAGS="$CFLAGS"
9094 CFLAGS="-mfpmath=sse $CFLAGS"
9095 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 int main() { return 0; }
9103 _ACEOF
9104 rm -f conftest.$ac_objext
9105 if { (ac_try="$ac_compile"
9106 case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9122 { echo "$as_me:$LINENO: result: yes" >&5
9123 echo "${ECHO_T}yes" >&6; }
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9130 CFLAGS="$save_CFLAGS"
9131 { echo "$as_me:$LINENO: result: no" >&5
9132 echo "${ECHO_T}no" >&6; }
9134 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 ac_ext=c
9138 ac_cpp='$CPP $CPPFLAGS'
9139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145 if test "x$enable_optimized" = "xyes"; then
9146 CFLAGS="$CFLAGS $CCOPT"
9147 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9148 if test "x$enable_profiled" != "xyes"; then
9149 CFLAGS="$CFLAGS -fomit-frame-pointer"
9150 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9151 fi
9152 else
9153 CFLAGS="$CFLAGS -g3"
9154 OBJCFLAGS="$OBJCFLAGS -g3"
9155 fi
9157 if test "x$enable_profiled" = "xyes"; then
9158 CFLAGS="$CFLAGS -pg"
9159 LDFLAGS="$LDFLAGS -pg";
9160 OBJCFLAGS="$OBJCFLAGS -pg";
9161 fi
9163 if test "x$enable_strictwarn" = "xyes"; then
9164 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9165 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9166 fi
9168 if test "x$enable_shared" != "xno"; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define ENABLE_SHARED 1
9172 _ACEOF
9174 if test "x$APPLE_BUILD" = "xyes"; then
9175 SOEXT="dylib"
9176 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9177 else
9178 SOEXT="so"
9179 PLUGINLDFLAGS="-shared"
9180 fi
9181 PLUGINCFLAGS="-fPIC"
9183 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9184 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9185 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9186 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 fi
9189 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9190 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9191 else
9192 # Is the header compilable?
9193 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9194 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 $ac_includes_default
9202 #include <dlfcn.h>
9203 _ACEOF
9204 rm -f conftest.$ac_objext
9205 if { (ac_try="$ac_compile"
9206 case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.$ac_objext; then
9221 ac_header_compiler=yes
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_header_compiler=no
9227 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9231 echo "${ECHO_T}$ac_header_compiler" >&6; }
9233 # Is the header present?
9234 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9235 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9236 cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h. */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 #include <dlfcn.h>
9243 _ACEOF
9244 if { (ac_try="$ac_cpp conftest.$ac_ext"
9245 case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9248 esac
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } >/dev/null && {
9257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 }; then
9260 ac_header_preproc=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_preproc=no
9266 fi
9268 rm -f conftest.err conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9270 echo "${ECHO_T}$ac_header_preproc" >&6; }
9272 # So? What about this header?
9273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9274 yes:no: )
9275 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9276 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9278 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9279 ac_header_preproc=yes
9280 ;;
9281 no:yes:* )
9282 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9283 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9285 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9287 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9289 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9291 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9293 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9295 ;;
9296 esac
9297 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9298 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9299 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302 ac_cv_header_dlfcn_h=$ac_header_preproc
9303 fi
9304 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9307 fi
9308 if test $ac_cv_header_dlfcn_h = yes; then
9310 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9311 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9312 if test "${ac_cv_search_dlopen+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 ac_func_search_save_LIBS=$LIBS
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9323 /* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9326 #ifdef __cplusplus
9327 extern "C"
9328 #endif
9329 char dlopen ();
9330 int
9331 main ()
9332 {
9333 return dlopen ();
9334 ;
9335 return 0;
9336 }
9337 _ACEOF
9338 for ac_lib in '' dl; do
9339 if test -z "$ac_lib"; then
9340 ac_res="none required"
9341 else
9342 ac_res=-l$ac_lib
9343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9344 fi
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9347 case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext &&
9362 $as_test_x conftest$ac_exeext; then
9363 ac_cv_search_dlopen=$ac_res
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9369 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372 conftest$ac_exeext
9373 if test "${ac_cv_search_dlopen+set}" = set; then
9374 break
9375 fi
9376 done
9377 if test "${ac_cv_search_dlopen+set}" = set; then
9378 :
9379 else
9380 ac_cv_search_dlopen=no
9381 fi
9382 rm conftest.$ac_ext
9383 LIBS=$ac_func_search_save_LIBS
9384 fi
9385 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9386 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9387 ac_res=$ac_cv_search_dlopen
9388 if test "$ac_res" != no; then
9389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9390 have_dlopen=yes
9391 fi
9393 fi
9396 if test "x$have_dlopen" != "xyes"; then
9397 if test "x$enable_shared" == "xyes"; then
9398 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
9399 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
9400 { (exit 1); exit 1; }; }
9401 else
9402 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
9403 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
9404 fi
9405 fi
9407 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
9408 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
9409 old_LDFLAGS="$LDFLAGS"
9410 LDFLAGS="$LDFLAGS -rdynamic"
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h. */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 int main() { return 0; }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9438 LXDREAMLDFLAGS="-rdynamic"
9439 { echo "$as_me:$LINENO: result: yes" >&5
9440 echo "${ECHO_T}yes" >&6; }
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9447 LXDREAMLDFLAGS=""
9448 { echo "$as_me:$LINENO: result: no" >&5
9449 echo "${ECHO_T}no" >&6; }
9450 fi
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LDFLAGS="$old_LDFLAGS"
9460 fi
9463 if test "x$have_dlopen" = "xyes"; then
9464 BUILD_SHARED_TRUE=
9465 BUILD_SHARED_FALSE='#'
9466 else
9467 BUILD_SHARED_TRUE='#'
9468 BUILD_SHARED_FALSE=
9469 fi
9473 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
9474 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
9475 if test "$cross_compiling" = yes; then
9477 { echo "$as_me:$LINENO: result: no" >&5
9478 echo "${ECHO_T}no" >&6; }
9480 else
9481 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
9491 int main(int argc, char *argv[])
9492 {
9493 return foo( 1, 2 ) == 3 ? 0 : 1;
9494 }
9495 _ACEOF
9496 rm -f conftest$ac_exeext
9497 if { (ac_try="$ac_link"
9498 case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_link") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9507 { (case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_try") 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9517 { echo "$as_me:$LINENO: result: yes" >&5
9518 echo "${ECHO_T}yes" >&6; }
9521 cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_FASTCALL 1
9523 _ACEOF
9526 else
9527 echo "$as_me: program exited with status $ac_status" >&5
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ( exit $ac_status )
9533 { echo "$as_me:$LINENO: result: no" >&5
9534 echo "${ECHO_T}no" >&6; }
9536 fi
9537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9538 fi
9543 { echo "$as_me:$LINENO: checking support for force inlining" >&5
9544 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
9545 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9553 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
9555 int main(int argc, char *argv[])
9556 {
9557 return foo( 1, 2 ) == 3 ? 0 : 1;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext
9561 if { (ac_try="$ac_compile"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_compile") 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest.$ac_objext; then
9578 FORCEINLINE="__attribute__((always_inline))"
9579 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
9580 echo "${ECHO_T}$FORCEINLINE" >&6; }
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9587 FORCEINLINE=""
9588 { echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6; }
9591 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 cat >>confdefs.h <<_ACEOF
9597 #define FORCEINLINE $FORCEINLINE
9598 _ACEOF
9601 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
9602 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
9603 if test "$cross_compiling" = yes; then
9605 { echo "$as_me:$LINENO: result: no" >&5
9606 echo "${ECHO_T}no" >&6; }
9607 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9608 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9609 else
9610 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9618 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
9619 int __attribute__((noinline)) foo( int arg, void *exc )
9620 {
9621 if( arg < 2 ) {
9622 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
9623 }
9624 return 0;
9625 }
9627 int main(int argc, char *argv[])
9628 {
9629 goto *first_arg(&&start, &&except);
9631 start:
9632 return foo( argc, &&except ) + 1;
9634 except:
9635 return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest$ac_exeext
9639 if { (ac_try="$ac_link"
9640 case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9659 { echo "$as_me:$LINENO: result: yes" >&5
9660 echo "${ECHO_T}yes" >&6; }
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_FRAME_ADDRESS 1
9665 _ACEOF
9668 else
9669 echo "$as_me: program exited with status $ac_status" >&5
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ( exit $ac_status )
9675 { echo "$as_me:$LINENO: result: no" >&5
9676 echo "${ECHO_T}no" >&6; }
9677 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9678 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9679 fi
9680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9681 fi
9687 { echo "$as_me:$LINENO: checking for library containing listen" >&5
9688 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
9689 if test "${ac_cv_search_listen+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 ac_func_search_save_LIBS=$LIBS
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 char listen ();
9707 int
9708 main ()
9709 {
9710 return listen ();
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 for ac_lib in '' socket; do
9716 if test -z "$ac_lib"; then
9717 ac_res="none required"
9718 else
9719 ac_res=-l$ac_lib
9720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9721 fi
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
9740 ac_cv_search_listen=$ac_res
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9746 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749 conftest$ac_exeext
9750 if test "${ac_cv_search_listen+set}" = set; then
9751 break
9752 fi
9753 done
9754 if test "${ac_cv_search_listen+set}" = set; then
9755 :
9756 else
9757 ac_cv_search_listen=no
9758 fi
9759 rm conftest.$ac_ext
9760 LIBS=$ac_func_search_save_LIBS
9761 fi
9762 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
9763 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
9764 ac_res=$ac_cv_search_listen
9765 if test "$ac_res" != no; then
9766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9768 fi
9770 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
9771 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
9772 if test "${ac_cv_search_inet_ntoa+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 ac_func_search_save_LIBS=$LIBS
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char inet_ntoa ();
9790 int
9791 main ()
9792 {
9793 return inet_ntoa ();
9794 ;
9795 return 0;
9796 }
9797 _ACEOF
9798 for ac_lib in '' nsl; do
9799 if test -z "$ac_lib"; then
9800 ac_res="none required"
9801 else
9802 ac_res=-l$ac_lib
9803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9804 fi
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9807 case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest$ac_exeext &&
9822 $as_test_x conftest$ac_exeext; then
9823 ac_cv_search_inet_ntoa=$ac_res
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9829 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832 conftest$ac_exeext
9833 if test "${ac_cv_search_inet_ntoa+set}" = set; then
9834 break
9835 fi
9836 done
9837 if test "${ac_cv_search_inet_ntoa+set}" = set; then
9838 :
9839 else
9840 ac_cv_search_inet_ntoa=no
9841 fi
9842 rm conftest.$ac_ext
9843 LIBS=$ac_func_search_save_LIBS
9844 fi
9845 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
9846 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
9847 ac_res=$ac_cv_search_inet_ntoa
9848 if test "$ac_res" != no; then
9849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9851 fi
9856 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9857 if test -n "$ac_tool_prefix"; then
9858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9862 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 case $PKG_CONFIG in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9868 ;;
9869 *)
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881 done
9882 done
9883 IFS=$as_save_IFS
9885 ;;
9886 esac
9887 fi
9888 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9889 if test -n "$PKG_CONFIG"; then
9890 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9891 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9892 else
9893 { echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6; }
9895 fi
9898 fi
9899 if test -z "$ac_cv_path_PKG_CONFIG"; then
9900 ac_pt_PKG_CONFIG=$PKG_CONFIG
9901 # Extract the first word of "pkg-config", so it can be a program name with args.
9902 set dummy pkg-config; ac_word=$2
9903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9905 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 case $ac_pt_PKG_CONFIG in
9909 [\\/]* | ?:[\\/]*)
9910 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9911 ;;
9912 *)
9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914 for as_dir in $PATH
9915 do
9916 IFS=$as_save_IFS
9917 test -z "$as_dir" && as_dir=.
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9920 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9922 break 2
9923 fi
9924 done
9925 done
9926 IFS=$as_save_IFS
9928 ;;
9929 esac
9930 fi
9931 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9932 if test -n "$ac_pt_PKG_CONFIG"; then
9933 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9934 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
9935 else
9936 { echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6; }
9938 fi
9940 if test "x$ac_pt_PKG_CONFIG" = x; then
9941 PKG_CONFIG=""
9942 else
9943 case $cross_compiling:$ac_tool_warned in
9944 yes:)
9945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9946 whose name does not start with the host triplet. If you think this
9947 configuration is useful to you, please write to autoconf@gnu.org." >&5
9948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9949 whose name does not start with the host triplet. If you think this
9950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9951 ac_tool_warned=yes ;;
9952 esac
9953 PKG_CONFIG=$ac_pt_PKG_CONFIG
9954 fi
9955 else
9956 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9957 fi
9959 fi
9960 if test -n "$PKG_CONFIG"; then
9961 _pkg_min_version=0.9.0
9962 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9963 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
9964 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9965 { echo "$as_me:$LINENO: result: yes" >&5
9966 echo "${ECHO_T}yes" >&6; }
9967 else
9968 { echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6; }
9970 PKG_CONFIG=""
9971 fi
9973 fi
9975 pkg_failed=no
9976 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
9977 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
9979 if test -n "$LIBPNG_CFLAGS"; then
9980 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
9981 elif test -n "$PKG_CONFIG"; then
9982 if test -n "$PKG_CONFIG" && \
9983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
9984 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; then
9988 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
9989 else
9990 pkg_failed=yes
9991 fi
9992 else
9993 pkg_failed=untried
9994 fi
9995 if test -n "$LIBPNG_LIBS"; then
9996 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
9997 elif test -n "$PKG_CONFIG"; then
9998 if test -n "$PKG_CONFIG" && \
9999 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10000 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; then
10004 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10005 else
10006 pkg_failed=yes
10007 fi
10008 else
10009 pkg_failed=untried
10010 fi
10014 if test $pkg_failed = yes; then
10016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10017 _pkg_short_errors_supported=yes
10018 else
10019 _pkg_short_errors_supported=no
10020 fi
10021 if test $_pkg_short_errors_supported = yes; then
10022 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10023 else
10024 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10025 fi
10026 # Put the nasty error message in config.log where it belongs
10027 echo "$LIBPNG_PKG_ERRORS" >&5
10029 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10031 $LIBPNG_PKG_ERRORS
10033 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10034 installed software in a non-standard prefix.
10036 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10037 and LIBPNG_LIBS to avoid the need to call pkg-config.
10038 See the pkg-config man page for more details.
10039 " >&5
10040 echo "$as_me: error: Package requirements (libpng ) were not met:
10042 $LIBPNG_PKG_ERRORS
10044 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10045 installed software in a non-standard prefix.
10047 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10048 and LIBPNG_LIBS to avoid the need to call pkg-config.
10049 See the pkg-config man page for more details.
10050 " >&2;}
10051 { (exit 1); exit 1; }; }
10052 elif test $pkg_failed = untried; then
10053 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10054 is in your PATH or set the PKG_CONFIG environment variable to the full
10055 path to pkg-config.
10057 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10058 and LIBPNG_LIBS to avoid the need to call pkg-config.
10059 See the pkg-config man page for more details.
10061 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10062 See \`config.log' for more details." >&5
10063 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10064 is in your PATH or set the PKG_CONFIG environment variable to the full
10065 path to pkg-config.
10067 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10068 and LIBPNG_LIBS to avoid the need to call pkg-config.
10069 See the pkg-config man page for more details.
10071 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10072 See \`config.log' for more details." >&2;}
10073 { (exit 1); exit 1; }; }
10074 else
10075 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10076 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10077 { echo "$as_me:$LINENO: result: yes" >&5
10078 echo "${ECHO_T}yes" >&6; }
10079 :
10080 fi
10083 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10084 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10085 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 ac_check_lib_save_LIBS=$LIBS
10089 LIBS="-lz $LIBS"
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 char uncompress ();
10104 int
10105 main ()
10106 {
10107 return uncompress ();
10108 ;
10109 return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest$ac_exeext &&
10129 $as_test_x conftest$ac_exeext; then
10130 ac_cv_lib_z_uncompress=yes
10131 else
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_lib_z_uncompress=no
10136 fi
10138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10139 conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10141 fi
10142 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10143 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10144 if test $ac_cv_lib_z_uncompress = yes; then
10145 cat >>confdefs.h <<_ACEOF
10146 #define HAVE_LIBZ 1
10147 _ACEOF
10149 LIBS="-lz $LIBS"
10151 else
10153 echo "Zlib (libz.so) could not be found, but is required."
10154 exit 1
10155 fi
10158 if test "x$with_gtk" = "xno"; then
10160 pkg_failed=no
10161 { echo "$as_me:$LINENO: checking for GLIB" >&5
10162 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10164 if test -n "$GLIB_CFLAGS"; then
10165 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10166 elif test -n "$PKG_CONFIG"; then
10167 if test -n "$PKG_CONFIG" && \
10168 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10169 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; then
10173 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10174 else
10175 pkg_failed=yes
10176 fi
10177 else
10178 pkg_failed=untried
10179 fi
10180 if test -n "$GLIB_LIBS"; then
10181 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10182 elif test -n "$PKG_CONFIG"; then
10183 if test -n "$PKG_CONFIG" && \
10184 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10185 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; then
10189 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10190 else
10191 pkg_failed=yes
10192 fi
10193 else
10194 pkg_failed=untried
10195 fi
10199 if test $pkg_failed = yes; then
10201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10202 _pkg_short_errors_supported=yes
10203 else
10204 _pkg_short_errors_supported=no
10205 fi
10206 if test $_pkg_short_errors_supported = yes; then
10207 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10208 else
10209 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10210 fi
10211 # Put the nasty error message in config.log where it belongs
10212 echo "$GLIB_PKG_ERRORS" >&5
10214 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10216 $GLIB_PKG_ERRORS
10218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10219 installed software in a non-standard prefix.
10221 Alternatively, you may set the environment variables GLIB_CFLAGS
10222 and GLIB_LIBS to avoid the need to call pkg-config.
10223 See the pkg-config man page for more details.
10224 " >&5
10225 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10227 $GLIB_PKG_ERRORS
10229 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10230 installed software in a non-standard prefix.
10232 Alternatively, you may set the environment variables GLIB_CFLAGS
10233 and GLIB_LIBS to avoid the need to call pkg-config.
10234 See the pkg-config man page for more details.
10235 " >&2;}
10236 { (exit 1); exit 1; }; }
10237 elif test $pkg_failed = untried; then
10238 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10239 is in your PATH or set the PKG_CONFIG environment variable to the full
10240 path to pkg-config.
10242 Alternatively, you may set the environment variables GLIB_CFLAGS
10243 and GLIB_LIBS to avoid the need to call pkg-config.
10244 See the pkg-config man page for more details.
10246 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10247 See \`config.log' for more details." >&5
10248 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10249 is in your PATH or set the PKG_CONFIG environment variable to the full
10250 path to pkg-config.
10252 Alternatively, you may set the environment variables GLIB_CFLAGS
10253 and GLIB_LIBS to avoid the need to call pkg-config.
10254 See the pkg-config man page for more details.
10256 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10257 See \`config.log' for more details." >&2;}
10258 { (exit 1); exit 1; }; }
10259 else
10260 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10261 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10262 { echo "$as_me:$LINENO: result: yes" >&5
10263 echo "${ECHO_T}yes" >&6; }
10264 :
10265 fi
10266 else
10268 pkg_failed=no
10269 { echo "$as_me:$LINENO: checking for GTK" >&5
10270 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10272 if test -n "$GTK_CFLAGS"; then
10273 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10274 elif test -n "$PKG_CONFIG"; then
10275 if test -n "$PKG_CONFIG" && \
10276 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10277 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10282 else
10283 pkg_failed=yes
10284 fi
10285 else
10286 pkg_failed=untried
10287 fi
10288 if test -n "$GTK_LIBS"; then
10289 pkg_cv_GTK_LIBS="$GTK_LIBS"
10290 elif test -n "$PKG_CONFIG"; then
10291 if test -n "$PKG_CONFIG" && \
10292 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10293 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; then
10297 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10298 else
10299 pkg_failed=yes
10300 fi
10301 else
10302 pkg_failed=untried
10303 fi
10307 if test $pkg_failed = yes; then
10309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10310 _pkg_short_errors_supported=yes
10311 else
10312 _pkg_short_errors_supported=no
10313 fi
10314 if test $_pkg_short_errors_supported = yes; then
10315 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10316 else
10317 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10318 fi
10319 # Put the nasty error message in config.log where it belongs
10320 echo "$GTK_PKG_ERRORS" >&5
10322 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10324 $GTK_PKG_ERRORS
10326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10327 installed software in a non-standard prefix.
10329 Alternatively, you may set the environment variables GTK_CFLAGS
10330 and GTK_LIBS to avoid the need to call pkg-config.
10331 See the pkg-config man page for more details.
10332 " >&5
10333 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10335 $GTK_PKG_ERRORS
10337 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10338 installed software in a non-standard prefix.
10340 Alternatively, you may set the environment variables GTK_CFLAGS
10341 and GTK_LIBS to avoid the need to call pkg-config.
10342 See the pkg-config man page for more details.
10343 " >&2;}
10344 { (exit 1); exit 1; }; }
10345 elif test $pkg_failed = untried; then
10346 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10347 is in your PATH or set the PKG_CONFIG environment variable to the full
10348 path to pkg-config.
10350 Alternatively, you may set the environment variables GTK_CFLAGS
10351 and GTK_LIBS to avoid the need to call pkg-config.
10352 See the pkg-config man page for more details.
10354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10355 See \`config.log' for more details." >&5
10356 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10357 is in your PATH or set the PKG_CONFIG environment variable to the full
10358 path to pkg-config.
10360 Alternatively, you may set the environment variables GTK_CFLAGS
10361 and GTK_LIBS to avoid the need to call pkg-config.
10362 See the pkg-config man page for more details.
10364 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10365 See \`config.log' for more details." >&2;}
10366 { (exit 1); exit 1; }; }
10367 else
10368 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10369 GTK_LIBS=$pkg_cv_GTK_LIBS
10370 { echo "$as_me:$LINENO: result: yes" >&5
10371 echo "${ECHO_T}yes" >&6; }
10373 HAVE_GTK='yes'
10375 cat >>confdefs.h <<\_ACEOF
10376 #define HAVE_GTK 1
10377 _ACEOF
10380 fi
10382 LIBS="$LIBS $GTK_LIBS"
10383 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
10384 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
10385 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
10395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10396 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
10398 /* System header to define __stub macros and hopefully few prototypes,
10399 which can conflict with char gdk_x11_display_get_xdisplay (); below.
10400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10401 <limits.h> exists even on freestanding compilers. */
10403 #ifdef __STDC__
10404 # include <limits.h>
10405 #else
10406 # include <assert.h>
10407 #endif
10409 #undef gdk_x11_display_get_xdisplay
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char gdk_x11_display_get_xdisplay ();
10418 /* The GNU C library defines this for functions which it implements
10419 to always fail with ENOSYS. Some functions are actually named
10420 something starting with __ and the normal name is an alias. */
10421 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
10422 choke me
10423 #endif
10425 int
10426 main ()
10427 {
10428 return gdk_x11_display_get_xdisplay ();
10429 ;
10430 return 0;
10431 }
10432 _ACEOF
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (ac_try="$ac_link"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_link") 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest$ac_exeext &&
10450 $as_test_x conftest$ac_exeext; then
10451 ac_cv_func_gdk_x11_display_get_xdisplay=yes
10452 else
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_cv_func_gdk_x11_display_get_xdisplay=no
10457 fi
10459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10460 conftest$ac_exeext conftest.$ac_ext
10461 fi
10462 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
10463 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
10464 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
10466 HAVE_GTK_X11='yes'
10468 cat >>confdefs.h <<\_ACEOF
10469 #define HAVE_GTK_X11 1
10470 _ACEOF
10472 fi
10474 GTK_LIBS="$GTK_LIBS -lX11"
10475 LIBS="$LIBS -lX11"
10476 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
10477 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
10478 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char gdk_quartz_window_get_nsview (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10496 #ifdef __STDC__
10497 # include <limits.h>
10498 #else
10499 # include <assert.h>
10500 #endif
10502 #undef gdk_quartz_window_get_nsview
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 char gdk_quartz_window_get_nsview ();
10511 /* The GNU C library defines this for functions which it implements
10512 to always fail with ENOSYS. Some functions are actually named
10513 something starting with __ and the normal name is an alias. */
10514 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
10515 choke me
10516 #endif
10518 int
10519 main ()
10520 {
10521 return gdk_quartz_window_get_nsview ();
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_link") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest$ac_exeext &&
10543 $as_test_x conftest$ac_exeext; then
10544 ac_cv_func_gdk_quartz_window_get_nsview=yes
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_func_gdk_quartz_window_get_nsview=no
10550 fi
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553 conftest$ac_exeext conftest.$ac_ext
10554 fi
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
10556 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
10557 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
10559 HAVE_GTK_OSX='yes'
10561 cat >>confdefs.h <<\_ACEOF
10562 #define HAVE_GTK_OSX 1
10563 _ACEOF
10565 fi
10567 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
10568 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
10569 See \`config.log' for more details." >&5
10570 echo "$as_me: error: Unable to identify GTK platform
10571 See \`config.log' for more details." >&2;}
10572 { (exit 1); exit 1; }; }
10573 fi
10574 fi
10578 if test "$HAVE_GTK" = 'yes'; then
10579 GUI_GTK_TRUE=
10580 GUI_GTK_FALSE='#'
10581 else
10582 GUI_GTK_TRUE='#'
10583 GUI_GTK_FALSE=
10584 fi
10588 pkg_failed=no
10589 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
10590 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
10592 if test -n "$LIBISOFS_CFLAGS"; then
10593 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
10594 elif test -n "$PKG_CONFIG"; then
10595 if test -n "$PKG_CONFIG" && \
10596 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
10597 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; then
10601 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
10602 else
10603 pkg_failed=yes
10604 fi
10605 else
10606 pkg_failed=untried
10607 fi
10608 if test -n "$LIBISOFS_LIBS"; then
10609 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
10610 elif test -n "$PKG_CONFIG"; then
10611 if test -n "$PKG_CONFIG" && \
10612 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
10613 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; then
10617 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
10618 else
10619 pkg_failed=yes
10620 fi
10621 else
10622 pkg_failed=untried
10623 fi
10627 if test $pkg_failed = yes; then
10629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10630 _pkg_short_errors_supported=yes
10631 else
10632 _pkg_short_errors_supported=no
10633 fi
10634 if test $_pkg_short_errors_supported = yes; then
10635 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
10636 else
10637 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
10638 fi
10639 # Put the nasty error message in config.log where it belongs
10640 echo "$LIBISOFS_PKG_ERRORS" >&5
10642 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
10644 $LIBISOFS_PKG_ERRORS
10646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10647 installed software in a non-standard prefix.
10649 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10650 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10651 See the pkg-config man page for more details.
10652 " >&5
10653 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
10655 $LIBISOFS_PKG_ERRORS
10657 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10658 installed software in a non-standard prefix.
10660 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10661 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10662 See the pkg-config man page for more details.
10663 " >&2;}
10664 { (exit 1); exit 1; }; }
10665 elif test $pkg_failed = untried; then
10666 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10667 is in your PATH or set the PKG_CONFIG environment variable to the full
10668 path to pkg-config.
10670 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10671 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10672 See the pkg-config man page for more details.
10674 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10675 See \`config.log' for more details." >&5
10676 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10677 is in your PATH or set the PKG_CONFIG environment variable to the full
10678 path to pkg-config.
10680 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10681 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10682 See the pkg-config man page for more details.
10684 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10685 See \`config.log' for more details." >&2;}
10686 { (exit 1); exit 1; }; }
10687 else
10688 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
10689 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
10690 { echo "$as_me:$LINENO: result: yes" >&5
10691 echo "${ECHO_T}yes" >&6; }
10692 :
10693 fi
10695 if test "x$with_osmesa" != xno; then
10699 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
10700 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
10701 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-lOSMesa $LIBS"
10706 cat >conftest.$ac_ext <<_ACEOF
10707 /* confdefs.h. */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char OSMesaCreateContext ();
10720 int
10721 main ()
10722 {
10723 return OSMesaCreateContext ();
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_OSMesa_OSMesaCreateContext=no
10752 fi
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10757 fi
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
10759 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
10760 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define HAVE_LIBOSMESA 1
10763 _ACEOF
10765 LIBS="-lOSMesa $LIBS"
10767 else
10768 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
10769 See \`config.log' for more details." >&5
10770 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
10771 See \`config.log' for more details." >&2;}
10772 { (exit 1); exit 1; }; }
10773 fi
10775 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
10776 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
10777 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
10778 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 fi
10781 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
10782 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
10783 else
10784 # Is the header compilable?
10785 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
10786 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
10787 cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h. */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 $ac_includes_default
10794 #include <GL/osmesa.h>
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest.$ac_objext; then
10813 ac_header_compiler=yes
10814 else
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ac_header_compiler=no
10819 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823 echo "${ECHO_T}$ac_header_compiler" >&6; }
10825 # Is the header present?
10826 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
10827 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h. */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <GL/osmesa.h>
10835 _ACEOF
10836 if { (ac_try="$ac_cpp conftest.$ac_ext"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } >/dev/null && {
10849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 }; then
10852 ac_header_preproc=yes
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_header_preproc=no
10858 fi
10860 rm -f conftest.err conftest.$ac_ext
10861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10862 echo "${ECHO_T}$ac_header_preproc" >&6; }
10864 # So? What about this header?
10865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10866 yes:no: )
10867 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
10868 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
10870 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
10871 ac_header_preproc=yes
10872 ;;
10873 no:yes:* )
10874 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
10875 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
10877 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
10879 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
10881 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
10883 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
10885 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
10887 ;;
10888 esac
10889 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
10890 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
10891 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 ac_cv_header_GL_osmesa_h=$ac_header_preproc
10895 fi
10896 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
10899 fi
10900 if test $ac_cv_header_GL_osmesa_h = yes; then
10901 :
10902 else
10903 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
10904 See \`config.log' for more details." >&5
10905 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
10906 See \`config.log' for more details." >&2;}
10907 { (exit 1); exit 1; }; }
10908 fi
10911 HAVE_OSMESA='yes'
10912 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_OSMESA 1
10916 _ACEOF
10918 else
10921 if test "x$APPLE_BUILD" != 'xyes'; then
10923 pkg_failed=no
10924 { echo "$as_me:$LINENO: checking for LIBGL" >&5
10925 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
10927 if test -n "$LIBGL_CFLAGS"; then
10928 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
10929 elif test -n "$PKG_CONFIG"; then
10930 if test -n "$PKG_CONFIG" && \
10931 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
10932 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; then
10936 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
10937 else
10938 pkg_failed=yes
10939 fi
10940 else
10941 pkg_failed=untried
10942 fi
10943 if test -n "$LIBGL_LIBS"; then
10944 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
10945 elif test -n "$PKG_CONFIG"; then
10946 if test -n "$PKG_CONFIG" && \
10947 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
10948 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; then
10952 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
10953 else
10954 pkg_failed=yes
10955 fi
10956 else
10957 pkg_failed=untried
10958 fi
10962 if test $pkg_failed = yes; then
10964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10965 _pkg_short_errors_supported=yes
10966 else
10967 _pkg_short_errors_supported=no
10968 fi
10969 if test $_pkg_short_errors_supported = yes; then
10970 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
10971 else
10972 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
10973 fi
10974 # Put the nasty error message in config.log where it belongs
10975 echo "$LIBGL_PKG_ERRORS" >&5
10977 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
10979 $LIBGL_PKG_ERRORS
10981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10982 installed software in a non-standard prefix.
10984 Alternatively, you may set the environment variables LIBGL_CFLAGS
10985 and LIBGL_LIBS to avoid the need to call pkg-config.
10986 See the pkg-config man page for more details.
10987 " >&5
10988 echo "$as_me: error: Package requirements (gl ) were not met:
10990 $LIBGL_PKG_ERRORS
10992 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10993 installed software in a non-standard prefix.
10995 Alternatively, you may set the environment variables LIBGL_CFLAGS
10996 and LIBGL_LIBS to avoid the need to call pkg-config.
10997 See the pkg-config man page for more details.
10998 " >&2;}
10999 { (exit 1); exit 1; }; }
11000 elif test $pkg_failed = untried; then
11001 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11002 is in your PATH or set the PKG_CONFIG environment variable to the full
11003 path to pkg-config.
11005 Alternatively, you may set the environment variables LIBGL_CFLAGS
11006 and LIBGL_LIBS to avoid the need to call pkg-config.
11007 See the pkg-config man page for more details.
11009 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11010 See \`config.log' for more details." >&5
11011 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11012 is in your PATH or set the PKG_CONFIG environment variable to the full
11013 path to pkg-config.
11015 Alternatively, you may set the environment variables LIBGL_CFLAGS
11016 and LIBGL_LIBS to avoid the need to call pkg-config.
11017 See the pkg-config man page for more details.
11019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11020 See \`config.log' for more details." >&2;}
11021 { (exit 1); exit 1; }; }
11022 else
11023 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11024 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11025 { echo "$as_me:$LINENO: result: yes" >&5
11026 echo "${ECHO_T}yes" >&6; }
11027 :
11028 fi
11029 LIBS="$LIBS $LIBGL_LIBS";
11030 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11031 else
11032 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11033 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11034 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h. */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11045 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11047 /* System header to define __stub macros and hopefully few prototypes,
11048 which can conflict with char NSOpenGLGetVersion (); below.
11049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11050 <limits.h> exists even on freestanding compilers. */
11052 #ifdef __STDC__
11053 # include <limits.h>
11054 #else
11055 # include <assert.h>
11056 #endif
11058 #undef NSOpenGLGetVersion
11060 /* Override any GCC internal prototype to avoid an error.
11061 Use char because int might match the return type of a GCC
11062 builtin and then its argument prototype would still apply. */
11063 #ifdef __cplusplus
11064 extern "C"
11065 #endif
11066 char NSOpenGLGetVersion ();
11067 /* The GNU C library defines this for functions which it implements
11068 to always fail with ENOSYS. Some functions are actually named
11069 something starting with __ and the normal name is an alias. */
11070 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11071 choke me
11072 #endif
11074 int
11075 main ()
11076 {
11077 return NSOpenGLGetVersion ();
11078 ;
11079 return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_link") 2>conftest.er1
11090 ac_status=$?
11091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && {
11096 test -z "$ac_c_werror_flag" ||
11097 test ! -s conftest.err
11098 } && test -s conftest$ac_exeext &&
11099 $as_test_x conftest$ac_exeext; then
11100 ac_cv_func_NSOpenGLGetVersion=yes
11101 else
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_cv_func_NSOpenGLGetVersion=no
11106 fi
11108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11109 conftest$ac_exeext conftest.$ac_ext
11110 fi
11111 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11112 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11113 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11115 HAVE_NSGL='yes'
11116 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_NSGL 1
11120 _ACEOF
11122 fi
11124 fi
11126 if test "x$HAVE_GTK_X11" = "xyes"; then
11127 if test "x$APPLE_BUILD" = "xyes"; then
11128 LIBS="$LIBS -L/usr/X11/lib -lGL"
11129 fi
11130 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11131 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11132 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11143 #define glXQueryVersion innocuous_glXQueryVersion
11145 /* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char glXQueryVersion (); below.
11147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11148 <limits.h> exists even on freestanding compilers. */
11150 #ifdef __STDC__
11151 # include <limits.h>
11152 #else
11153 # include <assert.h>
11154 #endif
11156 #undef glXQueryVersion
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char glXQueryVersion ();
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11169 choke me
11170 #endif
11172 int
11173 main ()
11174 {
11175 return glXQueryVersion ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_link") 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_c_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest$ac_exeext &&
11197 $as_test_x conftest$ac_exeext; then
11198 ac_cv_func_glXQueryVersion=yes
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_cv_func_glXQueryVersion=no
11204 fi
11206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11207 conftest$ac_exeext conftest.$ac_ext
11208 fi
11209 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11210 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11211 if test $ac_cv_func_glXQueryVersion = yes; then
11213 HAVE_GLX='yes'
11214 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11216 cat >>confdefs.h <<\_ACEOF
11217 #define HAVE_GLX 1
11218 _ACEOF
11220 fi
11222 fi
11225 fi
11232 if test "x$HAVE_OSMESA" = "xyes"; then
11233 VIDEO_OSMESA_TRUE=
11234 VIDEO_OSMESA_FALSE='#'
11235 else
11236 VIDEO_OSMESA_TRUE='#'
11237 VIDEO_OSMESA_FALSE=
11238 fi
11242 if test "x$HAVE_GLX" = "xyes"; then
11243 VIDEO_GLX_TRUE=
11244 VIDEO_GLX_FALSE='#'
11245 else
11246 VIDEO_GLX_TRUE='#'
11247 VIDEO_GLX_FALSE=
11248 fi
11252 if test "x$HAVE_NSGL" = "xyes"; then
11253 VIDEO_NSGL_TRUE=
11254 VIDEO_NSGL_FALSE='#'
11255 else
11256 VIDEO_NSGL_TRUE='#'
11257 VIDEO_NSGL_FALSE=
11258 fi
11261 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
11262 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
11263 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
11273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11274 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
11276 /* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char glGenFramebuffersEXT (); below.
11278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11279 <limits.h> exists even on freestanding compilers. */
11281 #ifdef __STDC__
11282 # include <limits.h>
11283 #else
11284 # include <assert.h>
11285 #endif
11287 #undef glGenFramebuffersEXT
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char glGenFramebuffersEXT ();
11296 /* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
11300 choke me
11301 #endif
11303 int
11304 main ()
11305 {
11306 return glGenFramebuffersEXT ();
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (ac_try="$ac_link"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_link") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest$ac_exeext &&
11328 $as_test_x conftest$ac_exeext; then
11329 ac_cv_func_glGenFramebuffersEXT=yes
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_cv_func_glGenFramebuffersEXT=no
11335 fi
11337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11338 conftest$ac_exeext conftest.$ac_ext
11339 fi
11340 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
11341 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
11342 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_OPENGL_FBO 1
11346 _ACEOF
11348 fi
11350 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
11351 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
11352 if test "${ac_cv_func_glCreateShader+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
11362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11363 #define glCreateShader innocuous_glCreateShader
11365 /* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char glCreateShader (); below.
11367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11368 <limits.h> exists even on freestanding compilers. */
11370 #ifdef __STDC__
11371 # include <limits.h>
11372 #else
11373 # include <assert.h>
11374 #endif
11376 #undef glCreateShader
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char glCreateShader ();
11385 /* The GNU C library defines this for functions which it implements
11386 to always fail with ENOSYS. Some functions are actually named
11387 something starting with __ and the normal name is an alias. */
11388 #if defined __stub_glCreateShader || defined __stub___glCreateShader
11389 choke me
11390 #endif
11392 int
11393 main ()
11394 {
11395 return glCreateShader ();
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (ac_try="$ac_link"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_link") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest$ac_exeext &&
11417 $as_test_x conftest$ac_exeext; then
11418 ac_cv_func_glCreateShader=yes
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ac_cv_func_glCreateShader=no
11424 fi
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427 conftest$ac_exeext conftest.$ac_ext
11428 fi
11429 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
11430 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
11431 if test $ac_cv_func_glCreateShader = yes; then
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_OPENGL_SHADER 1
11435 _ACEOF
11437 fi
11439 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
11440 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
11441 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char glCreateShaderObjectARB (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11459 #ifdef __STDC__
11460 # include <limits.h>
11461 #else
11462 # include <assert.h>
11463 #endif
11465 #undef glCreateShaderObjectARB
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char glCreateShaderObjectARB ();
11474 /* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
11478 choke me
11479 #endif
11481 int
11482 main ()
11483 {
11484 return glCreateShaderObjectARB ();
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (ac_try="$ac_link"
11491 case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494 esac
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_link") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && {
11503 test -z "$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 } && test -s conftest$ac_exeext &&
11506 $as_test_x conftest$ac_exeext; then
11507 ac_cv_func_glCreateShaderObjectARB=yes
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ac_cv_func_glCreateShaderObjectARB=no
11513 fi
11515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11516 conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
11519 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
11520 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_OPENGL_SHADER_ARB 1
11524 _ACEOF
11526 fi
11528 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
11529 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
11530 if test "${ac_cv_func_glClampColorARB+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
11540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11541 #define glClampColorARB innocuous_glClampColorARB
11543 /* System header to define __stub macros and hopefully few prototypes,
11544 which can conflict with char glClampColorARB (); below.
11545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11546 <limits.h> exists even on freestanding compilers. */
11548 #ifdef __STDC__
11549 # include <limits.h>
11550 #else
11551 # include <assert.h>
11552 #endif
11554 #undef glClampColorARB
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 char glClampColorARB ();
11563 /* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
11567 choke me
11568 #endif
11570 int
11571 main ()
11572 {
11573 return glClampColorARB ();
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (ac_try="$ac_link"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } && {
11592 test -z "$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 } && test -s conftest$ac_exeext &&
11595 $as_test_x conftest$ac_exeext; then
11596 ac_cv_func_glClampColorARB=yes
11597 else
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_cv_func_glClampColorARB=no
11602 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11605 conftest$ac_exeext conftest.$ac_ext
11606 fi
11607 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
11608 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
11609 if test $ac_cv_func_glClampColorARB = yes; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_OPENGL_CLAMP_COLOR 1
11613 _ACEOF
11615 fi
11620 if test "x$enable_translator" != "xno"; then
11621 case $host_cpu in
11622 i386|i486|i586|i686|x86_64)
11623 SH4_TRANSLATOR="x86"
11625 cat >>confdefs.h <<_ACEOF
11626 #define SH4_TRANSLATOR TARGET_X86
11627 _ACEOF
11628 ;;
11629 esac
11630 fi
11633 if test "$SH4_TRANSLATOR" = "x86"; then
11634 BUILD_SH4X86_TRUE=
11635 BUILD_SH4X86_FALSE='#'
11636 else
11637 BUILD_SH4X86_TRUE='#'
11638 BUILD_SH4X86_FALSE=
11639 fi
11642 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
11643 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
11644 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
11645 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 fi
11648 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
11649 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
11650 else
11651 # Is the header compilable?
11652 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
11653 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 $ac_includes_default
11661 #include <CoreAudio/CoreAudio.h>
11662 _ACEOF
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
11680 ac_header_compiler=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_compiler=no
11686 fi
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11690 echo "${ECHO_T}$ac_header_compiler" >&6; }
11692 # Is the header present?
11693 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
11694 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <CoreAudio/CoreAudio.h>
11702 _ACEOF
11703 if { (ac_try="$ac_cpp conftest.$ac_ext"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev/null && {
11716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 }; then
11719 ac_header_preproc=yes
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 ac_header_preproc=no
11725 fi
11727 rm -f conftest.err conftest.$ac_ext
11728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11729 echo "${ECHO_T}$ac_header_preproc" >&6; }
11731 # So? What about this header?
11732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11733 yes:no: )
11734 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11735 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
11737 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
11738 ac_header_preproc=yes
11739 ;;
11740 no:yes:* )
11741 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
11742 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
11744 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
11746 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
11748 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
11752 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
11754 ;;
11755 esac
11756 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
11757 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
11758 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
11762 fi
11763 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
11764 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
11766 fi
11767 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
11769 HAVE_CORE_AUDIO=yes
11770 LIBS="$LIBS -framework CoreAudio"
11771 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
11773 cat >>confdefs.h <<\_ACEOF
11774 #define HAVE_CORE_AUDIO 1
11775 _ACEOF
11777 else
11778 true
11779 fi
11784 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
11785 AUDIO_OSX_TRUE=
11786 AUDIO_OSX_FALSE='#'
11787 else
11788 AUDIO_OSX_TRUE='#'
11789 AUDIO_OSX_FALSE=
11790 fi
11793 if test "x$with_sdl" != "xno"; then
11795 pkg_failed=no
11796 { echo "$as_me:$LINENO: checking for SDL" >&5
11797 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
11799 if test -n "$SDL_CFLAGS"; then
11800 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
11801 elif test -n "$PKG_CONFIG"; then
11802 if test -n "$PKG_CONFIG" && \
11803 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
11804 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; then
11808 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
11809 else
11810 pkg_failed=yes
11811 fi
11812 else
11813 pkg_failed=untried
11814 fi
11815 if test -n "$SDL_LIBS"; then
11816 pkg_cv_SDL_LIBS="$SDL_LIBS"
11817 elif test -n "$PKG_CONFIG"; then
11818 if test -n "$PKG_CONFIG" && \
11819 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
11820 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; then
11824 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
11825 else
11826 pkg_failed=yes
11827 fi
11828 else
11829 pkg_failed=untried
11830 fi
11834 if test $pkg_failed = yes; then
11836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11837 _pkg_short_errors_supported=yes
11838 else
11839 _pkg_short_errors_supported=no
11840 fi
11841 if test $_pkg_short_errors_supported = yes; then
11842 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
11843 else
11844 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
11845 fi
11846 # Put the nasty error message in config.log where it belongs
11847 echo "$SDL_PKG_ERRORS" >&5
11849 { echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6; }
11852 if test "x$with_sdl" = "xyes"; then
11853 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
11854 See \`config.log' for more details." >&5
11855 echo "$as_me: error: \"SDL libraries could not be found (but were required)
11856 See \`config.log' for more details." >&2;}
11857 { (exit 1); exit 1; }; }
11858 fi
11860 elif test $pkg_failed = untried; then
11862 if test "x$with_sdl" = "xyes"; then
11863 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
11864 See \`config.log' for more details." >&5
11865 echo "$as_me: error: \"SDL libraries could not be found (but were required)
11866 See \`config.log' for more details." >&2;}
11867 { (exit 1); exit 1; }; }
11868 fi
11870 else
11871 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
11872 SDL_LIBS=$pkg_cv_SDL_LIBS
11873 { echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6; }
11876 HAVE_SDL='yes'
11877 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
11879 cat >>confdefs.h <<\_ACEOF
11880 #define HAVE_SDL 1
11881 _ACEOF
11884 fi
11885 fi
11888 if test "$HAVE_SDL" = 'yes' ; then
11889 AUDIO_SDL_TRUE=
11890 AUDIO_SDL_FALSE='#'
11891 else
11892 AUDIO_SDL_TRUE='#'
11893 AUDIO_SDL_FALSE=
11894 fi
11897 if test "x$with_pulse" != "xno"; then
11899 pkg_failed=no
11900 { echo "$as_me:$LINENO: checking for PULSE" >&5
11901 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
11903 if test -n "$PULSE_CFLAGS"; then
11904 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
11905 elif test -n "$PKG_CONFIG"; then
11906 if test -n "$PKG_CONFIG" && \
11907 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
11908 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; then
11912 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
11913 else
11914 pkg_failed=yes
11915 fi
11916 else
11917 pkg_failed=untried
11918 fi
11919 if test -n "$PULSE_LIBS"; then
11920 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
11921 elif test -n "$PKG_CONFIG"; then
11922 if test -n "$PKG_CONFIG" && \
11923 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
11924 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; then
11928 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
11929 else
11930 pkg_failed=yes
11931 fi
11932 else
11933 pkg_failed=untried
11934 fi
11938 if test $pkg_failed = yes; then
11940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11941 _pkg_short_errors_supported=yes
11942 else
11943 _pkg_short_errors_supported=no
11944 fi
11945 if test $_pkg_short_errors_supported = yes; then
11946 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
11947 else
11948 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
11949 fi
11950 # Put the nasty error message in config.log where it belongs
11951 echo "$PULSE_PKG_ERRORS" >&5
11953 { echo "$as_me:$LINENO: result: no" >&5
11954 echo "${ECHO_T}no" >&6; }
11956 if test "x$with_pulse" = "xyes"; then
11957 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
11958 See \`config.log' for more details." >&5
11959 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
11960 See \`config.log' for more details." >&2;}
11961 { (exit 1); exit 1; }; }
11962 fi
11964 elif test $pkg_failed = untried; then
11966 if test "x$with_pulse" = "xyes"; then
11967 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
11968 See \`config.log' for more details." >&5
11969 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
11970 See \`config.log' for more details." >&2;}
11971 { (exit 1); exit 1; }; }
11972 fi
11974 else
11975 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
11976 PULSE_LIBS=$pkg_cv_PULSE_LIBS
11977 { echo "$as_me:$LINENO: result: yes" >&5
11978 echo "${ECHO_T}yes" >&6; }
11980 HAVE_PULSE='yes'
11981 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
11983 cat >>confdefs.h <<\_ACEOF
11984 #define HAVE_PULSE 1
11985 _ACEOF
11988 fi
11989 fi
11992 if test "$HAVE_PULSE" = 'yes' ; then
11993 AUDIO_PULSE_TRUE=
11994 AUDIO_PULSE_FALSE='#'
11995 else
11996 AUDIO_PULSE_TRUE='#'
11997 AUDIO_PULSE_FALSE=
11998 fi
12001 if test "x$with_esd" != "xno"; then
12003 pkg_failed=no
12004 { echo "$as_me:$LINENO: checking for ESOUND" >&5
12005 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
12007 if test -n "$ESOUND_CFLAGS"; then
12008 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
12009 elif test -n "$PKG_CONFIG"; then
12010 if test -n "$PKG_CONFIG" && \
12011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12012 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; then
12016 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
12017 else
12018 pkg_failed=yes
12019 fi
12020 else
12021 pkg_failed=untried
12022 fi
12023 if test -n "$ESOUND_LIBS"; then
12024 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
12025 elif test -n "$PKG_CONFIG"; then
12026 if test -n "$PKG_CONFIG" && \
12027 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12028 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; then
12032 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
12033 else
12034 pkg_failed=yes
12035 fi
12036 else
12037 pkg_failed=untried
12038 fi
12042 if test $pkg_failed = yes; then
12044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12045 _pkg_short_errors_supported=yes
12046 else
12047 _pkg_short_errors_supported=no
12048 fi
12049 if test $_pkg_short_errors_supported = yes; then
12050 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
12051 else
12052 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
12053 fi
12054 # Put the nasty error message in config.log where it belongs
12055 echo "$ESOUND_PKG_ERRORS" >&5
12057 { echo "$as_me:$LINENO: result: no" >&5
12058 echo "${ECHO_T}no" >&6; }
12060 if test "x$with_esd" = "xyes"; then
12061 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12062 See \`config.log' for more details." >&5
12063 echo "$as_me: error: ESounD audio package could not be found (but was required)
12064 See \`config.log' for more details." >&2;}
12065 { (exit 1); exit 1; }; }
12066 fi
12068 elif test $pkg_failed = untried; then
12070 if test "x$with_esd" = "xyes"; then
12071 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12072 See \`config.log' for more details." >&5
12073 echo "$as_me: error: ESounD audio package could not be found (but was required)
12074 See \`config.log' for more details." >&2;}
12075 { (exit 1); exit 1; }; }
12076 fi
12078 else
12079 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
12080 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
12081 { echo "$as_me:$LINENO: result: yes" >&5
12082 echo "${ECHO_T}yes" >&6; }
12084 HAVE_ESOUND='yes'
12085 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_ESOUND 1
12089 _ACEOF
12092 fi
12093 fi
12096 if test "$HAVE_ESOUND" = 'yes' ; then
12097 AUDIO_ESOUND_TRUE=
12098 AUDIO_ESOUND_FALSE='#'
12099 else
12100 AUDIO_ESOUND_TRUE='#'
12101 AUDIO_ESOUND_FALSE=
12102 fi
12106 pkg_failed=no
12107 { echo "$as_me:$LINENO: checking for ALSA" >&5
12108 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
12110 if test -n "$ALSA_CFLAGS"; then
12111 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12112 elif test -n "$PKG_CONFIG"; then
12113 if test -n "$PKG_CONFIG" && \
12114 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12115 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; then
12119 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
12120 else
12121 pkg_failed=yes
12122 fi
12123 else
12124 pkg_failed=untried
12125 fi
12126 if test -n "$ALSA_LIBS"; then
12127 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12128 elif test -n "$PKG_CONFIG"; then
12129 if test -n "$PKG_CONFIG" && \
12130 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12131 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; then
12135 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
12136 else
12137 pkg_failed=yes
12138 fi
12139 else
12140 pkg_failed=untried
12141 fi
12145 if test $pkg_failed = yes; then
12147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12148 _pkg_short_errors_supported=yes
12149 else
12150 _pkg_short_errors_supported=no
12151 fi
12152 if test $_pkg_short_errors_supported = yes; then
12153 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
12154 else
12155 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
12156 fi
12157 # Put the nasty error message in config.log where it belongs
12158 echo "$ALSA_PKG_ERRORS" >&5
12160 { echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6; }
12162 true
12163 elif test $pkg_failed = untried; then
12164 true
12165 else
12166 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12167 ALSA_LIBS=$pkg_cv_ALSA_LIBS
12168 { echo "$as_me:$LINENO: result: yes" >&5
12169 echo "${ECHO_T}yes" >&6; }
12171 HAVE_ALSA='yes'
12172 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HAVE_ALSA 1
12176 _ACEOF
12178 fi
12181 if test "$HAVE_ALSA" = 'yes' ; then
12182 AUDIO_ALSA_TRUE=
12183 AUDIO_ALSA_FALSE='#'
12184 else
12185 AUDIO_ALSA_TRUE='#'
12186 AUDIO_ALSA_FALSE=
12187 fi
12191 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12192 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
12193 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
12194 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 fi
12197 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
12198 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
12199 else
12200 # Is the header compilable?
12201 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
12202 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 $ac_includes_default
12210 #include <linux/cdrom.h>
12211 _ACEOF
12212 rm -f conftest.$ac_objext
12213 if { (ac_try="$ac_compile"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_compile") 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest.$ac_objext; then
12229 ac_header_compiler=yes
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_header_compiler=no
12235 fi
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12239 echo "${ECHO_T}$ac_header_compiler" >&6; }
12241 # Is the header present?
12242 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
12243 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <linux/cdrom.h>
12251 _ACEOF
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null && {
12265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 }; then
12268 ac_header_preproc=yes
12269 else
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12273 ac_header_preproc=no
12274 fi
12276 rm -f conftest.err conftest.$ac_ext
12277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12278 echo "${ECHO_T}$ac_header_preproc" >&6; }
12280 # So? What about this header?
12281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12282 yes:no: )
12283 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
12284 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
12286 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
12287 ac_header_preproc=yes
12288 ;;
12289 no:yes:* )
12290 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
12291 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
12293 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
12295 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
12297 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
12299 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
12301 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
12303 ;;
12304 esac
12305 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
12306 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
12307 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 ac_cv_header_linux_cdrom_h=$ac_header_preproc
12311 fi
12312 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
12313 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
12315 fi
12316 if test $ac_cv_header_linux_cdrom_h = yes; then
12318 CDROM_DRIVER=linux
12319 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
12320 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
12321 old_CFLAGS="$CFLAGS"
12322 CFLAGS="$CFLAGS $STDCFLAG"
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <linux/cdrom.h>
12330 int
12331 main ()
12332 {
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 { echo "$as_me:$LINENO: result: Yes" >&5
12356 echo "${ECHO_T}Yes" >&6; }
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12362 { echo "$as_me:$LINENO: result: No" >&5
12363 echo "${ECHO_T}No" >&6; }
12364 STDCFLAG="-std=gnu99"
12365 fi
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 CFLAGS="$old_CFLAGS"
12370 else
12371 true
12372 fi
12375 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
12376 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
12377 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
12378 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 fi
12381 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
12382 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
12383 else
12384 # Is the header compilable?
12385 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
12386 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12394 #include <IOKit/IOKitLib.h>
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 if { (ac_try="$ac_compile"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
12413 ac_header_compiler=yes
12414 else
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_header_compiler=no
12419 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12423 echo "${ECHO_T}$ac_header_compiler" >&6; }
12425 # Is the header present?
12426 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
12427 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include <IOKit/IOKitLib.h>
12435 _ACEOF
12436 if { (ac_try="$ac_cpp conftest.$ac_ext"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } >/dev/null && {
12449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12450 test ! -s conftest.err
12451 }; then
12452 ac_header_preproc=yes
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 ac_header_preproc=no
12458 fi
12460 rm -f conftest.err conftest.$ac_ext
12461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12462 echo "${ECHO_T}$ac_header_preproc" >&6; }
12464 # So? What about this header?
12465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12466 yes:no: )
12467 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12468 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
12470 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
12471 ac_header_preproc=yes
12472 ;;
12473 no:yes:* )
12474 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
12475 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
12477 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
12479 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
12480 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
12481 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
12483 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
12485 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
12487 ;;
12488 esac
12489 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
12490 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
12491 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
12495 fi
12496 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
12497 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
12499 fi
12500 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
12502 CDROM_DRIVER=osx
12503 LIBS="$LIBS -framework IOKit"
12504 else
12505 true
12506 fi
12511 if test "x$CDROM_DRIVER" = "xlinux"; then
12512 CDROM_LINUX_TRUE=
12513 CDROM_LINUX_FALSE='#'
12514 else
12515 CDROM_LINUX_TRUE='#'
12516 CDROM_LINUX_FALSE=
12517 fi
12521 if test "x$CDROM_DRIVER" = "xosx"; then
12522 CDROM_OSX_TRUE=
12523 CDROM_OSX_FALSE='#'
12524 else
12525 CDROM_OSX_TRUE='#'
12526 CDROM_OSX_FALSE=
12527 fi
12531 if test "x$CDROM_DRIVER" = "x"; then
12532 CDROM_NONE_TRUE=
12533 CDROM_NONE_FALSE='#'
12534 else
12535 CDROM_NONE_TRUE='#'
12536 CDROM_NONE_FALSE=
12537 fi
12539 if test "x$CDROM_DRIVER" = "xlinux"; then
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_LINUX_CDROM 1
12543 _ACEOF
12545 fi
12547 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12548 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
12549 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
12550 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 fi
12553 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
12554 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
12555 else
12556 # Is the header compilable?
12557 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
12558 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12566 #include <linux/joystick.h>
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.$ac_objext; then
12585 ac_header_compiler=yes
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_header_compiler=no
12591 fi
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597 # Is the header present?
12598 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
12599 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <linux/joystick.h>
12607 _ACEOF
12608 if { (ac_try="$ac_cpp conftest.$ac_ext"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null && {
12621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 }; then
12624 ac_header_preproc=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_preproc=no
12630 fi
12632 rm -f conftest.err conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12634 echo "${ECHO_T}$ac_header_preproc" >&6; }
12636 # So? What about this header?
12637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12638 yes:no: )
12639 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
12640 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12641 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
12642 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
12643 ac_header_preproc=yes
12644 ;;
12645 no:yes:* )
12646 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
12651 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
12653 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
12655 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
12657 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
12659 ;;
12660 esac
12661 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
12662 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
12663 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666 ac_cv_header_linux_joystick_h=$ac_header_preproc
12667 fi
12668 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
12669 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
12671 fi
12672 if test $ac_cv_header_linux_joystick_h = yes; then
12674 HAVE_LINUX_JOYSTICK_H=yes
12676 cat >>confdefs.h <<\_ACEOF
12677 #define HAVE_LINUX_JOYSTICK 1
12678 _ACEOF
12680 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
12681 else
12682 echo "Linux Joystick support not found, building without it."
12683 fi
12688 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
12689 JOY_LINUX_TRUE=
12690 JOY_LINUX_FALSE='#'
12691 else
12692 JOY_LINUX_TRUE='#'
12693 JOY_LINUX_FALSE=
12694 fi
12697 if test "x$with_lirc" != "xno"; then
12698 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
12699 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
12700 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
12701 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 fi
12704 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
12705 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
12706 else
12707 # Is the header compilable?
12708 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
12709 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 $ac_includes_default
12717 #include <lirc/lirc_client.h>
12718 _ACEOF
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.$ac_objext; then
12736 ac_header_compiler=yes
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_header_compiler=no
12742 fi
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12746 echo "${ECHO_T}$ac_header_compiler" >&6; }
12748 # Is the header present?
12749 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
12750 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 #include <lirc/lirc_client.h>
12758 _ACEOF
12759 if { (ac_try="$ac_cpp conftest.$ac_ext"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } >/dev/null && {
12772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 }; then
12775 ac_header_preproc=yes
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_header_preproc=no
12781 fi
12783 rm -f conftest.err conftest.$ac_ext
12784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12785 echo "${ECHO_T}$ac_header_preproc" >&6; }
12787 # So? What about this header?
12788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12789 yes:no: )
12790 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
12791 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
12793 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
12794 ac_header_preproc=yes
12795 ;;
12796 no:yes:* )
12797 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
12798 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
12800 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
12802 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
12804 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
12806 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
12808 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
12810 ;;
12811 esac
12812 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
12813 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
12814 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
12818 fi
12819 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
12820 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
12822 fi
12823 if test $ac_cv_header_lirc_lirc_client_h = yes; then
12825 HAVE_LIRC_CLIENT_H=yes
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_LIRC 1
12829 _ACEOF
12831 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
12833 else
12834 echo "LIRC support not found, building without it."
12835 fi
12838 fi
12841 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
12842 INPUT_LIRC_TRUE=
12843 INPUT_LIRC_FALSE='#'
12844 else
12845 INPUT_LIRC_TRUE='#'
12846 INPUT_LIRC_FALSE=
12847 fi
12850 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
12851 set dummy sh-elf-gcc; ac_word=$2
12852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12854 if test "${ac_cv_path_SHCC+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 case $SHCC in
12858 [\\/]* | ?:[\\/]*)
12859 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
12860 ;;
12861 *)
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12869 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
12870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12872 fi
12873 done
12874 done
12875 IFS=$as_save_IFS
12877 ;;
12878 esac
12879 fi
12880 SHCC=$ac_cv_path_SHCC
12881 if test -n "$SHCC"; then
12882 { echo "$as_me:$LINENO: result: $SHCC" >&5
12883 echo "${ECHO_T}$SHCC" >&6; }
12884 else
12885 { echo "$as_me:$LINENO: result: no" >&5
12886 echo "${ECHO_T}no" >&6; }
12887 fi
12890 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
12891 set dummy sh-elf-ld; ac_word=$2
12892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12894 if test "${ac_cv_path_SHLD+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897 case $SHLD in
12898 [\\/]* | ?:[\\/]*)
12899 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
12900 ;;
12901 *)
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12904 do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12909 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
12910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 break 2
12912 fi
12913 done
12914 done
12915 IFS=$as_save_IFS
12917 ;;
12918 esac
12919 fi
12920 SHLD=$ac_cv_path_SHLD
12921 if test -n "$SHLD"; then
12922 { echo "$as_me:$LINENO: result: $SHLD" >&5
12923 echo "${ECHO_T}$SHLD" >&6; }
12924 else
12925 { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12927 fi
12930 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
12931 set dummy sh-elf-objcopy; ac_word=$2
12932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12934 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937 case $SHOBJCOPY in
12938 [\\/]* | ?:[\\/]*)
12939 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
12940 ;;
12941 *)
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
12950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12952 fi
12953 done
12954 done
12955 IFS=$as_save_IFS
12957 ;;
12958 esac
12959 fi
12960 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
12961 if test -n "$SHOBJCOPY"; then
12962 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
12963 echo "${ECHO_T}$SHOBJCOPY" >&6; }
12964 else
12965 { echo "$as_me:$LINENO: result: no" >&5
12966 echo "${ECHO_T}no" >&6; }
12967 fi
12970 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
12971 set dummy arm-elf-gcc; ac_word=$2
12972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12974 if test "${ac_cv_path_ARMCC+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 case $ARMCC in
12978 [\\/]* | ?:[\\/]*)
12979 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
12980 ;;
12981 *)
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12984 do
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
12990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12991 break 2
12992 fi
12993 done
12994 done
12995 IFS=$as_save_IFS
12997 ;;
12998 esac
12999 fi
13000 ARMCC=$ac_cv_path_ARMCC
13001 if test -n "$ARMCC"; then
13002 { echo "$as_me:$LINENO: result: $ARMCC" >&5
13003 echo "${ECHO_T}$ARMCC" >&6; }
13004 else
13005 { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13007 fi
13010 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
13011 set dummy arm-elf-ld; ac_word=$2
13012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13014 if test "${ac_cv_path_ARMLD+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 case $ARMLD in
13018 [\\/]* | ?:[\\/]*)
13019 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
13020 ;;
13021 *)
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
13030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 break 2
13032 fi
13033 done
13034 done
13035 IFS=$as_save_IFS
13037 ;;
13038 esac
13039 fi
13040 ARMLD=$ac_cv_path_ARMLD
13041 if test -n "$ARMLD"; then
13042 { echo "$as_me:$LINENO: result: $ARMLD" >&5
13043 echo "${ECHO_T}$ARMLD" >&6; }
13044 else
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13047 fi
13050 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
13051 set dummy arm-elf-objcopy; ac_word=$2
13052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13054 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057 case $ARMOBJCOPY in
13058 [\\/]* | ?:[\\/]*)
13059 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
13060 ;;
13061 *)
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13064 do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 break 2
13072 fi
13073 done
13074 done
13075 IFS=$as_save_IFS
13077 ;;
13078 esac
13079 fi
13080 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
13081 if test -n "$ARMOBJCOPY"; then
13082 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
13083 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
13084 else
13085 { echo "$as_me:$LINENO: result: no" >&5
13086 echo "${ECHO_T}no" >&6; }
13087 fi
13091 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
13092 BUILD_SH="no"
13093 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
13094 else
13095 BUILD_SH="yes"
13096 fi
13097 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
13098 BUILD_ARM="no"
13099 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
13100 else
13101 BUILD_ARM="yes"
13102 fi
13105 if test "$BUILD_SH" = "yes"; then
13106 BUILD_SYSTEST_TRUE=
13107 BUILD_SYSTEST_FALSE='#'
13108 else
13109 BUILD_SYSTEST_TRUE='#'
13110 BUILD_SYSTEST_FALSE=
13111 fi
13115 if test "$BUILD_ARM" = "yes"; then
13116 BUILD_ARMTEST_TRUE=
13117 BUILD_ARMTEST_FALSE='#'
13118 else
13119 BUILD_ARMTEST_TRUE='#'
13120 BUILD_ARMTEST_FALSE=
13121 fi
13124 CFLAGS="$CFLAGS $STDCFLAG"
13126 GETTEXT_PACKAGE=lxdream
13127 LXDREAM_LIBS="$LIBS"
13128 LIBS=""
13132 cat >>confdefs.h <<_ACEOF
13133 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13134 _ACEOF
13137 ALL_LINGUAS="de es it nl pt_BR"
13140 for ac_header in locale.h
13141 do
13142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 fi
13149 ac_res=`eval echo '${'$as_ac_Header'}'`
13150 { echo "$as_me:$LINENO: result: $ac_res" >&5
13151 echo "${ECHO_T}$ac_res" >&6; }
13152 else
13153 # Is the header compilable?
13154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h. */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13163 #include <$ac_header>
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (ac_try="$ac_compile"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_compile") 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && {
13179 test -z "$ac_c_werror_flag" ||
13180 test ! -s conftest.err
13181 } && test -s conftest.$ac_objext; then
13182 ac_header_compiler=yes
13183 else
13184 echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13187 ac_header_compiler=no
13188 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13192 echo "${ECHO_T}$ac_header_compiler" >&6; }
13194 # Is the header present?
13195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h. */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 #include <$ac_header>
13204 _ACEOF
13205 if { (ac_try="$ac_cpp conftest.$ac_ext"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } >/dev/null && {
13218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 }; then
13221 ac_header_preproc=yes
13222 else
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_header_preproc=no
13227 fi
13229 rm -f conftest.err conftest.$ac_ext
13230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231 echo "${ECHO_T}$ac_header_preproc" >&6; }
13233 # So? What about this header?
13234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13235 yes:no: )
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13240 ac_header_preproc=yes
13241 ;;
13242 no:yes:* )
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13256 ;;
13257 esac
13258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263 eval "$as_ac_Header=\$ac_header_preproc"
13264 fi
13265 ac_res=`eval echo '${'$as_ac_Header'}'`
13266 { echo "$as_me:$LINENO: result: $ac_res" >&5
13267 echo "${ECHO_T}$ac_res" >&6; }
13269 fi
13270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13271 cat >>confdefs.h <<_ACEOF
13272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13273 _ACEOF
13275 fi
13277 done
13279 if test $ac_cv_header_locale_h = yes; then
13280 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13281 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13282 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <locale.h>
13292 int
13293 main ()
13294 {
13295 return LC_MESSAGES
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest$ac_exeext &&
13317 $as_test_x conftest$ac_exeext; then
13318 am_cv_val_LC_MESSAGES=yes
13319 else
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 am_cv_val_LC_MESSAGES=no
13324 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13328 fi
13329 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
13331 if test $am_cv_val_LC_MESSAGES = yes; then
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_LC_MESSAGES 1
13335 _ACEOF
13337 fi
13338 fi
13339 USE_NLS=yes
13342 gt_cv_have_gettext=no
13344 CATOBJEXT=NONE
13345 XGETTEXT=:
13346 INTLLIBS=
13348 if test "${ac_cv_header_libintl_h+set}" = set; then
13349 { echo "$as_me:$LINENO: checking for libintl.h" >&5
13350 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
13351 if test "${ac_cv_header_libintl_h+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 fi
13354 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13355 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
13356 else
13357 # Is the header compilable?
13358 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
13359 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 $ac_includes_default
13367 #include <libintl.h>
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (ac_try="$ac_compile"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_compile") 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
13386 ac_header_compiler=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 ac_header_compiler=no
13392 fi
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13396 echo "${ECHO_T}$ac_header_compiler" >&6; }
13398 # Is the header present?
13399 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
13400 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
13401 cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h. */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 #include <libintl.h>
13408 _ACEOF
13409 if { (ac_try="$ac_cpp conftest.$ac_ext"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } >/dev/null && {
13422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 }; then
13425 ac_header_preproc=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_header_preproc=no
13431 fi
13433 rm -f conftest.err conftest.$ac_ext
13434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13435 echo "${ECHO_T}$ac_header_preproc" >&6; }
13437 # So? What about this header?
13438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13439 yes:no: )
13440 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13441 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
13443 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
13444 ac_header_preproc=yes
13445 ;;
13446 no:yes:* )
13447 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13448 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13450 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
13452 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
13454 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13456 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
13458 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
13460 ;;
13461 esac
13462 { echo "$as_me:$LINENO: checking for libintl.h" >&5
13463 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
13464 if test "${ac_cv_header_libintl_h+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467 ac_cv_header_libintl_h=$ac_header_preproc
13468 fi
13469 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13470 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
13472 fi
13473 if test $ac_cv_header_libintl_h = yes; then
13474 gt_cv_func_dgettext_libintl="no"
13475 libintl_extra_libs=""
13477 #
13478 # First check in libc
13479 #
13480 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
13481 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
13482 if test "${gt_cv_func_ngettext_libc+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 #include <libintl.h>
13494 int
13495 main ()
13496 {
13497 return !ngettext ("","", 1)
13498 ;
13499 return 0;
13500 }
13501 _ACEOF
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_link") 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } && {
13516 test -z "$ac_c_werror_flag" ||
13517 test ! -s conftest.err
13518 } && test -s conftest$ac_exeext &&
13519 $as_test_x conftest$ac_exeext; then
13520 gt_cv_func_ngettext_libc=yes
13521 else
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 gt_cv_func_ngettext_libc=no
13526 fi
13528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13529 conftest$ac_exeext conftest.$ac_ext
13531 fi
13532 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
13533 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
13535 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13536 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
13537 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
13538 if test "${gt_cv_func_dgettext_libc+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 #include <libintl.h>
13550 int
13551 main ()
13552 {
13553 return !dgettext ("","")
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (ac_try="$ac_link"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_link") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest$ac_exeext &&
13575 $as_test_x conftest$ac_exeext; then
13576 gt_cv_func_dgettext_libc=yes
13577 else
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 gt_cv_func_dgettext_libc=no
13582 fi
13584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13585 conftest$ac_exeext conftest.$ac_ext
13587 fi
13588 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
13589 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
13590 fi
13592 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13594 for ac_func in bind_textdomain_codeset
13595 do
13596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13610 #define $ac_func innocuous_$ac_func
13612 /* System header to define __stub macros and hopefully few prototypes,
13613 which can conflict with char $ac_func (); below.
13614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13615 <limits.h> exists even on freestanding compilers. */
13617 #ifdef __STDC__
13618 # include <limits.h>
13619 #else
13620 # include <assert.h>
13621 #endif
13623 #undef $ac_func
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13628 #ifdef __cplusplus
13629 extern "C"
13630 #endif
13631 char $ac_func ();
13632 /* The GNU C library defines this for functions which it implements
13633 to always fail with ENOSYS. Some functions are actually named
13634 something starting with __ and the normal name is an alias. */
13635 #if defined __stub_$ac_func || defined __stub___$ac_func
13636 choke me
13637 #endif
13639 int
13640 main ()
13641 {
13642 return $ac_func ();
13643 ;
13644 return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_link") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest$ac_exeext &&
13664 $as_test_x conftest$ac_exeext; then
13665 eval "$as_ac_var=yes"
13666 else
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 eval "$as_ac_var=no"
13671 fi
13673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13674 conftest$ac_exeext conftest.$ac_ext
13675 fi
13676 ac_res=`eval echo '${'$as_ac_var'}'`
13677 { echo "$as_me:$LINENO: result: $ac_res" >&5
13678 echo "${ECHO_T}$ac_res" >&6; }
13679 if test `eval echo '${'$as_ac_var'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13682 _ACEOF
13684 fi
13685 done
13687 fi
13689 #
13690 # If we don't have everything we want, check in libintl
13691 #
13692 if test "$gt_cv_func_dgettext_libc" != "yes" \
13693 || test "$gt_cv_func_ngettext_libc" != "yes" \
13694 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
13696 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
13697 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
13698 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-lintl $LIBS"
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h. */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13713 #ifdef __cplusplus
13714 extern "C"
13715 #endif
13716 char bindtextdomain ();
13717 int
13718 main ()
13719 {
13720 return bindtextdomain ();
13721 ;
13722 return 0;
13723 }
13724 _ACEOF
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest$ac_exeext &&
13742 $as_test_x conftest$ac_exeext; then
13743 ac_cv_lib_intl_bindtextdomain=yes
13744 else
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_lib_intl_bindtextdomain=no
13749 fi
13751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LIBS=$ac_check_lib_save_LIBS
13754 fi
13755 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
13756 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
13757 if test $ac_cv_lib_intl_bindtextdomain = yes; then
13758 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
13759 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
13760 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lintl $LIBS"
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13775 #ifdef __cplusplus
13776 extern "C"
13777 #endif
13778 char ngettext ();
13779 int
13780 main ()
13781 {
13782 return ngettext ();
13783 ;
13784 return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && {
13801 test -z "$ac_c_werror_flag" ||
13802 test ! -s conftest.err
13803 } && test -s conftest$ac_exeext &&
13804 $as_test_x conftest$ac_exeext; then
13805 ac_cv_lib_intl_ngettext=yes
13806 else
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_cv_lib_intl_ngettext=no
13811 fi
13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13816 fi
13817 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
13818 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
13819 if test $ac_cv_lib_intl_ngettext = yes; then
13820 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
13821 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
13822 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lintl $LIBS"
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h. */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13834 /* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
13837 #ifdef __cplusplus
13838 extern "C"
13839 #endif
13840 char dgettext ();
13841 int
13842 main ()
13843 {
13844 return dgettext ();
13845 ;
13846 return 0;
13847 }
13848 _ACEOF
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (ac_try="$ac_link"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_link") 2>conftest.er1
13857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest$ac_exeext &&
13866 $as_test_x conftest$ac_exeext; then
13867 ac_cv_lib_intl_dgettext=yes
13868 else
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 ac_cv_lib_intl_dgettext=no
13873 fi
13875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13876 conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13878 fi
13879 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
13880 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
13881 if test $ac_cv_lib_intl_dgettext = yes; then
13882 gt_cv_func_dgettext_libintl=yes
13883 fi
13885 fi
13887 fi
13890 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
13891 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
13892 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
13893 { echo "$as_me:$LINENO: result: " >&5
13894 echo "${ECHO_T}" >&6; }
13895 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
13896 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
13897 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lintl -liconv $LIBS"
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h. */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13909 /* Override any GCC internal prototype to avoid an error.
13910 Use char because int might match the return type of a GCC
13911 builtin and then its argument prototype would still apply. */
13912 #ifdef __cplusplus
13913 extern "C"
13914 #endif
13915 char ngettext ();
13916 int
13917 main ()
13918 {
13919 return ngettext ();
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_link") 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && {
13938 test -z "$ac_c_werror_flag" ||
13939 test ! -s conftest.err
13940 } && test -s conftest$ac_exeext &&
13941 $as_test_x conftest$ac_exeext; then
13942 ac_cv_lib_intl_ngettext=yes
13943 else
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 ac_cv_lib_intl_ngettext=no
13948 fi
13950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13953 fi
13954 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
13955 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
13956 if test $ac_cv_lib_intl_ngettext = yes; then
13957 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
13958 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
13959 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lintl -liconv $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char dcgettext ();
13978 int
13979 main ()
13980 {
13981 return dcgettext ();
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_intl_dcgettext=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_intl_dcgettext=no
14010 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14015 fi
14016 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
14017 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
14018 if test $ac_cv_lib_intl_dcgettext = yes; then
14019 gt_cv_func_dgettext_libintl=yes
14020 libintl_extra_libs=-liconv
14021 else
14022 :
14023 fi
14025 else
14026 :
14027 fi
14029 fi
14031 #
14032 # If we found libintl, then check in it for bind_textdomain_codeset();
14033 # we'll prefer libc if neither have bind_textdomain_codeset(),
14034 # and both have dgettext and ngettext
14035 #
14036 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14037 glib_save_LIBS="$LIBS"
14038 LIBS="$LIBS -lintl $libintl_extra_libs"
14039 unset ac_cv_func_bind_textdomain_codeset
14041 for ac_func in bind_textdomain_codeset
14042 do
14043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057 #define $ac_func innocuous_$ac_func
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char $ac_func (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
14064 #ifdef __STDC__
14065 # include <limits.h>
14066 #else
14067 # include <assert.h>
14068 #endif
14070 #undef $ac_func
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14075 #ifdef __cplusplus
14076 extern "C"
14077 #endif
14078 char $ac_func ();
14079 /* The GNU C library defines this for functions which it implements
14080 to always fail with ENOSYS. Some functions are actually named
14081 something starting with __ and the normal name is an alias. */
14082 #if defined __stub_$ac_func || defined __stub___$ac_func
14083 choke me
14084 #endif
14086 int
14087 main ()
14088 {
14089 return $ac_func ();
14090 ;
14091 return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext &&
14111 $as_test_x conftest$ac_exeext; then
14112 eval "$as_ac_var=yes"
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 eval "$as_ac_var=no"
14118 fi
14120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14121 conftest$ac_exeext conftest.$ac_ext
14122 fi
14123 ac_res=`eval echo '${'$as_ac_var'}'`
14124 { echo "$as_me:$LINENO: result: $ac_res" >&5
14125 echo "${ECHO_T}$ac_res" >&6; }
14126 if test `eval echo '${'$as_ac_var'}'` = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14129 _ACEOF
14131 fi
14132 done
14134 LIBS="$glib_save_LIBS"
14136 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
14137 gt_cv_func_dgettext_libc=no
14138 else
14139 if test "$gt_cv_func_dgettext_libc" = "yes" \
14140 && test "$gt_cv_func_ngettext_libc" = "yes"; then
14141 gt_cv_func_dgettext_libintl=no
14142 fi
14143 fi
14144 fi
14145 fi
14147 if test "$gt_cv_func_dgettext_libc" = "yes" \
14148 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
14149 gt_cv_have_gettext=yes
14150 fi
14152 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
14153 INTLLIBS="-lintl $libintl_extra_libs"
14154 fi
14156 if test "$gt_cv_have_gettext" = "yes"; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_GETTEXT 1
14160 _ACEOF
14162 # Extract the first word of "msgfmt", so it can be a program name with args.
14163 set dummy msgfmt; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_path_MSGFMT+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 case "$MSGFMT" in
14170 /*)
14171 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14172 ;;
14173 *)
14174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14175 for ac_dir in $PATH; do
14176 test -z "$ac_dir" && ac_dir=.
14177 if test -f $ac_dir/$ac_word; then
14178 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
14179 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14180 break
14181 fi
14182 fi
14183 done
14184 IFS="$ac_save_ifs"
14185 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
14186 ;;
14187 esac
14188 fi
14189 MSGFMT="$ac_cv_path_MSGFMT"
14190 if test "$MSGFMT" != "no"; then
14191 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
14192 echo "${ECHO_T}$MSGFMT" >&6; }
14193 else
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14196 fi
14197 if test "$MSGFMT" != "no"; then
14198 glib_save_LIBS="$LIBS"
14199 LIBS="$LIBS $INTLLIBS"
14201 for ac_func in dcgettext
14202 do
14203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209 cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h. */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14217 #define $ac_func innocuous_$ac_func
14219 /* System header to define __stub macros and hopefully few prototypes,
14220 which can conflict with char $ac_func (); below.
14221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14222 <limits.h> exists even on freestanding compilers. */
14224 #ifdef __STDC__
14225 # include <limits.h>
14226 #else
14227 # include <assert.h>
14228 #endif
14230 #undef $ac_func
14232 /* Override any GCC internal prototype to avoid an error.
14233 Use char because int might match the return type of a GCC
14234 builtin and then its argument prototype would still apply. */
14235 #ifdef __cplusplus
14236 extern "C"
14237 #endif
14238 char $ac_func ();
14239 /* The GNU C library defines this for functions which it implements
14240 to always fail with ENOSYS. Some functions are actually named
14241 something starting with __ and the normal name is an alias. */
14242 #if defined __stub_$ac_func || defined __stub___$ac_func
14243 choke me
14244 #endif
14246 int
14247 main ()
14248 {
14249 return $ac_func ();
14250 ;
14251 return 0;
14252 }
14253 _ACEOF
14254 rm -f conftest.$ac_objext conftest$ac_exeext
14255 if { (ac_try="$ac_link"
14256 case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14259 esac
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_link") 2>conftest.er1
14262 ac_status=$?
14263 grep -v '^ *+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest$ac_exeext &&
14271 $as_test_x conftest$ac_exeext; then
14272 eval "$as_ac_var=yes"
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 eval "$as_ac_var=no"
14278 fi
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281 conftest$ac_exeext conftest.$ac_ext
14282 fi
14283 ac_res=`eval echo '${'$as_ac_var'}'`
14284 { echo "$as_me:$LINENO: result: $ac_res" >&5
14285 echo "${ECHO_T}$ac_res" >&6; }
14286 if test `eval echo '${'$as_ac_var'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14289 _ACEOF
14291 fi
14292 done
14294 MSGFMT_OPTS=
14295 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
14296 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
14297 cat >conftest.foo <<_ACEOF
14299 msgid ""
14300 msgstr ""
14301 "Content-Type: text/plain; charset=UTF-8\n"
14302 "Project-Id-Version: test 1.0\n"
14303 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
14304 "Last-Translator: test <foo@bar.xx>\n"
14305 "Language-Team: C <LL@li.org>\n"
14306 "MIME-Version: 1.0\n"
14307 "Content-Transfer-Encoding: 8bit\n"
14309 _ACEOF
14310 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
14311 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; then
14315 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
14316 echo "${ECHO_T}yes" >&6; }
14317 else { echo "$as_me:$LINENO: result: no" >&5
14318 echo "${ECHO_T}no" >&6; }
14319 echo "$as_me: failed input was:" >&5
14320 sed 's/^/| /' conftest.foo >&5
14321 fi
14323 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14324 set dummy gmsgfmt; ac_word=$2
14325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14327 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330 case $GMSGFMT in
14331 [\\/]* | ?:[\\/]*)
14332 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14333 ;;
14334 *)
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14337 do
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14342 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14345 fi
14346 done
14347 done
14348 IFS=$as_save_IFS
14350 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14351 ;;
14352 esac
14353 fi
14354 GMSGFMT=$ac_cv_path_GMSGFMT
14355 if test -n "$GMSGFMT"; then
14356 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14357 echo "${ECHO_T}$GMSGFMT" >&6; }
14358 else
14359 { echo "$as_me:$LINENO: result: no" >&5
14360 echo "${ECHO_T}no" >&6; }
14361 fi
14364 # Extract the first word of "xgettext", so it can be a program name with args.
14365 set dummy xgettext; ac_word=$2
14366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14368 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 case "$XGETTEXT" in
14372 /*)
14373 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14374 ;;
14375 *)
14376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14377 for ac_dir in $PATH; do
14378 test -z "$ac_dir" && ac_dir=.
14379 if test -f $ac_dir/$ac_word; then
14380 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
14381 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14382 break
14383 fi
14384 fi
14385 done
14386 IFS="$ac_save_ifs"
14387 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14388 ;;
14389 esac
14390 fi
14391 XGETTEXT="$ac_cv_path_XGETTEXT"
14392 if test "$XGETTEXT" != ":"; then
14393 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14394 echo "${ECHO_T}$XGETTEXT" >&6; }
14395 else
14396 { echo "$as_me:$LINENO: result: no" >&5
14397 echo "${ECHO_T}no" >&6; }
14398 fi
14400 cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h. */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14407 int
14408 main ()
14409 {
14410 extern int _nl_msg_cat_cntr;
14411 return _nl_msg_cat_cntr
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && {
14430 test -z "$ac_c_werror_flag" ||
14431 test ! -s conftest.err
14432 } && test -s conftest$ac_exeext &&
14433 $as_test_x conftest$ac_exeext; then
14434 CATOBJEXT=.gmo
14435 DATADIRNAME=share
14436 else
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 case $host in
14441 *-*-solaris*)
14442 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
14443 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
14444 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
14454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14455 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char bind_textdomain_codeset (); below.
14459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 <limits.h> exists even on freestanding compilers. */
14462 #ifdef __STDC__
14463 # include <limits.h>
14464 #else
14465 # include <assert.h>
14466 #endif
14468 #undef bind_textdomain_codeset
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14473 #ifdef __cplusplus
14474 extern "C"
14475 #endif
14476 char bind_textdomain_codeset ();
14477 /* The GNU C library defines this for functions which it implements
14478 to always fail with ENOSYS. Some functions are actually named
14479 something starting with __ and the normal name is an alias. */
14480 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
14481 choke me
14482 #endif
14484 int
14485 main ()
14486 {
14487 return bind_textdomain_codeset ();
14488 ;
14489 return 0;
14490 }
14491 _ACEOF
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } && {
14506 test -z "$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest$ac_exeext &&
14509 $as_test_x conftest$ac_exeext; then
14510 ac_cv_func_bind_textdomain_codeset=yes
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_cv_func_bind_textdomain_codeset=no
14516 fi
14518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14519 conftest$ac_exeext conftest.$ac_ext
14520 fi
14521 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
14522 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
14523 if test $ac_cv_func_bind_textdomain_codeset = yes; then
14524 CATOBJEXT=.gmo
14525 DATADIRNAME=share
14526 else
14527 CATOBJEXT=.mo
14528 DATADIRNAME=lib
14529 fi
14531 ;;
14532 *)
14533 CATOBJEXT=.mo
14534 DATADIRNAME=lib
14535 ;;
14536 esac
14537 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LIBS="$glib_save_LIBS"
14542 INSTOBJEXT=.mo
14543 else
14544 gt_cv_have_gettext=no
14545 fi
14546 fi
14548 fi
14552 if test "$gt_cv_have_gettext" = "yes" ; then
14554 cat >>confdefs.h <<\_ACEOF
14555 #define ENABLE_NLS 1
14556 _ACEOF
14558 fi
14560 if test "$XGETTEXT" != ":"; then
14561 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
14562 : ;
14563 else
14564 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
14565 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
14566 XGETTEXT=":"
14567 fi
14568 fi
14570 # We need to process the po/ directory.
14571 POSUB=po
14573 ac_config_commands="$ac_config_commands default-1"
14576 for lang in $ALL_LINGUAS; do
14577 GMOFILES="$GMOFILES $lang.gmo"
14578 POFILES="$POFILES $lang.po"
14579 done
14593 if test "$gt_cv_have_gettext" = "yes"; then
14594 if test "x$ALL_LINGUAS" = "x"; then
14595 LINGUAS=
14596 else
14597 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14598 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
14599 NEW_LINGUAS=
14600 for presentlang in $ALL_LINGUAS; do
14601 useit=no
14602 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
14603 desiredlanguages="$LINGUAS"
14604 else
14605 desiredlanguages="$ALL_LINGUAS"
14606 fi
14607 for desiredlang in $desiredlanguages; do
14608 # Use the presentlang catalog if desiredlang is
14609 # a. equal to presentlang, or
14610 # b. a variant of presentlang (because in this case,
14611 # presentlang can be used as a fallback for messages
14612 # which are not translated in the desiredlang catalog).
14613 case "$desiredlang" in
14614 "$presentlang"*) useit=yes;;
14615 esac
14616 done
14617 if test $useit = yes; then
14618 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14619 fi
14620 done
14621 LINGUAS=$NEW_LINGUAS
14622 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
14623 echo "${ECHO_T}$LINGUAS" >&6; }
14624 fi
14626 if test -n "$LINGUAS"; then
14627 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14628 fi
14629 fi
14631 MKINSTALLDIRS=
14632 if test -n "$ac_aux_dir"; then
14633 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14634 fi
14635 if test -z "$MKINSTALLDIRS"; then
14636 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14637 fi
14640 test -d po || mkdir po
14641 if test "x$srcdir" != "x."; then
14642 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14643 posrcprefix="$srcdir/"
14644 else
14645 posrcprefix="../$srcdir/"
14646 fi
14647 else
14648 posrcprefix="../"
14649 fi
14650 rm -f po/POTFILES
14651 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
14652 < $srcdir/po/POTFILES.in > po/POTFILES
14655 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
14657 cat >confcache <<\_ACEOF
14658 # This file is a shell script that caches the results of configure
14659 # tests run on this system so they can be shared between configure
14660 # scripts and configure runs, see configure's option --config-cache.
14661 # It is not useful on other systems. If it contains results you don't
14662 # want to keep, you may remove or edit it.
14663 #
14664 # config.status only pays attention to the cache file if you give it
14665 # the --recheck option to rerun configure.
14666 #
14667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14669 # following values.
14671 _ACEOF
14673 # The following way of writing the cache mishandles newlines in values,
14674 # but we know of no workaround that is simple, portable, and efficient.
14675 # So, we kill variables containing newlines.
14676 # Ultrix sh set writes to stderr and can't be redirected directly,
14677 # and sets the high bit in the cache file unless we assign to the vars.
14678 (
14679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14680 eval ac_val=\$$ac_var
14681 case $ac_val in #(
14682 *${as_nl}*)
14683 case $ac_var in #(
14684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14686 esac
14687 case $ac_var in #(
14688 _ | IFS | as_nl) ;; #(
14689 *) $as_unset $ac_var ;;
14690 esac ;;
14691 esac
14692 done
14694 (set) 2>&1 |
14695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14696 *${as_nl}ac_space=\ *)
14697 # `set' does not quote correctly, so add quotes (double-quote
14698 # substitution turns \\\\ into \\, and sed turns \\ into \).
14699 sed -n \
14700 "s/'/'\\\\''/g;
14701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14702 ;; #(
14703 *)
14704 # `set' quotes correctly as required by POSIX, so do not add quotes.
14705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14706 ;;
14707 esac |
14708 sort
14709 ) |
14710 sed '
14711 /^ac_cv_env_/b end
14712 t clear
14713 :clear
14714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14715 t end
14716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14717 :end' >>confcache
14718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14719 if test -w "$cache_file"; then
14720 test "x$cache_file" != "x/dev/null" &&
14721 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14722 echo "$as_me: updating cache $cache_file" >&6;}
14723 cat confcache >$cache_file
14724 else
14725 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14726 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14727 fi
14728 fi
14729 rm -f confcache
14731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14732 # Let make expand exec_prefix.
14733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14735 DEFS=-DHAVE_CONFIG_H
14737 ac_libobjs=
14738 ac_ltlibobjs=
14739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14740 # 1. Remove the extension, and $U if already installed.
14741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14742 ac_i=`echo "$ac_i" | sed "$ac_script"`
14743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14744 # will be set to the directory where LIBOBJS objects are built.
14745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14747 done
14748 LIBOBJS=$ac_libobjs
14750 LTLIBOBJS=$ac_ltlibobjs
14753 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14754 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14755 Usually this means the macro was only invoked conditionally." >&5
14756 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14757 Usually this means the macro was only invoked conditionally." >&2;}
14758 { (exit 1); exit 1; }; }
14759 fi
14760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14761 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14762 Usually this means the macro was only invoked conditionally." >&5
14763 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14764 Usually this means the macro was only invoked conditionally." >&2;}
14765 { (exit 1); exit 1; }; }
14766 fi
14767 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14768 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14769 Usually this means the macro was only invoked conditionally." >&5
14770 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14771 Usually this means the macro was only invoked conditionally." >&2;}
14772 { (exit 1); exit 1; }; }
14773 fi
14774 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14775 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14776 Usually this means the macro was only invoked conditionally." >&5
14777 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14778 Usually this means the macro was only invoked conditionally." >&2;}
14779 { (exit 1); exit 1; }; }
14780 fi
14781 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
14782 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
14783 Usually this means the macro was only invoked conditionally." >&5
14784 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
14785 Usually this means the macro was only invoked conditionally." >&2;}
14786 { (exit 1); exit 1; }; }
14787 fi
14788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14790 Usually this means the macro was only invoked conditionally." >&5
14791 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14792 Usually this means the macro was only invoked conditionally." >&2;}
14793 { (exit 1); exit 1; }; }
14794 fi
14795 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
14796 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
14797 Usually this means the macro was only invoked conditionally." >&5
14798 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
14799 Usually this means the macro was only invoked conditionally." >&2;}
14800 { (exit 1); exit 1; }; }
14801 fi
14802 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
14803 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
14804 Usually this means the macro was only invoked conditionally." >&5
14805 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
14806 Usually this means the macro was only invoked conditionally." >&2;}
14807 { (exit 1); exit 1; }; }
14808 fi
14809 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
14810 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
14811 Usually this means the macro was only invoked conditionally." >&5
14812 echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
14813 Usually this means the macro was only invoked conditionally." >&2;}
14814 { (exit 1); exit 1; }; }
14815 fi
14816 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
14817 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
14818 Usually this means the macro was only invoked conditionally." >&5
14819 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
14820 Usually this means the macro was only invoked conditionally." >&2;}
14821 { (exit 1); exit 1; }; }
14822 fi
14823 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
14824 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
14825 Usually this means the macro was only invoked conditionally." >&5
14826 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
14827 Usually this means the macro was only invoked conditionally." >&2;}
14828 { (exit 1); exit 1; }; }
14829 fi
14830 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
14831 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
14832 Usually this means the macro was only invoked conditionally." >&5
14833 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
14834 Usually this means the macro was only invoked conditionally." >&2;}
14835 { (exit 1); exit 1; }; }
14836 fi
14837 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
14838 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
14839 Usually this means the macro was only invoked conditionally." >&5
14840 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
14841 Usually this means the macro was only invoked conditionally." >&2;}
14842 { (exit 1); exit 1; }; }
14843 fi
14844 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
14845 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
14846 Usually this means the macro was only invoked conditionally." >&5
14847 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
14848 Usually this means the macro was only invoked conditionally." >&2;}
14849 { (exit 1); exit 1; }; }
14850 fi
14851 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
14852 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
14853 Usually this means the macro was only invoked conditionally." >&5
14854 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
14855 Usually this means the macro was only invoked conditionally." >&2;}
14856 { (exit 1); exit 1; }; }
14857 fi
14858 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
14859 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
14860 Usually this means the macro was only invoked conditionally." >&5
14861 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
14862 Usually this means the macro was only invoked conditionally." >&2;}
14863 { (exit 1); exit 1; }; }
14864 fi
14865 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
14866 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
14867 Usually this means the macro was only invoked conditionally." >&5
14868 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
14869 Usually this means the macro was only invoked conditionally." >&2;}
14870 { (exit 1); exit 1; }; }
14871 fi
14872 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
14873 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
14874 Usually this means the macro was only invoked conditionally." >&5
14875 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
14876 Usually this means the macro was only invoked conditionally." >&2;}
14877 { (exit 1); exit 1; }; }
14878 fi
14879 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
14880 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
14881 Usually this means the macro was only invoked conditionally." >&5
14882 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
14883 Usually this means the macro was only invoked conditionally." >&2;}
14884 { (exit 1); exit 1; }; }
14885 fi
14886 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
14887 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
14888 Usually this means the macro was only invoked conditionally." >&5
14889 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
14890 Usually this means the macro was only invoked conditionally." >&2;}
14891 { (exit 1); exit 1; }; }
14892 fi
14893 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
14894 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
14895 Usually this means the macro was only invoked conditionally." >&5
14896 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
14897 Usually this means the macro was only invoked conditionally." >&2;}
14898 { (exit 1); exit 1; }; }
14899 fi
14900 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
14901 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
14902 Usually this means the macro was only invoked conditionally." >&5
14903 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
14904 Usually this means the macro was only invoked conditionally." >&2;}
14905 { (exit 1); exit 1; }; }
14906 fi
14907 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
14908 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
14909 Usually this means the macro was only invoked conditionally." >&5
14910 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
14911 Usually this means the macro was only invoked conditionally." >&2;}
14912 { (exit 1); exit 1; }; }
14913 fi
14914 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
14915 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
14916 Usually this means the macro was only invoked conditionally." >&5
14917 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
14918 Usually this means the macro was only invoked conditionally." >&2;}
14919 { (exit 1); exit 1; }; }
14920 fi
14921 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
14922 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
14923 Usually this means the macro was only invoked conditionally." >&5
14924 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
14925 Usually this means the macro was only invoked conditionally." >&2;}
14926 { (exit 1); exit 1; }; }
14927 fi
14928 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
14929 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
14930 Usually this means the macro was only invoked conditionally." >&5
14931 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
14932 Usually this means the macro was only invoked conditionally." >&2;}
14933 { (exit 1); exit 1; }; }
14934 fi
14936 : ${CONFIG_STATUS=./config.status}
14937 ac_clean_files_save=$ac_clean_files
14938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14941 cat >$CONFIG_STATUS <<_ACEOF
14942 #! $SHELL
14943 # Generated by $as_me.
14944 # Run this file to recreate the current configuration.
14945 # Compiler output produced by configure, useful for debugging
14946 # configure, is in config.log if it exists.
14948 debug=false
14949 ac_cs_recheck=false
14950 ac_cs_silent=false
14951 SHELL=\${CONFIG_SHELL-$SHELL}
14952 _ACEOF
14954 cat >>$CONFIG_STATUS <<\_ACEOF
14955 ## --------------------- ##
14956 ## M4sh Initialization. ##
14957 ## --------------------- ##
14959 # Be more Bourne compatible
14960 DUALCASE=1; export DUALCASE # for MKS sh
14961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14962 emulate sh
14963 NULLCMD=:
14964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14965 # is contrary to our usage. Disable this feature.
14966 alias -g '${1+"$@"}'='"$@"'
14967 setopt NO_GLOB_SUBST
14968 else
14969 case `(set -o) 2>/dev/null` in
14970 *posix*) set -o posix ;;
14971 esac
14973 fi
14978 # PATH needs CR
14979 # Avoid depending upon Character Ranges.
14980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14983 as_cr_digits='0123456789'
14984 as_cr_alnum=$as_cr_Letters$as_cr_digits
14986 # The user is always right.
14987 if test "${PATH_SEPARATOR+set}" != set; then
14988 echo "#! /bin/sh" >conf$$.sh
14989 echo "exit 0" >>conf$$.sh
14990 chmod +x conf$$.sh
14991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14992 PATH_SEPARATOR=';'
14993 else
14994 PATH_SEPARATOR=:
14995 fi
14996 rm -f conf$$.sh
14997 fi
14999 # Support unset when possible.
15000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15001 as_unset=unset
15002 else
15003 as_unset=false
15004 fi
15007 # IFS
15008 # We need space, tab and new line, in precisely that order. Quoting is
15009 # there to prevent editors from complaining about space-tab.
15010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15011 # splitting by setting IFS to empty value.)
15012 as_nl='
15013 '
15014 IFS=" "" $as_nl"
15016 # Find who we are. Look in the path if we contain no directory separator.
15017 case $0 in
15018 *[\\/]* ) as_myself=$0 ;;
15019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15021 do
15022 IFS=$as_save_IFS
15023 test -z "$as_dir" && as_dir=.
15024 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15025 done
15026 IFS=$as_save_IFS
15028 ;;
15029 esac
15030 # We did not find ourselves, most probably we were run as `sh COMMAND'
15031 # in which case we are not to be found in the path.
15032 if test "x$as_myself" = x; then
15033 as_myself=$0
15034 fi
15035 if test ! -f "$as_myself"; then
15036 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15037 { (exit 1); exit 1; }
15038 fi
15040 # Work around bugs in pre-3.0 UWIN ksh.
15041 for as_var in ENV MAIL MAILPATH
15042 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15043 done
15044 PS1='$ '
15045 PS2='> '
15046 PS4='+ '
15048 # NLS nuisances.
15049 for as_var in \
15050 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15051 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15052 LC_TELEPHONE LC_TIME
15053 do
15054 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15055 eval $as_var=C; export $as_var
15056 else
15057 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15058 fi
15059 done
15061 # Required to use basename.
15062 if expr a : '\(a\)' >/dev/null 2>&1 &&
15063 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15064 as_expr=expr
15065 else
15066 as_expr=false
15067 fi
15069 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15070 as_basename=basename
15071 else
15072 as_basename=false
15073 fi
15076 # Name of the executable.
15077 as_me=`$as_basename -- "$0" ||
15078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15079 X"$0" : 'X\(//\)$' \| \
15080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15081 echo X/"$0" |
15082 sed '/^.*\/\([^/][^/]*\)\/*$/{
15083 s//\1/
15084 q
15085 }
15086 /^X\/\(\/\/\)$/{
15087 s//\1/
15088 q
15089 }
15090 /^X\/\(\/\).*/{
15091 s//\1/
15092 q
15093 }
15094 s/.*/./; q'`
15096 # CDPATH.
15097 $as_unset CDPATH
15101 as_lineno_1=$LINENO
15102 as_lineno_2=$LINENO
15103 test "x$as_lineno_1" != "x$as_lineno_2" &&
15104 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15107 # uniformly replaced by the line number. The first 'sed' inserts a
15108 # line-number line after each line using $LINENO; the second 'sed'
15109 # does the real work. The second script uses 'N' to pair each
15110 # line-number line with the line containing $LINENO, and appends
15111 # trailing '-' during substitution so that $LINENO is not a special
15112 # case at line end.
15113 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15114 # scripts with optimization help from Paolo Bonzini. Blame Lee
15115 # E. McMahon (1931-1989) for sed's syntax. :-)
15116 sed -n '
15117 p
15118 /[$]LINENO/=
15119 ' <$as_myself |
15120 sed '
15121 s/[$]LINENO.*/&-/
15122 t lineno
15123 b
15124 :lineno
15125 N
15126 :loop
15127 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15128 t loop
15129 s/-\n.*//
15130 ' >$as_me.lineno &&
15131 chmod +x "$as_me.lineno" ||
15132 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15133 { (exit 1); exit 1; }; }
15135 # Don't try to exec as it changes $[0], causing all sort of problems
15136 # (the dirname of $[0] is not the place where we might find the
15137 # original and so on. Autoconf is especially sensitive to this).
15138 . "./$as_me.lineno"
15139 # Exit status is that of the last command.
15140 exit
15141 }
15144 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15145 as_dirname=dirname
15146 else
15147 as_dirname=false
15148 fi
15150 ECHO_C= ECHO_N= ECHO_T=
15151 case `echo -n x` in
15152 -n*)
15153 case `echo 'x\c'` in
15154 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15155 *) ECHO_C='\c';;
15156 esac;;
15157 *)
15158 ECHO_N='-n';;
15159 esac
15161 if expr a : '\(a\)' >/dev/null 2>&1 &&
15162 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15163 as_expr=expr
15164 else
15165 as_expr=false
15166 fi
15168 rm -f conf$$ conf$$.exe conf$$.file
15169 if test -d conf$$.dir; then
15170 rm -f conf$$.dir/conf$$.file
15171 else
15172 rm -f conf$$.dir
15173 mkdir conf$$.dir
15174 fi
15175 echo >conf$$.file
15176 if ln -s conf$$.file conf$$ 2>/dev/null; then
15177 as_ln_s='ln -s'
15178 # ... but there are two gotchas:
15179 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15180 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15181 # In both cases, we have to default to `cp -p'.
15182 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15183 as_ln_s='cp -p'
15184 elif ln conf$$.file conf$$ 2>/dev/null; then
15185 as_ln_s=ln
15186 else
15187 as_ln_s='cp -p'
15188 fi
15189 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15190 rmdir conf$$.dir 2>/dev/null
15192 if mkdir -p . 2>/dev/null; then
15193 as_mkdir_p=:
15194 else
15195 test -d ./-p && rmdir ./-p
15196 as_mkdir_p=false
15197 fi
15199 if test -x / >/dev/null 2>&1; then
15200 as_test_x='test -x'
15201 else
15202 if ls -dL / >/dev/null 2>&1; then
15203 as_ls_L_option=L
15204 else
15205 as_ls_L_option=
15206 fi
15207 as_test_x='
15208 eval sh -c '\''
15209 if test -d "$1"; then
15210 test -d "$1/.";
15211 else
15212 case $1 in
15213 -*)set "./$1";;
15214 esac;
15215 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15216 ???[sx]*):;;*)false;;esac;fi
15217 '\'' sh
15218 '
15219 fi
15220 as_executable_p=$as_test_x
15222 # Sed expression to map a string onto a valid CPP name.
15223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15225 # Sed expression to map a string onto a valid variable name.
15226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15229 exec 6>&1
15231 # Save the log message, to keep $[0] and so on meaningful, and to
15232 # report actual input values of CONFIG_FILES etc. instead of their
15233 # values after options handling.
15234 ac_log="
15235 This file was extended by $as_me, which was
15236 generated by GNU Autoconf 2.61. Invocation command line was
15238 CONFIG_FILES = $CONFIG_FILES
15239 CONFIG_HEADERS = $CONFIG_HEADERS
15240 CONFIG_LINKS = $CONFIG_LINKS
15241 CONFIG_COMMANDS = $CONFIG_COMMANDS
15242 $ $0 $@
15244 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15245 "
15247 _ACEOF
15249 cat >>$CONFIG_STATUS <<_ACEOF
15250 # Files that config.status was made for.
15251 config_files="$ac_config_files"
15252 config_headers="$ac_config_headers"
15253 config_commands="$ac_config_commands"
15255 _ACEOF
15257 cat >>$CONFIG_STATUS <<\_ACEOF
15258 ac_cs_usage="\
15259 \`$as_me' instantiates files from templates according to the
15260 current configuration.
15262 Usage: $0 [OPTIONS] [FILE]...
15264 -h, --help print this help, then exit
15265 -V, --version print version number and configuration settings, then exit
15266 -q, --quiet do not print progress messages
15267 -d, --debug don't remove temporary files
15268 --recheck update $as_me by reconfiguring in the same conditions
15269 --file=FILE[:TEMPLATE]
15270 instantiate the configuration file FILE
15271 --header=FILE[:TEMPLATE]
15272 instantiate the configuration header FILE
15274 Configuration files:
15275 $config_files
15277 Configuration headers:
15278 $config_headers
15280 Configuration commands:
15281 $config_commands
15283 Report bugs to <bug-autoconf@gnu.org>."
15285 _ACEOF
15286 cat >>$CONFIG_STATUS <<_ACEOF
15287 ac_cs_version="\\
15288 config.status
15289 configured by $0, generated by GNU Autoconf 2.61,
15290 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15292 Copyright (C) 2006 Free Software Foundation, Inc.
15293 This config.status script is free software; the Free Software Foundation
15294 gives unlimited permission to copy, distribute and modify it."
15296 ac_pwd='$ac_pwd'
15297 srcdir='$srcdir'
15298 INSTALL='$INSTALL'
15299 _ACEOF
15301 cat >>$CONFIG_STATUS <<\_ACEOF
15302 # If no file are specified by the user, then we need to provide default
15303 # value. By we need to know if files were specified by the user.
15304 ac_need_defaults=:
15305 while test $# != 0
15306 do
15307 case $1 in
15308 --*=*)
15309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15311 ac_shift=:
15312 ;;
15313 *)
15314 ac_option=$1
15315 ac_optarg=$2
15316 ac_shift=shift
15317 ;;
15318 esac
15320 case $ac_option in
15321 # Handling of the options.
15322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15323 ac_cs_recheck=: ;;
15324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15325 echo "$ac_cs_version"; exit ;;
15326 --debug | --debu | --deb | --de | --d | -d )
15327 debug=: ;;
15328 --file | --fil | --fi | --f )
15329 $ac_shift
15330 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15331 ac_need_defaults=false;;
15332 --header | --heade | --head | --hea )
15333 $ac_shift
15334 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15335 ac_need_defaults=false;;
15336 --he | --h)
15337 # Conflict between --help and --header
15338 { echo "$as_me: error: ambiguous option: $1
15339 Try \`$0 --help' for more information." >&2
15340 { (exit 1); exit 1; }; };;
15341 --help | --hel | -h )
15342 echo "$ac_cs_usage"; exit ;;
15343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15345 ac_cs_silent=: ;;
15347 # This is an error.
15348 -*) { echo "$as_me: error: unrecognized option: $1
15349 Try \`$0 --help' for more information." >&2
15350 { (exit 1); exit 1; }; } ;;
15352 *) ac_config_targets="$ac_config_targets $1"
15353 ac_need_defaults=false ;;
15355 esac
15356 shift
15357 done
15359 ac_configure_extra_args=
15361 if $ac_cs_silent; then
15362 exec 6>/dev/null
15363 ac_configure_extra_args="$ac_configure_extra_args --silent"
15364 fi
15366 _ACEOF
15367 cat >>$CONFIG_STATUS <<_ACEOF
15368 if \$ac_cs_recheck; then
15369 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15370 CONFIG_SHELL=$SHELL
15371 export CONFIG_SHELL
15372 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15373 fi
15375 _ACEOF
15376 cat >>$CONFIG_STATUS <<\_ACEOF
15377 exec 5>>config.log
15378 {
15379 echo
15380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15381 ## Running $as_me. ##
15382 _ASBOX
15383 echo "$ac_log"
15384 } >&5
15386 _ACEOF
15387 cat >>$CONFIG_STATUS <<_ACEOF
15388 #
15389 # INIT-COMMANDS
15390 #
15391 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15394 _ACEOF
15396 cat >>$CONFIG_STATUS <<\_ACEOF
15398 # Handling of arguments.
15399 for ac_config_target in $ac_config_targets
15400 do
15401 case $ac_config_target in
15402 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15403 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15404 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15407 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15408 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15409 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
15411 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15412 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15413 { (exit 1); exit 1; }; };;
15414 esac
15415 done
15418 # If the user did not use the arguments to specify the items to instantiate,
15419 # then the envvar interface is used. Set only those that are not.
15420 # We use the long form for the default assignment because of an extremely
15421 # bizarre bug on SunOS 4.1.3.
15422 if $ac_need_defaults; then
15423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15426 fi
15428 # Have a temporary directory for convenience. Make it in the build tree
15429 # simply because there is no reason against having it here, and in addition,
15430 # creating and moving files from /tmp can sometimes cause problems.
15431 # Hook for its removal unless debugging.
15432 # Note that there is a small window in which the directory will not be cleaned:
15433 # after its creation but before its name has been assigned to `$tmp'.
15434 $debug ||
15435 {
15436 tmp=
15437 trap 'exit_status=$?
15438 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15439 ' 0
15440 trap '{ (exit 1); exit 1; }' 1 2 13 15
15441 }
15442 # Create a (secure) tmp directory for tmp files.
15444 {
15445 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15446 test -n "$tmp" && test -d "$tmp"
15447 } ||
15448 {
15449 tmp=./conf$$-$RANDOM
15450 (umask 077 && mkdir "$tmp")
15451 } ||
15452 {
15453 echo "$me: cannot create a temporary directory in ." >&2
15454 { (exit 1); exit 1; }
15455 }
15457 #
15458 # Set up the sed scripts for CONFIG_FILES section.
15459 #
15461 # No need to generate the scripts if there are no CONFIG_FILES.
15462 # This happens for instance when ./config.status config.h
15463 if test -n "$CONFIG_FILES"; then
15465 _ACEOF
15469 ac_delim='%!_!# '
15470 for ac_last_try in false false false false false :; do
15471 cat >conf$$subs.sed <<_ACEOF
15472 SHELL!$SHELL$ac_delim
15473 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15474 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15475 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15476 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15477 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15478 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15479 exec_prefix!$exec_prefix$ac_delim
15480 prefix!$prefix$ac_delim
15481 program_transform_name!$program_transform_name$ac_delim
15482 bindir!$bindir$ac_delim
15483 sbindir!$sbindir$ac_delim
15484 libexecdir!$libexecdir$ac_delim
15485 datarootdir!$datarootdir$ac_delim
15486 datadir!$datadir$ac_delim
15487 sysconfdir!$sysconfdir$ac_delim
15488 sharedstatedir!$sharedstatedir$ac_delim
15489 localstatedir!$localstatedir$ac_delim
15490 includedir!$includedir$ac_delim
15491 oldincludedir!$oldincludedir$ac_delim
15492 docdir!$docdir$ac_delim
15493 infodir!$infodir$ac_delim
15494 htmldir!$htmldir$ac_delim
15495 dvidir!$dvidir$ac_delim
15496 pdfdir!$pdfdir$ac_delim
15497 psdir!$psdir$ac_delim
15498 libdir!$libdir$ac_delim
15499 localedir!$localedir$ac_delim
15500 mandir!$mandir$ac_delim
15501 DEFS!$DEFS$ac_delim
15502 ECHO_C!$ECHO_C$ac_delim
15503 ECHO_N!$ECHO_N$ac_delim
15504 ECHO_T!$ECHO_T$ac_delim
15505 LIBS!$LIBS$ac_delim
15506 build_alias!$build_alias$ac_delim
15507 host_alias!$host_alias$ac_delim
15508 target_alias!$target_alias$ac_delim
15509 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15510 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15511 INSTALL_DATA!$INSTALL_DATA$ac_delim
15512 CYGPATH_W!$CYGPATH_W$ac_delim
15513 PACKAGE!$PACKAGE$ac_delim
15514 VERSION!$VERSION$ac_delim
15515 ACLOCAL!$ACLOCAL$ac_delim
15516 AUTOCONF!$AUTOCONF$ac_delim
15517 AUTOMAKE!$AUTOMAKE$ac_delim
15518 AUTOHEADER!$AUTOHEADER$ac_delim
15519 MAKEINFO!$MAKEINFO$ac_delim
15520 install_sh!$install_sh$ac_delim
15521 STRIP!$STRIP$ac_delim
15522 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15523 mkdir_p!$mkdir_p$ac_delim
15524 AWK!$AWK$ac_delim
15525 SET_MAKE!$SET_MAKE$ac_delim
15526 am__leading_dot!$am__leading_dot$ac_delim
15527 AMTAR!$AMTAR$ac_delim
15528 am__tar!$am__tar$ac_delim
15529 am__untar!$am__untar$ac_delim
15530 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
15531 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
15532 MAINT!$MAINT$ac_delim
15533 CC!$CC$ac_delim
15534 CFLAGS!$CFLAGS$ac_delim
15535 LDFLAGS!$LDFLAGS$ac_delim
15536 CPPFLAGS!$CPPFLAGS$ac_delim
15537 ac_ct_CC!$ac_ct_CC$ac_delim
15538 EXEEXT!$EXEEXT$ac_delim
15539 OBJEXT!$OBJEXT$ac_delim
15540 DEPDIR!$DEPDIR$ac_delim
15541 am__include!$am__include$ac_delim
15542 am__quote!$am__quote$ac_delim
15543 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15544 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15545 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15546 CCDEPMODE!$CCDEPMODE$ac_delim
15547 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15548 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15549 CPP!$CPP$ac_delim
15550 build!$build$ac_delim
15551 build_cpu!$build_cpu$ac_delim
15552 build_vendor!$build_vendor$ac_delim
15553 build_os!$build_os$ac_delim
15554 host!$host$ac_delim
15555 host_cpu!$host_cpu$ac_delim
15556 host_vendor!$host_vendor$ac_delim
15557 host_os!$host_os$ac_delim
15558 CC!$CC$ac_delim
15559 CFLAGS!$CFLAGS$ac_delim
15560 CPPFLAGS!$CPPFLAGS$ac_delim
15561 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
15562 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
15563 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
15564 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
15565 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
15566 CPP!$CPP$ac_delim
15567 CPPFLAGS!$CPPFLAGS$ac_delim
15568 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
15569 _ACEOF
15571 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15572 break
15573 elif $ac_last_try; then
15574 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15576 { (exit 1); exit 1; }; }
15577 else
15578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15579 fi
15580 done
15582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15583 if test -n "$ac_eof"; then
15584 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15585 ac_eof=`expr $ac_eof + 1`
15586 fi
15588 cat >>$CONFIG_STATUS <<_ACEOF
15589 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15591 _ACEOF
15592 sed '
15593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15594 s/^/s,@/; s/!/@,|#_!!_#|/
15595 :n
15596 t n
15597 s/'"$ac_delim"'$/,g/; t
15598 s/$/\\/; p
15599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15600 ' >>$CONFIG_STATUS <conf$$subs.sed
15601 rm -f conf$$subs.sed
15602 cat >>$CONFIG_STATUS <<_ACEOF
15603 CEOF$ac_eof
15604 _ACEOF
15607 ac_delim='%!_!# '
15608 for ac_last_try in false false false false false :; do
15609 cat >conf$$subs.sed <<_ACEOF
15610 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
15611 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
15612 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
15613 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
15614 OBJC!$OBJC$ac_delim
15615 OBJCFLAGS!$OBJCFLAGS$ac_delim
15616 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
15617 SED!$SED$ac_delim
15618 CCAS!$CCAS$ac_delim
15619 CCASFLAGS!$CCASFLAGS$ac_delim
15620 GREP!$GREP$ac_delim
15621 EGREP!$EGREP$ac_delim
15622 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
15623 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
15624 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
15625 POD2MAN!$POD2MAN$ac_delim
15626 POD2HTML!$POD2HTML$ac_delim
15627 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
15628 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
15629 SOEXT!$SOEXT$ac_delim
15630 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
15631 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
15632 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
15633 BUILD_SHARED_TRUE!$BUILD_SHARED_TRUE$ac_delim
15634 BUILD_SHARED_FALSE!$BUILD_SHARED_FALSE$ac_delim
15635 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
15636 PKG_CONFIG!$PKG_CONFIG$ac_delim
15637 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
15638 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
15639 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
15640 GLIB_LIBS!$GLIB_LIBS$ac_delim
15641 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15642 GTK_LIBS!$GTK_LIBS$ac_delim
15643 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
15644 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
15645 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
15646 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
15647 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
15648 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
15649 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
15650 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
15651 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
15652 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
15653 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
15654 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
15655 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
15656 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
15657 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
15658 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
15659 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
15660 SDL_LIBS!$SDL_LIBS$ac_delim
15661 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
15662 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
15663 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
15664 PULSE_LIBS!$PULSE_LIBS$ac_delim
15665 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
15666 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
15667 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
15668 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
15669 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
15670 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
15671 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
15672 ALSA_LIBS!$ALSA_LIBS$ac_delim
15673 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
15674 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
15675 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
15676 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
15677 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
15678 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
15679 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
15680 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
15681 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
15682 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
15683 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
15684 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
15685 SHCC!$SHCC$ac_delim
15686 SHLD!$SHLD$ac_delim
15687 SHOBJCOPY!$SHOBJCOPY$ac_delim
15688 ARMCC!$ARMCC$ac_delim
15689 ARMLD!$ARMLD$ac_delim
15690 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
15691 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
15692 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
15693 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
15694 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
15695 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
15696 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15697 USE_NLS!$USE_NLS$ac_delim
15698 MSGFMT!$MSGFMT$ac_delim
15699 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
15700 GMSGFMT!$GMSGFMT$ac_delim
15701 XGETTEXT!$XGETTEXT$ac_delim
15702 CATALOGS!$CATALOGS$ac_delim
15703 CATOBJEXT!$CATOBJEXT$ac_delim
15704 DATADIRNAME!$DATADIRNAME$ac_delim
15705 GMOFILES!$GMOFILES$ac_delim
15706 INSTOBJEXT!$INSTOBJEXT$ac_delim
15707 _ACEOF
15709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15710 break
15711 elif $ac_last_try; then
15712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15714 { (exit 1); exit 1; }; }
15715 else
15716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15717 fi
15718 done
15720 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15721 if test -n "$ac_eof"; then
15722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15723 ac_eof=`expr $ac_eof + 1`
15724 fi
15726 cat >>$CONFIG_STATUS <<_ACEOF
15727 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15729 _ACEOF
15730 sed '
15731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15732 s/^/s,@/; s/!/@,|#_!!_#|/
15733 :n
15734 t n
15735 s/'"$ac_delim"'$/,g/; t
15736 s/$/\\/; p
15737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15738 ' >>$CONFIG_STATUS <conf$$subs.sed
15739 rm -f conf$$subs.sed
15740 cat >>$CONFIG_STATUS <<_ACEOF
15741 CEOF$ac_eof
15742 _ACEOF
15745 ac_delim='%!_!# '
15746 for ac_last_try in false false false false false :; do
15747 cat >conf$$subs.sed <<_ACEOF
15748 INTLLIBS!$INTLLIBS$ac_delim
15749 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
15750 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
15751 POFILES!$POFILES$ac_delim
15752 POSUB!$POSUB$ac_delim
15753 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15754 LIBOBJS!$LIBOBJS$ac_delim
15755 LTLIBOBJS!$LTLIBOBJS$ac_delim
15756 _ACEOF
15758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
15759 break
15760 elif $ac_last_try; then
15761 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15763 { (exit 1); exit 1; }; }
15764 else
15765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15766 fi
15767 done
15769 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15770 if test -n "$ac_eof"; then
15771 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15772 ac_eof=`expr $ac_eof + 1`
15773 fi
15775 cat >>$CONFIG_STATUS <<_ACEOF
15776 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
15777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15778 _ACEOF
15779 sed '
15780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15781 s/^/s,@/; s/!/@,|#_!!_#|/
15782 :n
15783 t n
15784 s/'"$ac_delim"'$/,g/; t
15785 s/$/\\/; p
15786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15787 ' >>$CONFIG_STATUS <conf$$subs.sed
15788 rm -f conf$$subs.sed
15789 cat >>$CONFIG_STATUS <<_ACEOF
15790 :end
15791 s/|#_!!_#|//g
15792 CEOF$ac_eof
15793 _ACEOF
15796 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15797 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15798 # trailing colons and then remove the whole line if VPATH becomes empty
15799 # (actually we leave an empty line to preserve line numbers).
15800 if test "x$srcdir" = x.; then
15801 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15802 s/:*\$(srcdir):*/:/
15803 s/:*\${srcdir}:*/:/
15804 s/:*@srcdir@:*/:/
15805 s/^\([^=]*=[ ]*\):*/\1/
15806 s/:*$//
15807 s/^[^=]*=[ ]*$//
15808 }'
15809 fi
15811 cat >>$CONFIG_STATUS <<\_ACEOF
15812 fi # test -n "$CONFIG_FILES"
15815 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15816 do
15817 case $ac_tag in
15818 :[FHLC]) ac_mode=$ac_tag; continue;;
15819 esac
15820 case $ac_mode$ac_tag in
15821 :[FHL]*:*);;
15822 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15823 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15824 { (exit 1); exit 1; }; };;
15825 :[FH]-) ac_tag=-:-;;
15826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15827 esac
15828 ac_save_IFS=$IFS
15829 IFS=:
15830 set x $ac_tag
15831 IFS=$ac_save_IFS
15832 shift
15833 ac_file=$1
15834 shift
15836 case $ac_mode in
15837 :L) ac_source=$1;;
15838 :[FH])
15839 ac_file_inputs=
15840 for ac_f
15841 do
15842 case $ac_f in
15843 -) ac_f="$tmp/stdin";;
15844 *) # Look for the file first in the build tree, then in the source tree
15845 # (if the path is not absolute). The absolute path cannot be DOS-style,
15846 # because $ac_f cannot contain `:'.
15847 test -f "$ac_f" ||
15848 case $ac_f in
15849 [\\/$]*) false;;
15850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15851 esac ||
15852 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15853 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15854 { (exit 1); exit 1; }; };;
15855 esac
15856 ac_file_inputs="$ac_file_inputs $ac_f"
15857 done
15859 # Let's still pretend it is `configure' which instantiates (i.e., don't
15860 # use $as_me), people would be surprised to read:
15861 # /* config.h. Generated by config.status. */
15862 configure_input="Generated from "`IFS=:
15863 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15864 if test x"$ac_file" != x-; then
15865 configure_input="$ac_file. $configure_input"
15866 { echo "$as_me:$LINENO: creating $ac_file" >&5
15867 echo "$as_me: creating $ac_file" >&6;}
15868 fi
15870 case $ac_tag in
15871 *:-:* | *:-) cat >"$tmp/stdin";;
15872 esac
15873 ;;
15874 esac
15876 ac_dir=`$as_dirname -- "$ac_file" ||
15877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878 X"$ac_file" : 'X\(//\)[^/]' \| \
15879 X"$ac_file" : 'X\(//\)$' \| \
15880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15881 echo X"$ac_file" |
15882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15883 s//\1/
15884 q
15885 }
15886 /^X\(\/\/\)[^/].*/{
15887 s//\1/
15888 q
15889 }
15890 /^X\(\/\/\)$/{
15891 s//\1/
15892 q
15893 }
15894 /^X\(\/\).*/{
15895 s//\1/
15896 q
15897 }
15898 s/.*/./; q'`
15899 { as_dir="$ac_dir"
15900 case $as_dir in #(
15901 -*) as_dir=./$as_dir;;
15902 esac
15903 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15904 as_dirs=
15905 while :; do
15906 case $as_dir in #(
15907 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15908 *) as_qdir=$as_dir;;
15909 esac
15910 as_dirs="'$as_qdir' $as_dirs"
15911 as_dir=`$as_dirname -- "$as_dir" ||
15912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15913 X"$as_dir" : 'X\(//\)[^/]' \| \
15914 X"$as_dir" : 'X\(//\)$' \| \
15915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15916 echo X"$as_dir" |
15917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15918 s//\1/
15919 q
15920 }
15921 /^X\(\/\/\)[^/].*/{
15922 s//\1/
15923 q
15924 }
15925 /^X\(\/\/\)$/{
15926 s//\1/
15927 q
15928 }
15929 /^X\(\/\).*/{
15930 s//\1/
15931 q
15932 }
15933 s/.*/./; q'`
15934 test -d "$as_dir" && break
15935 done
15936 test -z "$as_dirs" || eval "mkdir $as_dirs"
15937 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15938 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15939 { (exit 1); exit 1; }; }; }
15940 ac_builddir=.
15942 case "$ac_dir" in
15943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15944 *)
15945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15946 # A ".." for each directory in $ac_dir_suffix.
15947 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15948 case $ac_top_builddir_sub in
15949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15951 esac ;;
15952 esac
15953 ac_abs_top_builddir=$ac_pwd
15954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15955 # for backward compatibility:
15956 ac_top_builddir=$ac_top_build_prefix
15958 case $srcdir in
15959 .) # We are building in place.
15960 ac_srcdir=.
15961 ac_top_srcdir=$ac_top_builddir_sub
15962 ac_abs_top_srcdir=$ac_pwd ;;
15963 [\\/]* | ?:[\\/]* ) # Absolute name.
15964 ac_srcdir=$srcdir$ac_dir_suffix;
15965 ac_top_srcdir=$srcdir
15966 ac_abs_top_srcdir=$srcdir ;;
15967 *) # Relative name.
15968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15969 ac_top_srcdir=$ac_top_build_prefix$srcdir
15970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15971 esac
15972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15975 case $ac_mode in
15976 :F)
15977 #
15978 # CONFIG_FILE
15979 #
15981 case $INSTALL in
15982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15984 esac
15985 _ACEOF
15987 cat >>$CONFIG_STATUS <<\_ACEOF
15988 # If the template does not know about datarootdir, expand it.
15989 # FIXME: This hack should be removed a few years after 2.60.
15990 ac_datarootdir_hack=; ac_datarootdir_seen=
15992 case `sed -n '/datarootdir/ {
15993 p
15994 q
15995 }
15996 /@datadir@/p
15997 /@docdir@/p
15998 /@infodir@/p
15999 /@localedir@/p
16000 /@mandir@/p
16001 ' $ac_file_inputs` in
16002 *datarootdir*) ac_datarootdir_seen=yes;;
16003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16004 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16005 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16006 _ACEOF
16007 cat >>$CONFIG_STATUS <<_ACEOF
16008 ac_datarootdir_hack='
16009 s&@datadir@&$datadir&g
16010 s&@docdir@&$docdir&g
16011 s&@infodir@&$infodir&g
16012 s&@localedir@&$localedir&g
16013 s&@mandir@&$mandir&g
16014 s&\\\${datarootdir}&$datarootdir&g' ;;
16015 esac
16016 _ACEOF
16018 # Neutralize VPATH when `$srcdir' = `.'.
16019 # Shell code in configure.ac might set extrasub.
16020 # FIXME: do we really want to maintain this feature?
16021 cat >>$CONFIG_STATUS <<_ACEOF
16022 sed "$ac_vpsub
16023 $extrasub
16024 _ACEOF
16025 cat >>$CONFIG_STATUS <<\_ACEOF
16026 :t
16027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16028 s&@configure_input@&$configure_input&;t t
16029 s&@top_builddir@&$ac_top_builddir_sub&;t t
16030 s&@srcdir@&$ac_srcdir&;t t
16031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16032 s&@top_srcdir@&$ac_top_srcdir&;t t
16033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16034 s&@builddir@&$ac_builddir&;t t
16035 s&@abs_builddir@&$ac_abs_builddir&;t t
16036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16037 s&@INSTALL@&$ac_INSTALL&;t t
16038 $ac_datarootdir_hack
16039 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
16041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16042 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16044 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16045 which seems to be undefined. Please make sure it is defined." >&5
16046 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined. Please make sure it is defined." >&2;}
16049 rm -f "$tmp/stdin"
16050 case $ac_file in
16051 -) cat "$tmp/out"; rm -f "$tmp/out";;
16052 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16053 esac
16054 ;;
16055 :H)
16056 #
16057 # CONFIG_HEADER
16058 #
16059 _ACEOF
16061 # Transform confdefs.h into a sed script `conftest.defines', that
16062 # substitutes the proper values into config.h.in to produce config.h.
16063 rm -f conftest.defines conftest.tail
16064 # First, append a space to every undef/define line, to ease matching.
16065 echo 's/$/ /' >conftest.defines
16066 # Then, protect against being on the right side of a sed subst, or in
16067 # an unquoted here document, in config.status. If some macros were
16068 # called several times there might be several #defines for the same
16069 # symbol, which is useless. But do not sort them, since the last
16070 # AC_DEFINE must be honored.
16071 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16072 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16073 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16074 # PARAMS is the parameter list in the macro definition--in most cases, it's
16075 # just an empty string.
16076 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16077 ac_dB='\\)[ (].*,\\1define\\2'
16078 ac_dC=' '
16079 ac_dD=' ,'
16081 uniq confdefs.h |
16082 sed -n '
16083 t rset
16084 :rset
16085 s/^[ ]*#[ ]*define[ ][ ]*//
16086 t ok
16087 d
16088 :ok
16089 s/[\\&,]/\\&/g
16090 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16091 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16092 ' >>conftest.defines
16094 # Remove the space that was appended to ease matching.
16095 # Then replace #undef with comments. This is necessary, for
16096 # example, in the case of _POSIX_SOURCE, which is predefined and required
16097 # on some systems where configure will not decide to define it.
16098 # (The regexp can be short, since the line contains either #define or #undef.)
16099 echo 's/ $//
16100 s,^[ #]*u.*,/* & */,' >>conftest.defines
16102 # Break up conftest.defines:
16103 ac_max_sed_lines=50
16105 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16106 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16107 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16108 # et cetera.
16109 ac_in='$ac_file_inputs'
16110 ac_out='"$tmp/out1"'
16111 ac_nxt='"$tmp/out2"'
16113 while :
16114 do
16115 # Write a here document:
16116 cat >>$CONFIG_STATUS <<_ACEOF
16117 # First, check the format of the line:
16118 cat >"\$tmp/defines.sed" <<\\CEOF
16119 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16120 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16121 b
16122 :def
16123 _ACEOF
16124 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16125 echo 'CEOF
16126 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16127 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16128 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16129 grep . conftest.tail >/dev/null || break
16130 rm -f conftest.defines
16131 mv conftest.tail conftest.defines
16132 done
16133 rm -f conftest.defines conftest.tail
16135 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16136 cat >>$CONFIG_STATUS <<\_ACEOF
16137 if test x"$ac_file" != x-; then
16138 echo "/* $configure_input */" >"$tmp/config.h"
16139 cat "$ac_result" >>"$tmp/config.h"
16140 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16141 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16142 echo "$as_me: $ac_file is unchanged" >&6;}
16143 else
16144 rm -f $ac_file
16145 mv "$tmp/config.h" $ac_file
16146 fi
16147 else
16148 echo "/* $configure_input */"
16149 cat "$ac_result"
16150 fi
16151 rm -f "$tmp/out12"
16152 # Compute $ac_file's index in $config_headers.
16153 _am_stamp_count=1
16154 for _am_header in $config_headers :; do
16155 case $_am_header in
16156 $ac_file | $ac_file:* )
16157 break ;;
16158 * )
16159 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16160 esac
16161 done
16162 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16164 X$ac_file : 'X\(//\)[^/]' \| \
16165 X$ac_file : 'X\(//\)$' \| \
16166 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16167 echo X$ac_file |
16168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16169 s//\1/
16170 q
16171 }
16172 /^X\(\/\/\)[^/].*/{
16173 s//\1/
16174 q
16175 }
16176 /^X\(\/\/\)$/{
16177 s//\1/
16178 q
16179 }
16180 /^X\(\/\).*/{
16181 s//\1/
16182 q
16183 }
16184 s/.*/./; q'`/stamp-h$_am_stamp_count
16185 ;;
16187 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16188 echo "$as_me: executing $ac_file commands" >&6;}
16189 ;;
16190 esac
16193 case $ac_file$ac_mode in
16194 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16195 # Strip MF so we end up with the name of the file.
16196 mf=`echo "$mf" | sed -e 's/:.*$//'`
16197 # Check whether this is an Automake generated Makefile or not.
16198 # We used to match only the files named `Makefile.in', but
16199 # some people rename them; so instead we look at the file content.
16200 # Grep'ing the first line is not enough: some people post-process
16201 # each Makefile.in and add a new line on top of each file to say so.
16202 # So let's grep whole file.
16203 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16204 dirpart=`$as_dirname -- "$mf" ||
16205 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16206 X"$mf" : 'X\(//\)[^/]' \| \
16207 X"$mf" : 'X\(//\)$' \| \
16208 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16209 echo X"$mf" |
16210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16211 s//\1/
16212 q
16213 }
16214 /^X\(\/\/\)[^/].*/{
16215 s//\1/
16216 q
16217 }
16218 /^X\(\/\/\)$/{
16219 s//\1/
16220 q
16221 }
16222 /^X\(\/\).*/{
16223 s//\1/
16224 q
16225 }
16226 s/.*/./; q'`
16227 else
16228 continue
16229 fi
16230 # Extract the definition of DEPDIR, am__include, and am__quote
16231 # from the Makefile without running `make'.
16232 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16233 test -z "$DEPDIR" && continue
16234 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16235 test -z "am__include" && continue
16236 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16237 # When using ansi2knr, U may be empty or an underscore; expand it
16238 U=`sed -n 's/^U = //p' < "$mf"`
16239 # Find all dependency output files, they are included files with
16240 # $(DEPDIR) in their names. We invoke sed twice because it is the
16241 # simplest approach to changing $(DEPDIR) to its actual value in the
16242 # expansion.
16243 for file in `sed -n "
16244 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16246 # Make sure the directory exists.
16247 test -f "$dirpart/$file" && continue
16248 fdir=`$as_dirname -- "$file" ||
16249 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16250 X"$file" : 'X\(//\)[^/]' \| \
16251 X"$file" : 'X\(//\)$' \| \
16252 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16253 echo X"$file" |
16254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16255 s//\1/
16256 q
16257 }
16258 /^X\(\/\/\)[^/].*/{
16259 s//\1/
16260 q
16261 }
16262 /^X\(\/\/\)$/{
16263 s//\1/
16264 q
16265 }
16266 /^X\(\/\).*/{
16267 s//\1/
16268 q
16269 }
16270 s/.*/./; q'`
16271 { as_dir=$dirpart/$fdir
16272 case $as_dir in #(
16273 -*) as_dir=./$as_dir;;
16274 esac
16275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16276 as_dirs=
16277 while :; do
16278 case $as_dir in #(
16279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16280 *) as_qdir=$as_dir;;
16281 esac
16282 as_dirs="'$as_qdir' $as_dirs"
16283 as_dir=`$as_dirname -- "$as_dir" ||
16284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16285 X"$as_dir" : 'X\(//\)[^/]' \| \
16286 X"$as_dir" : 'X\(//\)$' \| \
16287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16288 echo X"$as_dir" |
16289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16290 s//\1/
16291 q
16292 }
16293 /^X\(\/\/\)[^/].*/{
16294 s//\1/
16295 q
16296 }
16297 /^X\(\/\/\)$/{
16298 s//\1/
16299 q
16300 }
16301 /^X\(\/\).*/{
16302 s//\1/
16303 q
16304 }
16305 s/.*/./; q'`
16306 test -d "$as_dir" && break
16307 done
16308 test -z "$as_dirs" || eval "mkdir $as_dirs"
16309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16311 { (exit 1); exit 1; }; }; }
16312 # echo "creating $dirpart/$file"
16313 echo '# dummy' > "$dirpart/$file"
16314 done
16315 done
16316 ;;
16317 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16318 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16319 esac ;;
16321 esac
16322 done # for ac_tag
16325 { (exit 0); exit 0; }
16326 _ACEOF
16327 chmod +x $CONFIG_STATUS
16328 ac_clean_files=$ac_clean_files_save
16331 # configure is writing to config.log, and then calls config.status.
16332 # config.status does its own redirection, appending to config.log.
16333 # Unfortunately, on DOS this fails, as config.log is still kept open
16334 # by configure, so config.status won't be able to write to it; its
16335 # output is simply discarded. So we exec the FD to /dev/null,
16336 # effectively closing config.log, so it can be properly (re)opened and
16337 # appended to by config.status. When coming back to configure, we
16338 # need to make the FD available again.
16339 if test "$no_create" != yes; then
16340 ac_cs_success=:
16341 ac_config_status_args=
16342 test "$silent" = yes &&
16343 ac_config_status_args="$ac_config_status_args --quiet"
16344 exec 5>/dev/null
16345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16346 exec 5>>config.log
16347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16348 # would make configure fail if this is the last instruction.
16349 $ac_cs_success || { (exit 1); exit 1; }
16350 fi
16352 { as_dir=test/sh4
16353 case $as_dir in #(
16354 -*) as_dir=./$as_dir;;
16355 esac
16356 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16357 as_dirs=
16358 while :; do
16359 case $as_dir in #(
16360 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16361 *) as_qdir=$as_dir;;
16362 esac
16363 as_dirs="'$as_qdir' $as_dirs"
16364 as_dir=`$as_dirname -- "$as_dir" ||
16365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16366 X"$as_dir" : 'X\(//\)[^/]' \| \
16367 X"$as_dir" : 'X\(//\)$' \| \
16368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16369 echo X"$as_dir" |
16370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16371 s//\1/
16372 q
16373 }
16374 /^X\(\/\/\)[^/].*/{
16375 s//\1/
16376 q
16377 }
16378 /^X\(\/\/\)$/{
16379 s//\1/
16380 q
16381 }
16382 /^X\(\/\).*/{
16383 s//\1/
16384 q
16385 }
16386 s/.*/./; q'`
16387 test -d "$as_dir" && break
16388 done
16389 test -z "$as_dirs" || eval "mkdir $as_dirs"
16390 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16391 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16392 { (exit 1); exit 1; }; }; }
16395 echo
16396 echo "Configuration complete"
16397 echo
16399 if test "x$HAVE_GTK" = x; then
16400 if test "x$HAVE_COCOA" = x; then
16401 echo " User interface: none"
16402 else
16403 echo " User interface: Cocoa"
16404 fi
16405 else
16406 echo " User interface: GTK"
16407 fi
16409 if test "x$SH4_TRANSLATOR" = "x"; then
16410 echo " SH4 translator: None (emulation core only)"
16411 else
16412 echo " SH4 translator: $SH4_TRANSLATOR"
16413 fi
16415 if test "x$VIDEO_DRIVERS" = "x"; then
16416 echo " Video drivers: none (no supported GL found)"
16417 else
16418 echo " Video drivers: $VIDEO_DRIVERS"
16419 fi
16421 if test "x$AUDIO_DRIVERS" = "x"; then
16422 echo " Audio drivers: none (no supported output devices found)"
16423 else
16424 echo " Audio drivers: $AUDIO_DRIVERS"
16425 fi
16427 if test "x$INPUT_DRIVERS" = "x"; then
16428 echo " Input drivers: none (no supported input devices found)"
16429 else
16430 echo " Input drivers: $INPUT_DRIVERS"
16431 fi
16433 if test "x$CDROM_DRIVER" = "x"; then
16434 echo " CD-ROM driver: none (no supported cd-rom devices found)"
16435 else
16436 echo " CD-ROM driver: $CDROM_DRIVER"
16437 fi
.