20080726
[gdash.git] / configure
blob3f143daba7a89eb6fa66d32e56451713651d7eec
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GDash 20080726.
5 # Report bugs to <cirix@fw.hu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='GDash'
576 PACKAGE_TARNAME='gdash'
577 PACKAGE_VERSION='20080726'
578 PACKAGE_STRING='GDash 20080726'
579 PACKAGE_BUGREPORT='cirix@fw.hu'
581 ac_unique_file="src/game.c"
582 gt_needs=
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 INSTALL_PROGRAM
657 INSTALL_SCRIPT
658 INSTALL_DATA
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 install_sh
668 STRIP
669 INSTALL_STRIP_PROGRAM
670 mkdir_p
672 SET_MAKE
673 am__leading_dot
674 AMTAR
675 am__tar
676 am__untar
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
694 GREP
695 EGREP
696 USE_NLS
697 MSGFMT
698 GMSGFMT
699 MSGFMT_015
700 GMSGFMT_015
701 XGETTEXT
702 XGETTEXT_015
703 MSGMERGE
704 build
705 build_cpu
706 build_vendor
707 build_os
708 host
709 host_cpu
710 host_vendor
711 host_os
712 INTL_MACOSX_LIBS
713 LIBICONV
714 LTLIBICONV
715 INTLLIBS
716 LIBINTL
717 LTLIBINTL
718 POSUB
719 LIBOBJS
720 PKG_CONFIG
721 GLIB_CFLAGS
722 GLIB_LIBS
723 GLIB_GENMARSHAL
724 GOBJECT_QUERY
725 GLIB_MKENUMS
726 GTK_TRUE
727 GTK_FALSE
728 GTK_CFLAGS
729 GTK_LIBS
730 SDL_TRUE
731 SDL_FALSE
732 SDL_CONFIG
733 SDL_CFLAGS
734 SDL_LIBS
735 SOUND_TRUE
736 SOUND_FALSE
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 PKG_CONFIG'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures GDash 20080726 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 System types:
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316 _ACEOF
1319 if test -n "$ac_init_help"; then
1320 case $ac_init_help in
1321 short | recursive ) echo "Configuration of GDash 20080726:";;
1322 esac
1323 cat <<\_ACEOF
1325 Optional Features:
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --disable-dependency-tracking speeds up one-time build
1329 --enable-dependency-tracking do not reject slow dependency extractors
1330 --disable-nls do not use Native Language Support
1331 --disable-rpath do not hardcode runtime library paths
1332 --disable-sound disables sound support
1333 --disable-glibtest do not try to compile and run a test GLIB program
1334 --disable-gtktest do not try to compile and run a test GTK+ program
1335 --disable-sdltest Do not try to compile and run a test SDL program
1337 Optional Packages:
1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1340 --with-gnu-ld assume the C compiler uses GNU ld default=no
1341 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1342 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1343 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1344 --without-libintl-prefix don't search for libintl in includedir and libdir
1345 --without-gtk disables gtk+ version (gdash)
1346 --without-sdl disables sdl version (sdash)
1347 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1348 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1358 CPP C preprocessor
1359 PKG_CONFIG path to pkg-config utility
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 Report bugs to <cirix@fw.hu>.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 GDash configure 20080726
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by GDash $as_me 20080726, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1442 $ $0 $@
1444 _ACEOF
1445 exec 5>>config.log
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469 _ASUNAME
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1480 } >&5
1482 cat >&5 <<_ACEOF
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1489 _ACEOF
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1503 for ac_arg
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1548 echo
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582 esac |
1583 sort
1585 echo
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1684 shift
1685 for ac_site_file
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1693 done
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1712 gt_needs="$gt_needs "
1713 # Check that the precious variables saved in the cache have kept the same
1714 # value.
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1722 set,)
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1726 ,set)
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1730 ,);;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1736 echo "$as_me: former value: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1738 echo "$as_me: current value: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1740 fi;;
1741 esac
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1744 case $ac_new_val in
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1747 esac
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751 esac
1753 done
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 am__api_version="1.9"
1795 ac_aux_dir=
1796 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1797 if test -f "$ac_dir/install-sh"; then
1798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/install-sh -c"
1800 break
1801 elif test -f "$ac_dir/install.sh"; then
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/install.sh -c"
1804 break
1805 elif test -f "$ac_dir/shtool"; then
1806 ac_aux_dir=$ac_dir
1807 ac_install_sh="$ac_aux_dir/shtool install -c"
1808 break
1810 done
1811 if test -z "$ac_aux_dir"; then
1812 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1813 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1814 { (exit 1); exit 1; }; }
1817 # These three variables are undocumented and unsupported,
1818 # and are intended to be withdrawn in a future Autoconf release.
1819 # They can cause serious problems if a builder's source tree is in a directory
1820 # whose full name contains unusual characters.
1821 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1822 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1823 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1826 # Find a good install program. We prefer a C program (faster),
1827 # so one script is as good as another. But avoid the broken or
1828 # incompatible versions:
1829 # SysV /etc/install, /usr/sbin/install
1830 # SunOS /usr/etc/install
1831 # IRIX /sbin/install
1832 # AIX /bin/install
1833 # AmigaOS /C/install, which installs bootblocks on floppy discs
1834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1837 # OS/2's system install, which has a completely different semantic
1838 # ./install, which can be erroneously created by make from ./install.sh.
1839 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1840 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1841 if test -z "$INSTALL"; then
1842 if test "${ac_cv_path_install+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 # Account for people who put trailing slashes in PATH elements.
1851 case $as_dir/ in
1852 ./ | .// | /cC/* | \
1853 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1854 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1855 /usr/ucb/* ) ;;
1857 # OSF1 and SCO ODT 3.0 have their own names for install.
1858 # Don't use installbsd from OSF since it installs stuff as root
1859 # by default.
1860 for ac_prog in ginstall scoinst install; do
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1863 if test $ac_prog = install &&
1864 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1865 # AIX install. It has an incompatible calling convention.
1867 elif test $ac_prog = install &&
1868 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1869 # program-specific install script used by HP pwplus--don't use.
1871 else
1872 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1873 break 3
1876 done
1877 done
1879 esac
1880 done
1881 IFS=$as_save_IFS
1885 if test "${ac_cv_path_install+set}" = set; then
1886 INSTALL=$ac_cv_path_install
1887 else
1888 # As a last resort, use the slow shell script. Don't cache a
1889 # value for INSTALL within a source directory, because that will
1890 # break other packages using the cache if that directory is
1891 # removed, or if the value is a relative name.
1892 INSTALL=$ac_install_sh
1895 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1896 echo "${ECHO_T}$INSTALL" >&6; }
1898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1899 # It thinks the first close brace ends the variable substitution.
1900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1906 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1907 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1908 # Just in case
1909 sleep 1
1910 echo timestamp > conftest.file
1911 # Do `set' in a subshell so we don't clobber the current shell's
1912 # arguments. Must try -L first in case configure is actually a
1913 # symlink; some systems play weird games with the mod time of symlinks
1914 # (eg FreeBSD returns the mod time of the symlink's containing
1915 # directory).
1916 if (
1917 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1918 if test "$*" = "X"; then
1919 # -L didn't work.
1920 set X `ls -t $srcdir/configure conftest.file`
1922 rm -f conftest.file
1923 if test "$*" != "X $srcdir/configure conftest.file" \
1924 && test "$*" != "X conftest.file $srcdir/configure"; then
1926 # If neither matched, then we have a broken ls. This can happen
1927 # if, for instance, CONFIG_SHELL is bash and it inherits a
1928 # broken ls alias from the environment. This has actually
1929 # happened. Such a system could not be considered "sane".
1930 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1931 alias in your environment" >&5
1932 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1933 alias in your environment" >&2;}
1934 { (exit 1); exit 1; }; }
1937 test "$2" = conftest.file
1939 then
1940 # Ok.
1942 else
1943 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1944 Check your system clock" >&5
1945 echo "$as_me: error: newly created file is older than distributed files!
1946 Check your system clock" >&2;}
1947 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6; }
1951 test "$program_prefix" != NONE &&
1952 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1953 # Use a double $ so make ignores it.
1954 test "$program_suffix" != NONE &&
1955 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1956 # Double any \ or $. echo might interpret backslashes.
1957 # By default was `s,x,x', remove it if useless.
1958 cat <<\_ACEOF >conftest.sed
1959 s/[\\$]/&&/g;s/;s,x,x,$//
1960 _ACEOF
1961 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1962 rm -f conftest.sed
1964 # expand $ac_aux_dir to an absolute path
1965 am_aux_dir=`cd $ac_aux_dir && pwd`
1967 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1968 # Use eval to expand $SHELL
1969 if eval "$MISSING --run true"; then
1970 am_missing_run="$MISSING --run "
1971 else
1972 am_missing_run=
1973 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1974 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1977 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1978 # We used to keeping the `.' as first argument, in order to
1979 # allow $(mkdir_p) to be used without argument. As in
1980 # $(mkdir_p) $(somedir)
1981 # where $(somedir) is conditionally defined. However this is wrong
1982 # for two reasons:
1983 # 1. if the package is installed by a user who cannot write `.'
1984 # make install will fail,
1985 # 2. the above comment should most certainly read
1986 # $(mkdir_p) $(DESTDIR)$(somedir)
1987 # so it does not work when $(somedir) is undefined and
1988 # $(DESTDIR) is not.
1989 # To support the latter case, we have to write
1990 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1991 # so the `.' trick is pointless.
1992 mkdir_p='mkdir -p --'
1993 else
1994 # On NextStep and OpenStep, the `mkdir' command does not
1995 # recognize any option. It will interpret all options as
1996 # directories to create, and then abort because `.' already
1997 # exists.
1998 for d in ./-p ./--version;
2000 test -d $d && rmdir $d
2001 done
2002 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2003 if test -f "$ac_aux_dir/mkinstalldirs"; then
2004 mkdir_p='$(mkinstalldirs)'
2005 else
2006 mkdir_p='$(install_sh) -d'
2010 for ac_prog in gawk mawk nawk awk
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_AWK+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 if test -n "$AWK"; then
2020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_AWK="$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2033 done
2034 done
2035 IFS=$as_save_IFS
2039 AWK=$ac_cv_prog_AWK
2040 if test -n "$AWK"; then
2041 { echo "$as_me:$LINENO: result: $AWK" >&5
2042 echo "${ECHO_T}$AWK" >&6; }
2043 else
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2049 test -n "$AWK" && break
2050 done
2052 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2053 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2054 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2055 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 cat >conftest.make <<\_ACEOF
2059 SHELL = /bin/sh
2060 all:
2061 @echo '@@@%%%=$(MAKE)=@@@%%%'
2062 _ACEOF
2063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2064 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2065 *@@@%%%=?*=@@@%%%*)
2066 eval ac_cv_prog_make_${ac_make}_set=yes;;
2068 eval ac_cv_prog_make_${ac_make}_set=no;;
2069 esac
2070 rm -f conftest.make
2072 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2073 { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2075 SET_MAKE=
2076 else
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 SET_MAKE="MAKE=${MAKE-make}"
2082 rm -rf .tst 2>/dev/null
2083 mkdir .tst 2>/dev/null
2084 if test -d .tst; then
2085 am__leading_dot=.
2086 else
2087 am__leading_dot=_
2089 rmdir .tst 2>/dev/null
2091 # test to see if srcdir already configured
2092 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2093 test -f $srcdir/config.status; then
2094 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2095 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2096 { (exit 1); exit 1; }; }
2099 # test whether we have cygpath
2100 if test -z "$CYGPATH_W"; then
2101 if (cygpath --version) >/dev/null 2>/dev/null; then
2102 CYGPATH_W='cygpath -w'
2103 else
2104 CYGPATH_W=echo
2109 # Define the identity of the package.
2110 PACKAGE='gdash'
2111 VERSION='20080726'
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE "$PACKAGE"
2116 _ACEOF
2119 cat >>confdefs.h <<_ACEOF
2120 #define VERSION "$VERSION"
2121 _ACEOF
2123 # Some tools Automake needs.
2125 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2128 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2131 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2134 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2137 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2139 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2141 # Installed binaries are usually stripped using `strip' when the user
2142 # run `make install-strip'. However `strip' might not be the right
2143 # tool to use in cross-compilation environments, therefore Automake
2144 # will honor the `STRIP' environment variable to overrule this program.
2145 if test "$cross_compiling" != no; then
2146 if test -n "$ac_tool_prefix"; then
2147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2148 set dummy ${ac_tool_prefix}strip; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_STRIP+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$STRIP"; then
2155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2168 done
2169 done
2170 IFS=$as_save_IFS
2174 STRIP=$ac_cv_prog_STRIP
2175 if test -n "$STRIP"; then
2176 { echo "$as_me:$LINENO: result: $STRIP" >&5
2177 echo "${ECHO_T}$STRIP" >&6; }
2178 else
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2185 if test -z "$ac_cv_prog_STRIP"; then
2186 ac_ct_STRIP=$STRIP
2187 # Extract the first word of "strip", so it can be a program name with args.
2188 set dummy strip; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 if test -n "$ac_ct_STRIP"; then
2195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_ac_ct_STRIP="strip"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 break 2
2208 done
2209 done
2210 IFS=$as_save_IFS
2214 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2215 if test -n "$ac_ct_STRIP"; then
2216 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2217 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2218 else
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2223 if test "x$ac_ct_STRIP" = x; then
2224 STRIP=":"
2225 else
2226 case $cross_compiling:$ac_tool_warned in
2227 yes:)
2228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2229 whose name does not start with the host triplet. If you think this
2230 configuration is useful to you, please write to autoconf@gnu.org." >&5
2231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2232 whose name does not start with the host triplet. If you think this
2233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2234 ac_tool_warned=yes ;;
2235 esac
2236 STRIP=$ac_ct_STRIP
2238 else
2239 STRIP="$ac_cv_prog_STRIP"
2243 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2245 # We need awk for the "check" target. The system "awk" is bad on
2246 # some platforms.
2247 # Always define AMTAR for backward compatibility.
2249 AMTAR=${AMTAR-"${am_missing_run}tar"}
2251 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2257 ac_config_headers="$ac_config_headers config.h"
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2287 done
2288 done
2289 IFS=$as_save_IFS
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295 { echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6; }
2297 else
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2304 if test -z "$ac_cv_prog_CC"; then
2305 ac_ct_CC=$CC
2306 # Extract the first word of "gcc", so it can be a program name with args.
2307 set dummy gcc; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$ac_ct_CC"; then
2314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_CC="gcc"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2327 done
2328 done
2329 IFS=$as_save_IFS
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6; }
2337 else
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2342 if test "x$ac_ct_CC" = x; then
2343 CC=""
2344 else
2345 case $cross_compiling:$ac_tool_warned in
2346 yes:)
2347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2348 whose name does not start with the host triplet. If you think this
2349 configuration is useful to you, please write to autoconf@gnu.org." >&5
2350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2353 ac_tool_warned=yes ;;
2354 esac
2355 CC=$ac_ct_CC
2357 else
2358 CC="$ac_cv_prog_CC"
2361 if test -z "$CC"; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}cc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC="${ac_tool_prefix}cc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2386 IFS=$as_save_IFS
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2402 if test -z "$CC"; then
2403 # Extract the first word of "cc", so it can be a program name with args.
2404 set dummy cc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413 ac_prog_rejected=no
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2422 ac_prog_rejected=yes
2423 continue
2425 ac_cv_prog_CC="cc"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2429 done
2430 done
2431 IFS=$as_save_IFS
2433 if test $ac_prog_rejected = yes; then
2434 # We found a bogon in the path, so make sure we never use it.
2435 set dummy $ac_cv_prog_CC
2436 shift
2437 if test $# != 0; then
2438 # We chose a different compiler from the bogus one.
2439 # However, it has the same basename, so the bogon will be chosen
2440 # first if we set CC to just the basename; use the full file name.
2441 shift
2442 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2451 else
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 for ac_prog in cl.exe
2462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2483 done
2484 done
2485 IFS=$as_save_IFS
2489 CC=$ac_cv_prog_CC
2490 if test -n "$CC"; then
2491 { echo "$as_me:$LINENO: result: $CC" >&5
2492 echo "${ECHO_T}$CC" >&6; }
2493 else
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2499 test -n "$CC" && break
2500 done
2502 if test -z "$CC"; then
2503 ac_ct_CC=$CC
2504 for ac_prog in cl.exe
2506 # Extract the first word of "$ac_prog", so it can be a program name with args.
2507 set dummy $ac_prog; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 if test -n "$ac_ct_CC"; then
2514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_ac_ct_CC="$ac_prog"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2527 done
2528 done
2529 IFS=$as_save_IFS
2533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2534 if test -n "$ac_ct_CC"; then
2535 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2536 echo "${ECHO_T}$ac_ct_CC" >&6; }
2537 else
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2543 test -n "$ac_ct_CC" && break
2544 done
2546 if test "x$ac_ct_CC" = x; then
2547 CC=""
2548 else
2549 case $cross_compiling:$ac_tool_warned in
2550 yes:)
2551 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2552 whose name does not start with the host triplet. If you think this
2553 configuration is useful to you, please write to autoconf@gnu.org." >&5
2554 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559 CC=$ac_ct_CC
2566 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2572 # Provide some information about the compiler.
2573 echo "$as_me:$LINENO: checking for C compiler version" >&5
2574 ac_compiler=`set X $ac_compile; echo $2`
2575 { (ac_try="$ac_compiler --version >&5"
2576 case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compiler --version >&5") 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }
2585 { (ac_try="$ac_compiler -v >&5"
2586 case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compiler -v >&5") 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (ac_try="$ac_compiler -V >&5"
2596 case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_compiler -V >&5") 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2606 cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h. */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2614 main ()
2618 return 0;
2620 _ACEOF
2621 ac_clean_files_save=$ac_clean_files
2622 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2623 # Try to create an executable without -o first, disregard a.out.
2624 # It will help us diagnose broken compilers, and finding out an intuition
2625 # of exeext.
2626 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2627 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2628 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2630 # List of possible output files, starting from the most likely.
2631 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2632 # only as a last resort. b.out is created by i960 compilers.
2633 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2635 # The IRIX 6 linker writes into existing files which may not be
2636 # executable, retaining their permissions. Remove them first so a
2637 # subsequent execution test works.
2638 ac_rmfiles=
2639 for ac_file in $ac_files
2641 case $ac_file in
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2643 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2644 esac
2645 done
2646 rm -f $ac_rmfiles
2648 if { (ac_try="$ac_link_default"
2649 case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_link_default") 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; then
2658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2661 # so that the user can short-circuit this test for compilers unknown to
2662 # Autoconf.
2663 for ac_file in $ac_files ''
2665 test -f "$ac_file" || continue
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2669 [ab].out )
2670 # We found the default executable, but exeext='' is most
2671 # certainly right.
2672 break;;
2673 *.* )
2674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2675 then :; else
2676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678 # We set ac_cv_exeext here because the later test for it is not
2679 # safe: cross compilers may not add the suffix if given an `-o'
2680 # argument, so we may need to know it at that point already.
2681 # Even if this section looks crufty: it has the advantage of
2682 # actually working.
2683 break;;
2685 break;;
2686 esac
2687 done
2688 test "$ac_cv_exeext" = no && ac_cv_exeext=
2690 else
2691 ac_file=''
2694 { echo "$as_me:$LINENO: result: $ac_file" >&5
2695 echo "${ECHO_T}$ac_file" >&6; }
2696 if test -z "$ac_file"; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: C compiler cannot create executables
2703 See \`config.log' for more details." >&2;}
2704 { (exit 77); exit 77; }; }
2707 ac_exeext=$ac_cv_exeext
2709 # Check that the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2712 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2713 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2714 # If not cross compiling, check that we can run a simple program.
2715 if test "$cross_compiling" != yes; then
2716 if { ac_try='./$ac_file'
2717 { (case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 cross_compiling=no
2727 else
2728 if test "$cross_compiling" = maybe; then
2729 cross_compiling=yes
2730 else
2731 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot run C compiled programs.
2735 If you meant to cross compile, use \`--host'.
2736 See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2741 { echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6; }
2744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2745 ac_clean_files=$ac_clean_files_save
2746 # Check that the compiler produces executables we can run. If not, either
2747 # the compiler is broken, or we cross compile.
2748 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2750 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2751 echo "${ECHO_T}$cross_compiling" >&6; }
2753 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2755 if { (ac_try="$ac_link"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_link") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; then
2765 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2766 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2767 # work properly (i.e., refer to `conftest.exe'), while it won't with
2768 # `rm'.
2769 for ac_file in conftest.exe conftest conftest.*; do
2770 test -f "$ac_file" || continue
2771 case $ac_file in
2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 break;;
2775 * ) break;;
2776 esac
2777 done
2778 else
2779 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2782 See \`config.log' for more details." >&2;}
2783 { (exit 1); exit 1; }; }
2786 rm -f conftest$ac_cv_exeext
2787 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2788 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2790 rm -f conftest.$ac_ext
2791 EXEEXT=$ac_cv_exeext
2792 ac_exeext=$EXEEXT
2793 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2795 if test "${ac_cv_objext+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2806 main ()
2810 return 0;
2812 _ACEOF
2813 rm -f conftest.o conftest.obj
2814 if { (ac_try="$ac_compile"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; then
2824 for ac_file in conftest.o conftest.obj conftest.*; do
2825 test -f "$ac_file" || continue;
2826 case $ac_file in
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2829 break;;
2830 esac
2831 done
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2845 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2846 echo "${ECHO_T}$ac_cv_objext" >&6; }
2847 OBJEXT=$ac_cv_objext
2848 ac_objext=$OBJEXT
2849 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2850 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2851 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 main ()
2864 #ifndef __GNUC__
2865 choke me
2866 #endif
2869 return 0;
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compile") 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && {
2886 test -z "$ac_c_werror_flag" ||
2887 test ! -s conftest.err
2888 } && test -s conftest.$ac_objext; then
2889 ac_compiler_gnu=yes
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 ac_compiler_gnu=no
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2901 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2903 GCC=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CFLAGS=${CFLAGS+set}
2905 ac_save_CFLAGS=$CFLAGS
2906 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2907 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_cc_g+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 ac_save_c_werror_flag=$ac_c_werror_flag
2912 ac_c_werror_flag=yes
2913 ac_cv_prog_cc_g=no
2914 CFLAGS="-g"
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2923 main ()
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 ac_cv_prog_cc_g=yes
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 CFLAGS=""
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2961 main ()
2965 return 0;
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && {
2982 test -z "$ac_c_werror_flag" ||
2983 test ! -s conftest.err
2984 } && test -s conftest.$ac_objext; then
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_c_werror_flag=$ac_save_c_werror_flag
2991 CFLAGS="-g"
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h. */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3000 main ()
3004 return 0;
3006 _ACEOF
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } && {
3021 test -z "$ac_c_werror_flag" ||
3022 test ! -s conftest.err
3023 } && test -s conftest.$ac_objext; then
3024 ac_cv_prog_cc_g=yes
3025 else
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 ac_c_werror_flag=$ac_save_c_werror_flag
3041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3043 if test "$ac_test_CFLAGS" = set; then
3044 CFLAGS=$ac_save_CFLAGS
3045 elif test $ac_cv_prog_cc_g = yes; then
3046 if test "$GCC" = yes; then
3047 CFLAGS="-g -O2"
3048 else
3049 CFLAGS="-g"
3051 else
3052 if test "$GCC" = yes; then
3053 CFLAGS="-O2"
3054 else
3055 CFLAGS=
3058 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3059 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_cc_c89+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 ac_cv_prog_cc_c89=no
3064 ac_save_CC=$CC
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <stdarg.h>
3072 #include <stdio.h>
3073 #include <sys/types.h>
3074 #include <sys/stat.h>
3075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3076 struct buf { int x; };
3077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3078 static char *e (p, i)
3079 char **p;
3080 int i;
3082 return p[i];
3084 static char *f (char * (*g) (char **, int), char **p, ...)
3086 char *s;
3087 va_list v;
3088 va_start (v,p);
3089 s = g (p, va_arg (v,int));
3090 va_end (v);
3091 return s;
3094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3095 function prototypes and stuff, but not '\xHH' hex character constants.
3096 These don't provoke an error unfortunately, instead are silently treated
3097 as 'x'. The following induces an error, until -std is added to get
3098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3099 array size at least. It's necessary to write '\x00'==0 to get something
3100 that's true only with -std. */
3101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3104 inside strings and character constants. */
3105 #define FOO(x) 'x'
3106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3108 int test (int i, double x);
3109 struct s1 {int (*f) (int a);};
3110 struct s2 {int (*f) (double a);};
3111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3112 int argc;
3113 char **argv;
3115 main ()
3117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3119 return 0;
3121 _ACEOF
3122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3125 CC="$ac_save_CC $ac_arg"
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cc_c89=$ac_arg
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f core conftest.err conftest.$ac_objext
3152 test "x$ac_cv_prog_cc_c89" != "xno" && break
3153 done
3154 rm -f conftest.$ac_ext
3155 CC=$ac_save_CC
3158 # AC_CACHE_VAL
3159 case "x$ac_cv_prog_cc_c89" in
3161 { echo "$as_me:$LINENO: result: none needed" >&5
3162 echo "${ECHO_T}none needed" >&6; } ;;
3163 xno)
3164 { echo "$as_me:$LINENO: result: unsupported" >&5
3165 echo "${ECHO_T}unsupported" >&6; } ;;
3167 CC="$CC $ac_cv_prog_cc_c89"
3168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3169 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3170 esac
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 DEPDIR="${am__leading_dot}deps"
3180 ac_config_commands="$ac_config_commands depfiles"
3183 am_make=${MAKE-make}
3184 cat > confinc << 'END'
3185 am__doit:
3186 @echo done
3187 .PHONY: am__doit
3189 # If we don't find an include directive, just comment out the code.
3190 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3191 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3192 am__include="#"
3193 am__quote=
3194 _am_result=none
3195 # First try GNU make style include.
3196 echo "include confinc" > confmf
3197 # We grep out `Entering directory' and `Leaving directory'
3198 # messages which can occur if `w' ends up in MAKEFLAGS.
3199 # In particular we don't look at `^make:' because GNU make might
3200 # be invoked under some other name (usually "gmake"), in which
3201 # case it prints its new name instead of `make'.
3202 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3203 am__include=include
3204 am__quote=
3205 _am_result=GNU
3207 # Now try BSD make style include.
3208 if test "$am__include" = "#"; then
3209 echo '.include "confinc"' > confmf
3210 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3211 am__include=.include
3212 am__quote="\""
3213 _am_result=BSD
3218 { echo "$as_me:$LINENO: result: $_am_result" >&5
3219 echo "${ECHO_T}$_am_result" >&6; }
3220 rm -f confinc confmf
3222 # Check whether --enable-dependency-tracking was given.
3223 if test "${enable_dependency_tracking+set}" = set; then
3224 enableval=$enable_dependency_tracking;
3227 if test "x$enable_dependency_tracking" != xno; then
3228 am_depcomp="$ac_aux_dir/depcomp"
3229 AMDEPBACKSLASH='\'
3233 if test "x$enable_dependency_tracking" != xno; then
3234 AMDEP_TRUE=
3235 AMDEP_FALSE='#'
3236 else
3237 AMDEP_TRUE='#'
3238 AMDEP_FALSE=
3244 depcc="$CC" am_compiler_list=
3246 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3247 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3248 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3252 # We make a subdir and do the tests there. Otherwise we can end up
3253 # making bogus files that we don't know about and never remove. For
3254 # instance it was reported that on HP-UX the gcc test will end up
3255 # making a dummy file named `D' -- because `-MD' means `put the output
3256 # in D'.
3257 mkdir conftest.dir
3258 # Copy depcomp to subdir because otherwise we won't find it if we're
3259 # using a relative directory.
3260 cp "$am_depcomp" conftest.dir
3261 cd conftest.dir
3262 # We will build objects and dependencies in a subdirectory because
3263 # it helps to detect inapplicable dependency modes. For instance
3264 # both Tru64's cc and ICC support -MD to output dependencies as a
3265 # side effect of compilation, but ICC will put the dependencies in
3266 # the current directory while Tru64 will put them in the object
3267 # directory.
3268 mkdir sub
3270 am_cv_CC_dependencies_compiler_type=none
3271 if test "$am_compiler_list" = ""; then
3272 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3274 for depmode in $am_compiler_list; do
3275 # Setup a source with many dependencies, because some compilers
3276 # like to wrap large dependency lists on column 80 (with \), and
3277 # we should not choose a depcomp mode which is confused by this.
3279 # We need to recreate these files for each test, as the compiler may
3280 # overwrite some of them when testing with obscure command lines.
3281 # This happens at least with the AIX C compiler.
3282 : > sub/conftest.c
3283 for i in 1 2 3 4 5 6; do
3284 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3285 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3286 # Solaris 8's {/usr,}/bin/sh.
3287 touch sub/conftst$i.h
3288 done
3289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3291 case $depmode in
3292 nosideeffect)
3293 # after this tag, mechanisms are not by side-effect, so they'll
3294 # only be used when explicitly requested
3295 if test "x$enable_dependency_tracking" = xyes; then
3296 continue
3297 else
3298 break
3301 none) break ;;
3302 esac
3303 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3304 # mode. It turns out that the SunPro C++ compiler does not properly
3305 # handle `-M -o', and we need to detect this.
3306 if depmode=$depmode \
3307 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3309 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3310 >/dev/null 2>conftest.err &&
3311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3312 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3314 # icc doesn't choke on unknown options, it will just issue warnings
3315 # or remarks (even with -Werror). So we grep stderr for any message
3316 # that says an option was ignored or not supported.
3317 # When given -MP, icc 7.0 and 7.1 complain thusly:
3318 # icc: Command line warning: ignoring option '-M'; no argument required
3319 # The diagnosis changed in icc 8.0:
3320 # icc: Command line remark: option '-MP' not supported
3321 if (grep 'ignoring option' conftest.err ||
3322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3323 am_cv_CC_dependencies_compiler_type=$depmode
3324 break
3327 done
3329 cd ..
3330 rm -rf conftest.dir
3331 else
3332 am_cv_CC_dependencies_compiler_type=none
3336 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3337 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3338 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3343 test "x$enable_dependency_tracking" != xno \
3344 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3345 am__fastdepCC_TRUE=
3346 am__fastdepCC_FALSE='#'
3347 else
3348 am__fastdepCC_TRUE='#'
3349 am__fastdepCC_FALSE=
3353 if test "x$CC" != xcc; then
3354 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3355 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3356 else
3357 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3358 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3360 set dummy $CC; ac_cc=`echo $2 |
3361 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3362 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3373 main ()
3377 return 0;
3379 _ACEOF
3380 # Make sure it works both with $CC and with simple cc.
3381 # We do the test twice because some compilers refuse to overwrite an
3382 # existing .o file with -o, though they will create one.
3383 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3384 rm -f conftest2.*
3385 if { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_try") 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); };
3403 then
3404 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3405 if test "x$CC" != xcc; then
3406 # Test first that cc exists at all.
3407 if { ac_try='cc -c conftest.$ac_ext >&5'
3408 { (case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_try") 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3418 rm -f conftest2.*
3419 if { (case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_try") 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_try") 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); };
3437 then
3438 # cc works too.
3440 else
3441 # cc exists but doesn't like -o.
3442 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3446 else
3447 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3449 rm -f core conftest*
3452 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3453 { echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6; }
3455 else
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3459 cat >>confdefs.h <<\_ACEOF
3460 #define NO_MINUS_C_MINUS_O 1
3461 _ACEOF
3465 # FIXME: we rely on the cache variable name because
3466 # there is no other way.
3467 set dummy $CC
3468 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3469 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3470 # Losing compiler, so override with the script.
3471 # FIXME: It is wrong to rewrite CC.
3472 # But if we don't then we get into trouble of one sort or another.
3473 # A longer-term fix would be to have automake use am__CC in this case,
3474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3475 CC="$am_aux_dir/compile $CC"
3480 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3481 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3482 if test "${ac_cv_search_strerror+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485 ac_func_search_save_LIBS=$LIBS
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3493 /* Override any GCC internal prototype to avoid an error.
3494 Use char because int might match the return type of a GCC
3495 builtin and then its argument prototype would still apply. */
3496 #ifdef __cplusplus
3497 extern "C"
3498 #endif
3499 char strerror ();
3501 main ()
3503 return strerror ();
3505 return 0;
3507 _ACEOF
3508 for ac_lib in '' cposix; do
3509 if test -z "$ac_lib"; then
3510 ac_res="none required"
3511 else
3512 ac_res=-l$ac_lib
3513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (ac_try="$ac_link"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_link") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest$ac_exeext &&
3532 $as_test_x conftest$ac_exeext; then
3533 ac_cv_search_strerror=$ac_res
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3542 conftest$ac_exeext
3543 if test "${ac_cv_search_strerror+set}" = set; then
3544 break
3546 done
3547 if test "${ac_cv_search_strerror+set}" = set; then
3549 else
3550 ac_cv_search_strerror=no
3552 rm conftest.$ac_ext
3553 LIBS=$ac_func_search_save_LIBS
3555 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3556 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3557 ac_res=$ac_cv_search_strerror
3558 if test "$ac_res" != no; then
3559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3570 # On Suns, sometimes $CPP names a directory.
3571 if test -n "$CPP" && test -d "$CPP"; then
3572 CPP=
3574 if test -z "$CPP"; then
3575 if test "${ac_cv_prog_CPP+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 # Double quotes because CPP needs to be expanded
3579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3581 ac_preproc_ok=false
3582 for ac_c_preproc_warn_flag in '' yes
3584 # Use a header file that comes with gcc, so configuring glibc
3585 # with a fresh cross-compiler works.
3586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3587 # <limits.h> exists even on freestanding compilers.
3588 # On the NeXT, cc -E runs the code through the compiler's parser,
3589 # not just through cpp. "Syntax error" is here to catch this case.
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 #ifdef __STDC__
3597 # include <limits.h>
3598 #else
3599 # include <assert.h>
3600 #endif
3601 Syntax error
3602 _ACEOF
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null && {
3616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 }; then
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Broken: fails on valid input.
3625 continue
3628 rm -f conftest.err conftest.$ac_ext
3630 # OK, works on sane cases. Now check whether nonexistent headers
3631 # can be detected and how.
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <ac_nonexistent.h>
3639 _ACEOF
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null && {
3653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 }; then
3656 # Broken: success on invalid input.
3657 continue
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 # Passes both tests.
3663 ac_preproc_ok=:
3664 break
3667 rm -f conftest.err conftest.$ac_ext
3669 done
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.$ac_ext
3672 if $ac_preproc_ok; then
3673 break
3676 done
3677 ac_cv_prog_CPP=$CPP
3680 CPP=$ac_cv_prog_CPP
3681 else
3682 ac_cv_prog_CPP=$CPP
3684 { echo "$as_me:$LINENO: result: $CPP" >&5
3685 echo "${ECHO_T}$CPP" >&6; }
3686 ac_preproc_ok=false
3687 for ac_c_preproc_warn_flag in '' yes
3689 # Use a header file that comes with gcc, so configuring glibc
3690 # with a fresh cross-compiler works.
3691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3692 # <limits.h> exists even on freestanding compilers.
3693 # On the NeXT, cc -E runs the code through the compiler's parser,
3694 # not just through cpp. "Syntax error" is here to catch this case.
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 #ifdef __STDC__
3702 # include <limits.h>
3703 #else
3704 # include <assert.h>
3705 #endif
3706 Syntax error
3707 _ACEOF
3708 if { (ac_try="$ac_cpp conftest.$ac_ext"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null && {
3721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 }; then
3725 else
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 # Broken: fails on valid input.
3730 continue
3733 rm -f conftest.err conftest.$ac_ext
3735 # OK, works on sane cases. Now check whether nonexistent headers
3736 # can be detected and how.
3737 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h. */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 #include <ac_nonexistent.h>
3744 _ACEOF
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null && {
3758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3759 test ! -s conftest.err
3760 }; then
3761 # Broken: success on invalid input.
3762 continue
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 # Passes both tests.
3768 ac_preproc_ok=:
3769 break
3772 rm -f conftest.err conftest.$ac_ext
3774 done
3775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3776 rm -f conftest.err conftest.$ac_ext
3777 if $ac_preproc_ok; then
3779 else
3780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3781 See \`config.log' for more details." >&5
3782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3783 See \`config.log' for more details." >&2;}
3784 { (exit 1); exit 1; }; }
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3795 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3796 if test "${ac_cv_path_GREP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 # Extract the first word of "grep ggrep" to use in msg output
3800 if test -z "$GREP"; then
3801 set dummy grep ggrep; ac_prog_name=$2
3802 if test "${ac_cv_path_GREP+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 ac_path_GREP_found=false
3806 # Loop through the user's path and test for each of PROGNAME-LIST
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_prog in grep ggrep; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3815 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3816 # Check for GNU ac_path_GREP and select it if it is found.
3817 # Check for GNU $ac_path_GREP
3818 case `"$ac_path_GREP" --version 2>&1` in
3819 *GNU*)
3820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3822 ac_count=0
3823 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3824 while :
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
3829 echo 'GREP' >> "conftest.nl"
3830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832 ac_count=`expr $ac_count + 1`
3833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_GREP="$ac_path_GREP"
3836 ac_path_GREP_max=$ac_count
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3840 done
3841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842 esac
3845 $ac_path_GREP_found && break 3
3846 done
3847 done
3849 done
3850 IFS=$as_save_IFS
3855 GREP="$ac_cv_path_GREP"
3856 if test -z "$GREP"; then
3857 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3858 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3859 { (exit 1); exit 1; }; }
3862 else
3863 ac_cv_path_GREP=$GREP
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3870 GREP="$ac_cv_path_GREP"
3873 { echo "$as_me:$LINENO: checking for egrep" >&5
3874 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_EGREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3879 then ac_cv_path_EGREP="$GREP -E"
3880 else
3881 # Extract the first word of "egrep" to use in msg output
3882 if test -z "$EGREP"; then
3883 set dummy egrep; ac_prog_name=$2
3884 if test "${ac_cv_path_EGREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 ac_path_EGREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_prog in egrep; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3898 # Check for GNU ac_path_EGREP and select it if it is found.
3899 # Check for GNU $ac_path_EGREP
3900 case `"$ac_path_EGREP" --version 2>&1` in
3901 *GNU*)
3902 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3904 ac_count=0
3905 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3906 while :
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 echo 'EGREP' >> "conftest.nl"
3912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914 ac_count=`expr $ac_count + 1`
3915 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_EGREP="$ac_path_EGREP"
3918 ac_path_EGREP_max=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3922 done
3923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 esac
3927 $ac_path_EGREP_found && break 3
3928 done
3929 done
3931 done
3932 IFS=$as_save_IFS
3937 EGREP="$ac_cv_path_EGREP"
3938 if test -z "$EGREP"; then
3939 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941 { (exit 1); exit 1; }; }
3944 else
3945 ac_cv_path_EGREP=$EGREP
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3953 EGREP="$ac_cv_path_EGREP"
3956 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3958 if test "${ac_cv_header_stdc+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #include <stdlib.h>
3968 #include <stdarg.h>
3969 #include <string.h>
3970 #include <float.h>
3973 main ()
3977 return 0;
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 ac_cv_header_stdc=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_header_stdc=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 if test $ac_cv_header_stdc = yes; then
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #include <string.h>
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "memchr" >/dev/null 2>&1; then
4021 else
4022 ac_cv_header_stdc=no
4024 rm -f conftest*
4028 if test $ac_cv_header_stdc = yes; then
4029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #include <stdlib.h>
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then
4042 else
4043 ac_cv_header_stdc=no
4045 rm -f conftest*
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then
4053 else
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 #include <ctype.h>
4061 #include <stdlib.h>
4062 #if ((' ' & 0x0FF) == 0x020)
4063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4065 #else
4066 # define ISLOWER(c) \
4067 (('a' <= (c) && (c) <= 'i') \
4068 || ('j' <= (c) && (c) <= 'r') \
4069 || ('s' <= (c) && (c) <= 'z'))
4070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4071 #endif
4073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4075 main ()
4077 int i;
4078 for (i = 0; i < 256; i++)
4079 if (XOR (islower (i), ISLOWER (i))
4080 || toupper (i) != TOUPPER (i))
4081 return 2;
4082 return 0;
4084 _ACEOF
4085 rm -f conftest$ac_exeext
4086 if { (ac_try="$ac_link"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_link") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4106 else
4107 echo "$as_me: program exited with status $ac_status" >&5
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 ( exit $ac_status )
4112 ac_cv_header_stdc=no
4114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4122 if test $ac_cv_header_stdc = yes; then
4124 cat >>confdefs.h <<\_ACEOF
4125 #define STDC_HEADERS 1
4126 _ACEOF
4131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4133 if test "${ac_cv_c_const+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4144 main ()
4146 /* FIXME: Include the comments suggested by Paul. */
4147 #ifndef __cplusplus
4148 /* Ultrix mips cc rejects this. */
4149 typedef int charset[2];
4150 const charset cs;
4151 /* SunOS 4.1.1 cc rejects this. */
4152 char const *const *pcpcc;
4153 char **ppc;
4154 /* NEC SVR4.0.2 mips cc rejects this. */
4155 struct point {int x, y;};
4156 static struct point const zero = {0,0};
4157 /* AIX XL C 1.02.0.0 rejects this.
4158 It does not let you subtract one const X* pointer from another in
4159 an arm of an if-expression whose if-part is not a constant
4160 expression */
4161 const char *g = "string";
4162 pcpcc = &g + (g ? g-g : 0);
4163 /* HPUX 7.0 cc rejects these. */
4164 ++pcpcc;
4165 ppc = (char**) pcpcc;
4166 pcpcc = (char const *const *) ppc;
4167 { /* SCO 3.2v4 cc rejects this. */
4168 char *t;
4169 char const *s = 0 ? (char *) 0 : (char const *) 0;
4171 *t++ = 0;
4172 if (s) return 0;
4174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4175 int x[] = {25, 17};
4176 const int *foo = &x[0];
4177 ++foo;
4179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4180 typedef const int *iptr;
4181 iptr p = 0;
4182 ++p;
4184 { /* AIX XL C 1.02.0.0 rejects this saying
4185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4186 struct s { int j; const int *ap[3]; };
4187 struct s *b; b->j = 5;
4189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4190 const int foo = 10;
4191 if (!foo) return 0;
4193 return !cs[0] && !zero.x;
4194 #endif
4197 return 0;
4199 _ACEOF
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4202 case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest.$ac_objext; then
4217 ac_cv_c_const=yes
4218 else
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_cv_c_const=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4228 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4229 if test $ac_cv_c_const = no; then
4231 cat >>confdefs.h <<\_ACEOF
4232 #define const
4233 _ACEOF
4237 { echo "$as_me:$LINENO: checking for inline" >&5
4238 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4239 if test "${ac_cv_c_inline+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 ac_cv_c_inline=no
4243 for ac_kw in inline __inline__ __inline; do
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #ifndef __cplusplus
4251 typedef int foo_t;
4252 static $ac_kw foo_t static_foo () {return 0; }
4253 $ac_kw foo_t foo () {return 0; }
4254 #endif
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 ac_cv_c_inline=$ac_kw
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 test "$ac_cv_c_inline" != no && break
4284 done
4287 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4288 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4291 case $ac_cv_c_inline in
4292 inline | yes) ;;
4294 case $ac_cv_c_inline in
4295 no) ac_val=;;
4296 *) ac_val=$ac_cv_c_inline;;
4297 esac
4298 cat >>confdefs.h <<_ACEOF
4299 #ifndef __cplusplus
4300 #define inline $ac_val
4301 #endif
4302 _ACEOF
4304 esac
4307 for ac_func in setlocale
4309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4323 #define $ac_func innocuous_$ac_func
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4336 #undef $ac_func
4338 /* Override any GCC internal prototype to avoid an error.
4339 Use char because int might match the return type of a GCC
4340 builtin and then its argument prototype would still apply. */
4341 #ifdef __cplusplus
4342 extern "C"
4343 #endif
4344 char $ac_func ();
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined __stub_$ac_func || defined __stub___$ac_func
4349 choke me
4350 #endif
4353 main ()
4355 return $ac_func ();
4357 return 0;
4359 _ACEOF
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (ac_try="$ac_link"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_link") 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && {
4374 test -z "$ac_c_werror_flag" ||
4375 test ! -s conftest.err
4376 } && test -s conftest$ac_exeext &&
4377 $as_test_x conftest$ac_exeext; then
4378 eval "$as_ac_var=yes"
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 eval "$as_ac_var=no"
4386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4387 conftest$ac_exeext conftest.$ac_ext
4389 ac_res=`eval echo '${'$as_ac_var'}'`
4390 { echo "$as_me:$LINENO: result: $ac_res" >&5
4391 echo "${ECHO_T}$ac_res" >&6; }
4392 if test `eval echo '${'$as_ac_var'}'` = yes; then
4393 cat >>confdefs.h <<_ACEOF
4394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4395 _ACEOF
4398 done
4402 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4403 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4404 # Check whether --enable-nls was given.
4405 if test "${enable_nls+set}" = set; then
4406 enableval=$enable_nls; USE_NLS=$enableval
4407 else
4408 USE_NLS=yes
4411 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4412 echo "${ECHO_T}$USE_NLS" >&6; }
4419 # Prepare PATH_SEPARATOR.
4420 # The user is always right.
4421 if test "${PATH_SEPARATOR+set}" != set; then
4422 echo "#! /bin/sh" >conf$$.sh
4423 echo "exit 0" >>conf$$.sh
4424 chmod +x conf$$.sh
4425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4426 PATH_SEPARATOR=';'
4427 else
4428 PATH_SEPARATOR=:
4430 rm -f conf$$.sh
4433 # Find out how to test for executable files. Don't use a zero-byte file,
4434 # as systems may use methods other than mode bits to determine executability.
4435 cat >conf$$.file <<_ASEOF
4436 #! /bin/sh
4437 exit 0
4438 _ASEOF
4439 chmod +x conf$$.file
4440 if test -x conf$$.file >/dev/null 2>&1; then
4441 ac_executable_p="test -x"
4442 else
4443 ac_executable_p="test -f"
4445 rm -f conf$$.file
4447 # Extract the first word of "msgfmt", so it can be a program name with args.
4448 set dummy msgfmt; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_MSGFMT+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 case "$MSGFMT" in
4455 [\\/]* | ?:[\\/]*)
4456 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4459 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4460 for ac_dir in $PATH; do
4461 IFS="$ac_save_IFS"
4462 test -z "$ac_dir" && ac_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4465 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4466 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4467 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4468 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4469 break 2
4472 done
4473 done
4474 IFS="$ac_save_IFS"
4475 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4477 esac
4479 MSGFMT="$ac_cv_path_MSGFMT"
4480 if test "$MSGFMT" != ":"; then
4481 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4482 echo "${ECHO_T}$MSGFMT" >&6; }
4483 else
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4488 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4489 set dummy gmsgfmt; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 case $GMSGFMT in
4496 [\\/]* | ?:[\\/]*)
4497 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4511 done
4512 done
4513 IFS=$as_save_IFS
4515 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4517 esac
4519 GMSGFMT=$ac_cv_path_GMSGFMT
4520 if test -n "$GMSGFMT"; then
4521 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4522 echo "${ECHO_T}$GMSGFMT" >&6; }
4523 else
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4530 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4531 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4532 *) MSGFMT_015=$MSGFMT ;;
4533 esac
4535 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4536 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4537 *) GMSGFMT_015=$GMSGFMT ;;
4538 esac
4542 # Prepare PATH_SEPARATOR.
4543 # The user is always right.
4544 if test "${PATH_SEPARATOR+set}" != set; then
4545 echo "#! /bin/sh" >conf$$.sh
4546 echo "exit 0" >>conf$$.sh
4547 chmod +x conf$$.sh
4548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4549 PATH_SEPARATOR=';'
4550 else
4551 PATH_SEPARATOR=:
4553 rm -f conf$$.sh
4556 # Find out how to test for executable files. Don't use a zero-byte file,
4557 # as systems may use methods other than mode bits to determine executability.
4558 cat >conf$$.file <<_ASEOF
4559 #! /bin/sh
4560 exit 0
4561 _ASEOF
4562 chmod +x conf$$.file
4563 if test -x conf$$.file >/dev/null 2>&1; then
4564 ac_executable_p="test -x"
4565 else
4566 ac_executable_p="test -f"
4568 rm -f conf$$.file
4570 # Extract the first word of "xgettext", so it can be a program name with args.
4571 set dummy xgettext; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 case "$XGETTEXT" in
4578 [\\/]* | ?:[\\/]*)
4579 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4582 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4583 for ac_dir in $PATH; do
4584 IFS="$ac_save_IFS"
4585 test -z "$ac_dir" && ac_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4588 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4589 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4590 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4591 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4592 break 2
4595 done
4596 done
4597 IFS="$ac_save_IFS"
4598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4600 esac
4602 XGETTEXT="$ac_cv_path_XGETTEXT"
4603 if test "$XGETTEXT" != ":"; then
4604 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4605 echo "${ECHO_T}$XGETTEXT" >&6; }
4606 else
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4611 rm -f messages.po
4613 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4614 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4615 *) XGETTEXT_015=$XGETTEXT ;;
4616 esac
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4625 chmod +x conf$$.sh
4626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4627 PATH_SEPARATOR=';'
4628 else
4629 PATH_SEPARATOR=:
4631 rm -f conf$$.sh
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4637 #! /bin/sh
4638 exit 0
4639 _ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642 ac_executable_p="test -x"
4643 else
4644 ac_executable_p="test -f"
4646 rm -f conf$$.file
4648 # Extract the first word of "msgmerge", so it can be a program name with args.
4649 set dummy msgmerge; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 case "$MSGMERGE" in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4660 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4662 IFS="$ac_save_IFS"
4663 test -z "$ac_dir" && ac_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4667 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4668 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4669 break 2
4672 done
4673 done
4674 IFS="$ac_save_IFS"
4675 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4677 esac
4679 MSGMERGE="$ac_cv_path_MSGMERGE"
4680 if test "$MSGMERGE" != ":"; then
4681 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4682 echo "${ECHO_T}$MSGMERGE" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 test -n "$localedir" || localedir='${datadir}/locale'
4692 ac_config_commands="$ac_config_commands po-directories"
4696 if test "X$prefix" = "XNONE"; then
4697 acl_final_prefix="$ac_default_prefix"
4698 else
4699 acl_final_prefix="$prefix"
4701 if test "X$exec_prefix" = "XNONE"; then
4702 acl_final_exec_prefix='${prefix}'
4703 else
4704 acl_final_exec_prefix="$exec_prefix"
4706 acl_save_prefix="$prefix"
4707 prefix="$acl_final_prefix"
4708 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4709 prefix="$acl_save_prefix"
4711 # Make sure we can run config.sub.
4712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4713 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4714 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4715 { (exit 1); exit 1; }; }
4717 { echo "$as_me:$LINENO: checking build system type" >&5
4718 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4719 if test "${ac_cv_build+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 ac_build_alias=$build_alias
4723 test "x$ac_build_alias" = x &&
4724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4725 test "x$ac_build_alias" = x &&
4726 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4727 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4728 { (exit 1); exit 1; }; }
4729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4731 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4732 { (exit 1); exit 1; }; }
4735 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4736 echo "${ECHO_T}$ac_cv_build" >&6; }
4737 case $ac_cv_build in
4738 *-*-*) ;;
4739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4740 echo "$as_me: error: invalid value of canonical build" >&2;}
4741 { (exit 1); exit 1; }; };;
4742 esac
4743 build=$ac_cv_build
4744 ac_save_IFS=$IFS; IFS='-'
4745 set x $ac_cv_build
4746 shift
4747 build_cpu=$1
4748 build_vendor=$2
4749 shift; shift
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4752 build_os=$*
4753 IFS=$ac_save_IFS
4754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757 { echo "$as_me:$LINENO: checking host system type" >&5
4758 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4759 if test "${ac_cv_host+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 if test "x$host_alias" = x; then
4763 ac_cv_host=$ac_cv_build
4764 else
4765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4768 { (exit 1); exit 1; }; }
4772 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4773 echo "${ECHO_T}$ac_cv_host" >&6; }
4774 case $ac_cv_host in
4775 *-*-*) ;;
4776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4777 echo "$as_me: error: invalid value of canonical host" >&2;}
4778 { (exit 1); exit 1; }; };;
4779 esac
4780 host=$ac_cv_host
4781 ac_save_IFS=$IFS; IFS='-'
4782 set x $ac_cv_host
4783 shift
4784 host_cpu=$1
4785 host_vendor=$2
4786 shift; shift
4787 # Remember, the first character of IFS is used to create $*,
4788 # except with old shells:
4789 host_os=$*
4790 IFS=$ac_save_IFS
4791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795 # Check whether --with-gnu-ld was given.
4796 if test "${with_gnu_ld+set}" = set; then
4797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4798 else
4799 with_gnu_ld=no
4802 # Prepare PATH_SEPARATOR.
4803 # The user is always right.
4804 if test "${PATH_SEPARATOR+set}" != set; then
4805 echo "#! /bin/sh" >conf$$.sh
4806 echo "exit 0" >>conf$$.sh
4807 chmod +x conf$$.sh
4808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4809 PATH_SEPARATOR=';'
4810 else
4811 PATH_SEPARATOR=:
4813 rm -f conf$$.sh
4815 ac_prog=ld
4816 if test "$GCC" = yes; then
4817 # Check if gcc -print-prog-name=ld gives a path.
4818 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4820 case $host in
4821 *-*-mingw*)
4822 # gcc leaves a trailing carriage return which upsets mingw
4823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4826 esac
4827 case $ac_prog in
4828 # Accept absolute paths.
4829 [\\/]* | [A-Za-z]:[\\/]*)
4830 re_direlt='/[^/][^/]*/\.\./'
4831 # Canonicalize the path of ld
4832 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4833 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4834 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4835 done
4836 test -z "$LD" && LD="$ac_prog"
4839 # If it fails, then pretend we aren't using GCC.
4840 ac_prog=ld
4843 # If it is relative, then search for the first ld in PATH.
4844 with_gnu_ld=unknown
4846 esac
4847 elif test "$with_gnu_ld" = yes; then
4848 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4849 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4850 else
4851 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4852 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4854 if test "${acl_cv_path_LD+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 if test -z "$LD"; then
4858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4859 for ac_dir in $PATH; do
4860 test -z "$ac_dir" && ac_dir=.
4861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4862 acl_cv_path_LD="$ac_dir/$ac_prog"
4863 # Check to see if the program is GNU ld. I'd rather use --version,
4864 # but apparently some GNU ld's only accept -v.
4865 # Break only if it was the GNU/non-GNU ld that we prefer.
4866 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4867 *GNU* | *'with BFD'*)
4868 test "$with_gnu_ld" != no && break ;;
4870 test "$with_gnu_ld" != yes && break ;;
4871 esac
4873 done
4874 IFS="$ac_save_ifs"
4875 else
4876 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4880 LD="$acl_cv_path_LD"
4881 if test -n "$LD"; then
4882 { echo "$as_me:$LINENO: result: $LD" >&5
4883 echo "${ECHO_T}$LD" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4888 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4889 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4890 { (exit 1); exit 1; }; }
4891 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4892 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4893 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4897 case `$LD -v 2>&1 </dev/null` in
4898 *GNU* | *'with BFD'*)
4899 acl_cv_prog_gnu_ld=yes ;;
4901 acl_cv_prog_gnu_ld=no ;;
4902 esac
4904 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4905 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4906 with_gnu_ld=$acl_cv_prog_gnu_ld
4911 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4912 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4913 if test "${acl_cv_rpath+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4917 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4918 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4919 . ./conftest.sh
4920 rm -f ./conftest.sh
4921 acl_cv_rpath=done
4924 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4925 echo "${ECHO_T}$acl_cv_rpath" >&6; }
4926 wl="$acl_cv_wl"
4927 libext="$acl_cv_libext"
4928 shlibext="$acl_cv_shlibext"
4929 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4930 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4931 hardcode_direct="$acl_cv_hardcode_direct"
4932 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4933 # Check whether --enable-rpath was given.
4934 if test "${enable_rpath+set}" = set; then
4935 enableval=$enable_rpath; :
4936 else
4937 enable_rpath=yes
4942 acl_libdirstem=lib
4943 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4944 if test -n "$searchpath"; then
4945 acl_save_IFS="${IFS= }"; IFS=":"
4946 for searchdir in $searchpath; do
4947 if test -d "$searchdir"; then
4948 case "$searchdir" in
4949 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4950 *) searchdir=`cd "$searchdir" && pwd`
4951 case "$searchdir" in
4952 */lib64 ) acl_libdirstem=lib64 ;;
4953 esac ;;
4954 esac
4956 done
4957 IFS="$acl_save_IFS"
4967 use_additional=yes
4969 acl_save_prefix="$prefix"
4970 prefix="$acl_final_prefix"
4971 acl_save_exec_prefix="$exec_prefix"
4972 exec_prefix="$acl_final_exec_prefix"
4974 eval additional_includedir=\"$includedir\"
4975 eval additional_libdir=\"$libdir\"
4977 exec_prefix="$acl_save_exec_prefix"
4978 prefix="$acl_save_prefix"
4981 # Check whether --with-libiconv-prefix was given.
4982 if test "${with_libiconv_prefix+set}" = set; then
4983 withval=$with_libiconv_prefix;
4984 if test "X$withval" = "Xno"; then
4985 use_additional=no
4986 else
4987 if test "X$withval" = "X"; then
4989 acl_save_prefix="$prefix"
4990 prefix="$acl_final_prefix"
4991 acl_save_exec_prefix="$exec_prefix"
4992 exec_prefix="$acl_final_exec_prefix"
4994 eval additional_includedir=\"$includedir\"
4995 eval additional_libdir=\"$libdir\"
4997 exec_prefix="$acl_save_exec_prefix"
4998 prefix="$acl_save_prefix"
5000 else
5001 additional_includedir="$withval/include"
5002 additional_libdir="$withval/$acl_libdirstem"
5008 LIBICONV=
5009 LTLIBICONV=
5010 INCICONV=
5011 rpathdirs=
5012 ltrpathdirs=
5013 names_already_handled=
5014 names_next_round='iconv '
5015 while test -n "$names_next_round"; do
5016 names_this_round="$names_next_round"
5017 names_next_round=
5018 for name in $names_this_round; do
5019 already_handled=
5020 for n in $names_already_handled; do
5021 if test "$n" = "$name"; then
5022 already_handled=yes
5023 break
5025 done
5026 if test -z "$already_handled"; then
5027 names_already_handled="$names_already_handled $name"
5028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5029 eval value=\"\$HAVE_LIB$uppername\"
5030 if test -n "$value"; then
5031 if test "$value" = yes; then
5032 eval value=\"\$LIB$uppername\"
5033 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5034 eval value=\"\$LTLIB$uppername\"
5035 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5036 else
5039 else
5040 found_dir=
5041 found_la=
5042 found_so=
5043 found_a=
5044 if test $use_additional = yes; then
5045 if test -n "$shlibext" \
5046 && { test -f "$additional_libdir/lib$name.$shlibext" \
5047 || { test "$shlibext" = dll \
5048 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5049 found_dir="$additional_libdir"
5050 if test -f "$additional_libdir/lib$name.$shlibext"; then
5051 found_so="$additional_libdir/lib$name.$shlibext"
5052 else
5053 found_so="$additional_libdir/lib$name.dll.a"
5055 if test -f "$additional_libdir/lib$name.la"; then
5056 found_la="$additional_libdir/lib$name.la"
5058 else
5059 if test -f "$additional_libdir/lib$name.$libext"; then
5060 found_dir="$additional_libdir"
5061 found_a="$additional_libdir/lib$name.$libext"
5062 if test -f "$additional_libdir/lib$name.la"; then
5063 found_la="$additional_libdir/lib$name.la"
5068 if test "X$found_dir" = "X"; then
5069 for x in $LDFLAGS $LTLIBICONV; do
5071 acl_save_prefix="$prefix"
5072 prefix="$acl_final_prefix"
5073 acl_save_exec_prefix="$exec_prefix"
5074 exec_prefix="$acl_final_exec_prefix"
5075 eval x=\"$x\"
5076 exec_prefix="$acl_save_exec_prefix"
5077 prefix="$acl_save_prefix"
5079 case "$x" in
5080 -L*)
5081 dir=`echo "X$x" | sed -e 's/^X-L//'`
5082 if test -n "$shlibext" \
5083 && { test -f "$dir/lib$name.$shlibext" \
5084 || { test "$shlibext" = dll \
5085 && test -f "$dir/lib$name.dll.a"; }; }; then
5086 found_dir="$dir"
5087 if test -f "$dir/lib$name.$shlibext"; then
5088 found_so="$dir/lib$name.$shlibext"
5089 else
5090 found_so="$dir/lib$name.dll.a"
5092 if test -f "$dir/lib$name.la"; then
5093 found_la="$dir/lib$name.la"
5095 else
5096 if test -f "$dir/lib$name.$libext"; then
5097 found_dir="$dir"
5098 found_a="$dir/lib$name.$libext"
5099 if test -f "$dir/lib$name.la"; then
5100 found_la="$dir/lib$name.la"
5105 esac
5106 if test "X$found_dir" != "X"; then
5107 break
5109 done
5111 if test "X$found_dir" != "X"; then
5112 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5113 if test "X$found_so" != "X"; then
5114 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5115 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5116 else
5117 haveit=
5118 for x in $ltrpathdirs; do
5119 if test "X$x" = "X$found_dir"; then
5120 haveit=yes
5121 break
5123 done
5124 if test -z "$haveit"; then
5125 ltrpathdirs="$ltrpathdirs $found_dir"
5127 if test "$hardcode_direct" = yes; then
5128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5129 else
5130 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5132 haveit=
5133 for x in $rpathdirs; do
5134 if test "X$x" = "X$found_dir"; then
5135 haveit=yes
5136 break
5138 done
5139 if test -z "$haveit"; then
5140 rpathdirs="$rpathdirs $found_dir"
5142 else
5143 haveit=
5144 for x in $LDFLAGS $LIBICONV; do
5146 acl_save_prefix="$prefix"
5147 prefix="$acl_final_prefix"
5148 acl_save_exec_prefix="$exec_prefix"
5149 exec_prefix="$acl_final_exec_prefix"
5150 eval x=\"$x\"
5151 exec_prefix="$acl_save_exec_prefix"
5152 prefix="$acl_save_prefix"
5154 if test "X$x" = "X-L$found_dir"; then
5155 haveit=yes
5156 break
5158 done
5159 if test -z "$haveit"; then
5160 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5162 if test "$hardcode_minus_L" != no; then
5163 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5164 else
5165 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5170 else
5171 if test "X$found_a" != "X"; then
5172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5173 else
5174 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5177 additional_includedir=
5178 case "$found_dir" in
5179 */$acl_libdirstem | */$acl_libdirstem/)
5180 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5181 additional_includedir="$basedir/include"
5183 esac
5184 if test "X$additional_includedir" != "X"; then
5185 if test "X$additional_includedir" != "X/usr/include"; then
5186 haveit=
5187 if test "X$additional_includedir" = "X/usr/local/include"; then
5188 if test -n "$GCC"; then
5189 case $host_os in
5190 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5191 esac
5194 if test -z "$haveit"; then
5195 for x in $CPPFLAGS $INCICONV; do
5197 acl_save_prefix="$prefix"
5198 prefix="$acl_final_prefix"
5199 acl_save_exec_prefix="$exec_prefix"
5200 exec_prefix="$acl_final_exec_prefix"
5201 eval x=\"$x\"
5202 exec_prefix="$acl_save_exec_prefix"
5203 prefix="$acl_save_prefix"
5205 if test "X$x" = "X-I$additional_includedir"; then
5206 haveit=yes
5207 break
5209 done
5210 if test -z "$haveit"; then
5211 if test -d "$additional_includedir"; then
5212 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5218 if test -n "$found_la"; then
5219 save_libdir="$libdir"
5220 case "$found_la" in
5221 */* | *\\*) . "$found_la" ;;
5222 *) . "./$found_la" ;;
5223 esac
5224 libdir="$save_libdir"
5225 for dep in $dependency_libs; do
5226 case "$dep" in
5227 -L*)
5228 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5229 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5230 haveit=
5231 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5232 if test -n "$GCC"; then
5233 case $host_os in
5234 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5235 esac
5238 if test -z "$haveit"; then
5239 haveit=
5240 for x in $LDFLAGS $LIBICONV; do
5242 acl_save_prefix="$prefix"
5243 prefix="$acl_final_prefix"
5244 acl_save_exec_prefix="$exec_prefix"
5245 exec_prefix="$acl_final_exec_prefix"
5246 eval x=\"$x\"
5247 exec_prefix="$acl_save_exec_prefix"
5248 prefix="$acl_save_prefix"
5250 if test "X$x" = "X-L$additional_libdir"; then
5251 haveit=yes
5252 break
5254 done
5255 if test -z "$haveit"; then
5256 if test -d "$additional_libdir"; then
5257 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5260 haveit=
5261 for x in $LDFLAGS $LTLIBICONV; do
5263 acl_save_prefix="$prefix"
5264 prefix="$acl_final_prefix"
5265 acl_save_exec_prefix="$exec_prefix"
5266 exec_prefix="$acl_final_exec_prefix"
5267 eval x=\"$x\"
5268 exec_prefix="$acl_save_exec_prefix"
5269 prefix="$acl_save_prefix"
5271 if test "X$x" = "X-L$additional_libdir"; then
5272 haveit=yes
5273 break
5275 done
5276 if test -z "$haveit"; then
5277 if test -d "$additional_libdir"; then
5278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5284 -R*)
5285 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5286 if test "$enable_rpath" != no; then
5287 haveit=
5288 for x in $rpathdirs; do
5289 if test "X$x" = "X$dir"; then
5290 haveit=yes
5291 break
5293 done
5294 if test -z "$haveit"; then
5295 rpathdirs="$rpathdirs $dir"
5297 haveit=
5298 for x in $ltrpathdirs; do
5299 if test "X$x" = "X$dir"; then
5300 haveit=yes
5301 break
5303 done
5304 if test -z "$haveit"; then
5305 ltrpathdirs="$ltrpathdirs $dir"
5309 -l*)
5310 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5312 *.la)
5313 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5316 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5317 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5319 esac
5320 done
5322 else
5323 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5324 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5328 done
5329 done
5330 if test "X$rpathdirs" != "X"; then
5331 if test -n "$hardcode_libdir_separator"; then
5332 alldirs=
5333 for found_dir in $rpathdirs; do
5334 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5335 done
5336 acl_save_libdir="$libdir"
5337 libdir="$alldirs"
5338 eval flag=\"$hardcode_libdir_flag_spec\"
5339 libdir="$acl_save_libdir"
5340 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5341 else
5342 for found_dir in $rpathdirs; do
5343 acl_save_libdir="$libdir"
5344 libdir="$found_dir"
5345 eval flag=\"$hardcode_libdir_flag_spec\"
5346 libdir="$acl_save_libdir"
5347 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5348 done
5351 if test "X$ltrpathdirs" != "X"; then
5352 for found_dir in $ltrpathdirs; do
5353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5354 done
5381 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5382 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
5383 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 gt_save_LIBS="$LIBS"
5387 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <CoreFoundation/CFPreferences.h>
5396 main ()
5398 CFPreferencesCopyAppValue(NULL, NULL)
5400 return 0;
5402 _ACEOF
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (ac_try="$ac_link"
5405 case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_link") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest$ac_exeext &&
5420 $as_test_x conftest$ac_exeext; then
5421 gt_cv_func_CFPreferencesCopyAppValue=yes
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 gt_cv_func_CFPreferencesCopyAppValue=no
5429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5430 conftest$ac_exeext conftest.$ac_ext
5431 LIBS="$gt_save_LIBS"
5433 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5434 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5435 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5437 cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5439 _ACEOF
5442 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5443 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
5444 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 gt_save_LIBS="$LIBS"
5448 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 #include <CoreFoundation/CFLocale.h>
5457 main ()
5459 CFLocaleCopyCurrent();
5461 return 0;
5463 _ACEOF
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (ac_try="$ac_link"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_link") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest$ac_exeext &&
5481 $as_test_x conftest$ac_exeext; then
5482 gt_cv_func_CFLocaleCopyCurrent=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 gt_cv_func_CFLocaleCopyCurrent=no
5490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5491 conftest$ac_exeext conftest.$ac_ext
5492 LIBS="$gt_save_LIBS"
5494 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5495 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5496 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5498 cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_CFLOCALECOPYCURRENT 1
5500 _ACEOF
5503 INTL_MACOSX_LIBS=
5504 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5505 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5513 LIBINTL=
5514 LTLIBINTL=
5515 POSUB=
5517 case " $gt_needs " in
5518 *" need-formatstring-macros "*) gt_api_version=3 ;;
5519 *" need-ngettext "*) gt_api_version=2 ;;
5520 *) gt_api_version=1 ;;
5521 esac
5522 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5523 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5525 if test "$USE_NLS" = "yes"; then
5526 gt_use_preinstalled_gnugettext=no
5529 if test $gt_api_version -ge 3; then
5530 gt_revision_test_code='
5531 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5532 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5533 #endif
5534 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5536 else
5537 gt_revision_test_code=
5539 if test $gt_api_version -ge 2; then
5540 gt_expression_test_code=' + * ngettext ("", "", 0)'
5541 else
5542 gt_expression_test_code=
5545 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5546 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
5547 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <libintl.h>
5557 $gt_revision_test_code
5558 extern int _nl_msg_cat_cntr;
5559 extern int *_nl_domain_bindings;
5561 main ()
5563 bindtextdomain ("", "");
5564 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5566 return 0;
5568 _ACEOF
5569 rm -f conftest.$ac_objext conftest$ac_exeext
5570 if { (ac_try="$ac_link"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_link") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest$ac_exeext &&
5586 $as_test_x conftest$ac_exeext; then
5587 eval "$gt_func_gnugettext_libc=yes"
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 eval "$gt_func_gnugettext_libc=no"
5595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5596 conftest$ac_exeext conftest.$ac_ext
5598 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
5599 { echo "$as_me:$LINENO: result: $ac_res" >&5
5600 echo "${ECHO_T}$ac_res" >&6; }
5602 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5608 am_save_CPPFLAGS="$CPPFLAGS"
5610 for element in $INCICONV; do
5611 haveit=
5612 for x in $CPPFLAGS; do
5614 acl_save_prefix="$prefix"
5615 prefix="$acl_final_prefix"
5616 acl_save_exec_prefix="$exec_prefix"
5617 exec_prefix="$acl_final_exec_prefix"
5618 eval x=\"$x\"
5619 exec_prefix="$acl_save_exec_prefix"
5620 prefix="$acl_save_prefix"
5622 if test "X$x" = "X$element"; then
5623 haveit=yes
5624 break
5626 done
5627 if test -z "$haveit"; then
5628 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5630 done
5633 { echo "$as_me:$LINENO: checking for iconv" >&5
5634 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
5635 if test "${am_cv_func_iconv+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5639 am_cv_func_iconv="no, consider installing GNU libiconv"
5640 am_cv_lib_iconv=no
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <stdlib.h>
5648 #include <iconv.h>
5650 main ()
5652 iconv_t cd = iconv_open("","");
5653 iconv(cd,NULL,NULL,NULL,NULL);
5654 iconv_close(cd);
5656 return 0;
5658 _ACEOF
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (ac_try="$ac_link"
5661 case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_link") 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_c_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest$ac_exeext &&
5676 $as_test_x conftest$ac_exeext; then
5677 am_cv_func_iconv=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5687 if test "$am_cv_func_iconv" != yes; then
5688 am_save_LIBS="$LIBS"
5689 LIBS="$LIBS $LIBICONV"
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <stdlib.h>
5697 #include <iconv.h>
5699 main ()
5701 iconv_t cd = iconv_open("","");
5702 iconv(cd,NULL,NULL,NULL,NULL);
5703 iconv_close(cd);
5705 return 0;
5707 _ACEOF
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (ac_try="$ac_link"
5710 case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_link") 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && {
5722 test -z "$ac_c_werror_flag" ||
5723 test ! -s conftest.err
5724 } && test -s conftest$ac_exeext &&
5725 $as_test_x conftest$ac_exeext; then
5726 am_cv_lib_iconv=yes
5727 am_cv_func_iconv=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5736 conftest$ac_exeext conftest.$ac_ext
5737 LIBS="$am_save_LIBS"
5741 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5742 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
5743 if test "$am_cv_func_iconv" = yes; then
5745 cat >>confdefs.h <<\_ACEOF
5746 #define HAVE_ICONV 1
5747 _ACEOF
5750 if test "$am_cv_lib_iconv" = yes; then
5751 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5752 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
5753 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
5754 echo "${ECHO_T}$LIBICONV" >&6; }
5755 else
5756 CPPFLAGS="$am_save_CPPFLAGS"
5757 LIBICONV=
5758 LTLIBICONV=
5767 use_additional=yes
5769 acl_save_prefix="$prefix"
5770 prefix="$acl_final_prefix"
5771 acl_save_exec_prefix="$exec_prefix"
5772 exec_prefix="$acl_final_exec_prefix"
5774 eval additional_includedir=\"$includedir\"
5775 eval additional_libdir=\"$libdir\"
5777 exec_prefix="$acl_save_exec_prefix"
5778 prefix="$acl_save_prefix"
5781 # Check whether --with-libintl-prefix was given.
5782 if test "${with_libintl_prefix+set}" = set; then
5783 withval=$with_libintl_prefix;
5784 if test "X$withval" = "Xno"; then
5785 use_additional=no
5786 else
5787 if test "X$withval" = "X"; then
5789 acl_save_prefix="$prefix"
5790 prefix="$acl_final_prefix"
5791 acl_save_exec_prefix="$exec_prefix"
5792 exec_prefix="$acl_final_exec_prefix"
5794 eval additional_includedir=\"$includedir\"
5795 eval additional_libdir=\"$libdir\"
5797 exec_prefix="$acl_save_exec_prefix"
5798 prefix="$acl_save_prefix"
5800 else
5801 additional_includedir="$withval/include"
5802 additional_libdir="$withval/$acl_libdirstem"
5808 LIBINTL=
5809 LTLIBINTL=
5810 INCINTL=
5811 rpathdirs=
5812 ltrpathdirs=
5813 names_already_handled=
5814 names_next_round='intl '
5815 while test -n "$names_next_round"; do
5816 names_this_round="$names_next_round"
5817 names_next_round=
5818 for name in $names_this_round; do
5819 already_handled=
5820 for n in $names_already_handled; do
5821 if test "$n" = "$name"; then
5822 already_handled=yes
5823 break
5825 done
5826 if test -z "$already_handled"; then
5827 names_already_handled="$names_already_handled $name"
5828 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5829 eval value=\"\$HAVE_LIB$uppername\"
5830 if test -n "$value"; then
5831 if test "$value" = yes; then
5832 eval value=\"\$LIB$uppername\"
5833 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5834 eval value=\"\$LTLIB$uppername\"
5835 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5836 else
5839 else
5840 found_dir=
5841 found_la=
5842 found_so=
5843 found_a=
5844 if test $use_additional = yes; then
5845 if test -n "$shlibext" \
5846 && { test -f "$additional_libdir/lib$name.$shlibext" \
5847 || { test "$shlibext" = dll \
5848 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5849 found_dir="$additional_libdir"
5850 if test -f "$additional_libdir/lib$name.$shlibext"; then
5851 found_so="$additional_libdir/lib$name.$shlibext"
5852 else
5853 found_so="$additional_libdir/lib$name.dll.a"
5855 if test -f "$additional_libdir/lib$name.la"; then
5856 found_la="$additional_libdir/lib$name.la"
5858 else
5859 if test -f "$additional_libdir/lib$name.$libext"; then
5860 found_dir="$additional_libdir"
5861 found_a="$additional_libdir/lib$name.$libext"
5862 if test -f "$additional_libdir/lib$name.la"; then
5863 found_la="$additional_libdir/lib$name.la"
5868 if test "X$found_dir" = "X"; then
5869 for x in $LDFLAGS $LTLIBINTL; do
5871 acl_save_prefix="$prefix"
5872 prefix="$acl_final_prefix"
5873 acl_save_exec_prefix="$exec_prefix"
5874 exec_prefix="$acl_final_exec_prefix"
5875 eval x=\"$x\"
5876 exec_prefix="$acl_save_exec_prefix"
5877 prefix="$acl_save_prefix"
5879 case "$x" in
5880 -L*)
5881 dir=`echo "X$x" | sed -e 's/^X-L//'`
5882 if test -n "$shlibext" \
5883 && { test -f "$dir/lib$name.$shlibext" \
5884 || { test "$shlibext" = dll \
5885 && test -f "$dir/lib$name.dll.a"; }; }; then
5886 found_dir="$dir"
5887 if test -f "$dir/lib$name.$shlibext"; then
5888 found_so="$dir/lib$name.$shlibext"
5889 else
5890 found_so="$dir/lib$name.dll.a"
5892 if test -f "$dir/lib$name.la"; then
5893 found_la="$dir/lib$name.la"
5895 else
5896 if test -f "$dir/lib$name.$libext"; then
5897 found_dir="$dir"
5898 found_a="$dir/lib$name.$libext"
5899 if test -f "$dir/lib$name.la"; then
5900 found_la="$dir/lib$name.la"
5905 esac
5906 if test "X$found_dir" != "X"; then
5907 break
5909 done
5911 if test "X$found_dir" != "X"; then
5912 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5913 if test "X$found_so" != "X"; then
5914 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5915 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5916 else
5917 haveit=
5918 for x in $ltrpathdirs; do
5919 if test "X$x" = "X$found_dir"; then
5920 haveit=yes
5921 break
5923 done
5924 if test -z "$haveit"; then
5925 ltrpathdirs="$ltrpathdirs $found_dir"
5927 if test "$hardcode_direct" = yes; then
5928 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5929 else
5930 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5931 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5932 haveit=
5933 for x in $rpathdirs; do
5934 if test "X$x" = "X$found_dir"; then
5935 haveit=yes
5936 break
5938 done
5939 if test -z "$haveit"; then
5940 rpathdirs="$rpathdirs $found_dir"
5942 else
5943 haveit=
5944 for x in $LDFLAGS $LIBINTL; do
5946 acl_save_prefix="$prefix"
5947 prefix="$acl_final_prefix"
5948 acl_save_exec_prefix="$exec_prefix"
5949 exec_prefix="$acl_final_exec_prefix"
5950 eval x=\"$x\"
5951 exec_prefix="$acl_save_exec_prefix"
5952 prefix="$acl_save_prefix"
5954 if test "X$x" = "X-L$found_dir"; then
5955 haveit=yes
5956 break
5958 done
5959 if test -z "$haveit"; then
5960 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5962 if test "$hardcode_minus_L" != no; then
5963 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5964 else
5965 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5970 else
5971 if test "X$found_a" != "X"; then
5972 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5973 else
5974 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5977 additional_includedir=
5978 case "$found_dir" in
5979 */$acl_libdirstem | */$acl_libdirstem/)
5980 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5981 additional_includedir="$basedir/include"
5983 esac
5984 if test "X$additional_includedir" != "X"; then
5985 if test "X$additional_includedir" != "X/usr/include"; then
5986 haveit=
5987 if test "X$additional_includedir" = "X/usr/local/include"; then
5988 if test -n "$GCC"; then
5989 case $host_os in
5990 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5991 esac
5994 if test -z "$haveit"; then
5995 for x in $CPPFLAGS $INCINTL; do
5997 acl_save_prefix="$prefix"
5998 prefix="$acl_final_prefix"
5999 acl_save_exec_prefix="$exec_prefix"
6000 exec_prefix="$acl_final_exec_prefix"
6001 eval x=\"$x\"
6002 exec_prefix="$acl_save_exec_prefix"
6003 prefix="$acl_save_prefix"
6005 if test "X$x" = "X-I$additional_includedir"; then
6006 haveit=yes
6007 break
6009 done
6010 if test -z "$haveit"; then
6011 if test -d "$additional_includedir"; then
6012 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6018 if test -n "$found_la"; then
6019 save_libdir="$libdir"
6020 case "$found_la" in
6021 */* | *\\*) . "$found_la" ;;
6022 *) . "./$found_la" ;;
6023 esac
6024 libdir="$save_libdir"
6025 for dep in $dependency_libs; do
6026 case "$dep" in
6027 -L*)
6028 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6029 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6030 haveit=
6031 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6032 if test -n "$GCC"; then
6033 case $host_os in
6034 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6035 esac
6038 if test -z "$haveit"; then
6039 haveit=
6040 for x in $LDFLAGS $LIBINTL; do
6042 acl_save_prefix="$prefix"
6043 prefix="$acl_final_prefix"
6044 acl_save_exec_prefix="$exec_prefix"
6045 exec_prefix="$acl_final_exec_prefix"
6046 eval x=\"$x\"
6047 exec_prefix="$acl_save_exec_prefix"
6048 prefix="$acl_save_prefix"
6050 if test "X$x" = "X-L$additional_libdir"; then
6051 haveit=yes
6052 break
6054 done
6055 if test -z "$haveit"; then
6056 if test -d "$additional_libdir"; then
6057 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6060 haveit=
6061 for x in $LDFLAGS $LTLIBINTL; do
6063 acl_save_prefix="$prefix"
6064 prefix="$acl_final_prefix"
6065 acl_save_exec_prefix="$exec_prefix"
6066 exec_prefix="$acl_final_exec_prefix"
6067 eval x=\"$x\"
6068 exec_prefix="$acl_save_exec_prefix"
6069 prefix="$acl_save_prefix"
6071 if test "X$x" = "X-L$additional_libdir"; then
6072 haveit=yes
6073 break
6075 done
6076 if test -z "$haveit"; then
6077 if test -d "$additional_libdir"; then
6078 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6084 -R*)
6085 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6086 if test "$enable_rpath" != no; then
6087 haveit=
6088 for x in $rpathdirs; do
6089 if test "X$x" = "X$dir"; then
6090 haveit=yes
6091 break
6093 done
6094 if test -z "$haveit"; then
6095 rpathdirs="$rpathdirs $dir"
6097 haveit=
6098 for x in $ltrpathdirs; do
6099 if test "X$x" = "X$dir"; then
6100 haveit=yes
6101 break
6103 done
6104 if test -z "$haveit"; then
6105 ltrpathdirs="$ltrpathdirs $dir"
6109 -l*)
6110 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6112 *.la)
6113 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6116 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6119 esac
6120 done
6122 else
6123 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6124 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6128 done
6129 done
6130 if test "X$rpathdirs" != "X"; then
6131 if test -n "$hardcode_libdir_separator"; then
6132 alldirs=
6133 for found_dir in $rpathdirs; do
6134 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6135 done
6136 acl_save_libdir="$libdir"
6137 libdir="$alldirs"
6138 eval flag=\"$hardcode_libdir_flag_spec\"
6139 libdir="$acl_save_libdir"
6140 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6141 else
6142 for found_dir in $rpathdirs; do
6143 acl_save_libdir="$libdir"
6144 libdir="$found_dir"
6145 eval flag=\"$hardcode_libdir_flag_spec\"
6146 libdir="$acl_save_libdir"
6147 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6148 done
6151 if test "X$ltrpathdirs" != "X"; then
6152 for found_dir in $ltrpathdirs; do
6153 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6154 done
6157 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6158 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
6159 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 gt_save_CPPFLAGS="$CPPFLAGS"
6163 CPPFLAGS="$CPPFLAGS $INCINTL"
6164 gt_save_LIBS="$LIBS"
6165 LIBS="$LIBS $LIBINTL"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <libintl.h>
6173 $gt_revision_test_code
6174 extern int _nl_msg_cat_cntr;
6175 extern
6176 #ifdef __cplusplus
6178 #endif
6179 const char *_nl_expand_alias (const char *);
6181 main ()
6183 bindtextdomain ("", "");
6184 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6186 return 0;
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (ac_try="$ac_link"
6191 case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_link") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest$ac_exeext &&
6206 $as_test_x conftest$ac_exeext; then
6207 eval "$gt_func_gnugettext_libintl=yes"
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 eval "$gt_func_gnugettext_libintl=no"
6215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6216 conftest$ac_exeext conftest.$ac_ext
6217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6218 LIBS="$LIBS $LIBICONV"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <libintl.h>
6226 $gt_revision_test_code
6227 extern int _nl_msg_cat_cntr;
6228 extern
6229 #ifdef __cplusplus
6231 #endif
6232 const char *_nl_expand_alias (const char *);
6234 main ()
6236 bindtextdomain ("", "");
6237 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6244 case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest$ac_exeext &&
6259 $as_test_x conftest$ac_exeext; then
6260 LIBINTL="$LIBINTL $LIBICONV"
6261 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6262 eval "$gt_func_gnugettext_libintl=yes"
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6272 conftest$ac_exeext conftest.$ac_ext
6274 CPPFLAGS="$gt_save_CPPFLAGS"
6275 LIBS="$gt_save_LIBS"
6277 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
6278 { echo "$as_me:$LINENO: result: $ac_res" >&5
6279 echo "${ECHO_T}$ac_res" >&6; }
6282 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6283 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6284 && test "$PACKAGE" != gettext-runtime \
6285 && test "$PACKAGE" != gettext-tools; }; then
6286 gt_use_preinstalled_gnugettext=yes
6287 else
6288 LIBINTL=
6289 LTLIBINTL=
6290 INCINTL=
6295 if test -n "$INTL_MACOSX_LIBS"; then
6296 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6297 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6298 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6299 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6303 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6304 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6306 cat >>confdefs.h <<\_ACEOF
6307 #define ENABLE_NLS 1
6308 _ACEOF
6310 else
6311 USE_NLS=no
6315 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
6316 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
6317 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6318 echo "${ECHO_T}$USE_NLS" >&6; }
6319 if test "$USE_NLS" = "yes"; then
6320 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6321 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
6322 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6323 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6324 gt_source="external libintl"
6325 else
6326 gt_source="libc"
6328 else
6329 gt_source="included intl directory"
6331 { echo "$as_me:$LINENO: result: $gt_source" >&5
6332 echo "${ECHO_T}$gt_source" >&6; }
6335 if test "$USE_NLS" = "yes"; then
6337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6338 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6339 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
6340 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
6341 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
6342 echo "${ECHO_T}$LIBINTL" >&6; }
6344 for element in $INCINTL; do
6345 haveit=
6346 for x in $CPPFLAGS; do
6348 acl_save_prefix="$prefix"
6349 prefix="$acl_final_prefix"
6350 acl_save_exec_prefix="$exec_prefix"
6351 exec_prefix="$acl_final_exec_prefix"
6352 eval x=\"$x\"
6353 exec_prefix="$acl_save_exec_prefix"
6354 prefix="$acl_save_prefix"
6356 if test "X$x" = "X$element"; then
6357 haveit=yes
6358 break
6360 done
6361 if test -z "$haveit"; then
6362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6364 done
6369 cat >>confdefs.h <<\_ACEOF
6370 #define HAVE_GETTEXT 1
6371 _ACEOF
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_DCGETTEXT 1
6376 _ACEOF
6380 POSUB=po
6385 INTLLIBS="$LIBINTL"
6394 # Find a good install program. We prefer a C program (faster),
6395 # so one script is as good as another. But avoid the broken or
6396 # incompatible versions:
6397 # SysV /etc/install, /usr/sbin/install
6398 # SunOS /usr/etc/install
6399 # IRIX /sbin/install
6400 # AIX /bin/install
6401 # AmigaOS /C/install, which installs bootblocks on floppy discs
6402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6405 # OS/2's system install, which has a completely different semantic
6406 # ./install, which can be erroneously created by make from ./install.sh.
6407 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6408 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6409 if test -z "$INSTALL"; then
6410 if test "${ac_cv_path_install+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 # Account for people who put trailing slashes in PATH elements.
6419 case $as_dir/ in
6420 ./ | .// | /cC/* | \
6421 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6422 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6423 /usr/ucb/* ) ;;
6425 # OSF1 and SCO ODT 3.0 have their own names for install.
6426 # Don't use installbsd from OSF since it installs stuff as root
6427 # by default.
6428 for ac_prog in ginstall scoinst install; do
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6431 if test $ac_prog = install &&
6432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6433 # AIX install. It has an incompatible calling convention.
6435 elif test $ac_prog = install &&
6436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6437 # program-specific install script used by HP pwplus--don't use.
6439 else
6440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6441 break 3
6444 done
6445 done
6447 esac
6448 done
6449 IFS=$as_save_IFS
6453 if test "${ac_cv_path_install+set}" = set; then
6454 INSTALL=$ac_cv_path_install
6455 else
6456 # As a last resort, use the slow shell script. Don't cache a
6457 # value for INSTALL within a source directory, because that will
6458 # break other packages using the cache if that directory is
6459 # removed, or if the value is a relative name.
6460 INSTALL=$ac_install_sh
6463 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6464 echo "${ECHO_T}$INSTALL" >&6; }
6466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6467 # It thinks the first close brace ends the variable substitution.
6468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6486 inttypes.h stdint.h unistd.h
6488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 $ac_includes_default
6502 #include <$ac_header>
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6506 case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 eval "$as_ac_Header=yes"
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 eval "$as_ac_Header=no"
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 ac_res=`eval echo '${'$as_ac_Header'}'`
6532 { echo "$as_me:$LINENO: result: $ac_res" >&5
6533 echo "${ECHO_T}$ac_res" >&6; }
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535 cat >>confdefs.h <<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 _ACEOF
6541 done
6547 for ac_header in stdlib.h unistd.h string.h
6549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 ac_res=`eval echo '${'$as_ac_Header'}'`
6557 { echo "$as_me:$LINENO: result: $ac_res" >&5
6558 echo "${ECHO_T}$ac_res" >&6; }
6559 else
6560 # Is the header compilable?
6561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6570 #include <$ac_header>
6571 _ACEOF
6572 rm -f conftest.$ac_objext
6573 if { (ac_try="$ac_compile"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_header_compiler=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_compiler=no
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6599 echo "${ECHO_T}$ac_header_compiler" >&6; }
6601 # Is the header present?
6602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <$ac_header>
6611 _ACEOF
6612 if { (ac_try="$ac_cpp conftest.$ac_ext"
6613 case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null && {
6625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 }; then
6628 ac_header_preproc=yes
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_header_preproc=no
6636 rm -f conftest.err conftest.$ac_ext
6637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6; }
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6642 yes:no: )
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6647 ac_header_preproc=yes
6649 no:yes:* )
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6662 ( cat <<\_ASBOX
6663 ## -------------------------- ##
6664 ## Report this to cirix@fw.hu ##
6665 ## -------------------------- ##
6666 _ASBOX
6667 ) | sed "s/^/$as_me: WARNING: /" >&2
6669 esac
6670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 eval "$as_ac_Header=\$ac_header_preproc"
6677 ac_res=`eval echo '${'$as_ac_Header'}'`
6678 { echo "$as_me:$LINENO: result: $ac_res" >&5
6679 echo "${ECHO_T}$ac_res" >&6; }
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685 _ACEOF
6689 done
6695 for ac_func in strchr strrchr memset strtol
6697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6711 #define $ac_func innocuous_$ac_func
6713 /* System header to define __stub macros and hopefully few prototypes,
6714 which can conflict with char $ac_func (); below.
6715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6716 <limits.h> exists even on freestanding compilers. */
6718 #ifdef __STDC__
6719 # include <limits.h>
6720 #else
6721 # include <assert.h>
6722 #endif
6724 #undef $ac_func
6726 /* Override any GCC internal prototype to avoid an error.
6727 Use char because int might match the return type of a GCC
6728 builtin and then its argument prototype would still apply. */
6729 #ifdef __cplusplus
6730 extern "C"
6731 #endif
6732 char $ac_func ();
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined __stub_$ac_func || defined __stub___$ac_func
6737 choke me
6738 #endif
6741 main ()
6743 return $ac_func ();
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (ac_try="$ac_link"
6750 case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753 esac
6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_link") 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest$ac_exeext &&
6765 $as_test_x conftest$ac_exeext; then
6766 eval "$as_ac_var=yes"
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 eval "$as_ac_var=no"
6774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6775 conftest$ac_exeext conftest.$ac_ext
6777 ac_res=`eval echo '${'$as_ac_var'}'`
6778 { echo "$as_me:$LINENO: result: $ac_res" >&5
6779 echo "${ECHO_T}$ac_res" >&6; }
6780 if test `eval echo '${'$as_ac_var'}'` = yes; then
6781 cat >>confdefs.h <<_ACEOF
6782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6783 _ACEOF
6786 done
6788 { echo "$as_me:$LINENO: checking for working memcmp" >&5
6789 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
6790 if test "${ac_cv_func_memcmp_working+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 if test "$cross_compiling" = yes; then
6794 ac_cv_func_memcmp_working=no
6795 else
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 $ac_includes_default
6804 main ()
6807 /* Some versions of memcmp are not 8-bit clean. */
6808 char c0 = '\100', c1 = '\200', c2 = '\201';
6809 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6810 return 1;
6812 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6813 or more and with at least one buffer not starting on a 4-byte boundary.
6814 William Lewis provided this test program. */
6816 char foo[21];
6817 char bar[21];
6818 int i;
6819 for (i = 0; i < 4; i++)
6821 char *a = foo + i;
6822 char *b = bar + i;
6823 strcpy (a, "--------01111111");
6824 strcpy (b, "--------10000000");
6825 if (memcmp (a, b, 16) >= 0)
6826 return 1;
6828 return 0;
6832 return 0;
6834 _ACEOF
6835 rm -f conftest$ac_exeext
6836 if { (ac_try="$ac_link"
6837 case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840 esac
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_link") 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6846 { (case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_try") 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_func_memcmp_working=yes
6856 else
6857 echo "$as_me: program exited with status $ac_status" >&5
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 ( exit $ac_status )
6862 ac_cv_func_memcmp_working=no
6864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6869 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6870 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
6871 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6872 *" memcmp.$ac_objext "* ) ;;
6873 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6875 esac
6880 # Check whether --with-gtk was given.
6881 if test "${with_gtk+set}" = set; then
6882 withval=$with_gtk; with_gtk=$withval
6883 else
6884 with_gtk=yes
6888 # Check whether --with-sdl was given.
6889 if test "${with_sdl+set}" = set; then
6890 withval=$with_sdl; with_sdl=$withval
6891 else
6892 with_sdl=yes
6895 # Check whether --enable-sound was given.
6896 if test "${enable_sound+set}" = set; then
6897 enableval=$enable_sound; enable_sound=$enableval
6898 else
6899 enable_sound=yes
6903 if test x"$with_gtk" = "xno" -a x"$with_sdl" = "xno"; then
6904 { { echo "$as_me:$LINENO: error: You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." >&5
6905 echo "$as_me: error: You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." >&2;}
6906 { (exit 1); exit 1; }; }
6909 if test x"$enable_sound" = "xyes" -a x"$with_sdl" = "xno"; then
6910 { { echo "$as_me:$LINENO: error: Sound support requires the SDL libraries. Rerun with --with-sdl or --disable-sound." >&5
6911 echo "$as_me: error: Sound support requires the SDL libraries. Rerun with --with-sdl or --disable-sound." >&2;}
6912 { (exit 1); exit 1; }; }
6915 # Check whether --enable-glibtest was given.
6916 if test "${enable_glibtest+set}" = set; then
6917 enableval=$enable_glibtest;
6918 else
6919 enable_glibtest=yes
6923 pkg_config_args=glib-2.0
6924 for module in .
6926 case "$module" in
6927 gmodule)
6928 pkg_config_args="$pkg_config_args gmodule-2.0"
6930 gmodule-no-export)
6931 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
6933 gobject)
6934 pkg_config_args="$pkg_config_args gobject-2.0"
6936 gthread)
6937 pkg_config_args="$pkg_config_args gthread-2.0"
6939 gio*)
6940 pkg_config_args="$pkg_config_args $module-2.0"
6942 esac
6943 done
6947 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 case $PKG_CONFIG in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6972 done
6973 done
6974 IFS=$as_save_IFS
6977 esac
6979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6980 if test -n "$PKG_CONFIG"; then
6981 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6990 if test -z "$ac_cv_path_PKG_CONFIG"; then
6991 ac_pt_PKG_CONFIG=$PKG_CONFIG
6992 # Extract the first word of "pkg-config", so it can be a program name with args.
6993 set dummy pkg-config; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 case $ac_pt_PKG_CONFIG in
7000 [\\/]* | ?:[\\/]*)
7001 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7015 done
7016 done
7017 IFS=$as_save_IFS
7020 esac
7022 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7023 if test -n "$ac_pt_PKG_CONFIG"; then
7024 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7025 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
7026 else
7027 { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7031 if test "x$ac_pt_PKG_CONFIG" = x; then
7032 PKG_CONFIG=""
7033 else
7034 case $cross_compiling:$ac_tool_warned in
7035 yes:)
7036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7037 whose name does not start with the host triplet. If you think this
7038 configuration is useful to you, please write to autoconf@gnu.org." >&5
7039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7040 whose name does not start with the host triplet. If you think this
7041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7042 ac_tool_warned=yes ;;
7043 esac
7044 PKG_CONFIG=$ac_pt_PKG_CONFIG
7046 else
7047 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7051 if test -n "$PKG_CONFIG"; then
7052 _pkg_min_version=0.16
7053 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7054 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
7055 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7056 { echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6; }
7058 else
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7061 PKG_CONFIG=""
7066 no_glib=""
7068 if test "x$PKG_CONFIG" = x ; then
7069 no_glib=yes
7070 PKG_CONFIG=no
7073 min_glib_version=2.6.0
7074 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7075 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
7077 if test x$PKG_CONFIG != xno ; then
7078 ## don't try to run the test against uninstalled libtool libs
7079 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7080 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7081 enable_glibtest=no
7084 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7086 else
7087 no_glib=yes
7091 if test x"$no_glib" = x ; then
7092 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7093 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7094 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7096 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7097 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7098 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7100 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7102 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7104 if test "x$enable_glibtest" = "xyes" ; then
7105 ac_save_CFLAGS="$CFLAGS"
7106 ac_save_LIBS="$LIBS"
7107 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7108 LIBS="$GLIB_LIBS $LIBS"
7109 rm -f conf.glibtest
7110 if test "$cross_compiling" = yes; then
7111 echo $ac_n "cross compiling; assumed OK... $ac_c"
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7120 #include <glib.h>
7121 #include <stdio.h>
7122 #include <stdlib.h>
7125 main ()
7127 int major, minor, micro;
7128 char *tmp_version;
7130 system ("touch conf.glibtest");
7132 /* HP/UX 9 (%@#!) writes to sscanf strings */
7133 tmp_version = g_strdup("$min_glib_version");
7134 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7135 printf("%s, bad version string\n", "$min_glib_version");
7136 exit(1);
7139 if ((glib_major_version != $glib_config_major_version) ||
7140 (glib_minor_version != $glib_config_minor_version) ||
7141 (glib_micro_version != $glib_config_micro_version))
7143 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7144 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7145 glib_major_version, glib_minor_version, glib_micro_version);
7146 printf ("*** was found! If pkg-config was correct, then it is best\n");
7147 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7148 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7149 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7150 printf("*** required on your system.\n");
7151 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7152 printf("*** to point to the correct configuration files\n");
7154 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7155 (glib_minor_version != GLIB_MINOR_VERSION) ||
7156 (glib_micro_version != GLIB_MICRO_VERSION))
7158 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7159 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7160 printf("*** library (version %d.%d.%d)\n",
7161 glib_major_version, glib_minor_version, glib_micro_version);
7163 else
7165 if ((glib_major_version > major) ||
7166 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7167 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7169 return 0;
7171 else
7173 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7174 glib_major_version, glib_minor_version, glib_micro_version);
7175 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7176 major, minor, micro);
7177 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7178 printf("***\n");
7179 printf("*** If you have already installed a sufficiently new version, this error\n");
7180 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7181 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7182 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7183 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7184 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7185 printf("*** so that the correct libraries are found at run-time))\n");
7188 return 1;
7191 _ACEOF
7192 rm -f conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7194 case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197 esac
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_link") 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7203 { (case "(($ac_try" in
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7206 esac
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_try") 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7213 else
7214 echo "$as_me: program exited with status $ac_status" >&5
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ( exit $ac_status )
7219 no_glib=yes
7221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7225 CFLAGS="$ac_save_CFLAGS"
7226 LIBS="$ac_save_LIBS"
7229 if test "x$no_glib" = x ; then
7230 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7231 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7233 else
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7236 if test "$PKG_CONFIG" = "no" ; then
7237 echo "*** A new enough version of pkg-config was not found."
7238 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7239 else
7240 if test -f conf.glibtest ; then
7242 else
7243 echo "*** Could not run GLIB test program, checking why..."
7244 ac_save_CFLAGS="$CFLAGS"
7245 ac_save_LIBS="$LIBS"
7246 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7247 LIBS="$LIBS $GLIB_LIBS"
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7255 #include <glib.h>
7256 #include <stdio.h>
7259 main ()
7261 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7263 return 0;
7265 _ACEOF
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_link") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest$ac_exeext &&
7283 $as_test_x conftest$ac_exeext; then
7284 echo "*** The test program compiled, but did not run. This usually means"
7285 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7286 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7287 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7288 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7289 echo "*** is required on your system"
7290 echo "***"
7291 echo "*** If you have an old version installed, it is best to remove it, although"
7292 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7293 else
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 echo "*** The test program failed to compile or link. See the file config.log for the"
7298 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7302 conftest$ac_exeext conftest.$ac_ext
7303 CFLAGS="$ac_save_CFLAGS"
7304 LIBS="$ac_save_LIBS"
7307 GLIB_CFLAGS=""
7308 GLIB_LIBS=""
7309 GLIB_GENMARSHAL=""
7310 GOBJECT_QUERY=""
7311 GLIB_MKENUMS=""
7312 { { echo "$as_me:$LINENO: error: Test for GLIB failed. See the file 'INSTALL' for help." >&5
7313 echo "$as_me: error: Test for GLIB failed. See the file 'INSTALL' for help." >&2;}
7314 { (exit 1); exit 1; }; }
7321 rm -f conf.glibtest
7326 if test x"$with_gtk" = "xyes"; then
7327 GTK_TRUE=
7328 GTK_FALSE='#'
7329 else
7330 GTK_TRUE='#'
7331 GTK_FALSE=
7334 if test x"$with_gtk" = "xyes" ; then
7336 cat >>confdefs.h <<\_ACEOF
7337 #define USE_GTK
7338 _ACEOF
7340 # Check whether --enable-gtktest was given.
7341 if test "${enable_gtktest+set}" = set; then
7342 enableval=$enable_gtktest;
7343 else
7344 enable_gtktest=yes
7348 pkg_config_args=gtk+-2.0
7349 for module in .
7351 case "$module" in
7352 gthread)
7353 pkg_config_args="$pkg_config_args gthread-2.0"
7355 esac
7356 done
7358 no_gtk=""
7360 # Extract the first word of "pkg-config", so it can be a program name with args.
7361 set dummy pkg-config; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 case $PKG_CONFIG in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7383 done
7384 done
7385 IFS=$as_save_IFS
7387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7389 esac
7391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7392 if test -n "$PKG_CONFIG"; then
7393 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7394 echo "${ECHO_T}$PKG_CONFIG" >&6; }
7395 else
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7402 if test x$PKG_CONFIG != xno ; then
7403 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7405 else
7406 echo "*** pkg-config too old; version 0.7 or better required."
7407 no_gtk=yes
7408 PKG_CONFIG=no
7410 else
7411 no_gtk=yes
7414 min_gtk_version=2.12.0
7415 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
7416 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
7418 if test x$PKG_CONFIG != xno ; then
7419 ## don't try to run the test against uninstalled libtool libs
7420 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7421 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7422 enable_gtktest=no
7425 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7427 else
7428 no_gtk=yes
7432 if test x"$no_gtk" = x ; then
7433 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7434 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7435 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7437 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7439 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7441 if test "x$enable_gtktest" = "xyes" ; then
7442 ac_save_CFLAGS="$CFLAGS"
7443 ac_save_LIBS="$LIBS"
7444 CFLAGS="$CFLAGS $GTK_CFLAGS"
7445 LIBS="$GTK_LIBS $LIBS"
7446 rm -f conf.gtktest
7447 if test "$cross_compiling" = yes; then
7448 echo $ac_n "cross compiling; assumed OK... $ac_c"
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7457 #include <gtk/gtk.h>
7458 #include <stdio.h>
7459 #include <stdlib.h>
7462 main ()
7464 int major, minor, micro;
7465 char *tmp_version;
7467 system ("touch conf.gtktest");
7469 /* HP/UX 9 (%@#!) writes to sscanf strings */
7470 tmp_version = g_strdup("$min_gtk_version");
7471 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7472 printf("%s, bad version string\n", "$min_gtk_version");
7473 exit(1);
7476 if ((gtk_major_version != $gtk_config_major_version) ||
7477 (gtk_minor_version != $gtk_config_minor_version) ||
7478 (gtk_micro_version != $gtk_config_micro_version))
7480 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7481 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7482 gtk_major_version, gtk_minor_version, gtk_micro_version);
7483 printf ("*** was found! If pkg-config was correct, then it is best\n");
7484 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7485 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7486 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7487 printf("*** required on your system.\n");
7488 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7489 printf("*** to point to the correct configuration files\n");
7491 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7492 (gtk_minor_version != GTK_MINOR_VERSION) ||
7493 (gtk_micro_version != GTK_MICRO_VERSION))
7495 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7496 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7497 printf("*** library (version %d.%d.%d)\n",
7498 gtk_major_version, gtk_minor_version, gtk_micro_version);
7500 else
7502 if ((gtk_major_version > major) ||
7503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7504 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7506 return 0;
7508 else
7510 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7511 gtk_major_version, gtk_minor_version, gtk_micro_version);
7512 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7513 major, minor, micro);
7514 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7515 printf("***\n");
7516 printf("*** If you have already installed a sufficiently new version, this error\n");
7517 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7518 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7519 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7520 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7521 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7522 printf("*** so that the correct libraries are found at run-time))\n");
7525 return 1;
7528 _ACEOF
7529 rm -f conftest$ac_exeext
7530 if { (ac_try="$ac_link"
7531 case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_link") 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7540 { (case "(($ac_try" in
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7543 esac
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_try") 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7550 else
7551 echo "$as_me: program exited with status $ac_status" >&5
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ( exit $ac_status )
7556 no_gtk=yes
7558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7562 CFLAGS="$ac_save_CFLAGS"
7563 LIBS="$ac_save_LIBS"
7566 if test "x$no_gtk" = x ; then
7567 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7568 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7570 else
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7573 if test "$PKG_CONFIG" = "no" ; then
7574 echo "*** A new enough version of pkg-config was not found."
7575 echo "*** See http://pkgconfig.sourceforge.net"
7576 else
7577 if test -f conf.gtktest ; then
7579 else
7580 echo "*** Could not run GTK+ test program, checking why..."
7581 ac_save_CFLAGS="$CFLAGS"
7582 ac_save_LIBS="$LIBS"
7583 CFLAGS="$CFLAGS $GTK_CFLAGS"
7584 LIBS="$LIBS $GTK_LIBS"
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 #include <gtk/gtk.h>
7593 #include <stdio.h>
7596 main ()
7598 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext &&
7620 $as_test_x conftest$ac_exeext; then
7621 echo "*** The test program compiled, but did not run. This usually means"
7622 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7623 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7624 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7625 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7626 echo "*** is required on your system"
7627 echo "***"
7628 echo "*** If you have an old version installed, it is best to remove it, although"
7629 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 echo "*** The test program failed to compile or link. See the file config.log for the"
7635 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7639 conftest$ac_exeext conftest.$ac_ext
7640 CFLAGS="$ac_save_CFLAGS"
7641 LIBS="$ac_save_LIBS"
7644 GTK_CFLAGS=""
7645 GTK_LIBS=""
7646 { { echo "$as_me:$LINENO: error: Test for GTK+ failed. See the file 'INSTALL' for help." >&5
7647 echo "$as_me: error: Test for GTK+ failed. See the file 'INSTALL' for help." >&2;}
7648 { (exit 1); exit 1; }; }
7652 rm -f conf.gtktest
7658 if test x"$with_sdl" = "xyes"; then
7659 SDL_TRUE=
7660 SDL_FALSE='#'
7661 else
7662 SDL_TRUE='#'
7663 SDL_FALSE=
7666 if test x"$with_sdl" = "xyes" ; then
7668 cat >>confdefs.h <<\_ACEOF
7669 #define USE_SDL
7670 _ACEOF
7673 # Check whether --with-sdl-prefix was given.
7674 if test "${with_sdl_prefix+set}" = set; then
7675 withval=$with_sdl_prefix; sdl_prefix="$withval"
7676 else
7677 sdl_prefix=""
7681 # Check whether --with-sdl-exec-prefix was given.
7682 if test "${with_sdl_exec_prefix+set}" = set; then
7683 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7684 else
7685 sdl_exec_prefix=""
7688 # Check whether --enable-sdltest was given.
7689 if test "${enable_sdltest+set}" = set; then
7690 enableval=$enable_sdltest;
7691 else
7692 enable_sdltest=yes
7696 if test x$sdl_exec_prefix != x ; then
7697 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
7698 if test x${SDL_CONFIG+set} != xset ; then
7699 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7702 if test x$sdl_prefix != x ; then
7703 sdl_args="$sdl_args --prefix=$sdl_prefix"
7704 if test x${SDL_CONFIG+set} != xset ; then
7705 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7709 if test "x$prefix" != xNONE; then
7710 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7712 # Extract the first word of "sdl-config", so it can be a program name with args.
7713 set dummy sdl-config; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 case $SDL_CONFIG in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7735 done
7736 done
7737 IFS=$as_save_IFS
7739 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7741 esac
7743 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7744 if test -n "$SDL_CONFIG"; then
7745 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
7746 echo "${ECHO_T}$SDL_CONFIG" >&6; }
7747 else
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 min_sdl_version=1.2.0
7754 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
7755 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
7756 no_sdl=""
7757 if test "$SDL_CONFIG" = "no" ; then
7758 no_sdl=yes
7759 else
7760 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
7761 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
7763 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
7764 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7765 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
7766 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7767 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7769 if test "x$enable_sdltest" = "xyes" ; then
7770 ac_save_CFLAGS="$CFLAGS"
7771 ac_save_CXXFLAGS="$CXXFLAGS"
7772 ac_save_LIBS="$LIBS"
7773 CFLAGS="$CFLAGS $SDL_CFLAGS"
7774 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7775 LIBS="$LIBS $SDL_LIBS"
7776 rm -f conf.sdltest
7777 if test "$cross_compiling" = yes; then
7778 echo $ac_n "cross compiling; assumed OK... $ac_c"
7779 else
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 #include <stdio.h>
7788 #include <stdlib.h>
7789 #include <string.h>
7790 #include "SDL.h"
7792 char*
7793 my_strdup (char *str)
7795 char *new_str;
7797 if (str)
7799 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7800 strcpy (new_str, str);
7802 else
7803 new_str = NULL;
7805 return new_str;
7808 int main (int argc, char *argv[])
7810 int major, minor, micro;
7811 char *tmp_version;
7813 /* This hangs on some systems (?)
7814 system ("touch conf.sdltest");
7816 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7818 /* HP/UX 9 (%@#!) writes to sscanf strings */
7819 tmp_version = my_strdup("$min_sdl_version");
7820 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7821 printf("%s, bad version string\n", "$min_sdl_version");
7822 exit(1);
7825 if (($sdl_major_version > major) ||
7826 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7827 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7829 return 0;
7831 else
7833 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7834 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7835 printf("*** best to upgrade to the required version.\n");
7836 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7837 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7838 printf("*** config.cache before re-running configure\n");
7839 return 1;
7844 _ACEOF
7845 rm -f conftest$ac_exeext
7846 if { (ac_try="$ac_link"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_link") 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7866 else
7867 echo "$as_me: program exited with status $ac_status" >&5
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7871 ( exit $ac_status )
7872 no_sdl=yes
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7878 CFLAGS="$ac_save_CFLAGS"
7879 CXXFLAGS="$ac_save_CXXFLAGS"
7880 LIBS="$ac_save_LIBS"
7883 if test "x$no_sdl" = x ; then
7884 { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }
7887 else
7888 { echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6; }
7890 if test "$SDL_CONFIG" = "no" ; then
7891 echo "*** The sdl-config script installed by SDL could not be found"
7892 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7893 echo "*** your path, or set the SDL_CONFIG environment variable to the"
7894 echo "*** full path to sdl-config."
7895 else
7896 if test -f conf.sdltest ; then
7898 else
7899 echo "*** Could not run SDL test program, checking why..."
7900 CFLAGS="$CFLAGS $SDL_CFLAGS"
7901 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7902 LIBS="$LIBS $SDL_LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 #include <stdio.h>
7911 #include "SDL.h"
7913 int main(int argc, char *argv[])
7914 { return 0; }
7915 #undef main
7916 #define main K_and_R_C_main
7919 main ()
7921 return 0;
7923 return 0;
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest$ac_exeext &&
7943 $as_test_x conftest$ac_exeext; then
7944 echo "*** The test program compiled, but did not run. This usually means"
7945 echo "*** that the run-time linker is not finding SDL or finding the wrong"
7946 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7947 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7948 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7949 echo "*** is required on your system"
7950 echo "***"
7951 echo "*** If you have an old version installed, it is best to remove it, although"
7952 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 echo "*** The test program failed to compile or link. See the file config.log for the"
7958 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7959 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7960 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7964 conftest$ac_exeext conftest.$ac_ext
7965 CFLAGS="$ac_save_CFLAGS"
7966 CXXFLAGS="$ac_save_CXXFLAGS"
7967 LIBS="$ac_save_LIBS"
7970 SDL_CFLAGS=""
7971 SDL_LIBS=""
7972 { { echo "$as_me:$LINENO: error: Test for SDL failed. See the file 'INSTALL' for help." >&5
7973 echo "$as_me: error: Test for SDL failed. See the file 'INSTALL' for help." >&2;}
7974 { (exit 1); exit 1; }; }
7978 rm -f conf.sdltest
7984 if test x"$enable_sound" = "xyes"; then
7985 SOUND_TRUE=
7986 SOUND_FALSE='#'
7987 else
7988 SOUND_TRUE='#'
7989 SOUND_FALSE=
7992 if test x"$enable_sound" = "xyes" ; then
7994 cat >>confdefs.h <<\_ACEOF
7995 #define GD_SOUND
7996 _ACEOF
8000 ac_config_files="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile util/Makefile docs/Makefile sound/Makefile"
8002 cat >confcache <<\_ACEOF
8003 # This file is a shell script that caches the results of configure
8004 # tests run on this system so they can be shared between configure
8005 # scripts and configure runs, see configure's option --config-cache.
8006 # It is not useful on other systems. If it contains results you don't
8007 # want to keep, you may remove or edit it.
8009 # config.status only pays attention to the cache file if you give it
8010 # the --recheck option to rerun configure.
8012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8014 # following values.
8016 _ACEOF
8018 # The following way of writing the cache mishandles newlines in values,
8019 # but we know of no workaround that is simple, portable, and efficient.
8020 # So, we kill variables containing newlines.
8021 # Ultrix sh set writes to stderr and can't be redirected directly,
8022 # and sets the high bit in the cache file unless we assign to the vars.
8024 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8025 eval ac_val=\$$ac_var
8026 case $ac_val in #(
8027 *${as_nl}*)
8028 case $ac_var in #(
8029 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8030 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8031 esac
8032 case $ac_var in #(
8033 _ | IFS | as_nl) ;; #(
8034 *) $as_unset $ac_var ;;
8035 esac ;;
8036 esac
8037 done
8039 (set) 2>&1 |
8040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8041 *${as_nl}ac_space=\ *)
8042 # `set' does not quote correctly, so add quotes (double-quote
8043 # substitution turns \\\\ into \\, and sed turns \\ into \).
8044 sed -n \
8045 "s/'/'\\\\''/g;
8046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8047 ;; #(
8049 # `set' quotes correctly as required by POSIX, so do not add quotes.
8050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8052 esac |
8053 sort
8055 sed '
8056 /^ac_cv_env_/b end
8057 t clear
8058 :clear
8059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8060 t end
8061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8062 :end' >>confcache
8063 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8064 if test -w "$cache_file"; then
8065 test "x$cache_file" != "x/dev/null" &&
8066 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8067 echo "$as_me: updating cache $cache_file" >&6;}
8068 cat confcache >$cache_file
8069 else
8070 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8071 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8074 rm -f confcache
8076 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8077 # Let make expand exec_prefix.
8078 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8080 DEFS=-DHAVE_CONFIG_H
8082 ac_libobjs=
8083 ac_ltlibobjs=
8084 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8085 # 1. Remove the extension, and $U if already installed.
8086 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8087 ac_i=`echo "$ac_i" | sed "$ac_script"`
8088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8089 # will be set to the directory where LIBOBJS objects are built.
8090 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8091 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8092 done
8093 LIBOBJS=$ac_libobjs
8095 LTLIBOBJS=$ac_ltlibobjs
8098 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8099 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8100 Usually this means the macro was only invoked conditionally." >&5
8101 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8102 Usually this means the macro was only invoked conditionally." >&2;}
8103 { (exit 1); exit 1; }; }
8105 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8106 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8107 Usually this means the macro was only invoked conditionally." >&5
8108 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8109 Usually this means the macro was only invoked conditionally." >&2;}
8110 { (exit 1); exit 1; }; }
8112 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8113 { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
8114 Usually this means the macro was only invoked conditionally." >&5
8115 echo "$as_me: error: conditional \"GTK\" was never defined.
8116 Usually this means the macro was only invoked conditionally." >&2;}
8117 { (exit 1); exit 1; }; }
8119 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8120 { { echo "$as_me:$LINENO: error: conditional \"SDL\" was never defined.
8121 Usually this means the macro was only invoked conditionally." >&5
8122 echo "$as_me: error: conditional \"SDL\" was never defined.
8123 Usually this means the macro was only invoked conditionally." >&2;}
8124 { (exit 1); exit 1; }; }
8126 if test -z "${SOUND_TRUE}" && test -z "${SOUND_FALSE}"; then
8127 { { echo "$as_me:$LINENO: error: conditional \"SOUND\" was never defined.
8128 Usually this means the macro was only invoked conditionally." >&5
8129 echo "$as_me: error: conditional \"SOUND\" was never defined.
8130 Usually this means the macro was only invoked conditionally." >&2;}
8131 { (exit 1); exit 1; }; }
8134 : ${CONFIG_STATUS=./config.status}
8135 ac_clean_files_save=$ac_clean_files
8136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8137 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8138 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8139 cat >$CONFIG_STATUS <<_ACEOF
8140 #! $SHELL
8141 # Generated by $as_me.
8142 # Run this file to recreate the current configuration.
8143 # Compiler output produced by configure, useful for debugging
8144 # configure, is in config.log if it exists.
8146 debug=false
8147 ac_cs_recheck=false
8148 ac_cs_silent=false
8149 SHELL=\${CONFIG_SHELL-$SHELL}
8150 _ACEOF
8152 cat >>$CONFIG_STATUS <<\_ACEOF
8153 ## --------------------- ##
8154 ## M4sh Initialization. ##
8155 ## --------------------- ##
8157 # Be more Bourne compatible
8158 DUALCASE=1; export DUALCASE # for MKS sh
8159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8160 emulate sh
8161 NULLCMD=:
8162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8163 # is contrary to our usage. Disable this feature.
8164 alias -g '${1+"$@"}'='"$@"'
8165 setopt NO_GLOB_SUBST
8166 else
8167 case `(set -o) 2>/dev/null` in
8168 *posix*) set -o posix ;;
8169 esac
8176 # PATH needs CR
8177 # Avoid depending upon Character Ranges.
8178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8181 as_cr_digits='0123456789'
8182 as_cr_alnum=$as_cr_Letters$as_cr_digits
8184 # The user is always right.
8185 if test "${PATH_SEPARATOR+set}" != set; then
8186 echo "#! /bin/sh" >conf$$.sh
8187 echo "exit 0" >>conf$$.sh
8188 chmod +x conf$$.sh
8189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8190 PATH_SEPARATOR=';'
8191 else
8192 PATH_SEPARATOR=:
8194 rm -f conf$$.sh
8197 # Support unset when possible.
8198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8199 as_unset=unset
8200 else
8201 as_unset=false
8205 # IFS
8206 # We need space, tab and new line, in precisely that order. Quoting is
8207 # there to prevent editors from complaining about space-tab.
8208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8209 # splitting by setting IFS to empty value.)
8210 as_nl='
8212 IFS=" "" $as_nl"
8214 # Find who we are. Look in the path if we contain no directory separator.
8215 case $0 in
8216 *[\\/]* ) as_myself=$0 ;;
8217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8223 done
8224 IFS=$as_save_IFS
8227 esac
8228 # We did not find ourselves, most probably we were run as `sh COMMAND'
8229 # in which case we are not to be found in the path.
8230 if test "x$as_myself" = x; then
8231 as_myself=$0
8233 if test ! -f "$as_myself"; then
8234 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8235 { (exit 1); exit 1; }
8238 # Work around bugs in pre-3.0 UWIN ksh.
8239 for as_var in ENV MAIL MAILPATH
8240 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8241 done
8242 PS1='$ '
8243 PS2='> '
8244 PS4='+ '
8246 # NLS nuisances.
8247 for as_var in \
8248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8250 LC_TELEPHONE LC_TIME
8252 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8253 eval $as_var=C; export $as_var
8254 else
8255 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8257 done
8259 # Required to use basename.
8260 if expr a : '\(a\)' >/dev/null 2>&1 &&
8261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8262 as_expr=expr
8263 else
8264 as_expr=false
8267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8268 as_basename=basename
8269 else
8270 as_basename=false
8274 # Name of the executable.
8275 as_me=`$as_basename -- "$0" ||
8276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8277 X"$0" : 'X\(//\)$' \| \
8278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8279 echo X/"$0" |
8280 sed '/^.*\/\([^/][^/]*\)\/*$/{
8281 s//\1/
8284 /^X\/\(\/\/\)$/{
8285 s//\1/
8288 /^X\/\(\/\).*/{
8289 s//\1/
8292 s/.*/./; q'`
8294 # CDPATH.
8295 $as_unset CDPATH
8299 as_lineno_1=$LINENO
8300 as_lineno_2=$LINENO
8301 test "x$as_lineno_1" != "x$as_lineno_2" &&
8302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8305 # uniformly replaced by the line number. The first 'sed' inserts a
8306 # line-number line after each line using $LINENO; the second 'sed'
8307 # does the real work. The second script uses 'N' to pair each
8308 # line-number line with the line containing $LINENO, and appends
8309 # trailing '-' during substitution so that $LINENO is not a special
8310 # case at line end.
8311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8312 # scripts with optimization help from Paolo Bonzini. Blame Lee
8313 # E. McMahon (1931-1989) for sed's syntax. :-)
8314 sed -n '
8316 /[$]LINENO/=
8317 ' <$as_myself |
8318 sed '
8319 s/[$]LINENO.*/&-/
8320 t lineno
8322 :lineno
8324 :loop
8325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8326 t loop
8327 s/-\n.*//
8328 ' >$as_me.lineno &&
8329 chmod +x "$as_me.lineno" ||
8330 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8331 { (exit 1); exit 1; }; }
8333 # Don't try to exec as it changes $[0], causing all sort of problems
8334 # (the dirname of $[0] is not the place where we might find the
8335 # original and so on. Autoconf is especially sensitive to this).
8336 . "./$as_me.lineno"
8337 # Exit status is that of the last command.
8338 exit
8342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8343 as_dirname=dirname
8344 else
8345 as_dirname=false
8348 ECHO_C= ECHO_N= ECHO_T=
8349 case `echo -n x` in
8350 -n*)
8351 case `echo 'x\c'` in
8352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8353 *) ECHO_C='\c';;
8354 esac;;
8356 ECHO_N='-n';;
8357 esac
8359 if expr a : '\(a\)' >/dev/null 2>&1 &&
8360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8361 as_expr=expr
8362 else
8363 as_expr=false
8366 rm -f conf$$ conf$$.exe conf$$.file
8367 if test -d conf$$.dir; then
8368 rm -f conf$$.dir/conf$$.file
8369 else
8370 rm -f conf$$.dir
8371 mkdir conf$$.dir
8373 echo >conf$$.file
8374 if ln -s conf$$.file conf$$ 2>/dev/null; then
8375 as_ln_s='ln -s'
8376 # ... but there are two gotchas:
8377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8379 # In both cases, we have to default to `cp -p'.
8380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8381 as_ln_s='cp -p'
8382 elif ln conf$$.file conf$$ 2>/dev/null; then
8383 as_ln_s=ln
8384 else
8385 as_ln_s='cp -p'
8387 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8388 rmdir conf$$.dir 2>/dev/null
8390 if mkdir -p . 2>/dev/null; then
8391 as_mkdir_p=:
8392 else
8393 test -d ./-p && rmdir ./-p
8394 as_mkdir_p=false
8397 if test -x / >/dev/null 2>&1; then
8398 as_test_x='test -x'
8399 else
8400 if ls -dL / >/dev/null 2>&1; then
8401 as_ls_L_option=L
8402 else
8403 as_ls_L_option=
8405 as_test_x='
8406 eval sh -c '\''
8407 if test -d "$1"; then
8408 test -d "$1/.";
8409 else
8410 case $1 in
8411 -*)set "./$1";;
8412 esac;
8413 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8414 ???[sx]*):;;*)false;;esac;fi
8415 '\'' sh
8418 as_executable_p=$as_test_x
8420 # Sed expression to map a string onto a valid CPP name.
8421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8423 # Sed expression to map a string onto a valid variable name.
8424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8427 exec 6>&1
8429 # Save the log message, to keep $[0] and so on meaningful, and to
8430 # report actual input values of CONFIG_FILES etc. instead of their
8431 # values after options handling.
8432 ac_log="
8433 This file was extended by GDash $as_me 20080726, which was
8434 generated by GNU Autoconf 2.61. Invocation command line was
8436 CONFIG_FILES = $CONFIG_FILES
8437 CONFIG_HEADERS = $CONFIG_HEADERS
8438 CONFIG_LINKS = $CONFIG_LINKS
8439 CONFIG_COMMANDS = $CONFIG_COMMANDS
8440 $ $0 $@
8442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8445 _ACEOF
8447 cat >>$CONFIG_STATUS <<_ACEOF
8448 # Files that config.status was made for.
8449 config_files="$ac_config_files"
8450 config_headers="$ac_config_headers"
8451 config_commands="$ac_config_commands"
8453 _ACEOF
8455 cat >>$CONFIG_STATUS <<\_ACEOF
8456 ac_cs_usage="\
8457 \`$as_me' instantiates files from templates according to the
8458 current configuration.
8460 Usage: $0 [OPTIONS] [FILE]...
8462 -h, --help print this help, then exit
8463 -V, --version print version number and configuration settings, then exit
8464 -q, --quiet do not print progress messages
8465 -d, --debug don't remove temporary files
8466 --recheck update $as_me by reconfiguring in the same conditions
8467 --file=FILE[:TEMPLATE]
8468 instantiate the configuration file FILE
8469 --header=FILE[:TEMPLATE]
8470 instantiate the configuration header FILE
8472 Configuration files:
8473 $config_files
8475 Configuration headers:
8476 $config_headers
8478 Configuration commands:
8479 $config_commands
8481 Report bugs to <bug-autoconf@gnu.org>."
8483 _ACEOF
8484 cat >>$CONFIG_STATUS <<_ACEOF
8485 ac_cs_version="\\
8486 GDash config.status 20080726
8487 configured by $0, generated by GNU Autoconf 2.61,
8488 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8490 Copyright (C) 2006 Free Software Foundation, Inc.
8491 This config.status script is free software; the Free Software Foundation
8492 gives unlimited permission to copy, distribute and modify it."
8494 ac_pwd='$ac_pwd'
8495 srcdir='$srcdir'
8496 INSTALL='$INSTALL'
8497 _ACEOF
8499 cat >>$CONFIG_STATUS <<\_ACEOF
8500 # If no file are specified by the user, then we need to provide default
8501 # value. By we need to know if files were specified by the user.
8502 ac_need_defaults=:
8503 while test $# != 0
8505 case $1 in
8506 --*=*)
8507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8508 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8509 ac_shift=:
8512 ac_option=$1
8513 ac_optarg=$2
8514 ac_shift=shift
8516 esac
8518 case $ac_option in
8519 # Handling of the options.
8520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8521 ac_cs_recheck=: ;;
8522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8523 echo "$ac_cs_version"; exit ;;
8524 --debug | --debu | --deb | --de | --d | -d )
8525 debug=: ;;
8526 --file | --fil | --fi | --f )
8527 $ac_shift
8528 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8529 ac_need_defaults=false;;
8530 --header | --heade | --head | --hea )
8531 $ac_shift
8532 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8533 ac_need_defaults=false;;
8534 --he | --h)
8535 # Conflict between --help and --header
8536 { echo "$as_me: error: ambiguous option: $1
8537 Try \`$0 --help' for more information." >&2
8538 { (exit 1); exit 1; }; };;
8539 --help | --hel | -h )
8540 echo "$ac_cs_usage"; exit ;;
8541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8542 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8543 ac_cs_silent=: ;;
8545 # This is an error.
8546 -*) { echo "$as_me: error: unrecognized option: $1
8547 Try \`$0 --help' for more information." >&2
8548 { (exit 1); exit 1; }; } ;;
8550 *) ac_config_targets="$ac_config_targets $1"
8551 ac_need_defaults=false ;;
8553 esac
8554 shift
8555 done
8557 ac_configure_extra_args=
8559 if $ac_cs_silent; then
8560 exec 6>/dev/null
8561 ac_configure_extra_args="$ac_configure_extra_args --silent"
8564 _ACEOF
8565 cat >>$CONFIG_STATUS <<_ACEOF
8566 if \$ac_cs_recheck; then
8567 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8568 CONFIG_SHELL=$SHELL
8569 export CONFIG_SHELL
8570 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8573 _ACEOF
8574 cat >>$CONFIG_STATUS <<\_ACEOF
8575 exec 5>>config.log
8577 echo
8578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8579 ## Running $as_me. ##
8580 _ASBOX
8581 echo "$ac_log"
8582 } >&5
8584 _ACEOF
8585 cat >>$CONFIG_STATUS <<_ACEOF
8587 # INIT-COMMANDS
8589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8590 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8591 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8592 # from automake < 1.5.
8593 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8594 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8595 LINGUAS="${LINGUAS-%UNSET%}"
8598 _ACEOF
8600 cat >>$CONFIG_STATUS <<\_ACEOF
8602 # Handling of arguments.
8603 for ac_config_target in $ac_config_targets
8605 case $ac_config_target in
8606 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8607 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8608 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8610 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8611 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8612 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8613 "caves/Makefile") CONFIG_FILES="$CONFIG_FILES caves/Makefile" ;;
8614 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
8615 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
8616 "sound/Makefile") CONFIG_FILES="$CONFIG_FILES sound/Makefile" ;;
8618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8620 { (exit 1); exit 1; }; };;
8621 esac
8622 done
8625 # If the user did not use the arguments to specify the items to instantiate,
8626 # then the envvar interface is used. Set only those that are not.
8627 # We use the long form for the default assignment because of an extremely
8628 # bizarre bug on SunOS 4.1.3.
8629 if $ac_need_defaults; then
8630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8635 # Have a temporary directory for convenience. Make it in the build tree
8636 # simply because there is no reason against having it here, and in addition,
8637 # creating and moving files from /tmp can sometimes cause problems.
8638 # Hook for its removal unless debugging.
8639 # Note that there is a small window in which the directory will not be cleaned:
8640 # after its creation but before its name has been assigned to `$tmp'.
8641 $debug ||
8643 tmp=
8644 trap 'exit_status=$?
8645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8647 trap '{ (exit 1); exit 1; }' 1 2 13 15
8649 # Create a (secure) tmp directory for tmp files.
8652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8653 test -n "$tmp" && test -d "$tmp"
8654 } ||
8656 tmp=./conf$$-$RANDOM
8657 (umask 077 && mkdir "$tmp")
8658 } ||
8660 echo "$me: cannot create a temporary directory in ." >&2
8661 { (exit 1); exit 1; }
8665 # Set up the sed scripts for CONFIG_FILES section.
8668 # No need to generate the scripts if there are no CONFIG_FILES.
8669 # This happens for instance when ./config.status config.h
8670 if test -n "$CONFIG_FILES"; then
8672 _ACEOF
8676 ac_delim='%!_!# '
8677 for ac_last_try in false false false false false :; do
8678 cat >conf$$subs.sed <<_ACEOF
8679 SHELL!$SHELL$ac_delim
8680 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8681 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8682 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8683 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8684 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8685 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8686 exec_prefix!$exec_prefix$ac_delim
8687 prefix!$prefix$ac_delim
8688 program_transform_name!$program_transform_name$ac_delim
8689 bindir!$bindir$ac_delim
8690 sbindir!$sbindir$ac_delim
8691 libexecdir!$libexecdir$ac_delim
8692 datarootdir!$datarootdir$ac_delim
8693 datadir!$datadir$ac_delim
8694 sysconfdir!$sysconfdir$ac_delim
8695 sharedstatedir!$sharedstatedir$ac_delim
8696 localstatedir!$localstatedir$ac_delim
8697 includedir!$includedir$ac_delim
8698 oldincludedir!$oldincludedir$ac_delim
8699 docdir!$docdir$ac_delim
8700 infodir!$infodir$ac_delim
8701 htmldir!$htmldir$ac_delim
8702 dvidir!$dvidir$ac_delim
8703 pdfdir!$pdfdir$ac_delim
8704 psdir!$psdir$ac_delim
8705 libdir!$libdir$ac_delim
8706 localedir!$localedir$ac_delim
8707 mandir!$mandir$ac_delim
8708 DEFS!$DEFS$ac_delim
8709 ECHO_C!$ECHO_C$ac_delim
8710 ECHO_N!$ECHO_N$ac_delim
8711 ECHO_T!$ECHO_T$ac_delim
8712 LIBS!$LIBS$ac_delim
8713 build_alias!$build_alias$ac_delim
8714 host_alias!$host_alias$ac_delim
8715 target_alias!$target_alias$ac_delim
8716 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8717 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8718 INSTALL_DATA!$INSTALL_DATA$ac_delim
8719 CYGPATH_W!$CYGPATH_W$ac_delim
8720 PACKAGE!$PACKAGE$ac_delim
8721 VERSION!$VERSION$ac_delim
8722 ACLOCAL!$ACLOCAL$ac_delim
8723 AUTOCONF!$AUTOCONF$ac_delim
8724 AUTOMAKE!$AUTOMAKE$ac_delim
8725 AUTOHEADER!$AUTOHEADER$ac_delim
8726 MAKEINFO!$MAKEINFO$ac_delim
8727 install_sh!$install_sh$ac_delim
8728 STRIP!$STRIP$ac_delim
8729 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8730 mkdir_p!$mkdir_p$ac_delim
8731 AWK!$AWK$ac_delim
8732 SET_MAKE!$SET_MAKE$ac_delim
8733 am__leading_dot!$am__leading_dot$ac_delim
8734 AMTAR!$AMTAR$ac_delim
8735 am__tar!$am__tar$ac_delim
8736 am__untar!$am__untar$ac_delim
8737 CC!$CC$ac_delim
8738 CFLAGS!$CFLAGS$ac_delim
8739 LDFLAGS!$LDFLAGS$ac_delim
8740 CPPFLAGS!$CPPFLAGS$ac_delim
8741 ac_ct_CC!$ac_ct_CC$ac_delim
8742 EXEEXT!$EXEEXT$ac_delim
8743 OBJEXT!$OBJEXT$ac_delim
8744 DEPDIR!$DEPDIR$ac_delim
8745 am__include!$am__include$ac_delim
8746 am__quote!$am__quote$ac_delim
8747 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8748 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8749 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8750 CCDEPMODE!$CCDEPMODE$ac_delim
8751 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8752 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8753 CPP!$CPP$ac_delim
8754 GREP!$GREP$ac_delim
8755 EGREP!$EGREP$ac_delim
8756 USE_NLS!$USE_NLS$ac_delim
8757 MSGFMT!$MSGFMT$ac_delim
8758 GMSGFMT!$GMSGFMT$ac_delim
8759 MSGFMT_015!$MSGFMT_015$ac_delim
8760 GMSGFMT_015!$GMSGFMT_015$ac_delim
8761 XGETTEXT!$XGETTEXT$ac_delim
8762 XGETTEXT_015!$XGETTEXT_015$ac_delim
8763 MSGMERGE!$MSGMERGE$ac_delim
8764 build!$build$ac_delim
8765 build_cpu!$build_cpu$ac_delim
8766 build_vendor!$build_vendor$ac_delim
8767 build_os!$build_os$ac_delim
8768 host!$host$ac_delim
8769 host_cpu!$host_cpu$ac_delim
8770 host_vendor!$host_vendor$ac_delim
8771 host_os!$host_os$ac_delim
8772 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
8773 LIBICONV!$LIBICONV$ac_delim
8774 LTLIBICONV!$LTLIBICONV$ac_delim
8775 INTLLIBS!$INTLLIBS$ac_delim
8776 _ACEOF
8778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8779 break
8780 elif $ac_last_try; then
8781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8783 { (exit 1); exit 1; }; }
8784 else
8785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8787 done
8789 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8790 if test -n "$ac_eof"; then
8791 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8792 ac_eof=`expr $ac_eof + 1`
8795 cat >>$CONFIG_STATUS <<_ACEOF
8796 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8798 _ACEOF
8799 sed '
8800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8801 s/^/s,@/; s/!/@,|#_!!_#|/
8804 s/'"$ac_delim"'$/,g/; t
8805 s/$/\\/; p
8806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8807 ' >>$CONFIG_STATUS <conf$$subs.sed
8808 rm -f conf$$subs.sed
8809 cat >>$CONFIG_STATUS <<_ACEOF
8810 CEOF$ac_eof
8811 _ACEOF
8814 ac_delim='%!_!# '
8815 for ac_last_try in false false false false false :; do
8816 cat >conf$$subs.sed <<_ACEOF
8817 LIBINTL!$LIBINTL$ac_delim
8818 LTLIBINTL!$LTLIBINTL$ac_delim
8819 POSUB!$POSUB$ac_delim
8820 LIBOBJS!$LIBOBJS$ac_delim
8821 PKG_CONFIG!$PKG_CONFIG$ac_delim
8822 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
8823 GLIB_LIBS!$GLIB_LIBS$ac_delim
8824 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
8825 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
8826 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
8827 GTK_TRUE!$GTK_TRUE$ac_delim
8828 GTK_FALSE!$GTK_FALSE$ac_delim
8829 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
8830 GTK_LIBS!$GTK_LIBS$ac_delim
8831 SDL_TRUE!$SDL_TRUE$ac_delim
8832 SDL_FALSE!$SDL_FALSE$ac_delim
8833 SDL_CONFIG!$SDL_CONFIG$ac_delim
8834 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
8835 SDL_LIBS!$SDL_LIBS$ac_delim
8836 SOUND_TRUE!$SOUND_TRUE$ac_delim
8837 SOUND_FALSE!$SOUND_FALSE$ac_delim
8838 LTLIBOBJS!$LTLIBOBJS$ac_delim
8839 _ACEOF
8841 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
8842 break
8843 elif $ac_last_try; then
8844 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8845 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8846 { (exit 1); exit 1; }; }
8847 else
8848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8850 done
8852 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8853 if test -n "$ac_eof"; then
8854 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8855 ac_eof=`expr $ac_eof + 1`
8858 cat >>$CONFIG_STATUS <<_ACEOF
8859 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8861 _ACEOF
8862 sed '
8863 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8864 s/^/s,@/; s/!/@,|#_!!_#|/
8867 s/'"$ac_delim"'$/,g/; t
8868 s/$/\\/; p
8869 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8870 ' >>$CONFIG_STATUS <conf$$subs.sed
8871 rm -f conf$$subs.sed
8872 cat >>$CONFIG_STATUS <<_ACEOF
8873 :end
8874 s/|#_!!_#|//g
8875 CEOF$ac_eof
8876 _ACEOF
8879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8881 # trailing colons and then remove the whole line if VPATH becomes empty
8882 # (actually we leave an empty line to preserve line numbers).
8883 if test "x$srcdir" = x.; then
8884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8885 s/:*\$(srcdir):*/:/
8886 s/:*\${srcdir}:*/:/
8887 s/:*@srcdir@:*/:/
8888 s/^\([^=]*=[ ]*\):*/\1/
8889 s/:*$//
8890 s/^[^=]*=[ ]*$//
8894 cat >>$CONFIG_STATUS <<\_ACEOF
8895 fi # test -n "$CONFIG_FILES"
8898 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8900 case $ac_tag in
8901 :[FHLC]) ac_mode=$ac_tag; continue;;
8902 esac
8903 case $ac_mode$ac_tag in
8904 :[FHL]*:*);;
8905 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8906 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8907 { (exit 1); exit 1; }; };;
8908 :[FH]-) ac_tag=-:-;;
8909 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8910 esac
8911 ac_save_IFS=$IFS
8912 IFS=:
8913 set x $ac_tag
8914 IFS=$ac_save_IFS
8915 shift
8916 ac_file=$1
8917 shift
8919 case $ac_mode in
8920 :L) ac_source=$1;;
8921 :[FH])
8922 ac_file_inputs=
8923 for ac_f
8925 case $ac_f in
8926 -) ac_f="$tmp/stdin";;
8927 *) # Look for the file first in the build tree, then in the source tree
8928 # (if the path is not absolute). The absolute path cannot be DOS-style,
8929 # because $ac_f cannot contain `:'.
8930 test -f "$ac_f" ||
8931 case $ac_f in
8932 [\\/$]*) false;;
8933 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8934 esac ||
8935 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8936 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8937 { (exit 1); exit 1; }; };;
8938 esac
8939 ac_file_inputs="$ac_file_inputs $ac_f"
8940 done
8942 # Let's still pretend it is `configure' which instantiates (i.e., don't
8943 # use $as_me), people would be surprised to read:
8944 # /* config.h. Generated by config.status. */
8945 configure_input="Generated from "`IFS=:
8946 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8947 if test x"$ac_file" != x-; then
8948 configure_input="$ac_file. $configure_input"
8949 { echo "$as_me:$LINENO: creating $ac_file" >&5
8950 echo "$as_me: creating $ac_file" >&6;}
8953 case $ac_tag in
8954 *:-:* | *:-) cat >"$tmp/stdin";;
8955 esac
8957 esac
8959 ac_dir=`$as_dirname -- "$ac_file" ||
8960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8961 X"$ac_file" : 'X\(//\)[^/]' \| \
8962 X"$ac_file" : 'X\(//\)$' \| \
8963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8964 echo X"$ac_file" |
8965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8966 s//\1/
8969 /^X\(\/\/\)[^/].*/{
8970 s//\1/
8973 /^X\(\/\/\)$/{
8974 s//\1/
8977 /^X\(\/\).*/{
8978 s//\1/
8981 s/.*/./; q'`
8982 { as_dir="$ac_dir"
8983 case $as_dir in #(
8984 -*) as_dir=./$as_dir;;
8985 esac
8986 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8987 as_dirs=
8988 while :; do
8989 case $as_dir in #(
8990 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8991 *) as_qdir=$as_dir;;
8992 esac
8993 as_dirs="'$as_qdir' $as_dirs"
8994 as_dir=`$as_dirname -- "$as_dir" ||
8995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8996 X"$as_dir" : 'X\(//\)[^/]' \| \
8997 X"$as_dir" : 'X\(//\)$' \| \
8998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8999 echo X"$as_dir" |
9000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9001 s//\1/
9004 /^X\(\/\/\)[^/].*/{
9005 s//\1/
9008 /^X\(\/\/\)$/{
9009 s//\1/
9012 /^X\(\/\).*/{
9013 s//\1/
9016 s/.*/./; q'`
9017 test -d "$as_dir" && break
9018 done
9019 test -z "$as_dirs" || eval "mkdir $as_dirs"
9020 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9021 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9022 { (exit 1); exit 1; }; }; }
9023 ac_builddir=.
9025 case "$ac_dir" in
9026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9029 # A ".." for each directory in $ac_dir_suffix.
9030 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9031 case $ac_top_builddir_sub in
9032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9034 esac ;;
9035 esac
9036 ac_abs_top_builddir=$ac_pwd
9037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9038 # for backward compatibility:
9039 ac_top_builddir=$ac_top_build_prefix
9041 case $srcdir in
9042 .) # We are building in place.
9043 ac_srcdir=.
9044 ac_top_srcdir=$ac_top_builddir_sub
9045 ac_abs_top_srcdir=$ac_pwd ;;
9046 [\\/]* | ?:[\\/]* ) # Absolute name.
9047 ac_srcdir=$srcdir$ac_dir_suffix;
9048 ac_top_srcdir=$srcdir
9049 ac_abs_top_srcdir=$srcdir ;;
9050 *) # Relative name.
9051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9052 ac_top_srcdir=$ac_top_build_prefix$srcdir
9053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9054 esac
9055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9058 case $ac_mode in
9061 # CONFIG_FILE
9064 case $INSTALL in
9065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9067 esac
9068 _ACEOF
9070 cat >>$CONFIG_STATUS <<\_ACEOF
9071 # If the template does not know about datarootdir, expand it.
9072 # FIXME: This hack should be removed a few years after 2.60.
9073 ac_datarootdir_hack=; ac_datarootdir_seen=
9075 case `sed -n '/datarootdir/ {
9079 /@datadir@/p
9080 /@docdir@/p
9081 /@infodir@/p
9082 /@localedir@/p
9083 /@mandir@/p
9084 ' $ac_file_inputs` in
9085 *datarootdir*) ac_datarootdir_seen=yes;;
9086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9087 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9088 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9089 _ACEOF
9090 cat >>$CONFIG_STATUS <<_ACEOF
9091 ac_datarootdir_hack='
9092 s&@datadir@&$datadir&g
9093 s&@docdir@&$docdir&g
9094 s&@infodir@&$infodir&g
9095 s&@localedir@&$localedir&g
9096 s&@mandir@&$mandir&g
9097 s&\\\${datarootdir}&$datarootdir&g' ;;
9098 esac
9099 _ACEOF
9101 # Neutralize VPATH when `$srcdir' = `.'.
9102 # Shell code in configure.ac might set extrasub.
9103 # FIXME: do we really want to maintain this feature?
9104 cat >>$CONFIG_STATUS <<_ACEOF
9105 sed "$ac_vpsub
9106 $extrasub
9107 _ACEOF
9108 cat >>$CONFIG_STATUS <<\_ACEOF
9110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9111 s&@configure_input@&$configure_input&;t t
9112 s&@top_builddir@&$ac_top_builddir_sub&;t t
9113 s&@srcdir@&$ac_srcdir&;t t
9114 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9115 s&@top_srcdir@&$ac_top_srcdir&;t t
9116 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9117 s&@builddir@&$ac_builddir&;t t
9118 s&@abs_builddir@&$ac_abs_builddir&;t t
9119 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9120 s&@INSTALL@&$ac_INSTALL&;t t
9121 $ac_datarootdir_hack
9122 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9125 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9127 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9128 which seems to be undefined. Please make sure it is defined." >&5
9129 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9130 which seems to be undefined. Please make sure it is defined." >&2;}
9132 rm -f "$tmp/stdin"
9133 case $ac_file in
9134 -) cat "$tmp/out"; rm -f "$tmp/out";;
9135 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9136 esac
9140 # CONFIG_HEADER
9142 _ACEOF
9144 # Transform confdefs.h into a sed script `conftest.defines', that
9145 # substitutes the proper values into config.h.in to produce config.h.
9146 rm -f conftest.defines conftest.tail
9147 # First, append a space to every undef/define line, to ease matching.
9148 echo 's/$/ /' >conftest.defines
9149 # Then, protect against being on the right side of a sed subst, or in
9150 # an unquoted here document, in config.status. If some macros were
9151 # called several times there might be several #defines for the same
9152 # symbol, which is useless. But do not sort them, since the last
9153 # AC_DEFINE must be honored.
9154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9155 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9156 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9157 # PARAMS is the parameter list in the macro definition--in most cases, it's
9158 # just an empty string.
9159 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9160 ac_dB='\\)[ (].*,\\1define\\2'
9161 ac_dC=' '
9162 ac_dD=' ,'
9164 uniq confdefs.h |
9165 sed -n '
9166 t rset
9167 :rset
9168 s/^[ ]*#[ ]*define[ ][ ]*//
9169 t ok
9172 s/[\\&,]/\\&/g
9173 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9174 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9175 ' >>conftest.defines
9177 # Remove the space that was appended to ease matching.
9178 # Then replace #undef with comments. This is necessary, for
9179 # example, in the case of _POSIX_SOURCE, which is predefined and required
9180 # on some systems where configure will not decide to define it.
9181 # (The regexp can be short, since the line contains either #define or #undef.)
9182 echo 's/ $//
9183 s,^[ #]*u.*,/* & */,' >>conftest.defines
9185 # Break up conftest.defines:
9186 ac_max_sed_lines=50
9188 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9189 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9190 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9191 # et cetera.
9192 ac_in='$ac_file_inputs'
9193 ac_out='"$tmp/out1"'
9194 ac_nxt='"$tmp/out2"'
9196 while :
9198 # Write a here document:
9199 cat >>$CONFIG_STATUS <<_ACEOF
9200 # First, check the format of the line:
9201 cat >"\$tmp/defines.sed" <<\\CEOF
9202 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9203 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9205 :def
9206 _ACEOF
9207 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9208 echo 'CEOF
9209 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9210 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9211 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9212 grep . conftest.tail >/dev/null || break
9213 rm -f conftest.defines
9214 mv conftest.tail conftest.defines
9215 done
9216 rm -f conftest.defines conftest.tail
9218 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9219 cat >>$CONFIG_STATUS <<\_ACEOF
9220 if test x"$ac_file" != x-; then
9221 echo "/* $configure_input */" >"$tmp/config.h"
9222 cat "$ac_result" >>"$tmp/config.h"
9223 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9224 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9225 echo "$as_me: $ac_file is unchanged" >&6;}
9226 else
9227 rm -f $ac_file
9228 mv "$tmp/config.h" $ac_file
9230 else
9231 echo "/* $configure_input */"
9232 cat "$ac_result"
9234 rm -f "$tmp/out12"
9235 # Compute $ac_file's index in $config_headers.
9236 _am_stamp_count=1
9237 for _am_header in $config_headers :; do
9238 case $_am_header in
9239 $ac_file | $ac_file:* )
9240 break ;;
9242 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9243 esac
9244 done
9245 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
9246 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9247 X$ac_file : 'X\(//\)[^/]' \| \
9248 X$ac_file : 'X\(//\)$' \| \
9249 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
9250 echo X$ac_file |
9251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9252 s//\1/
9255 /^X\(\/\/\)[^/].*/{
9256 s//\1/
9259 /^X\(\/\/\)$/{
9260 s//\1/
9263 /^X\(\/\).*/{
9264 s//\1/
9267 s/.*/./; q'`/stamp-h$_am_stamp_count
9270 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9271 echo "$as_me: executing $ac_file commands" >&6;}
9273 esac
9276 case $ac_file$ac_mode in
9277 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9278 # Strip MF so we end up with the name of the file.
9279 mf=`echo "$mf" | sed -e 's/:.*$//'`
9280 # Check whether this is an Automake generated Makefile or not.
9281 # We used to match only the files named `Makefile.in', but
9282 # some people rename them; so instead we look at the file content.
9283 # Grep'ing the first line is not enough: some people post-process
9284 # each Makefile.in and add a new line on top of each file to say so.
9285 # So let's grep whole file.
9286 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9287 dirpart=`$as_dirname -- "$mf" ||
9288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9289 X"$mf" : 'X\(//\)[^/]' \| \
9290 X"$mf" : 'X\(//\)$' \| \
9291 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9292 echo X"$mf" |
9293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9294 s//\1/
9297 /^X\(\/\/\)[^/].*/{
9298 s//\1/
9301 /^X\(\/\/\)$/{
9302 s//\1/
9305 /^X\(\/\).*/{
9306 s//\1/
9309 s/.*/./; q'`
9310 else
9311 continue
9313 # Extract the definition of DEPDIR, am__include, and am__quote
9314 # from the Makefile without running `make'.
9315 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9316 test -z "$DEPDIR" && continue
9317 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9318 test -z "am__include" && continue
9319 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9320 # When using ansi2knr, U may be empty or an underscore; expand it
9321 U=`sed -n 's/^U = //p' < "$mf"`
9322 # Find all dependency output files, they are included files with
9323 # $(DEPDIR) in their names. We invoke sed twice because it is the
9324 # simplest approach to changing $(DEPDIR) to its actual value in the
9325 # expansion.
9326 for file in `sed -n "
9327 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9328 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9329 # Make sure the directory exists.
9330 test -f "$dirpart/$file" && continue
9331 fdir=`$as_dirname -- "$file" ||
9332 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9333 X"$file" : 'X\(//\)[^/]' \| \
9334 X"$file" : 'X\(//\)$' \| \
9335 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9336 echo X"$file" |
9337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9338 s//\1/
9341 /^X\(\/\/\)[^/].*/{
9342 s//\1/
9345 /^X\(\/\/\)$/{
9346 s//\1/
9349 /^X\(\/\).*/{
9350 s//\1/
9353 s/.*/./; q'`
9354 { as_dir=$dirpart/$fdir
9355 case $as_dir in #(
9356 -*) as_dir=./$as_dir;;
9357 esac
9358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9359 as_dirs=
9360 while :; do
9361 case $as_dir in #(
9362 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9363 *) as_qdir=$as_dir;;
9364 esac
9365 as_dirs="'$as_qdir' $as_dirs"
9366 as_dir=`$as_dirname -- "$as_dir" ||
9367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9368 X"$as_dir" : 'X\(//\)[^/]' \| \
9369 X"$as_dir" : 'X\(//\)$' \| \
9370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9371 echo X"$as_dir" |
9372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9373 s//\1/
9376 /^X\(\/\/\)[^/].*/{
9377 s//\1/
9380 /^X\(\/\/\)$/{
9381 s//\1/
9384 /^X\(\/\).*/{
9385 s//\1/
9388 s/.*/./; q'`
9389 test -d "$as_dir" && break
9390 done
9391 test -z "$as_dirs" || eval "mkdir $as_dirs"
9392 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9394 { (exit 1); exit 1; }; }; }
9395 # echo "creating $dirpart/$file"
9396 echo '# dummy' > "$dirpart/$file"
9397 done
9398 done
9400 "po-directories":C)
9401 for ac_file in $CONFIG_FILES; do
9402 # Support "outfile[:infile[:infile...]]"
9403 case "$ac_file" in
9404 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9405 esac
9406 # PO directories have a Makefile.in generated from Makefile.in.in.
9407 case "$ac_file" in */Makefile.in)
9408 # Adjust a relative srcdir.
9409 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9410 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9411 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9412 # In autoconf-2.13 it is called $ac_given_srcdir.
9413 # In autoconf-2.50 it is called $srcdir.
9414 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9415 case "$ac_given_srcdir" in
9416 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9417 /*) top_srcdir="$ac_given_srcdir" ;;
9418 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9419 esac
9420 # Treat a directory as a PO directory if and only if it has a
9421 # POTFILES.in file. This allows packages to have multiple PO
9422 # directories under different names or in different locations.
9423 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9424 rm -f "$ac_dir/POTFILES"
9425 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9426 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9427 POMAKEFILEDEPS="POTFILES.in"
9428 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9429 # on $ac_dir but don't depend on user-specified configuration
9430 # parameters.
9431 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9432 # The LINGUAS file contains the set of available languages.
9433 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9434 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9436 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9437 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9438 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9439 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9440 else
9441 # The set of available languages was given in configure.in.
9442 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9443 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9445 # Compute POFILES
9446 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9447 # Compute UPDATEPOFILES
9448 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9449 # Compute DUMMYPOFILES
9450 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9451 # Compute GMOFILES
9452 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9453 case "$ac_given_srcdir" in
9454 .) srcdirpre= ;;
9455 *) srcdirpre='$(srcdir)/' ;;
9456 esac
9457 POFILES=
9458 UPDATEPOFILES=
9459 DUMMYPOFILES=
9460 GMOFILES=
9461 for lang in $ALL_LINGUAS; do
9462 POFILES="$POFILES $srcdirpre$lang.po"
9463 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9464 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9465 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9466 done
9467 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9468 # environment variable.
9469 INST_LINGUAS=
9470 if test -n "$ALL_LINGUAS"; then
9471 for presentlang in $ALL_LINGUAS; do
9472 useit=no
9473 if test "%UNSET%" != "$LINGUAS"; then
9474 desiredlanguages="$LINGUAS"
9475 else
9476 desiredlanguages="$ALL_LINGUAS"
9478 for desiredlang in $desiredlanguages; do
9479 # Use the presentlang catalog if desiredlang is
9480 # a. equal to presentlang, or
9481 # b. a variant of presentlang (because in this case,
9482 # presentlang can be used as a fallback for messages
9483 # which are not translated in the desiredlang catalog).
9484 case "$desiredlang" in
9485 "$presentlang"*) useit=yes;;
9486 esac
9487 done
9488 if test $useit = yes; then
9489 INST_LINGUAS="$INST_LINGUAS $presentlang"
9491 done
9493 CATALOGS=
9494 if test -n "$INST_LINGUAS"; then
9495 for lang in $INST_LINGUAS; do
9496 CATALOGS="$CATALOGS $lang.gmo"
9497 done
9499 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9500 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9501 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9502 if test -f "$f"; then
9503 case "$f" in
9504 *.orig | *.bak | *~) ;;
9505 *) cat "$f" >> "$ac_dir/Makefile" ;;
9506 esac
9508 done
9511 esac
9512 done ;;
9514 esac
9515 done # for ac_tag
9518 { (exit 0); exit 0; }
9519 _ACEOF
9520 chmod +x $CONFIG_STATUS
9521 ac_clean_files=$ac_clean_files_save
9524 # configure is writing to config.log, and then calls config.status.
9525 # config.status does its own redirection, appending to config.log.
9526 # Unfortunately, on DOS this fails, as config.log is still kept open
9527 # by configure, so config.status won't be able to write to it; its
9528 # output is simply discarded. So we exec the FD to /dev/null,
9529 # effectively closing config.log, so it can be properly (re)opened and
9530 # appended to by config.status. When coming back to configure, we
9531 # need to make the FD available again.
9532 if test "$no_create" != yes; then
9533 ac_cs_success=:
9534 ac_config_status_args=
9535 test "$silent" = yes &&
9536 ac_config_status_args="$ac_config_status_args --quiet"
9537 exec 5>/dev/null
9538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9539 exec 5>>config.log
9540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9541 # would make configure fail if this is the last instruction.
9542 $ac_cs_success || { (exit 1); exit 1; }