2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GDash 20130317unstable.
5 # Report bugs to <http://code.google.com/p/gdash/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://code.google.com/p/gdash/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='gdash'
583 PACKAGE_VERSION
='20130317unstable'
584 PACKAGE_STRING
='GDash 20130317unstable'
585 PACKAGE_BUGREPORT
='http://code.google.com/p/gdash/'
588 ac_unique_file
="src/gtkmain.cpp"
590 # Factoring default headers for most tests.
591 ac_includes_default
="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars
='am__EXEEXT_FALSE
644 GLIB_COMPILE_RESOURCES
666 XGETTEXT_EXTRA_OPTIONS
674 GETTEXT_MACRO_VERSION
717 INSTALL_STRIP_PROGRAM
759 program_transform_name
772 enable_option_checking
774 enable_dependency_tracking
789 ac_precious_vars
='build_alias
809 # Initialize some variables set by options.
811 ac_init_version
=false
812 ac_unrecognized_opts
=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name
=s
,x
,x
,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir
='${exec_prefix}/bin'
838 sbindir
='${exec_prefix}/sbin'
839 libexecdir
='${exec_prefix}/libexec'
840 datarootdir
='${prefix}/share'
841 datadir
='${datarootdir}'
842 sysconfdir
='${prefix}/etc'
843 sharedstatedir
='${prefix}/com'
844 localstatedir
='${prefix}/var'
845 includedir
='${prefix}/include'
846 oldincludedir
='/usr/include'
847 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir
='${datarootdir}/info'
853 libdir
='${exec_prefix}/lib'
854 localedir
='${datarootdir}/locale'
855 mandir
='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\
$ac_option
869 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
880 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
882 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
885 -build |
--build |
--buil |
--bui |
--bu)
886 ac_prev
=build_alias
;;
887 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
888 build_alias
=$ac_optarg ;;
890 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
891 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
892 ac_prev
=cache_file
;;
893 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
894 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
895 cache_file
=$ac_optarg ;;
898 cache_file
=config.cache
;;
900 -datadir |
--datadir |
--datadi |
--datad)
902 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
903 datadir
=$ac_optarg ;;
905 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
906 |
--dataroo |
--dataro |
--datar)
907 ac_prev
=datarootdir
;;
908 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
909 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
910 datarootdir
=$ac_optarg ;;
912 -disable-* |
--disable-*)
913 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
916 as_fn_error $?
"invalid feature name: $ac_useropt"
917 ac_useropt_orig
=$ac_useropt
918 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep
=', ';;
926 eval enable_
$ac_useropt=no
;;
928 -docdir |
--docdir |
--docdi |
--doc |
--do)
930 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
933 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
935 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
938 -enable-* |
--enable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 as_fn_error $?
"invalid feature name: $ac_useropt"
943 ac_useropt_orig
=$ac_useropt
944 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep
=', ';;
952 eval enable_
$ac_useropt=\
$ac_optarg ;;
954 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
955 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
956 |
--exec |
--exe |
--ex)
957 ac_prev
=exec_prefix
;;
958 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
959 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
960 |
--exec=* |
--exe=* |
--ex=*)
961 exec_prefix
=$ac_optarg ;;
963 -gas |
--gas |
--ga |
--g)
964 # Obsolete; use --with-gas.
967 -help |
--help |
--hel |
--he |
-h)
969 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
970 ac_init_help
=recursive
;;
971 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
972 ac_init_help
=short
;;
974 -host |
--host |
--hos |
--ho)
975 ac_prev
=host_alias
;;
976 -host=* |
--host=* |
--hos=* |
--ho=*)
977 host_alias
=$ac_optarg ;;
979 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
981 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
983 htmldir
=$ac_optarg ;;
985 -includedir |
--includedir |
--includedi |
--included |
--include \
986 |
--includ |
--inclu |
--incl |
--inc)
987 ac_prev
=includedir
;;
988 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
989 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
990 includedir
=$ac_optarg ;;
992 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
994 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
995 infodir
=$ac_optarg ;;
997 -libdir |
--libdir |
--libdi |
--libd)
999 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1000 libdir
=$ac_optarg ;;
1002 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1003 |
--libexe |
--libex |
--libe)
1004 ac_prev
=libexecdir
;;
1005 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1006 |
--libexe=* |
--libex=* |
--libe=*)
1007 libexecdir
=$ac_optarg ;;
1009 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1010 ac_prev
=localedir
;;
1011 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1012 localedir
=$ac_optarg ;;
1014 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1015 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1016 ac_prev
=localstatedir
;;
1017 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1018 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1019 localstatedir
=$ac_optarg ;;
1021 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1023 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1024 mandir
=$ac_optarg ;;
1026 -nfp |
--nfp |
--nf)
1027 # Obsolete; use --without-fp.
1030 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1031 |
--no-cr |
--no-c |
-n)
1034 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1035 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1038 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1039 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1040 |
--oldin |
--oldi |
--old |
--ol |
--o)
1041 ac_prev
=oldincludedir
;;
1042 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1043 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1044 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1045 oldincludedir
=$ac_optarg ;;
1047 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1049 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1050 prefix
=$ac_optarg ;;
1052 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1053 |
--program-pre |
--program-pr |
--program-p)
1054 ac_prev
=program_prefix
;;
1055 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1056 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1057 program_prefix
=$ac_optarg ;;
1059 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1060 |
--program-suf |
--program-su |
--program-s)
1061 ac_prev
=program_suffix
;;
1062 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1063 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1064 program_suffix
=$ac_optarg ;;
1066 -program-transform-name |
--program-transform-name \
1067 |
--program-transform-nam |
--program-transform-na \
1068 |
--program-transform-n |
--program-transform- \
1069 |
--program-transform |
--program-transfor \
1070 |
--program-transfo |
--program-transf \
1071 |
--program-trans |
--program-tran \
1072 |
--progr-tra |
--program-tr |
--program-t)
1073 ac_prev
=program_transform_name
;;
1074 -program-transform-name=* |
--program-transform-name=* \
1075 |
--program-transform-nam=* |
--program-transform-na=* \
1076 |
--program-transform-n=* |
--program-transform-=* \
1077 |
--program-transform=* |
--program-transfor=* \
1078 |
--program-transfo=* |
--program-transf=* \
1079 |
--program-trans=* |
--program-tran=* \
1080 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1081 program_transform_name
=$ac_optarg ;;
1083 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1085 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1086 pdfdir
=$ac_optarg ;;
1088 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1090 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1093 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1094 |
-silent |
--silent |
--silen |
--sile |
--sil)
1097 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1099 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1101 sbindir
=$ac_optarg ;;
1103 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1104 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1105 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1107 ac_prev
=sharedstatedir
;;
1108 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1109 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1110 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1112 sharedstatedir
=$ac_optarg ;;
1114 -site |
--site |
--sit)
1116 -site=* |
--site=* |
--sit=*)
1119 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1121 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1122 srcdir
=$ac_optarg ;;
1124 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1125 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1126 ac_prev
=sysconfdir
;;
1127 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1128 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1129 sysconfdir
=$ac_optarg ;;
1131 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1132 ac_prev
=target_alias
;;
1133 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1134 target_alias
=$ac_optarg ;;
1136 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1139 -version |
--version |
--versio |
--versi |
--vers |
-V)
1140 ac_init_version
=: ;;
1143 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1146 as_fn_error $?
"invalid package name: $ac_useropt"
1147 ac_useropt_orig
=$ac_useropt
1148 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep
=', ';;
1156 eval with_
$ac_useropt=\
$ac_optarg ;;
1158 -without-* |
--without-*)
1159 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 as_fn_error $?
"invalid package name: $ac_useropt"
1163 ac_useropt_orig
=$ac_useropt
1164 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval with_
$ac_useropt=no
;;
1175 # Obsolete; use --with-x.
1178 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1179 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1180 ac_prev
=x_includes
;;
1181 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1182 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1183 x_includes
=$ac_optarg ;;
1185 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1186 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1187 ac_prev
=x_libraries
;;
1188 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1189 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1190 x_libraries
=$ac_optarg ;;
1192 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1197 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1201 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1203 eval $ac_envvar=\
$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 if test -n "$ac_prev"; then
1218 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $?
"missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1225 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 # Check all directory arguments for consistency.
1231 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val
=\$
$ac_var
1237 # Remove trailing slashes.
1240 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\
$ac_val;;
1243 # Be sure to have absolute directory names.
1245 [\\/$
]* | ?
:[\\/]* ) continue;;
1246 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1248 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1256 target
=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x
; then
1260 if test "x$build_alias" = x
; then
1261 cross_compiling
=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1268 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1270 test "$silent" = yes && exec 6>/dev
/null
1273 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di
=`ls -di .` &&
1275 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $?
"working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $?
"pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted
=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir
=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1313 ac_srcdir_defaulted
=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1317 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1331 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 for ac_var
in $ac_precious_vars; do
1334 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1336 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1347 \`configure' configures GDash 20130317unstable to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1410 --x-includes=DIR X include files are
in DIR
1411 --x-libraries=DIR X library files are
in DIR
1414 --build=BUILD configure
for building on BUILD
[guessed
]
1415 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive
) echo "Configuration of GDash 20130317unstable:";;
1426 --disable-option-checking ignore unrecognized
--enable/--with options
1427 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1428 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1429 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1430 --disable-silent-rules verbose build output (undo: `make V
=0')
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1435 --disable-glibtest do not try to compile and run a test GLIB program
1436 --disable-gtktest do not try to compile and run a test GTK+ program
1437 --disable-sdltest Do not try to compile and run a test SDL program
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-gnu-ld assume the C compiler uses GNU ld default=no
1443 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1444 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1445 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1446 --without-libintl-prefix don
't search for libintl in includedir and libdir
1447 --without-gtk disables using gtk+
1448 --without-sdl disables using sdl
1449 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1450 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1451 --with-x use the X Window System
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CXX C++ compiler command
1462 CXXFLAGS C++ compiler flags
1463 PKG_CONFIG path to pkg-config utility
1465 directories to add to pkg-config's search path
1467 path overriding pkg-config
's built-in search path
1469 XMKMF Path to xmkmf, Makefile generator for X Window System
1471 C compiler flags for LIBPNG, overriding pkg-config
1472 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1474 Use these variables to override the choices made by `configure' or to
help
1475 it to
find libraries and programs with nonstandard names
/locations.
1477 Report bugs to
<http
://code.google.com
/p
/gdash
/>.
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1491 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1493 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1498 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1501 ac_abs_top_builddir
=$ac_pwd
1502 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir
=$ac_top_build_prefix
1507 .
) # We are building in place.
1509 ac_top_srcdir
=$ac_top_builddir_sub
1510 ac_abs_top_srcdir
=$ac_pwd ;;
1511 [\\/]* | ?
:[\\/]* ) # Absolute name.
1512 ac_srcdir
=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir
=$srcdir
1514 ac_abs_top_srcdir
=$srcdir ;;
1516 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1520 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1540 GDash configure
20130317unstable
1541 generated by GNU Autoconf
2.69
1543 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1544 This configure
script is free software
; the Free Software Foundation
1545 gives unlimited permission to copy
, distribute and modify it.
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile
()
1559 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1560 rm -f conftest.
$ac_objext
1561 if { { ac_try
="$ac_compile"
1563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_cxx_try_compile LINENO
1593 # ----------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_cxx_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1602 *) ac_try_echo
=$ac_try;;
1604 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1608 if test -s conftest.err
; then
1609 grep -v '^ *+' conftest.err
>conftest.er1
1610 cat conftest.er1
>&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_cxx_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.
$ac_objext; then :
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.
$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status
$ac_retval
1628 } # ac_fn_cxx_try_compile
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1636 rm -f conftest.
$ac_objext conftest
$ac_exeext
1637 if { { ac_try
="$ac_link"
1639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_link
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1685 *) ac_try_echo
=$ac_try;;
1687 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 if test -s conftest.err
; then
1692 grep -v '^ *+' conftest.err
>conftest.er1
1693 cat conftest.er1
>&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i
&& {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.
$ac_ext >&5
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status
$ac_retval
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1719 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1720 if { { ac_try
="$ac_link"
1722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1733 *) ac_try_echo
=$ac_try;;
1735 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.
$ac_ext >&5
1747 ac_retval
=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status
$ac_retval
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func
()
1760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \
${$3+:} false
; then :
1764 $as_echo_n "(cached) " >&6
1766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1778 # include <limits.h>
1780 # include <assert.h>
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1807 if ac_fn_c_try_link
"$LINENO"; then :
1812 rm -f core conftest.err conftest.
$ac_objext \
1813 conftest
$ac_exeext conftest.
$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_func
1822 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1825 # the include files in INCLUDES and setting the cache variable VAR
1827 ac_fn_c_check_header_mongrel
()
1829 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1830 if eval \
${$3+:} false
; then :
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \
${$3+:} false
; then :
1834 $as_echo_n "(cached) " >&6
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1840 # Is the header compilable?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1842 $as_echo_n "checking $2 usability... " >&6; }
1843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1848 if ac_fn_c_try_compile
"$LINENO"; then :
1849 ac_header_compiler
=yes
1851 ac_header_compiler
=no
1853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1855 $as_echo "$ac_header_compiler" >&6; }
1857 # Is the header present?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1859 $as_echo_n "checking $2 presence... " >&6; }
1860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1864 if ac_fn_c_try_cpp
"$LINENO"; then :
1865 ac_header_preproc
=yes
1867 ac_header_preproc
=no
1869 rm -f conftest.err conftest.i conftest.
$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1871 $as_echo "$ac_header_preproc" >&6; }
1873 # So? What about this header?
1874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1877 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1883 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1885 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1887 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1889 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 ( $as_echo "## ---------------------------------------------- ##
1893 ## Report this to http://code.google.com/p/gdash/ ##
1894 ## ---------------------------------------------- ##"
1895 ) |
sed "s/^/$as_me: WARNING: /" >&2
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \
${$3+:} false
; then :
1901 $as_echo_n "(cached) " >&6
1903 eval "$3=\$ac_header_compiler"
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 } # ac_fn_c_check_header_mongrel
1913 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists and can be compiled using the include files in
1916 # INCLUDES, setting the cache variable VAR accordingly.
1917 ac_fn_c_check_header_compile
()
1919 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \
${$3+:} false
; then :
1923 $as_echo_n "(cached) " >&6
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1930 if ac_fn_c_try_compile
"$LINENO"; then :
1935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_header_compile
1944 # ac_fn_c_find_uintX_t LINENO BITS VAR
1945 # ------------------------------------
1946 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1948 ac_fn_c_find_uintX_t
()
1950 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1952 $as_echo_n "checking for uint$2_t... " >&6; }
1953 if eval \
${$3+:} false
; then :
1954 $as_echo_n "(cached) " >&6
1957 # Order is important - never check a type that is potentially smaller
1958 # than half of the expected target width.
1959 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1960 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $ac_includes_default
1967 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1969 return test_array [0];
1975 if ac_fn_c_try_compile
"$LINENO"; then :
1980 eval "$3=\$ac_type" ;;
1983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1984 if eval test \"x\$
"$3"\" = x
"no"; then :
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_find_uintX_t
1997 cat >config.log
<<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2001 It was created by GDash $as_me 20130317unstable, which was
2002 generated by GNU Autoconf 2.69. Invocation command line was
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir
=.
2038 $as_echo "PATH: $as_dir"
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2062 ac_must_keep_next
=false
2068 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2070 |
-silent |
--silent |
--silen |
--sile |
--sil)
2073 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2078 as_fn_append ac_configure_args1
" '$ac_arg'"
2079 if test $ac_must_keep_next = true
; then
2080 ac_must_keep_next
=false
# Got value, back to normal.
2083 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2084 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2085 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2086 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091 -* ) ac_must_keep_next
=true
;;
2094 as_fn_append ac_configure_args
" '$ac_arg'"
2099 { ac_configure_args0
=; unset ac_configure_args0
;}
2100 { ac_configure_args1
=; unset ac_configure_args1
;}
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log. We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2112 $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2116 # The following way of writing the cache mishandles newlines in values,
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2148 $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2152 for ac_var in $ac_subst_vars
2154 eval ac_val=\$$ac_var
2156 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -n "$ac_subst_files"; then
2163 $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2167 for ac_var
in $ac_subst_files
2169 eval ac_val
=\$
$ac_var
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 $as_echo "$ac_var='\''$ac_val'\''"
2178 if test -s confdefs.h; then
2179 $as_echo "## ----------- ##
2186 test "$ac_signal" != 0 &&
2187 $as_echo "$as_me: caught signal $ac_signal"
2188 $as_echo "$as_me: exit $exit_status"
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194 for ac_signal
in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest
* confdefs.h
2202 $as_echo "/* confdefs.h */" > confdefs.h
2204 # Predefined preprocessor variables.
2206 cat >>confdefs.h
<<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2210 cat >>confdefs.h
<<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214 cat >>confdefs.h
<<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2218 cat >>confdefs.h
<<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2222 cat >>confdefs.h
<<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226 cat >>confdefs.h
<<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2235 if test -n "$CONFIG_SITE"; then
2236 # We do not want a PATH search for config.site.
2237 case $CONFIG_SITE in #((
2238 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2239 */*) ac_site_file1
=$CONFIG_SITE;;
2240 *) ac_site_file1
=.
/$CONFIG_SITE;;
2242 elif test "x$prefix" != xNONE
; then
2243 ac_site_file1
=$prefix/share
/config.site
2244 ac_site_file2
=$prefix/etc
/config.site
2246 ac_site_file1
=$ac_default_prefix/share
/config.site
2247 ac_site_file2
=$ac_default_prefix/etc
/config.site
2249 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2251 test "x$ac_site_file" = xNONE
&& continue
2252 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2257 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $?
"failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2271 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2272 *) .
"./$cache_file";;
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2281 gt_needs
="$gt_needs "
2282 # Check that the precious variables saved in the cache have kept the same
2284 ac_cache_corrupted
=false
2285 for ac_var
in $ac_precious_vars; do
2286 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2287 eval ac_new_set
=\
$ac_env_${ac_var}_set
2288 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2289 eval ac_new_val
=\
$ac_env_${ac_var}_value
2290 case $ac_old_set,$ac_new_set in
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294 ac_cache_corrupted
=: ;;
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298 ac_cache_corrupted
=: ;;
2301 if test "x$ac_old_val" != "x$ac_new_val"; then
2302 # differences in whitespace do not lead to failure.
2303 ac_old_val_w
=`echo x $ac_old_val`
2304 ac_new_val_w
=`echo x $ac_new_val`
2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308 ac_cache_corrupted
=:
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312 eval $ac_var=\
$ac_old_val
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2315 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2317 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2320 # Pass precious variables to config.status.
2321 if test "$ac_new_set" = set; then
2323 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 *) ac_arg
=$ac_var=$ac_new_val ;;
2326 case " $ac_configure_args " in
2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2328 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2332 if $ac_cache_corrupted; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 ## -------------------- ##
2340 ## Main body of script. ##
2341 ## -------------------- ##
2344 ac_cpp
='$CPP $CPPFLAGS'
2345 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2351 am__api_version
='1.11'
2354 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355 if test -f "$ac_dir/install-sh"; then
2357 ac_install_sh
="$ac_aux_dir/install-sh -c"
2359 elif test -f "$ac_dir/install.sh"; then
2361 ac_install_sh
="$ac_aux_dir/install.sh -c"
2363 elif test -f "$ac_dir/shtool"; then
2365 ac_install_sh
="$ac_aux_dir/shtool install -c"
2369 if test -z "$ac_aux_dir"; then
2370 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 # These three variables are undocumented and unsupported,
2374 # and are intended to be withdrawn in a future Autoconf release.
2375 # They can cause serious problems if a builder's source tree is in a directory
2376 # whose full name contains unusual characters.
2377 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382 # Find a good install program. We prefer a C program (faster),
2383 # so one script is as good as another. But avoid the broken or
2384 # incompatible versions:
2385 # SysV /etc/install, /usr/sbin/install
2386 # SunOS /usr/etc/install
2387 # IRIX /sbin/install
2389 # AmigaOS /C/install, which installs bootblocks on floppy discs
2390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393 # OS/2's system install, which has a completely different semantic
2394 # ./install, which can be erroneously created by make from ./install.sh.
2395 # Reject install programs that cannot install multiple files.
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2397 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2398 if test -z "$INSTALL"; then
2399 if ${ac_cv_path_install+:} false
; then :
2400 $as_echo_n "(cached) " >&6
2402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir
=.
2407 # Account for people who put trailing slashes in PATH elements.
2408 case $as_dir/ in #((
2409 .
/ | .
// |
/[cC
]/* | \
2410 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2411 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2414 # OSF1 and SCO ODT 3.0 have their own names for install.
2415 # Don't use installbsd from OSF since it installs stuff as root
2417 for ac_prog
in ginstall scoinst
install; do
2418 for ac_exec_ext
in '' $ac_executable_extensions; do
2419 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2420 if test $ac_prog = install &&
2421 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2422 # AIX install. It has an incompatible calling convention.
2424 elif test $ac_prog = install &&
2425 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2426 # program-specific install script used by HP pwplus--don't use.
2429 rm -rf conftest.one conftest.two conftest.dir
2430 echo one
> conftest.one
2431 echo two
> conftest.two
2433 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2434 test -s conftest.one
&& test -s conftest.two
&&
2435 test -s conftest.dir
/conftest.one
&&
2436 test -s conftest.dir
/conftest.two
2438 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2451 rm -rf conftest.one conftest.two conftest.dir
2454 if test "${ac_cv_path_install+set}" = set; then
2455 INSTALL
=$ac_cv_path_install
2457 # As a last resort, use the slow shell script. Don't cache a
2458 # value for INSTALL within a source directory, because that will
2459 # break other packages using the cache if that directory is
2460 # removed, or if the value is a relative name.
2461 INSTALL
=$ac_install_sh
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2465 $as_echo "$INSTALL" >&6; }
2467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2468 # It thinks the first close brace ends the variable substitution.
2469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2473 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2476 $as_echo_n "checking whether build environment is sane... " >&6; }
2479 echo timestamp
> conftest.
file
2480 # Reject unsafe characters in $srcdir or the absolute working directory
2481 # name. Accept space and tab only in the latter.
2485 *[\\\"\
#\$\&\'\`$am_lf]*)
2486 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2489 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2490 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2493 # Do `set' in a subshell so we don't clobber the current shell's
2494 # arguments. Must try -L first in case configure is actually a
2495 # symlink; some systems play weird games with the mod time of symlinks
2496 # (eg FreeBSD returns the mod time of the symlink's containing
2499 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2500 if test "$*" = "X"; then
2502 set X
`ls -t "$srcdir/configure" conftest.file`
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2516 test "$2" = conftest.
file
2522 as_fn_error $?
"newly created file is older than distributed files!
2523 Check your system clock" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526 $as_echo "yes" >&6; }
2527 test "$program_prefix" != NONE
&&
2528 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE
&&
2531 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s,x,x', remove it if useless.
2534 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2535 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537 # expand $ac_aux_dir to an absolute path
2538 am_aux_dir
=`cd $ac_aux_dir && pwd`
2540 if test x
"${MISSING+set}" != xset
; then
2543 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2548 # Use eval to expand $SHELL
2549 if eval "$MISSING --run true"; then
2550 am_missing_run
="$MISSING --run "
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2554 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2557 if test x
"${install_sh}" != xset
; then
2560 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2566 # Installed binaries are usually stripped using `strip' when the user
2567 # run `make install-strip'. However `strip' might not be the right
2568 # tool to use in cross-compilation environments, therefore Automake
2569 # will honor the `STRIP' environment variable to overrule this program.
2570 if test "$cross_compiling" != no
; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2573 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_STRIP+:} false
; then :
2577 $as_echo_n "(cached) " >&6
2579 if test -n "$STRIP"; then
2580 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir
=.
2587 for ac_exec_ext
in '' $ac_executable_extensions; do
2588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 STRIP
=$ac_cv_prog_STRIP
2600 if test -n "$STRIP"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2602 $as_echo "$STRIP" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2610 if test -z "$ac_cv_prog_STRIP"; then
2612 # Extract the first word of "strip", so it can be a program name with args.
2613 set dummy strip
; ac_word
=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2617 $as_echo_n "(cached) " >&6
2619 if test -n "$ac_ct_STRIP"; then
2620 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir
=.
2627 for ac_exec_ext
in '' $ac_executable_extensions; do
2628 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_STRIP
="strip"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2640 if test -n "$ac_ct_STRIP"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2642 $as_echo "$ac_ct_STRIP" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2648 if test "x$ac_ct_STRIP" = x
; then
2651 case $cross_compiling:$ac_tool_warned in
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655 ac_tool_warned
=yes ;;
2660 STRIP
="$ac_cv_prog_STRIP"
2664 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2667 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2668 if test -z "$MKDIR_P"; then
2669 if ${ac_cv_path_mkdir+:} false
; then :
2670 $as_echo_n "(cached) " >&6
2672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2673 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2676 test -z "$as_dir" && as_dir
=.
2677 for ac_prog
in mkdir gmkdir
; do
2678 for ac_exec_ext
in '' $ac_executable_extensions; do
2679 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2680 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2681 'mkdir (GNU coreutils) '* | \
2682 'mkdir (coreutils) '* | \
2683 'mkdir (fileutils) '4.1*)
2684 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2694 test -d .
/--version && rmdir .
/--version
2695 if test "${ac_cv_path_mkdir+set}" = set; then
2696 MKDIR_P
="$ac_cv_path_mkdir -p"
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for MKDIR_P within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 MKDIR_P
="$ac_install_sh -d"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2706 $as_echo "$MKDIR_P" >&6; }
2710 [\\/$
]* | ?
:[\\/]*) ;;
2711 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2714 for ac_prog
in gawk mawk nawk
awk
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy
$ac_prog; ac_word
=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_AWK+:} false
; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$AWK"; then
2724 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_AWK
="$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$AWK"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2746 $as_echo "$AWK" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2753 test -n "$AWK" && break
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2757 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2760 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2761 $as_echo_n "(cached) " >&6
2763 cat >conftest.
make <<\_ACEOF
2766 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2769 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2773 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2777 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 $as_echo "yes" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 SET_MAKE
="MAKE=${MAKE-make}"
2787 rm -rf .tst
2>/dev
/null
2788 mkdir .tst
2>/dev
/null
2789 if test -d .tst
; then
2794 rmdir .tst
2>/dev
/null
2796 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2798 # is not polluted with repeated "-I."
2799 am__isrc
=' -I$(srcdir)'
2800 # test to see if srcdir already configured
2801 if test -f $srcdir/config.status
; then
2802 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2806 # test whether we have cygpath
2807 if test -z "$CYGPATH_W"; then
2808 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2809 CYGPATH_W
='cygpath -w'
2816 # Define the identity of the package.
2818 VERSION
='20130317unstable'
2821 cat >>confdefs.h
<<_ACEOF
2822 #define PACKAGE "$PACKAGE"
2826 cat >>confdefs.h
<<_ACEOF
2827 #define VERSION "$VERSION"
2830 # Some tools Automake needs.
2832 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2835 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2838 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2841 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2844 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2846 # We need awk for the "check" target. The system "awk" is bad on
2848 # Always define AMTAR for backward compatibility. Yes, it's still used
2849 # in the wild :-( We should find a proper way to deprecate it ...
2852 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
2858 ac_config_headers
="$ac_config_headers config.h"
2860 # Check whether --enable-silent-rules was given.
2861 if test "${enable_silent_rules+set}" = set; then :
2862 enableval
=$enable_silent_rules;
2865 case $enable_silent_rules in
2866 yes) AM_DEFAULT_VERBOSITY
=0;;
2867 no
) AM_DEFAULT_VERBOSITY
=1;;
2868 *) AM_DEFAULT_VERBOSITY
=0;;
2870 am_make
=${MAKE-make}
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2872 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2873 if ${am_cv_make_support_nested_variables+:} false
; then :
2874 $as_echo_n "(cached) " >&6
2876 if $as_echo 'TRUE=$(BAR$(V))
2882 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2883 am_cv_make_support_nested_variables
=yes
2885 am_cv_make_support_nested_variables
=no
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2889 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2890 if test $am_cv_make_support_nested_variables = yes; then
2892 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2894 AM_V
=$AM_DEFAULT_VERBOSITY
2895 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
2903 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_CC+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2944 if test -z "$ac_cv_prog_CC"; then
2946 # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CC="gcc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2976 $as_echo "$ac_ct_CC" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2982 if test "x$ac_ct_CC" = x; then
2985 case $cross_compiling:$ac_tool_warned in
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2997 if test -z "$CC"; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}cc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC="${ac_tool_prefix}cc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3038 if test -z "$CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_CC+:} false; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3058 ac_prog_rejected=yes
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test $ac_prog_rejected = yes; then
3070 # We found a bogon in the path, so make sure we never use it.
3071 set dummy $ac_cv_prog_CC
3073 if test $# != 0; then
3074 # We chose a different compiler from the bogus one.
3075 # However, it has the same basename, so the bogon will be chosen
3076 # first if we set CC to just the basename; use the full file name.
3078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 for ac_prog in cl.exe
3098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3135 test -n "$CC" && break
3138 if test -z "$CC"; then
3140 for ac_prog in cl.exe
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$ac_ct_CC"; then
3150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_ac_ct_CC="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3170 if test -n "$ac_ct_CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3172 $as_echo "$ac_ct_CC" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$ac_ct_CC" && break
3182 if test "x$ac_ct_CC" = x; then
3185 case $cross_compiling:$ac_tool_warned in
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189 ac_tool_warned=yes ;;
3198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3200 as_fn_error $? "no acceptable C compiler found in \$PATH
3201 See \`config.log
' for more details" "$LINENO" 5; }
3203 # Provide some information about the compiler.
3204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3207 for ac_option in --version -v -V -qversion; do
3208 { { ac_try="$ac_compiler $ac_option >&5"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3217 if test -s conftest.err; then
3219 ... rest of stderr output deleted ...
3220 10q
' conftest.err >conftest.er1
3221 cat conftest.er1 >&5
3223 rm -f conftest.er1 conftest.err
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3239 ac_clean_files_save=$ac_clean_files
3240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3241 # Try to create an executable without -o first, disregard a.out.
3242 # It will help us diagnose broken compilers, and finding out an intuition
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3245 $as_echo_n "checking whether the C compiler works... " >&6; }
3246 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3248 # The possible output files:
3249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252 for ac_file in $ac_files
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261 if { { ac_try="$ac_link_default"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link_default") 2>&5
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3277 for ac_file
in $ac_files ''
3279 test -f "$ac_file" ||
continue
3281 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3284 # We found the default executable, but exeext='' is most
3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3290 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 # We set ac_cv_exeext here because the later test for it is not
3293 # safe: cross compilers may not add the suffix if given an `-o'
3294 # argument, so we may need to know it at that point already.
3295 # Even if this section looks crufty: it has the advantage of
3302 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3307 if test -z "$ac_file"; then :
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 $as_echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.
$ac_ext >&5
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error
77 "C compiler cannot create executables
3316 See \`config.log' for more details" "$LINENO" 5; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3322 $as_echo_n "checking for C compiler default output file name... " >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3324 $as_echo "$ac_file" >&6; }
3325 ac_exeext
=$ac_cv_exeext
3327 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3328 ac_clean_files
=$ac_clean_files_save
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3330 $as_echo_n "checking for suffix of executables... " >&6; }
3331 if { { ac_try
="$ac_link"
3333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3343 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3344 # work properly (i.e., refer to `conftest.exe'), while it won't with
3346 for ac_file
in conftest.exe conftest conftest.
*; do
3347 test -f "$ac_file" ||
continue
3349 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3350 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3359 See \`config.log' for more details" "$LINENO" 5; }
3361 rm -f conftest conftest
$ac_cv_exeext
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3363 $as_echo "$ac_cv_exeext" >&6; }
3365 rm -f conftest.
$ac_ext
3366 EXEEXT
=$ac_cv_exeext
3368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3374 FILE *f = fopen ("conftest.out", "w");
3375 return ferror (f) || fclose (f) != 0;
3381 ac_clean_files
="$ac_clean_files conftest.out"
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3385 $as_echo_n "checking whether we are cross compiling... " >&6; }
3386 if test "$cross_compiling" != yes; then
3387 { { ac_try
="$ac_link"
3389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3398 if { ac_try='./conftest$ac_cv_exeext'
3399 { { case "(($ac_try" in
3400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3401 *) ac_try_echo
=$ac_try;;
3403 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_try") 2>&5
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; }; then
3411 if test "$cross_compiling" = maybe
; then
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $?
"cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details" "$LINENO" 5; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3426 ac_clean_files
=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3428 $as_echo_n "checking for suffix of object files... " >&6; }
3429 if ${ac_cv_objext+:} false
; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 rm -f conftest.o conftest.obj
3444 if { { ac_try
="$ac_compile"
3446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compile") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
3455 for ac_file in conftest.o conftest.obj conftest.*; do
3456 test -f "$ac_file" || continue;
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3470 See \
`config.log' for more details" "$LINENO" 5; }
3472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3475 $as_echo "$ac_cv_objext" >&6; }
3476 OBJEXT=$ac_cv_objext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3480 if ${ac_cv_c_compiler_gnu+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3497 if ac_fn_c_try_compile "$LINENO"; then :
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3508 if test $ac_compiler_gnu = yes; then
3513 ac_test_CFLAGS=${CFLAGS+set}
3514 ac_save_CFLAGS=$CFLAGS
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3517 if ${ac_cv_prog_cc_g+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 ac_save_c_werror_flag=$ac_c_werror_flag
3521 ac_c_werror_flag=yes
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3535 if ac_fn_c_try_compile "$LINENO"; then :
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_c_werror_flag=$ac_save_c_werror_flag
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_c_try_compile "$LINENO"; then :
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3577 $as_echo "$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579 CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581 if test "$GCC" = yes; then
3587 if test "$GCC" = yes; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3595 if ${ac_cv_prog_cc_c89+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 ac_cv_prog_cc_c89=no
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3606 struct buf { int x; };
3607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3608 static char *e (p, i)
3614 static char *f (char * (*g) (char **, int), char **p, ...)
3619 s = g (p, va_arg (v,int));
3624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3625 function prototypes and stuff, but not '\xHH' hex character constants.
3626 These don't provoke an error unfortunately, instead are silently treated
3627 as 'x'. The following induces an error, until -std is added to get
3628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3629 array size at least. It's necessary to write '\x00'==0 to get something
3630 that's true only with -std. */
3631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3634 inside strings and character constants. */
3636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638 int test (int i, double x);
3639 struct s1 {int (*f) (int a);};
3640 struct s2 {int (*f) (double a);};
3641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655 CC="$ac_save_CC $ac_arg"
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_cv_prog_cc_c89=$ac_arg
3659 rm -f core conftest.err conftest.$ac_objext
3660 test "x$ac_cv_prog_cc_c89" != "xno" && break
3662 rm -f conftest.$ac_ext
3667 case "x$ac_cv_prog_cc_c89" in
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3670 $as_echo "none needed" >&6; } ;;
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3673 $as_echo "unsupported" >&6; } ;;
3675 CC="$CC $ac_cv_prog_cc_c89"
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3677 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3679 if test "x$ac_cv_prog_cc_c89" != xno; then :
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 DEPDIR="${am__leading_dot}deps"
3690 ac_config_commands="$ac_config_commands depfiles"
3693 am_make=${MAKE-make}
3694 cat > confinc << 'END'
3696 @echo this is the am__doit target
3699 # If we don't find an include directive, just comment out the code.
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3701 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3705 # First try GNU make style include.
3706 echo "include confinc" > confmf
3707 # Ignore all kinds of additional output from `make'.
3708 case `$am_make -s -f confmf 2> /dev/null` in #(
3709 *the\ am__doit\ target*)
3715 # Now try BSD make style include.
3716 if test "$am__include" = "#"; then
3717 echo '.include
"confinc"' > confmf
3718 case `$am_make -s -f confmf 2> /dev/null` in #(
3719 *the\ am__doit\ target*)
3720 am__include=.include
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3729 $as_echo "$_am_result" >&6; }
3730 rm -f confinc confmf
3732 # Check whether --enable-dependency-tracking was given.
3733 if test "${enable_dependency_tracking+set}" = set; then :
3734 enableval=$enable_dependency_tracking;
3737 if test "x$enable_dependency_tracking" != xno; then
3738 am_depcomp="$ac_aux_dir/depcomp"
3742 if test "x$enable_dependency_tracking" != xno
; then
3752 depcc
="$CC" am_compiler_list
=
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3755 $as_echo_n "checking dependency style of $depcc... " >&6; }
3756 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
3757 $as_echo_n "(cached) " >&6
3759 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3760 # We make a subdir and do the tests there. Otherwise we can end up
3761 # making bogus files that we don't know about and never remove. For
3762 # instance it was reported that on HP-UX the gcc test will end up
3763 # making a dummy file named `D' -- because `-MD' means `put the output
3767 # Copy depcomp to subdir because otherwise we won't find it if we're
3768 # using a relative directory.
3769 cp "$am_depcomp" conftest.dir
3771 # We will build objects and dependencies in a subdirectory because
3772 # it helps to detect inapplicable dependency modes. For instance
3773 # both Tru64's cc and ICC support -MD to output dependencies as a
3774 # side effect of compilation, but ICC will put the dependencies in
3775 # the current directory while Tru64 will put them in the object
3779 am_cv_CC_dependencies_compiler_type
=none
3780 if test "$am_compiler_list" = ""; then
3781 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784 case " $depcc " in #(
3785 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
3788 for depmode
in $am_compiler_list; do
3789 # Setup a source with many dependencies, because some compilers
3790 # like to wrap large dependency lists on column 80 (with \), and
3791 # we should not choose a depcomp mode which is confused by this.
3793 # We need to recreate these files for each test, as the compiler may
3794 # overwrite some of them when testing with obscure command lines.
3795 # This happens at least with the AIX C compiler.
3797 for i
in 1 2 3 4 5 6; do
3798 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3800 # Solaris 8's {/usr,}/bin/sh.
3801 touch sub
/conftst
$i.h
3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806 # mode. It turns out that the SunPro C++ compiler does not properly
3807 # handle `-M -o', and we need to detect this. Also, some Intel
3808 # versions had trouble with output in subdirs
3809 am__obj
=sub
/conftest.
${OBJEXT-o}
3810 am__minus_obj
="-o $am__obj"
3813 # This depmode causes a compiler race in universal mode.
3814 test "$am__universal" = false ||
continue
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes
; then
3825 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
3826 # This compiler won't grok `-c -o', but also, the minuso test has
3827 # not run yet. These depmodes are late enough in the game, and
3828 # so weak that their functioning should not be impacted.
3829 am__obj
=conftest.
${OBJEXT-o}
3834 if depmode
=$depmode \
3835 source=sub
/conftest.c object
=$am__obj \
3836 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3837 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3838 >/dev
/null
2>conftest.err
&&
3839 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3840 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3841 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3842 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3852 am_cv_CC_dependencies_compiler_type
=$depmode
3861 am_cv_CC_dependencies_compiler_type
=none
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3866 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3867 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3870 test "x$enable_dependency_tracking" != xno \
3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3873 am__fastdepCC_FALSE
='#'
3875 am__fastdepCC_TRUE
='#'
3876 am__fastdepCC_FALSE
=
3881 ac_cpp
='$CXXCPP $CPPFLAGS'
3882 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3885 if test -z "$CXX"; then
3886 if test -n "$CCC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CXX+:} false
; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CXX"; then
3900 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$CXX"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3922 $as_echo "$CXX" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$CXX" && break
3932 if test -z "$CXX"; then
3934 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy
$ac_prog; ac_word
=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$ac_ct_CXX"; then
3944 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir
=.
3951 for ac_exec_ext
in '' $ac_executable_extensions; do
3952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3964 if test -n "$ac_ct_CXX"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3966 $as_echo "$ac_ct_CXX" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$ac_ct_CXX" && break
3976 if test "x$ac_ct_CXX" = x
; then
3979 case $cross_compiling:$ac_tool_warned in
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned
=yes ;;
3991 # Provide some information about the compiler.
3992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3995 for ac_option
in --version -v -V -qversion; do
3996 { { ac_try
="$ac_compiler $ac_option >&5"
3998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4005 if test -s conftest.err; then
4007 ... rest of stderr output deleted ...
4008 10q' conftest.err >conftest.er1
4009 cat conftest.er1 >&5
4011 rm -f conftest.er1 conftest.err
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4017 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4018 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4035 if ac_fn_cxx_try_compile "$LINENO"; then :
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4045 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4046 if test $ac_compiler_gnu = yes; then
4051 ac_test_CXXFLAGS=${CXXFLAGS+set}
4052 ac_save_CXXFLAGS=$CXXFLAGS
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4054 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4055 if ${ac_cv_prog_cxx_g+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4059 ac_cxx_werror_flag=yes
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 if ac_fn_cxx_try_compile "$LINENO"; then :
4074 ac_cv_prog_cxx_g=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4091 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_cxx_try_compile "$LINENO"; then :
4105 ac_cv_prog_cxx_g=yes
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4115 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4116 if test "$ac_test_CXXFLAGS" = set; then
4117 CXXFLAGS=$ac_save_CXXFLAGS
4118 elif test $ac_cv_prog_cxx_g = yes; then
4119 if test "$GXX" = yes; then
4125 if test "$GXX" = yes; then
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 depcc="$CXX" am_compiler_list=
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4140 $as_echo_n "checking dependency style of $depcc... " >&6; }
4141 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145 # We make a subdir and do the tests there. Otherwise we can end up
4146 # making bogus files that we don't know about and never remove. For
4147 # instance it was reported that on HP-UX the gcc test will end up
4148 # making a dummy file named `D
' -- because `-MD' means
`put the output
4152 # Copy depcomp to subdir because otherwise we won't find it if we're
4153 # using a relative directory.
4154 cp "$am_depcomp" conftest.dir
4156 # We will build objects and dependencies in a subdirectory because
4157 # it helps to detect inapplicable dependency modes. For instance
4158 # both Tru64's cc and ICC support -MD to output dependencies as a
4159 # side effect of compilation, but ICC will put the dependencies in
4160 # the current directory while Tru64 will put them in the object
4164 am_cv_CXX_dependencies_compiler_type=none
4165 if test "$am_compiler_list" = ""; then
4166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4169 case " $depcc " in #(
4170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4173 for depmode in $am_compiler_list; do
4174 # Setup a source with many dependencies, because some compilers
4175 # like to wrap large dependency lists on column 80 (with \), and
4176 # we should not choose a depcomp mode which is confused by this.
4178 # We need to recreate these files for each test, as the compiler may
4179 # overwrite some of them when testing with obscure command lines.
4180 # This happens at least with the AIX C compiler.
4182 for i in 1 2 3 4 5 6; do
4183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4184 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4185 # Solaris 8's
{/usr
,}/bin
/sh.
4186 touch sub
/conftst
$i.h
4188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4191 # mode. It turns out that the SunPro C++ compiler does not properly
4192 # handle `-M -o', and we need to detect this. Also, some Intel
4193 # versions had trouble with output in subdirs
4194 am__obj
=sub
/conftest.
${OBJEXT-o}
4195 am__minus_obj
="-o $am__obj"
4198 # This depmode causes a compiler race in universal mode.
4199 test "$am__universal" = false ||
continue
4202 # after this tag, mechanisms are not by side-effect, so they'll
4203 # only be used when explicitly requested
4204 if test "x$enable_dependency_tracking" = xyes
; then
4210 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4211 # This compiler won't grok `-c -o', but also, the minuso test has
4212 # not run yet. These depmodes are late enough in the game, and
4213 # so weak that their functioning should not be impacted.
4214 am__obj
=conftest.
${OBJEXT-o}
4219 if depmode
=$depmode \
4220 source=sub
/conftest.c object
=$am__obj \
4221 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4222 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4223 >/dev
/null
2>conftest.err
&&
4224 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4225 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4226 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4227 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4228 # icc doesn't choke on unknown options, it will just issue warnings
4229 # or remarks (even with -Werror). So we grep stderr for any message
4230 # that says an option was ignored or not supported.
4231 # When given -MP, icc 7.0 and 7.1 complain thusly:
4232 # icc: Command line warning: ignoring option '-M'; no argument required
4233 # The diagnosis changed in icc 8.0:
4234 # icc: Command line remark: option '-MP' not supported
4235 if (grep 'ignoring option' conftest.err ||
4236 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4237 am_cv_CXX_dependencies_compiler_type
=$depmode
4246 am_cv_CXX_dependencies_compiler_type
=none
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4252 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4255 test "x$enable_dependency_tracking" != xno \
4256 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4257 am__fastdepCXX_TRUE
=
4258 am__fastdepCXX_FALSE
='#'
4260 am__fastdepCXX_TRUE
='#'
4261 am__fastdepCXX_FALSE
=
4265 if test "x$CC" != xcc
; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
4275 $as_echo_n "(cached) " >&6
4277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4293 if { { case "(($ac_try" in
4294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4305 *) ac_try_echo
=$ac_try;;
4307 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4314 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
4315 if test "x$CC" != xcc
; then
4316 # Test first that cc exists at all.
4317 if { ac_try
='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4330 if { { case "(($ac_try" in
4331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4332 *) ac_try_echo
=$ac_try;;
4334 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4362 rm -f core conftest*
4365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4379 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4398 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4399 if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4405 $as_echo_n "(cached) " >&6
4409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4431 if test -n "$PKG_CONFIG"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4433 $as_echo "$PKG_CONFIG" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4441 if test -z "$ac_cv_path_PKG_CONFIG"; then
4442 ac_pt_PKG_CONFIG=$PKG_CONFIG
4443 # Extract the first word of "pkg-config", so it can be a program name with args.
4444 set dummy pkg-config; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 case $ac_pt_PKG_CONFIG in
4452 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4474 if test -n "$ac_pt_PKG_CONFIG"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4476 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4482 if test "x$ac_pt_PKG_CONFIG" = x; then
4485 case $cross_compiling:$ac_tool_warned in
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4491 PKG_CONFIG=$ac_pt_PKG_CONFIG
4494 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4498 if test -n "$PKG_CONFIG"; then
4499 _pkg_min_version=0.9.0
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4501 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4502 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504 $as_echo "yes" >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4514 $as_echo_n "checking for library containing strerror... " >&6; }
4515 if ${ac_cv_search_strerror+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 ac_func_search_save_LIBS=$LIBS
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4522 /* Override any GCC internal prototype to avoid an error.
4523 Use char because int might match the return type of a GCC
4524 builtin and then its argument prototype would still apply. */
4537 for ac_lib in '' cposix; do
4538 if test -z "$ac_lib"; then
4539 ac_res="none required"
4542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4544 if ac_fn_c_try_link "$LINENO"; then :
4545 ac_cv_search_strerror=$ac_res
4547 rm -f core conftest.err conftest.$ac_objext \
4549 if ${ac_cv_search_strerror+:} false; then :
4553 if ${ac_cv_search_strerror+:} false; then :
4556 ac_cv_search_strerror=no
4559 LIBS=$ac_func_search_save_LIBS
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4562 $as_echo "$ac_cv_search_strerror" >&6; }
4563 ac_res=$ac_cv_search_strerror
4564 if test "$ac_res" != no; then :
4565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4575 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4576 # On Suns, sometimes $CPP names a directory.
4577 if test -n "$CPP" && test -d "$CPP"; then
4580 if test -z "$CPP"; then
4581 if ${ac_cv_prog_CPP+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 # Double quotes because CPP needs to be expanded
4585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4588 for ac_c_preproc_warn_flag in '' yes
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
4592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
4594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4599 # include <limits.h>
4601 # include <assert.h>
4605 if ac_fn_c_try_cpp "$LINENO"; then :
4608 # Broken: fails on valid input.
4611 rm -f conftest.err conftest.i conftest.$ac_ext
4613 # OK, works on sane cases. Now check whether nonexistent headers
4614 # can be detected and how.
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <ac_nonexistent.h>
4619 if ac_fn_c_try_cpp "$LINENO"; then :
4620 # Broken: success on invalid input.
4623 # Passes both tests.
4627 rm -f conftest.err conftest.i conftest.$ac_ext
4630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4631 rm -f conftest.i conftest.err conftest.
$ac_ext
4632 if $ac_preproc_ok; then :
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4645 $as_echo "$CPP" >&6; }
4647 for ac_c_preproc_warn_flag
in '' yes
4649 # Use a header file that comes with gcc, so configuring glibc
4650 # with a fresh cross-compiler works.
4651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 # <limits.h> exists even on freestanding compilers.
4653 # On the NeXT, cc -E runs the code through the compiler's parser,
4654 # not just through cpp. "Syntax error" is here to catch this case.
4655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4658 # include <limits.h>
4660 # include <assert.h>
4664 if ac_fn_c_try_cpp
"$LINENO"; then :
4667 # Broken: fails on valid input.
4670 rm -f conftest.err conftest.i conftest.
$ac_ext
4672 # OK, works on sane cases. Now check whether nonexistent headers
4673 # can be detected and how.
4674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <ac_nonexistent.h>
4678 if ac_fn_c_try_cpp
"$LINENO"; then :
4679 # Broken: success on invalid input.
4682 # Passes both tests.
4686 rm -f conftest.err conftest.i conftest.
$ac_ext
4689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4690 rm -f conftest.i conftest.err conftest.
$ac_ext
4691 if $ac_preproc_ok; then :
4694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4696 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4697 See \`config.log' for more details" "$LINENO" 5; }
4701 ac_cpp
='$CPP $CPPFLAGS'
4702 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4708 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4709 if ${ac_cv_path_GREP+:} false
; then :
4710 $as_echo_n "(cached) " >&6
4712 if test -z "$GREP"; then
4713 ac_path_GREP_found
=false
4714 # Loop through the user's path and test for each of PROGNAME-LIST
4715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4716 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4719 test -z "$as_dir" && as_dir
=.
4720 for ac_prog
in grep ggrep
; do
4721 for ac_exec_ext
in '' $ac_executable_extensions; do
4722 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4723 as_fn_executable_p
"$ac_path_GREP" ||
continue
4724 # Check for GNU ac_path_GREP and select it if it is found.
4725 # Check for GNU $ac_path_GREP
4726 case `"$ac_path_GREP" --version 2>&1` in
4728 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4731 $as_echo_n 0123456789 >"conftest.in"
4734 cat "conftest.in" "conftest.in" >"conftest.tmp"
4735 mv "conftest.tmp" "conftest.in"
4736 cp "conftest.in" "conftest.nl"
4737 $as_echo 'GREP' >> "conftest.nl"
4738 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4739 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4740 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4741 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4742 # Best one so far, save it but keep looking for a better one
4743 ac_cv_path_GREP
="$ac_path_GREP"
4744 ac_path_GREP_max
=$ac_count
4746 # 10*(2^10) chars as input seems more than enough
4747 test $ac_count -gt 10 && break
4749 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4752 $ac_path_GREP_found && break 3
4757 if test -z "$ac_cv_path_GREP"; then
4758 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4761 ac_cv_path_GREP
=$GREP
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4766 $as_echo "$ac_cv_path_GREP" >&6; }
4767 GREP
="$ac_cv_path_GREP"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4771 $as_echo_n "checking for egrep... " >&6; }
4772 if ${ac_cv_path_EGREP+:} false
; then :
4773 $as_echo_n "(cached) " >&6
4775 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4776 then ac_cv_path_EGREP
="$GREP -E"
4778 if test -z "$EGREP"; then
4779 ac_path_EGREP_found
=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4782 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4785 test -z "$as_dir" && as_dir
=.
4786 for ac_prog
in egrep; do
4787 for ac_exec_ext
in '' $ac_executable_extensions; do
4788 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4789 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4790 # Check for GNU ac_path_EGREP and select it if it is found.
4791 # Check for GNU $ac_path_EGREP
4792 case `"$ac_path_EGREP" --version 2>&1` in
4794 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4797 $as_echo_n 0123456789 >"conftest.in"
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'EGREP' >> "conftest.nl"
4804 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4805 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4806 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4807 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_EGREP
="$ac_path_EGREP"
4810 ac_path_EGREP_max
=$ac_count
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4815 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4818 $ac_path_EGREP_found && break 3
4823 if test -z "$ac_cv_path_EGREP"; then
4824 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4827 ac_cv_path_EGREP
=$EGREP
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4833 $as_echo "$ac_cv_path_EGREP" >&6; }
4834 EGREP
="$ac_cv_path_EGREP"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4838 $as_echo_n "checking for ANSI C header files... " >&6; }
4839 if ${ac_cv_header_stdc+:} false
; then :
4840 $as_echo_n "(cached) " >&6
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4857 if ac_fn_c_try_compile
"$LINENO"; then :
4858 ac_cv_header_stdc
=yes
4860 ac_cv_header_stdc
=no
4862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 if test $ac_cv_header_stdc = yes; then
4865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872 $EGREP "memchr" >/dev
/null
2>&1; then :
4875 ac_cv_header_stdc
=no
4881 if test $ac_cv_header_stdc = yes; then
4882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 $EGREP "free" >/dev
/null
2>&1; then :
4892 ac_cv_header_stdc
=no
4898 if test $ac_cv_header_stdc = yes; then
4899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4900 if test "$cross_compiling" = yes; then :
4903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4907 #if ((' ' & 0x0FF) == 0x020)
4908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4911 # define ISLOWER(c) \
4912 (('a' <= (c) && (c) <= 'i') \
4913 || ('j' <= (c) && (c) <= 'r') \
4914 || ('s' <= (c) && (c) <= 'z'))
4915 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4923 for (i = 0; i < 256; i++)
4924 if (XOR (islower (i), ISLOWER (i))
4925 || toupper (i) != TOUPPER (i))
4930 if ac_fn_c_try_run
"$LINENO"; then :
4933 ac_cv_header_stdc
=no
4935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4942 $as_echo "$ac_cv_header_stdc" >&6; }
4943 if test $ac_cv_header_stdc = yes; then
4945 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4950 for ac_func
in setlocale
4952 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
4953 if test "x$ac_cv_func_setlocale" = xyes
; then :
4954 cat >>confdefs.h
<<_ACEOF
4955 #define HAVE_SETLOCALE 1
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4964 $as_echo_n "checking whether NLS is requested... " >&6; }
4965 # Check whether --enable-nls was given.
4966 if test "${enable_nls+set}" = set; then :
4967 enableval
=$enable_nls; USE_NLS
=$enableval
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4973 $as_echo "$USE_NLS" >&6; }
4978 GETTEXT_MACRO_VERSION
=0.18
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986 echo "#! /bin/sh" >conf$$.sh
4987 echo "exit 0" >>conf$$.sh
4989 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.
file <<_ASEOF
5003 chmod +x conf$$.
file
5004 if test -x conf$$.
file >/dev
/null
2>&1; then
5005 ac_executable_p
="test -x"
5007 ac_executable_p
="test -f"
5011 # Extract the first word of "msgfmt", so it can be a program name with args.
5012 set dummy msgfmt
; ac_word
=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_path_MSGFMT+:} false
; then :
5016 $as_echo_n "(cached) " >&6
5020 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5023 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5024 for ac_dir
in $PATH; do
5026 test -z "$ac_dir" && ac_dir
=.
5027 for ac_exec_ext
in '' $ac_executable_extensions; do
5028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
5031 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5032 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
5039 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
5043 MSGFMT
="$ac_cv_path_MSGFMT"
5044 if test "$MSGFMT" != ":"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5046 $as_echo "$MSGFMT" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5052 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5053 set dummy gmsgfmt
; ac_word
=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_path_GMSGFMT+:} false
; then :
5057 $as_echo_n "(cached) " >&6
5061 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5083 GMSGFMT
=$ac_cv_path_GMSGFMT
5084 if test -n "$GMSGFMT"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5086 $as_echo "$GMSGFMT" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5094 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5095 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
5096 *) MSGFMT_015
=$MSGFMT ;;
5099 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5100 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
5101 *) GMSGFMT_015
=$GMSGFMT ;;
5106 # Prepare PATH_SEPARATOR.
5107 # The user is always right.
5108 if test "${PATH_SEPARATOR+set}" != set; then
5109 echo "#! /bin/sh" >conf$$.sh
5110 echo "exit 0" >>conf$$.sh
5112 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5120 # Find out how to test for executable files. Don't use a zero-byte file,
5121 # as systems may use methods other than mode bits to determine executability.
5122 cat >conf$$.
file <<_ASEOF
5126 chmod +x conf$$.
file
5127 if test -x conf$$.
file >/dev
/null
2>&1; then
5128 ac_executable_p
="test -x"
5130 ac_executable_p
="test -f"
5134 # Extract the first word of "xgettext", so it can be a program name with args.
5135 set dummy xgettext
; ac_word
=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_path_XGETTEXT+:} false
; then :
5139 $as_echo_n "(cached) " >&6
5143 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5146 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5147 for ac_dir
in $PATH; do
5149 test -z "$ac_dir" && ac_dir
=.
5150 for ac_exec_ext
in '' $ac_executable_extensions; do
5151 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5152 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5153 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
5154 (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
5155 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
5162 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5166 XGETTEXT
="$ac_cv_path_XGETTEXT"
5167 if test "$XGETTEXT" != ":"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5169 $as_echo "$XGETTEXT" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5178 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
5179 *) XGETTEXT_015
=$XGETTEXT ;;
5184 # Prepare PATH_SEPARATOR.
5185 # The user is always right.
5186 if test "${PATH_SEPARATOR+set}" != set; then
5187 echo "#! /bin/sh" >conf$$.sh
5188 echo "exit 0" >>conf$$.sh
5190 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5198 # Find out how to test for executable files. Don't use a zero-byte file,
5199 # as systems may use methods other than mode bits to determine executability.
5200 cat >conf$$.
file <<_ASEOF
5204 chmod +x conf$$.
file
5205 if test -x conf$$.
file >/dev
/null
2>&1; then
5206 ac_executable_p
="test -x"
5208 ac_executable_p
="test -f"
5212 # Extract the first word of "msgmerge", so it can be a program name with args.
5213 set dummy msgmerge
; ac_word
=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_MSGMERGE+:} false
; then :
5217 $as_echo_n "(cached) " >&6
5221 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
5224 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5225 for ac_dir
in $PATH; do
5227 test -z "$ac_dir" && ac_dir
=.
5228 for ac_exec_ext
in '' $ac_executable_extensions; do
5229 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5230 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5231 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
5232 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
5239 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
5243 MSGMERGE
="$ac_cv_path_MSGMERGE"
5244 if test "$MSGMERGE" != ":"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5246 $as_echo "$MSGMERGE" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 test -n "$localedir" || localedir
='${datadir}/locale'
5256 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
5259 ac_config_commands
="$ac_config_commands po-directories"
5263 if test "X$prefix" = "XNONE"; then
5264 acl_final_prefix
="$ac_default_prefix"
5266 acl_final_prefix
="$prefix"
5268 if test "X$exec_prefix" = "XNONE"; then
5269 acl_final_exec_prefix
='${prefix}'
5271 acl_final_exec_prefix
="$exec_prefix"
5273 acl_save_prefix
="$prefix"
5274 prefix
="$acl_final_prefix"
5275 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
5276 prefix
="$acl_save_prefix"
5278 # Make sure we can run config.sub.
5279 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5280 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5283 $as_echo_n "checking build system type... " >&6; }
5284 if ${ac_cv_build+:} false
; then :
5285 $as_echo_n "(cached) " >&6
5287 ac_build_alias
=$build_alias
5288 test "x$ac_build_alias" = x
&&
5289 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5290 test "x$ac_build_alias" = x
&&
5291 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5292 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5293 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5297 $as_echo "$ac_cv_build" >&6; }
5298 case $ac_cv_build in
5300 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5303 ac_save_IFS
=$IFS; IFS
='-'
5309 # Remember, the first character of IFS is used to create $*,
5310 # except with old shells:
5313 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5317 $as_echo_n "checking host system type... " >&6; }
5318 if ${ac_cv_host+:} false
; then :
5319 $as_echo_n "(cached) " >&6
5321 if test "x$host_alias" = x
; then
5322 ac_cv_host
=$ac_cv_build
5324 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5325 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5330 $as_echo "$ac_cv_host" >&6; }
5333 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5336 ac_save_IFS
=$IFS; IFS
='-'
5342 # Remember, the first character of IFS is used to create $*,
5343 # except with old shells:
5346 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5350 # Check whether --with-gnu-ld was given.
5351 if test "${with_gnu_ld+set}" = set; then :
5352 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5357 # Prepare PATH_SEPARATOR.
5358 # The user is always right.
5359 if test "${PATH_SEPARATOR+set}" != set; then
5360 echo "#! /bin/sh" >conf$$.sh
5361 echo "exit 0" >>conf$$.sh
5363 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5371 if test "$GCC" = yes; then
5372 # Check if gcc -print-prog-name=ld gives a path.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5374 $as_echo_n "checking for ld used by GCC... " >&6; }
5377 # gcc leaves a trailing carriage return which upsets mingw
5378 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5380 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5383 # Accept absolute paths.
5384 [\\/]* |
[A-Za-z
]:[\\/]*)
5385 re_direlt
='/[^/][^/]*/\.\./'
5386 # Canonicalize the path of ld
5387 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5388 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5389 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5391 test -z "$LD" && LD
="$ac_prog"
5394 # If it fails, then pretend we aren't using GCC.
5398 # If it is relative, then search for the first ld in PATH.
5402 elif test "$with_gnu_ld" = yes; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5404 $as_echo_n "checking for GNU ld... " >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5407 $as_echo_n "checking for non-GNU ld... " >&6; }
5409 if ${acl_cv_path_LD+:} false
; then :
5410 $as_echo_n "(cached) " >&6
5412 if test -z "$LD"; then
5413 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5414 for ac_dir
in $PATH; do
5415 test -z "$ac_dir" && ac_dir
=.
5416 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5417 acl_cv_path_LD
="$ac_dir/$ac_prog"
5418 # Check to see if the program is GNU ld. I'd rather use --version,
5419 # but apparently some GNU ld's only accept -v.
5420 # Break only if it was the GNU/non-GNU ld that we prefer.
5421 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5422 *GNU
* |
*'with BFD'*)
5423 test "$with_gnu_ld" != no
&& break ;;
5425 test "$with_gnu_ld" != yes && break ;;
5431 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
5435 LD
="$acl_cv_path_LD"
5436 if test -n "$LD"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5438 $as_echo "$LD" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5443 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5446 if ${acl_cv_prog_gnu_ld+:} false
; then :
5447 $as_echo_n "(cached) " >&6
5449 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5450 case `$LD -v 2>&1 </dev/null` in
5451 *GNU
* |
*'with BFD'*)
5452 acl_cv_prog_gnu_ld
=yes ;;
5454 acl_cv_prog_gnu_ld
=no
;;
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5458 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5459 with_gnu_ld
=$acl_cv_prog_gnu_ld
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5465 $as_echo_n "checking for shared library run path origin... " >&6; }
5466 if ${acl_cv_rpath+:} false
; then :
5467 $as_echo_n "(cached) " >&6
5470 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
5471 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5478 $as_echo "$acl_cv_rpath" >&6; }
5480 acl_libext
="$acl_cv_libext"
5481 acl_shlibext
="$acl_cv_shlibext"
5482 acl_libname_spec
="$acl_cv_libname_spec"
5483 acl_library_names_spec
="$acl_cv_library_names_spec"
5484 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
5485 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
5486 acl_hardcode_direct
="$acl_cv_hardcode_direct"
5487 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
5488 # Check whether --enable-rpath was given.
5489 if test "${enable_rpath+set}" = set; then :
5490 enableval
=$enable_rpath; :
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5503 $as_echo_n "checking for 64-bit host... " >&6; }
5504 if ${gl_cv_solaris_64bit+:} false
; then :
5505 $as_echo_n "(cached) " >&6
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
5517 gl_cv_solaris_64bit
=yes
5519 gl_cv_solaris_64bit
=no
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5526 $as_echo "$gl_cv_solaris_64bit" >&6; }
5527 if test $gl_cv_solaris_64bit = yes; then
5528 acl_libdirstem
=lib
/64
5530 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
5531 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
5536 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5537 if test -n "$searchpath"; then
5538 acl_save_IFS
="${IFS= }"; IFS
=":"
5539 for searchdir
in $searchpath; do
5540 if test -d "$searchdir"; then
5541 case "$searchdir" in
5542 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
5544 # Better ignore directories of this form. They are misleading.
5546 *) searchdir
=`cd "$searchdir" && pwd`
5547 case "$searchdir" in
5548 */lib64
) acl_libdirstem
=lib64
;;
5557 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
5572 acl_save_prefix
="$prefix"
5573 prefix
="$acl_final_prefix"
5574 acl_save_exec_prefix
="$exec_prefix"
5575 exec_prefix
="$acl_final_exec_prefix"
5577 eval additional_includedir
=\"$includedir\"
5578 eval additional_libdir
=\"$libdir\"
5580 exec_prefix
="$acl_save_exec_prefix"
5581 prefix
="$acl_save_prefix"
5584 # Check whether --with-libiconv-prefix was given.
5585 if test "${with_libiconv_prefix+set}" = set; then :
5586 withval
=$with_libiconv_prefix;
5587 if test "X$withval" = "Xno"; then
5590 if test "X$withval" = "X"; then
5592 acl_save_prefix
="$prefix"
5593 prefix
="$acl_final_prefix"
5594 acl_save_exec_prefix
="$exec_prefix"
5595 exec_prefix
="$acl_final_exec_prefix"
5597 eval additional_includedir
=\"$includedir\"
5598 eval additional_libdir
=\"$libdir\"
5600 exec_prefix
="$acl_save_exec_prefix"
5601 prefix
="$acl_save_prefix"
5604 additional_includedir
="$withval/include"
5605 additional_libdir
="$withval/$acl_libdirstem"
5606 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5607 && ! test -d "$withval/$acl_libdirstem"; then
5608 additional_libdir
="$withval/$acl_libdirstem2"
5622 names_already_handled
=
5623 names_next_round
='iconv '
5624 while test -n "$names_next_round"; do
5625 names_this_round
="$names_next_round"
5627 for name
in $names_this_round; do
5629 for n
in $names_already_handled; do
5630 if test "$n" = "$name"; then
5635 if test -z "$already_handled"; then
5636 names_already_handled
="$names_already_handled $name"
5637 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5638 eval value
=\"\
$HAVE_LIB$uppername\"
5639 if test -n "$value"; then
5640 if test "$value" = yes; then
5641 eval value
=\"\
$LIB$uppername\"
5642 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
5643 eval value
=\"\
$LTLIB$uppername\"
5644 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
5653 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
5654 if test -n "$acl_shlibext"; then
5655 shrext
=".$acl_shlibext" # typically: shrext=.so
5659 if test $use_additional = yes; then
5660 dir
="$additional_libdir"
5661 if test -n "$acl_shlibext"; then
5662 if test -f "$dir/$libname$shrext"; then
5664 found_so
="$dir/$libname$shrext"
5666 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5667 ver
=`(cd "$dir" && \
5668 for f in "$libname$shrext".*; do echo "$f"; done \
5669 | sed -e "s,^$libname$shrext\\\\.,," \
5670 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5671 | sed 1q ) 2>/dev/null`
5672 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5674 found_so
="$dir/$libname$shrext.$ver"
5677 eval library_names
=\"$acl_library_names_spec\"
5678 for f
in $library_names; do
5679 if test -f "$dir/$f"; then
5688 if test "X$found_dir" = "X"; then
5689 if test -f "$dir/$libname.$acl_libext"; then
5691 found_a
="$dir/$libname.$acl_libext"
5694 if test "X$found_dir" != "X"; then
5695 if test -f "$dir/$libname.la"; then
5696 found_la
="$dir/$libname.la"
5700 if test "X$found_dir" = "X"; then
5701 for x
in $LDFLAGS $LTLIBICONV; do
5703 acl_save_prefix
="$prefix"
5704 prefix
="$acl_final_prefix"
5705 acl_save_exec_prefix
="$exec_prefix"
5706 exec_prefix
="$acl_final_exec_prefix"
5708 exec_prefix
="$acl_save_exec_prefix"
5709 prefix
="$acl_save_prefix"
5713 dir
=`echo "X$x" | sed -e 's/^X-L//'`
5714 if test -n "$acl_shlibext"; then
5715 if test -f "$dir/$libname$shrext"; then
5717 found_so
="$dir/$libname$shrext"
5719 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5720 ver
=`(cd "$dir" && \
5721 for f in "$libname$shrext".*; do echo "$f"; done \
5722 | sed -e "s,^$libname$shrext\\\\.,," \
5723 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5724 | sed 1q ) 2>/dev/null`
5725 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5727 found_so
="$dir/$libname$shrext.$ver"
5730 eval library_names
=\"$acl_library_names_spec\"
5731 for f
in $library_names; do
5732 if test -f "$dir/$f"; then
5741 if test "X$found_dir" = "X"; then
5742 if test -f "$dir/$libname.$acl_libext"; then
5744 found_a
="$dir/$libname.$acl_libext"
5747 if test "X$found_dir" != "X"; then
5748 if test -f "$dir/$libname.la"; then
5749 found_la
="$dir/$libname.la"
5754 if test "X$found_dir" != "X"; then
5759 if test "X$found_dir" != "X"; then
5760 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5761 if test "X$found_so" != "X"; then
5762 if test "$enable_rpath" = no \
5763 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
5764 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5765 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5768 for x
in $ltrpathdirs; do
5769 if test "X$x" = "X$found_dir"; then
5774 if test -z "$haveit"; then
5775 ltrpathdirs
="$ltrpathdirs $found_dir"
5777 if test "$acl_hardcode_direct" = yes; then
5778 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5780 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
5781 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5783 for x
in $rpathdirs; do
5784 if test "X$x" = "X$found_dir"; then
5789 if test -z "$haveit"; then
5790 rpathdirs
="$rpathdirs $found_dir"
5794 for x
in $LDFLAGS $LIBICONV; do
5796 acl_save_prefix
="$prefix"
5797 prefix
="$acl_final_prefix"
5798 acl_save_exec_prefix
="$exec_prefix"
5799 exec_prefix
="$acl_final_exec_prefix"
5801 exec_prefix
="$acl_save_exec_prefix"
5802 prefix
="$acl_save_prefix"
5804 if test "X$x" = "X-L$found_dir"; then
5809 if test -z "$haveit"; then
5810 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5812 if test "$acl_hardcode_minus_L" != no
; then
5813 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5815 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5821 if test "X$found_a" != "X"; then
5822 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5824 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5827 additional_includedir
=
5828 case "$found_dir" in
5829 */$acl_libdirstem |
*/$acl_libdirstem/)
5830 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5831 if test "$name" = 'iconv'; then
5832 LIBICONV_PREFIX
="$basedir"
5834 additional_includedir
="$basedir/include"
5836 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
5837 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5838 if test "$name" = 'iconv'; then
5839 LIBICONV_PREFIX
="$basedir"
5841 additional_includedir
="$basedir/include"
5844 if test "X$additional_includedir" != "X"; then
5845 if test "X$additional_includedir" != "X/usr/include"; then
5847 if test "X$additional_includedir" = "X/usr/local/include"; then
5848 if test -n "$GCC"; then
5850 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
5854 if test -z "$haveit"; then
5855 for x
in $CPPFLAGS $INCICONV; do
5857 acl_save_prefix
="$prefix"
5858 prefix
="$acl_final_prefix"
5859 acl_save_exec_prefix
="$exec_prefix"
5860 exec_prefix
="$acl_final_exec_prefix"
5862 exec_prefix
="$acl_save_exec_prefix"
5863 prefix
="$acl_save_prefix"
5865 if test "X$x" = "X-I$additional_includedir"; then
5870 if test -z "$haveit"; then
5871 if test -d "$additional_includedir"; then
5872 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5878 if test -n "$found_la"; then
5879 save_libdir
="$libdir"
5881 */* |
*\\*) .
"$found_la" ;;
5882 *) .
"./$found_la" ;;
5884 libdir
="$save_libdir"
5885 for dep
in $dependency_libs; do
5888 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5889 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5890 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5892 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5893 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5894 if test -n "$GCC"; then
5896 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
5900 if test -z "$haveit"; then
5902 for x
in $LDFLAGS $LIBICONV; do
5904 acl_save_prefix
="$prefix"
5905 prefix
="$acl_final_prefix"
5906 acl_save_exec_prefix
="$exec_prefix"
5907 exec_prefix
="$acl_final_exec_prefix"
5909 exec_prefix
="$acl_save_exec_prefix"
5910 prefix
="$acl_save_prefix"
5912 if test "X$x" = "X-L$additional_libdir"; then
5917 if test -z "$haveit"; then
5918 if test -d "$additional_libdir"; then
5919 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5923 for x
in $LDFLAGS $LTLIBICONV; do
5925 acl_save_prefix
="$prefix"
5926 prefix
="$acl_final_prefix"
5927 acl_save_exec_prefix
="$exec_prefix"
5928 exec_prefix
="$acl_final_exec_prefix"
5930 exec_prefix
="$acl_save_exec_prefix"
5931 prefix
="$acl_save_prefix"
5933 if test "X$x" = "X-L$additional_libdir"; then
5938 if test -z "$haveit"; then
5939 if test -d "$additional_libdir"; then
5940 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5947 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5948 if test "$enable_rpath" != no
; then
5950 for x
in $rpathdirs; do
5951 if test "X$x" = "X$dir"; then
5956 if test -z "$haveit"; then
5957 rpathdirs
="$rpathdirs $dir"
5960 for x
in $ltrpathdirs; do
5961 if test "X$x" = "X$dir"; then
5966 if test -z "$haveit"; then
5967 ltrpathdirs
="$ltrpathdirs $dir"
5972 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5975 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5978 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5979 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5985 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5986 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5992 if test "X$rpathdirs" != "X"; then
5993 if test -n "$acl_hardcode_libdir_separator"; then
5995 for found_dir
in $rpathdirs; do
5996 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5998 acl_save_libdir
="$libdir"
6000 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6001 libdir
="$acl_save_libdir"
6002 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6004 for found_dir
in $rpathdirs; do
6005 acl_save_libdir
="$libdir"
6007 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6008 libdir
="$acl_save_libdir"
6009 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6013 if test "X$ltrpathdirs" != "X"; then
6014 for found_dir
in $ltrpathdirs; do
6015 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6050 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6051 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
6052 $as_echo_n "(cached) " >&6
6054 gt_save_LIBS
="$LIBS"
6055 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <CoreFoundation/CFPreferences.h>
6062 CFPreferencesCopyAppValue(NULL, NULL)
6067 if ac_fn_c_try_link
"$LINENO"; then :
6068 gt_cv_func_CFPreferencesCopyAppValue
=yes
6070 gt_cv_func_CFPreferencesCopyAppValue
=no
6072 rm -f core conftest.err conftest.
$ac_objext \
6073 conftest
$ac_exeext conftest.
$ac_ext
6074 LIBS
="$gt_save_LIBS"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6077 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6078 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6080 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6084 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6085 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
6086 $as_echo_n "(cached) " >&6
6088 gt_save_LIBS
="$LIBS"
6089 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
6090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 #include <CoreFoundation/CFLocale.h>
6096 CFLocaleCopyCurrent();
6101 if ac_fn_c_try_link
"$LINENO"; then :
6102 gt_cv_func_CFLocaleCopyCurrent
=yes
6104 gt_cv_func_CFLocaleCopyCurrent
=no
6106 rm -f core conftest.err conftest.
$ac_objext \
6107 conftest
$ac_exeext conftest.
$ac_ext
6108 LIBS
="$gt_save_LIBS"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6111 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6112 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6114 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6118 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6119 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
6131 case " $gt_needs " in
6132 *" need-formatstring-macros "*) gt_api_version
=3 ;;
6133 *" need-ngettext "*) gt_api_version
=2 ;;
6134 *) gt_api_version
=1 ;;
6136 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
6137 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
6139 if test "$USE_NLS" = "yes"; then
6140 gt_use_preinstalled_gnugettext
=no
6143 if test $gt_api_version -ge 3; then
6144 gt_revision_test_code
='
6145 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6146 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6148 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6151 gt_revision_test_code
=
6153 if test $gt_api_version -ge 2; then
6154 gt_expression_test_code
=' + * ngettext ("", "", 0)'
6156 gt_expression_test_code
=
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6160 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6161 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
6162 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <libintl.h>
6167 $gt_revision_test_code
6168 extern int _nl_msg_cat_cntr;
6169 extern int *_nl_domain_bindings;
6173 bindtextdomain ("", "");
6174 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6179 if ac_fn_c_try_link
"$LINENO"; then :
6180 eval "$gt_func_gnugettext_libc=yes"
6182 eval "$gt_func_gnugettext_libc=no"
6184 rm -f core conftest.err conftest.
$ac_objext \
6185 conftest
$ac_exeext conftest.
$ac_ext
6187 eval ac_res
=\$
$gt_func_gnugettext_libc
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6191 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6197 am_save_CPPFLAGS
="$CPPFLAGS"
6199 for element
in $INCICONV; do
6201 for x
in $CPPFLAGS; do
6203 acl_save_prefix
="$prefix"
6204 prefix
="$acl_final_prefix"
6205 acl_save_exec_prefix
="$exec_prefix"
6206 exec_prefix
="$acl_final_exec_prefix"
6208 exec_prefix
="$acl_save_exec_prefix"
6209 prefix
="$acl_save_prefix"
6211 if test "X$x" = "X$element"; then
6216 if test -z "$haveit"; then
6217 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6223 $as_echo_n "checking for iconv... " >&6; }
6224 if ${am_cv_func_iconv+:} false
; then :
6225 $as_echo_n "(cached) " >&6
6228 am_cv_func_iconv
="no, consider installing GNU libiconv"
6230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6237 iconv_t cd = iconv_open("","");
6238 iconv(cd,NULL,NULL,NULL,NULL);
6244 if ac_fn_c_try_link
"$LINENO"; then :
6245 am_cv_func_iconv
=yes
6247 rm -f core conftest.err conftest.
$ac_objext \
6248 conftest
$ac_exeext conftest.
$ac_ext
6249 if test "$am_cv_func_iconv" != yes; then
6250 am_save_LIBS
="$LIBS"
6251 LIBS
="$LIBS $LIBICONV"
6252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6259 iconv_t cd = iconv_open("","");
6260 iconv(cd,NULL,NULL,NULL,NULL);
6266 if ac_fn_c_try_link
"$LINENO"; then :
6268 am_cv_func_iconv
=yes
6270 rm -f core conftest.err conftest.
$ac_objext \
6271 conftest
$ac_exeext conftest.
$ac_ext
6272 LIBS
="$am_save_LIBS"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6277 $as_echo "$am_cv_func_iconv" >&6; }
6278 if test "$am_cv_func_iconv" = yes; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6280 $as_echo_n "checking for working iconv... " >&6; }
6281 if ${am_cv_func_iconv_works+:} false
; then :
6282 $as_echo_n "(cached) " >&6
6285 am_save_LIBS
="$LIBS"
6286 if test $am_cv_lib_iconv = yes; then
6287 LIBS
="$LIBS $LIBICONV"
6289 if test "$cross_compiling" = yes; then :
6291 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
6292 *) am_cv_func_iconv_works
="guessing yes" ;;
6295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6302 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6305 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6306 if (cd_utf8_to_88591 != (iconv_t)(-1))
6308 static const char input[] = "\342\202\254"; /* EURO SIGN */
6310 const char *inptr = input;
6311 size_t inbytesleft = strlen (input);
6313 size_t outbytesleft = sizeof (buf);
6314 size_t res = iconv (cd_utf8_to_88591,
6315 (char **) &inptr, &inbytesleft,
6316 &outptr, &outbytesleft);
6321 /* Test against Solaris 10 bug: Failures are not distinguishable from
6322 successful returns. */
6324 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6325 if (cd_ascii_to_88591 != (iconv_t)(-1))
6327 static const char input[] = "\263";
6329 const char *inptr = input;
6330 size_t inbytesleft = strlen (input);
6332 size_t outbytesleft = sizeof (buf);
6333 size_t res = iconv (cd_ascii_to_88591,
6334 (char **) &inptr, &inbytesleft,
6335 &outptr, &outbytesleft);
6340 #if 0 /* This bug could be worked around by the caller. */
6341 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6343 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6344 if (cd_88591_to_utf8 != (iconv_t)(-1))
6346 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6348 const char *inptr = input;
6349 size_t inbytesleft = strlen (input);
6351 size_t outbytesleft = sizeof (buf);
6352 size_t res = iconv (cd_88591_to_utf8,
6353 (char **) &inptr, &inbytesleft,
6354 &outptr, &outbytesleft);
6360 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6362 if (/* Try standardized names. */
6363 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6364 /* Try IRIX, OSF/1 names. */
6365 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6366 /* Try AIX names. */
6367 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6368 /* Try HP-UX names. */
6369 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6374 if ac_fn_c_try_run
"$LINENO"; then :
6375 am_cv_func_iconv_works
=yes
6377 am_cv_func_iconv_works
=no
6379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6383 LIBS
="$am_save_LIBS"
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6387 $as_echo "$am_cv_func_iconv_works" >&6; }
6388 case "$am_cv_func_iconv_works" in
6389 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
6390 *) am_func_iconv
=yes ;;
6393 am_func_iconv
=no am_cv_lib_iconv
=no
6395 if test "$am_func_iconv" = yes; then
6397 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6400 if test "$am_cv_lib_iconv" = yes; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6402 $as_echo_n "checking how to link with libiconv... " >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6404 $as_echo "$LIBICONV" >&6; }
6406 CPPFLAGS
="$am_save_CPPFLAGS"
6423 acl_save_prefix
="$prefix"
6424 prefix
="$acl_final_prefix"
6425 acl_save_exec_prefix
="$exec_prefix"
6426 exec_prefix
="$acl_final_exec_prefix"
6428 eval additional_includedir
=\"$includedir\"
6429 eval additional_libdir
=\"$libdir\"
6431 exec_prefix
="$acl_save_exec_prefix"
6432 prefix
="$acl_save_prefix"
6435 # Check whether --with-libintl-prefix was given.
6436 if test "${with_libintl_prefix+set}" = set; then :
6437 withval
=$with_libintl_prefix;
6438 if test "X$withval" = "Xno"; then
6441 if test "X$withval" = "X"; then
6443 acl_save_prefix
="$prefix"
6444 prefix
="$acl_final_prefix"
6445 acl_save_exec_prefix
="$exec_prefix"
6446 exec_prefix
="$acl_final_exec_prefix"
6448 eval additional_includedir
=\"$includedir\"
6449 eval additional_libdir
=\"$libdir\"
6451 exec_prefix
="$acl_save_exec_prefix"
6452 prefix
="$acl_save_prefix"
6455 additional_includedir
="$withval/include"
6456 additional_libdir
="$withval/$acl_libdirstem"
6457 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6458 && ! test -d "$withval/$acl_libdirstem"; then
6459 additional_libdir
="$withval/$acl_libdirstem2"
6473 names_already_handled
=
6474 names_next_round
='intl '
6475 while test -n "$names_next_round"; do
6476 names_this_round
="$names_next_round"
6478 for name
in $names_this_round; do
6480 for n
in $names_already_handled; do
6481 if test "$n" = "$name"; then
6486 if test -z "$already_handled"; then
6487 names_already_handled
="$names_already_handled $name"
6488 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6489 eval value
=\"\
$HAVE_LIB$uppername\"
6490 if test -n "$value"; then
6491 if test "$value" = yes; then
6492 eval value
=\"\
$LIB$uppername\"
6493 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
6494 eval value
=\"\
$LTLIB$uppername\"
6495 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
6504 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
6505 if test -n "$acl_shlibext"; then
6506 shrext
=".$acl_shlibext" # typically: shrext=.so
6510 if test $use_additional = yes; then
6511 dir
="$additional_libdir"
6512 if test -n "$acl_shlibext"; then
6513 if test -f "$dir/$libname$shrext"; then
6515 found_so
="$dir/$libname$shrext"
6517 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6518 ver
=`(cd "$dir" && \
6519 for f in "$libname$shrext".*; do echo "$f"; done \
6520 | sed -e "s,^$libname$shrext\\\\.,," \
6521 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6522 | sed 1q ) 2>/dev/null`
6523 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6525 found_so
="$dir/$libname$shrext.$ver"
6528 eval library_names
=\"$acl_library_names_spec\"
6529 for f
in $library_names; do
6530 if test -f "$dir/$f"; then
6539 if test "X$found_dir" = "X"; then
6540 if test -f "$dir/$libname.$acl_libext"; then
6542 found_a
="$dir/$libname.$acl_libext"
6545 if test "X$found_dir" != "X"; then
6546 if test -f "$dir/$libname.la"; then
6547 found_la
="$dir/$libname.la"
6551 if test "X$found_dir" = "X"; then
6552 for x
in $LDFLAGS $LTLIBINTL; do
6554 acl_save_prefix
="$prefix"
6555 prefix
="$acl_final_prefix"
6556 acl_save_exec_prefix
="$exec_prefix"
6557 exec_prefix
="$acl_final_exec_prefix"
6559 exec_prefix
="$acl_save_exec_prefix"
6560 prefix
="$acl_save_prefix"
6564 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6565 if test -n "$acl_shlibext"; then
6566 if test -f "$dir/$libname$shrext"; then
6568 found_so
="$dir/$libname$shrext"
6570 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6571 ver
=`(cd "$dir" && \
6572 for f in "$libname$shrext".*; do echo "$f"; done \
6573 | sed -e "s,^$libname$shrext\\\\.,," \
6574 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6575 | sed 1q ) 2>/dev/null`
6576 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6578 found_so
="$dir/$libname$shrext.$ver"
6581 eval library_names
=\"$acl_library_names_spec\"
6582 for f
in $library_names; do
6583 if test -f "$dir/$f"; then
6592 if test "X$found_dir" = "X"; then
6593 if test -f "$dir/$libname.$acl_libext"; then
6595 found_a
="$dir/$libname.$acl_libext"
6598 if test "X$found_dir" != "X"; then
6599 if test -f "$dir/$libname.la"; then
6600 found_la
="$dir/$libname.la"
6605 if test "X$found_dir" != "X"; then
6610 if test "X$found_dir" != "X"; then
6611 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6612 if test "X$found_so" != "X"; then
6613 if test "$enable_rpath" = no \
6614 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
6615 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6616 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6619 for x
in $ltrpathdirs; do
6620 if test "X$x" = "X$found_dir"; then
6625 if test -z "$haveit"; then
6626 ltrpathdirs
="$ltrpathdirs $found_dir"
6628 if test "$acl_hardcode_direct" = yes; then
6629 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6631 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
6632 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6634 for x
in $rpathdirs; do
6635 if test "X$x" = "X$found_dir"; then
6640 if test -z "$haveit"; then
6641 rpathdirs
="$rpathdirs $found_dir"
6645 for x
in $LDFLAGS $LIBINTL; do
6647 acl_save_prefix
="$prefix"
6648 prefix
="$acl_final_prefix"
6649 acl_save_exec_prefix
="$exec_prefix"
6650 exec_prefix
="$acl_final_exec_prefix"
6652 exec_prefix
="$acl_save_exec_prefix"
6653 prefix
="$acl_save_prefix"
6655 if test "X$x" = "X-L$found_dir"; then
6660 if test -z "$haveit"; then
6661 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6663 if test "$acl_hardcode_minus_L" != no
; then
6664 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6666 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6672 if test "X$found_a" != "X"; then
6673 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
6675 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6678 additional_includedir
=
6679 case "$found_dir" in
6680 */$acl_libdirstem |
*/$acl_libdirstem/)
6681 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6682 if test "$name" = 'intl'; then
6683 LIBINTL_PREFIX
="$basedir"
6685 additional_includedir
="$basedir/include"
6687 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
6688 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6689 if test "$name" = 'intl'; then
6690 LIBINTL_PREFIX
="$basedir"
6692 additional_includedir
="$basedir/include"
6695 if test "X$additional_includedir" != "X"; then
6696 if test "X$additional_includedir" != "X/usr/include"; then
6698 if test "X$additional_includedir" = "X/usr/local/include"; then
6699 if test -n "$GCC"; then
6701 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
6705 if test -z "$haveit"; then
6706 for x
in $CPPFLAGS $INCINTL; do
6708 acl_save_prefix
="$prefix"
6709 prefix
="$acl_final_prefix"
6710 acl_save_exec_prefix
="$exec_prefix"
6711 exec_prefix
="$acl_final_exec_prefix"
6713 exec_prefix
="$acl_save_exec_prefix"
6714 prefix
="$acl_save_prefix"
6716 if test "X$x" = "X-I$additional_includedir"; then
6721 if test -z "$haveit"; then
6722 if test -d "$additional_includedir"; then
6723 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6729 if test -n "$found_la"; then
6730 save_libdir
="$libdir"
6732 */* |
*\\*) .
"$found_la" ;;
6733 *) .
"./$found_la" ;;
6735 libdir
="$save_libdir"
6736 for dep
in $dependency_libs; do
6739 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6740 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6741 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6743 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6744 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6745 if test -n "$GCC"; then
6747 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
6751 if test -z "$haveit"; then
6753 for x
in $LDFLAGS $LIBINTL; do
6755 acl_save_prefix
="$prefix"
6756 prefix
="$acl_final_prefix"
6757 acl_save_exec_prefix
="$exec_prefix"
6758 exec_prefix
="$acl_final_exec_prefix"
6760 exec_prefix
="$acl_save_exec_prefix"
6761 prefix
="$acl_save_prefix"
6763 if test "X$x" = "X-L$additional_libdir"; then
6768 if test -z "$haveit"; then
6769 if test -d "$additional_libdir"; then
6770 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6774 for x
in $LDFLAGS $LTLIBINTL; do
6776 acl_save_prefix
="$prefix"
6777 prefix
="$acl_final_prefix"
6778 acl_save_exec_prefix
="$exec_prefix"
6779 exec_prefix
="$acl_final_exec_prefix"
6781 exec_prefix
="$acl_save_exec_prefix"
6782 prefix
="$acl_save_prefix"
6784 if test "X$x" = "X-L$additional_libdir"; then
6789 if test -z "$haveit"; then
6790 if test -d "$additional_libdir"; then
6791 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6798 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6799 if test "$enable_rpath" != no
; then
6801 for x
in $rpathdirs; do
6802 if test "X$x" = "X$dir"; then
6807 if test -z "$haveit"; then
6808 rpathdirs
="$rpathdirs $dir"
6811 for x
in $ltrpathdirs; do
6812 if test "X$x" = "X$dir"; then
6817 if test -z "$haveit"; then
6818 ltrpathdirs
="$ltrpathdirs $dir"
6823 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6826 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6829 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
6830 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6836 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6837 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6843 if test "X$rpathdirs" != "X"; then
6844 if test -n "$acl_hardcode_libdir_separator"; then
6846 for found_dir
in $rpathdirs; do
6847 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6849 acl_save_libdir
="$libdir"
6851 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6852 libdir
="$acl_save_libdir"
6853 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6855 for found_dir
in $rpathdirs; do
6856 acl_save_libdir
="$libdir"
6858 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6859 libdir
="$acl_save_libdir"
6860 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6864 if test "X$ltrpathdirs" != "X"; then
6865 for found_dir
in $ltrpathdirs; do
6866 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6876 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6877 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
6878 $as_echo_n "(cached) " >&6
6880 gt_save_CPPFLAGS
="$CPPFLAGS"
6881 CPPFLAGS
="$CPPFLAGS $INCINTL"
6882 gt_save_LIBS
="$LIBS"
6883 LIBS
="$LIBS $LIBINTL"
6884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <libintl.h>
6887 $gt_revision_test_code
6888 extern int _nl_msg_cat_cntr;
6893 const char *_nl_expand_alias (const char *);
6897 bindtextdomain ("", "");
6898 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6903 if ac_fn_c_try_link
"$LINENO"; then :
6904 eval "$gt_func_gnugettext_libintl=yes"
6906 eval "$gt_func_gnugettext_libintl=no"
6908 rm -f core conftest.err conftest.
$ac_objext \
6909 conftest
$ac_exeext conftest.
$ac_ext
6910 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6911 LIBS
="$LIBS $LIBICONV"
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 #include <libintl.h>
6915 $gt_revision_test_code
6916 extern int _nl_msg_cat_cntr;
6921 const char *_nl_expand_alias (const char *);
6925 bindtextdomain ("", "");
6926 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6931 if ac_fn_c_try_link
"$LINENO"; then :
6932 LIBINTL
="$LIBINTL $LIBICONV"
6933 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
6934 eval "$gt_func_gnugettext_libintl=yes"
6937 rm -f core conftest.err conftest.
$ac_objext \
6938 conftest
$ac_exeext conftest.
$ac_ext
6940 CPPFLAGS
="$gt_save_CPPFLAGS"
6941 LIBS
="$gt_save_LIBS"
6943 eval ac_res
=\$
$gt_func_gnugettext_libintl
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6945 $as_echo "$ac_res" >&6; }
6948 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6949 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6950 && test "$PACKAGE" != gettext-runtime \
6951 && test "$PACKAGE" != gettext-tools
; }; then
6952 gt_use_preinstalled_gnugettext
=yes
6961 if test -n "$INTL_MACOSX_LIBS"; then
6962 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6963 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6964 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
6965 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
6969 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6970 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6972 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6980 $as_echo_n "checking whether to use NLS... " >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6982 $as_echo "$USE_NLS" >&6; }
6983 if test "$USE_NLS" = "yes"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6985 $as_echo_n "checking where the gettext function comes from... " >&6; }
6986 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6987 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6988 gt_source
="external libintl"
6993 gt_source
="included intl directory"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6996 $as_echo "$gt_source" >&6; }
6999 if test "$USE_NLS" = "yes"; then
7001 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7002 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7004 $as_echo_n "checking how to link with libintl... " >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7006 $as_echo "$LIBINTL" >&6; }
7008 for element
in $INCINTL; do
7010 for x
in $CPPFLAGS; do
7012 acl_save_prefix
="$prefix"
7013 prefix
="$acl_final_prefix"
7014 acl_save_exec_prefix
="$exec_prefix"
7015 exec_prefix
="$acl_final_exec_prefix"
7017 exec_prefix
="$acl_save_exec_prefix"
7018 prefix
="$acl_save_prefix"
7020 if test "X$x" = "X$element"; then
7025 if test -z "$haveit"; then
7026 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7033 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7036 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7057 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7058 inttypes.h stdint.h unistd.h
7060 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7061 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7063 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7064 cat >>confdefs.h
<<_ACEOF
7065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073 for ac_header
in stdint.h stdlib.h
7075 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7077 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7078 cat >>confdefs.h
<<_ACEOF
7079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7086 for ac_func
in strchr strrchr
7088 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7089 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7090 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7091 cat >>confdefs.h
<<_ACEOF
7092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7099 $as_echo_n "checking for working memcmp... " >&6; }
7100 if ${ac_cv_func_memcmp_working+:} false
; then :
7101 $as_echo_n "(cached) " >&6
7103 if test "$cross_compiling" = yes; then :
7104 ac_cv_func_memcmp_working
=no
7106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 $ac_includes_default
7113 /* Some versions of memcmp are not 8-bit clean. */
7114 char c0 = '\100', c1 = '\200', c2 = '\201';
7115 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7118 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7119 or more and with at least one buffer not starting on a 4-byte boundary.
7120 William Lewis provided this test program. */
7125 for (i = 0; i < 4; i++)
7129 strcpy (a, "--------01111111");
7130 strcpy (b, "--------10000000");
7131 if (memcmp (a, b, 16) >= 0)
7141 if ac_fn_c_try_run
"$LINENO"; then :
7142 ac_cv_func_memcmp_working
=yes
7144 ac_cv_func_memcmp_working
=no
7146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7152 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7153 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
7154 *" memcmp.$ac_objext "* ) ;;
7155 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
7160 for ac_header
in stdlib.h
7162 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7163 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
7164 cat >>confdefs.h
<<_ACEOF
7165 #define HAVE_STDLIB_H 1
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7173 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7174 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
7175 $as_echo_n "(cached) " >&6
7177 if test "$cross_compiling" = yes; then :
7178 ac_cv_func_malloc_0_nonnull
=no
7180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7183 # include <stdlib.h>
7191 return ! malloc (0);
7196 if ac_fn_c_try_run
"$LINENO"; then :
7197 ac_cv_func_malloc_0_nonnull
=yes
7199 ac_cv_func_malloc_0_nonnull
=no
7201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7207 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7208 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7210 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7213 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7215 case " $LIBOBJS " in
7216 *" malloc.$ac_objext "* ) ;;
7217 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
7222 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7227 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
7228 case $ac_cv_c_uint32_t in #(
7232 $as_echo "#define _UINT32_T 1" >>confdefs.h
7235 cat >>confdefs.h
<<_ACEOF
7236 #define uint32_t $ac_cv_c_uint32_t
7243 # Check whether --with-gtk was given.
7244 if test "${with_gtk+set}" = set; then :
7245 withval
=$with_gtk; with_gtk
=$withval
7251 # Check whether --with-sdl was given.
7252 if test "${with_sdl+set}" = set; then :
7253 withval
=$with_sdl; with_sdl
=$withval
7259 if test x
"$with_gtk" = "xno" -a x
"$with_sdl" = "xno"; then
7260 as_fn_error $?
"You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." "$LINENO" 5
7263 # Check whether --enable-glibtest was given.
7264 if test "${enable_glibtest+set}" = set; then :
7265 enableval
=$enable_glibtest;
7271 pkg_config_args
=glib-2.0
7272 for module
in . gthread
7276 pkg_config_args
="$pkg_config_args gmodule-2.0"
7279 pkg_config_args
="$pkg_config_args gmodule-no-export-2.0"
7282 pkg_config_args
="$pkg_config_args gobject-2.0"
7285 pkg_config_args
="$pkg_config_args gthread-2.0"
7288 pkg_config_args
="$pkg_config_args $module-2.0"
7300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7303 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7307 $as_echo_n "(cached) " >&6
7311 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir
=.
7319 for ac_exec_ext
in '' $ac_executable_extensions; do
7320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7333 if test -n "$PKG_CONFIG"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7335 $as_echo "$PKG_CONFIG" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_path_PKG_CONFIG"; then
7344 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7345 # Extract the first word of "pkg-config", so it can be a program name with args.
7346 set dummy pkg-config
; ac_word
=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7350 $as_echo_n "(cached) " >&6
7352 case $ac_pt_PKG_CONFIG in
7354 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir
=.
7362 for ac_exec_ext
in '' $ac_executable_extensions; do
7363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7376 if test -n "$ac_pt_PKG_CONFIG"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7378 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7384 if test "x$ac_pt_PKG_CONFIG" = x
; then
7387 case $cross_compiling:$ac_tool_warned in
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned
=yes ;;
7393 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7396 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7400 if test -n "$PKG_CONFIG"; then
7401 _pkg_min_version
=0.16
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7403 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7404 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7416 if test "x$PKG_CONFIG" = x
; then
7421 min_glib_version
=2.12.0
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
7423 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7425 if test x
$PKG_CONFIG != xno
; then
7426 ## don't try to run the test against uninstalled libtool libs
7427 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7428 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7432 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7439 if test x
"$no_glib" = x
; then
7440 GLIB_GENMARSHAL
=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7441 GOBJECT_QUERY
=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7442 GLIB_MKENUMS
=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7443 GLIB_COMPILE_RESOURCES
=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
7445 GLIB_CFLAGS
=`$PKG_CONFIG --cflags $pkg_config_args`
7446 GLIB_LIBS
=`$PKG_CONFIG --libs $pkg_config_args`
7447 glib_config_major_version
=`$PKG_CONFIG --modversion glib-2.0 | \
7448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7449 glib_config_minor_version
=`$PKG_CONFIG --modversion glib-2.0 | \
7450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7451 glib_config_micro_version
=`$PKG_CONFIG --modversion glib-2.0 | \
7452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7453 if test "x$enable_glibtest" = "xyes" ; then
7454 ac_save_CFLAGS
="$CFLAGS"
7455 ac_save_LIBS
="$LIBS"
7456 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
7457 LIBS
="$GLIB_LIBS $LIBS"
7459 if test "$cross_compiling" = yes; then :
7460 echo $ac_n "cross compiling; assumed OK... $ac_c"
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7472 unsigned int major, minor, micro;
7475 fclose (fopen ("conf.glibtest", "w"));
7477 /* HP/UX 9 (%@#!) writes to sscanf strings */
7478 tmp_version = g_strdup("$min_glib_version");
7479 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
7480 printf("%s, bad version string\n", "$min_glib_version");
7484 if ((glib_major_version != $glib_config_major_version) ||
7485 (glib_minor_version != $glib_config_minor_version) ||
7486 (glib_micro_version != $glib_config_micro_version))
7488 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7489 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7490 glib_major_version, glib_minor_version, glib_micro_version);
7491 printf ("*** was found! If pkg-config was correct, then it is best\n");
7492 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7493 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7494 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7495 printf("*** required on your system.\n");
7496 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7497 printf("*** to point to the correct configuration files\n");
7499 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7500 (glib_minor_version != GLIB_MINOR_VERSION) ||
7501 (glib_micro_version != GLIB_MICRO_VERSION))
7503 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7504 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7505 printf("*** library (version %d.%d.%d)\n",
7506 glib_major_version, glib_minor_version, glib_micro_version);
7510 if ((glib_major_version > major) ||
7511 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7512 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7518 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
7519 glib_major_version, glib_minor_version, glib_micro_version);
7520 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
7521 major, minor, micro);
7522 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7524 printf("*** If you have already installed a sufficiently new version, this error\n");
7525 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7526 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7527 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7528 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7529 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7530 printf("*** so that the correct libraries are found at run-time))\n");
7537 if ac_fn_c_try_run
"$LINENO"; then :
7542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7546 CFLAGS
="$ac_save_CFLAGS"
7547 LIBS
="$ac_save_LIBS"
7550 if test "x$no_glib" = x
; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7552 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 if test "$PKG_CONFIG" = "no" ; then
7558 echo "*** A new enough version of pkg-config was not found."
7559 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7561 if test -f conf.glibtest
; then
7564 echo "*** Could not run GLIB test program, checking why..."
7565 ac_save_CFLAGS
="$CFLAGS"
7566 ac_save_LIBS
="$LIBS"
7567 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
7568 LIBS
="$LIBS $GLIB_LIBS"
7569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7578 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7583 if ac_fn_c_try_link
"$LINENO"; then :
7584 echo "*** The test program compiled, but did not run. This usually means"
7585 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7586 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7587 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7588 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7589 echo "*** is required on your system"
7591 echo "*** If you have an old version installed, it is best to remove it, although"
7592 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7594 echo "*** The test program failed to compile or link. See the file config.log for the"
7595 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7597 rm -f core conftest.err conftest.
$ac_objext \
7598 conftest
$ac_exeext conftest.
$ac_ext
7599 CFLAGS
="$ac_save_CFLAGS"
7600 LIBS
="$ac_save_LIBS"
7608 GLIB_COMPILE_RESOURCES
=""
7609 as_fn_error $?
"Test for GLIB failed. See the file 'INSTALL' for help." "$LINENO" 5
7620 if test x
"$with_gtk" = "xyes"; then
7628 if test x
"$with_gtk" = "xyes" ; then
7630 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
7632 # Check whether --enable-gtktest was given.
7633 if test "${enable_gtktest+set}" = set; then :
7634 enableval
=$enable_gtktest;
7640 pkg_config_args
=gtk
+-2.0
7645 pkg_config_args
="$pkg_config_args gthread-2.0"
7652 # Extract the first word of "pkg-config", so it can be a program name with args.
7653 set dummy pkg-config
; ac_word
=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7657 $as_echo_n "(cached) " >&6
7661 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir
=.
7669 for ac_exec_ext
in '' $ac_executable_extensions; do
7670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7683 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7684 if test -n "$PKG_CONFIG"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7686 $as_echo "$PKG_CONFIG" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 if test x
$PKG_CONFIG != xno
; then
7695 if pkg-config
--atleast-pkgconfig-version 0.7 ; then
7698 echo "*** pkg-config too old; version 0.7 or better required."
7706 min_gtk_version
=2.12.0
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7708 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7710 if test x
$PKG_CONFIG != xno
; then
7711 ## don't try to run the test against uninstalled libtool libs
7712 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7713 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7717 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7724 if test x
"$no_gtk" = x
; then
7725 GTK_CFLAGS
=`$PKG_CONFIG $pkg_config_args --cflags`
7726 GTK_LIBS
=`$PKG_CONFIG $pkg_config_args --libs`
7727 gtk_config_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7729 gtk_config_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7731 gtk_config_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
7732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7733 if test "x$enable_gtktest" = "xyes" ; then
7734 ac_save_CFLAGS
="$CFLAGS"
7735 ac_save_LIBS
="$LIBS"
7736 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7737 LIBS
="$GTK_LIBS $LIBS"
7739 if test "$cross_compiling" = yes; then :
7740 echo $ac_n "cross compiling; assumed OK... $ac_c"
7742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7745 #include <gtk/gtk.h>
7752 int major, minor, micro;
7755 fclose (fopen ("conf.gtktest", "w"));
7757 /* HP/UX 9 (%@#!) writes to sscanf strings */
7758 tmp_version = g_strdup("$min_gtk_version");
7759 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7760 printf("%s, bad version string\n", "$min_gtk_version");
7764 if ((gtk_major_version != $gtk_config_major_version) ||
7765 (gtk_minor_version != $gtk_config_minor_version) ||
7766 (gtk_micro_version != $gtk_config_micro_version))
7768 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7769 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7770 gtk_major_version, gtk_minor_version, gtk_micro_version);
7771 printf ("*** was found! If pkg-config was correct, then it is best\n");
7772 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7773 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7774 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7775 printf("*** required on your system.\n");
7776 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7777 printf("*** to point to the correct configuration files\n");
7779 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7780 (gtk_minor_version != GTK_MINOR_VERSION) ||
7781 (gtk_micro_version != GTK_MICRO_VERSION))
7783 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7784 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7785 printf("*** library (version %d.%d.%d)\n",
7786 gtk_major_version, gtk_minor_version, gtk_micro_version);
7790 if ((gtk_major_version > major) ||
7791 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7792 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7798 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7799 gtk_major_version, gtk_minor_version, gtk_micro_version);
7800 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7801 major, minor, micro);
7802 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7804 printf("*** If you have already installed a sufficiently new version, this error\n");
7805 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7806 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7807 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7808 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7809 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7810 printf("*** so that the correct libraries are found at run-time))\n");
7817 if ac_fn_c_try_run
"$LINENO"; then :
7822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7826 CFLAGS
="$ac_save_CFLAGS"
7827 LIBS
="$ac_save_LIBS"
7830 if test "x$no_gtk" = x
; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7832 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 if test "$PKG_CONFIG" = "no" ; then
7838 echo "*** A new enough version of pkg-config was not found."
7839 echo "*** See http://pkgconfig.sourceforge.net"
7841 if test -f conf.gtktest
; then
7844 echo "*** Could not run GTK+ test program, checking why..."
7845 ac_save_CFLAGS
="$CFLAGS"
7846 ac_save_LIBS
="$LIBS"
7847 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7848 LIBS
="$LIBS $GTK_LIBS"
7849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7852 #include <gtk/gtk.h>
7858 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7863 if ac_fn_c_try_link
"$LINENO"; then :
7864 echo "*** The test program compiled, but did not run. This usually means"
7865 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7866 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7867 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7868 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7869 echo "*** is required on your system"
7871 echo "*** If you have an old version installed, it is best to remove it, although"
7872 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7874 echo "*** The test program failed to compile or link. See the file config.log for the"
7875 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7877 rm -f core conftest.err conftest.
$ac_objext \
7878 conftest
$ac_exeext conftest.
$ac_ext
7879 CFLAGS
="$ac_save_CFLAGS"
7880 LIBS
="$ac_save_LIBS"
7885 as_fn_error $?
"Test for GTK+ failed. See the file 'INSTALL' for help." "$LINENO" 5
7893 if test x
"$with_sdl" = "xyes"; then
7901 if test x
"$with_sdl" = "xyes" ; then
7903 $as_echo "#define HAVE_SDL /**/" >>confdefs.h
7906 # Check whether --with-sdl-prefix was given.
7907 if test "${with_sdl_prefix+set}" = set; then :
7908 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
7914 # Check whether --with-sdl-exec-prefix was given.
7915 if test "${with_sdl_exec_prefix+set}" = set; then :
7916 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
7921 # Check whether --enable-sdltest was given.
7922 if test "${enable_sdltest+set}" = set; then :
7923 enableval
=$enable_sdltest;
7929 if test x
$sdl_exec_prefix != x
; then
7930 sdl_config_args
="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7931 if test x
${SDL_CONFIG+set} != xset
; then
7932 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
7935 if test x
$sdl_prefix != x
; then
7936 sdl_config_args
="$sdl_config_args --prefix=$sdl_prefix"
7937 if test x
${SDL_CONFIG+set} != xset
; then
7938 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
7942 as_save_PATH
="$PATH"
7943 if test "x$prefix" != xNONE
; then
7944 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
7946 # Extract the first word of "sdl-config", so it can be a program name with args.
7947 set dummy sdl-config
; ac_word
=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
7951 $as_echo_n "(cached) " >&6
7955 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
7958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir
=.
7963 for ac_exec_ext
in '' $ac_executable_extensions; do
7964 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
7977 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
7978 if test -n "$SDL_CONFIG"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7980 $as_echo "$SDL_CONFIG" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7987 PATH
="$as_save_PATH"
7988 min_sdl_version
=1.2.0
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7990 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
7992 if test "$SDL_CONFIG" = "no" ; then
7995 SDL_CFLAGS
=`$SDL_CONFIG $sdl_config_args --cflags`
7996 SDL_LIBS
=`$SDL_CONFIG $sdl_config_args --libs`
7998 sdl_major_version
=`$SDL_CONFIG $sdl_config_args --version | \
7999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8000 sdl_minor_version
=`$SDL_CONFIG $sdl_config_args --version | \
8001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8002 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
8003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8004 if test "x$enable_sdltest" = "xyes" ; then
8005 ac_save_CFLAGS
="$CFLAGS"
8006 ac_save_CXXFLAGS
="$CXXFLAGS"
8007 ac_save_LIBS
="$LIBS"
8008 CFLAGS
="$CFLAGS $SDL_CFLAGS"
8009 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
8010 LIBS
="$LIBS $SDL_LIBS"
8012 if test "$cross_compiling" = yes; then :
8013 echo $ac_n "cross compiling; assumed OK... $ac_c"
8015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8024 my_strdup (char *str)
8030 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8031 strcpy (new_str, str);
8039 int main (int argc, char *argv[])
8041 int major, minor, micro;
8044 /* This hangs on some systems (?)
8045 system ("touch conf.sdltest");
8047 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8049 /* HP/UX 9 (%@#!) writes to sscanf strings */
8050 tmp_version = my_strdup("$min_sdl_version");
8051 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8052 printf("%s, bad version string\n", "$min_sdl_version");
8056 if (($sdl_major_version > major) ||
8057 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8058 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8064 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8065 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8066 printf("*** best to upgrade to the required version.\n");
8067 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8068 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8069 printf("*** config.cache before re-running configure\n");
8076 if ac_fn_c_try_run
"$LINENO"; then :
8081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8085 CFLAGS
="$ac_save_CFLAGS"
8086 CXXFLAGS
="$ac_save_CXXFLAGS"
8087 LIBS
="$ac_save_LIBS"
8090 if test "x$no_sdl" = x
; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092 $as_echo "yes" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 if test "$SDL_CONFIG" = "no" ; then
8098 echo "*** The sdl-config script installed by SDL could not be found"
8099 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8100 echo "*** your path, or set the SDL_CONFIG environment variable to the"
8101 echo "*** full path to sdl-config."
8103 if test -f conf.sdltest
; then
8106 echo "*** Could not run SDL test program, checking why..."
8107 CFLAGS
="$CFLAGS $SDL_CFLAGS"
8108 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
8109 LIBS
="$LIBS $SDL_LIBS"
8110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8116 int main(int argc, char *argv[])
8119 #define main K_and_R_C_main
8129 if ac_fn_c_try_link
"$LINENO"; then :
8130 echo "*** The test program compiled, but did not run. This usually means"
8131 echo "*** that the run-time linker is not finding SDL or finding the wrong"
8132 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8133 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8134 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8135 echo "*** is required on your system"
8137 echo "*** If you have an old version installed, it is best to remove it, although"
8138 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8140 echo "*** The test program failed to compile or link. See the file config.log for the"
8141 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8142 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8143 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8145 rm -f core conftest.err conftest.
$ac_objext \
8146 conftest
$ac_exeext conftest.
$ac_ext
8147 CFLAGS
="$ac_save_CFLAGS"
8148 CXXFLAGS
="$ac_save_CXXFLAGS"
8149 LIBS
="$ac_save_LIBS"
8154 as_fn_error $?
"Test for SDL failed. See the file 'INSTALL' for help." "$LINENO" 5
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8163 $as_echo_n "checking for X... " >&6; }
8166 # Check whether --with-x was given.
8167 if test "${with_x+set}" = set; then :
8171 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8172 if test "x$with_x" = xno
; then
8173 # The user explicitly disabled X.
8176 case $x_includes,$x_libraries in #(
8177 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8178 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8179 $as_echo_n "(cached) " >&6
8181 # One or both of the vars are not set, and there is no cached value.
8182 ac_x_includes
=no ac_x_libraries
=no
8183 rm -f -r conftest.dir
8184 if mkdir conftest.dir
; then
8186 cat >Imakefile
<<'_ACEOF'
8188 @echo incroot='${INCROOT}'
8190 @echo usrlibdir='${USRLIBDIR}'
8192 @echo libdir='${LIBDIR}'
8194 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8196 for ac_var
in incroot usrlibdir libdir
; do
8197 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8199 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8200 for ac_extension
in a so sl dylib la dll
; do
8201 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8202 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8203 ac_im_usrlibdir
=$ac_im_libdir; break
8206 # Screen out bogus values from the imake configuration. They are
8207 # bogus both because they are the default anyway, and because
8208 # using them would break gcc on systems where it needs fixed includes.
8209 case $ac_im_incroot in
8210 /usr
/include
) ac_x_includes
= ;;
8211 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8213 case $ac_im_usrlibdir in
8214 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8215 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8219 rm -f -r conftest.dir
8222 # Standard set of common directories for X headers.
8223 # Check X11 before X11Rn because it is often a symlink to the current release.
8237 /usr/local/X11/include
8238 /usr/local/X11R7/include
8239 /usr/local/X11R6/include
8240 /usr/local/X11R5/include
8241 /usr/local/X11R4/include
8243 /usr/local/include/X11
8244 /usr/local/include/X11R7
8245 /usr/local/include/X11R6
8246 /usr/local/include/X11R5
8247 /usr/local/include/X11R4
8251 /usr/XFree86/include/X11
8255 /usr/unsupported/include
8257 /usr/local/x11r5/include
8258 /usr/lpp/Xamples/include
8260 /usr/openwin/include
8261 /usr/openwin/share/include'
8263 if test "$ac_x_includes" = no
; then
8264 # Guess where to find include files, by looking for Xlib.h.
8265 # First, try using that file with no special directory specified.
8266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <X11/Xlib.h>
8270 if ac_fn_c_try_cpp
"$LINENO"; then :
8271 # We can compile using X headers with no special include directory.
8274 for ac_dir
in $ac_x_header_dirs; do
8275 if test -r "$ac_dir/X11/Xlib.h"; then
8276 ac_x_includes
=$ac_dir
8281 rm -f conftest.err conftest.i conftest.
$ac_ext
8282 fi # $ac_x_includes = no
8284 if test "$ac_x_libraries" = no
; then
8285 # Check for the libraries.
8286 # See if we find them without any special options.
8287 # Don't add to $LIBS permanently.
8290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 #include <X11/Xlib.h>
8301 if ac_fn_c_try_link
"$LINENO"; then :
8303 # We can link X programs with no special library path.
8307 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8309 # Don't even attempt the hair of trying to link an X program!
8310 for ac_extension
in a so sl dylib la dll
; do
8311 if test -r "$ac_dir/libX11.$ac_extension"; then
8312 ac_x_libraries
=$ac_dir
8318 rm -f core conftest.err conftest.
$ac_objext \
8319 conftest
$ac_exeext conftest.
$ac_ext
8320 fi # $ac_x_libraries = no
8322 case $ac_x_includes,$ac_x_libraries in #(
8324 # Didn't find X, or a directory has "'" in its name.
8325 ac_cv_have_x
="have_x=no";; #(
8327 # Record where we found X for the cache.
8328 ac_cv_have_x
="have_x=yes\
8329 ac_x_includes='$ac_x_includes'\
8330 ac_x_libraries='$ac_x_libraries'"
8336 eval "$ac_cv_have_x"
8339 if test "$have_x" != yes; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8341 $as_echo "$have_x" >&6; }
8344 # If each of the values was on the command line, it overrides each guess.
8345 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8346 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8347 # Update the cache value to reflect the command line values.
8348 ac_cv_have_x
="have_x=yes\
8349 ac_x_includes='$x_includes'\
8350 ac_x_libraries='$x_libraries'"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8352 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8356 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8357 if ${ac_cv_path_SED+:} false
; then :
8358 $as_echo_n "(cached) " >&6
8360 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
8361 for ac_i
in 1 2 3 4 5 6 7; do
8362 ac_script
="$ac_script$as_nl$ac_script"
8364 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
8365 { ac_script
=; unset ac_script
;}
8366 if test -z "$SED"; then
8367 ac_path_SED_found
=false
8368 # Loop through the user's path and test for each of PROGNAME-LIST
8369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir
=.
8374 for ac_prog
in sed gsed
; do
8375 for ac_exec_ext
in '' $ac_executable_extensions; do
8376 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
8377 as_fn_executable_p
"$ac_path_SED" ||
continue
8378 # Check for GNU ac_path_SED and select it if it is found.
8379 # Check for GNU $ac_path_SED
8380 case `"$ac_path_SED" --version 2>&1` in
8382 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
8385 $as_echo_n 0123456789 >"conftest.in"
8388 cat "conftest.in" "conftest.in" >"conftest.tmp"
8389 mv "conftest.tmp" "conftest.in"
8390 cp "conftest.in" "conftest.nl"
8391 $as_echo '' >> "conftest.nl"
8392 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8393 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8394 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8395 if test $ac_count -gt ${ac_path_SED_max-0}; then
8396 # Best one so far, save it but keep looking for a better one
8397 ac_cv_path_SED
="$ac_path_SED"
8398 ac_path_SED_max
=$ac_count
8400 # 10*(2^10) chars as input seems more than enough
8401 test $ac_count -gt 10 && break
8403 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8406 $ac_path_SED_found && break 3
8411 if test -z "$ac_cv_path_SED"; then
8412 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8420 $as_echo "$ac_cv_path_SED" >&6; }
8421 SED
="$ac_cv_path_SED"
8426 ac_cpp
='$CPP $CPPFLAGS'
8427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8432 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8433 if ${ax_cv_c_compiler_ms+:} false
; then :
8434 $as_echo_n "(cached) " >&6
8436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8450 if ac_fn_c_try_compile
"$LINENO"; then :
8455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8456 ax_cv_c_compiler_ms
=$ax_compiler_ms
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8460 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8463 # Use x_includes and x_libraries if they have been set (presumably by
8466 if test X
$no_x != Xyes
-a -n "$x_includes"; then :
8467 GL_CFLAGS
="-I$x_includes $GL_CFLAGS"
8470 for ac_header
in windows.h
8472 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8473 if test "x$ac_cv_header_windows_h" = xyes
; then :
8474 cat >>confdefs.h
<<_ACEOF
8475 #define HAVE_WINDOWS_H 1
8483 ax_save_CPPFLAGS
=$CPPFLAGS
8484 CPPFLAGS
="$GL_CFLAGS $CPPFLAGS"
8485 for ac_header
in GL
/gl.h OpenGL
/gl.h
8487 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8488 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
8489 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8490 # include <windows.h>
8494 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8495 cat >>confdefs.h
<<_ACEOF
8496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8503 CPPFLAGS
=$ax_save_CPPFLAGS
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
8510 $as_echo_n "checking for OpenGL library... " >&6; }
8511 if ${ax_cv_check_gl_libgl+:} false
; then :
8512 $as_echo_n "(cached) " >&6
8514 ax_cv_check_gl_libgl
=no
8516 x86_64
) ax_check_gl_libdir
=lib64
;;
8517 *) ax_check_gl_libdir
=lib
;;
8519 ax_save_CPPFLAGS
=$CPPFLAGS
8520 CPPFLAGS
="$CPPFLAGS $GL_CFLAGS"
8521 ax_save_LDFLAGS
=$LDFLAGS
8522 if test X
$no_x != Xyes
-a -n "$x_libraries"; then :
8523 LDFLAGS
="$LDFLAGS -L$x_libraries"
8526 ax_check_libs
="-lopengl32 -lGL"
8527 for ax_lib
in $ax_check_libs; do
8528 if test X
$ax_compiler_ms = Xyes
; then :
8529 ax_try_lib
=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8533 LDFLAGS
="$ax_save_LDFLAGS $GL_LIBS"
8534 LIBS
="$ax_try_lib $ax_save_LIBS"
8535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8538 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8539 # include <windows.h>
8541 # ifdef HAVE_GL_GL_H
8543 # elif defined(HAVE_OPENGL_GL_H)
8544 # include <OpenGL/gl.h>
8556 if ac_fn_c_try_link
"$LINENO"; then :
8557 ax_cv_check_gl_libgl
=$ax_try_lib; break
8559 ax_check_gl_dylib_flag
='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
8560 LDFLAGS
="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
8561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8564 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8565 # include <windows.h>
8567 # ifdef HAVE_GL_GL_H
8569 # elif defined(HAVE_OPENGL_GL_H)
8570 # include <OpenGL/gl.h>
8582 if ac_fn_c_try_link
"$LINENO"; then :
8583 ax_cv_check_gl_libgl
="$ax_check_gl_dylib_flag $ax_try_lib"; break
8585 rm -f core conftest.err conftest.
$ac_objext \
8586 conftest
$ac_exeext conftest.
$ac_ext
8588 rm -f core conftest.err conftest.
$ac_objext \
8589 conftest
$ac_exeext conftest.
$ac_ext
8593 # If no_x is "yes", we don't want to wind up using a libGL that is
8594 # linked with X11. Test to see if the found libGL includes GLX
8595 # functions. If it does and no_x is "yes", we want to reset
8596 # ax_cv_check_gl_libgl back to "no".
8598 # Note that LDFLAGS and LIBS should still have whatever values they
8599 # had when we broke out of the test loop above; use that.
8601 if test "X$ax_cv_check_gl_libgl" != Xno
; then :
8602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8605 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8606 # include <windows.h>
8608 # ifdef HAVE_GL_GL_H
8610 # elif defined(HAVE_OPENGL_GL_H)
8611 # include <OpenGL/gl.h>
8618 glXQueryVersion(0, 0, 0)
8623 if ac_fn_c_try_link
"$LINENO"; then :
8624 if test X
$no_x = Xyes
; then :
8625 ax_cv_check_gl_libgl
=no
8628 rm -f core conftest.err conftest.
$ac_objext \
8629 conftest
$ac_exeext conftest.
$ac_ext
8633 if test "X$ax_cv_check_gl_libgl" = Xno
-a X
$no_x = Xyes
; then :
8634 LDFLAGS
="$ax_save_LDFLAGS -framework OpenGL"
8635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8638 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8639 # include <windows.h>
8641 # ifdef HAVE_GL_GL_H
8643 # elif defined(HAVE_OPENGL_GL_H)
8644 # include <OpenGL/gl.h>
8656 if ac_fn_c_try_link
"$LINENO"; then :
8657 ax_cv_check_gl_libgl
='-framework OpenGL'
8659 rm -f core conftest.err conftest.
$ac_objext \
8660 conftest
$ac_exeext conftest.
$ac_ext
8663 LDFLAGS
=$ax_save_LDFLAGS
8664 CPPFLAGS
=$ax_save_CPPFLAGS
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
8667 $as_echo "$ax_cv_check_gl_libgl" >&6; }
8669 if test "X$ax_cv_check_gl_libgl" = Xno
; then :
8670 no_gl
=yes; GL_CFLAGS
=""; GL_LIBS
=""
8672 GL_LIBS
="$ax_cv_check_gl_libgl $GL_LIBS"
8675 ac_cpp
='$CPP $CPPFLAGS'
8676 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
8688 $as_echo_n "checking for LIBPNG... " >&6; }
8690 if test -n "$LIBPNG_CFLAGS"; then
8691 pkg_cv_LIBPNG_CFLAGS
="$LIBPNG_CFLAGS"
8692 elif test -n "$PKG_CONFIG"; then
8693 if test -n "$PKG_CONFIG" && \
8694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8695 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8698 test $ac_status = 0; }; then
8699 pkg_cv_LIBPNG_CFLAGS
=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
8700 test "x$?" != "x0" && pkg_failed
=yes
8707 if test -n "$LIBPNG_LIBS"; then
8708 pkg_cv_LIBPNG_LIBS
="$LIBPNG_LIBS"
8709 elif test -n "$PKG_CONFIG"; then
8710 if test -n "$PKG_CONFIG" && \
8711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8712 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8715 test $ac_status = 0; }; then
8716 pkg_cv_LIBPNG_LIBS
=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
8717 test "x$?" != "x0" && pkg_failed
=yes
8727 if test $pkg_failed = yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8732 _pkg_short_errors_supported
=yes
8734 _pkg_short_errors_supported
=no
8736 if test $_pkg_short_errors_supported = yes; then
8737 LIBPNG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
8739 LIBPNG_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
8741 # Put the nasty error message in config.log where it belongs
8742 echo "$LIBPNG_PKG_ERRORS" >&5
8744 as_fn_error $?
"Package requirements (libpng) were not met:
8748 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8749 installed software in a non-standard prefix.
8751 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8752 and LIBPNG_LIBS to avoid the need to call pkg-config.
8753 See the pkg-config man page for more details." "$LINENO" 5
8754 elif test $pkg_failed = untried
; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8759 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8760 is in your PATH or set the PKG_CONFIG environment variable to the full
8763 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8764 and LIBPNG_LIBS to avoid the need to call pkg-config.
8765 See the pkg-config man page for more details.
8767 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8768 See \`config.log' for more details" "$LINENO" 5; }
8770 LIBPNG_CFLAGS
=$pkg_cv_LIBPNG_CFLAGS
8771 LIBPNG_LIBS
=$pkg_cv_LIBPNG_LIBS
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8773 $as_echo "yes" >&6; }
8775 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
8780 ac_config_files
="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile docs/Makefile sound/Makefile music/Makefile"
8782 cat >confcache
<<\_ACEOF
8783 # This file is a shell script that caches the results of configure
8784 # tests run on this system so they can be shared between configure
8785 # scripts and configure runs, see configure's option --config-cache.
8786 # It is not useful on other systems. If it contains results you don't
8787 # want to keep, you may remove or edit it.
8789 # config.status only pays attention to the cache file if you give it
8790 # the --recheck option to rerun configure.
8792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8798 # The following way of writing the cache mishandles newlines in values,
8799 # but we know of no workaround that is simple, portable, and efficient.
8800 # So, we kill variables containing newlines.
8801 # Ultrix sh set writes to stderr and can't be redirected directly,
8802 # and sets the high bit in the cache file unless we assign to the vars.
8804 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8805 eval ac_val
=\$
$ac_var
8809 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8813 _ | IFS | as_nl
) ;; #(
8814 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8815 *) { eval $ac_var=; unset $ac_var;} ;;
8821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8822 *${as_nl}ac_space
=\
*)
8823 # `set' does not quote correctly, so add quotes: double-quote
8824 # substitution turns \\\\ into \\, and sed turns \\ into \.
8827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8830 # `set' quotes correctly as required by POSIX, so do not add quotes.
8831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8844 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8845 if test -w "$cache_file"; then
8846 if test "x$cache_file" != "x/dev/null"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8848 $as_echo "$as_me: updating cache $cache_file" >&6;}
8849 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8850 cat confcache
>"$cache_file"
8852 case $cache_file in #(
8854 mv -f confcache
"$cache_file"$$
&&
8855 mv -f "$cache_file"$$
"$cache_file" ;; #(
8857 mv -f confcache
"$cache_file" ;;
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8868 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8869 # Let make expand exec_prefix.
8870 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8872 DEFS
=-DHAVE_CONFIG_H
8877 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8878 # 1. Remove the extension, and $U if already installed.
8879 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8880 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8882 # will be set to the directory where LIBOBJS objects are built.
8883 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8884 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8888 LTLIBOBJS
=$ac_ltlibobjs
8891 if test -n "$EXEEXT"; then
8893 am__EXEEXT_FALSE
='#'
8899 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8900 as_fn_error $?
"conditional \"AMDEP\" was never defined.
8901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8904 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
8905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8907 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8908 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
8909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8911 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8912 as_fn_error $?
"conditional \"GTK\" was never defined.
8913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8915 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8916 as_fn_error $?
"conditional \"SDL\" was never defined.
8917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8920 : "${CONFIG_STATUS=./config.status}"
8922 ac_clean_files_save
=$ac_clean_files
8923 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8925 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8927 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8929 # Generated by $as_me.
8930 # Run this file to recreate the current configuration.
8931 # Compiler output produced by configure, useful for debugging
8932 # configure, is in config.log if it exists.
8938 SHELL=\${CONFIG_SHELL-$SHELL}
8941 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8942 ## -------------------- ##
8943 ## M4sh Initialization. ##
8944 ## -------------------- ##
8946 # Be more Bourne compatible
8947 DUALCASE
=1; export DUALCASE
# for MKS sh
8948 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8951 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8952 # is contrary to our usage. Disable this feature.
8953 alias -g '${1+"$@"}'='"$@"'
8954 setopt NO_GLOB_SUBST
8956 case `(set -o) 2>/dev/null` in #(
8968 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8969 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8970 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8972 # Prefer a ksh shell builtin over an external printf program on Solaris,
8973 # but without wasting forks for bash or zsh.
8974 if test -z "$BASH_VERSION$ZSH_VERSION" \
8975 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8976 as_echo='print
-r --'
8977 as_echo_n='print
-rn --'
8978 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8979 as_echo='printf %s
\n'
8980 as_echo_n='printf %s
'
8982 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8983 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8984 as_echo_n='/usr
/ucb
/echo -n'
8986 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8987 as_echo_n_body='eval
8991 expr "X$arg" : "X\\(.*\\)$as_nl";
8992 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8994 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8996 export as_echo_n_body
8997 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9000 as_echo='sh
-c $as_echo_body as_echo
'
9003 # The user is always right.
9004 if test "${PATH_SEPARATOR+set}" != set; then
9006 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9007 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9014 # We need space, tab and new line, in precisely that order. Quoting is
9015 # there to prevent editors from complaining about space-tab.
9016 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9017 # splitting by setting IFS to empty value.)
9020 # Find who we are. Look in the path if we contain no directory separator.
9023 *[\\/]* ) as_myself=$0 ;;
9024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 test -z "$as_dir" && as_dir=.
9029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9035 # We did not find ourselves, most probably we were run as `sh COMMAND'
9036 # in which case we are not to be found in the path.
9037 if test "x$as_myself" = x
; then
9040 if test ! -f "$as_myself"; then
9041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9045 # Unset variables that we do not need and which cause bugs (e.g. in
9046 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9047 # suppresses any "Segmentation fault" message there. '((' could
9048 # trigger a bug in pdksh 5.2.14.
9049 for as_var
in BASH_ENV ENV MAIL MAILPATH
9050 do eval test x\
${$as_var+set} = xset \
9051 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9064 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9067 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9068 # ----------------------------------------
9069 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9070 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9071 # script with STATUS, using 1 if that was 0.
9074 as_status
=$1; test $as_status -eq 0 && as_status
=1
9076 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9079 $as_echo "$as_me: error: $2" >&2
9080 as_fn_exit
$as_status
9084 # as_fn_set_status STATUS
9085 # -----------------------
9086 # Set $? to STATUS, without forking.
9090 } # as_fn_set_status
9094 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9104 # Portably unset VAR.
9107 { eval $1=; unset $1;}
9109 as_unset
=as_fn_unset
9110 # as_fn_append VAR VALUE
9111 # ----------------------
9112 # Append the text in VALUE to the end of the definition contained in VAR. Take
9113 # advantage of any shell optimizations that allow amortized linear growth over
9114 # repeated appends, instead of the typical quadratic growth present in naive
9116 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9117 eval 'as_fn_append ()
9128 # as_fn_arith ARG...
9129 # ------------------
9130 # Perform arithmetic evaluation on the ARGs, and store the result in the
9131 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9132 # must be portable across $(()) and expr.
9133 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9134 eval 'as_fn_arith ()
9141 as_val
=`expr "$@" || test $? -eq 1`
9146 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9147 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9153 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9154 as_basename
=basename
9159 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9165 as_me
=`$as_basename -- "$0" ||
9166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9167 X"$0" : 'X\(//\)$' \| \
9168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9170 sed '/^.*\/\([^/][^/]*\)\/*$/{
9184 # Avoid depending upon Character Ranges.
9185 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9186 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9187 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9188 as_cr_digits
='0123456789'
9189 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9191 ECHO_C
= ECHO_N
= ECHO_T
=
9192 case `echo -n x` in #(((((
9194 case `echo 'xy\c'` in
9195 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9197 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9204 rm -f conf$$ conf$$.exe conf$$.
file
9205 if test -d conf$$.dir
; then
9206 rm -f conf$$.dir
/conf$$.
file
9209 mkdir conf$$.dir
2>/dev
/null
9211 if (echo >conf$$.
file) 2>/dev
/null
; then
9212 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9214 # ... but there are two gotchas:
9215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9217 # In both cases, we have to default to `cp -pR'.
9218 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9220 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9228 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9229 rmdir conf$$.dir
2>/dev
/null
9234 # Create "$as_dir" as a directory, including parents if necessary.
9239 -*) as_dir
=.
/$as_dir;;
9241 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9245 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9246 *) as_qdir
=$as_dir;;
9248 as_dirs
="'$as_qdir' $as_dirs"
9249 as_dir
=`$as_dirname -- "$as_dir" ||
9250 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9251 X"$as_dir" : 'X\(//\)[^/]' \| \
9252 X"$as_dir" : 'X\(//\)$' \| \
9253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9254 $as_echo X"$as_dir" |
9255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9272 test -d "$as_dir" && break
9274 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9275 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9279 if mkdir
-p .
2>/dev
/null
; then
9280 as_mkdir_p
='mkdir -p "$as_dir"'
9282 test -d .
/-p && rmdir .
/-p
9287 # as_fn_executable_p FILE
9288 # -----------------------
9289 # Test if FILE is an executable regular file.
9290 as_fn_executable_p
()
9292 test -f "$1" && test -x "$1"
9293 } # as_fn_executable_p
9295 as_executable_p
=as_fn_executable_p
9297 # Sed expression to map a string onto a valid CPP name.
9298 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9300 # Sed expression to map a string onto a valid variable name.
9301 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9305 ## ----------------------------------- ##
9306 ## Main body of $CONFIG_STATUS script. ##
9307 ## ----------------------------------- ##
9309 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9312 # Save the log message, to keep $0 and so on meaningful, and to
9313 # report actual input values of CONFIG_FILES etc. instead of their
9314 # values after options handling.
9316 This file was extended by GDash $as_me 20130317unstable, which was
9317 generated by GNU Autoconf 2.69. Invocation command line was
9319 CONFIG_FILES = $CONFIG_FILES
9320 CONFIG_HEADERS = $CONFIG_HEADERS
9321 CONFIG_LINKS = $CONFIG_LINKS
9322 CONFIG_COMMANDS = $CONFIG_COMMANDS
9325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9330 case $ac_config_files in *"
9331 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9334 case $ac_config_headers in *"
9335 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9340 # Files that config.status was made for.
9341 config_files="$ac_config_files"
9342 config_headers="$ac_config_headers"
9343 config_commands="$ac_config_commands"
9347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9349 \`$as_me' instantiates files and other configuration actions
9350 from templates according to the current configuration. Unless the files
9351 and actions are specified as TAGs, all are instantiated by default.
9353 Usage: $0 [OPTION]... [TAG]...
9355 -h, --help print this help, then exit
9356 -V, --version print version number and configuration settings, then exit
9357 --config print configuration, then exit
9358 -q, --quiet, --silent
9359 do not print progress messages
9360 -d, --debug don't remove temporary files
9361 --recheck update $as_me by reconfiguring in the same conditions
9362 --file=FILE[:TEMPLATE]
9363 instantiate the configuration file FILE
9364 --header=FILE[:TEMPLATE]
9365 instantiate the configuration header FILE
9367 Configuration files:
9370 Configuration headers:
9373 Configuration commands:
9376 Report bugs to <http://code.google.com/p/gdash/>."
9379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9380 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9382 GDash config.status 20130317unstable
9383 configured by $0, generated by GNU Autoconf 2.69,
9384 with options \\"\$ac_cs_config\\"
9386 Copyright (C) 2012 Free Software Foundation, Inc.
9387 This config.status script is free software; the Free Software Foundation
9388 gives unlimited permission to copy, distribute and modify it."
9395 test -n "\$AWK" || AWK=awk
9398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9399 # The default lists apply if the user does not specify any file.
9405 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9406 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9410 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9422 # Handling of the options.
9423 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9425 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9426 $as_echo "$ac_cs_version"; exit ;;
9427 --config |
--confi |
--conf |
--con |
--co |
--c )
9428 $as_echo "$ac_cs_config"; exit ;;
9429 --debug |
--debu |
--deb |
--de |
--d |
-d )
9431 --file |
--fil |
--fi |
--f )
9434 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9435 '') as_fn_error $?
"missing file argument" ;;
9437 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9438 ac_need_defaults
=false
;;
9439 --header |
--heade |
--head |
--hea )
9442 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9444 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9445 ac_need_defaults
=false
;;
9447 # Conflict between --help and --header
9448 as_fn_error $?
"ambiguous option: \`$1'
9449 Try \`$0 --help' for more information.";;
9450 --help |
--hel |
-h )
9451 $as_echo "$ac_cs_usage"; exit ;;
9452 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9453 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9457 -*) as_fn_error $?
"unrecognized option: \`$1'
9458 Try \`$0 --help' for more information." ;;
9460 *) as_fn_append ac_config_targets
" $1"
9461 ac_need_defaults
=false
;;
9467 ac_configure_extra_args
=
9469 if $ac_cs_silent; then
9471 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9476 if \$ac_cs_recheck; then
9477 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9479 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9480 CONFIG_SHELL='$SHELL'
9486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9491 ## Running $as_me. ##
9497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9502 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9503 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9504 # from automake < 1.5.
9505 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9506 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9507 LINGUAS="${LINGUAS-%UNSET%}"
9512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9514 # Handling of arguments.
9515 for ac_config_target
in $ac_config_targets
9517 case $ac_config_target in
9518 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9519 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9520 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
9521 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9522 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9523 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
9524 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9525 "caves/Makefile") CONFIG_FILES
="$CONFIG_FILES caves/Makefile" ;;
9526 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
9527 "sound/Makefile") CONFIG_FILES
="$CONFIG_FILES sound/Makefile" ;;
9528 "music/Makefile") CONFIG_FILES
="$CONFIG_FILES music/Makefile" ;;
9530 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9535 # If the user did not use the arguments to specify the items to instantiate,
9536 # then the envvar interface is used. Set only those that are not.
9537 # We use the long form for the default assignment because of an extremely
9538 # bizarre bug on SunOS 4.1.3.
9539 if $ac_need_defaults; then
9540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9545 # Have a temporary directory for convenience. Make it in the build tree
9546 # simply because there is no reason against having it here, and in addition,
9547 # creating and moving files from /tmp can sometimes cause problems.
9548 # Hook for its removal unless debugging.
9549 # Note that there is a small window in which the directory will not be cleaned:
9550 # after its creation but before its name has been assigned to `$tmp'.
9554 trap 'exit_status=$?
9556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9558 trap 'as_fn_exit 1' 1 2 13 15
9560 # Create a (secure) tmp directory for tmp files.
9563 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9567 tmp
=.
/conf$$
-$RANDOM
9568 (umask 077 && mkdir
"$tmp")
9569 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9572 # Set up the scripts for CONFIG_FILES section.
9573 # No need to generate them if there are no CONFIG_FILES.
9574 # This happens for instance with `./config.status config.h'.
9575 if test -n "$CONFIG_FILES"; then
9578 ac_cr
=`echo X | tr X '\015'`
9579 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9580 # But we know of no other shell where ac_cr would be empty at this
9581 # point, so we can use a bashism as a fallback.
9582 if test "x$ac_cr" = x
; then
9583 eval ac_cr
=\$
\'\\r
\'
9585 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9586 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9592 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9597 echo "cat >conf$$subs.awk <<_ACEOF" &&
9598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9601 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9602 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9604 for ac_last_try in false false false false false :; do
9605 . ./conf$$subs.sh ||
9606 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9608 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9609 if test $ac_delim_n = $ac_delim_num; then
9611 elif $ac_last_try; then
9612 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9614 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9620 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9624 s/^/S["/; s
/!.
*/"]=/
9634 s/\(.\{148\}\)..*/\1/
9636 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9641 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9648 s/\(.\{148\}\)..*/\1/
9650 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9654 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9659 ' <conf$$subs.awk | sed '
9664 ' >>$CONFIG_STATUS || ac_write_fail=1
9665 rm -f conf$$subs.awk
9666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9668 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9669 for (key in S) S_is_set[key] = 1
9675 nfields = split(line, field, "@
")
9677 len = length(field[1])
9678 for (i = 2; i < nfields; i++) {
9680 keylen = length(key)
9681 if (S_is_set[key]) {
9683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9684 len += length(value) + length(field[++i])
9695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9696 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9697 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9700 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9701 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9704 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9705 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9706 # trailing colons and then remove the whole line if VPATH becomes empty
9707 # (actually we leave an empty line to preserve line numbers).
9708 if test "x
$srcdir" = x.; then
9709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9728 fi # test -n "$CONFIG_FILES"
9730 # Set up the scripts for CONFIG_HEADERS section.
9731 # No need to generate them if there are no CONFIG_HEADERS.
9732 # This happens for instance with `./config.status Makefile'.
9733 if test -n "$CONFIG_HEADERS"; then
9734 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9738 # Transform confdefs.h into an awk script `defines.awk', embedded as
9739 # here-document in config.status, that substitutes the proper values into
9740 # config.h.in to produce config.h.
9742 # Create a delimiter string that does not exist in confdefs.h, to ease
9743 # handling of long lines.
9745 for ac_last_try in false false :; do
9746 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9747 if test -z "$ac_tt"; then
9749 elif $ac_last_try; then
9750 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9752 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9756 # For the awk script, D is an array of macro values keyed by name,
9757 # likewise P contains macro parameters if any. Preserve backslash
9758 # newline sequences.
9760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9762 s/.\{148\}/&'"$ac_delim"'/g
9765 s/^[ ]*#[ ]*define[ ][ ]*/ /
9772 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9774 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9779 D["\
1"]=" \
3\\\\\\n
"\\/p
9781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9786 s/.\{148\}/&'"$ac_delim"'/g
9791 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9794 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9796 ' <confdefs.h | sed '
9797 s/'"$ac_delim"'/"\\\
9798 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9801 for (key in D) D_is_set[key] = 1
9804 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9806 split(line, arg, " ")
9807 if (arg[1] == "#") {
9811 defundef
= substr
(arg
[1], 2)
9814 split(mac1
, mac2
, "(") #)
9816 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9817 if (D_is_set
[macro
]) {
9818 # Preserve the white space surrounding the "#".
9819 print prefix
"define", macro P
[macro
] D
[macro
]
9822 # Replace #undef with comments. This is necessary, for example,
9823 # in the case of _POSIX_SOURCE, which is predefined and required
9824 # on some systems where configure will not decide to define it.
9825 if (defundef
== "undef") {
9826 print
"/*", prefix defundef
, macro
, "*/"
9834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9835 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9836 fi # test -n "$CONFIG_HEADERS"
9839 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9844 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9846 case $ac_mode$ac_tag in
9848 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9849 :[FH
]-) ac_tag
=-:-;;
9850 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9867 -) ac_f
="$ac_tmp/stdin";;
9868 *) # Look for the file first in the build tree, then in the source tree
9869 # (if the path is not absolute). The absolute path cannot be DOS-style,
9870 # because $ac_f cannot contain `:'.
9874 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9876 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9878 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9879 as_fn_append ac_file_inputs
" '$ac_f'"
9882 # Let's still pretend it is `configure' which instantiates (i.e., don't
9883 # use $as_me), people would be surprised to read:
9884 # /* config.h. Generated by config.status. */
9885 configure_input
='Generated from '`
9886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9888 if test x
"$ac_file" != x-
; then
9889 configure_input
="$ac_file. $configure_input"
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9891 $as_echo "$as_me: creating $ac_file" >&6;}
9893 # Neutralize special characters interpreted by sed in replacement strings.
9894 case $configure_input in #(
9895 *\
&* |
*\|
* |
*\\* )
9896 ac_sed_conf_input
=`$as_echo "$configure_input" |
9897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9898 *) ac_sed_conf_input
=$configure_input;;
9902 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9903 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9908 ac_dir
=`$as_dirname -- "$ac_file" ||
9909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9910 X"$ac_file" : 'X\(//\)[^/]' \| \
9911 X"$ac_file" : 'X\(//\)$' \| \
9912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9913 $as_echo X"$ac_file" |
9914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9931 as_dir
="$ac_dir"; as_fn_mkdir_p
9935 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9937 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9938 # A ".." for each directory in $ac_dir_suffix.
9939 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9940 case $ac_top_builddir_sub in
9941 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9942 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9945 ac_abs_top_builddir
=$ac_pwd
9946 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9947 # for backward compatibility:
9948 ac_top_builddir
=$ac_top_build_prefix
9951 .
) # We are building in place.
9953 ac_top_srcdir
=$ac_top_builddir_sub
9954 ac_abs_top_srcdir
=$ac_pwd ;;
9955 [\\/]* | ?
:[\\/]* ) # Absolute name.
9956 ac_srcdir
=$srcdir$ac_dir_suffix;
9957 ac_top_srcdir
=$srcdir
9958 ac_abs_top_srcdir
=$srcdir ;;
9960 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9961 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9962 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9964 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9974 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9975 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9979 [\\/$
]* | ?
:[\\/]* ) ;;
9980 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
9984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9985 # If the template does not know about datarootdir, expand it.
9986 # FIXME: This hack should be removed a few years after 2.60.
9987 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9998 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9999 *datarootdir
*) ac_datarootdir_seen
=yes;;
10000 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10002 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10005 ac_datarootdir_hack='
10006 s&@datadir@&$datadir&g
10007 s&@docdir@&$docdir&g
10008 s&@infodir@&$infodir&g
10009 s&@localedir@&$localedir&g
10010 s&@mandir@&$mandir&g
10011 s&\\\${datarootdir}&$datarootdir&g' ;;
10015 # Neutralize VPATH when `$srcdir' = `.'.
10016 # Shell code in configure.ac might set extrasub.
10017 # FIXME: do we really want to maintain this feature?
10018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10019 ac_sed_extra="$ac_vpsub
10022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10024 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10025 s|@configure_input@|
$ac_sed_conf_input|
;t t
10026 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10027 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10028 s
&@srcdir@
&$ac_srcdir&;t t
10029 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10030 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10031 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10032 s
&@builddir@
&$ac_builddir&;t t
10033 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10034 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10035 s
&@INSTALL@
&$ac_INSTALL&;t t
10036 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
10037 $ac_datarootdir_hack
10039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10040 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10045 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10047 which seems to be undefined. Please make sure it is defined" >&5
10048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10049 which seems to be undefined. Please make sure it is defined" >&2;}
10051 rm -f "$ac_tmp/stdin"
10053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10062 if test x"$ac_file" != x-; then
10064 $as_echo "/* $configure_input */" \
10065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10066 } >"$ac_tmp/config.h" \
10067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10073 mv "$ac_tmp/config.h" "$ac_file" \
10074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10077 $as_echo "/* $configure_input */" \
10078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10079 || as_fn_error $? "could not create -" "$LINENO" 5
10081 # Compute "$ac_file"'s index
in $config_headers.
10084 for _am_header
in $config_headers :; do
10085 case $_am_header in
10086 $_am_arg |
$_am_arg:* )
10089 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
10092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10094 X"$_am_arg" : 'X\(//\)[^/]' \| \
10095 X"$_am_arg" : 'X\(//\)$' \| \
10096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10097 $as_echo X"$_am_arg" |
10098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10102 /^X\(\/\/\)[^/].*/{
10114 s/.*/./; q'`/stamp-h
$_am_stamp_count
10117 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10118 $as_echo "$as_me: executing $ac_file commands" >&6;}
10123 case $ac_file$ac_mode in
10124 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
10125 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10126 # are listed without --file. Let's play safe and only enable the eval
10127 # if we detect the quoting.
10128 case $CONFIG_FILES in
10129 *\'*) eval set x
"$CONFIG_FILES" ;;
10130 *) set x
$CONFIG_FILES ;;
10135 # Strip MF so we end up with the name of the file.
10136 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10137 # Check whether this is an Automake generated Makefile or not.
10138 # We used to match only the files named `Makefile.in', but
10139 # some people rename them; so instead we look at the file content.
10140 # Grep'ing the first line is not enough: some people post-process
10141 # each Makefile.in and add a new line on top of each file to say so.
10142 # Grep'ing the whole file is not good either: AIX grep has a line
10143 # limit of 2048, but all sed's we know have understand at least 4000.
10144 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
10145 dirpart
=`$as_dirname -- "$mf" ||
10146 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10147 X"$mf" : 'X\(//\)[^/]' \| \
10148 X"$mf" : 'X\(//\)$' \| \
10149 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10155 /^X\(\/\/\)[^/].*/{
10171 # Extract the definition of DEPDIR, am__include, and am__quote
10172 # from the Makefile without running `make'.
10173 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
10174 test -z "$DEPDIR" && continue
10175 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
10176 test -z "am__include" && continue
10177 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
10178 # When using ansi2knr, U may be empty or an underscore; expand it
10179 U
=`sed -n 's/^U = //p' < "$mf"`
10180 # Find all dependency output files, they are included files with
10181 # $(DEPDIR) in their names. We invoke sed twice because it is the
10182 # simplest approach to changing $(DEPDIR) to its actual value in the
10184 for file in `sed -n "
10185 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10186 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10187 # Make sure the directory exists.
10188 test -f "$dirpart/$file" && continue
10189 fdir
=`$as_dirname -- "$file" ||
10190 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10191 X"$file" : 'X\(//\)[^/]' \| \
10192 X"$file" : 'X\(//\)$' \| \
10193 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10194 $as_echo X"$file" |
10195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10199 /^X\(\/\/\)[^/].*/{
10212 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
10213 # echo "creating $dirpart/$file"
10214 echo '# dummy' > "$dirpart/$file"
10219 "po-directories":C
)
10220 for ac_file
in $CONFIG_FILES; do
10221 # Support "outfile[:infile[:infile...]]"
10223 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10225 # PO directories have a Makefile.in generated from Makefile.in.in.
10226 case "$ac_file" in */Makefile.
in)
10227 # Adjust a relative srcdir.
10228 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10229 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
10230 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10231 # In autoconf-2.13 it is called $ac_given_srcdir.
10232 # In autoconf-2.50 it is called $srcdir.
10233 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
10234 case "$ac_given_srcdir" in
10235 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
10236 /*) top_srcdir
="$ac_given_srcdir" ;;
10237 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10239 # Treat a directory as a PO directory if and only if it has a
10240 # POTFILES.in file. This allows packages to have multiple PO
10241 # directories under different names or in different locations.
10242 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10243 rm -f "$ac_dir/POTFILES"
10244 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
10245 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10246 POMAKEFILEDEPS
="POTFILES.in"
10247 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10248 # on $ac_dir but don't depend on user-specified configuration
10250 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10251 # The LINGUAS file contains the set of available languages.
10252 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10253 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
10255 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10256 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10257 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10258 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
10260 # The set of available languages was given in configure.in.
10261 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10262 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10265 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10266 # Compute UPDATEPOFILES
10267 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10268 # Compute DUMMYPOFILES
10269 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10271 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10272 case "$ac_given_srcdir" in
10274 *) srcdirpre
='$(srcdir)/' ;;
10280 for lang
in $ALL_LINGUAS; do
10281 POFILES
="$POFILES $srcdirpre$lang.po"
10282 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
10283 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
10284 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
10286 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10287 # environment variable.
10289 if test -n "$ALL_LINGUAS"; then
10290 for presentlang
in $ALL_LINGUAS; do
10292 if test "%UNSET%" != "$LINGUAS"; then
10293 desiredlanguages
="$LINGUAS"
10295 desiredlanguages
="$ALL_LINGUAS"
10297 for desiredlang
in $desiredlanguages; do
10298 # Use the presentlang catalog if desiredlang is
10299 # a. equal to presentlang, or
10300 # b. a variant of presentlang (because in this case,
10301 # presentlang can be used as a fallback for messages
10302 # which are not translated in the desiredlang catalog).
10303 case "$desiredlang" in
10304 "$presentlang"*) useit
=yes;;
10307 if test $useit = yes; then
10308 INST_LINGUAS
="$INST_LINGUAS $presentlang"
10313 if test -n "$INST_LINGUAS"; then
10314 for lang
in $INST_LINGUAS; do
10315 CATALOGS
="$CATALOGS $lang.gmo"
10318 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
10319 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"
10320 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
10321 if test -f "$f"; then
10323 *.orig |
*.bak |
*~
) ;;
10324 *) cat "$f" >> "$ac_dir/Makefile" ;;
10339 ac_clean_files
=$ac_clean_files_save
10341 test $ac_write_fail = 0 ||
10342 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
10345 # configure is writing to config.log, and then calls config.status.
10346 # config.status does its own redirection, appending to config.log.
10347 # Unfortunately, on DOS this fails, as config.log is still kept open
10348 # by configure, so config.status won't be able to write to it; its
10349 # output is simply discarded. So we exec the FD to /dev/null,
10350 # effectively closing config.log, so it can be properly (re)opened and
10351 # appended to by config.status. When coming back to configure, we
10352 # need to make the FD available again.
10353 if test "$no_create" != yes; then
10355 ac_config_status_args
=
10356 test "$silent" = yes &&
10357 ac_config_status_args
="$ac_config_status_args --quiet"
10359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10362 # would make configure fail if this is the last instruction.
10363 $ac_cs_success || as_fn_exit
1
10365 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10367 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}