2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
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 admin@amule.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
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
='amule'
583 PACKAGE_VERSION
='SVN'
584 PACKAGE_STRING
='aMule SVN'
585 PACKAGE_BUGREPORT
='admin@amule.org'
588 ac_unique_file
="src/amule.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars
='am__EXEEXT_FALSE
631 COMPILE_LIB_COMMON_FALSE
632 COMPILE_LIB_COMMON_TRUE
639 NEED_CORESERVICES_FALSE
640 NEED_CORESERVICES_TRUE
673 AMULE_DAEMON_MANPAGES
678 INTL_LIBTOOL_SUFFIX_PREFIX
685 BUILD_INCLUDED_LIBINTL
704 DISTCHECK_CONFIGURE_FLAGS
824 MAINTAINER_MODE_FALSE
838 INSTALL_STRIP_PROGRAM
881 program_transform_name
897 enable_option_checking
899 enable_maintainer_mode
900 enable_dependency_tracking
950 with_included_gettext
956 ac_precious_vars
='build_alias
975 # Initialize some variables set by options.
977 ac_init_version
=false
978 ac_unrecognized_opts
=
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
989 program_transform_name
=s
,x
,x
,
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir
='${exec_prefix}/bin'
1004 sbindir
='${exec_prefix}/sbin'
1005 libexecdir
='${exec_prefix}/libexec'
1006 datarootdir
='${prefix}/share'
1007 datadir
='${datarootdir}'
1008 sysconfdir
='${prefix}/etc'
1009 sharedstatedir
='${prefix}/com'
1010 localstatedir
='${prefix}/var'
1011 runstatedir
='${localstatedir}/run'
1012 includedir
='${prefix}/include'
1013 oldincludedir
='/usr/include'
1014 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir
='${datarootdir}/info'
1020 libdir
='${exec_prefix}/lib'
1021 localedir
='${datarootdir}/locale'
1022 mandir
='${datarootdir}/man'
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\
$ac_option
1036 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1049 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1050 bindir
=$ac_optarg ;;
1052 -build |
--build |
--buil |
--bui |
--bu)
1053 ac_prev
=build_alias
;;
1054 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1055 build_alias
=$ac_optarg ;;
1057 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1058 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1059 ac_prev
=cache_file
;;
1060 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1061 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1062 cache_file
=$ac_optarg ;;
1064 --config-cache |
-C)
1065 cache_file
=config.cache
;;
1067 -datadir |
--datadir |
--datadi |
--datad)
1069 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1070 datadir
=$ac_optarg ;;
1072 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1073 |
--dataroo |
--dataro |
--datar)
1074 ac_prev
=datarootdir
;;
1075 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1076 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1077 datarootdir
=$ac_optarg ;;
1079 -disable-* |
--disable-*)
1080 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1083 as_fn_error $?
"invalid feature name: $ac_useropt"
1084 ac_useropt_orig
=$ac_useropt
1085 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_
$ac_useropt"
1090 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep
=', ';;
1093 eval enable_
$ac_useropt=no
;;
1095 -docdir |
--docdir |
--docdi |
--doc |
--do)
1097 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1098 docdir
=$ac_optarg ;;
1100 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1102 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1103 dvidir
=$ac_optarg ;;
1105 -enable-* |
--enable-*)
1106 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error $?
"invalid feature name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_
$ac_useropt"
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval enable_
$ac_useropt=\
$ac_optarg ;;
1121 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1122 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1123 |
--exec |
--exe |
--ex)
1124 ac_prev
=exec_prefix
;;
1125 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1126 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1127 |
--exec=* |
--exe=* |
--ex=*)
1128 exec_prefix
=$ac_optarg ;;
1130 -gas |
--gas |
--ga |
--g)
1131 # Obsolete; use --with-gas.
1134 -help |
--help |
--hel |
--he |
-h)
1135 ac_init_help
=long
;;
1136 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1137 ac_init_help
=recursive
;;
1138 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1139 ac_init_help
=short
;;
1141 -host |
--host |
--hos |
--ho)
1142 ac_prev
=host_alias
;;
1143 -host=* |
--host=* |
--hos=* |
--ho=*)
1144 host_alias
=$ac_optarg ;;
1146 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1148 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1150 htmldir
=$ac_optarg ;;
1152 -includedir |
--includedir |
--includedi |
--included |
--include \
1153 |
--includ |
--inclu |
--incl |
--inc)
1154 ac_prev
=includedir
;;
1155 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1156 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1157 includedir
=$ac_optarg ;;
1159 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1161 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1162 infodir
=$ac_optarg ;;
1164 -libdir |
--libdir |
--libdi |
--libd)
1166 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1167 libdir
=$ac_optarg ;;
1169 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1170 |
--libexe |
--libex |
--libe)
1171 ac_prev
=libexecdir
;;
1172 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1173 |
--libexe=* |
--libex=* |
--libe=*)
1174 libexecdir
=$ac_optarg ;;
1176 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1177 ac_prev
=localedir
;;
1178 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1179 localedir
=$ac_optarg ;;
1181 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1182 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1183 ac_prev
=localstatedir
;;
1184 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1185 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1186 localstatedir
=$ac_optarg ;;
1188 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1190 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1191 mandir
=$ac_optarg ;;
1193 -nfp |
--nfp |
--nf)
1194 # Obsolete; use --without-fp.
1197 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1198 |
--no-cr |
--no-c |
-n)
1201 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1202 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1205 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1206 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1207 |
--oldin |
--oldi |
--old |
--ol |
--o)
1208 ac_prev
=oldincludedir
;;
1209 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1210 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1211 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1212 oldincludedir
=$ac_optarg ;;
1214 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1216 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1217 prefix
=$ac_optarg ;;
1219 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1220 |
--program-pre |
--program-pr |
--program-p)
1221 ac_prev
=program_prefix
;;
1222 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1223 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1224 program_prefix
=$ac_optarg ;;
1226 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1227 |
--program-suf |
--program-su |
--program-s)
1228 ac_prev
=program_suffix
;;
1229 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1230 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1231 program_suffix
=$ac_optarg ;;
1233 -program-transform-name |
--program-transform-name \
1234 |
--program-transform-nam |
--program-transform-na \
1235 |
--program-transform-n |
--program-transform- \
1236 |
--program-transform |
--program-transfor \
1237 |
--program-transfo |
--program-transf \
1238 |
--program-trans |
--program-tran \
1239 |
--progr-tra |
--program-tr |
--program-t)
1240 ac_prev
=program_transform_name
;;
1241 -program-transform-name=* |
--program-transform-name=* \
1242 |
--program-transform-nam=* |
--program-transform-na=* \
1243 |
--program-transform-n=* |
--program-transform-=* \
1244 |
--program-transform=* |
--program-transfor=* \
1245 |
--program-transfo=* |
--program-transf=* \
1246 |
--program-trans=* |
--program-tran=* \
1247 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1248 program_transform_name
=$ac_optarg ;;
1250 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1252 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1253 pdfdir
=$ac_optarg ;;
1255 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1257 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1260 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1261 |
-silent |
--silent |
--silen |
--sile |
--sil)
1264 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1265 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1266 |
--run |
--ru |
--r)
1267 ac_prev
=runstatedir
;;
1268 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1269 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1270 |
--run=* |
--ru=* |
--r=*)
1271 runstatedir
=$ac_optarg ;;
1273 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1275 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1277 sbindir
=$ac_optarg ;;
1279 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1280 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1281 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1283 ac_prev
=sharedstatedir
;;
1284 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1285 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1286 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1288 sharedstatedir
=$ac_optarg ;;
1290 -site |
--site |
--sit)
1292 -site=* |
--site=* |
--sit=*)
1295 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1297 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1298 srcdir
=$ac_optarg ;;
1300 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1301 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1302 ac_prev
=sysconfdir
;;
1303 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1304 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1305 sysconfdir
=$ac_optarg ;;
1307 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1308 ac_prev
=target_alias
;;
1309 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1310 target_alias
=$ac_optarg ;;
1312 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1315 -version |
--version |
--versio |
--versi |
--vers |
-V)
1316 ac_init_version
=: ;;
1319 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1322 as_fn_error $?
"invalid package name: $ac_useropt"
1323 ac_useropt_orig
=$ac_useropt
1324 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1329 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330 ac_unrecognized_sep
=', ';;
1332 eval with_
$ac_useropt=\
$ac_optarg ;;
1334 -without-* |
--without-*)
1335 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1338 as_fn_error $?
"invalid package name: $ac_useropt"
1339 ac_useropt_orig
=$ac_useropt
1340 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346 ac_unrecognized_sep
=', ';;
1348 eval with_
$ac_useropt=no
;;
1351 # Obsolete; use --with-x.
1354 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1355 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1356 ac_prev
=x_includes
;;
1357 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1358 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1359 x_includes
=$ac_optarg ;;
1361 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1362 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1363 ac_prev
=x_libraries
;;
1364 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1365 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1366 x_libraries
=$ac_optarg ;;
1368 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1369 Try \`$0 --help' for more information"
1373 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1374 # Reject names that are not valid shell variable names.
1375 case $ac_envvar in #(
1376 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1377 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1379 eval $ac_envvar=\
$ac_optarg
1380 export $ac_envvar ;;
1383 # FIXME: should be removed in autoconf 3.0.
1384 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1393 if test -n "$ac_prev"; then
1394 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1395 as_fn_error $?
"missing argument to $ac_option"
1398 if test -n "$ac_unrecognized_opts"; then
1399 case $enable_option_checking in
1401 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406 # Check all directory arguments for consistency.
1407 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir runstatedir
1412 eval ac_val
=\$
$ac_var
1413 # Remove trailing slashes.
1416 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\
$ac_val;;
1419 # Be sure to have absolute directory names.
1421 [\\/$
]* | ?
:[\\/]* ) continue;;
1422 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1424 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1432 target
=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x
; then
1436 if test "x$build_alias" = x
; then
1437 cross_compiling
=maybe
1438 elif test "x$build_alias" != "x$host_alias"; then
1444 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1446 test "$silent" = yes && exec 6>/dev
/null
1449 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di
=`ls -di .` &&
1451 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1452 as_fn_error $?
"working directory cannot be determined"
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454 as_fn_error $?
"pwd does not report name of working directory"
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted
=yes
1460 # Try the directory containing this script, then the parent directory.
1461 ac_confdir
=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 X"$as_myself" : 'X\(//\)[^/]' \| \
1464 X"$as_myself" : 'X\(//\)$' \| \
1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1489 ac_srcdir_defaulted
=no
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1493 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1495 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1507 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509 for ac_var
in $ac_precious_vars; do
1510 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1512 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1517 # Report the --help message.
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1523 \`configure' configures aMule SVN to adapt to many kinds of systems.
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1530 Defaults for the options are specified in brackets.
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking ...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1554 For better control, use the options below.
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1587 --build=BUILD configure
for building on BUILD
[guessed
]
1588 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive
) echo "Configuration of aMule SVN:";;
1599 --disable-option-checking ignore unrecognized
--enable/--with options
1600 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1601 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1602 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1603 --disable-silent-rules verbose build output
(undo
: "make V=0")
1604 --enable-maintainer-mode
1605 enable make rules and dependencies not useful
(and
1606 sometimes confusing
) to the casual installer
1607 --enable-dependency-tracking
1608 do not reject slow dependency extractors
1609 --disable-dependency-tracking
1610 speeds up one-time build
1611 --disable-monolithic disable building of the monolithic aMule app
1612 --enable-amule-daemon compile aMule daemon version
1613 --enable-amulecmd compile aMule
command line client
1614 --enable-webserver compile aMule WebServer
1615 --enable-amule-gui compile aMule remote GUI
1616 --enable-cas compile C aMule Statistics
1617 --enable-wxcas compile aMule GUI Statistics
1618 --disable-ed2k don
't compile aMule ed2k links handler
1619 --enable-alc compile aMuleLinkCreator GUI version
1620 --enable-alcc compile aMuleLinkCreator for console
1621 --enable-xas install xas XChat2 plugin
1622 --enable-fileview compile aMule file viewer for console
1623 --enable-plasmamule compile aMule plasma applet and engine
1624 --enable-static produce a statically linked executable
1625 --enable-kde-in-home install KDE related stuff in your home dir
1626 --enable-geoip compile with GeoIP IP2Country library
1627 --disable-upnp do not compile UPnP code
1628 --disable-debug disable additional debugging output
1629 --enable-profile enable code profiling
1630 --enable-optimize enable code optimization
1631 --enable-static-boost Prefer the static boost libraries over the shared
1633 --enable-mmap enable using mapped memory if supported
1634 --disable-rpath do not hardcode runtime library paths
1635 --disable-nls do not use Native Language Support
1636 --enable-ccache enable ccache support for fast recompilation
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-kde4-config=PATH kde4-config script to use
1642 --with-moc=PATH Search in PATH for Qt's meta object compiler
1643 --without-gnu-malloc Don
't assume that we use GNU libc compatible
1644 malloc/realloc when cross-compiling
1645 --with-gdlib-prefix=PREFIX
1646 prefix where gdlib is installed (optional)
1647 --with-gdlib-config=CONFIG
1648 gdlib-config script to use (optional)
1649 --with-zlib=PREFIX use zlib in PREFIX
1650 --with-libpng-prefix=PREFIX
1651 prefix where libpng is installed (optional)
1652 --with-libpng-config=CONFIG
1653 libpng-config script to use (optional)
1654 --with-geoip-headers=DIR
1655 GeoIP include files location
1656 --with-geoip-lib=DIR GeoIP library location
1657 --with-geoip-static Explicitly link GeoIP statically (default=no)
1658 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1659 --with-wx-config=CONFIG wx-config script to use (optional)
1660 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1661 --with-wx-exec-prefix=PREFIX
1662 Exec prefix where wxWidgets is installed (optional)
1663 --with-toolkit Build against a specific wxWidgets toolkit (default
1665 --with-wxshared Force building against a shared build of wxWidgets,
1666 even if --disable-shared is given (default is auto)
1667 --with-wxdebug Force building against a debug build of wxWidgets,
1668 even if --disable-debug is given (default is auto)
1669 --with-wxversion Build against a specific version of wxWidgets
1672 --with-libupnp-prefix=PREFIX
1673 UPnP library location
1674 --with-crypto-prefix=PREFIX
1675 prefix where crypto++ is installed
1676 --with-boost[=DIR] use Boost.Asio for networking
1677 --with-language=<langs> Specify a comma-separated list of languages you want
1678 to have installed. See po/LINGUAS for available
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1683 --with-included-gettext use the GNU
gettext library included here
1684 --with-libintl-prefix=DIR search
for libintl
in DIR
/include and DIR
/lib
1685 --without-libintl-prefix don
't search for libintl in includedir and libdir
1686 --with-denoise-level=<level>
1687 Specifies denoising level (0-4):
1689 4 - Suppress all normal output
1690 (for more information see
1691 src/utils/scripts/denoiser.rules)
1693 --with-ccache-prefix=PREFIX
1694 prefix where ccache is installed
1696 Some influential environment variables:
1697 CXX C++ compiler command
1698 CXXFLAGS C++ compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 CXXCPP C++ preprocessor
1705 CC C compiler command
1706 CFLAGS C compiler flags
1708 PKG_CONFIG path to pkg-config utility
1709 RC Resource Compiler
1710 RCFLAGS Resource Compiler Flags
1711 BOOST_ROOT Location of Boost installation
1713 Use these variables to override the choices made by `configure' or to
help
1714 it to
find libraries and programs with nonstandard names
/locations.
1716 Report bugs to
<admin@amule.org
>.
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1730 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1732 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1737 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1740 ac_abs_top_builddir
=$ac_pwd
1741 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir
=$ac_top_build_prefix
1746 .
) # We are building in place.
1748 ac_top_srcdir
=$ac_top_builddir_sub
1749 ac_abs_top_srcdir
=$ac_pwd ;;
1750 [\\/]* | ?
:[\\/]* ) # Absolute name.
1751 ac_srcdir
=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir
=$srcdir
1753 ac_abs_top_srcdir
=$srcdir ;;
1755 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1759 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1780 generated by GNU Autoconf
2.69
1782 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1783 This configure
script is free software
; the Free Software Foundation
1784 gives unlimited permission to copy
, distribute and modify it.
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_cxx_try_compile LINENO
1794 # ----------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_cxx_try_compile
()
1798 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1799 rm -f conftest.
$ac_objext
1800 if { { ac_try
="$ac_compile"
1802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_cxx_try_compile
1831 # ac_fn_cxx_try_cpp LINENO
1832 # ------------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_cpp ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1840 *) ac_try_echo
=$ac_try;;
1842 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846 if test -s conftest.err
; then
1847 grep -v '^ *+' conftest.err
>conftest.er1
1848 cat conftest.er1
>&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i
&& {
1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.
$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status
$ac_retval
1866 } # ac_fn_cxx_try_cpp
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile
()
1873 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1874 rm -f conftest.
$ac_objext
1875 if { { ac_try
="$ac_compile"
1877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_compile") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest.$ac_objext; then :
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_compile
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1915 *) ac_try_echo
=$ac_try;;
1917 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921 if test -s conftest.err
; then
1922 grep -v '^ *+' conftest.err
>conftest.er1
1923 cat conftest.er1
>&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } > conftest.i
&& {
1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.
$ac_ext >&5
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status
$ac_retval
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1948 ac_fn_c_check_header_mongrel
()
1950 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1951 if eval \
${$3+:} false
; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \
${$3+:} false
; then :
1955 $as_echo_n "(cached) " >&6
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1969 if ac_fn_c_try_compile
"$LINENO"; then :
1970 ac_header_compiler
=yes
1972 ac_header_compiler
=no
1974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 if ac_fn_c_try_cpp
"$LINENO"; then :
1986 ac_header_preproc
=yes
1988 ac_header_preproc
=no
1990 rm -f conftest.err conftest.i conftest.
$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ------------------------------ ##
2014 ## Report this to admin@amule.org ##
2015 ## ------------------------------ ##"
2016 ) |
sed "s/^/$as_me: WARNING: /" >&2
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \
${$3+:} false
; then :
2022 $as_echo_n "(cached) " >&6
2024 eval "$3=\$ac_header_compiler"
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2040 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2041 if { { ac_try
="$ac_link"
2043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2054 *) ac_try_echo
=$ac_try;;
2056 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.
$ac_ext >&5
2068 ac_retval
=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status
$ac_retval
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile
()
2082 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \
${$3+:} false
; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2093 if ac_fn_c_try_compile
"$LINENO"; then :
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_compile
2107 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2108 # -------------------------------------------
2109 # Tests whether TYPE exists after having included INCLUDES, setting cache
2110 # variable VAR accordingly.
2111 ac_fn_c_check_type
()
2113 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \
${$3+:} false
; then :
2117 $as_echo_n "(cached) " >&6
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2132 if ac_fn_c_try_compile
"$LINENO"; then :
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2145 if ac_fn_c_try_compile
"$LINENO"; then :
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_c_check_type
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link
()
2166 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2167 rm -f conftest.
$ac_objext conftest
$ac_exeext
2168 if { { ac_try
="$ac_link"
2170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_link") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_cxx_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest$ac_exeext && {
2187 test "$cross_compiling" = yes ||
2188 test -x conftest$ac_exeext
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199 # interfere with the next link command; also delete a directory that is
2200 # left behind by Apple's compiler. We do this before executing the actions.
2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 as_fn_set_status $ac_retval
2205 } # ac_fn_cxx_try_link
2207 # ac_fn_cxx_try_run LINENO
2208 # ------------------------
2209 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2210 # that executables *can* be run.
2211 ac_fn_cxx_try_run ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 if { { ac_try="$ac_link"
2216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2217 *) ac_try_echo
=$ac_try;;
2219 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_link") 2>&5
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2225 { { case "(($ac_try" in
2226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230 $as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_try") 2>&5
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; }; }; then :
2237 $as_echo "$as_me: program exited with status $ac_status" >&5
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 ac_retval=$ac_status
2243 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 as_fn_set_status $ac_retval
2247 } # ac_fn_cxx_try_run
2249 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2250 # ---------------------------------------------------------
2251 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2252 # the include files in INCLUDES and setting the cache variable VAR
2254 ac_fn_cxx_check_header_mongrel ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if eval \${$3+:} false; then :
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2267 # Is the header compilable?
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2269 $as_echo_n "checking $2 usability... " >&6; }
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2275 if ac_fn_cxx_try_compile "$LINENO"; then :
2276 ac_header_compiler=yes
2278 ac_header_compiler=no
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2282 $as_echo "$ac_header_compiler" >&6; }
2284 # Is the header present?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2286 $as_echo_n "checking $2 presence... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 if ac_fn_cxx_try_cpp "$LINENO"; then :
2292 ac_header_preproc=yes
2294 ac_header_preproc=no
2296 rm -f conftest.err conftest.i conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2298 $as_echo "$ac_header_preproc" >&6; }
2300 # So? What about this header?
2301 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2304 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2310 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2312 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2314 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2316 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319 ( $as_echo "## ------------------------------ ##
2320 ## Report this to admin@amule.org ##
2321 ## ------------------------------ ##"
2322 ) | sed "s/^/$as_me: WARNING: /" >&2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2330 eval "$3=\$ac_header_compiler"
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_cxx_check_header_mongrel
2340 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2341 # ---------------------------------------------
2342 # Tests whether TYPE exists after having included INCLUDES, setting cache
2343 # variable VAR accordingly.
2344 ac_fn_cxx_check_type ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if eval \${$3+:} false; then :
2350 $as_echo_n "(cached) " >&6
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 } # ac_fn_cxx_check_type
2394 # ac_fn_cxx_check_func LINENO FUNC VAR
2395 # ------------------------------------
2396 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2397 ac_fn_cxx_check_func ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2409 #define $2 innocuous_$2
2411 /* System header to define __stub macros and hopefully few prototypes,
2412 which can conflict with char $2 (); below.
2413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2414 <limits.h> exists even on freestanding compilers. */
2417 # include <limits.h>
2419 # include <assert.h>
2424 /* Override any GCC internal prototype to avoid an error.
2425 Use char because int might match the return type of a GCC
2426 builtin and then its argument prototype would still apply. */
2431 /* The GNU C library defines this for functions which it implements
2432 to always fail with ENOSYS. Some functions are actually named
2433 something starting with __ and the normal name is an alias. */
2434 #if defined __stub_$2 || defined __stub___$2
2446 if ac_fn_cxx_try_link "$LINENO"; then :
2451 rm -f core conftest.err conftest.$ac_objext \
2452 conftest$ac_exeext conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_cxx_check_func
2461 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2462 # ---------------------------------------------------------
2463 # Tests whether HEADER exists and can be compiled using the include files in
2464 # INCLUDES, setting the cache variable VAR accordingly.
2465 ac_fn_cxx_check_header_compile ()
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \${$3+:} false; then :
2471 $as_echo_n "(cached) " >&6
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2478 if ac_fn_cxx_try_compile "$LINENO"; then :
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 } # ac_fn_cxx_check_header_compile
2492 # ac_fn_c_try_link LINENO
2493 # -----------------------
2494 # Try to link conftest.$ac_ext, and return whether this succeeded.
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 rm -f conftest.$ac_objext conftest$ac_exeext
2499 if { { ac_try="$ac_link"
2501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2502 *) ac_try_echo
=$ac_try;;
2504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link") 2>conftest.err
2508 if test -s conftest.err
; then
2509 grep -v '^ *+' conftest.err
>conftest.er1
2510 cat conftest.er1
>&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } && {
2515 test -z "$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2517 } && test -s conftest
$ac_exeext && {
2518 test "$cross_compiling" = yes ||
2519 test -x conftest
$ac_exeext
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.
$ac_ext >&5
2528 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2529 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2530 # interfere with the next link command; also delete a directory that is
2531 # left behind by Apple's compiler. We do this before executing the actions.
2532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 as_fn_set_status
$ac_retval
2536 } # ac_fn_c_try_link
2538 # ac_fn_c_check_func LINENO FUNC VAR
2539 # ----------------------------------
2540 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2541 ac_fn_c_check_func
()
2543 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \
${$3+:} false
; then :
2547 $as_echo_n "(cached) " >&6
2549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2553 #define $2 innocuous_$2
2555 /* System header to define __stub macros and hopefully few prototypes,
2556 which can conflict with char $2 (); below.
2557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2558 <limits.h> exists even on freestanding compilers. */
2561 # include <limits.h>
2563 # include <assert.h>
2568 /* Override any GCC internal prototype to avoid an error.
2569 Use char because int might match the return type of a GCC
2570 builtin and then its argument prototype would still apply. */
2575 /* The GNU C library defines this for functions which it implements
2576 to always fail with ENOSYS. Some functions are actually named
2577 something starting with __ and the normal name is an alias. */
2578 #if defined __stub_$2 || defined __stub___$2
2590 if ac_fn_c_try_link
"$LINENO"; then :
2595 rm -f core conftest.err conftest.
$ac_objext \
2596 conftest
$ac_exeext conftest.
$ac_ext
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603 } # ac_fn_c_check_func
2605 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2606 # ---------------------------------------------
2607 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2609 ac_fn_c_check_decl
()
2611 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2612 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2613 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2615 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2616 if eval \
${$3+:} false
; then :
2617 $as_echo_n "(cached) " >&6
2619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2625 #ifndef $as_decl_name
2627 (void) $as_decl_use;
2629 (void) $as_decl_name;
2637 if ac_fn_c_try_compile
"$LINENO"; then :
2642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649 } # ac_fn_c_check_decl
2650 cat >config.log
<<_ACEOF
2651 This file contains any messages produced by compilers while
2652 running configure, to aid debugging if configure makes a mistake.
2654 It was created by aMule $as_me SVN, which was
2655 generated by GNU Autoconf 2.69. Invocation command line was
2667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 $as_echo "PATH: $as_dir"
2707 # Keep a trace of the command line.
2708 # Strip out --no-create and --no-recursion so they do not pile up.
2709 # Strip out --silent because we don't want to record it for future runs.
2710 # Also quote any args containing shell meta-characters.
2711 # Make two passes to allow for proper duplicate-argument suppression.
2715 ac_must_keep_next
=false
2721 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2722 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2723 |
-silent |
--silent |
--silen |
--sile |
--sil)
2726 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2729 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2731 as_fn_append ac_configure_args1
" '$ac_arg'"
2732 if test $ac_must_keep_next = true
; then
2733 ac_must_keep_next
=false
# Got value, back to normal.
2736 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2737 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2738 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2739 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2740 case "$ac_configure_args0 " in
2741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2744 -* ) ac_must_keep_next
=true
;;
2747 as_fn_append ac_configure_args
" '$ac_arg'"
2752 { ac_configure_args0
=; unset ac_configure_args0
;}
2753 { ac_configure_args1
=; unset ac_configure_args1
;}
2755 # When interrupted or exit'd, cleanup temporary files, and complete
2756 # config.log. We remove comments because anyway the quotes in there
2757 # would cause problems or look ugly.
2758 # WARNING: Use '\'' to represent an apostrophe within the trap.
2759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2760 trap 'exit_status=$?
2761 # Save into config.log some information that might help in debugging.
2765 $as_echo "## ---------------- ##
2766 ## Cache variables. ##
2767 ## ---------------- ##"
2769 # The following way of writing the cache mishandles newlines in values,
2771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2772 eval ac_val=\$$ac_var
2776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2780 _ | IFS | as_nl) ;; #(
2781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2782 *) { eval $ac_var=; unset $ac_var;} ;;
2787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2788 *${as_nl}ac_space=\ *)
2790 "s/'\''/'\''\\\\'\'''\''/g;
2791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801 $as_echo "## ----------------- ##
2802 ## Output variables. ##
2803 ## ----------------- ##"
2805 for ac_var in $ac_subst_vars
2807 eval ac_val=\$$ac_var
2809 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2811 $as_echo "$ac_var='\''$ac_val'\''"
2815 if test -n "$ac_subst_files"; then
2816 $as_echo "## ------------------- ##
2817 ## File substitutions. ##
2818 ## ------------------- ##"
2820 for ac_var
in $ac_subst_files
2822 eval ac_val
=\$
$ac_var
2824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2826 $as_echo "$ac_var='\''$ac_val'\''"
2831 if test -s confdefs.h; then
2832 $as_echo "## ----------- ##
2839 test "$ac_signal" != 0 &&
2840 $as_echo "$as_me: caught signal $ac_signal"
2841 $as_echo "$as_me: exit $exit_status"
2843 rm -f core *.core core.conftest.* &&
2844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2847 for ac_signal
in 1 2 13 15; do
2848 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2853 rm -f -r conftest
* confdefs.h
2855 $as_echo "/* confdefs.h */" > confdefs.h
2857 # Predefined preprocessor variables.
2859 cat >>confdefs.h
<<_ACEOF
2860 #define PACKAGE_NAME "$PACKAGE_NAME"
2863 cat >>confdefs.h
<<_ACEOF
2864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2867 cat >>confdefs.h
<<_ACEOF
2868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2871 cat >>confdefs.h
<<_ACEOF
2872 #define PACKAGE_STRING "$PACKAGE_STRING"
2875 cat >>confdefs.h
<<_ACEOF
2876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2879 cat >>confdefs.h
<<_ACEOF
2880 #define PACKAGE_URL "$PACKAGE_URL"
2884 # Let the site file select an alternate cache file if it wants to.
2885 # Prefer an explicitly selected file to automatically selected ones.
2888 if test -n "$CONFIG_SITE"; then
2889 # We do not want a PATH search for config.site.
2890 case $CONFIG_SITE in #((
2891 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2892 */*) ac_site_file1
=$CONFIG_SITE;;
2893 *) ac_site_file1
=.
/$CONFIG_SITE;;
2895 elif test "x$prefix" != xNONE
; then
2896 ac_site_file1
=$prefix/share
/config.site
2897 ac_site_file2
=$prefix/etc
/config.site
2899 ac_site_file1
=$ac_default_prefix/share
/config.site
2900 ac_site_file2
=$ac_default_prefix/etc
/config.site
2902 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2904 test "x$ac_site_file" = xNONE
&& continue
2905 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908 sed 's/^/| /' "$ac_site_file" >&5
2910 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 as_fn_error $?
"failed to load site script $ac_site_file
2913 See \`config.log' for more details" "$LINENO" 5; }
2917 if test -r "$cache_file"; then
2918 # Some versions of bash will fail to source /dev/null (special files
2919 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2920 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2922 $as_echo "$as_me: loading cache $cache_file" >&6;}
2924 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2925 *) .
"./$cache_file";;
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2930 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934 as_fn_append ac_header_list
" stdlib.h"
2935 as_fn_append ac_header_list
" unistd.h"
2936 as_fn_append ac_header_list
" sys/param.h"
2937 # Check that the precious variables saved in the cache have kept the same
2939 ac_cache_corrupted
=false
2940 for ac_var
in $ac_precious_vars; do
2941 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2942 eval ac_new_set
=\
$ac_env_${ac_var}_set
2943 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2944 eval ac_new_val
=\
$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted
=: ;;
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted
=: ;;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w
=`echo x $ac_old_val`
2959 ac_new_val_w
=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted
=:
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\
$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2978 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg
=$ac_var=$ac_new_val ;;
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2999 ac_cpp
='$CPP $CPPFLAGS'
3000 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3005 am__api_version
='1.15'
3008 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3009 if test -f "$ac_dir/install-sh"; then
3011 ac_install_sh
="$ac_aux_dir/install-sh -c"
3013 elif test -f "$ac_dir/install.sh"; then
3015 ac_install_sh
="$ac_aux_dir/install.sh -c"
3017 elif test -f "$ac_dir/shtool"; then
3019 ac_install_sh
="$ac_aux_dir/shtool install -c"
3023 if test -z "$ac_aux_dir"; then
3024 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 # These three variables are undocumented and unsupported,
3028 # and are intended to be withdrawn in a future Autoconf release.
3029 # They can cause serious problems if a builder's source tree is in a directory
3030 # whose full name contains unusual characters.
3031 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3032 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3033 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036 # Find a good install program. We prefer a C program (faster),
3037 # so one script is as good as another. But avoid the broken or
3038 # incompatible versions:
3039 # SysV /etc/install, /usr/sbin/install
3040 # SunOS /usr/etc/install
3041 # IRIX /sbin/install
3043 # AmigaOS /C/install, which installs bootblocks on floppy discs
3044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3047 # OS/2's system install, which has a completely different semantic
3048 # ./install, which can be erroneously created by make from ./install.sh.
3049 # Reject install programs that cannot install multiple files.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3051 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3052 if test -z "$INSTALL"; then
3053 if ${ac_cv_path_install+:} false
; then :
3054 $as_echo_n "(cached) " >&6
3056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir
=.
3061 # Account for people who put trailing slashes in PATH elements.
3062 case $as_dir/ in #((
3063 .
/ | .
// |
/[cC
]/* | \
3064 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3065 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3068 # OSF1 and SCO ODT 3.0 have their own names for install.
3069 # Don't use installbsd from OSF since it installs stuff as root
3071 for ac_prog
in ginstall scoinst
install; do
3072 for ac_exec_ext
in '' $ac_executable_extensions; do
3073 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3074 if test $ac_prog = install &&
3075 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3076 # AIX install. It has an incompatible calling convention.
3078 elif test $ac_prog = install &&
3079 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3080 # program-specific install script used by HP pwplus--don't use.
3083 rm -rf conftest.one conftest.two conftest.dir
3084 echo one
> conftest.one
3085 echo two
> conftest.two
3087 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3088 test -s conftest.one
&& test -s conftest.two
&&
3089 test -s conftest.dir
/conftest.one
&&
3090 test -s conftest.dir
/conftest.two
3092 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3105 rm -rf conftest.one conftest.two conftest.dir
3108 if test "${ac_cv_path_install+set}" = set; then
3109 INSTALL
=$ac_cv_path_install
3111 # As a last resort, use the slow shell script. Don't cache a
3112 # value for INSTALL within a source directory, because that will
3113 # break other packages using the cache if that directory is
3114 # removed, or if the value is a relative name.
3115 INSTALL
=$ac_install_sh
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3119 $as_echo "$INSTALL" >&6; }
3121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3122 # It thinks the first close brace ends the variable substitution.
3123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3127 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3130 $as_echo_n "checking whether build environment is sane... " >&6; }
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3136 *[\\\"\
#\$\&\'\`$am_lf]*)
3137 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3140 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3144 # Do 'set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3151 for am_try
in 1 2; do
3152 echo "timestamp, slept: $am_has_slept" > conftest.
file
3153 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3154 if test "$*" = "X"; then
3156 set X
`ls -t "$srcdir/configure" conftest.file`
3158 if test "$*" != "X $srcdir/configure conftest.file" \
3159 && test "$*" != "X conftest.file $srcdir/configure"; then
3161 # If neither matched, then we have a broken ls. This can happen
3162 # if, for instance, CONFIG_SHELL is bash and it inherits a
3163 # broken ls alias from the environment. This has actually
3164 # happened. Such a system could not be considered "sane".
3165 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3166 alias in your environment" "$LINENO" 5
3168 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3175 test "$2" = conftest.
file
3181 as_fn_error $?
"newly created file is older than distributed files!
3182 Check your system clock" "$LINENO" 5
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186 # If we didn't sleep, we still need to ensure time stamps of config.status and
3187 # generated files are strictly newer.
3189 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3196 test "$program_prefix" != NONE
&&
3197 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3198 # Use a double $ so make ignores it.
3199 test "$program_suffix" != NONE
&&
3200 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3201 # Double any \ or $.
3202 # By default was `s,x,x', remove it if useless.
3203 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3204 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3206 # Expand $ac_aux_dir to an absolute path.
3207 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3209 if test x
"${MISSING+set}" != xset
; then
3212 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3214 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3217 # Use eval to expand $SHELL
3218 if eval "$MISSING --is-lightweight"; then
3219 am_missing_run
="$MISSING "
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3223 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3226 if test x
"${install_sh+set}" != xset
; then
3229 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3231 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3235 # Installed binaries are usually stripped using 'strip' when the user
3236 # run "make install-strip". However 'strip' might not be the right
3237 # tool to use in cross-compilation environments, therefore Automake
3238 # will honor the 'STRIP' environment variable to overrule this program.
3239 if test "$cross_compiling" != no
; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3242 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_STRIP+:} false
; then :
3246 $as_echo_n "(cached) " >&6
3248 if test -n "$STRIP"; then
3249 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir
=.
3256 for ac_exec_ext
in '' $ac_executable_extensions; do
3257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 STRIP
=$ac_cv_prog_STRIP
3269 if test -n "$STRIP"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3271 $as_echo "$STRIP" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$ac_cv_prog_STRIP"; then
3281 # Extract the first word of "strip", so it can be a program name with args.
3282 set dummy strip
; ac_word
=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$ac_ct_STRIP"; then
3289 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir
=.
3296 for ac_exec_ext
in '' $ac_executable_extensions; do
3297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_STRIP
="strip"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3309 if test -n "$ac_ct_STRIP"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3311 $as_echo "$ac_ct_STRIP" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 if test "x$ac_ct_STRIP" = x
; then
3320 case $cross_compiling:$ac_tool_warned in
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned
=yes ;;
3329 STRIP
="$ac_cv_prog_STRIP"
3333 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3336 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3337 if test -z "$MKDIR_P"; then
3338 if ${ac_cv_path_mkdir+:} false
; then :
3339 $as_echo_n "(cached) " >&6
3341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3342 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3345 test -z "$as_dir" && as_dir
=.
3346 for ac_prog
in mkdir gmkdir
; do
3347 for ac_exec_ext
in '' $ac_executable_extensions; do
3348 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3349 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3350 'mkdir (GNU coreutils) '* | \
3351 'mkdir (coreutils) '* | \
3352 'mkdir (fileutils) '4.1*)
3353 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3363 test -d .
/--version && rmdir .
/--version
3364 if test "${ac_cv_path_mkdir+set}" = set; then
3365 MKDIR_P
="$ac_cv_path_mkdir -p"
3367 # As a last resort, use the slow shell script. Don't cache a
3368 # value for MKDIR_P within a source directory, because that will
3369 # break other packages using the cache if that directory is
3370 # removed, or if the value is a relative name.
3371 MKDIR_P
="$ac_install_sh -d"
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3375 $as_echo "$MKDIR_P" >&6; }
3377 for ac_prog
in gawk mawk nawk
awk
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy
$ac_prog; ac_word
=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_AWK+:} false
; then :
3384 $as_echo_n "(cached) " >&6
3386 if test -n "$AWK"; then
3387 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir
=.
3394 for ac_exec_ext
in '' $ac_executable_extensions; do
3395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_AWK
="$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 if test -n "$AWK"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3409 $as_echo "$AWK" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$AWK" && break
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3420 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3422 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3423 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3424 $as_echo_n "(cached) " >&6
3426 cat >conftest.
make <<\_ACEOF
3429 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3431 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3432 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3434 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3436 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3440 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442 $as_echo "yes" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 SET_MAKE
="MAKE=${MAKE-make}"
3450 rm -rf .tst
2>/dev
/null
3451 mkdir .tst
2>/dev
/null
3452 if test -d .tst
; then
3457 rmdir .tst
2>/dev
/null
3459 # Check whether --enable-silent-rules was given.
3460 if test "${enable_silent_rules+set}" = set; then :
3461 enableval
=$enable_silent_rules;
3464 case $enable_silent_rules in # (((
3465 yes) AM_DEFAULT_VERBOSITY
=0;;
3466 no
) AM_DEFAULT_VERBOSITY
=1;;
3467 *) AM_DEFAULT_VERBOSITY
=1;;
3469 am_make
=${MAKE-make}
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3471 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3472 if ${am_cv_make_support_nested_variables+:} false
; then :
3473 $as_echo_n "(cached) " >&6
3475 if $as_echo 'TRUE=$(BAR$(V))
3481 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3482 am_cv_make_support_nested_variables
=yes
3484 am_cv_make_support_nested_variables
=no
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3488 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3489 if test $am_cv_make_support_nested_variables = yes; then
3491 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3493 AM_V
=$AM_DEFAULT_VERBOSITY
3494 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3500 # is not polluted with repeated "-I."
3501 am__isrc
=' -I$(srcdir)'
3502 # test to see if srcdir already configured
3503 if test -f $srcdir/config.status
; then
3504 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3508 # test whether we have cygpath
3509 if test -z "$CYGPATH_W"; then
3510 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3511 CYGPATH_W
='cygpath -w'
3518 # Define the identity of the package.
3523 cat >>confdefs.h
<<_ACEOF
3524 #define PACKAGE "$PACKAGE"
3528 cat >>confdefs.h
<<_ACEOF
3529 #define VERSION "$VERSION"
3532 # Some tools Automake needs.
3534 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3537 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3540 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3543 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3546 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3548 # For better backward compatibility. To be removed once Automake 1.9.x
3549 # dies out for good. For more background, see:
3550 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3551 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3552 mkdir_p
='$(MKDIR_P)'
3554 # We need awk for the "check" target (and possibly the TAP driver). The
3555 # system "awk" is bad on some platforms.
3556 # Always define AMTAR for backward compatibility. Yes, it's still used
3557 # in the wild :-( We should find a proper way to deprecate it ...
3561 # We'll loop over all known methods to create a tar archive until one works.
3562 _am_tools
='gnutar pax cpio none'
3564 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3571 # POSIX will say in a future version that running "rm -f" with no argument
3572 # is OK; and we want to be able to make that assumption in our Makefile
3573 # recipes. So use an aggressive probe to check that the usage we want is
3574 # actually supported "in the wild" to an acceptable degree.
3575 # See automake bug#10828.
3576 # To make any issue more visible, cause the running configure to be aborted
3577 # by default if the 'rm' program in use doesn't match our expectations; the
3578 # user can still override this though.
3579 if rm -f && rm -fr && rm -rf; then : OK
; else
3583 Your 'rm' program seems unable to run without file operands specified
3584 on the command line, even when the '-f' option is present. This is contrary
3585 to the behaviour of most rm programs out there, and not conforming with
3586 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3588 Please tell bug-automake@gnu.org about your system, including the value
3589 of your $PATH and any error possibly output before this message. This
3590 can help us improve future automake versions.
3593 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3594 echo 'Configuration will proceed anyway, since you have set the' >&2
3595 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3599 Aborting the configuration process, to ensure you take notice of the issue.
3601 You can download and install GNU coreutils to get an 'rm' implementation
3602 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3604 If you want to complete the configuration process using your problematic
3605 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3606 to "yes", and re-run configure.
3609 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3613 # Check whether --enable-silent-rules was given.
3614 if test "${enable_silent_rules+set}" = set; then :
3615 enableval
=$enable_silent_rules;
3618 case $enable_silent_rules in # (((
3619 yes) AM_DEFAULT_VERBOSITY
=0;;
3620 no
) AM_DEFAULT_VERBOSITY
=1;;
3621 *) AM_DEFAULT_VERBOSITY
=1;;
3623 am_make
=${MAKE-make}
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3625 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3626 if ${am_cv_make_support_nested_variables+:} false
; then :
3627 $as_echo_n "(cached) " >&6
3629 if $as_echo 'TRUE=$(BAR$(V))
3635 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3636 am_cv_make_support_nested_variables
=yes
3638 am_cv_make_support_nested_variables
=no
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3642 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3643 if test $am_cv_make_support_nested_variables = yes; then
3645 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3647 AM_V
=$AM_DEFAULT_VERBOSITY
3648 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3655 # autoconf 2.70 introduced some incompatibilities that will make the build fail
3656 # As a "workaround" reject 2.70 and above for now.
3660 ac_config_headers="$ac_config_headers config.h"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3665 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3666 # Check whether --enable-maintainer-mode was given.
3667 if test "${enable_maintainer_mode+set}" = set; then :
3668 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3670 USE_MAINTAINER_MODE=no
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3674 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3675 if test $USE_MAINTAINER_MODE = yes; then
3676 MAINTAINER_MODE_TRUE=
3677 MAINTAINER_MODE_FALSE='#'
3679 MAINTAINER_MODE_TRUE
='#'
3680 MAINTAINER_MODE_FALSE
=
3683 MAINT
=$MAINTAINER_MODE_TRUE
3687 # Make sure we can run config.sub.
3688 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3689 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3692 $as_echo_n "checking build system type... " >&6; }
3693 if ${ac_cv_build+:} false
; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_build_alias
=$build_alias
3697 test "x$ac_build_alias" = x
&&
3698 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3699 test "x$ac_build_alias" = x
&&
3700 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3701 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3702 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3706 $as_echo "$ac_cv_build" >&6; }
3707 case $ac_cv_build in
3709 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3712 ac_save_IFS
=$IFS; IFS
='-'
3718 # Remember, the first character of IFS is used to create $*,
3719 # except with old shells:
3722 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3726 $as_echo_n "checking host system type... " >&6; }
3727 if ${ac_cv_host+:} false
; then :
3728 $as_echo_n "(cached) " >&6
3730 if test "x$host_alias" = x
; then
3731 ac_cv_host
=$ac_cv_build
3733 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3734 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3739 $as_echo "$ac_cv_host" >&6; }
3742 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3745 ac_save_IFS
=$IFS; IFS
='-'
3751 # Remember, the first character of IFS is used to create $*,
3752 # except with old shells:
3755 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3759 case "${host_os}" in
3762 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3763 MULELDFLAGS
="-bind_at_load"
3764 touch src
/Scanner.cpp
3768 LIBS
="$LIBS -L/usr/local/lib"
3769 MULECPPFLAGS
="-D__OPENBSD__"
3771 *cygwin
* |
*mingw32
*)
3773 MULECPPFLAGS
="-DNOMINMAX"
3777 RESOLV_LIB
="-lresolv -lnsl"
3782 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3783 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3784 # Still, we prepend them, instead of adding, so the user may override them.
3785 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
3786 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3790 MULECPPFLAGS
="-D__IRIX__"
3797 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3798 if test ${SYS:-unknown} != win32
; then :
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3801 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3802 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then :
3804 MULELDFLAGS
="$MULELDFLAGS -pthread"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3810 MULELDFLAGS
="$MULELDFLAGS -lpthread"
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3820 mule_backup_CFLAGS
="$CFLAGS"
3821 mule_backup_CXXFLAGS
="$CXXFLAGS"
3822 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
3824 ac_cpp
='$CXXCPP $CPPFLAGS'
3825 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3828 if test -z "$CXX"; then
3829 if test -n "$CCC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3836 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_CXX+:} false
; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -n "$CXX"; then
3843 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir
=.
3850 for ac_exec_ext
in '' $ac_executable_extensions; do
3851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 if test -n "$CXX"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3865 $as_echo "$CXX" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3872 test -n "$CXX" && break
3875 if test -z "$CXX"; then
3877 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy
$ac_prog; ac_word
=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3884 $as_echo_n "(cached) " >&6
3886 if test -n "$ac_ct_CXX"; then
3887 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir
=.
3894 for ac_exec_ext
in '' $ac_executable_extensions; do
3895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3907 if test -n "$ac_ct_CXX"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3909 $as_echo "$ac_ct_CXX" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3916 test -n "$ac_ct_CXX" && break
3919 if test "x$ac_ct_CXX" = x
; then
3922 case $cross_compiling:$ac_tool_warned in
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned
=yes ;;
3934 # Provide some information about the compiler.
3935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3938 for ac_option
in --version -v -V -qversion; do
3939 { { ac_try
="$ac_compiler $ac_option >&5"
3941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3948 if test -s conftest.err; then
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err >conftest.er1
3952 cat conftest.er1 >&5
3954 rm -f conftest.er1 conftest.err
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 ac_clean_files_save=$ac_clean_files
3971 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3976 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3977 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3979 # The possible output files:
3980 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3983 for ac_file in $ac_files
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3992 if { { ac_try="$ac_link_default"
3994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3995 *) ac_try_echo
=$ac_try;;
3997 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4006 # so that the user can short-circuit this test for compilers unknown to
4008 for ac_file
in $ac_files ''
4010 test -f "$ac_file" ||
continue
4012 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4015 # We found the default executable, but exeext='' is most
4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4021 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 # We set ac_cv_exeext here because the later test for it is not
4024 # safe: cross compilers may not add the suffix if given an `-o'
4025 # argument, so we may need to know it at that point already.
4026 # Even if this section looks crufty: it has the advantage of
4033 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4038 if test -z "$ac_file"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.
$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error
77 "C++ compiler cannot create executables
4047 See \`config.log' for more details" "$LINENO" 5; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4053 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4055 $as_echo "$ac_file" >&6; }
4056 ac_exeext
=$ac_cv_exeext
4058 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4059 ac_clean_files
=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4061 $as_echo_n "checking for suffix of executables... " >&6; }
4062 if { { ac_try
="$ac_link"
4064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_link") 2>&5
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4074 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4075 # work properly (i.e., refer to `conftest.exe'), while it won't with
4077 for ac_file
in conftest.exe conftest conftest.
*; do
4078 test -f "$ac_file" ||
continue
4080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4081 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4090 See \`config.log' for more details" "$LINENO" 5; }
4092 rm -f conftest conftest
$ac_cv_exeext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 $as_echo "$ac_cv_exeext" >&6; }
4096 rm -f conftest.
$ac_ext
4097 EXEEXT
=$ac_cv_exeext
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4105 FILE *f = fopen ("conftest.out", "w");
4106 return ferror (f) || fclose (f) != 0;
4112 ac_clean_files
="$ac_clean_files conftest.out"
4113 # Check that the compiler produces executables we can run. If not, either
4114 # the compiler is broken, or we cross compile.
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4116 $as_echo_n "checking whether we are cross compiling... " >&6; }
4117 if test "$cross_compiling" != yes; then
4118 { { ac_try
="$ac_link"
4120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_link") 2>&5
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 if { ac_try='./conftest$ac_cv_exeext'
4130 { { case "(($ac_try" in
4131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4132 *) ac_try_echo
=$ac_try;;
4134 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_try") 2>&5
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4142 if test "$cross_compiling" = maybe
; then
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $?
"cannot run C++ compiled programs.
4148 If you meant to cross compile, use \`--host'.
4149 See \`config.log' for more details" "$LINENO" 5; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4154 $as_echo "$cross_compiling" >&6; }
4156 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4157 ac_clean_files
=$ac_clean_files_save
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 $as_echo_n "checking for suffix of object files... " >&6; }
4160 if ${ac_cv_objext+:} false
; then :
4161 $as_echo_n "(cached) " >&6
4163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try
="$ac_compile"
4177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; then :
4186 for ac_file in conftest.o conftest.obj conftest.*; do
4187 test -f "$ac_file" || continue;
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4201 See \
`config.log' for more details" "$LINENO" 5; }
4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4206 $as_echo "$ac_cv_objext" >&6; }
4207 OBJEXT=$ac_cv_objext
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4210 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4211 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4228 if ac_fn_cxx_try_compile "$LINENO"; then :
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4238 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4239 if test $ac_compiler_gnu = yes; then
4244 ac_test_CXXFLAGS=${CXXFLAGS+set}
4245 ac_save_CXXFLAGS=$CXXFLAGS
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4247 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4248 if ${ac_cv_prog_cxx_g+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4252 ac_cxx_werror_flag=yes
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4266 if ac_fn_cxx_try_compile "$LINENO"; then :
4267 ac_cv_prog_cxx_g=yes
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 if ac_fn_cxx_try_compile "$LINENO"; then :
4284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4297 if ac_fn_cxx_try_compile "$LINENO"; then :
4298 ac_cv_prog_cxx_g=yes
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4308 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4309 if test "$ac_test_CXXFLAGS" = set; then
4310 CXXFLAGS=$ac_save_CXXFLAGS
4311 elif test $ac_cv_prog_cxx_g = yes; then
4312 if test "$GXX" = yes; then
4318 if test "$GXX" = yes; then
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 DEPDIR="${am__leading_dot}deps"
4331 ac_config_commands="$ac_config_commands depfiles"
4334 am_make=${MAKE-make}
4335 cat > confinc << 'END'
4337 @echo this is the am__doit target
4340 # If we don't find an include directive, just comment out the code.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4342 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4346 # First try GNU make style include.
4347 echo "include confinc" > confmf
4348 # Ignore all kinds of additional output from 'make'.
4349 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4350 *the\ am__doit\ target*)
4356 # Now try BSD make style include.
4357 if test "$am__include" = "#"; then
4358 echo '.include "confinc"' > confmf
4359 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4360 *the\ am__doit\ target*)
4361 am__include=.include
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4370 $as_echo "$_am_result" >&6; }
4371 rm -f confinc confmf
4373 # Check whether --enable-dependency-tracking was given.
4374 if test "${enable_dependency_tracking+set}" = set; then :
4375 enableval=$enable_dependency_tracking;
4378 if test "x$enable_dependency_tracking" != xno; then
4379 am_depcomp="$ac_aux_dir/depcomp"
4383 if test "x$enable_dependency_tracking" != xno; then
4393 depcc="$CXX" am_compiler_list=
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 $as_echo_n "checking dependency style of $depcc... " >&6; }
4397 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401 # We make a subdir and do the tests there. Otherwise we can end up
4402 # making bogus files that we don't know about and never remove. For
4403 # instance it was reported that on HP-UX the gcc test will end up
4404 # making a dummy file named 'D' -- because '-MD' means "put the output
4408 # Copy depcomp to subdir because otherwise we won't find it if we're
4409 # using a relative directory.
4410 cp "$am_depcomp" conftest.dir
4412 # We will build objects and dependencies in a subdirectory because
4413 # it helps to detect inapplicable dependency modes. For instance
4414 # both Tru64's cc and ICC support -MD to output dependencies as a
4415 # side effect of compilation, but ICC will put the dependencies in
4416 # the current directory while Tru64 will put them in the object
4420 am_cv_CXX_dependencies_compiler_type=none
4421 if test "$am_compiler_list" = ""; then
4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4425 case " $depcc " in #(
4426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4429 for depmode in $am_compiler_list; do
4430 # Setup a source with many dependencies, because some compilers
4431 # like to wrap large dependency lists on column 80 (with \), and
4432 # we should not choose a depcomp mode which is confused by this.
4434 # We need to recreate these files for each test, as the compiler may
4435 # overwrite some of them when testing with obscure command lines.
4436 # This happens at least with the AIX C compiler.
4438 for i in 1 2 3 4 5 6; do
4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441 # Solaris 10 /bin/sh.
4442 echo '/* dummy */' > sub/conftst$i.h
4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447 # mode. It turns out that the SunPro C++ compiler does not properly
4448 # handle '-M -o', and we need to detect this. Also, some Intel
4449 # versions had trouble with output in subdirs.
4450 am__obj=sub/conftest.${OBJEXT-o}
4451 am__minus_obj="-o $am__obj"
4454 # This depmode causes a compiler race in universal mode.
4455 test "$am__universal" = false || continue
4458 # After this tag, mechanisms are not by side-effect, so they'll
4459 # only be used when explicitly requested.
4460 if test "x$enable_dependency_tracking" = xyes; then
4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467 # This compiler won't grok '-c -o', but also, the minuso test has
4468 # not run yet. These depmodes are late enough in the game, and
4469 # so weak that their functioning should not be impacted.
4470 am__obj=conftest.${OBJEXT-o}
4475 if depmode=$depmode \
4476 source=sub/conftest.c object=$am__obj \
4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479 >/dev/null 2>conftest.err &&
4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484 # icc doesn't choke on unknown options, it will just issue warnings
4485 # or remarks (even with -Werror). So we grep stderr for any message
4486 # that says an option was ignored or not supported.
4487 # When given -MP, icc 7.0 and 7.1 complain thusly:
4488 # icc: Command line warning: ignoring option '-M'; no argument required
4489 # The diagnosis changed in icc 8.0:
4490 # icc: Command line remark: option '-MP' not supported
4491 if (grep 'ignoring option' conftest.err ||
4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493 am_cv_CXX_dependencies_compiler_type=$depmode
4502 am_cv_CXX_dependencies_compiler_type=none
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4507 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4508 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4511 test "x$enable_dependency_tracking" != xno \
4512 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4513 am__fastdepCXX_TRUE=
4514 am__fastdepCXX_FALSE='#'
4516 am__fastdepCXX_TRUE='#'
4517 am__fastdepCXX_FALSE=
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4527 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4528 if test -z "$CXXCPP"; then
4529 if ${ac_cv_prog_CXXCPP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 # Double quotes because CXXCPP needs to be expanded
4533 for CXXCPP in "$CXX -E" "/lib/cpp"
4536 for ac_cxx_preproc_warn_flag in '' yes
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4547 # include <limits.h>
4549 # include <assert.h>
4553 if ac_fn_cxx_try_cpp "$LINENO"; then :
4556 # Broken: fails on valid input.
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4567 if ac_fn_cxx_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4571 # Passes both tests.
4575 rm -f conftest.err conftest.i conftest.$ac_ext
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.i conftest.err conftest.
$ac_ext
4580 if $ac_preproc_ok; then :
4585 ac_cv_prog_CXXCPP
=$CXXCPP
4588 CXXCPP
=$ac_cv_prog_CXXCPP
4590 ac_cv_prog_CXXCPP
=$CXXCPP
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4593 $as_echo "$CXXCPP" >&6; }
4595 for ac_cxx_preproc_warn_flag
in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # include <limits.h>
4608 # include <assert.h>
4612 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4615 # Broken: fails on valid input.
4618 rm -f conftest.err conftest.i conftest.
$ac_ext
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4626 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4627 # Broken: success on invalid input.
4630 # Passes both tests.
4634 rm -f conftest.err conftest.i conftest.
$ac_ext
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.
$ac_ext
4639 if $ac_preproc_ok; then :
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
4645 See \`config.log' for more details" "$LINENO" 5; }
4649 ac_cpp
='$CPP $CPPFLAGS'
4650 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4655 ac_cpp
='$CPP $CPPFLAGS'
4656 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4661 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_CC+:} false
; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC
="$CC" # Let the user override the test.
4670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir
=.
4675 for ac_exec_ext
in '' $ac_executable_extensions; do
4676 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_CC"; then
4700 # Extract the first word of "gcc", so it can be a program name with args.
4701 set dummy gcc
; ac_word
=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4705 $as_echo_n "(cached) " >&6
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir
=.
4715 for ac_exec_ext
in '' $ac_executable_extensions; do
4716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_ac_ct_CC
="gcc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_CC" = x
; then
4739 case $cross_compiling:$ac_tool_warned in
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned
=yes ;;
4751 if test -z "$CC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4754 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_CC+:} false
; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC
="$CC" # Let the user override the test.
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4792 if test -z "$CC"; then
4793 # Extract the first word of "cc", so it can be a program name with args.
4794 set dummy cc
; ac_word
=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_prog_CC+:} false
; then :
4798 $as_echo_n "(cached) " >&6
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC
="$CC" # Let the user override the test.
4804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir
=.
4809 for ac_exec_ext
in '' $ac_executable_extensions; do
4810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected
=yes
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy
$ac_cv_prog_CC
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4832 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4848 if test -z "$CC"; then
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog
in cl.exe
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_CC+:} false
; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC
="$CC" # Let the user override the test.
4862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir
=.
4867 for ac_exec_ext
in '' $ac_executable_extensions; do
4868 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882 $as_echo "$CC" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$CC" && break
4892 if test -z "$CC"; then
4894 for ac_prog
in cl.exe
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy
$ac_prog; ac_word
=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4901 $as_echo_n "(cached) " >&6
4903 if test -n "$ac_ct_CC"; then
4904 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir
=.
4911 for ac_exec_ext
in '' $ac_executable_extensions; do
4912 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_CC
="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4924 if test -n "$ac_ct_CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4926 $as_echo "$ac_ct_CC" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 test -n "$ac_ct_CC" && break
4936 if test "x$ac_ct_CC" = x
; then
4939 case $cross_compiling:$ac_tool_warned in
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned
=yes ;;
4952 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error $?
"no acceptable C compiler found in \$PATH
4955 See \`config.log' for more details" "$LINENO" 5; }
4957 # Provide some information about the compiler.
4958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4961 for ac_option
in --version -v -V -qversion; do
4962 { { ac_try
="$ac_compiler $ac_option >&5"
4964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4971 if test -s conftest.err; then
4973 ... rest of stderr output deleted ...
4974 10q' conftest.err >conftest.er1
4975 cat conftest.er1 >&5
4977 rm -f conftest.er1 conftest.err
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4984 if ${ac_cv_c_compiler_gnu+:} false; then :
4985 $as_echo_n "(cached) " >&6
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
5001 if ac_fn_c_try_compile "$LINENO"; then :
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012 if test $ac_compiler_gnu = yes; then
5017 ac_test_CFLAGS=${CFLAGS+set}
5018 ac_save_CFLAGS=$CFLAGS
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5021 if ${ac_cv_prog_cc_g+:} false; then :
5022 $as_echo_n "(cached) " >&6
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5039 if ac_fn_c_try_compile "$LINENO"; then :
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5054 if ac_fn_c_try_compile "$LINENO"; then :
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5070 if ac_fn_c_try_compile "$LINENO"; then :
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_c_werror_flag=$ac_save_c_werror_flag
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5081 $as_echo "$ac_cv_prog_cc_g" >&6; }
5082 if test "$ac_test_CFLAGS" = set; then
5083 CFLAGS=$ac_save_CFLAGS
5084 elif test $ac_cv_prog_cc_g = yes; then
5085 if test "$GCC" = yes; then
5091 if test "$GCC" = yes; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5099 if ${ac_cv_prog_cc_c89+:} false; then :
5100 $as_echo_n "(cached) " >&6
5102 ac_cv_prog_cc_c89=no
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5110 struct buf { int x; };
5111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5112 static char *e (p, i)
5118 static char *f (char * (*g) (char **, int), char **p, ...)
5123 s = g (p, va_arg (v,int));
5128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5129 function prototypes and stuff, but not '\xHH' hex character constants.
5130 These don't provoke an error unfortunately, instead are silently treated
5131 as 'x'. The following induces an error, until -std is added to get
5132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5133 array size at least. It's necessary to write '\x00'==0 to get something
5134 that's true only with -std. */
5135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5138 inside strings and character constants. */
5140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5142 int test (int i, double x);
5143 struct s1 {int (*f) (int a);};
5144 struct s2 {int (*f) (double a);};
5145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5159 CC="$ac_save_CC $ac_arg"
5160 if ac_fn_c_try_compile "$LINENO"; then :
5161 ac_cv_prog_cc_c89=$ac_arg
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5166 rm -f conftest.$ac_ext
5171 case "x$ac_cv_prog_cc_c89" in
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5174 $as_echo "none needed" >&6; } ;;
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5177 $as_echo "unsupported" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5183 if test "x$ac_cv_prog_cc_c89" != xno; then :
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5199 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5200 if ${am_cv_prog_cc_c_o+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5214 # Make sure it works both with $CC and with simple cc.
5215 # Following AC_PROG_CC_C_O, we do the test twice because some
5216 # compilers refuse to overwrite an existing .o file with -o,
5217 # though they will create one.
5218 am_cv_prog_cc_c_o=yes
5220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } \
5225 && test -f conftest2.$ac_objext; then
5228 am_cv_prog_cc_c_o=no
5232 rm -f core conftest*
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5237 if test "$am_cv_prog_cc_c_o" != yes; then
5238 # Losing compiler, so override with the script.
5239 # FIXME: It is wrong to rewrite CC.
5240 # But if we don't then we get into trouble of one sort or another.
5241 # A longer-term fix would be to have automake use am__CC in this case,
5242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5243 CC="$am_aux_dir/compile $CC"
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 depcc="$CC" am_compiler_list=
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5255 $as_echo_n "checking dependency style of $depcc... " >&6; }
5256 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5260 # We make a subdir and do the tests there. Otherwise we can end up
5261 # making bogus files that we don't know about and never remove. For
5262 # instance it was reported that on HP-UX the gcc test will end up
5263 # making a dummy file named 'D' -- because '-MD' means "put the output
5267 # Copy depcomp to subdir because otherwise we won't find it if we're
5268 # using a relative directory.
5269 cp "$am_depcomp" conftest.dir
5271 # We will build objects and dependencies in a subdirectory because
5272 # it helps to detect inapplicable dependency modes. For instance
5273 # both Tru64's cc and ICC support -MD to output dependencies as a
5274 # side effect of compilation, but ICC will put the dependencies in
5275 # the current directory while Tru64 will put them in the object
5279 am_cv_CC_dependencies_compiler_type=none
5280 if test "$am_compiler_list" = ""; then
5281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5284 case " $depcc " in #(
5285 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5288 for depmode in $am_compiler_list; do
5289 # Setup a source with many dependencies, because some compilers
5290 # like to wrap large dependency lists on column 80 (with \), and
5291 # we should not choose a depcomp mode which is confused by this.
5293 # We need to recreate these files for each test, as the compiler may
5294 # overwrite some of them when testing with obscure command lines.
5295 # This happens at least with the AIX C compiler.
5297 for i in 1 2 3 4 5 6; do
5298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5299 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5300 # Solaris 10 /bin/sh.
5301 echo '/* dummy */' > sub/conftst$i.h
5303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5305 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5306 # mode. It turns out that the SunPro C++ compiler does not properly
5307 # handle '-M -o', and we need to detect this. Also, some Intel
5308 # versions had trouble with output in subdirs.
5309 am__obj=sub/conftest.${OBJEXT-o}
5310 am__minus_obj="-o $am__obj"
5313 # This depmode causes a compiler race in universal mode.
5314 test "$am__universal" = false || continue
5317 # After this tag, mechanisms are not by side-effect, so they'll
5318 # only be used when explicitly requested.
5319 if test "x$enable_dependency_tracking" = xyes; then
5325 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5326 # This compiler won't grok '-c -o', but also, the minuso test has
5327 # not run yet. These depmodes are late enough in the game, and
5328 # so weak that their functioning should not be impacted.
5329 am__obj=conftest.${OBJEXT-o}
5334 if depmode=$depmode \
5335 source=sub/conftest.c object=$am__obj \
5336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5338 >/dev/null 2>conftest.err &&
5339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5343 # icc doesn't choke on unknown options, it will just issue warnings
5344 # or remarks (even with -Werror). So we grep stderr for any message
5345 # that says an option was ignored or not supported.
5346 # When given -MP, icc 7.0 and 7.1 complain thusly:
5347 # icc: Command line warning: ignoring option '-M'; no argument required
5348 # The diagnosis changed in icc 8.0:
5349 # icc: Command line remark: option '-MP' not supported
5350 if (grep 'ignoring option' conftest.err ||
5351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5352 am_cv_CC_dependencies_compiler_type=$depmode
5361 am_cv_CC_dependencies_compiler_type=none
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5370 test "x$enable_dependency_tracking" != xno \
5371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5373 am__fastdepCC_FALSE='#'
5375 am__fastdepCC_TRUE='#'
5376 am__fastdepCC_FALSE=
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5386 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5387 # On Suns, sometimes $CPP names a directory.
5388 if test -n "$CPP" && test -d "$CPP"; then
5391 if test -z "$CPP"; then
5392 if ${ac_cv_prog_CPP+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 # Double quotes because CPP needs to be expanded
5396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5399 for ac_c_preproc_warn_flag in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 # include <limits.h>
5412 # include <assert.h>
5416 if ac_fn_c_try_cpp "$LINENO"; then :
5419 # Broken: fails on valid input.
5422 rm -f conftest.err conftest.i conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431 # Broken: success on invalid input.
5434 # Passes both tests.
5438 rm -f conftest.err conftest.i conftest.$ac_ext
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.i conftest.err conftest.
$ac_ext
5443 if $ac_preproc_ok; then :
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5456 $as_echo "$CPP" >&6; }
5458 for ac_c_preproc_warn_flag
in '' yes
5460 # Use a header file that comes with gcc, so configuring glibc
5461 # with a fresh cross-compiler works.
5462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 # <limits.h> exists even on freestanding compilers.
5464 # On the NeXT, cc -E runs the code through the compiler's parser,
5465 # not just through cpp. "Syntax error" is here to catch this case.
5466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5469 # include <limits.h>
5471 # include <assert.h>
5475 if ac_fn_c_try_cpp
"$LINENO"; then :
5478 # Broken: fails on valid input.
5481 rm -f conftest.err conftest.i conftest.
$ac_ext
5483 # OK, works on sane cases. Now check whether nonexistent headers
5484 # can be detected and how.
5485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <ac_nonexistent.h>
5489 if ac_fn_c_try_cpp
"$LINENO"; then :
5490 # Broken: success on invalid input.
5493 # Passes both tests.
5497 rm -f conftest.err conftest.i conftest.
$ac_ext
5500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5501 rm -f conftest.i conftest.err conftest.
$ac_ext
5502 if $ac_preproc_ok; then :
5505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5507 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5508 See \`config.log' for more details" "$LINENO" 5; }
5512 ac_cpp
='$CPP $CPPFLAGS'
5513 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5518 test -n "$build_alias" && ac_build_prefix
=$build_alias-
5520 if test "$cross_compiling" = yes; then :
5522 # Even if we're cross-compiling, we want a compiler here
5523 # that is not a cross-compiler.
5524 saved_cross
=$cross_compiling
5528 ac_cpp
='$CPP $BUILD_CPPFLAGS'
5529 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5530 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5532 if test -n "$ac_build_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5534 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5538 $as_echo_n "(cached) " >&6
5540 if test -n "$BUILD_CC"; then
5541 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir
=.
5548 for ac_exec_ext
in '' $ac_executable_extensions; do
5549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 BUILD_CC
=$ac_cv_prog_BUILD_CC
5561 if test -n "$BUILD_CC"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5563 $as_echo "$BUILD_CC" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5571 if test -z "$ac_cv_prog_BUILD_CC"; then
5572 ac_ct_BUILD_CC
=$BUILD_CC
5573 # Extract the first word of "gcc", so it can be a program name with args.
5574 set dummy gcc
; ac_word
=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false
; then :
5578 $as_echo_n "(cached) " >&6
5580 if test -n "$ac_ct_BUILD_CC"; then
5581 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir
=.
5588 for ac_exec_ext
in '' $ac_executable_extensions; do
5589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5601 if test -n "$ac_ct_BUILD_CC"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5603 $as_echo "$ac_ct_BUILD_CC" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5609 if test "x$ac_ct_BUILD_CC" = x
; then
5612 case $cross_compiling:$ac_tool_warned in
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned
=yes ;;
5618 BUILD_CC
=$ac_ct_BUILD_CC
5621 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5624 if test -z "$BUILD_CC"; then
5625 if test -n "$ac_build_prefix"; then
5626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5627 set dummy
${ac_build_prefix}cc
; ac_word
=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5631 $as_echo_n "(cached) " >&6
5633 if test -n "$BUILD_CC"; then
5634 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5640 test -z "$as_dir" && as_dir
=.
5641 for ac_exec_ext
in '' $ac_executable_extensions; do
5642 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 BUILD_CC
=$ac_cv_prog_BUILD_CC
5654 if test -n "$BUILD_CC"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5656 $as_echo "$BUILD_CC" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5664 if test -z "$ac_cv_prog_BUILD_CC"; then
5665 ac_ct_BUILD_CC
=$BUILD_CC
5666 # Extract the first word of "cc", so it can be a program name with args.
5667 set dummy cc
; ac_word
=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false
; then :
5671 $as_echo_n "(cached) " >&6
5673 if test -n "$ac_ct_BUILD_CC"; then
5674 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_BUILD_CC
="cc"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5694 if test -n "$ac_ct_BUILD_CC"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5696 $as_echo "$ac_ct_BUILD_CC" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5702 if test "x$ac_ct_BUILD_CC" = x
; then
5705 case $cross_compiling:$ac_tool_warned in
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned
=yes ;;
5711 BUILD_CC
=$ac_ct_BUILD_CC
5714 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5718 if test -z "$BUILD_CC"; then
5719 # Extract the first word of "cc", so it can be a program name with args.
5720 set dummy cc
; ac_word
=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5724 $as_echo_n "(cached) " >&6
5726 if test -n "$BUILD_CC"; then
5727 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir
=.
5735 for ac_exec_ext
in '' $ac_executable_extensions; do
5736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5738 ac_prog_rejected
=yes
5741 ac_cv_prog_BUILD_CC
="cc"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 if test $ac_prog_rejected = yes; then
5750 # We found a bogon in the path, so make sure we never use it.
5751 set dummy
$ac_cv_prog_BUILD_CC
5753 if test $# != 0; then
5754 # We chose a different compiler from the bogus one.
5755 # However, it has the same basename, so the bogon will be chosen
5756 # first if we set BUILD_CC to just the basename; use the full file name.
5758 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
5763 BUILD_CC
=$ac_cv_prog_BUILD_CC
5764 if test -n "$BUILD_CC"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5766 $as_echo "$BUILD_CC" >&6; }
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5774 if test -z "$BUILD_CC"; then
5775 if test -n "$ac_build_prefix"; then
5778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5779 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5783 $as_echo_n "(cached) " >&6
5785 if test -n "$BUILD_CC"; then
5786 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir
=.
5793 for ac_exec_ext
in '' $ac_executable_extensions; do
5794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 BUILD_CC
=$ac_cv_prog_BUILD_CC
5806 if test -n "$BUILD_CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5808 $as_echo "$BUILD_CC" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5815 test -n "$BUILD_CC" && break
5818 if test -z "$BUILD_CC"; then
5819 ac_ct_BUILD_CC
=$BUILD_CC
5822 # Extract the first word of "$ac_prog", so it can be a program name with args.
5823 set dummy
$ac_prog; ac_word
=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false
; then :
5827 $as_echo_n "(cached) " >&6
5829 if test -n "$ac_ct_BUILD_CC"; then
5830 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir
=.
5837 for ac_exec_ext
in '' $ac_executable_extensions; do
5838 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5850 if test -n "$ac_ct_BUILD_CC"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5852 $as_echo "$ac_ct_BUILD_CC" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5859 test -n "$ac_ct_BUILD_CC" && break
5862 if test "x$ac_ct_BUILD_CC" = x
; then
5865 case $cross_compiling:$ac_tool_warned in
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned
=yes ;;
5871 BUILD_CC
=$ac_ct_BUILD_CC
5878 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5880 as_fn_error $?
"no acceptable C compiler found in \$PATH
5881 See \`config.log' for more details" "$LINENO" 5; }
5883 # Provide some information about the compiler.
5884 echo "$as_me:$LINENO:" \
5885 "checking for C compiler version" >&5
5886 ac_compiler
=`set X $ac_compile; echo $2`
5887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5888 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }
5892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5893 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }
5897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5898 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }
5903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5914 ac_clean_files_save
=$ac_clean_files
5915 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5916 # Try to create an executable without -o first, disregard a.out.
5917 # It will help us diagnose broken compilers, and finding out an intuition
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5920 $as_echo_n "checking whether the C compiler works... " >&6; }
5921 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5923 # The possible output files:
5924 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5927 for ac_file
in $ac_files
5930 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5931 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
5936 if { { ac_try
="$ac_link_default"
5938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5942 $as_echo "$ac_try_echo"; } >&5
5943 (eval "$ac_link_default") 2>&5
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then :
5947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
5948 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
5949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5950 # so that the user can short-circuit this test for compilers unknown to
5952 for ac_file in $ac_files ''
5954 test -f "$ac_file" || continue
5956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5959 # We found the default executable, but exeext='' is most
5963 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5965 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5967 # We set ac_cv_exeext here because the later test for it is not
5968 # safe: cross compilers may not add the suffix if given an `-o'
5969 # argument, so we may need to know it at that point already.
5970 # Even if this section looks crufty: it has the advantage of
5977 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5982 if test -z "$ac_file"; then :
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's
/^
/|
/' conftest.$ac_ext >&5
5988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5989 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5990 as_fn_error 77 "C compiler cannot create executables
5991 See \`config.log
' for more details" "$LINENO" 5; }
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5994 $as_echo "yes" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5997 $as_echo_n "checking for C compiler default output file name... " >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5999 $as_echo "$ac_file" >&6; }
6000 ac_build_exeext=$ac_cv_build_exeext
6002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6003 ac_clean_files=$ac_clean_files_save
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6005 $as_echo_n "checking for suffix of executables... " >&6; }
6006 if { { ac_try="$ac_link"
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6012 $as_echo "$ac_try_echo"; } >&5
6013 (eval "$ac_link") 2>&5
6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; }; then :
6017 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
6018 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
6019 # work properly (i.e., refer to `conftest.exe
'), while it won't with
6021 for ac_file
in conftest.exe conftest conftest.
*; do
6022 test -f "$ac_file" ||
continue
6024 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
6025 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
6034 See \`config.log' for more details" "$LINENO" 5; }
6036 rm -f conftest conftest
$ac_cv_build_exeext
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6038 $as_echo "$ac_cv_build_exeext" >&6; }
6040 rm -f conftest.
$ac_ext
6041 BUILD_EXEEXT
=$ac_cv_build_exeext
6042 ac_build_exeext
=$BUILD_EXEEXT
6043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6049 FILE *f = fopen ("conftest.out", "w");
6050 return ferror (f) || fclose (f) != 0;
6056 ac_clean_files
="$ac_clean_files conftest.out"
6057 # Check that the compiler produces executables we can run. If not, either
6058 # the compiler is broken, or we cross compile.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6060 $as_echo_n "checking whether we are cross compiling... " >&6; }
6061 if test "$cross_compiling" != yes; then
6062 { { ac_try
="$ac_link"
6064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6068 $as_echo "$ac_try_echo"; } >&5
6069 (eval "$ac_link") 2>&5
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; }
6073 if { ac_try='./conftest$ac_cv_build_exeext'
6074 { { case "(($ac_try" in
6075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6076 *) ac_try_echo
=$ac_try;;
6078 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6079 $as_echo "$ac_try_echo"; } >&5
6080 (eval "$ac_try") 2>&5
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; }; }; then
6086 if test "$cross_compiling" = maybe
; then
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 as_fn_error $?
"cannot run C compiled programs.
6092 If you meant to cross compile, use \`--host'.
6093 See \`config.log' for more details" "$LINENO" 5; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6098 $as_echo "$cross_compiling" >&6; }
6100 rm -f conftest.
$ac_ext conftest
$ac_cv_build_exeext conftest.out
6101 ac_clean_files
=$ac_clean_files_save
6104 # Restore configuration environment
6105 cross_compiling
=$saved_cross
6108 ac_cpp
='$CPP $CPPFLAGS'
6109 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6114 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
6116 CFLAGS
="$mule_backup_CFLAGS"
6117 CXXFLAGS
="$mule_backup_CXXFLAGS"
6118 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
6119 for ac_prog
in gawk mawk nawk
awk
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy
$ac_prog; ac_word
=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_AWK+:} false
; then :
6126 $as_echo_n "(cached) " >&6
6128 if test -n "$AWK"; then
6129 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir
=.
6136 for ac_exec_ext
in '' $ac_executable_extensions; do
6137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_AWK
="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 if test -n "$AWK"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6151 $as_echo "$AWK" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6158 test -n "$AWK" && break
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6163 if ${ac_cv_path_GREP+:} false
; then :
6164 $as_echo_n "(cached) " >&6
6166 if test -z "$GREP"; then
6167 ac_path_GREP_found
=false
6168 # Loop through the user's path and test for each of PROGNAME-LIST
6169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6170 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6173 test -z "$as_dir" && as_dir
=.
6174 for ac_prog
in grep ggrep
; do
6175 for ac_exec_ext
in '' $ac_executable_extensions; do
6176 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6177 as_fn_executable_p
"$ac_path_GREP" ||
continue
6178 # Check for GNU ac_path_GREP and select it if it is found.
6179 # Check for GNU $ac_path_GREP
6180 case `"$ac_path_GREP" --version 2>&1` in
6182 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6185 $as_echo_n 0123456789 >"conftest.in"
6188 cat "conftest.in" "conftest.in" >"conftest.tmp"
6189 mv "conftest.tmp" "conftest.in"
6190 cp "conftest.in" "conftest.nl"
6191 $as_echo 'GREP' >> "conftest.nl"
6192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6193 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6194 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6195 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6196 # Best one so far, save it but keep looking for a better one
6197 ac_cv_path_GREP
="$ac_path_GREP"
6198 ac_path_GREP_max
=$ac_count
6200 # 10*(2^10) chars as input seems more than enough
6201 test $ac_count -gt 10 && break
6203 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6206 $ac_path_GREP_found && break 3
6211 if test -z "$ac_cv_path_GREP"; then
6212 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6215 ac_cv_path_GREP
=$GREP
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6220 $as_echo "$ac_cv_path_GREP" >&6; }
6221 GREP
="$ac_cv_path_GREP"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6225 $as_echo_n "checking for egrep... " >&6; }
6226 if ${ac_cv_path_EGREP+:} false
; then :
6227 $as_echo_n "(cached) " >&6
6229 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6230 then ac_cv_path_EGREP
="$GREP -E"
6232 if test -z "$EGREP"; then
6233 ac_path_EGREP_found
=false
6234 # Loop through the user's path and test for each of PROGNAME-LIST
6235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6236 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6239 test -z "$as_dir" && as_dir
=.
6240 for ac_prog
in egrep; do
6241 for ac_exec_ext
in '' $ac_executable_extensions; do
6242 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6243 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6244 # Check for GNU ac_path_EGREP and select it if it is found.
6245 # Check for GNU $ac_path_EGREP
6246 case `"$ac_path_EGREP" --version 2>&1` in
6248 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6251 $as_echo_n 0123456789 >"conftest.in"
6254 cat "conftest.in" "conftest.in" >"conftest.tmp"
6255 mv "conftest.tmp" "conftest.in"
6256 cp "conftest.in" "conftest.nl"
6257 $as_echo 'EGREP' >> "conftest.nl"
6258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6259 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6260 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6262 # Best one so far, save it but keep looking for a better one
6263 ac_cv_path_EGREP
="$ac_path_EGREP"
6264 ac_path_EGREP_max
=$ac_count
6266 # 10*(2^10) chars as input seems more than enough
6267 test $ac_count -gt 10 && break
6269 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6272 $ac_path_EGREP_found && break 3
6277 if test -z "$ac_cv_path_EGREP"; then
6278 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6281 ac_cv_path_EGREP
=$EGREP
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6287 $as_echo "$ac_cv_path_EGREP" >&6; }
6288 EGREP
="$ac_cv_path_EGREP"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6292 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6294 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6295 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
6296 $as_echo_n "(cached) " >&6
6298 cat >conftest.
make <<\_ACEOF
6301 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6303 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6304 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6306 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6308 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6312 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 SET_MAKE
="MAKE=${MAKE-make}"
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6325 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_RANLIB+:} false
; then :
6329 $as_echo_n "(cached) " >&6
6331 if test -n "$RANLIB"; then
6332 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir
=.
6339 for ac_exec_ext
in '' $ac_executable_extensions; do
6340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 RANLIB
=$ac_cv_prog_RANLIB
6352 if test -n "$RANLIB"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6354 $as_echo "$RANLIB" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6362 if test -z "$ac_cv_prog_RANLIB"; then
6363 ac_ct_RANLIB
=$RANLIB
6364 # Extract the first word of "ranlib", so it can be a program name with args.
6365 set dummy ranlib
; ac_word
=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6369 $as_echo_n "(cached) " >&6
6371 if test -n "$ac_ct_RANLIB"; then
6372 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6378 test -z "$as_dir" && as_dir
=.
6379 for ac_exec_ext
in '' $ac_executable_extensions; do
6380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6392 if test -n "$ac_ct_RANLIB"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6394 $as_echo "$ac_ct_RANLIB" >&6; }
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6400 if test "x$ac_ct_RANLIB" = x
; then
6403 case $cross_compiling:$ac_tool_warned in
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned
=yes ;;
6409 RANLIB
=$ac_ct_RANLIB
6412 RANLIB
="$ac_cv_prog_RANLIB"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6416 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6417 if ${ac_cv_path_SED+:} false
; then :
6418 $as_echo_n "(cached) " >&6
6420 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6421 for ac_i
in 1 2 3 4 5 6 7; do
6422 ac_script
="$ac_script$as_nl$ac_script"
6424 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6425 { ac_script
=; unset ac_script
;}
6426 if test -z "$SED"; then
6427 ac_path_SED_found
=false
6428 # Loop through the user's path and test for each of PROGNAME-LIST
6429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir
=.
6434 for ac_prog
in sed gsed
; do
6435 for ac_exec_ext
in '' $ac_executable_extensions; do
6436 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6437 as_fn_executable_p
"$ac_path_SED" ||
continue
6438 # Check for GNU ac_path_SED and select it if it is found.
6439 # Check for GNU $ac_path_SED
6440 case `"$ac_path_SED" --version 2>&1` in
6442 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6445 $as_echo_n 0123456789 >"conftest.in"
6448 cat "conftest.in" "conftest.in" >"conftest.tmp"
6449 mv "conftest.tmp" "conftest.in"
6450 cp "conftest.in" "conftest.nl"
6451 $as_echo '' >> "conftest.nl"
6452 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6453 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6454 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6455 if test $ac_count -gt ${ac_path_SED_max-0}; then
6456 # Best one so far, save it but keep looking for a better one
6457 ac_cv_path_SED
="$ac_path_SED"
6458 ac_path_SED_max
=$ac_count
6460 # 10*(2^10) chars as input seems more than enough
6461 test $ac_count -gt 10 && break
6463 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6466 $ac_path_SED_found && break 3
6471 if test -z "$ac_cv_path_SED"; then
6472 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6480 $as_echo "$ac_cv_path_SED" >&6; }
6481 SED
="$ac_cv_path_SED"
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6487 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_RANLIB+:} false
; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$RANLIB"; then
6494 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir
=.
6501 for ac_exec_ext
in '' $ac_executable_extensions; do
6502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 RANLIB
=$ac_cv_prog_RANLIB
6514 if test -n "$RANLIB"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6516 $as_echo "$RANLIB" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6524 if test -z "$ac_cv_prog_RANLIB"; then
6525 ac_ct_RANLIB
=$RANLIB
6526 # Extract the first word of "ranlib", so it can be a program name with args.
6527 set dummy ranlib
; ac_word
=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$ac_ct_RANLIB"; then
6534 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir
=.
6541 for ac_exec_ext
in '' $ac_executable_extensions; do
6542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6554 if test -n "$ac_ct_RANLIB"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6556 $as_echo "$ac_ct_RANLIB" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6562 if test "x$ac_ct_RANLIB" = x
; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned
=yes ;;
6571 RANLIB
=$ac_ct_RANLIB
6574 RANLIB
="$ac_cv_prog_RANLIB"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6579 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_STRIP+:} false
; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$STRIP"; then
6586 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir
=.
6593 for ac_exec_ext
in '' $ac_executable_extensions; do
6594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 STRIP
=$ac_cv_prog_STRIP
6606 if test -n "$STRIP"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6608 $as_echo "$STRIP" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_STRIP"; then
6618 # Extract the first word of "strip", so it can be a program name with args.
6619 set dummy strip
; ac_word
=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$ac_ct_STRIP"; then
6626 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir
=.
6633 for ac_exec_ext
in '' $ac_executable_extensions; do
6634 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_STRIP
="strip"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6646 if test -n "$ac_ct_STRIP"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6648 $as_echo "$ac_ct_STRIP" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_STRIP" = x
; then
6657 case $cross_compiling:$ac_tool_warned in
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned
=yes ;;
6666 STRIP
="$ac_cv_prog_STRIP"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6671 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_AR+:} false
; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$AR"; then
6678 ac_cv_prog_AR
="$AR" # Let the user override the test.
6680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir
=.
6685 for ac_exec_ext
in '' $ac_executable_extensions; do
6686 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 if test -n "$AR"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6700 $as_echo "$AR" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6708 if test -z "$ac_cv_prog_AR"; then
6710 # Extract the first word of "ar", so it can be a program name with args.
6711 set dummy
ar; ac_word
=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -n "$ac_ct_AR"; then
6718 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir
=.
6725 for ac_exec_ext
in '' $ac_executable_extensions; do
6726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_AR
="ar"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6738 if test -n "$ac_ct_AR"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6740 $as_echo "$ac_ct_AR" >&6; }
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6746 if test "x$ac_ct_AR" = x
; then
6749 case $cross_compiling:$ac_tool_warned in
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned
=yes ;;
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6763 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_LD+:} false
; then :
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$LD"; then
6770 ac_cv_prog_LD
="$LD" # Let the user override the test.
6772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir
=.
6777 for ac_exec_ext
in '' $ac_executable_extensions; do
6778 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_LD
="${ac_tool_prefix}ld"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 if test -n "$LD"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6792 $as_echo "$LD" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6800 if test -z "$ac_cv_prog_LD"; then
6802 # Extract the first word of "ld", so it can be a program name with args.
6803 set dummy ld
; ac_word
=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_LD+:} false
; then :
6807 $as_echo_n "(cached) " >&6
6809 if test -n "$ac_ct_LD"; then
6810 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
6812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir
=.
6817 for ac_exec_ext
in '' $ac_executable_extensions; do
6818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_LD
="ld"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
6830 if test -n "$ac_ct_LD"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6832 $as_echo "$ac_ct_LD" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 if test "x$ac_ct_LD" = x
; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned
=yes ;;
6854 # Check whether --enable-monolithic was given.
6855 if test "${enable_monolithic+set}" = set; then :
6856 enableval
=$enable_monolithic;
6859 if test ${enable_monolithic:-yes} = yes; then
6861 MONOLITHIC_FALSE
='#'
6868 # Check whether --enable-amule-daemon was given.
6869 if test "${enable_amule_daemon+set}" = set; then :
6870 enableval
=$enable_amule_daemon;
6873 if test ${enable_amule_daemon:-no} = yes; then
6875 AMULE_DAEMON_FALSE
='#'
6877 AMULE_DAEMON_TRUE
='#'
6882 # Check whether --enable-amulecmd was given.
6883 if test "${enable_amulecmd+set}" = set; then :
6884 enableval
=$enable_amulecmd;
6887 if test ${enable_amulecmd:-no} = yes; then
6889 COMPILE_CMD_FALSE
='#'
6891 COMPILE_CMD_TRUE
='#'
6896 # Check whether --enable-webserver was given.
6897 if test "${enable_webserver+set}" = set; then :
6898 enableval
=$enable_webserver;
6901 if test ${enable_webserver:-no} = yes; then
6910 # Check whether --enable-amule-gui was given.
6911 if test "${enable_amule_gui+set}" = set; then :
6912 enableval
=$enable_amule_gui;
6915 if test ${enable_amule_gui:-no} = yes; then
6924 # Check whether --enable-cas was given.
6925 if test "${enable_cas+set}" = set; then :
6926 enableval
=$enable_cas;
6929 if test ${enable_cas:-no} = yes; then
6938 # Check whether --enable-wxcas was given.
6939 if test "${enable_wxcas+set}" = set; then :
6940 enableval
=$enable_wxcas;
6943 if test ${enable_wxcas:-no} = yes; then
6952 # Check whether --enable-ed2k was given.
6953 if test "${enable_ed2k+set}" = set; then :
6954 enableval
=$enable_ed2k;
6957 if test ${enable_ed2k:-yes} = yes; then
6966 # Check whether --enable-alc was given.
6967 if test "${enable_alc+set}" = set; then :
6968 enableval
=$enable_alc;
6971 if test ${enable_alc:-no} = yes; then
6980 # Check whether --enable-alcc was given.
6981 if test "${enable_alcc+set}" = set; then :
6982 enableval
=$enable_alcc;
6985 if test ${enable_alcc:-no} = yes; then
6994 # Check whether --enable-xas was given.
6995 if test "${enable_xas+set}" = set; then :
6996 enableval
=$enable_xas;
6999 if test ${enable_xas:-no} = yes; then
7008 # Check whether --enable-fileview was given.
7009 if test "${enable_fileview+set}" = set; then :
7010 enableval
=$enable_fileview;
7013 if test ${enable_fileview:-no} = yes; then
7022 # Check whether --enable-plasmamule was given.
7023 if test "${enable_plasmamule+set}" = set; then :
7024 enableval
=$enable_plasmamule;
7029 # Run all the tests with static linkage if we want a statically linked binary
7030 # Check whether --enable-static was given.
7031 if test "${enable_static+set}" = set; then :
7032 enableval
=$enable_static;
7036 if test ${enable_static:-no} = yes; then :
7037 LDFLAGS
="$LDFLAGS -static"
7042 # Check whether --with-kde4-config was given.
7043 if test "${with_kde4_config+set}" = set; then :
7044 withval
=$with_kde4_config; KDE4_CONFIG
=$withval
7049 # Check whether --enable-kde-in-home was given.
7050 if test "${enable_kde_in_home+set}" = set; then :
7051 enableval
=$enable_kde_in_home; KDE_IN_HOME
=$enableval
7059 # Check whether --with-moc was given.
7060 if test "${with_moc+set}" = set; then :
7061 withval
=$with_moc; QT_MOC
=$withval
7068 # Default is yes, because they're most likely compatible.
7069 # However, this is only used when cross-compiling.
7071 # Check whether --with-gnu-malloc was given.
7072 if test "${with_gnu_malloc+set}" = set; then :
7073 withval
=$with_gnu_malloc; gnumalloc
=$withval
7080 # Checking for libs before all other stuff to break
7081 # configure as soon as possible in case of a missing one
7082 # to avoid losing too much time
7087 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7090 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7094 $as_echo_n "(cached) " >&6
7098 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir
=.
7106 for ac_exec_ext
in '' $ac_executable_extensions; do
7107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7120 if test -n "$PKG_CONFIG"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7122 $as_echo "$PKG_CONFIG" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7130 if test -z "$ac_cv_path_PKG_CONFIG"; then
7131 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7132 # Extract the first word of "pkg-config", so it can be a program name with args.
7133 set dummy pkg-config
; ac_word
=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7137 $as_echo_n "(cached) " >&6
7139 case $ac_pt_PKG_CONFIG in
7141 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7163 if test -n "$ac_pt_PKG_CONFIG"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7165 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_pt_PKG_CONFIG" = x
; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned
=yes ;;
7180 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7183 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7187 if test -n "$PKG_CONFIG"; then
7188 _pkg_min_version
=0.9.0
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7190 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7191 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193 $as_echo "yes" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7204 $as_echo_n "checking for ANSI C header files... " >&6; }
7205 if ${ac_cv_header_stdc+:} false
; then :
7206 $as_echo_n "(cached) " >&6
7208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7223 if ac_fn_c_try_compile
"$LINENO"; then :
7224 ac_cv_header_stdc
=yes
7226 ac_cv_header_stdc
=no
7228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7230 if test $ac_cv_header_stdc = yes; then
7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "memchr" >/dev
/null
2>&1; then :
7241 ac_cv_header_stdc
=no
7247 if test $ac_cv_header_stdc = yes; then
7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "free" >/dev
/null
2>&1; then :
7258 ac_cv_header_stdc
=no
7264 if test $ac_cv_header_stdc = yes; then
7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266 if test "$cross_compiling" = yes; then :
7269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 #if ((' ' & 0x0FF) == 0x020)
7274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7277 # define ISLOWER(c) \
7278 (('a' <= (c) && (c) <= 'i') \
7279 || ('j' <= (c) && (c) <= 'r') \
7280 || ('s' <= (c) && (c) <= 'z'))
7281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7289 for (i = 0; i < 256; i++)
7290 if (XOR (islower (i), ISLOWER (i))
7291 || toupper (i) != TOUPPER (i))
7296 if ac_fn_c_try_run
"$LINENO"; then :
7299 ac_cv_header_stdc
=no
7301 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7302 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7308 $as_echo "$ac_cv_header_stdc" >&6; }
7309 if test $ac_cv_header_stdc = yes; then
7311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7316 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7317 inttypes.h stdint.h unistd.h
7319 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7322 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7323 cat >>confdefs.h
<<_ACEOF
7324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7332 if test ${enable_cas:-no} = yes; then :
7337 # Check whether --with-gdlib-prefix was given.
7338 if test "${with_gdlib_prefix+set}" = set; then :
7339 withval
=$with_gdlib_prefix;
7343 # Check whether --with-gdlib-config was given.
7344 if test "${with_gdlib_config+set}" = set; then :
7345 withval
=$with_gdlib_config;
7351 # Check gdlib in pkg-config first to avoid deprecation warnings
7352 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7353 # skip the pkg-config check, the user probably wants to use
7354 # another gdlib instance.
7355 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7357 if test -n "$PKG_CONFIG"; then :
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7360 $as_echo_n "checking for gdlib... " >&6; }
7362 if $PKG_CONFIG gdlib
--exists; then :
7364 GDLIB_VERSION
=`$PKG_CONFIG gdlib --modversion`
7366 if $PKG_CONFIG gdlib
--atleast-version=2.0.0; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7369 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7370 GDLIB_CFLAGS
=`$PKG_CONFIG gdlib --cflags`
7371 GDLIB_LDFLAGS
=`$PKG_CONFIG gdlib --libs-only-L`
7372 GDLIB_LIBS
=`$PKG_CONFIG gdlib --libs-only-other`
7373 GDLIB_LIBS
="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7378 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7394 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7395 if test -z "$GDLIB_VERSION"; then :
7397 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7398 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then :
7399 GDLIB_CONFIG_NAME
=gdlib-config
7401 if test -n "$with_gdlib_config"; then :
7402 GDLIB_CONFIG_NAME
="$with_gdlib_config"
7405 # deal with optional prefix
7406 if test -n "$with_gdlib_prefix"; then :
7407 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
7410 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7411 if test -x "$GDLIB_CONFIG_NAME"; then :
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7414 $as_echo_n "checking for gdlib-config... " >&6; }
7415 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7417 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7420 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7421 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false
; then :
7425 $as_echo_n "(cached) " >&6
7427 case $GDLIB_CONFIG_PATH in
7429 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
7434 for as_dir
in $as_dummy
7437 test -z "$as_dir" && as_dir
=.
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
7452 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
7453 if test -n "$GDLIB_CONFIG_PATH"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7455 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7464 if test ${GDLIB_CONFIG_PATH:-no} != no
; then :
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7467 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7468 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
7470 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
7471 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7472 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7473 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7475 if test $gdlib_config_major_version -gt 2; then
7477 elif test $gdlib_config_major_version -eq 2; then
7479 if test $gdlib_config_minor_version -gt 0; then
7481 elif test $gdlib_config_minor_version -eq 0; then
7482 if test $gdlib_config_micro_version -ge 0; then
7494 if test -z "${gdlib_ver_ok:-}"; then :
7496 if test -z "$GDLIB_VERSION"; then :
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7502 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7510 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7511 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7512 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7513 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7519 if test -n "$GDLIB_VERSION"; then :
7521 mule_backup_CFLAGS
="$CFLAGS"
7522 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
7524 ac_fn_c_check_header_mongrel
"$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7525 if test "x$ac_cv_header_gd_h" = xyes
; then :
7538 CFLAGS
="$mule_backup_CFLAGS"
7542 if test -n "$GDLIB_VERSION"; then :
7553 if test -z "$CAS_DEFS"; then :
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7555 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7556 Please check that gdlib-config is in your default path, check out
7557 LD_LIBRARY_PATH or equivalent variable.
7558 Or this might also be that your gdlib-config has other name.
7559 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7560 (replace /usr/bin/gdlib-config with a valid path to your
7562 If you use compiled packages check if you have devel pack installed.
7563 To download the latest version check http://www.boutell.com/gd for
7565 $as_echo "$as_me: WARNING:
7566 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7567 Please check that gdlib-config is in your default path, check out
7568 LD_LIBRARY_PATH or equivalent variable.
7569 Or this might also be that your gdlib-config has other name.
7570 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7571 (replace /usr/bin/gdlib-config with a valid path to your
7573 If you use compiled packages check if you have devel pack installed.
7574 To download the latest version check http://www.boutell.com/gd for
7577 _mule_has_warnings
=yes
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7584 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7585 if ${ac_cv_header_stdbool_h+:} false
; then :
7586 $as_echo_n "(cached) " >&6
7588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 #include <stdbool.h>
7593 "error: bool is not defined"
7596 "error: false is not defined"
7599 "error: false is not 0"
7602 "error: true is not defined"
7605 "error: true is not 1"
7607 #ifndef __bool_true_false_are_defined
7608 "error: __bool_true_false_are_defined is not defined"
7611 struct s { _Bool s: 1; _Bool t; } s;
7613 char a[true == 1 ? 1 : -1];
7614 char b[false == 0 ? 1 : -1];
7615 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7616 char d[(bool) 0.5 == true ? 1 : -1];
7617 /* See body of main program for 'e'. */
7618 char f[(_Bool) 0.0 == false ? 1 : -1];
7620 char h[sizeof (_Bool)];
7622 enum { j = false, k = true, l = false * true, m = true * 256 };
7623 /* The following fails for
7624 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7626 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7627 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7628 /* Catch a bug in an HP-UX C compiler. See
7629 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7630 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7642 /* Refer to every declared value, to avoid compiler optimizations. */
7643 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7644 + !m + !n + !o + !p + !q + !pq);
7650 if ac_fn_c_try_compile
"$LINENO"; then :
7651 ac_cv_header_stdbool_h
=yes
7653 ac_cv_header_stdbool_h
=no
7655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7658 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7659 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7660 if test "x$ac_cv_type__Bool" = xyes
; then :
7662 cat >>confdefs.h
<<_ACEOF
7663 #define HAVE__BOOL 1
7670 if test $ac_cv_header_stdbool_h = yes; then
7672 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7677 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7678 if ${ac_cv_c_const+:} false
; then :
7679 $as_echo_n "(cached) " >&6
7681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7689 /* Ultrix mips cc rejects this sort of thing. */
7690 typedef int charset[2];
7691 const charset cs = { 0, 0 };
7692 /* SunOS 4.1.1 cc rejects this. */
7693 char const *const *pcpcc;
7695 /* NEC SVR4.0.2 mips cc rejects this. */
7696 struct point {int x, y;};
7697 static struct point const zero = {0,0};
7698 /* AIX XL C 1.02.0.0 rejects this.
7699 It does not let you subtract one const X* pointer from another in
7700 an arm of an if-expression whose if-part is not a constant
7702 const char *g = "string";
7703 pcpcc = &g + (g ? g-g : 0);
7704 /* HPUX 7.0 cc rejects these. */
7706 ppc = (char**) pcpcc;
7707 pcpcc = (char const *const *) ppc;
7708 { /* SCO 3.2v4 cc rejects this sort of thing. */
7711 char const *s = 0 ? (char *) 0 : (char const *) 0;
7716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7718 const int *foo = &x[0];
7721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7722 typedef const int *iptr;
7726 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7728 struct s { int j; const int *ap[3]; } bx;
7729 struct s *b = &bx; b->j = 5;
7731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7735 return !cs[0] && !zero.x;
7742 if ac_fn_c_try_compile
"$LINENO"; then :
7747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7750 $as_echo "$ac_cv_c_const" >&6; }
7751 if test $ac_cv_c_const = no
; then
7753 $as_echo "#define const /**/" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7758 $as_echo_n "checking for inline... " >&6; }
7759 if ${ac_cv_c_inline+:} false
; then :
7760 $as_echo_n "(cached) " >&6
7763 for ac_kw
in inline __inline__ __inline
; do
7764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7768 static $ac_kw foo_t static_foo () {return 0; }
7769 $ac_kw foo_t foo () {return 0; }
7773 if ac_fn_c_try_compile
"$LINENO"; then :
7774 ac_cv_c_inline
=$ac_kw
7776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 test "$ac_cv_c_inline" != no
&& break
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7782 $as_echo "$ac_cv_c_inline" >&6; }
7784 case $ac_cv_c_inline in
7787 case $ac_cv_c_inline in
7789 *) ac_val
=$ac_cv_c_inline;;
7791 cat >>confdefs.h
<<_ACEOF
7793 #define inline $ac_val
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7800 $as_echo_n "checking for working volatile... " >&6; }
7801 if ${ac_cv_c_volatile+:} false
; then :
7802 $as_echo_n "(cached) " >&6
7804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7812 int * volatile y = (int *) 0;
7818 if ac_fn_c_try_compile
"$LINENO"; then :
7819 ac_cv_c_volatile
=yes
7823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7826 $as_echo "$ac_cv_c_volatile" >&6; }
7827 if test $ac_cv_c_volatile = no
; then
7829 $as_echo "#define volatile /**/" >>confdefs.h
7835 ac_cpp
='$CXXCPP $CPPFLAGS'
7836 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7844 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then :
7847 # Check whether --with-zlib was given.
7848 if test "${with_zlib+set}" = set; then :
7853 case "${with_zlib:-yes}" in
7855 as_fn_error $?
"zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7860 zlib_prefix
="$with_zlib"
7863 mule_backup_CPPFLAGS
="$CPPFLAGS"
7864 mule_backup_LDFLAGS
="$LDFLAGS"
7865 mule_backup_LIBS
="$LIBS"
7866 if test -n "$zlib_prefix"; then :
7868 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
7869 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
7870 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
7871 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
7880 LIBS
="$ZLIB_LIBS $LIBS"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7883 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7884 if test "$cross_compiling" = yes; then :
7888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7899 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7907 if ac_fn_cxx_try_link
"$LINENO"; then :
7909 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7910 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
7911 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
7912 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
7913 if test "$cross_zver_max" -gt "1"; then
7915 elif test "$cross_zver_max" -eq "1"; then
7917 if test "$cross_zver_mid" -gt "1"; then
7919 elif test "$cross_zver_mid" -eq "1"; then
7920 if test "$cross_zver_min" -ge "4"; then
7929 if test ${result:-no} = yes; then :
7930 z_version
=" (version $ZLIB_VERSION)"
7934 rm -f core conftest.err conftest.
$ac_objext \
7935 conftest
$ac_exeext conftest.
$ac_ext
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7937 $as_echo "$result$z_version" >&6; }
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7950 const char *zver = zlibVersion();
7951 FILE *f=fopen("conftestval", "w");
7958 zver[4] >= '4'))) ? "yes" : "no");
7960 f=fopen("conftestver", "w");
7962 fprintf(f, "%s", ZLIB_VERSION);
7971 if ac_fn_cxx_try_run
"$LINENO"; then :
7973 if test -f conftestval
; then :
7974 result
=`cat conftestval`
7978 if test ${result:-no} = yes; then :
7980 if test -f conftestver
; then :
7982 ZLIB_VERSION
=`cat conftestver`
7983 z_version
=" (version $ZLIB_VERSION)"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7991 $as_echo "$result$z_version" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7997 $as_echo "$result" >&6; }
8000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8005 CPPFLAGS
="$mule_backup_CPPFLAGS"
8006 LDFLAGS
="$mule_backup_LDFLAGS"
8007 LIBS
="$mule_backup_LIBS"
8009 if test ${result:-no} = no
; then :
8014 as_fn_error $?
"zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8023 if test ${enable_webserver:-no} = yes; then :
8026 # Check whether --with-libpng-prefix was given.
8027 if test "${with_libpng_prefix+set}" = set; then :
8028 withval
=$with_libpng_prefix;
8032 # Check whether --with-libpng-config was given.
8033 if test "${with_libpng_config+set}" = set; then :
8034 withval
=$with_libpng_config;
8040 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8041 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then :
8042 LIBPNG_CONFIG_NAME
=libpng-config
8044 if test -n "$with_libpng_config"; then :
8045 LIBPNG_CONFIG_NAME
="$with_libpng_config"
8048 # deal with optional prefix
8049 if test -n "$with_libpng_prefix"; then :
8050 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
8053 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8054 if test -x "$LIBPNG_CONFIG_NAME"; then :
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8057 $as_echo_n "checking for libpng-config... " >&6; }
8058 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8060 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8063 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8064 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false
; then :
8068 $as_echo_n "(cached) " >&6
8070 case $LIBPNG_CONFIG_PATH in
8072 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8076 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
8077 for as_dir
in $as_dummy
8080 test -z "$as_dir" && as_dir
=.
8081 for ac_exec_ext
in '' $ac_executable_extensions; do
8082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
8095 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
8096 if test -n "$LIBPNG_CONFIG_PATH"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8098 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8107 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8110 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8112 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
8114 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
8115 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8116 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8117 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8120 if test $libpng_config_major_version -gt 1; then
8122 elif test $libpng_config_major_version -eq 1; then
8124 if test $libpng_config_minor_version -gt 2; then
8126 elif test $libpng_config_minor_version -eq 2; then
8127 if test $libpng_config_micro_version -ge 0; then
8137 if test -z "$libpng_ver_ok"; then :
8139 if test -z "$LIBPNG_VERSION"; then :
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8145 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8152 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8153 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8154 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8156 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8159 $as_echo_n "checking if libpng is usable... " >&6; }
8161 SAVED_CFLAGS
=$CFLAGS
8162 SAVED_LDFLAGS
=$LDFLAGS
8165 CFLAGS
="$CFLAGS $LIBPNG_CFLAGS"
8166 LDFLAGS
="$LDFLAGS $LIBPNG_LDFLAGS"
8167 LIBS
="$LIBS $LIBPNG_LIBS"
8169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8180 png_uint_32 libpng_vn = png_access_version_number();
8181 printf("\nlibpng version %i\n\n", libpng_vn);
8188 if ac_fn_cxx_try_link
"$LINENO"; then :
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8196 $as_echo "no (failed to compile and link test program)" >&6; }
8203 rm -f core conftest.err conftest.
$ac_objext \
8204 conftest
$ac_exeext conftest.
$ac_ext
8206 CFLAGS
="$SAVED_CFLAGS"
8207 LDFLAGS
="$SAVED_LDFLAGS"
8214 if test -n "$LIBPNG_VERSION"; then :
8215 AMULEWEB_DEFS
="-DWITH_LIBPNG"
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8219 libpng >= 1.2.0 not found.
8220 amuleweb will be compiled but file download progress bar images will
8221 NOT be generated." >&5
8222 $as_echo "$as_me: WARNING:
8223 libpng >= 1.2.0 not found.
8224 amuleweb will be compiled but file download progress bar images will
8225 NOT be generated." >&2;}
8227 _mule_has_warnings
=yes
8238 # Check for GeoIP (required for IP2Country capability)
8240 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8242 # Check whether --enable-geoip was given.
8243 if test "${enable_geoip+set}" = set; then :
8244 enableval
=$enable_geoip;
8249 if test ${enable_geoip:-no} = yes; then :
8252 # Check whether --with-geoip-headers was given.
8253 if test "${with_geoip_headers+set}" = set; then :
8254 withval
=$with_geoip_headers; GEOIP_CPPFLAGS
="-I$withval"
8258 # Check whether --with-geoip-lib was given.
8259 if test "${with_geoip_lib+set}" = set; then :
8260 withval
=$with_geoip_lib; GEOIP_LDFLAGS
="-L$withval"
8264 mule_backup_CPPFLAGS
="$CPPFLAGS"
8265 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
8266 mule_backup_LDFLAGS
="$LDFLAGS"
8267 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
8269 ac_fn_cxx_check_header_mongrel
"$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8270 if test "x$ac_cv_header_GeoIP_h" = xyes
; then :
8272 if test x
$SYS = xwin32
; then :
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8275 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8276 # Actually, we might not need any if GeoIP is linked as a .dll
8277 # - but that's even harder to check for
8278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8283 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8284 I do know it's not the best approach, but at least works with MinGW stock headers.
8285 (tested with w32api-3.12)
8297 if ac_fn_cxx_try_compile
"$LINENO"; then :
8299 GEOIP_WINSOCK_LIB
="-lwsock32"
8303 GEOIP_WINSOCK_LIB
="-lws2_32"
8306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8308 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8312 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8313 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false
; then :
8314 $as_echo_n "(cached) " >&6
8316 ac_check_lib_save_LIBS
=$LIBS
8317 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8331 return GeoIP_open ();
8336 if ac_fn_cxx_try_link
"$LINENO"; then :
8337 ac_cv_lib_GeoIP_GeoIP_open
=yes
8339 ac_cv_lib_GeoIP_GeoIP_open
=no
8341 rm -f core conftest.err conftest.
$ac_objext \
8342 conftest
$ac_exeext conftest.
$ac_ext
8343 LIBS
=$ac_check_lib_save_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8346 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8347 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes
; then :
8350 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8352 GEOIP_LIBS
="-lGeoIP"
8353 if test x
$SYS = xwin32
; then :
8354 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8356 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8358 # Check whether --with-geoip-static was given.
8359 if test "${with_geoip_static+set}" = set; then :
8360 withval
=$with_geoip_static;
8361 if test "$withval" != "no" -a ${enable_static:-no} = no
; then :
8363 mule_backup_LIBS
="$LIBS"
8364 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8375 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8382 if ac_fn_cxx_try_link
"$LINENO"; then :
8384 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8389 Cannot link GeoIP statically, because your linker ($LD) does not
8391 $as_echo "$as_me: WARNING:
8392 Cannot link GeoIP statically, because your linker ($LD) does not
8395 _mule_has_warnings
=yes
8399 rm -f core conftest.err conftest.
$ac_objext \
8400 conftest
$ac_exeext conftest.
$ac_ext
8401 LIBS
="$mule_backup_LIBS"
8410 enable_geoip
=disabled
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8412 GeoIP support has been disabled because the GeoIP libraries were not
8414 $as_echo "$as_me: WARNING:
8415 GeoIP support has been disabled because the GeoIP libraries were not
8418 _mule_has_warnings
=yes
8426 enable_geoip
=disabled
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8428 GeoIP support has been disabled because the GeoIP header files were
8430 $as_echo "$as_me: WARNING:
8431 GeoIP support has been disabled because the GeoIP header files were
8434 _mule_has_warnings
=yes
8441 CPPFLAGS
="$mule_backup_CPPFLAGS"
8442 LDFLAGS
="$mule_backup_LDFLAGS"
8450 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8453 # Check whether --with-wxdir was given.
8454 if test "${with_wxdir+set}" = set; then :
8455 withval
=$with_wxdir; wx_config_name
="$withval/wx-config"
8456 wx_config_args
="--inplace"
8460 # Check whether --with-wx-config was given.
8461 if test "${with_wx_config+set}" = set; then :
8462 withval
=$with_wx_config; wx_config_name
="$withval"
8466 # Check whether --with-wx-prefix was given.
8467 if test "${with_wx_prefix+set}" = set; then :
8468 withval
=$with_wx_prefix; wx_config_prefix
="$withval"
8474 # Check whether --with-wx-exec-prefix was given.
8475 if test "${with_wx_exec_prefix+set}" = set; then :
8476 withval
=$with_wx_exec_prefix; wx_config_exec_prefix
="$withval"
8478 wx_config_exec_prefix
=""
8493 # Check whether --with-toolkit was given.
8494 if test "${with_toolkit+set}" = set; then :
8495 withval
=$with_toolkit;
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8502 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8503 if test "$withval" = "auto" ; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8505 $as_echo "will be automatically detected" >&6; }
8510 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8511 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8512 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8513 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8515 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8520 $as_echo "$TOOLKIT" >&6; }
8527 # Check whether --with-wxshared was given.
8528 if test "${with_wxshared+set}" = set; then :
8529 withval
=$with_wxshared;
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8536 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8537 if test "$withval" = "yes" ; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8539 $as_echo "yes" >&6; }
8542 elif test "1" = "1" -a "$withval" = "no" ; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8546 elif test "$withval" = "auto" ; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8548 $as_echo "will be automatically detected" >&6; }
8552 Unrecognized option value (allowed values: yes, auto)
8560 # Check whether --with-wxdebug was given.
8561 if test "${with_wxdebug+set}" = set; then :
8562 withval
=$with_wxdebug;
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8569 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8570 if test "$withval" = "yes" ; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8572 $as_echo "yes" >&6; }
8575 elif test "1" = "1" -a "$withval" = "no" ; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8579 elif test "$withval" = "auto" ; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8581 $as_echo "will be automatically detected" >&6; }
8585 Unrecognized option value (allowed values: yes, auto)
8593 # Check whether --with-wxversion was given.
8594 if test "${with_wxversion+set}" = set; then :
8595 withval
=$with_wxversion;
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8602 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8603 if test "$withval" = "auto" ; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8605 $as_echo "will be automatically detected" >&6; }
8609 wx_requested_major_version
=`echo $withval | \
8610 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8611 wx_requested_minor_version
=`echo $withval | \
8612 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8614 if test "${#wx_requested_major_version}" != "1" -o \
8615 "${#wx_requested_minor_version}" != "1" ; then
8617 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8621 WX_RELEASE
="$wx_requested_major_version"".""$wx_requested_minor_version"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8623 $as_echo "$WX_RELEASE" >&6; }
8627 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8628 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8629 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8630 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8631 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8632 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8635 # Force using a static wxWidgets library if the executable is to be linked statically.
8636 if test ${enable_static:-no} = yes; then :
8639 # Force using a unicode build of the library
8640 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8645 if test "$WX_SHARED" = "1" ; then
8646 WXCONFIG_FLAGS
="--static=no "
8647 elif test "$WX_SHARED" = "0" ; then
8648 WXCONFIG_FLAGS
="--static=yes "
8651 if test "$WX_DEBUG" = "1" ; then
8652 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
8653 elif test "$WX_DEBUG" = "0" ; then
8654 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
8657 if test "$WX_UNICODE" = "1" ; then
8658 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
8659 elif test "$WX_UNICODE" = "0" ; then
8660 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
8663 if test -n "$TOOLKIT" ; then
8664 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8667 if test -n "$WX_RELEASE" ; then
8668 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8671 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
8673 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8674 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8678 if test x
${WX_CONFIG_NAME+set} != xset
; then
8679 WX_CONFIG_NAME
=wx-config
8682 if test "x$wx_config_name" != x
; then
8683 WX_CONFIG_NAME
="$wx_config_name"
8686 if test x
$wx_config_exec_prefix != x
; then
8687 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8688 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
8690 if test x
$wx_config_prefix != x
; then
8691 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
8692 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8694 if test "$cross_compiling" = "yes"; then
8695 wx_config_args
="$wx_config_args --host=$host_alias"
8698 if test -x "$WX_CONFIG_NAME" ; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8700 $as_echo_n "checking for wx-config... " >&6; }
8701 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8703 $as_echo "$WX_CONFIG_PATH" >&6; }
8705 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8706 set dummy
$WX_CONFIG_NAME; ac_word
=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_path_WX_CONFIG_PATH+:} false
; then :
8710 $as_echo_n "(cached) " >&6
8712 case $WX_CONFIG_PATH in
8714 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
8717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8718 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
8719 for as_dir
in $as_dummy
8722 test -z "$as_dir" && as_dir
=.
8723 for ac_exec_ext
in '' $ac_executable_extensions; do
8724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
8737 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
8738 if test -n "$WX_CONFIG_PATH"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8740 $as_echo "$WX_CONFIG_PATH" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8749 if test "$WX_CONFIG_PATH" != "no" ; then
8752 min_wx_version
=2.8.12
8753 if test -z "$WXCONFIG_FLAGS" ; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8755 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8758 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8761 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8763 WX_VERSION
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8764 wx_config_major_version
=`echo $WX_VERSION | \
8765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8766 wx_config_minor_version
=`echo $WX_VERSION | \
8767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8768 wx_config_micro_version
=`echo $WX_VERSION | \
8769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8771 wx_requested_major_version
=`echo $min_wx_version | \
8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8773 wx_requested_minor_version
=`echo $min_wx_version | \
8774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8775 wx_requested_micro_version
=`echo $min_wx_version | \
8776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8780 if test "x$WX_VERSION" != x
; then
8781 if test $wx_config_major_version -gt $wx_requested_major_version; then
8784 if test $wx_config_major_version -eq $wx_requested_major_version; then
8785 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8788 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8789 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8799 if test -n "$wx_ver_ok"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
8801 $as_echo "yes (version $WX_VERSION)" >&6; }
8802 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs `
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
8805 $as_echo_n "checking for wxWidgets static library... " >&6; }
8806 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
8807 if test "x$WX_LIBS_STATIC" = "x"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812 $as_echo "yes" >&6; }
8816 if test $wx_config_major_version -gt 2; then
8819 if test $wx_config_major_version -eq 2; then
8820 if test $wx_config_minor_version -gt 2; then
8823 if test $wx_config_minor_version -eq 2; then
8824 if test $wx_config_micro_version -ge 6; then
8833 if test $wx_config_major_version -gt 2; then
8836 if test $wx_config_major_version -eq 2; then
8837 if test $wx_config_minor_version -ge 7; then
8842 if test "x$wx_has_rescomp" = x
; then
8845 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
8848 if test "x$wx_has_cppflags" = x
; then
8849 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags `
8850 WX_CPPFLAGS
=$WX_CFLAGS
8851 WX_CXXFLAGS
=$WX_CFLAGS
8853 WX_CFLAGS_ONLY
=$WX_CFLAGS
8854 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
8856 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags `
8857 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags `
8858 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags `
8860 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8861 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8868 if test "x$WX_VERSION" = x
; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
8873 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
8883 if test ! -z "$WXCONFIG_FLAGS"; then
8886 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8887 build with the following settings:
8889 but such build is not available.
8891 To see the wxWidgets builds available on this system, please use
8892 'wx-config --list' command. To use the default build, returned by
8893 'wx-config --selected-config', use the options with their 'auto'
8899 The requested wxWidgets build couldn't be found.
8902 If you still get this error, then check that 'wx-config' is
8903 in path, the directory where wxWidgets libraries are installed
8904 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8905 or equivalent variable and wxWidgets version is 2.8.12 or above."
8907 as_fn_error $?
"$wx_error_message" "$LINENO" 5
8933 WX_VERSION_MAJOR
="$wx_config_major_version"
8934 WX_VERSION_MINOR
="$wx_config_minor_version"
8935 WX_VERSION_MICRO
="$wx_config_micro_version"
8940 if test "$wxWin" != 1; then :
8942 wxWidgets must be installed on your system but wx-config
8943 script couldn't be found. Please check that wx-config is
8944 in path or specified by --with-wx-config=path flag, the
8945 directory where wxWidgets libraries are installed (returned
8946 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8947 equivalent variable and wxWidgets version is 2.8.12 or above.
8951 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8953 This version of wxWidgets is known to not work with aMule.
8954 Please upgrade to a newer version.
8959 WX_RELEASE
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8960 if test $WX_RELEASE -lt 26 ; then
8963 Cannot detect the wxWidgets configuration for the selected wxWidgets build
8964 since its version is $WX_VERSION < 2.6.0; please install a newer
8965 version of wxWidgets.
8969 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
8971 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8972 echo "[dbg] Using wx-config --selected-config"
8973 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8976 if test "$WX_SHARED" = "1"; then
8978 elif test "$WX_SHARED" = "0"; then
8983 if test -z "$UNICODE" ; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8986 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8988 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8990 if test "$WX_UNICODE" != "0"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8993 $as_echo "yes" >&6; }
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9005 if test -z "$DEBUG" ; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9008 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9010 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9012 if test "$WX_DEBUG" != "0"; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9015 $as_echo "yes" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9027 if test -z "$STATIC" ; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9030 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9032 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9034 if test "$WX_STATIC" != "0"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9037 $as_echo "yes" >&6; }
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9049 if test "$WX_STATIC" != "0"; then
9059 if test -z "$TOOLKIT" ; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9062 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9064 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9065 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9066 WX_GTKPORT3
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9067 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9068 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9069 WX_OSXCOCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9070 WX_OSXCARBONPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9071 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9072 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9073 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9076 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
9077 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
9078 if test "$WX_GTKPORT3" != "0"; then WX_PORT
="gtk3"; fi
9079 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
9080 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
9081 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT
="osx_cocoa"; fi
9082 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT
="osx_carbon"; fi
9083 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
9084 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
9085 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
9087 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9088 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
9091 if test "$WX_PORT" = "unknown" ; then
9093 Cannot detect the currently installed wxWidgets port !
9094 Please check your 'wx-config --cxxflags'...
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9099 $as_echo "$WX_PORT" >&6; }
9106 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9107 echo "[dbg] Values of all WX_* options after final detection:"
9108 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9109 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9110 echo "[dbg] WX_SHARED: $WX_SHARED"
9111 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9112 echo "[dbg] WX_PORT: $WX_PORT"
9115 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9117 Cannot build shared library against a static build of wxWidgets !
9118 This error happens because the wxWidgets build which was selected
9119 has been detected as static while you asked to build $PACKAGE_NAME
9120 as shared library and this is not possible.
9121 Use the '--disable-shared' option to build $PACKAGE_NAME
9122 as static library or '--with-wxshared' to use wxWidgets as shared library.
9126 if test -z "$UNICODE" ; then
9129 if test -z "$SHARED" ; then
9132 if test -z "$TOOLKIT" ; then
9136 if test "$DEBUG" = "1"; then
9138 CXXFLAGS
="$CXXFLAGS -g -O0"
9139 CFLAGS
="$CFLAGS -g -O0"
9140 elif test "$DEBUG" = "0"; then
9142 CXXFLAGS
="$CXXFLAGS -O2"
9143 CFLAGS
="$CFLAGS -O2"
9147 # We also need wxBase
9148 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9149 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
9150 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
9152 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9156 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9157 if test "${WX_PORT}" = base
; then :
9159 The selected components need a wxWidgets library with GUI,
9160 but your installation is base-only. Please install a GUI
9161 enabled version of wxWidgets and then retry.
9168 if test ${SYS:-unknown} = win32
; then :
9169 if test -n "$ac_tool_prefix"; then
9170 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9171 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_prog_RC+:} false
; then :
9175 $as_echo_n "(cached) " >&6
9177 if test -n "$RC"; then
9178 ac_cv_prog_RC
="$RC" # Let the user override the test.
9180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9184 test -z "$as_dir" && as_dir
=.
9185 for ac_exec_ext
in '' $ac_executable_extensions; do
9186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9187 ac_cv_prog_RC
="${ac_tool_prefix}windres"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 if test -n "$RC"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9200 $as_echo "$RC" >&6; }
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9208 if test -z "$ac_cv_prog_RC"; then
9210 # Extract the first word of "windres", so it can be a program name with args.
9211 set dummy windres
; ac_word
=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_ac_ct_RC+:} false
; then :
9215 $as_echo_n "(cached) " >&6
9217 if test -n "$ac_ct_RC"; then
9218 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
9220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9224 test -z "$as_dir" && as_dir
=.
9225 for ac_exec_ext
in '' $ac_executable_extensions; do
9226 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_ac_ct_RC
="windres"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
9238 if test -n "$ac_ct_RC"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9240 $as_echo "$ac_ct_RC" >&6; }
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9246 if test "x$ac_ct_RC" = x
; then
9249 case $cross_compiling:$ac_tool_warned in
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9253 ac_tool_warned
=yes ;;
9265 # Check whether --enable-upnp was given.
9266 if test "${enable_upnp+set}" = set; then :
9267 enableval
=$enable_upnp;
9271 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9276 if test ${enable_upnp:-yes} = yes; then :
9280 # Check whether --with-libupnp-prefix was given.
9281 if test "${with_libupnp_prefix+set}" = set; then :
9282 withval
=$with_libupnp_prefix;
9283 if test -d "$withval/lib64/pkgconfig"; then :
9285 export PKG_CONFIG_PATH
=$withval/lib64
/pkgconfig
9289 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
9296 if test $cross_compiling = no
; then :
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.7" >&5
9299 $as_echo_n "checking for libupnp version >= 1.6.7... " >&6; }
9300 if test -n "$PKG_CONFIG"; then :
9302 if $PKG_CONFIG libupnp
--exists; then :
9304 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
9305 if $PKG_CONFIG libupnp
--atleast-version=1.6.7; then :
9308 resultstr
=" (version $LIBUPNP_VERSION)"
9309 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
9310 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
9311 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
9312 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
9313 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9318 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
9325 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
9332 resultstr
=" (pkg-config not found)"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9336 $as_echo "$result$resultstr" >&6; }
9337 libupnp_error
="libupnp >= 1.6.7 not found$resultstr"
9342 libupnp_error
="cross compiling"
9346 if test ${result:-no} = yes; then :
9347 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9349 enable_upnp
=disabled
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9351 UPnP code has been disabled because ${libupnp_error}." >&5
9352 $as_echo "$as_me: WARNING:
9353 UPnP code has been disabled because ${libupnp_error}." >&2;}
9355 _mule_has_warnings
=yes
9364 # Check for Crypto++ (requires C++) >= 5.5
9365 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9368 # Check whether --with-crypto-prefix was given.
9369 if test "${with_crypto_prefix+set}" = set; then :
9370 withval
=$with_crypto_prefix;
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.5" >&5
9375 $as_echo_n "checking for crypto++ version >= 5.5... " >&6; }
9377 cryptopp_found
=false
9379 if test -n "$with_crypto_prefix"; then :
9381 CRYPTOPP_PREFIX
="$with_crypto_prefix"
9382 # Find the Cryptopp header in the user-provided location
9383 if test -f $CRYPTOPP_PREFIX/cryptlib.h
; then
9386 CRYPTOPP_LIB_NAME
="cryptopp"
9387 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
9390 CRYPTOPP_LIBS
="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9394 for CRYPTOPP_LIB_NAME
in "cryptopp" "crypto++"; do
9395 if test -f $CRYPTOPP_PREFIX/include
/$CRYPTOPP_LIB_NAME/cryptlib.h
; then :
9398 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
9399 CRYPTOPP_CPPFLAGS
="-I$CRYPTOPP_PREFIX/include"
9400 CRYPTOPP_LDFLAGS
="-L$CRYPTOPP_PREFIX/lib"
9401 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
9412 # Check whether the compiler can find it
9413 for CRYPTOPP_LIB_NAME
in "cryptopp" "crypto++"; do
9414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9417 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9428 if ac_fn_cxx_try_compile
"$LINENO"; then :
9431 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
9434 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
9438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9443 if $cryptopp_found; then :
9445 # Find out the crypto++ version and check against the minimum required
9446 # Ask the compiler where are the crypto++ files
9447 mule_backup_CPPFLAGS
="$CPPFLAGS"
9448 CPPFLAGS
="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9452 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9455 cryptopp_header_path
=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9457 CPPFLAGS
="$mule_backup_CPPFLAGS"
9458 # Set a prefix suitable for --with-crypto-prefix
9459 CRYPTOPP_PREFIX
="${cryptopp_header_path%/*}"
9460 CRYPTOPP_PREFIX
="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9461 # Now check the version
9462 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9463 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9464 minvers
=`echo 5.5 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9466 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9469 resultstr
=" (version $CRYPTOPP_VERSION_STRING)"
9471 cat >>confdefs.h
<<_ACEOF
9472 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9479 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9487 result
="no"; resultstr
=
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9491 $as_echo "$result$resultstr" >&6; }
9493 if test ${result:-no} = yes; then :
9498 Could not find crypto++ installation or sources.
9499 Please try again with --with-crypto-prefix=/my_crypto_prefix
9500 (replace /my_crypto_prefix with a valid path to your crypto++
9501 installation or source directory)." "$LINENO" 5
9510 # Check whether --enable-debug was given.
9511 if test "${enable_debug+set}" = set; then :
9512 enableval
=$enable_debug;
9516 # Check whether --enable-profile was given.
9517 if test "${enable_profile+set}" = set; then :
9518 enableval
=$enable_profile;
9522 # Check whether --enable-optimize was given.
9523 if test "${enable_optimize+set}" = set; then :
9524 enableval
=$enable_optimize;
9529 if test ${enable_debug:-yes} = yes; then :
9531 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
9533 MULECFLAGS
="$MULECFLAGS -g"
9534 MULECXXFLAGS
="$MULECXXFLAGS -g"
9536 if test ${GCC:-no} = yes; then :
9538 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9539 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9542 if test ${SYS:-unknown} = win32
; then :
9543 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
9548 if test ${GCC:-no} = yes; then :
9550 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9551 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9557 if test ${enable_profile:-no} = yes; then :
9560 MULECFLAGS
="$MULECFLAGS -pg"
9561 MULECXXFLAGS
="$MULECXXFLAGS -pg"
9563 MULELDFLAGS
="$MULELDFLAGS -pg"
9567 if test ${enable_optimize:-no} = yes; then :
9569 MULECFLAGS
="$MULECFLAGS -O2"
9570 MULECXXFLAGS
="$MULECXXFLAGS -O2"
9574 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9578 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9583 if test ${GCC:-no} = yes; then :
9585 mule_backup_CXXFLAGS
="$CXXFLAGS"
9586 CXXFLAGS
="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9589 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9599 short *b = (short*)&a;
9609 if ac_fn_cxx_try_compile
"$LINENO"; then :
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9617 $as_echo "yes" >&6; }
9618 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9624 CXXFLAGS
="$mule_backup_CXXFLAGS"
9628 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9630 mule_backup_CPPFLAGS
="$CPPFLAGS"
9631 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9634 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9640 #include <wx/filefn.h>
9641 #ifndef wxHAS_LARGE_FILES
9642 #error No LargeFile support!
9647 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9650 $as_echo "yes" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9657 Support for large files in wxWidgets is required by aMule.
9658 To continue you must recompile wxWidgets with support for
9659 large files enabled." "$LINENO" 5
9662 rm -f conftest.err conftest.i conftest.
$ac_ext
9664 CPPFLAGS
="$mule_backup_CPPFLAGS"
9668 # Check if the compiler is broken, wrt. exceptions.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9671 $as_echo_n "checking for exception-handling... " >&6; }
9672 if test "$cross_compiling" = yes; then :
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9675 $as_echo "undeterminable" >&6; }
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9677 Cross-compilation detected, so exception handling cannot be tested.
9678 Note that broken exception handling in your compiler may lead to
9679 unexpected crashes." >&5
9680 $as_echo "$as_me: WARNING:
9681 Cross-compilation detected, so exception handling cannot be tested.
9682 Note that broken exception handling in your compiler may lead to
9683 unexpected crashes." >&2;}
9685 _mule_has_warnings
=yes
9689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9709 if ac_fn_cxx_try_run
"$LINENO"; then :
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9712 $as_echo "yes" >&6; }
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9718 as_fn_error $?
"Exception handling does not work. Broken compiler?" "$LINENO" 5
9721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9728 for ac_header
in typeinfo
9730 ac_fn_cxx_check_header_mongrel
"$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9731 if test "x$ac_cv_header_typeinfo" = xyes
; then :
9732 cat >>confdefs.h
<<_ACEOF
9733 #define HAVE_TYPEINFO 1
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9741 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9746 #ifdef HAVE_TYPEINFO
9747 # include <typeinfo>
9756 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9757 std::type_info *ti = abi::__cxa_current_exception_type();
9764 if ac_fn_cxx_try_link
"$LINENO"; then :
9767 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9770 $as_echo "yes" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9778 rm -f core conftest.err conftest.
$ac_objext \
9779 conftest
$ac_exeext conftest.
$ac_ext
9782 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
9785 # Check whether --with-boost was given.
9786 if test "${with_boost+set}" = set; then :
9787 withval
=$with_boost;
9793 if test ${with_boost:-no} != no
; then :
9795 echo "$as_me: this is boost.m4 serial 25" >&5
9797 boost_version_req
=1.47
9799 set x
$boost_version_req 0 0 0
9802 boost_version_req
=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9803 boost_version_req_string
=$1.
$2.
$3
9804 # If BOOST_ROOT is set and the user has not provided a value to
9805 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9806 if test x
"$BOOST_ROOT" != x
; then
9807 if test x
"$with_boost" = x
; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9809 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9810 with_boost
=$BOOST_ROOT
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9813 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9816 DISTCHECK_CONFIGURE_FLAGS
="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9817 boost_save_CPPFLAGS
=$CPPFLAGS
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9819 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9820 if ${boost_cv_inc_path+:} false
; then :
9821 $as_echo_n "(cached) " >&6
9823 boost_cv_inc_path
=no
9825 ac_cpp
='$CXXCPP $CPPFLAGS'
9826 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9827 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9828 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 #include <boost/version.hpp>
9832 #if !defined BOOST_VERSION
9833 # error BOOST_VERSION is not defined
9834 #elif BOOST_VERSION < $boost_version_req
9835 # error Boost headers version < $boost_version_req
9846 # If the user provided a value to --with-boost, use it and only it.
9847 case $with_boost in #(
9848 ''|
yes) set x
'' /opt
/local
/include
/usr
/local
/include
/opt
/include \
9849 /usr
/include C
:/Boost
/include
;; #(
9850 *) set x
"$with_boost/include" "$with_boost";;
9855 # Without --layout=system, Boost (or at least some versions) installs
9856 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9857 # find headers in such directories.
9859 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9860 # order followed by ${boost_dir}. The final '.' is a sentinel for
9861 # searching $boost_dir" itself. Entries are whitespace separated.
9863 # I didn't indent this loop on purpose (to avoid over-indented code)
9864 boost_layout_system_search_list
=`cd "$boost_dir" 2>/dev/null \
9865 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9867 for boost_inc
in $boost_layout_system_search_list
9869 if test x
"$boost_inc" != x.
; then
9870 boost_inc
="$boost_dir/$boost_inc"
9872 boost_inc
="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9874 if test x
"$boost_inc" != x
; then
9875 # We are going to check whether the version of Boost installed
9876 # in $boost_inc is usable by running a compilation that
9877 # #includes it. But if we pass a -I/some/path in which Boost
9878 # is not installed, the compiler will just skip this -I and
9879 # use other locations (either from CPPFLAGS, or from its list
9880 # of system include directories). As a result we would use
9881 # header installed on the machine instead of the /some/path
9882 # specified by the user. So in that precise case (trying
9883 # $boost_inc), make sure the version.hpp exists.
9885 # Use test -e as there can be symlinks.
9886 test -e "$boost_inc/boost/version.hpp" ||
continue
9887 CPPFLAGS
="$CPPFLAGS -I$boost_inc"
9889 if ac_fn_cxx_try_compile
"$LINENO"; then :
9890 boost_cv_inc_path
=yes
9894 rm -f core conftest.err conftest.
$ac_objext
9895 if test x
"$boost_cv_inc_path" = xyes
; then
9896 if test x
"$boost_inc" != x
; then
9897 boost_cv_inc_path
=$boost_inc
9904 ac_cpp
='$CXXCPP $CPPFLAGS'
9905 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9906 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9907 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9911 $as_echo "$boost_cv_inc_path" >&6; }
9912 case $boost_cv_inc_path in #(
9914 boost_errmsg
="cannot find Boost headers version >= $boost_version_req_string"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9916 $as_echo "$as_me: $boost_errmsg" >&6;}
9923 BOOST_CPPFLAGS
="-I$boost_cv_inc_path"
9926 if test x
"$boost_cv_inc_path" != xno
; then
9928 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9931 $as_echo_n "checking for Boost's header version... " >&6; }
9932 if ${boost_cv_lib_version+:} false
; then :
9933 $as_echo_n "(cached) " >&6
9936 ac_cpp
='$CXXCPP $CPPFLAGS'
9937 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9938 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9939 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 #include <boost/version.hpp>
9943 boost-lib-version = BOOST_LIB_VERSION
9945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9949 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i
2>&1; then :
9950 boost_cv_lib_version
=`cat conftest.i`
9954 ac_cpp
='$CXXCPP $CPPFLAGS'
9955 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9956 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9957 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9961 $as_echo "$boost_cv_lib_version" >&6; }
9962 # e.g. "134" for 1_34_1 or "135" for 1_35
9963 boost_major_version
=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9964 case $boost_major_version in #(
9966 as_fn_error $?
"invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9970 CPPFLAGS
=$boost_save_CPPFLAGS
9972 if test ${with_boost:-no} != disabled
; then :
9974 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9975 for cc_temp
in $compiler""; do
9977 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
9978 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
9983 cc_basename
=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9984 # All known linkers require a `.a' archive for static linking (except MSVC,
9985 # which needs '.lib').
9987 case $cc_basename in
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9992 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9993 if ${boost_cv_lib_tag+:} false
; then :
9994 $as_echo_n "(cached) " >&6
9996 boost_cv_lib_tag
=unknown
9997 if test x
$boost_cv_inc_path != xno
; then
9999 ac_cpp
='$CXXCPP $CPPFLAGS'
10000 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10003 # The following tests are mostly inspired by boost/config/auto_link.hpp
10004 # The list is sorted to most recent/common to oldest compiler (in order
10005 # to increase the likelihood of finding the right compiler with the
10006 # least number of compilation attempt).
10007 # Beware that some tests are sensible to the order (for instance, we must
10008 # look for MinGW before looking for GCC3).
10009 # I used one compilation test per compiler with a #error to recognize
10010 # each compiler so that it works even when cross-compiling (let me know
10011 # if you know a better approach).
10012 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10013 # como, edg, kcc, bck, mp, sw, tru, xlc
10014 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10015 # the same defines as GCC's).
10017 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10018 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10019 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10020 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10021 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10022 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10023 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10024 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10025 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10026 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10027 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10028 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10029 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10030 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10031 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10032 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10033 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10034 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10035 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10036 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10037 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10038 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10039 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10040 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10041 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10042 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10043 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10044 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10045 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10046 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10047 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10048 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10049 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10050 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10051 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10052 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10053 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10054 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10055 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10056 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10057 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10058 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10059 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10060 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10061 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10062 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10063 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10064 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10065 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10066 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10067 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10068 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10069 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10070 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10071 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10072 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10073 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10074 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10075 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10076 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10077 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10078 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10079 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10080 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10081 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10082 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10083 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10084 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10085 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10086 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10087 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10088 "defined __BORLANDC__ @ bcb" \
10089 "defined __ICC && (defined __unix || defined ) @ il" \
10090 "defined __ICL @ iw" \
10091 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10092 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10093 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10094 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10095 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10096 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10098 boost_tag_test
=`expr "X$i" : 'X\([^@]*\) @ '`
10099 boost_tag
=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 #if $boost_tag_test
10106 # error $boost_tag_test
10117 if ac_fn_cxx_try_compile
"$LINENO"; then :
10118 boost_cv_lib_tag
=$boost_tag; break
10120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10123 ac_cpp
='$CXXCPP $CPPFLAGS'
10124 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10127 case $boost_cv_lib_tag in #(
10128 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10129 # to "gcc41" for instance.
10130 *-gcc |
*'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10133 case $host_os in #(
10135 if test $boost_major_version -ge 136; then
10136 # The `x' added in r46793 of Boost.
10140 # We can specify multiple tags in this variable because it's used by
10141 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10142 boost_cv_lib_tag
="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10146 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10153 $as_echo "$boost_cv_lib_tag" >&6; }
10154 # Check whether --enable-static-boost was given.
10155 if test "${enable_static_boost+set}" = set; then :
10156 enableval
=$enable_static_boost; enable_static_boost
=yes
10158 enable_static_boost
=no
10161 # Check whether we do better use `mt' even though we weren't ask to.
10163 ac_cpp
='$CXXCPP $CPPFLAGS'
10164 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10165 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10166 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10170 #if defined _REENTRANT || defined _MT || defined __MT__
10173 # error MT not needed
10184 if ac_fn_cxx_try_compile
"$LINENO"; then :
10185 boost_guess_use_mt
=:
10187 boost_guess_use_mt
=false
10189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10191 ac_cpp
='$CXXCPP $CPPFLAGS'
10192 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10193 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10194 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10197 $as_echo_n "checking for Boost sources... " >&6; }
10198 mule_backup_CPPFLAGS
="$CPPFLAGS"
10199 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10203 #include <boost/../libs/system/src/error_code.cpp>
10213 if ac_fn_cxx_try_compile
"$LINENO"; then :
10216 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10219 $as_echo "yes" >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10225 if test x
"$boost_cv_inc_path" = xno
; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10227 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10230 ac_cpp
='$CXXCPP $CPPFLAGS'
10231 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10234 if test x
"$boost_cv_inc_path" = xno
; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10236 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10239 ac_cpp
='$CXXCPP $CPPFLAGS'
10240 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10243 boost_save_CPPFLAGS
=$CPPFLAGS
10244 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10245 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10246 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
; then :
10248 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10251 as_fn_error $?
"cannot find boost/system/error_code.hpp" "$LINENO" 5
10255 CPPFLAGS
=$boost_save_CPPFLAGS
10257 ac_cpp
='$CXXCPP $CPPFLAGS'
10258 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10263 boost_save_CPPFLAGS
=$CPPFLAGS
10264 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10266 $as_echo_n "checking for the Boost system library... " >&6; }
10267 if ${boost_cv_lib_system+:} false
; then :
10268 $as_echo_n "(cached) " >&6
10270 boost_cv_lib_system
=no
10272 (mt | mt-
) boost_mt
=-mt; boost_rtopt
=;; #(
10273 (mt
* | mt-
*) boost_mt
=-mt; boost_rtopt
=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10274 (*) boost_mt
=; boost_rtopt
=mt
;;
10276 if test $enable_static_boost = yes; then
10277 boost_rtopt
="s$boost_rtopt"
10279 # Find the proper debug variant depending on what we've been asked to find.
10280 case $boost_rtopt in #(
10281 (*d
*) boost_rt_d
=$boost_rtopt;; #(
10282 (*[sgpn
]*) # Insert the `d' at the right place (in between `sg' and `pn')
10283 boost_rt_d
=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10284 (*) boost_rt_d
='-d';;
10286 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10287 test -n "$boost_rtopt" && boost_rtopt
="-$boost_rtopt"
10288 $boost_guess_use_mt && boost_mt
=-mt
10289 # Look for the abs path the static archive.
10290 # $libext is computed by Libtool but let's make sure it's non empty.
10291 test -z "$libext" &&
10292 as_fn_error $?
"the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10293 boost_save_ac_objext
=$ac_objext
10294 # Generate the test file.
10295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 #include <boost/system/error_code.hpp>
10302 boost::system::error_code e; e.clear();
10307 if ac_fn_cxx_try_compile
"$LINENO"; then :
10308 ac_objext
=do_not_rm_me_plz
10310 as_fn_error $?
"cannot compile a test that uses Boost system" "$LINENO" 5
10312 rm -f core conftest.err conftest.
$ac_objext
10313 ac_objext
=$boost_save_ac_objext
10315 # Don't bother to ident the following nested for loops, only the 2
10316 # innermost ones matter.
10317 for boost_lib_
in system
; do
10318 for boost_tag_
in -$boost_cv_lib_tag ''; do
10319 for boost_ver_
in -$boost_cv_lib_version ''; do
10320 for boost_mt_
in $boost_mt -mt ''; do
10321 for boost_rtopt_
in $boost_rtopt '' -d; do
10323 boost_
$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10324 boost_
$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10325 boost_
$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10326 boost_
$boost_lib_$boost_tag_$boost_ver_
10328 # Avoid testing twice the same lib
10329 case $boost_failed_libs in #(
10330 (*@
$boost_lib@
*) continue;;
10332 # If with_boost is empty, we'll search in /lib first, which is not quite
10333 # right so instead we'll try to a location based on where the headers are.
10334 boost_tmp_lib
=$with_boost
10335 test x
"$with_boost" = x
&& boost_tmp_lib
=${boost_cv_inc_path%/include}
10336 for boost_ldpath
in "$boost_tmp_lib/lib" '' \
10337 /opt
/local
/lib
* /usr
/local
/lib
* /opt
/lib
* /usr
/lib
* \
10338 "$with_boost" C
:/Boost
/lib
/lib
*
10340 # Don't waste time with directories that don't exist.
10341 if test x
"$boost_ldpath" != x
&& test ! -e "$boost_ldpath"; then
10344 boost_save_LDFLAGS
=$LDFLAGS
10345 # Are we looking for a static library?
10346 case $boost_ldpath:$boost_rtopt_ in #(
10347 (*?
*:*s
*) # Yes (Non empty boost_ldpath + s in rt opt)
10348 boost_cv_lib_system_LIBS
="$boost_ldpath/lib$boost_lib.$libext"
10349 test -e "$boost_cv_lib_system_LIBS" ||
continue;; #(
10350 (*) # No: use -lboost_foo to find the shared library.
10351 boost_cv_lib_system_LIBS
="-l$boost_lib";;
10353 boost_save_LIBS
=$LIBS
10354 LIBS
="$boost_cv_lib_system_LIBS $LIBS"
10355 test x
"$boost_ldpath" != x
&& LDFLAGS
="$LDFLAGS -L$boost_ldpath"
10356 rm -f conftest
$ac_exeext
10357 boost_save_ac_ext
=$ac_ext
10359 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10360 # tries to link the existing object file instead of compiling from source.
10361 test -f conftest.
$ac_objext && ac_ext
=$ac_objext && boost_use_source
=false
&&
10362 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10363 if { { ac_try
="$ac_link"
10364 case "(($ac_try" in
10365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10369 $as_echo "$ac_try_echo"; } >&5
10370 (eval "$ac_link") 2>conftest.err
10372 if test -s conftest.err; then
10373 grep -v '^ *+' conftest.err >conftest.er1
10374 cat conftest.er1 >&5
10375 mv -f conftest.er1 conftest.err
10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; } && {
10379 test -z "$ac_cxx_werror_flag" ||
10380 test ! -s conftest.err
10381 } && test -s conftest$ac_exeext && {
10382 test "$cross_compiling" = yes ||
10383 $as_executable_p conftest$ac_exeext
10385 boost_cv_lib_system=yes
10387 if $boost_use_source; then
10388 $as_echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10392 boost_cv_lib_system=no
10394 ac_objext=$boost_save_ac_objext
10395 ac_ext=$boost_save_ac_ext
10396 rm -f core conftest.err conftest_ipa8_conftest.oo \
10398 ac_objext=$boost_save_ac_objext
10399 LDFLAGS=$boost_save_LDFLAGS
10400 LIBS=$boost_save_LIBS
10401 if test x"$boost_cv_lib_system" = xyes; then
10402 # Check or used cached result of whether or not using -R or
10403 # -rpath makes sense. Some implementations of ld, such as for
10404 # Mac OSX, require -rpath but -R is the flag known to work on
10405 # other systems. https://github.com/tsuna/boost.m4/issues/19
10406 if ${boost_cv_rpath_link_ldflag+:} false; then :
10407 $as_echo_n "(cached) " >&6
10409 case $boost_ldpath in
10410 '') # Nothing to do.
10411 boost_cv_rpath_link_ldflag=
10412 boost_rpath_link_ldflag_found=yes;;
10414 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10415 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10416 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10417 rm -f conftest$ac_exeext
10418 boost_save_ac_ext=$ac_ext
10420 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10421 # tries to link the existing object file instead of compiling from source.
10422 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10423 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10424 if { { ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10427 *) ac_try_echo
=$ac_try;;
10429 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10430 $as_echo "$ac_try_echo"; } >&5
10431 (eval "$ac_link") 2>conftest.err
10433 if test -s conftest.err
; then
10434 grep -v '^ *+' conftest.err
>conftest.er1
10435 cat conftest.er1
>&5
10436 mv -f conftest.er1 conftest.err
10438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10439 test $ac_status = 0; } && {
10440 test -z "$ac_cxx_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest
$ac_exeext && {
10443 test "$cross_compiling" = yes ||
10444 $as_executable_p conftest
$ac_exeext
10446 boost_rpath_link_ldflag_found
=yes
10449 if $boost_use_source; then
10450 $as_echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.
$ac_ext >&5
10454 boost_rpath_link_ldflag_found
=no
10456 ac_objext
=$boost_save_ac_objext
10457 ac_ext
=$boost_save_ac_ext
10458 rm -f core conftest.err conftest_ipa8_conftest.oo \
10463 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10464 as_fn_error $?
"Unable to determine whether to use -R or -rpath" "$LINENO" 5
10466 LDFLAGS
=$boost_save_LDFLAGS
10467 LIBS
=$boost_save_LIBS
10471 test x
"$boost_ldpath" != x
&&
10472 boost_cv_lib_system_LDFLAGS
="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10473 boost_cv_lib_system_LDPATH
="$boost_ldpath"
10476 boost_failed_libs
="$boost_failed_libs@$boost_lib@"
10485 rm -f conftest.
$ac_objext
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10489 $as_echo "$boost_cv_lib_system" >&6; }
10490 case $boost_cv_lib_system in #(
10491 (no
) $as_echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.
$ac_ext >&5
10494 as_fn_error $?
"cannot find the flags to link with Boost system" "$LINENO" 5
10497 BOOST_SYSTEM_LDFLAGS
=$boost_cv_lib_system_LDFLAGS
10498 BOOST_SYSTEM_LDPATH
=$boost_cv_lib_system_LDPATH
10499 BOOST_LDPATH
=$boost_cv_lib_system_LDPATH
10500 BOOST_SYSTEM_LIBS
=$boost_cv_lib_system_LIBS
10501 CPPFLAGS
=$boost_save_CPPFLAGS
10503 ac_cpp
='$CXXCPP $CPPFLAGS'
10504 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10505 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10511 if test ${boost_cv_lib_system:-no} != yes; then :
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10514 Boost support has been disabled because Boost.System not found" >&5
10515 $as_echo "$as_me: WARNING:
10516 Boost support has been disabled because Boost.System not found" >&2;}
10517 _mule_warning_7
=yes
10518 _mule_has_warnings
=yes
10520 with_boost
=disabled
10525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10526 CPPFLAGS
="$mule_backup_CPPFLAGS"
10527 if test x
"$boost_cv_inc_path" = xno
; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10530 Boost support has been disabled because Boost.Asio not found" >&5
10531 $as_echo "$as_me: WARNING:
10532 Boost support has been disabled because Boost.Asio not found" >&2;}
10533 _mule_warning_8
=yes
10534 _mule_has_warnings
=yes
10536 with_boost
=disabled
10540 ac_cpp
='$CXXCPP $CPPFLAGS'
10541 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10542 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10543 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10544 boost_save_CPPFLAGS
=$CPPFLAGS
10545 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10546 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10547 if test "x$ac_cv_header_boost_asio_hpp" = xyes
; then :
10549 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10554 Boost support has been disabled because Boost.Asio not found" >&5
10555 $as_echo "$as_me: WARNING:
10556 Boost support has been disabled because Boost.Asio not found" >&2;}
10557 _mule_warning_9
=yes
10558 _mule_has_warnings
=yes
10560 with_boost
=disabled
10565 CPPFLAGS
=$boost_save_CPPFLAGS
10567 ac_cpp
='$CXXCPP $CPPFLAGS'
10568 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10569 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10570 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10576 Boost support has been disabled because of insufficient Boost version." >&5
10577 $as_echo "$as_me: WARNING:
10578 Boost support has been disabled because of insufficient Boost version." >&2;}
10579 _mule_warning_10
=yes
10580 _mule_has_warnings
=yes
10590 # Ok, we have all needed libs, now checking for other stuff
10593 # Checks for header files.
10594 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10595 if test "x$ac_cv_type_size_t" = xyes
; then :
10599 cat >>confdefs.h
<<_ACEOF
10600 #define size_t unsigned int
10605 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10606 # for constant arguments. Useless!
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10608 $as_echo_n "checking for working alloca.h... " >&6; }
10609 if ${ac_cv_working_alloca_h+:} false
; then :
10610 $as_echo_n "(cached) " >&6
10612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 #include <alloca.h>
10618 char *p = (char *) alloca (2 * sizeof (int));
10624 if ac_fn_cxx_try_link
"$LINENO"; then :
10625 ac_cv_working_alloca_h
=yes
10627 ac_cv_working_alloca_h
=no
10629 rm -f core conftest.err conftest.
$ac_objext \
10630 conftest
$ac_exeext conftest.
$ac_ext
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10633 $as_echo "$ac_cv_working_alloca_h" >&6; }
10634 if test $ac_cv_working_alloca_h = yes; then
10636 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10641 $as_echo_n "checking for alloca... " >&6; }
10642 if ${ac_cv_func_alloca_works+:} false
; then :
10643 $as_echo_n "(cached) " >&6
10645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 # define alloca __builtin_alloca
10651 # include <malloc.h>
10652 # define alloca _alloca
10654 # ifdef HAVE_ALLOCA_H
10655 # include <alloca.h>
10660 # ifndef alloca /* predefined by HP cc +Olibcalls */
10661 void *alloca (size_t);
10671 char *p = (char *) alloca (1);
10677 if ac_fn_cxx_try_link
"$LINENO"; then :
10678 ac_cv_func_alloca_works
=yes
10680 ac_cv_func_alloca_works
=no
10682 rm -f core conftest.err conftest.
$ac_objext \
10683 conftest
$ac_exeext conftest.
$ac_ext
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10686 $as_echo "$ac_cv_func_alloca_works" >&6; }
10688 if test $ac_cv_func_alloca_works = yes; then
10690 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10694 # that cause trouble. Some versions do not even contain alloca or
10695 # contain a buggy version. If you still want to use their alloca,
10696 # use ar to extract alloca.o from them instead of compiling alloca.c.
10698 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10700 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10704 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10705 if ${ac_cv_os_cray+:} false
; then :
10706 $as_echo_n "(cached) " >&6
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #if defined CRAY && ! defined CRAY2
10717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10718 $EGREP "webecray" >/dev
/null
2>&1; then :
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10727 $as_echo "$ac_cv_os_cray" >&6; }
10728 if test $ac_cv_os_cray = yes; then
10729 for ac_func
in _getb67 GETB67 getb67
; do
10730 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10731 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10732 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10734 cat >>confdefs.h
<<_ACEOF
10735 #define CRAY_STACKSEG_END $ac_func
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10745 $as_echo_n "checking stack direction for C alloca... " >&6; }
10746 if ${ac_cv_c_stack_direction+:} false
; then :
10747 $as_echo_n "(cached) " >&6
10749 if test "$cross_compiling" = yes; then :
10750 ac_cv_c_stack_direction
=0
10752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754 $ac_includes_default
10756 find_stack_direction (int *addr, int depth)
10758 int dir, dummy = 0;
10761 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10762 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10763 return dir + dummy;
10767 main (int argc, char **argv)
10769 return find_stack_direction (0, argc + !argv + 20) < 0;
10772 if ac_fn_cxx_try_run
"$LINENO"; then :
10773 ac_cv_c_stack_direction
=1
10775 ac_cv_c_stack_direction
=-1
10777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10783 $as_echo "$ac_cv_c_stack_direction" >&6; }
10784 cat >>confdefs.h
<<_ACEOF
10785 #define STACK_DIRECTION $ac_cv_c_stack_direction
10791 ac_header_dirent
=no
10792 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10793 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10795 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10796 if eval \
${$as_ac_Header+:} false
; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #include <sys/types.h>
10813 if ac_fn_cxx_try_compile
"$LINENO"; then :
10814 eval "$as_ac_Header=yes"
10816 eval "$as_ac_Header=no"
10818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10820 eval ac_res
=\$
$as_ac_Header
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10822 $as_echo "$ac_res" >&6; }
10823 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10824 cat >>confdefs.h
<<_ACEOF
10825 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10828 ac_header_dirent
=$ac_hdr; break
10832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10833 if test $ac_header_dirent = dirent.h
; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10835 $as_echo_n "checking for library containing opendir... " >&6; }
10836 if ${ac_cv_search_opendir+:} false
; then :
10837 $as_echo_n "(cached) " >&6
10839 ac_func_search_save_LIBS
=$LIBS
10840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10858 for ac_lib
in '' dir
; do
10859 if test -z "$ac_lib"; then
10860 ac_res
="none required"
10863 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10865 if ac_fn_cxx_try_link
"$LINENO"; then :
10866 ac_cv_search_opendir
=$ac_res
10868 rm -f core conftest.err conftest.
$ac_objext \
10870 if ${ac_cv_search_opendir+:} false
; then :
10874 if ${ac_cv_search_opendir+:} false
; then :
10877 ac_cv_search_opendir
=no
10879 rm conftest.
$ac_ext
10880 LIBS
=$ac_func_search_save_LIBS
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10883 $as_echo "$ac_cv_search_opendir" >&6; }
10884 ac_res
=$ac_cv_search_opendir
10885 if test "$ac_res" != no
; then :
10886 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10892 $as_echo_n "checking for library containing opendir... " >&6; }
10893 if ${ac_cv_search_opendir+:} false
; then :
10894 $as_echo_n "(cached) " >&6
10896 ac_func_search_save_LIBS
=$LIBS
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10915 for ac_lib
in '' x
; do
10916 if test -z "$ac_lib"; then
10917 ac_res
="none required"
10920 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10922 if ac_fn_cxx_try_link
"$LINENO"; then :
10923 ac_cv_search_opendir
=$ac_res
10925 rm -f core conftest.err conftest.
$ac_objext \
10927 if ${ac_cv_search_opendir+:} false
; then :
10931 if ${ac_cv_search_opendir+:} false
; then :
10934 ac_cv_search_opendir
=no
10936 rm conftest.
$ac_ext
10937 LIBS
=$ac_func_search_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10940 $as_echo "$ac_cv_search_opendir" >&6; }
10941 ac_res
=$ac_cv_search_opendir
10942 if test "$ac_res" != no
; then :
10943 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10950 $as_echo_n "checking for ANSI C header files... " >&6; }
10951 if ${ac_cv_header_stdc+:} false
; then :
10952 $as_echo_n "(cached) " >&6
10954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #include <stdlib.h>
10957 #include <stdarg.h>
10958 #include <string.h>
10969 if ac_fn_cxx_try_compile
"$LINENO"; then :
10970 ac_cv_header_stdc
=yes
10972 ac_cv_header_stdc
=no
10974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10976 if test $ac_cv_header_stdc = yes; then
10977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980 #include <string.h>
10983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10984 $EGREP "memchr" >/dev
/null
2>&1; then :
10987 ac_cv_header_stdc
=no
10993 if test $ac_cv_header_stdc = yes; then
10994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997 #include <stdlib.h>
11000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11001 $EGREP "free" >/dev
/null
2>&1; then :
11004 ac_cv_header_stdc
=no
11010 if test $ac_cv_header_stdc = yes; then
11011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11012 if test "$cross_compiling" = yes; then :
11015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11018 #include <stdlib.h>
11019 #if ((' ' & 0x0FF) == 0x020)
11020 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11021 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11023 # define ISLOWER(c) \
11024 (('a' <= (c) && (c) <= 'i') \
11025 || ('j' <= (c) && (c) <= 'r') \
11026 || ('s' <= (c) && (c) <= 'z'))
11027 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11030 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11035 for (i = 0; i < 256; i++)
11036 if (XOR (islower (i), ISLOWER (i))
11037 || toupper (i) != TOUPPER (i))
11042 if ac_fn_cxx_try_run
"$LINENO"; then :
11045 ac_cv_header_stdc
=no
11047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11054 $as_echo "$ac_cv_header_stdc" >&6; }
11055 if test $ac_cv_header_stdc = yes; then
11057 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11061 for ac_header
in argz.h arpa
/inet.h errno.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h signal.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h
11063 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11065 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11066 cat >>confdefs.h
<<_ACEOF
11067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11075 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11076 if ${ac_cv_header_sys_wait_h+:} false
; then :
11077 $as_echo_n "(cached) " >&6
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #include <sys/types.h>
11082 #include <sys/wait.h>
11083 #ifndef WEXITSTATUS
11084 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11087 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11095 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11100 if ac_fn_cxx_try_compile
"$LINENO"; then :
11101 ac_cv_header_sys_wait_h
=yes
11103 ac_cv_header_sys_wait_h
=no
11105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11108 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11109 if test $ac_cv_header_sys_wait_h = yes; then
11111 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11117 # Checks for typedefs, structures, and compiler characteristics.
11118 ac_fn_cxx_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11119 if test "x$ac_cv_type_mode_t" = xyes
; then :
11123 cat >>confdefs.h
<<_ACEOF
11129 ac_fn_cxx_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11130 if test "x$ac_cv_type_off_t" = xyes
; then :
11134 cat >>confdefs.h
<<_ACEOF
11135 #define off_t long int
11140 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11141 if test "x$ac_cv_type_size_t" = xyes
; then :
11145 cat >>confdefs.h
<<_ACEOF
11146 #define size_t unsigned int
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11152 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11153 if ${ac_cv_header_time+:} false
; then :
11154 $as_echo_n "(cached) " >&6
11156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 #include <sys/types.h>
11159 #include <sys/time.h>
11165 if ((struct tm *) 0)
11171 if ac_fn_cxx_try_compile
"$LINENO"; then :
11172 ac_cv_header_time
=yes
11174 ac_cv_header_time
=no
11176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11179 $as_echo "$ac_cv_header_time" >&6; }
11180 if test $ac_cv_header_time = yes; then
11182 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11187 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11188 if ${ac_cv_struct_tm+:} false
; then :
11189 $as_echo_n "(cached) " >&6
11191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #include <sys/types.h>
11200 int *p = &tm.tm_sec;
11206 if ac_fn_cxx_try_compile
"$LINENO"; then :
11207 ac_cv_struct_tm
=time.h
11209 ac_cv_struct_tm
=sys
/time.h
11211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11214 $as_echo "$ac_cv_struct_tm" >&6; }
11215 if test $ac_cv_struct_tm = sys
/time.h
; then
11217 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11222 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11223 if ${ac_cv_type_uid_t+:} false
; then :
11224 $as_echo_n "(cached) " >&6
11226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <sys/types.h>
11231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11232 $EGREP "uid_t" >/dev
/null
2>&1; then :
11233 ac_cv_type_uid_t
=yes
11235 ac_cv_type_uid_t
=no
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11241 $as_echo "$ac_cv_type_uid_t" >&6; }
11242 if test $ac_cv_type_uid_t = no
; then
11244 $as_echo "#define uid_t int" >>confdefs.h
11247 $as_echo "#define gid_t int" >>confdefs.h
11251 ac_fn_cxx_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11252 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
11254 cat >>confdefs.h
<<_ACEOF
11255 #define HAVE_PTRDIFF_T 1
11263 # Checks for library functions.
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11265 $as_echo_n "checking whether closedir returns void... " >&6; }
11266 if ${ac_cv_func_closedir_void+:} false
; then :
11267 $as_echo_n "(cached) " >&6
11269 if test "$cross_compiling" = yes; then :
11270 ac_cv_func_closedir_void
=yes
11272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 #include <$ac_header_dirent>
11276 #ifndef __cplusplus
11283 return closedir (opendir (".")) != 0;
11288 if ac_fn_cxx_try_run
"$LINENO"; then :
11289 ac_cv_func_closedir_void
=no
11291 ac_cv_func_closedir_void
=yes
11293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11294 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11299 $as_echo "$ac_cv_func_closedir_void" >&6; }
11300 if test $ac_cv_func_closedir_void = yes; then
11302 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11306 if test $ac_cv_c_compiler_gnu = yes; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11308 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11309 if ${ac_cv_prog_gcc_traditional+:} false
; then :
11310 $as_echo_n "(cached) " >&6
11312 ac_pattern
="Autoconf.*'x'"
11313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11319 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11320 ac_cv_prog_gcc_traditional
=yes
11322 ac_cv_prog_gcc_traditional
=no
11327 if test $ac_cv_prog_gcc_traditional = no
; then
11328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 #include <termio.h>
11333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11334 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11335 ac_cv_prog_gcc_traditional
=yes
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11342 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11343 if test $ac_cv_prog_gcc_traditional = yes; then
11344 CC
="$CC -traditional"
11348 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11349 if test "x$ac_cv_type_pid_t" = xyes
; then :
11353 cat >>confdefs.h
<<_ACEOF
11359 for ac_header
in vfork.h
11361 ac_fn_cxx_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11362 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11363 cat >>confdefs.h
<<_ACEOF
11364 #define HAVE_VFORK_H 1
11371 for ac_func
in fork vfork
11373 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11375 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11376 cat >>confdefs.h
<<_ACEOF
11377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11383 if test "x$ac_cv_func_fork" = xyes
; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11385 $as_echo_n "checking for working fork... " >&6; }
11386 if ${ac_cv_func_fork_works+:} false
; then :
11387 $as_echo_n "(cached) " >&6
11389 if test "$cross_compiling" = yes; then :
11390 ac_cv_func_fork_works
=cross
11392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 $ac_includes_default
11399 /* By Ruediger Kuhlmann. */
11400 return fork () < 0;
11406 if ac_fn_cxx_try_run
"$LINENO"; then :
11407 ac_cv_func_fork_works
=yes
11409 ac_cv_func_fork_works
=no
11411 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11412 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11417 $as_echo "$ac_cv_func_fork_works" >&6; }
11420 ac_cv_func_fork_works
=$ac_cv_func_fork
11422 if test "x$ac_cv_func_fork_works" = xcross
; then
11424 *-*-amigaos* |
*-*-msdosdjgpp*)
11425 # Override, as these systems have only a dummy fork() stub
11426 ac_cv_func_fork_works
=no
11429 ac_cv_func_fork_works
=yes
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11433 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11435 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11436 if test "x$ac_cv_func_vfork" = xyes
; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11438 $as_echo_n "checking for working vfork... " >&6; }
11439 if ${ac_cv_func_vfork_works+:} false
; then :
11440 $as_echo_n "(cached) " >&6
11442 if test "$cross_compiling" = yes; then :
11443 ac_cv_func_vfork_works
=cross
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 /* Thanks to Paul Eggert for this test. */
11448 $ac_includes_default
11449 #include <sys/wait.h>
11450 #ifdef HAVE_VFORK_H
11451 # include <vfork.h>
11453 /* On some sparc systems, changes by the child to local and incoming
11454 argument registers are propagated back to the parent. The compiler
11455 is told about this with #include <vfork.h>, but some compilers
11456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11457 static variable whose address is put into a register that is
11458 clobbered by the vfork. */
11461 sparc_address_test (int arg)
11463 sparc_address_test (arg) int arg;
11466 static pid_t child;
11484 pid_t parent = getpid ();
11487 sparc_address_test (0);
11492 /* Here is another test for sparc vfork register problems. This
11493 test uses lots of local variables, at least as many local
11494 variables as main has allocated so far including compiler
11495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11497 reuse the register of parent for one of the local variables,
11498 since it will think that parent can't possibly be used any more
11499 in this routine. Assigning to the local variable will thus
11500 munge parent in the parent process. */
11502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11504 /* Convince the compiler that p..p7 are live; otherwise, it might
11505 use the same hardware register for all 8 local variables. */
11506 if (p != p1 || p != p2 || p != p3 || p != p4
11507 || p != p5 || p != p6 || p != p7)
11510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11511 from child file descriptors. If the child closes a descriptor
11512 before it execs or exits, this munges the parent's descriptor
11513 as well. Test for this by closing stdout in the child. */
11514 _exit(close(fileno(stdout)) != 0);
11519 while (wait(&status) != child)
11522 /* Was there some problem with vforking? */
11525 /* Did the child fail? (This shouldn't happen.) */
11528 /* Did the vfork/compiler bug occur? */
11529 || parent != getpid()
11531 /* Did the file descriptor bug occur? */
11532 || fstat(fileno(stdout), &st) != 0
11537 if ac_fn_cxx_try_run
"$LINENO"; then :
11538 ac_cv_func_vfork_works
=yes
11540 ac_cv_func_vfork_works
=no
11542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11548 $as_echo "$ac_cv_func_vfork_works" >&6; }
11551 if test "x$ac_cv_func_fork_works" = xcross
; then
11552 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11554 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11557 if test "x$ac_cv_func_vfork_works" = xyes
; then
11559 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11563 $as_echo "#define vfork fork" >>confdefs.h
11566 if test "x$ac_cv_func_fork_works" = xyes
; then
11568 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11573 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11574 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
11575 $as_echo_n "(cached) " >&6
11577 rm -f conftest.sym conftest.
file
11578 echo >conftest.
file
11579 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11580 if test "$cross_compiling" = yes; then :
11581 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 $ac_includes_default
11590 /* Linux will dereference the symlink and fail, as required by POSIX.
11591 That is better in the sense that it means we will not
11592 have to compile and use the lstat wrapper. */
11593 return lstat ("conftest.sym/", &sbuf) == 0;
11598 if ac_fn_cxx_try_run
"$LINENO"; then :
11599 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11601 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11608 # If the `ln -s' command failed, then we probably don't even
11609 # have an lstat function.
11610 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11612 rm -f conftest.sym conftest.
file
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11616 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11618 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11620 cat >>confdefs.h
<<_ACEOF
11621 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11625 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11626 case " $LIBOBJS " in
11627 *" lstat.$ac_objext "* ) ;;
11628 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11634 if test x
$SYS != xwin32
; then :
11636 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11637 # -lseq on Dynix/PTX, -lgen on Unixware.
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11639 $as_echo_n "checking for library containing getmntent... " >&6; }
11640 if ${ac_cv_search_getmntent+:} false
; then :
11641 $as_echo_n "(cached) " >&6
11643 ac_func_search_save_LIBS
=$LIBS
11644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11657 return getmntent ();
11662 for ac_lib
in '' sun
seq gen
; do
11663 if test -z "$ac_lib"; then
11664 ac_res
="none required"
11667 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11669 if ac_fn_cxx_try_link
"$LINENO"; then :
11670 ac_cv_search_getmntent
=$ac_res
11672 rm -f core conftest.err conftest.
$ac_objext \
11674 if ${ac_cv_search_getmntent+:} false
; then :
11678 if ${ac_cv_search_getmntent+:} false
; then :
11681 ac_cv_search_getmntent
=no
11683 rm conftest.
$ac_ext
11684 LIBS
=$ac_func_search_save_LIBS
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11687 $as_echo "$ac_cv_search_getmntent" >&6; }
11688 ac_res
=$ac_cv_search_getmntent
11689 if test "$ac_res" != no
; then :
11690 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11691 ac_cv_func_getmntent
=yes
11693 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11696 ac_cv_func_getmntent
=no
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11701 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11702 if ${ac_cv_func_lstat_empty_string_bug+:} false
; then :
11703 $as_echo_n "(cached) " >&6
11705 if test "$cross_compiling" = yes; then :
11706 ac_cv_func_lstat_empty_string_bug
=yes
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 $ac_includes_default
11715 return lstat ("", &sbuf) == 0;
11720 if ac_fn_cxx_try_run
"$LINENO"; then :
11721 ac_cv_func_lstat_empty_string_bug
=no
11723 ac_cv_func_lstat_empty_string_bug
=yes
11725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11731 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11732 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11733 case " $LIBOBJS " in
11734 *" lstat.$ac_objext "* ) ;;
11735 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11740 cat >>confdefs.h
<<_ACEOF
11741 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11747 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11748 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
11749 $as_echo_n "(cached) " >&6
11751 rm -f conftest.sym conftest.
file
11752 echo >conftest.
file
11753 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11754 if test "$cross_compiling" = yes; then :
11755 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 $ac_includes_default
11764 /* Linux will dereference the symlink and fail, as required by POSIX.
11765 That is better in the sense that it means we will not
11766 have to compile and use the lstat wrapper. */
11767 return lstat ("conftest.sym/", &sbuf) == 0;
11772 if ac_fn_cxx_try_run
"$LINENO"; then :
11773 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11775 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11782 # If the `ln -s' command failed, then we probably don't even
11783 # have an lstat function.
11784 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11786 rm -f conftest.sym conftest.
file
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11790 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11792 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11794 cat >>confdefs.h
<<_ACEOF
11795 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11799 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11800 case " $LIBOBJS " in
11801 *" lstat.$ac_objext "* ) ;;
11802 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11811 $as_echo_n "checking for working memcmp... " >&6; }
11812 if ${ac_cv_func_memcmp_working+:} false
; then :
11813 $as_echo_n "(cached) " >&6
11815 if test "$cross_compiling" = yes; then :
11816 ac_cv_func_memcmp_working
=no
11818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820 $ac_includes_default
11825 /* Some versions of memcmp are not 8-bit clean. */
11826 char c0 = '\100', c1 = '\200', c2 = '\201';
11827 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11830 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11831 or more and with at least one buffer not starting on a 4-byte boundary.
11832 William Lewis provided this test program. */
11837 for (i = 0; i < 4; i++)
11841 strcpy (a, "--------01111111");
11842 strcpy (b, "--------10000000");
11843 if (memcmp (a, b, 16) >= 0)
11853 if ac_fn_cxx_try_run
"$LINENO"; then :
11854 ac_cv_func_memcmp_working
=yes
11856 ac_cv_func_memcmp_working
=no
11858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11864 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11865 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11866 *" memcmp.$ac_objext "* ) ;;
11867 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11872 for ac_header
in sys
/select.h sys
/socket.h
11874 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11875 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11876 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11877 cat >>confdefs.h
<<_ACEOF
11878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11886 $as_echo_n "checking types of arguments for select... " >&6; }
11887 if ${ac_cv_func_select_args+:} false
; then :
11888 $as_echo_n "(cached) " >&6
11890 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
11891 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11892 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
11893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895 $ac_includes_default
11896 #ifdef HAVE_SYS_SELECT_H
11897 # include <sys/select.h>
11899 #ifdef HAVE_SYS_SOCKET_H
11900 # include <sys/socket.h>
11906 extern int select ($ac_arg1,
11907 $ac_arg234, $ac_arg234, $ac_arg234,
11913 if ac_fn_cxx_try_compile
"$LINENO"; then :
11914 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11920 # Provide a safe default value.
11921 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11925 $as_echo "$ac_cv_func_select_args" >&6; }
11926 ac_save_IFS
=$IFS; IFS
=','
11927 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11931 cat >>confdefs.h
<<_ACEOF
11932 #define SELECT_TYPE_ARG1 $1
11936 cat >>confdefs.h
<<_ACEOF
11937 #define SELECT_TYPE_ARG234 ($2)
11941 cat >>confdefs.h
<<_ACEOF
11942 #define SELECT_TYPE_ARG5 ($3)
11947 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
11948 $as_echo_n "(cached) " >&6
11950 ac_cv_func_setvbuf_reversed
=no
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11955 $as_echo_n "checking return type of signal handlers... " >&6; }
11956 if ${ac_cv_type_signal+:} false
; then :
11957 $as_echo_n "(cached) " >&6
11959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 #include <sys/types.h>
11962 #include <signal.h>
11967 return *(signal (0, 0)) (0) == 1;
11972 if ac_fn_cxx_try_compile
"$LINENO"; then :
11973 ac_cv_type_signal
=int
11975 ac_cv_type_signal
=void
11977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11980 $as_echo "$ac_cv_type_signal" >&6; }
11982 cat >>confdefs.h
<<_ACEOF
11983 #define RETSIGTYPE $ac_cv_type_signal
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11988 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11989 if ${ac_cv_func_stat_empty_string_bug+:} false
; then :
11990 $as_echo_n "(cached) " >&6
11992 if test "$cross_compiling" = yes; then :
11993 ac_cv_func_stat_empty_string_bug
=yes
11995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 $ac_includes_default
12002 return stat ("", &sbuf) == 0;
12007 if ac_fn_cxx_try_run
"$LINENO"; then :
12008 ac_cv_func_stat_empty_string_bug
=no
12010 ac_cv_func_stat_empty_string_bug
=yes
12012 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12013 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12018 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12019 if test $ac_cv_func_stat_empty_string_bug = yes; then
12020 case " $LIBOBJS " in
12021 *" stat.$ac_objext "* ) ;;
12022 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
12027 cat >>confdefs.h
<<_ACEOF
12028 #define HAVE_STAT_EMPTY_STRING_BUG 1
12033 for ac_func
in strftime
12035 ac_fn_cxx_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12036 if test "x$ac_cv_func_strftime" = xyes
; then :
12037 cat >>confdefs.h
<<_ACEOF
12038 #define HAVE_STRFTIME 1
12042 # strftime is in -lintl on SCO UNIX.
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12044 $as_echo_n "checking for strftime in -lintl... " >&6; }
12045 if ${ac_cv_lib_intl_strftime+:} false
; then :
12046 $as_echo_n "(cached) " >&6
12048 ac_check_lib_save_LIBS
=$LIBS
12049 LIBS
="-lintl $LIBS"
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12063 return strftime ();
12068 if ac_fn_cxx_try_link
"$LINENO"; then :
12069 ac_cv_lib_intl_strftime
=yes
12071 ac_cv_lib_intl_strftime
=no
12073 rm -f core conftest.err conftest.
$ac_objext \
12074 conftest
$ac_exeext conftest.
$ac_ext
12075 LIBS
=$ac_check_lib_save_LIBS
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12078 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12079 if test "x$ac_cv_lib_intl_strftime" = xyes
; then :
12080 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12082 LIBS
="-lintl $LIBS"
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12089 $as_echo_n "checking for working strtod... " >&6; }
12090 if ${ac_cv_func_strtod+:} false
; then :
12091 $as_echo_n "(cached) " >&6
12093 if test "$cross_compiling" = yes; then :
12094 ac_cv_func_strtod
=no
12096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 $ac_includes_default
12107 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12108 char *string = " +69";
12111 value = strtod (string, &term);
12112 if (value != 69 || term != (string + 4))
12117 /* Under Solaris 2.4, strtod returns the wrong value for the
12118 terminating character under some conditions. */
12119 char *string = "NaN";
12121 strtod (string, &term);
12122 if (term != string && *(term - 1) == 0)
12129 if ac_fn_cxx_try_run
"$LINENO"; then :
12130 ac_cv_func_strtod
=yes
12132 ac_cv_func_strtod
=no
12134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12140 $as_echo "$ac_cv_func_strtod" >&6; }
12141 if test $ac_cv_func_strtod = no
; then
12142 case " $LIBOBJS " in
12143 *" strtod.$ac_objext "* ) ;;
12144 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
12148 ac_fn_cxx_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12149 if test "x$ac_cv_func_pow" = xyes
; then :
12153 if test $ac_cv_func_pow = no
; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12155 $as_echo_n "checking for pow in -lm... " >&6; }
12156 if ${ac_cv_lib_m_pow+:} false
; then :
12157 $as_echo_n "(cached) " >&6
12159 ac_check_lib_save_LIBS
=$LIBS
12161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12179 if ac_fn_cxx_try_link
"$LINENO"; then :
12180 ac_cv_lib_m_pow
=yes
12184 rm -f core conftest.err conftest.
$ac_objext \
12185 conftest
$ac_exeext conftest.
$ac_ext
12186 LIBS
=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12189 $as_echo "$ac_cv_lib_m_pow" >&6; }
12190 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12194 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12201 for ac_func
in vprintf
12203 ac_fn_cxx_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
12204 if test "x$ac_cv_func_vprintf" = xyes
; then :
12205 cat >>confdefs.h
<<_ACEOF
12206 #define HAVE_VPRINTF 1
12209 ac_fn_cxx_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
12210 if test "x$ac_cv_func__doprnt" = xyes
; then :
12212 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12220 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12223 configure cannot check whether malloc() and realloc() are GNU libc
12224 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12225 run configure with the --without-gnu-malloc switch." >&5
12226 $as_echo "$as_me: WARNING:
12227 configure cannot check whether malloc() and realloc() are GNU libc
12228 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12229 run configure with the --without-gnu-malloc switch." >&2;}
12230 _mule_warning_11
=yes
12231 _mule_has_warnings
=yes
12233 ac_cv_func_malloc_0_nonnull
=yes
12234 ac_cv_func_realloc_0_nonnull
=yes
12237 for ac_header
in stdlib.h
12239 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12240 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12241 cat >>confdefs.h
<<_ACEOF
12242 #define HAVE_STDLIB_H 1
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12250 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12251 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
12252 $as_echo_n "(cached) " >&6
12254 if test "$cross_compiling" = yes; then :
12255 ac_cv_func_malloc_0_nonnull
=no
12257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12260 # include <stdlib.h>
12268 return ! malloc (0);
12273 if ac_fn_cxx_try_run
"$LINENO"; then :
12274 ac_cv_func_malloc_0_nonnull
=yes
12276 ac_cv_func_malloc_0_nonnull
=no
12278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12284 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12285 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12287 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12290 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12292 case " $LIBOBJS " in
12293 *" malloc.$ac_objext "* ) ;;
12294 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
12299 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12304 for ac_header
in stdlib.h
12306 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12307 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12308 cat >>confdefs.h
<<_ACEOF
12309 #define HAVE_STDLIB_H 1
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12317 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12318 if ${ac_cv_func_realloc_0_nonnull+:} false
; then :
12319 $as_echo_n "(cached) " >&6
12321 if test "$cross_compiling" = yes; then :
12322 ac_cv_func_realloc_0_nonnull
=no
12324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12327 # include <stdlib.h>
12335 return ! realloc (0, 0);
12340 if ac_fn_cxx_try_run
"$LINENO"; then :
12341 ac_cv_func_realloc_0_nonnull
=yes
12343 ac_cv_func_realloc_0_nonnull
=no
12345 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12346 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12351 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12352 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12354 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12357 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12359 case " $LIBOBJS " in
12360 *" realloc.$ac_objext "* ) ;;
12361 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
12366 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12371 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow
select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12373 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12374 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12375 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12376 cat >>confdefs.h
<<_ACEOF
12377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12388 for ac_header
in $ac_header_list
12390 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12391 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12393 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12394 cat >>confdefs.h
<<_ACEOF
12395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12410 # Check whether --enable-mmap was given.
12411 if test "${enable_mmap+set}" = set; then :
12412 enableval
=$enable_mmap;
12419 if test ${enable_mmap:-no} = yes; then :
12421 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12424 for ac_func
in getpagesize
12426 ac_fn_cxx_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12427 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12428 cat >>confdefs.h
<<_ACEOF
12429 #define HAVE_GETPAGESIZE 1
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12436 $as_echo_n "checking for working mmap... " >&6; }
12437 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12438 $as_echo_n "(cached) " >&6
12440 if test "$cross_compiling" = yes; then :
12441 ac_cv_func_mmap_fixed_mapped
=no
12443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 /* malloc might have been renamed as rpl_malloc. */
12449 /* Thanks to Mike Haertel and Jim Avera for this test.
12450 Here is a matrix of mmap possibilities:
12451 mmap private not fixed
12452 mmap private fixed at somewhere currently unmapped
12453 mmap private fixed at somewhere already mapped
12454 mmap shared not fixed
12455 mmap shared fixed at somewhere currently unmapped
12456 mmap shared fixed at somewhere already mapped
12457 For private mappings, we should verify that changes cannot be read()
12458 back from the file, nor mmap's back from the file at a different
12459 address. (There have been systems where private was not correctly
12460 implemented like the infamous i386 svr4.0, and systems where the
12461 VM page cache was not coherent with the file system buffer cache
12462 like early versions of FreeBSD and possibly contemporary NetBSD.)
12463 For shared mappings, we should conversely verify that changes get
12464 propagated back to all the places they're supposed to be.
12466 Grep wants private fixed already mapped.
12467 The main things grep needs to know about mmap are:
12468 * does it exist and is it safe to write into the mmap'd area
12469 * how to use it (BSD variants) */
12472 #include <sys/mman.h>
12474 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12478 /* This mess was copied from the GNU getpagesize.h. */
12479 #ifndef HAVE_GETPAGESIZE
12480 # ifdef _SC_PAGESIZE
12481 # define getpagesize() sysconf(_SC_PAGESIZE)
12482 # else /* no _SC_PAGESIZE */
12483 # ifdef HAVE_SYS_PARAM_H
12484 # include <sys/param.h>
12485 # ifdef EXEC_PAGESIZE
12486 # define getpagesize() EXEC_PAGESIZE
12487 # else /* no EXEC_PAGESIZE */
12489 # define getpagesize() NBPG * CLSIZE
12492 # endif /* no CLSIZE */
12493 # else /* no NBPG */
12495 # define getpagesize() NBPC
12496 # else /* no NBPC */
12498 # define getpagesize() PAGESIZE
12499 # endif /* PAGESIZE */
12500 # endif /* no NBPC */
12501 # endif /* no NBPG */
12502 # endif /* no EXEC_PAGESIZE */
12503 # else /* no HAVE_SYS_PARAM_H */
12504 # define getpagesize() 8192 /* punt totally */
12505 # endif /* no HAVE_SYS_PARAM_H */
12506 # endif /* no _SC_PAGESIZE */
12508 #endif /* no HAVE_GETPAGESIZE */
12513 char *data, *data2, *data3;
12517 pagesize = getpagesize ();
12519 /* First, make a file with some known garbage in it. */
12520 data = (char *) malloc (pagesize);
12523 for (i = 0; i < pagesize; ++i)
12524 *(data + i) = rand ();
12526 fd = creat ("conftest.mmap", 0600);
12529 if (write (fd, data, pagesize) != pagesize)
12533 /* Next, check that the tail of a page is zero-filled. File must have
12534 non-zero length, otherwise we risk SIGBUS for entire page. */
12535 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12538 data2 = (char *) "";
12539 if (write (fd2, data2, 1) != 1)
12541 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12542 if (data2 == MAP_FAILED)
12544 for (i = 0; i < pagesize; ++i)
12548 if (munmap (data2, pagesize))
12551 /* Next, try to mmap the file at a fixed address which already has
12552 something else allocated at it. If we can, also make sure that
12553 we see the same garbage. */
12554 fd = open ("conftest.mmap", O_RDWR);
12557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12560 for (i = 0; i < pagesize; ++i)
12561 if (*(data + i) != *(data2 + i))
12564 /* Finally, make sure that changes to the mapped area do not
12565 percolate back to the file as seen by read(). (This is a bug on
12566 some variants of i386 svr4.0.) */
12567 for (i = 0; i < pagesize; ++i)
12568 *(data2 + i) = *(data2 + i) + 1;
12569 data3 = (char *) malloc (pagesize);
12572 if (read (fd, data3, pagesize) != pagesize)
12574 for (i = 0; i < pagesize; ++i)
12575 if (*(data + i) != *(data3 + i))
12581 if ac_fn_cxx_try_run
"$LINENO"; then :
12582 ac_cv_func_mmap_fixed_mapped
=yes
12584 ac_cv_func_mmap_fixed_mapped
=no
12586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12592 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12595 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12598 rm -f conftest.mmap conftest.txt
12600 for ac_func
in munmap sysconf
12602 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12603 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12604 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12605 cat >>confdefs.h
<<_ACEOF
12606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612 if test $ac_cv_func_sysconf = yes; then :
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12615 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12620 #include <unistd.h>
12626 return sysconf(_SC_PAGESIZE);
12633 if ac_fn_cxx_try_link
"$LINENO"; then :
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12636 $as_echo "_SC_PAGESIZE" >&6; }
12638 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12647 #include <unistd.h>
12653 return sysconf(_SC_PAGE_SIZE);
12660 if ac_fn_cxx_try_link
"$LINENO"; then :
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12663 $as_echo "_SC_PAGE_SIZE" >&6; }
12665 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12671 $as_echo "none" >&6; }
12674 rm -f core conftest.err conftest.
$ac_objext \
12675 conftest
$ac_exeext conftest.
$ac_ext
12678 rm -f core conftest.err conftest.
$ac_objext \
12679 conftest
$ac_exeext conftest.
$ac_ext
12688 # Look for a way to preallocate disk space for files.
12689 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12692 $as_echo_n "checking for fallocate... " >&6; }
12693 mule_backup_CPPFLAGS
="$CPPFLAGS"
12694 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
12695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12699 #ifndef _GNU_SOURCE
12700 # define _GNU_SOURCE
12702 #ifdef HAVE_FCNTL_H
12703 # include <fcntl.h>
12705 #include <linux/falloc.h>
12711 fallocate(0, 0, 0, 0);
12718 if ac_fn_cxx_try_link
"$LINENO"; then :
12721 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12724 $as_echo "yes" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12732 rm -f core conftest.err conftest.
$ac_objext \
12733 conftest
$ac_exeext conftest.
$ac_ext
12734 CPPFLAGS
="$mule_backup_CPPFLAGS"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12738 $as_echo_n "checking for SYS_fallocate... " >&6; }
12739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12743 #include <sys/syscall.h>
12744 #include <sys/types.h>
12745 #include <unistd.h>
12751 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12758 if ac_fn_cxx_try_link
"$LINENO"; then :
12761 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764 $as_echo "yes" >&6; }
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12772 rm -f core conftest.err conftest.
$ac_objext \
12773 conftest
$ac_exeext conftest.
$ac_ext
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12776 $as_echo_n "checking for posix_fallocate... " >&6; }
12777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12781 #define _XOPEN_SOURCE 600
12782 #include <stdlib.h>
12783 #ifdef HAVE_FCNTL_H
12784 # include <fcntl.h>
12791 posix_fallocate(0, 0, 0);
12798 if ac_fn_cxx_try_link
"$LINENO"; then :
12801 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804 $as_echo "yes" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12812 rm -f core conftest.err conftest.
$ac_objext \
12813 conftest
$ac_exeext conftest.
$ac_ext
12819 ac_cpp
='$CPP $CPPFLAGS'
12820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12824 # Checking Native Language Support
12828 if test -n "$ac_aux_dir"; then
12829 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
12831 if test -z "$MKINSTALLDIRS"; then
12832 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
12839 # Extract the first word of "msgfmt", so it can be a program name with args.
12840 set dummy msgfmt
; ac_word
=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_path_MSGFMT+:} false
; then :
12844 $as_echo_n "(cached) " >&6
12848 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
12851 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12852 for ac_dir
in $PATH; do
12853 test -z "$ac_dir" && ac_dir
=.
12854 if test -f $ac_dir/$ac_word; then
12855 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
12856 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12857 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
12863 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
12867 MSGFMT
="$ac_cv_path_MSGFMT"
12868 if test "$MSGFMT" != ":"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12870 $as_echo "$MSGFMT" >&6; }
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12876 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12877 set dummy gmsgfmt
; ac_word
=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if ${ac_cv_path_GMSGFMT+:} false
; then :
12881 $as_echo_n "(cached) " >&6
12885 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
12888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12889 for as_dir
in $PATH
12892 test -z "$as_dir" && as_dir
=.
12893 for ac_exec_ext
in '' $ac_executable_extensions; do
12894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
12907 GMSGFMT
=$ac_cv_path_GMSGFMT
12908 if test -n "$GMSGFMT"; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12910 $as_echo "$GMSGFMT" >&6; }
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12918 # Extract the first word of "xgettext", so it can be a program name with args.
12919 set dummy xgettext
; ac_word
=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_path_XGETTEXT+:} false
; then :
12923 $as_echo_n "(cached) " >&6
12925 case "$XGETTEXT" in
12927 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
12930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12931 for ac_dir
in $PATH; do
12932 test -z "$ac_dir" && ac_dir
=.
12933 if test -f $ac_dir/$ac_word; then
12934 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12935 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12936 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
12942 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
12946 XGETTEXT
="$ac_cv_path_XGETTEXT"
12947 if test "$XGETTEXT" != ":"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12949 $as_echo "$XGETTEXT" >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12957 # Extract the first word of "msgmerge", so it can be a program name with args.
12958 set dummy msgmerge
; ac_word
=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_path_MSGMERGE+:} false
; then :
12962 $as_echo_n "(cached) " >&6
12964 case "$MSGMERGE" in
12966 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
12969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12970 for ac_dir
in $PATH; do
12971 test -z "$ac_dir" && ac_dir
=.
12972 if test -f $ac_dir/$ac_word; then
12973 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
12974 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
12980 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
12984 MSGMERGE
="$ac_cv_path_MSGMERGE"
12985 if test "$MSGMERGE" != ":"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12987 $as_echo "$MSGMERGE" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12994 if test "$GMSGFMT" != ":"; then
12995 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
12996 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12999 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13001 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13006 if test "$XGETTEXT" != ":"; then
13007 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
13008 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13012 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13018 ac_config_commands
="$ac_config_commands default-1"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13023 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13024 if ${ac_cv_lib_cposix_strerror+:} false
; then :
13025 $as_echo_n "(cached) " >&6
13027 ac_check_lib_save_LIBS
=$LIBS
13028 LIBS
="-lcposix $LIBS"
13029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13042 return strerror ();
13047 if ac_fn_c_try_link
"$LINENO"; then :
13048 ac_cv_lib_cposix_strerror
=yes
13050 ac_cv_lib_cposix_strerror
=no
13052 rm -f core conftest.err conftest.
$ac_objext \
13053 conftest
$ac_exeext conftest.
$ac_ext
13054 LIBS
=$ac_check_lib_save_LIBS
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13057 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13058 if test "x$ac_cv_lib_cposix_strerror" = xyes
; then :
13059 LIBS
="$LIBS -lcposix"
13065 for ac_func
in getpagesize
13067 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13068 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13069 cat >>confdefs.h
<<_ACEOF
13070 #define HAVE_GETPAGESIZE 1
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13077 $as_echo_n "checking for working mmap... " >&6; }
13078 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13079 $as_echo_n "(cached) " >&6
13081 if test "$cross_compiling" = yes; then :
13082 ac_cv_func_mmap_fixed_mapped
=no
13084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086 $ac_includes_default
13087 /* malloc might have been renamed as rpl_malloc. */
13090 /* Thanks to Mike Haertel and Jim Avera for this test.
13091 Here is a matrix of mmap possibilities:
13092 mmap private not fixed
13093 mmap private fixed at somewhere currently unmapped
13094 mmap private fixed at somewhere already mapped
13095 mmap shared not fixed
13096 mmap shared fixed at somewhere currently unmapped
13097 mmap shared fixed at somewhere already mapped
13098 For private mappings, we should verify that changes cannot be read()
13099 back from the file, nor mmap's back from the file at a different
13100 address. (There have been systems where private was not correctly
13101 implemented like the infamous i386 svr4.0, and systems where the
13102 VM page cache was not coherent with the file system buffer cache
13103 like early versions of FreeBSD and possibly contemporary NetBSD.)
13104 For shared mappings, we should conversely verify that changes get
13105 propagated back to all the places they're supposed to be.
13107 Grep wants private fixed already mapped.
13108 The main things grep needs to know about mmap are:
13109 * does it exist and is it safe to write into the mmap'd area
13110 * how to use it (BSD variants) */
13113 #include <sys/mman.h>
13115 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13119 /* This mess was copied from the GNU getpagesize.h. */
13120 #ifndef HAVE_GETPAGESIZE
13121 # ifdef _SC_PAGESIZE
13122 # define getpagesize() sysconf(_SC_PAGESIZE)
13123 # else /* no _SC_PAGESIZE */
13124 # ifdef HAVE_SYS_PARAM_H
13125 # include <sys/param.h>
13126 # ifdef EXEC_PAGESIZE
13127 # define getpagesize() EXEC_PAGESIZE
13128 # else /* no EXEC_PAGESIZE */
13130 # define getpagesize() NBPG * CLSIZE
13133 # endif /* no CLSIZE */
13134 # else /* no NBPG */
13136 # define getpagesize() NBPC
13137 # else /* no NBPC */
13139 # define getpagesize() PAGESIZE
13140 # endif /* PAGESIZE */
13141 # endif /* no NBPC */
13142 # endif /* no NBPG */
13143 # endif /* no EXEC_PAGESIZE */
13144 # else /* no HAVE_SYS_PARAM_H */
13145 # define getpagesize() 8192 /* punt totally */
13146 # endif /* no HAVE_SYS_PARAM_H */
13147 # endif /* no _SC_PAGESIZE */
13149 #endif /* no HAVE_GETPAGESIZE */
13154 char *data, *data2, *data3;
13155 const char *cdata2;
13159 pagesize = getpagesize ();
13161 /* First, make a file with some known garbage in it. */
13162 data = (char *) malloc (pagesize);
13165 for (i = 0; i < pagesize; ++i)
13166 *(data + i) = rand ();
13168 fd = creat ("conftest.mmap", 0600);
13171 if (write (fd, data, pagesize) != pagesize)
13175 /* Next, check that the tail of a page is zero-filled. File must have
13176 non-zero length, otherwise we risk SIGBUS for entire page. */
13177 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13181 if (write (fd2, cdata2, 1) != 1)
13183 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13184 if (data2 == MAP_FAILED)
13186 for (i = 0; i < pagesize; ++i)
13190 if (munmap (data2, pagesize))
13193 /* Next, try to mmap the file at a fixed address which already has
13194 something else allocated at it. If we can, also make sure that
13195 we see the same garbage. */
13196 fd = open ("conftest.mmap", O_RDWR);
13199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13202 for (i = 0; i < pagesize; ++i)
13203 if (*(data + i) != *(data2 + i))
13206 /* Finally, make sure that changes to the mapped area do not
13207 percolate back to the file as seen by read(). (This is a bug on
13208 some variants of i386 svr4.0.) */
13209 for (i = 0; i < pagesize; ++i)
13210 *(data2 + i) = *(data2 + i) + 1;
13211 data3 = (char *) malloc (pagesize);
13214 if (read (fd, data3, pagesize) != pagesize)
13216 for (i = 0; i < pagesize; ++i)
13217 if (*(data + i) != *(data3 + i))
13225 if ac_fn_c_try_run
"$LINENO"; then :
13226 ac_cv_func_mmap_fixed_mapped
=yes
13228 ac_cv_func_mmap_fixed_mapped
=no
13230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13236 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13237 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13239 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13242 rm -f conftest.mmap conftest.txt
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13246 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13247 if ${ac_cv_gnu_library_2_1+:} false
; then :
13248 $as_echo_n "(cached) " >&6
13250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 #include <features.h>
13254 #ifdef __GNU_LIBRARY__
13255 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
13263 ac_cv_gnu_library_2_1
=yes
13265 ac_cv_gnu_library_2_1
=no
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13273 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13275 GLIBC21
="$ac_cv_gnu_library_2_1"
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13281 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13282 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
13283 $as_echo_n "(cached) " >&6
13286 if test "$cross_compiling" = yes; then :
13288 # Guess based on the CPU.
13289 case "$host_cpu" in
13290 alpha
* | i3456786 | m68k | s390
*)
13291 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
13293 gt_cv_int_divbyzero_sigfpe
="guessing no";;
13297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 #include <stdlib.h>
13301 #include <signal.h>
13305 sigfpe_handler (int sig)
13307 sigfpe_handler (sig) int sig;
13310 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13311 exit (sig != SIGFPE);
13321 signal (SIGFPE, sigfpe_handler);
13322 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13323 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13324 signal (SIGTRAP, sigfpe_handler);
13326 /* Linux/SPARC yields signal SIGILL. */
13327 #if defined (__sparc__) && defined (__linux__)
13328 signal (SIGILL, sigfpe_handler);
13337 if ac_fn_c_try_run
"$LINENO"; then :
13338 gt_cv_int_divbyzero_sigfpe
=yes
13340 gt_cv_int_divbyzero_sigfpe
=no
13342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13349 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13350 case "$gt_cv_int_divbyzero_sigfpe" in
13355 cat >>confdefs.h
<<_ACEOF
13356 #define INTDIV0_RAISES_SIGFPE $value
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13362 $as_echo_n "checking for inttypes.h... " >&6; }
13363 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
13364 $as_echo_n "(cached) " >&6
13366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 #include <sys/types.h>
13369 #include <inttypes.h>
13373 uintmax_t i = (uintmax_t) -1;
13378 if ac_fn_c_try_compile
"$LINENO"; then :
13379 jm_ac_cv_header_inttypes_h
=yes
13381 jm_ac_cv_header_inttypes_h
=no
13383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13386 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13387 if test $jm_ac_cv_header_inttypes_h = yes; then
13389 cat >>confdefs.h
<<_ACEOF
13390 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13397 $as_echo_n "checking for stdint.h... " >&6; }
13398 if ${jm_ac_cv_header_stdint_h+:} false
; then :
13399 $as_echo_n "(cached) " >&6
13401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403 #include <sys/types.h>
13404 #include <stdint.h>
13408 uintmax_t i = (uintmax_t) -1;
13413 if ac_fn_c_try_compile
"$LINENO"; then :
13414 jm_ac_cv_header_stdint_h
=yes
13416 jm_ac_cv_header_stdint_h
=no
13418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13421 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13422 if test $jm_ac_cv_header_stdint_h = yes; then
13424 cat >>confdefs.h
<<_ACEOF
13425 #define HAVE_STDINT_H_WITH_UINTMAX 1
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13432 $as_echo_n "checking for unsigned long long... " >&6; }
13433 if ${ac_cv_type_unsigned_long_long+:} false
; then :
13434 $as_echo_n "(cached) " >&6
13436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 unsigned long long ull = 1; int i = 63;
13442 unsigned long long ullmax = (unsigned long long) -1;
13443 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13448 if ac_fn_c_try_link
"$LINENO"; then :
13449 ac_cv_type_unsigned_long_long
=yes
13451 ac_cv_type_unsigned_long_long
=no
13453 rm -f core conftest.err conftest.
$ac_objext \
13454 conftest
$ac_exeext conftest.
$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13457 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13458 if test $ac_cv_type_unsigned_long_long = yes; then
13460 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13467 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
13469 test $ac_cv_type_unsigned_long_long = yes \
13470 && ac_type
='unsigned long long' \
13471 || ac_type
='unsigned long'
13473 cat >>confdefs.h
<<_ACEOF
13474 #define uintmax_t $ac_type
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13481 $as_echo_n "checking for inttypes.h... " >&6; }
13482 if ${gt_cv_header_inttypes_h+:} false
; then :
13483 $as_echo_n "(cached) " >&6
13486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <sys/types.h>
13489 #include <inttypes.h>
13498 if ac_fn_c_try_compile
"$LINENO"; then :
13499 gt_cv_header_inttypes_h
=yes
13501 gt_cv_header_inttypes_h
=no
13503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13507 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13508 if test $gt_cv_header_inttypes_h = yes; then
13510 cat >>confdefs.h
<<_ACEOF
13511 #define HAVE_INTTYPES_H 1
13518 if test $gt_cv_header_inttypes_h = yes; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13520 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13521 if ${gt_cv_inttypes_pri_broken+:} false
; then :
13522 $as_echo_n "(cached) " >&6
13525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 #include <inttypes.h>
13540 if ac_fn_c_try_compile
"$LINENO"; then :
13541 gt_cv_inttypes_pri_broken
=no
13543 gt_cv_inttypes_pri_broken
=yes
13545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13549 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13551 if test "$gt_cv_inttypes_pri_broken" = yes; then
13553 cat >>confdefs.h
<<_ACEOF
13554 #define PRI_MACROS_BROKEN 1
13560 if test "X$prefix" = "XNONE"; then
13561 acl_final_prefix
="$ac_default_prefix"
13563 acl_final_prefix
="$prefix"
13565 if test "X$exec_prefix" = "XNONE"; then
13566 acl_final_exec_prefix
='${prefix}'
13568 acl_final_exec_prefix
="$exec_prefix"
13570 acl_save_prefix
="$prefix"
13571 prefix
="$acl_final_prefix"
13572 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
13573 prefix
="$acl_save_prefix"
13576 # Check whether --with-gnu-ld was given.
13577 if test "${with_gnu_ld+set}" = set; then :
13578 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13584 if test "$GCC" = yes; then
13585 # Check if gcc -print-prog-name=ld gives a path.
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13587 $as_echo_n "checking for ld used by GCC... " >&6; }
13590 # gcc leaves a trailing carriage return which upsets mingw
13591 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13593 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13596 # Accept absolute paths.
13597 [\\/]* |
[A-Za-z
]:[\\/]*)
13598 re_direlt
='/[^/][^/]*/\.\./'
13599 # Canonicalize the path of ld
13600 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
13601 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
13602 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
13604 test -z "$LD" && LD
="$ac_prog"
13607 # If it fails, then pretend we aren't using GCC.
13611 # If it is relative, then search for the first ld in PATH.
13612 with_gnu_ld
=unknown
13615 elif test "$with_gnu_ld" = yes; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13617 $as_echo_n "checking for GNU ld... " >&6; }
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13620 $as_echo_n "checking for non-GNU ld... " >&6; }
13622 if ${acl_cv_path_LD+:} false
; then :
13623 $as_echo_n "(cached) " >&6
13625 if test -z "$LD"; then
13626 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13627 for ac_dir
in $PATH; do
13628 test -z "$ac_dir" && ac_dir
=.
13629 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13630 acl_cv_path_LD
="$ac_dir/$ac_prog"
13631 # Check to see if the program is GNU ld. I'd rather use --version,
13632 # but apparently some GNU ld's only accept -v.
13633 # Break only if it was the GNU/non-GNU ld that we prefer.
13634 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
13635 test "$with_gnu_ld" != no
&& break
13637 test "$with_gnu_ld" != yes && break
13643 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
13647 LD
="$acl_cv_path_LD"
13648 if test -n "$LD"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13650 $as_echo "$LD" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13655 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13658 if ${acl_cv_prog_gnu_ld+:} false
; then :
13659 $as_echo_n "(cached) " >&6
13661 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13662 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
13663 acl_cv_prog_gnu_ld
=yes
13665 acl_cv_prog_gnu_ld
=no
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13669 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13670 with_gnu_ld
=$acl_cv_prog_gnu_ld
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13675 $as_echo_n "checking for shared library run path origin... " >&6; }
13676 if ${acl_cv_rpath+:} false
; then :
13677 $as_echo_n "(cached) " >&6
13680 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
13681 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13683 rm -f .
/conftest.sh
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13688 $as_echo "$acl_cv_rpath" >&6; }
13690 libext
="$acl_cv_libext"
13691 shlibext
="$acl_cv_shlibext"
13692 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
13693 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
13694 hardcode_direct
="$acl_cv_hardcode_direct"
13695 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
13696 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
13697 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
13698 # Check whether --enable-rpath was given.
13699 if test "${enable_rpath+set}" = set; then :
13700 enableval
=$enable_rpath; :
13714 acl_save_prefix
="$prefix"
13715 prefix
="$acl_final_prefix"
13716 acl_save_exec_prefix
="$exec_prefix"
13717 exec_prefix
="$acl_final_exec_prefix"
13719 eval additional_includedir
=\"$includedir\"
13720 eval additional_libdir
=\"$libdir\"
13722 exec_prefix
="$acl_save_exec_prefix"
13723 prefix
="$acl_save_prefix"
13726 # Check whether --with-libiconv-prefix was given.
13727 if test "${with_libiconv_prefix+set}" = set; then :
13728 withval
=$with_libiconv_prefix;
13729 if test "X$withval" = "Xno"; then
13732 if test "X$withval" = "X"; then
13734 acl_save_prefix
="$prefix"
13735 prefix
="$acl_final_prefix"
13736 acl_save_exec_prefix
="$exec_prefix"
13737 exec_prefix
="$acl_final_exec_prefix"
13739 eval additional_includedir
=\"$includedir\"
13740 eval additional_libdir
=\"$libdir\"
13742 exec_prefix
="$acl_save_exec_prefix"
13743 prefix
="$acl_save_prefix"
13746 additional_includedir
="$withval/include"
13747 additional_libdir
="$withval/lib"
13758 names_already_handled
=
13759 names_next_round
='iconv '
13760 while test -n "$names_next_round"; do
13761 names_this_round
="$names_next_round"
13763 for name
in $names_this_round; do
13765 for n
in $names_already_handled; do
13766 if test "$n" = "$name"; then
13767 already_handled
=yes
13771 if test -z "$already_handled"; then
13772 names_already_handled
="$names_already_handled $name"
13773 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13774 eval value
=\"\
$HAVE_LIB$uppername\"
13775 if test -n "$value"; then
13776 if test "$value" = yes; then
13777 eval value
=\"\
$LIB$uppername\"
13778 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
13779 eval value
=\"\
$LTLIB$uppername\"
13780 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
13789 if test $use_additional = yes; then
13790 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13791 found_dir
="$additional_libdir"
13792 found_so
="$additional_libdir/lib$name.$shlibext"
13793 if test -f "$additional_libdir/lib$name.la"; then
13794 found_la
="$additional_libdir/lib$name.la"
13797 if test -f "$additional_libdir/lib$name.$libext"; then
13798 found_dir
="$additional_libdir"
13799 found_a
="$additional_libdir/lib$name.$libext"
13800 if test -f "$additional_libdir/lib$name.la"; then
13801 found_la
="$additional_libdir/lib$name.la"
13806 if test "X$found_dir" = "X"; then
13807 for x
in $LDFLAGS $LTLIBICONV; do
13809 acl_save_prefix
="$prefix"
13810 prefix
="$acl_final_prefix"
13811 acl_save_exec_prefix
="$exec_prefix"
13812 exec_prefix
="$acl_final_exec_prefix"
13814 exec_prefix
="$acl_save_exec_prefix"
13815 prefix
="$acl_save_prefix"
13819 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13820 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13822 found_so
="$dir/lib$name.$shlibext"
13823 if test -f "$dir/lib$name.la"; then
13824 found_la
="$dir/lib$name.la"
13827 if test -f "$dir/lib$name.$libext"; then
13829 found_a
="$dir/lib$name.$libext"
13830 if test -f "$dir/lib$name.la"; then
13831 found_la
="$dir/lib$name.la"
13837 if test "X$found_dir" != "X"; then
13842 if test "X$found_dir" != "X"; then
13843 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13844 if test "X$found_so" != "X"; then
13845 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13846 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13849 for x
in $ltrpathdirs; do
13850 if test "X$x" = "X$found_dir"; then
13855 if test -z "$haveit"; then
13856 ltrpathdirs
="$ltrpathdirs $found_dir"
13858 if test "$hardcode_direct" = yes; then
13859 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13861 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13862 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13864 for x
in $rpathdirs; do
13865 if test "X$x" = "X$found_dir"; then
13870 if test -z "$haveit"; then
13871 rpathdirs
="$rpathdirs $found_dir"
13875 for x
in $LDFLAGS $LIBICONV; do
13877 acl_save_prefix
="$prefix"
13878 prefix
="$acl_final_prefix"
13879 acl_save_exec_prefix
="$exec_prefix"
13880 exec_prefix
="$acl_final_exec_prefix"
13882 exec_prefix
="$acl_save_exec_prefix"
13883 prefix
="$acl_save_prefix"
13885 if test "X$x" = "X-L$found_dir"; then
13890 if test -z "$haveit"; then
13891 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13893 if test "$hardcode_minus_L" != no
; then
13894 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13896 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
13902 if test "X$found_a" != "X"; then
13903 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
13905 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13908 additional_includedir
=
13909 case "$found_dir" in
13911 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13912 additional_includedir
="$basedir/include"
13915 if test "X$additional_includedir" != "X"; then
13916 if test "X$additional_includedir" != "X/usr/include"; then
13918 if test "X$additional_includedir" = "X/usr/local/include"; then
13919 if test -n "$GCC"; then
13921 linux
*) haveit
=yes;;
13925 if test -z "$haveit"; then
13926 for x
in $CPPFLAGS $INCICONV; do
13928 acl_save_prefix
="$prefix"
13929 prefix
="$acl_final_prefix"
13930 acl_save_exec_prefix
="$exec_prefix"
13931 exec_prefix
="$acl_final_exec_prefix"
13933 exec_prefix
="$acl_save_exec_prefix"
13934 prefix
="$acl_save_prefix"
13936 if test "X$x" = "X-I$additional_includedir"; then
13941 if test -z "$haveit"; then
13942 if test -d "$additional_includedir"; then
13943 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13949 if test -n "$found_la"; then
13950 save_libdir
="$libdir"
13951 case "$found_la" in
13952 */* |
*\\*) .
"$found_la" ;;
13953 *) .
"./$found_la" ;;
13955 libdir
="$save_libdir"
13956 for dep
in $dependency_libs; do
13959 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13960 if test "X$additional_libdir" != "X/usr/lib"; then
13962 if test "X$additional_libdir" = "X/usr/local/lib"; then
13963 if test -n "$GCC"; then
13965 linux
*) haveit
=yes;;
13969 if test -z "$haveit"; then
13971 for x
in $LDFLAGS $LIBICONV; do
13973 acl_save_prefix
="$prefix"
13974 prefix
="$acl_final_prefix"
13975 acl_save_exec_prefix
="$exec_prefix"
13976 exec_prefix
="$acl_final_exec_prefix"
13978 exec_prefix
="$acl_save_exec_prefix"
13979 prefix
="$acl_save_prefix"
13981 if test "X$x" = "X-L$additional_libdir"; then
13986 if test -z "$haveit"; then
13987 if test -d "$additional_libdir"; then
13988 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13992 for x
in $LDFLAGS $LTLIBICONV; do
13994 acl_save_prefix
="$prefix"
13995 prefix
="$acl_final_prefix"
13996 acl_save_exec_prefix
="$exec_prefix"
13997 exec_prefix
="$acl_final_exec_prefix"
13999 exec_prefix
="$acl_save_exec_prefix"
14000 prefix
="$acl_save_prefix"
14002 if test "X$x" = "X-L$additional_libdir"; then
14007 if test -z "$haveit"; then
14008 if test -d "$additional_libdir"; then
14009 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14016 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14017 if test "$enable_rpath" != no
; then
14019 for x
in $rpathdirs; do
14020 if test "X$x" = "X$dir"; then
14025 if test -z "$haveit"; then
14026 rpathdirs
="$rpathdirs $dir"
14029 for x
in $ltrpathdirs; do
14030 if test "X$x" = "X$dir"; then
14035 if test -z "$haveit"; then
14036 ltrpathdirs
="$ltrpathdirs $dir"
14041 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14044 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14047 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
14048 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14054 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14055 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14061 if test "X$rpathdirs" != "X"; then
14062 if test -n "$hardcode_libdir_separator"; then
14064 for found_dir
in $rpathdirs; do
14065 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14067 acl_save_libdir
="$libdir"
14069 eval flag
=\"$hardcode_libdir_flag_spec\"
14070 libdir
="$acl_save_libdir"
14071 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14073 for found_dir
in $rpathdirs; do
14074 acl_save_libdir
="$libdir"
14075 libdir
="$found_dir"
14076 eval flag
=\"$hardcode_libdir_flag_spec\"
14077 libdir
="$acl_save_libdir"
14078 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14082 if test "X$ltrpathdirs" != "X"; then
14083 for found_dir
in $ltrpathdirs; do
14084 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14091 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14092 stdlib.h string.h unistd.h sys
/param.h
14094 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14095 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14096 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14097 cat >>confdefs.h
<<_ACEOF
14098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14105 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14106 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14107 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14109 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14110 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14111 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14112 cat >>confdefs.h
<<_ACEOF
14113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14125 am_save_CPPFLAGS
="$CPPFLAGS"
14127 for element
in $INCICONV; do
14129 for x
in $CPPFLAGS; do
14131 acl_save_prefix
="$prefix"
14132 prefix
="$acl_final_prefix"
14133 acl_save_exec_prefix
="$exec_prefix"
14134 exec_prefix
="$acl_final_exec_prefix"
14136 exec_prefix
="$acl_save_exec_prefix"
14137 prefix
="$acl_save_prefix"
14139 if test "X$x" = "X$element"; then
14144 if test -z "$haveit"; then
14145 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14151 $as_echo_n "checking for iconv... " >&6; }
14152 if ${am_cv_func_iconv+:} false
; then :
14153 $as_echo_n "(cached) " >&6
14156 am_cv_func_iconv
="no, consider installing GNU libiconv"
14158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 #include <stdlib.h>
14165 iconv_t cd = iconv_open("","");
14166 iconv(cd,NULL,NULL,NULL,NULL);
14172 if ac_fn_c_try_link
"$LINENO"; then :
14173 am_cv_func_iconv
=yes
14175 rm -f core conftest.err conftest.
$ac_objext \
14176 conftest
$ac_exeext conftest.
$ac_ext
14177 if test "$am_cv_func_iconv" != yes; then
14178 am_save_LIBS
="$LIBS"
14179 LIBS
="$LIBS $LIBICONV"
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 #include <stdlib.h>
14187 iconv_t cd = iconv_open("","");
14188 iconv(cd,NULL,NULL,NULL,NULL);
14194 if ac_fn_c_try_link
"$LINENO"; then :
14195 am_cv_lib_iconv
=yes
14196 am_cv_func_iconv
=yes
14198 rm -f core conftest.err conftest.
$ac_objext \
14199 conftest
$ac_exeext conftest.
$ac_ext
14200 LIBS
="$am_save_LIBS"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14205 $as_echo "$am_cv_func_iconv" >&6; }
14206 if test "$am_cv_func_iconv" = yes; then
14208 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14211 if test "$am_cv_lib_iconv" = yes; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14213 $as_echo_n "checking how to link with libiconv... " >&6; }
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14215 $as_echo "$LIBICONV" >&6; }
14217 CPPFLAGS
="$am_save_CPPFLAGS"
14224 if test "$am_cv_func_iconv" = yes; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14226 $as_echo_n "checking for iconv declaration... " >&6; }
14227 if ${am_cv_proto_iconv+:} false
; then :
14228 $as_echo_n "(cached) " >&6
14231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14234 #include <stdlib.h>
14240 #if defined(__STDC__) || defined(__cplusplus)
14241 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14254 if ac_fn_c_try_compile
"$LINENO"; then :
14255 am_cv_proto_iconv_arg1
=""
14257 am_cv_proto_iconv_arg1
="const"
14259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14260 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14263 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14265 }$am_cv_proto_iconv" >&5
14267 }$am_cv_proto_iconv" >&6; }
14269 cat >>confdefs.h
<<_ACEOF
14270 #define ICONV_CONST $am_cv_proto_iconv_arg1
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14277 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14278 if ${am_cv_langinfo_codeset+:} false
; then :
14279 $as_echo_n "(cached) " >&6
14281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 #include <langinfo.h>
14287 char* cs = nl_langinfo(CODESET);
14292 if ac_fn_c_try_link
"$LINENO"; then :
14293 am_cv_langinfo_codeset
=yes
14295 am_cv_langinfo_codeset
=no
14297 rm -f core conftest.err conftest.
$ac_objext \
14298 conftest
$ac_exeext conftest.
$ac_ext
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14302 $as_echo "$am_cv_langinfo_codeset" >&6; }
14303 if test $am_cv_langinfo_codeset = yes; then
14305 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14309 if test $ac_cv_header_locale_h = yes; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14312 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14313 if ${am_cv_val_LC_MESSAGES+:} false
; then :
14314 $as_echo_n "(cached) " >&6
14316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <locale.h>
14327 if ac_fn_c_try_link
"$LINENO"; then :
14328 am_cv_val_LC_MESSAGES
=yes
14330 am_cv_val_LC_MESSAGES
=no
14332 rm -f core conftest.err conftest.
$ac_objext \
14333 conftest
$ac_exeext conftest.
$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14336 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14337 if test $am_cv_val_LC_MESSAGES = yes; then
14339 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14345 for ac_prog
in bison
14347 # Extract the first word of "$ac_prog", so it can be a program name with args.
14348 set dummy
$ac_prog; ac_word
=$2
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14350 $as_echo_n "checking for $ac_word... " >&6; }
14351 if ${ac_cv_prog_INTLBISON+:} false
; then :
14352 $as_echo_n "(cached) " >&6
14354 if test -n "$INTLBISON"; then
14355 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
14357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14358 for as_dir
in $PATH
14361 test -z "$as_dir" && as_dir
=.
14362 for ac_exec_ext
in '' $ac_executable_extensions; do
14363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14364 ac_cv_prog_INTLBISON
="$ac_prog"
14365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14374 INTLBISON
=$ac_cv_prog_INTLBISON
14375 if test -n "$INTLBISON"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14377 $as_echo "$INTLBISON" >&6; }
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14380 $as_echo "no" >&6; }
14384 test -n "$INTLBISON" && break
14387 if test -z "$INTLBISON"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14391 $as_echo_n "checking version of bison... " >&6; }
14392 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14393 case $ac_prog_version in
14394 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
14395 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
14396 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
14397 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14400 $as_echo "$ac_prog_version" >&6; }
14402 if test $ac_verc_fail = yes; then
14408 # Check whether --with-language was given.
14409 if test "${with_language+set}" = set; then :
14410 withval
=$with_language; if test "$withval" != "all"; then :
14411 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14431 $as_echo_n "checking whether NLS is requested... " >&6; }
14432 # Check whether --enable-nls was given.
14433 if test "${enable_nls+set}" = set; then :
14434 enableval
=$enable_nls; USE_NLS
=$enableval
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14440 $as_echo "$USE_NLS" >&6; }
14444 BUILD_INCLUDED_LIBINTL
=no
14445 USE_INCLUDED_LIBINTL
=no
14451 if test "$USE_NLS" = "yes"; then
14452 gt_use_preinstalled_gnugettext
=no
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14455 $as_echo_n "checking whether included gettext is requested... " >&6; }
14457 # Check whether --with-included-gettext was given.
14458 if test "${with_included_gettext+set}" = set; then :
14459 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
14461 nls_cv_force_use_gnu_gettext
=no
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14465 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14467 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
14468 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14476 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14477 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
14478 $as_echo_n "(cached) " >&6
14480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 #include <libintl.h>
14483 extern int _nl_msg_cat_cntr;
14484 extern int *_nl_domain_bindings;
14488 bindtextdomain ("", "");
14489 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14494 if ac_fn_c_try_link
"$LINENO"; then :
14495 gt_cv_func_gnugettext2_libc
=yes
14497 gt_cv_func_gnugettext2_libc
=no
14499 rm -f core conftest.err conftest.
$ac_objext \
14500 conftest
$ac_exeext conftest.
$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14503 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14505 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14511 acl_save_prefix
="$prefix"
14512 prefix
="$acl_final_prefix"
14513 acl_save_exec_prefix
="$exec_prefix"
14514 exec_prefix
="$acl_final_exec_prefix"
14516 eval additional_includedir
=\"$includedir\"
14517 eval additional_libdir
=\"$libdir\"
14519 exec_prefix
="$acl_save_exec_prefix"
14520 prefix
="$acl_save_prefix"
14523 # Check whether --with-libintl-prefix was given.
14524 if test "${with_libintl_prefix+set}" = set; then :
14525 withval
=$with_libintl_prefix;
14526 if test "X$withval" = "Xno"; then
14529 if test "X$withval" = "X"; then
14531 acl_save_prefix
="$prefix"
14532 prefix
="$acl_final_prefix"
14533 acl_save_exec_prefix
="$exec_prefix"
14534 exec_prefix
="$acl_final_exec_prefix"
14536 eval additional_includedir
=\"$includedir\"
14537 eval additional_libdir
=\"$libdir\"
14539 exec_prefix
="$acl_save_exec_prefix"
14540 prefix
="$acl_save_prefix"
14543 additional_includedir
="$withval/include"
14544 additional_libdir
="$withval/lib"
14555 names_already_handled
=
14556 names_next_round
='intl '
14557 while test -n "$names_next_round"; do
14558 names_this_round
="$names_next_round"
14560 for name
in $names_this_round; do
14562 for n
in $names_already_handled; do
14563 if test "$n" = "$name"; then
14564 already_handled
=yes
14568 if test -z "$already_handled"; then
14569 names_already_handled
="$names_already_handled $name"
14570 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14571 eval value
=\"\
$HAVE_LIB$uppername\"
14572 if test -n "$value"; then
14573 if test "$value" = yes; then
14574 eval value
=\"\
$LIB$uppername\"
14575 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14576 eval value
=\"\
$LTLIB$uppername\"
14577 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14586 if test $use_additional = yes; then
14587 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14588 found_dir
="$additional_libdir"
14589 found_so
="$additional_libdir/lib$name.$shlibext"
14590 if test -f "$additional_libdir/lib$name.la"; then
14591 found_la
="$additional_libdir/lib$name.la"
14594 if test -f "$additional_libdir/lib$name.$libext"; then
14595 found_dir
="$additional_libdir"
14596 found_a
="$additional_libdir/lib$name.$libext"
14597 if test -f "$additional_libdir/lib$name.la"; then
14598 found_la
="$additional_libdir/lib$name.la"
14603 if test "X$found_dir" = "X"; then
14604 for x
in $LDFLAGS $LTLIBINTL; do
14606 acl_save_prefix
="$prefix"
14607 prefix
="$acl_final_prefix"
14608 acl_save_exec_prefix
="$exec_prefix"
14609 exec_prefix
="$acl_final_exec_prefix"
14611 exec_prefix
="$acl_save_exec_prefix"
14612 prefix
="$acl_save_prefix"
14616 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14617 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14619 found_so
="$dir/lib$name.$shlibext"
14620 if test -f "$dir/lib$name.la"; then
14621 found_la
="$dir/lib$name.la"
14624 if test -f "$dir/lib$name.$libext"; then
14626 found_a
="$dir/lib$name.$libext"
14627 if test -f "$dir/lib$name.la"; then
14628 found_la
="$dir/lib$name.la"
14634 if test "X$found_dir" != "X"; then
14639 if test "X$found_dir" != "X"; then
14640 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14641 if test "X$found_so" != "X"; then
14642 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14643 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14646 for x
in $ltrpathdirs; do
14647 if test "X$x" = "X$found_dir"; then
14652 if test -z "$haveit"; then
14653 ltrpathdirs
="$ltrpathdirs $found_dir"
14655 if test "$hardcode_direct" = yes; then
14656 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14658 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14659 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14661 for x
in $rpathdirs; do
14662 if test "X$x" = "X$found_dir"; then
14667 if test -z "$haveit"; then
14668 rpathdirs
="$rpathdirs $found_dir"
14672 for x
in $LDFLAGS $LIBINTL; do
14674 acl_save_prefix
="$prefix"
14675 prefix
="$acl_final_prefix"
14676 acl_save_exec_prefix
="$exec_prefix"
14677 exec_prefix
="$acl_final_exec_prefix"
14679 exec_prefix
="$acl_save_exec_prefix"
14680 prefix
="$acl_save_prefix"
14682 if test "X$x" = "X-L$found_dir"; then
14687 if test -z "$haveit"; then
14688 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14690 if test "$hardcode_minus_L" != no
; then
14691 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14693 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14699 if test "X$found_a" != "X"; then
14700 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14702 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14705 additional_includedir
=
14706 case "$found_dir" in
14708 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14709 additional_includedir
="$basedir/include"
14712 if test "X$additional_includedir" != "X"; then
14713 if test "X$additional_includedir" != "X/usr/include"; then
14715 if test "X$additional_includedir" = "X/usr/local/include"; then
14716 if test -n "$GCC"; then
14718 linux
*) haveit
=yes;;
14722 if test -z "$haveit"; then
14723 for x
in $CPPFLAGS $INCINTL; do
14725 acl_save_prefix
="$prefix"
14726 prefix
="$acl_final_prefix"
14727 acl_save_exec_prefix
="$exec_prefix"
14728 exec_prefix
="$acl_final_exec_prefix"
14730 exec_prefix
="$acl_save_exec_prefix"
14731 prefix
="$acl_save_prefix"
14733 if test "X$x" = "X-I$additional_includedir"; then
14738 if test -z "$haveit"; then
14739 if test -d "$additional_includedir"; then
14740 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14746 if test -n "$found_la"; then
14747 save_libdir
="$libdir"
14748 case "$found_la" in
14749 */* |
*\\*) .
"$found_la" ;;
14750 *) .
"./$found_la" ;;
14752 libdir
="$save_libdir"
14753 for dep
in $dependency_libs; do
14756 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14757 if test "X$additional_libdir" != "X/usr/lib"; then
14759 if test "X$additional_libdir" = "X/usr/local/lib"; then
14760 if test -n "$GCC"; then
14762 linux
*) haveit
=yes;;
14766 if test -z "$haveit"; then
14768 for x
in $LDFLAGS $LIBINTL; do
14770 acl_save_prefix
="$prefix"
14771 prefix
="$acl_final_prefix"
14772 acl_save_exec_prefix
="$exec_prefix"
14773 exec_prefix
="$acl_final_exec_prefix"
14775 exec_prefix
="$acl_save_exec_prefix"
14776 prefix
="$acl_save_prefix"
14778 if test "X$x" = "X-L$additional_libdir"; then
14783 if test -z "$haveit"; then
14784 if test -d "$additional_libdir"; then
14785 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14789 for x
in $LDFLAGS $LTLIBINTL; do
14791 acl_save_prefix
="$prefix"
14792 prefix
="$acl_final_prefix"
14793 acl_save_exec_prefix
="$exec_prefix"
14794 exec_prefix
="$acl_final_exec_prefix"
14796 exec_prefix
="$acl_save_exec_prefix"
14797 prefix
="$acl_save_prefix"
14799 if test "X$x" = "X-L$additional_libdir"; then
14804 if test -z "$haveit"; then
14805 if test -d "$additional_libdir"; then
14806 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14813 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14814 if test "$enable_rpath" != no
; then
14816 for x
in $rpathdirs; do
14817 if test "X$x" = "X$dir"; then
14822 if test -z "$haveit"; then
14823 rpathdirs
="$rpathdirs $dir"
14826 for x
in $ltrpathdirs; do
14827 if test "X$x" = "X$dir"; then
14832 if test -z "$haveit"; then
14833 ltrpathdirs
="$ltrpathdirs $dir"
14838 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14841 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14844 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14845 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14851 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14852 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14858 if test "X$rpathdirs" != "X"; then
14859 if test -n "$hardcode_libdir_separator"; then
14861 for found_dir
in $rpathdirs; do
14862 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14864 acl_save_libdir
="$libdir"
14866 eval flag
=\"$hardcode_libdir_flag_spec\"
14867 libdir
="$acl_save_libdir"
14868 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14870 for found_dir
in $rpathdirs; do
14871 acl_save_libdir
="$libdir"
14872 libdir
="$found_dir"
14873 eval flag
=\"$hardcode_libdir_flag_spec\"
14874 libdir
="$acl_save_libdir"
14875 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14879 if test "X$ltrpathdirs" != "X"; then
14880 for found_dir
in $ltrpathdirs; do
14881 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14886 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14887 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
14888 $as_echo_n "(cached) " >&6
14890 gt_save_CPPFLAGS
="$CPPFLAGS"
14891 CPPFLAGS
="$CPPFLAGS $INCINTL"
14892 gt_save_LIBS
="$LIBS"
14893 LIBS
="$LIBS $LIBINTL"
14894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14896 #include <libintl.h>
14897 extern int _nl_msg_cat_cntr;
14902 const char *_nl_expand_alias ();
14906 bindtextdomain ("", "");
14907 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14912 if ac_fn_c_try_link
"$LINENO"; then :
14913 gt_cv_func_gnugettext2_libintl
=yes
14915 gt_cv_func_gnugettext2_libintl
=no
14917 rm -f core conftest.err conftest.
$ac_objext \
14918 conftest
$ac_exeext conftest.
$ac_ext
14919 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14920 LIBS
="$LIBS $LIBICONV"
14921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923 #include <libintl.h>
14924 extern int _nl_msg_cat_cntr;
14929 const char *_nl_expand_alias ();
14933 bindtextdomain ("", "");
14934 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14939 if ac_fn_c_try_link
"$LINENO"; then :
14940 LIBINTL
="$LIBINTL $LIBICONV"
14941 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14942 gt_cv_func_gnugettext2_libintl
=yes
14945 rm -f core conftest.err conftest.
$ac_objext \
14946 conftest
$ac_exeext conftest.
$ac_ext
14948 CPPFLAGS
="$gt_save_CPPFLAGS"
14949 LIBS
="$gt_save_LIBS"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14952 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14955 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14956 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14957 && test "$PACKAGE" != gettext; }; then
14958 gt_use_preinstalled_gnugettext
=yes
14966 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14967 nls_cv_use_gnu_gettext
=yes
14971 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14972 INTLOBJS
="\$(GETTOBJS)"
14973 BUILD_INCLUDED_LIBINTL
=yes
14974 USE_INCLUDED_LIBINTL
=yes
14975 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
14976 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14977 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14980 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14981 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14986 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14987 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14989 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14996 if test "$USE_NLS" = "yes"; then
14998 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14999 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15001 $as_echo_n "checking how to link with libintl... " >&6; }
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15003 $as_echo "$LIBINTL" >&6; }
15005 for element
in $INCINTL; do
15007 for x
in $CPPFLAGS; do
15009 acl_save_prefix
="$prefix"
15010 prefix
="$acl_final_prefix"
15011 acl_save_exec_prefix
="$exec_prefix"
15012 exec_prefix
="$acl_final_exec_prefix"
15014 exec_prefix
="$acl_save_exec_prefix"
15015 prefix
="$acl_save_prefix"
15017 if test "X$x" = "X$element"; then
15022 if test -z "$haveit"; then
15023 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15030 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15033 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15041 if test "$PACKAGE" = gettext; then
15042 BUILD_INCLUDED_LIBINTL
=yes
15050 nls_cv_header_intl
=
15051 nls_cv_header_libgt
=
15062 INTL_LIBTOOL_SUFFIX_PREFIX
=
15066 INTLLIBS
="$LIBINTL"
15073 if test $USE_INCLUDED_LIBINTL = yes; then :
15074 INCINTL
=-I\
${top_builddir}/intl
15077 if test x
$USE_NLS = xyes
; then :
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15080 $as_echo_n "checking for autopoint... " >&6; }
15081 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15082 if test -n "$autopoint_version"; then :
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15085 $as_echo "yes ($autopoint_version)" >&6; }
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091 $as_echo "no" >&6; }
15097 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then :
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15099 You need to install GNU gettext/gettext-tools to compile aMule with
15101 $as_echo "$as_me: WARNING:
15102 You need to install GNU gettext/gettext-tools to compile aMule with
15103 i18n support." >&2;}
15104 _mule_warning_12
=yes
15105 _mule_has_warnings
=yes
15109 if test ${USE_NLS:-no} = yes; then :
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15112 $as_echo_n "checking for requested languages... " >&6; }
15113 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15115 if test ${enable_amule_daemon:-no} = yes; then :
15117 if test -z "$LINGUAS"; then :
15118 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15121 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15122 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15125 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15128 AMULE_DAEMON_MANPAGES
=
15133 if test ${enable_amulecmd:-no} = yes; then :
15135 if test -z "$LINGUAS"; then :
15136 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15139 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15140 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15143 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15151 if test ${enable_webserver:-no} = yes; then :
15153 if test -z "$LINGUAS"; then :
15154 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15157 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15158 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15161 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15164 WEBSERVER_MANPAGES
=
15169 if test ${enable_amule_gui:-no} = yes; then :
15171 if test -z "$LINGUAS"; then :
15172 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15175 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15176 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15179 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15182 AMULE_GUI_MANPAGES
=
15187 if test ${enable_cas:-no} = yes; then :
15189 if test -z "$LINGUAS"; then :
15190 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15193 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15194 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15197 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
15205 if test ${enable_wxcas:-no} = yes; then :
15207 if test -z "$LINGUAS"; then :
15208 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15211 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15212 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15215 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
15223 if test ${enable_ed2k:-yes} = yes; then :
15225 if test -z "$LINGUAS"; then :
15226 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15229 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15230 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15233 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
15241 if test ${enable_alc:-no} = yes; then :
15243 if test -z "$LINGUAS"; then :
15244 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15247 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15248 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15251 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
15259 if test ${enable_alcc:-no} = yes; then :
15261 if test -z "$LINGUAS"; then :
15262 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15265 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15266 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15269 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
15277 if test ${enable_monolithic:-yes} = yes; then :
15279 if test -z "$LINGUAS"; then :
15280 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15283 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15284 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15287 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15290 MONOLITHIC_MANPAGES
=
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15295 $as_echo "${LINGUAS:-all}" >&6; }
15300 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
15301 ac_config_commands
="$ac_config_commands intl"
15305 ac_cpp
='$CXXCPP $CPPFLAGS'
15306 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15312 # Check for bfd.h (to have proper backtraces without using wxExecute)
15314 for ac_header
in ansidecl.h bfd.h
15316 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15317 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15318 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15319 cat >>confdefs.h
<<_ACEOF
15320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15327 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15330 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15331 if ${mule_cv_lib_bfd+:} false
; then :
15332 $as_echo_n "(cached) " >&6
15335 for bfd_ldadd
in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do
15336 # Doing some black magic to prevent multiple tests for the same set of
15337 # libraries when any of the shell variables above expand to nothing.
15339 done |
sed -e 's/^ *//;s/ *$//;s/ */ /g' |
${AWK} '!x[$0]++' >conftest.bfd_ldadd
15340 while read bfd_ldadd
; do
15341 mule_backup_LIBS
="$LIBS"
15342 mule_backup_LDFLAGS
="$LDFLAGS"
15343 LIBS
="${bfd_ldadd} $LIBS"
15344 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
15345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15349 #include <ansidecl.h>
15355 const char *dummy = bfd_errmsg(bfd_get_error());
15361 if ac_fn_cxx_try_link
"$LINENO"; then :
15363 LIBS
="$mule_backup_LIBS"
15364 LDFLAGS
="$mule_backup_LDFLAGS"
15365 mule_cv_lib_bfd
="${bfd_ldadd}"
15368 rm -f core conftest.err conftest.
$ac_objext \
15369 conftest
$ac_exeext conftest.
$ac_ext
15370 LIBS
="$mule_backup_LIBS"
15371 LDFLAGS
="$mule_backup_LDFLAGS"
15372 if ${mule_cv_lib_bfd+:} false
; then :
15375 done <conftest.bfd_ldadd
15376 rm -f conftest.bfd_ldadd
15381 if ${mule_cv_lib_bfd+:} false
; then :
15383 BFD_CPPFLAGS
="-DHAVE_BFD"
15384 BFD_LIBS
="${mule_cv_lib_bfd}"
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15386 $as_echo "${BFD_LIBS:-none required}" >&6; }
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15391 $as_echo "not found" >&6; }
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15393 Cannot link to the library containing the bfd functions." >&5
15394 $as_echo "$as_me: WARNING:
15395 Cannot link to the library containing the bfd functions." >&2;}
15396 _mule_warning_13
=yes
15397 _mule_has_warnings
=yes
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15405 bfd.h not found or unusable, please install binutils development
15406 package if you are a developer or want to help testing aMule" >&5
15407 $as_echo "$as_me: WARNING:
15408 bfd.h not found or unusable, please install binutils development
15409 package if you are a developer or want to help testing aMule" >&2;}
15410 _mule_warning_14
=yes
15411 _mule_has_warnings
=yes
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15419 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15424 #include <execinfo.h>
15431 int n = backtrace((void **)&bt, 1);
15432 char **bt_syms = backtrace_symbols(bt, n);
15439 if ac_fn_cxx_try_link
"$LINENO"; then :
15442 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15445 $as_echo "yes" >&6; }
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15450 $as_echo "no" >&6; }
15453 rm -f core conftest.err conftest.
$ac_objext \
15454 conftest
$ac_exeext conftest.
$ac_ext
15458 # aMule plasma widget
15459 if test ${enable_plasmamule:-no} = yes; then :
15462 if test -z ${QT_MOC}; then :
15464 for ac_prog
in moc-qt4 moc
15466 # Extract the first word of "$ac_prog", so it can be a program name with args.
15467 set dummy
$ac_prog; ac_word
=$2
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15469 $as_echo_n "checking for $ac_word... " >&6; }
15470 if ${ac_cv_path_QT_MOC+:} false
; then :
15471 $as_echo_n "(cached) " >&6
15475 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
15478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15479 for as_dir
in $PATH
15482 test -z "$as_dir" && as_dir
=.
15483 for ac_exec_ext
in '' $ac_executable_extensions; do
15484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15496 QT_MOC
=$ac_cv_path_QT_MOC
15497 if test -n "$QT_MOC"; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15499 $as_echo "$QT_MOC" >&6; }
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502 $as_echo "no" >&6; }
15506 test -n "$QT_MOC" && break
15509 if test -z ${QT_MOC}; then :
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15519 $as_echo_n "checking for moc... " >&6; }
15520 if test -x ${QT_MOC}; then :
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15523 $as_echo "${QT_MOC}" >&6; }
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15529 $as_echo "\"not found\"" >&6; }
15538 if test "${QT_MOC}" != "not found"; then :
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15541 $as_echo_n "checking for moc version >= 4... " >&6; }
15542 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15543 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15546 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15551 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15559 if test "${QT_MOC}" = "not found"; then :
15560 enable_plasmamule
=disabled
15563 if test ${enable_plasmamule:-no} = yes; then :
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15568 $as_echo_n "checking for qt... " >&6; }
15569 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15572 $as_echo "found" >&6; }
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15574 $as_echo_n "checking for qt core cflags... " >&6; }
15575 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15577 $as_echo "$QT_CORE_CFLAGS" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15579 $as_echo_n "checking for qt core libs... " >&6; }
15580 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15582 $as_echo "$QT_CORE_LIBS" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15584 $as_echo_n "checking for qt gui cflags... " >&6; }
15585 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15587 $as_echo "$QT_GUI_CFLAGS" >&6; }
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15589 $as_echo_n "checking for qt gui libs... " >&6; }
15590 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15592 $as_echo "$QT_GUI_LIBS" >&6; }
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15596 $as_echo "not found" >&6; }
15601 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15603 QT_DBUS_LDFLAGS
="-lQtDBus"
15613 if test -z "${QT_CORE_CXXFLAGS}"; then :
15614 enable_plasmamule
=disabled
15619 if test ${enable_plasmamule:-no} = yes; then :
15622 if test -z ${KDE4_CONFIG}; then :
15624 # Extract the first word of "kde4-config", so it can be a program name with args.
15625 set dummy kde4-config
; ac_word
=$2
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15627 $as_echo_n "checking for $ac_word... " >&6; }
15628 if ${ac_cv_path_KDE4_CONFIG+:} false
; then :
15629 $as_echo_n "(cached) " >&6
15631 case $KDE4_CONFIG in
15633 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
15636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15637 for as_dir
in $PATH
15640 test -z "$as_dir" && as_dir
=.
15641 for ac_exec_ext
in '' $ac_executable_extensions; do
15642 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15643 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15654 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
15655 if test -n "$KDE4_CONFIG"; then
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15657 $as_echo "$KDE4_CONFIG" >&6; }
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15660 $as_echo "no" >&6; }
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15668 $as_echo_n "checking for kde4-config... " >&6; }
15669 if test ! -x KDE4_CONFIG
; then :
15671 KDE4_CONFIG
="not found"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15673 $as_echo "not found" >&6; }
15680 if test "${KDE4_CONFIG}" != "not found"; then :
15682 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15683 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15686 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
15691 $as_echo "at least version
4 required
" >&6; }
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
15699 $as_echo "not found
" >&6; }
15705 if test "${KDE4_CONFIG}" = "not found
"; then :
15706 enable_plasmamule=disabled
15711 if test ${enable_plasmamule:-no} = yes; then :
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
15715 $as_echo_n "checking
for kde4 headers...
" >&6; }
15716 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15718 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15720 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
15723 $as_echo "${KDE_HEADER_DIR}" >&6; }
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
15728 $as_echo "dataengine.h not found
" >&6; }
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
15736 $as_echo "kdirwatch.h not found
" >&6; }
15742 if test -z ${KDE_HEADER_DIR}; then :
15743 enable_plasmamule=disabled
15748 if test ${enable_plasmamule:-no} = yes; then :
15750 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15751 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
15756 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
15757 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15762 if test ${KDE_IN_HOME} = "yes"; then :
15764 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15768 if test -n ${prefix}; then :
15770 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15771 if test -n ${KDE_APPLNK_PATH}; then :
15773 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15779 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
15785 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
15791 $as_echo_n "checking
for kde4 services Path...
" >&6; }
15792 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15797 if test ${KDE_IN_HOME} = "yes"; then :
15799 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15803 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
15807 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
15813 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
15814 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15819 if test ${KDE_IN_HOME} = "yes"; then :
15821 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15825 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
15829 $as_echo "${KDE_MODULE_PATH}" >&6; }
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
15835 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
15836 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15841 if test ${KDE_IN_HOME} = "yes"; then :
15843 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15847 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15850 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
15852 $as_echo "${KDE_ICON_PATH}" >&6; }
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
15858 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
15859 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15864 if test ${KDE_IN_HOME} = "yes"; then :
15866 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15870 if test -n ${prefix}; then :
15872 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15873 if test -n ${KDE_MIME_PATH}; then :
15875 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15881 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
15887 $as_echo "${KDE_MIME_PATH}" >&6; }
15892 enable_plasmamule=disabled
15897 if test ${enable_debug:-yes} = yes; then :
15899 DEBUGFLAG="-D__DEBUG__"
15907 # Check for readline library
15908 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a readline compatible library
" >&5
15911 $as_echo_n "checking
for a readline compatible library...
" >&6; }
15912 if ${vl_cv_lib_readline+:} false; then :
15913 $as_echo_n "(cached
) " >&6
15917 for readline_lib in readline edit editline; do
15918 for termcap_lib in "" termcap curses ncurses; do
15919 if test -z "$termcap_lib"; then
15920 TRY_LIB="-l$readline_lib"
15922 TRY_LIB="-l$readline_lib -l$termcap_lib"
15924 LIBS="$ORIG_LIBS $TRY_LIB"
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15928 /* Override any GCC internal prototype to avoid an error.
15929 Use char because int might match the return type of a GCC
15930 builtin and then its argument prototype would still apply. */
15938 return readline ();
15943 if ac_fn_cxx_try_link "$LINENO"; then :
15944 vl_cv_lib_readline="$TRY_LIB"
15946 rm -f core conftest.err conftest.$ac_objext \
15947 conftest$ac_exeext conftest.$ac_ext
15948 if test -n "$vl_cv_lib_readline"; then
15952 if test -n "$vl_cv_lib_readline"; then
15956 if test -z "$vl_cv_lib_readline"; then
15957 vl_cv_lib_readline="no
"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $vl_cv_lib_readline" >&5
15963 $as_echo "$vl_cv_lib_readline" >&6; }
15965 if test "$vl_cv_lib_readline" != "no
"; then
15966 have_readline_headers=no
15967 for ac_header in readline/readline.h readline.h
15969 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15970 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15972 cat >>confdefs.h <<_ACEOF
15973 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15975 have_readline_headers=yes ; break
15980 if test "$have_readline_headers" = "yes"; then
15981 READLINE_LIBS="$vl_cv_lib_readline"
15983 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15987 vl_cv_lib_readline
=no
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15990 $as_echo_n "checking whether readline supports history... " >&6; }
15991 if ${vl_cv_lib_readline_history+:} false
; then :
15992 $as_echo_n "(cached) " >&6
15995 vl_cv_lib_readline_history
="no"
15996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15999 /* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16005 char add_history ();
16009 return add_history ();
16014 if ac_fn_cxx_try_link
"$LINENO"; then :
16015 vl_cv_lib_readline_history
="yes"
16017 rm -f core conftest.err conftest.
$ac_objext \
16018 conftest
$ac_exeext conftest.
$ac_ext
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16022 $as_echo "$vl_cv_lib_readline_history" >&6; }
16023 if test "$vl_cv_lib_readline_history" = "yes"; then
16024 have_readline_history_headers
=no
16025 for ac_header
in readline
/history.h
history.h
16027 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16029 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16030 cat >>confdefs.h
<<_ACEOF
16031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033 have_readline_history_headers
=yes ; break
16038 if test "$have_readline_history_headers" = "yes"; then
16040 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16043 vl_cv_lib_readline_history
=no
16055 ac_cpp
='$CPP $CPPFLAGS'
16056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16061 # Check for strerror_r
16062 mule_backup_CPPFLAGS
="$CPPFLAGS"
16063 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
16064 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16065 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16071 cat >>confdefs.h
<<_ACEOF
16072 #define HAVE_DECL_STRERROR_R $ac_have_decl
16075 for ac_func
in strerror_r
16077 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16078 if test "x$ac_cv_func_strerror_r" = xyes
; then :
16079 cat >>confdefs.h
<<_ACEOF
16080 #define HAVE_STRERROR_R 1
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16087 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16088 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
16089 $as_echo_n "(cached) " >&6
16092 ac_cv_func_strerror_r_char_p
=no
16093 if test $ac_cv_have_decl_strerror_r = yes; then
16094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 $ac_includes_default
16102 char x = *strerror_r (0, buf, sizeof buf);
16103 char *p = strerror_r (0, buf, sizeof buf);
16110 if ac_fn_c_try_compile
"$LINENO"; then :
16111 ac_cv_func_strerror_r_char_p
=yes
16113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16115 # strerror_r is not declared. Choose between
16116 # systems that have relatively inaccessible declarations for the
16117 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16118 # former has a strerror_r that returns char*, while the latter
16119 # has a strerror_r that returns `int'.
16120 # This test should segfault on the DEC system.
16121 if test "$cross_compiling" = yes; then :
16124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 $ac_includes_default
16127 extern char *strerror_r ();
16132 char x = *strerror_r (0, buf, sizeof buf);
16133 return ! isalpha (x);
16138 if ac_fn_c_try_run
"$LINENO"; then :
16139 ac_cv_func_strerror_r_char_p
=yes
16141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16149 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16150 if test $ac_cv_func_strerror_r_char_p = yes; then
16152 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16156 CPPFLAGS
="$mule_backup_CPPFLAGS"
16161 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16163 $as_echo_n "checking for docdir... " >&6; }
16164 if test -z "$docdir"; then :
16165 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16168 $as_echo "$docdir" >&6; }
16171 # Try to set the SVN checkout-date
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16173 $as_echo_n "checking for SVNDATE... " >&6; }
16175 if test -f "$srcdir/.svn-revision"; then
16176 svndate
="rev. `cat $srcdir/.svn-revision`"
16177 elif test -d "$srcdir"/.svn
; then
16178 svndate
="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`"
16179 elif test -d "$srcdir"/.git
; then
16181 git_revision
=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16182 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16185 if test -f $srcdir/.git
/svn
/.metadata
; then
16186 git_sha
=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16187 svndate
=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16188 svn_revision=\`git
--git-dir="$srcdir"/.git svn find-rev \
${sha}\
`
16189 if test -n "\${svn_revision}" ; then
16190 if test \${sha} = ${git_sha} ; then
16191 echo "rev. \${svn_revision}${modified}"
16193 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16199 svndate
="rev. g${git_revision}${modified}"
16202 elif test -d "$srcdir"/.hg
; then
16204 hg_revision
=`hg --cwd "$srcdir" identify --id`
16205 hg_revid
=${hg_revision%+}
16206 if test ${hg_revision} != ${hg_revid} ; then
16209 if test -f "$srcdir"/.hg
/svn
/uuid
; then
16210 svndate
=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16211 if test \${svn_revision} != r ; then
16212 if test \${hg_sha} = ${hg_revid} ; then
16213 echo "rev. \${svn_revision#r}${modified}"
16215 echo "rev. \${svn_revision#r}+h${hg_revision}"
16221 svndate
="rev. h${hg_revision}"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16228 $as_echo "${svndate:-None required}" >&6; }
16229 if test -n "$svndate"; then :
16232 cat >>confdefs.h
<<_ACEOF
16233 #define SVNDATE "$svndate"
16236 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
16244 # Check whether --with-denoise-level was given.
16245 if test "${with_denoise_level+set}" = set; then :
16246 withval
=$with_denoise_level;
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16251 $as_echo_n "checking denoising level... " >&6; }
16252 if test ${with_denoise_level:-5} = yes; then :
16253 with_denoise_level
=5
16255 if test ${with_denoise_level:-5} = no
; then :
16256 with_denoise_level
=0
16258 if test ${with_denoise_level:-5} -gt 4; then :
16259 if test "${svndate:+set}" = "set"; then :
16260 with_denoise_level
=1
16262 with_denoise_level
=4
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16266 $as_echo "$with_denoise_level" >&6; }
16268 ac_config_commands
="$ac_config_commands denoiser"
16273 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16275 # Check whether --enable-ccache was given.
16276 if test "${enable_ccache+set}" = set; then :
16277 enableval
=$enable_ccache;
16283 # Check whether --with-ccache-prefix was given.
16284 if test "${with_ccache_prefix+set}" = set; then :
16285 withval
=$with_ccache_prefix;
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16290 $as_echo_n "checking whether ccache support should be added... " >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16292 $as_echo "${enable_ccache:-no}" >&6; }
16294 if test ${enable_ccache:-no} = yes; then :
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16297 $as_echo_n "checking for ccache presence... " >&6; }
16298 if test -z "$with_ccache_prefix"; then :
16300 ccache_full
=`which ccache`
16301 with_ccache_prefix
=`dirname ${ccache_full}`
16304 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then :
16306 CC
="$with_ccache_prefix/ccache $CC"
16307 CXX
="$with_ccache_prefix/ccache $CXX"
16308 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16314 $as_echo "${enable_ccache:-no}" >&6; }
16321 if test x
$SYS = xwin32
; then
16323 SYS_WIN32_FALSE
='#'
16329 if test x
$SYS = xwin32
-a "$RC" != ":" -a x
$WX_PORT = xmsw
; then
16337 if test x
$SYS = xdarwin
; then
16338 NEED_CORESERVICES_TRUE
=
16339 NEED_CORESERVICES_FALSE
='#'
16341 NEED_CORESERVICES_TRUE
='#'
16342 NEED_CORESERVICES_FALSE
=
16345 if test x
$USE_NLS = xyes
; then
16347 COMPILE_NLS_FALSE
='#'
16349 COMPILE_NLS_TRUE
='#'
16353 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16354 INSTALL_SKINS_TRUE
=
16355 INSTALL_SKINS_FALSE
='#'
16357 INSTALL_SKINS_TRUE
='#'
16358 INSTALL_SKINS_FALSE
=
16361 if test ${enable_plasmamule:-no} = yes; then
16363 PLASMAMULE_FALSE
='#'
16365 PLASMAMULE_TRUE
='#'
16370 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
16371 COMPILE_LIB_COMMON_TRUE
=
16372 COMPILE_LIB_COMMON_FALSE
='#'
16374 COMPILE_LIB_COMMON_TRUE
='#'
16375 COMPILE_LIB_COMMON_FALSE
=
16378 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
16379 COMPILE_LIB_EC_TRUE
=
16380 COMPILE_LIB_EC_FALSE
='#'
16382 COMPILE_LIB_EC_TRUE
='#'
16383 COMPILE_LIB_EC_FALSE
=
16387 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
16390 if test x
$SYS = xwin32
; then :
16391 ac_config_files
="$ac_config_files version.rc"
16394 cat >confcache
<<\_ACEOF
16395 # This file is a shell script that caches the results of configure
16396 # tests run on this system so they can be shared between configure
16397 # scripts and configure runs, see configure's option --config-cache.
16398 # It is not useful on other systems. If it contains results you don't
16399 # want to keep, you may remove or edit it.
16401 # config.status only pays attention to the cache file if you give it
16402 # the --recheck option to rerun configure.
16404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16406 # following values.
16410 # The following way of writing the cache mishandles newlines in values,
16411 # but we know of no workaround that is simple, portable, and efficient.
16412 # So, we kill variables containing newlines.
16413 # Ultrix sh set writes to stderr and can't be redirected directly,
16414 # and sets the high bit in the cache file unless we assign to the vars.
16416 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16417 eval ac_val
=\$
$ac_var
16421 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16425 _ | IFS | as_nl
) ;; #(
16426 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16427 *) { eval $ac_var=; unset $ac_var;} ;;
16433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16434 *${as_nl}ac_space
=\
*)
16435 # `set' does not quote correctly, so add quotes: double-quote
16436 # substitution turns \\\\ into \\, and sed turns \\ into \.
16439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16442 # `set' quotes correctly as required by POSIX, so do not add quotes.
16443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16456 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16457 if test -w "$cache_file"; then
16458 if test "x$cache_file" != "x/dev/null"; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16460 $as_echo "$as_me: updating cache $cache_file" >&6;}
16461 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16462 cat confcache
>"$cache_file"
16464 case $cache_file in #(
16466 mv -f confcache
"$cache_file"$$
&&
16467 mv -f "$cache_file"$$
"$cache_file" ;; #(
16469 mv -f confcache
"$cache_file" ;;
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16475 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16480 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16481 # Let make expand exec_prefix.
16482 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16484 DEFS
=-DHAVE_CONFIG_H
16489 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16490 # 1. Remove the extension, and $U if already installed.
16491 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16492 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16494 # will be set to the directory where LIBOBJS objects are built.
16495 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16496 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16498 LIBOBJS
=$ac_libobjs
16500 LTLIBOBJS
=$ac_ltlibobjs
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16504 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16505 if test -n "$am_sleep_pid"; then
16506 # Hide warnings about reused PIDs.
16507 wait $am_sleep_pid 2>/dev
/null
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16510 $as_echo "done" >&6; }
16511 if test -n "$EXEEXT"; then
16513 am__EXEEXT_FALSE
='#'
16515 am__EXEEXT_TRUE
='#'
16519 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16520 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16524 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16528 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16532 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16536 as_fn_error $?
"conditional \"MONOLITHIC\" was never defined.
16537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16540 as_fn_error $?
"conditional \"AMULE_DAEMON\" was never defined.
16541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16544 as_fn_error $?
"conditional \"COMPILE_CMD\" was never defined.
16545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16548 as_fn_error $?
"conditional \"WEB\" was never defined.
16549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16552 as_fn_error $?
"conditional \"AMULE_GUI\" was never defined.
16553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16556 as_fn_error $?
"conditional \"CAS\" was never defined.
16557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16560 as_fn_error $?
"conditional \"WXCAS\" was never defined.
16561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16564 as_fn_error $?
"conditional \"ED2K\" was never defined.
16565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16568 as_fn_error $?
"conditional \"ALC\" was never defined.
16569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16572 as_fn_error $?
"conditional \"ALCC\" was never defined.
16573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16576 as_fn_error $?
"conditional \"XAS\" was never defined.
16577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16580 as_fn_error $?
"conditional \"FILEVIEW\" was never defined.
16581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16584 as_fn_error $?
"conditional \"SYS_WIN32\" was never defined.
16585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16588 as_fn_error $?
"conditional \"NEED_RC\" was never defined.
16589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16592 as_fn_error $?
"conditional \"NEED_CORESERVICES\" was never defined.
16593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16596 as_fn_error $?
"conditional \"COMPILE_NLS\" was never defined.
16597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16600 as_fn_error $?
"conditional \"INSTALL_SKINS\" was never defined.
16601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16604 as_fn_error $?
"conditional \"PLASMAMULE\" was never defined.
16605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16608 as_fn_error $?
"conditional \"COMPILE_LIB_COMMON\" was never defined.
16609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16612 as_fn_error $?
"conditional \"COMPILE_LIB_EC\" was never defined.
16613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 : "${CONFIG_STATUS=./config.status}"
16618 ac_clean_files_save
=$ac_clean_files
16619 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16625 # Generated by $as_me.
16626 # Run this file to recreate the current configuration.
16627 # Compiler output produced by configure, useful for debugging
16628 # configure, is in config.log if it exists.
16631 ac_cs_recheck=false
16634 SHELL=\${CONFIG_SHELL-$SHELL}
16637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16638 ## -------------------- ##
16639 ## M4sh Initialization. ##
16640 ## -------------------- ##
16642 # Be more Bourne compatible
16643 DUALCASE
=1; export DUALCASE
# for MKS sh
16644 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16648 # is contrary to our usage. Disable this feature.
16649 alias -g '${1+"$@"}'='"$@"'
16650 setopt NO_GLOB_SUBST
16652 case `(set -o) 2>/dev/null` in #(
16664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16665 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16668 # Prefer a ksh shell builtin over an external printf program on Solaris,
16669 # but without wasting forks for bash or zsh.
16670 if test -z "$BASH_VERSION$ZSH_VERSION" \
16671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16672 as_echo='print
-r --'
16673 as_echo_n='print
-rn --'
16674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16675 as_echo='printf %s
\n'
16676 as_echo_n='printf %s
'
16678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16679 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16680 as_echo_n='/usr
/ucb
/echo -n'
16682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16683 as_echo_n_body='eval
16687 expr "X$arg" : "X\\(.*\\)$as_nl";
16688 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16690 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16692 export as_echo_n_body
16693 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16695 export as_echo_body
16696 as_echo='sh
-c $as_echo_body as_echo
'
16699 # The user is always right.
16700 if test "${PATH_SEPARATOR+set}" != set; then
16702 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16703 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16710 # We need space, tab and new line, in precisely that order. Quoting is
16711 # there to prevent editors from complaining about space-tab.
16712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16713 # splitting by setting IFS to empty value.)
16716 # Find who we are. Look in the path if we contain no directory separator.
16719 *[\\/]* ) as_myself=$0 ;;
16720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16724 test -z "$as_dir" && as_dir=.
16725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16731 # We did not find ourselves, most probably we were run as `sh COMMAND'
16732 # in which case we are not to be found in the path.
16733 if test "x$as_myself" = x
; then
16736 if test ! -f "$as_myself"; then
16737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16741 # Unset variables that we do not need and which cause bugs (e.g. in
16742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16743 # suppresses any "Segmentation fault" message there. '((' could
16744 # trigger a bug in pdksh 5.2.14.
16745 for as_var
in BASH_ENV ENV MAIL MAILPATH
16746 do eval test x\
${$as_var+set} = xset \
16747 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16760 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16764 # ----------------------------------------
16765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16767 # script with STATUS, using 1 if that was 0.
16770 as_status
=$1; test $as_status -eq 0 && as_status
=1
16772 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16775 $as_echo "$as_me: error: $2" >&2
16776 as_fn_exit
$as_status
16780 # as_fn_set_status STATUS
16781 # -----------------------
16782 # Set $? to STATUS, without forking.
16783 as_fn_set_status
()
16786 } # as_fn_set_status
16788 # as_fn_exit STATUS
16789 # -----------------
16790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16794 as_fn_set_status
$1
16800 # Portably unset VAR.
16803 { eval $1=; unset $1;}
16805 as_unset
=as_fn_unset
16806 # as_fn_append VAR VALUE
16807 # ----------------------
16808 # Append the text in VALUE to the end of the definition contained in VAR. Take
16809 # advantage of any shell optimizations that allow amortized linear growth over
16810 # repeated appends, instead of the typical quadratic growth present in naive
16812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16813 eval 'as_fn_append ()
16824 # as_fn_arith ARG...
16825 # ------------------
16826 # Perform arithmetic evaluation on the ARGs, and store the result in the
16827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16828 # must be portable across $(()) and expr.
16829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16830 eval 'as_fn_arith ()
16837 as_val
=`expr "$@" || test $? -eq 1`
16842 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16843 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16849 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16850 as_basename
=basename
16855 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16861 as_me
=`$as_basename -- "$0" ||
16862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16863 X"$0" : 'X\(//\)$' \| \
16864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16866 sed '/^.*\/\([^/][^/]*\)\/*$/{
16880 # Avoid depending upon Character Ranges.
16881 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16882 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16883 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16884 as_cr_digits
='0123456789'
16885 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16887 ECHO_C
= ECHO_N
= ECHO_T
=
16888 case `echo -n x` in #(((((
16890 case `echo 'xy\c'` in
16891 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16893 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16900 rm -f conf$$ conf$$.exe conf$$.
file
16901 if test -d conf$$.dir
; then
16902 rm -f conf$$.dir
/conf$$.
file
16905 mkdir conf$$.dir
2>/dev
/null
16907 if (echo >conf$$.
file) 2>/dev
/null
; then
16908 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16910 # ... but there are two gotchas:
16911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16913 # In both cases, we have to default to `cp -pR'.
16914 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16916 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16924 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16925 rmdir conf$$.dir
2>/dev
/null
16930 # Create "$as_dir" as a directory, including parents if necessary.
16935 -*) as_dir
=.
/$as_dir;;
16937 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16941 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16942 *) as_qdir
=$as_dir;;
16944 as_dirs
="'$as_qdir' $as_dirs"
16945 as_dir
=`$as_dirname -- "$as_dir" ||
16946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16947 X"$as_dir" : 'X\(//\)[^/]' \| \
16948 X"$as_dir" : 'X\(//\)$' \| \
16949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16950 $as_echo X"$as_dir" |
16951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16955 /^X\(\/\/\)[^/].*/{
16968 test -d "$as_dir" && break
16970 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16971 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16975 if mkdir
-p .
2>/dev
/null
; then
16976 as_mkdir_p
='mkdir -p "$as_dir"'
16978 test -d .
/-p && rmdir .
/-p
16983 # as_fn_executable_p FILE
16984 # -----------------------
16985 # Test if FILE is an executable regular file.
16986 as_fn_executable_p
()
16988 test -f "$1" && test -x "$1"
16989 } # as_fn_executable_p
16990 as_test_x
='test -x'
16991 as_executable_p
=as_fn_executable_p
16993 # Sed expression to map a string onto a valid CPP name.
16994 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16996 # Sed expression to map a string onto a valid variable name.
16997 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17001 ## ----------------------------------- ##
17002 ## Main body of $CONFIG_STATUS script. ##
17003 ## ----------------------------------- ##
17005 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17008 # Save the log message, to keep $0 and so on meaningful, and to
17009 # report actual input values of CONFIG_FILES etc. instead of their
17010 # values after options handling.
17012 This file was extended by aMule $as_me SVN, which was
17013 generated by GNU Autoconf 2.69. Invocation command line was
17015 CONFIG_FILES = $CONFIG_FILES
17016 CONFIG_HEADERS = $CONFIG_HEADERS
17017 CONFIG_LINKS = $CONFIG_LINKS
17018 CONFIG_COMMANDS = $CONFIG_COMMANDS
17021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17026 case $ac_config_files in *"
17027 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17030 case $ac_config_headers in *"
17031 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 # Files that config.status was made for.
17037 config_files="$ac_config_files"
17038 config_headers="$ac_config_headers"
17039 config_commands="$ac_config_commands"
17043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17045 \`$as_me' instantiates files and other configuration actions
17046 from templates according to the current configuration. Unless the files
17047 and actions are specified as TAGs, all are instantiated by default.
17049 Usage: $0 [OPTION]... [TAG]...
17051 -h, --help print this help, then exit
17052 -V, --version print version number and configuration settings, then exit
17053 --config print configuration, then exit
17054 -q, --quiet, --silent
17055 do not print progress messages
17056 -d, --debug don't remove temporary files
17057 --recheck update $as_me by reconfiguring in the same conditions
17058 --file=FILE[:TEMPLATE]
17059 instantiate the configuration file FILE
17060 --header=FILE[:TEMPLATE]
17061 instantiate the configuration header FILE
17063 Configuration files:
17066 Configuration headers:
17069 Configuration commands:
17072 Report bugs to <admin@amule.org>."
17075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17078 aMule config.status SVN
17079 configured by $0, generated by GNU Autoconf 2.69,
17080 with options \\"\$ac_cs_config\\"
17082 Copyright (C) 2012 Free Software Foundation, Inc.
17083 This config.status script is free software; the Free Software Foundation
17084 gives unlimited permission to copy, distribute and modify it."
17091 test -n "\$AWK" || AWK=awk
17094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17095 # The default lists apply if the user does not specify any file.
17101 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17102 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17106 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17118 # Handling of the options.
17119 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17121 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17122 $as_echo "$ac_cs_version"; exit ;;
17123 --config |
--confi |
--conf |
--con |
--co |
--c )
17124 $as_echo "$ac_cs_config"; exit ;;
17125 --debug |
--debu |
--deb |
--de |
--d |
-d )
17127 --file |
--fil |
--fi |
--f )
17130 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17131 '') as_fn_error $?
"missing file argument" ;;
17133 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17134 ac_need_defaults
=false
;;
17135 --header |
--heade |
--head |
--hea )
17138 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17140 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17141 ac_need_defaults
=false
;;
17143 # Conflict between --help and --header
17144 as_fn_error $?
"ambiguous option: \`$1'
17145 Try \`$0 --help' for more information.";;
17146 --help |
--hel |
-h )
17147 $as_echo "$ac_cs_usage"; exit ;;
17148 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17149 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17152 # This is an error.
17153 -*) as_fn_error $?
"unrecognized option: \`$1'
17154 Try \`$0 --help' for more information." ;;
17156 *) as_fn_append ac_config_targets
" $1"
17157 ac_need_defaults
=false
;;
17163 ac_configure_extra_args
=
17165 if $ac_cs_silent; then
17167 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17172 if \$ac_cs_recheck; then
17173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17176 CONFIG_SHELL='$SHELL'
17177 export CONFIG_SHELL
17182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17187 ## Running $as_me. ##
17193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17197 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17198 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17199 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17201 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17202 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17203 LINGUAS="${LINGUAS-%UNSET%}"
17205 denoiserlevel=$with_denoise_level
17209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17211 # Handling of arguments.
17212 for ac_config_target
in $ac_config_targets
17214 case $ac_config_target in
17215 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17216 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17217 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17218 "intl") CONFIG_COMMANDS
="$CONFIG_COMMANDS intl" ;;
17219 "denoiser") CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
17220 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17221 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
17222 "docs/man/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
17223 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
17224 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
17225 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17226 "src/pixmaps/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
17227 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17228 "src/libs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
17229 "src/libs/ec/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
17230 "src/libs/ec/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17231 "src/libs/common/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
17232 "src/utils/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
17233 "src/utils/aLinkCreator/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17234 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17235 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17236 "src/utils/cas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
17237 "src/utils/cas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17238 "src/utils/fileview/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17239 "src/utils/plasmamule/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17240 "src/utils/wxCas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17241 "src/utils/wxCas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17242 "src/utils/wxCas/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17243 "src/utils/xas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
17244 "src/utils/xas/autostart-xas") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17245 "src/utils/xas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17246 "src/skins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
17247 "src/webserver/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
17248 "src/webserver/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
17249 "src/webserver/default/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
17250 "unittests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
17251 "unittests/muleunit/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17252 "unittests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
17253 "version.rc") CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
17255 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17260 # If the user did not use the arguments to specify the items to instantiate,
17261 # then the envvar interface is used. Set only those that are not.
17262 # We use the long form for the default assignment because of an extremely
17263 # bizarre bug on SunOS 4.1.3.
17264 if $ac_need_defaults; then
17265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17270 # Have a temporary directory for convenience. Make it in the build tree
17271 # simply because there is no reason against having it here, and in addition,
17272 # creating and moving files from /tmp can sometimes cause problems.
17273 # Hook for its removal unless debugging.
17274 # Note that there is a small window in which the directory will not be cleaned:
17275 # after its creation but before its name has been assigned to `$tmp'.
17279 trap 'exit_status=$?
17280 : "${ac_tmp:=$tmp}"
17281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17283 trap 'as_fn_exit 1' 1 2 13 15
17285 # Create a (secure) tmp directory for tmp files.
17288 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17292 tmp
=.
/conf$$
-$RANDOM
17293 (umask 077 && mkdir
"$tmp")
17294 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17297 # Set up the scripts for CONFIG_FILES section.
17298 # No need to generate them if there are no CONFIG_FILES.
17299 # This happens for instance with `./config.status config.h'.
17300 if test -n "$CONFIG_FILES"; then
17303 ac_cr
=`echo X | tr X '\015'`
17304 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17305 # But we know of no other shell where ac_cr would be empty at this
17306 # point, so we can use a bashism as a fallback.
17307 if test "x$ac_cr" = x
; then
17308 eval ac_cr
=\$
\'\\r
\'
17310 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17311 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17314 ac_cs_awk_cr
=$ac_cr
17317 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17322 echo "cat >conf$$subs.awk <<_ACEOF" &&
17323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17325 } >conf$$subs.sh ||
17326 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17329 for ac_last_try in false false false false false :; do
17330 . ./conf$$subs.sh ||
17331 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17333 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17334 if test $ac_delim_n = $ac_delim_num; then
17336 elif $ac_last_try; then
17337 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17339 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17342 rm -f conf$$subs.sh
17344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17345 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17349 s/^/S["/; s
/!.
*/"]=/
17359 s/\(.\{148\}\)..*/\1/
17361 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17366 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17373 s/\(.\{148\}\)..*/\1/
17375 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17379 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17384 ' <conf$$subs.awk | sed '
17389 ' >>$CONFIG_STATUS || ac_write_fail=1
17390 rm -f conf$$subs.awk
17391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17393 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17394 for (key in S) S_is_set[key] = 1
17400 nfields = split(line, field, "@
")
17402 len = length(field[1])
17403 for (i = 2; i < nfields; i++) {
17405 keylen = length(key)
17406 if (S_is_set[key]) {
17408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17409 len += length(value) + length(field[++i])
17420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17421 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17422 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17425 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17426 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17429 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17430 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17431 # trailing colons and then remove the whole line if VPATH becomes empty
17432 # (actually we leave an empty line to preserve line numbers).
17433 if test "x
$srcdir" = x.; then
17434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17453 fi # test -n "$CONFIG_FILES"
17455 # Set up the scripts for CONFIG_HEADERS section.
17456 # No need to generate them if there are no CONFIG_HEADERS.
17457 # This happens for instance with `./config.status Makefile'.
17458 if test -n "$CONFIG_HEADERS"; then
17459 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17463 # Transform confdefs.h into an awk script `defines.awk', embedded as
17464 # here-document in config.status, that substitutes the proper values into
17465 # config.h.in to produce config.h.
17467 # Create a delimiter string that does not exist in confdefs.h, to ease
17468 # handling of long lines.
17470 for ac_last_try in false false :; do
17471 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17472 if test -z "$ac_tt"; then
17474 elif $ac_last_try; then
17475 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17477 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17481 # For the awk script, D is an array of macro values keyed by name,
17482 # likewise P contains macro parameters if any. Preserve backslash
17483 # newline sequences.
17485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17487 s/.\{148\}/&'"$ac_delim"'/g
17490 s/^[ ]*#[ ]*define[ ][ ]*/ /
17497 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17499 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17504 D["\
1"]=" \
3\\\\\\n
"\\/p
17506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17511 s/.\{148\}/&'"$ac_delim"'/g
17516 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17519 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17521 ' <confdefs.h | sed '
17522 s/'"$ac_delim"'/"\\\
17523 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17526 for (key in D) D_is_set[key] = 1
17529 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17531 split(line, arg, " ")
17532 if (arg[1] == "#") {
17536 defundef
= substr
(arg
[1], 2)
17539 split(mac1
, mac2
, "(") #)
17541 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17542 if (D_is_set
[macro
]) {
17543 # Preserve the white space surrounding the "#".
17544 print prefix
"define", macro P
[macro
] D
[macro
]
17547 # Replace #undef with comments. This is necessary, for example,
17548 # in the case of _POSIX_SOURCE, which is predefined and required
17549 # on some systems where configure will not decide to define it.
17550 if (defundef
== "undef") {
17551 print
"/*", prefix defundef
, macro
, "*/"
17559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17560 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17561 fi # test -n "$CONFIG_HEADERS"
17564 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17569 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17571 case $ac_mode$ac_tag in
17573 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17574 :[FH
]-) ac_tag
=-:-;;
17575 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17592 -) ac_f
="$ac_tmp/stdin";;
17593 *) # Look for the file first in the build tree, then in the source tree
17594 # (if the path is not absolute). The absolute path cannot be DOS-style,
17595 # because $ac_f cannot contain `:'.
17599 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17601 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17603 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17604 as_fn_append ac_file_inputs
" '$ac_f'"
17607 # Let's still pretend it is `configure' which instantiates (i.e., don't
17608 # use $as_me), people would be surprised to read:
17609 # /* config.h. Generated by config.status. */
17610 configure_input
='Generated from '`
17611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17613 if test x
"$ac_file" != x-
; then
17614 configure_input
="$ac_file. $configure_input"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17616 $as_echo "$as_me: creating $ac_file" >&6;}
17618 # Neutralize special characters interpreted by sed in replacement strings.
17619 case $configure_input in #(
17620 *\
&* |
*\|
* |
*\\* )
17621 ac_sed_conf_input
=`$as_echo "$configure_input" |
17622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17623 *) ac_sed_conf_input
=$configure_input;;
17627 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17628 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17633 ac_dir
=`$as_dirname -- "$ac_file" ||
17634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$ac_file" : 'X\(//\)[^/]' \| \
17636 X"$ac_file" : 'X\(//\)$' \| \
17637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17638 $as_echo X"$ac_file" |
17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17643 /^X\(\/\/\)[^/].*/{
17656 as_dir
="$ac_dir"; as_fn_mkdir_p
17660 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17662 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17663 # A ".." for each directory in $ac_dir_suffix.
17664 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17665 case $ac_top_builddir_sub in
17666 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17667 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17670 ac_abs_top_builddir
=$ac_pwd
17671 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17672 # for backward compatibility:
17673 ac_top_builddir
=$ac_top_build_prefix
17676 .
) # We are building in place.
17678 ac_top_srcdir
=$ac_top_builddir_sub
17679 ac_abs_top_srcdir
=$ac_pwd ;;
17680 [\\/]* | ?
:[\\/]* ) # Absolute name.
17681 ac_srcdir
=$srcdir$ac_dir_suffix;
17682 ac_top_srcdir
=$srcdir
17683 ac_abs_top_srcdir
=$srcdir ;;
17684 *) # Relative name.
17685 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17686 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17687 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17689 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17699 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17700 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17702 ac_MKDIR_P
=$MKDIR_P
17704 [\\/$
]* | ?
:[\\/]* ) ;;
17705 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17710 # If the template does not know about datarootdir, expand it.
17711 # FIXME: This hack should be removed a few years after 2.60.
17712 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17724 *datarootdir
*) ac_datarootdir_seen
=yes;;
17725 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17727 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17730 ac_datarootdir_hack='
17731 s&@datadir@&$datadir&g
17732 s&@docdir@&$docdir&g
17733 s&@infodir@&$infodir&g
17734 s&@localedir@&$localedir&g
17735 s&@mandir@&$mandir&g
17736 s&\\\${datarootdir}&$datarootdir&g' ;;
17740 # Neutralize VPATH when `$srcdir' = `.'.
17741 # Shell code in configure.ac might set extrasub.
17742 # FIXME: do we really want to maintain this feature?
17743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17744 ac_sed_extra="$ac_vpsub
17747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17749 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17750 s|@configure_input@|
$ac_sed_conf_input|
;t t
17751 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17752 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17753 s
&@srcdir@
&$ac_srcdir&;t t
17754 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17755 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17756 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17757 s
&@builddir@
&$ac_builddir&;t t
17758 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17759 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17760 s
&@INSTALL@
&$ac_INSTALL&;t t
17761 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17762 $ac_datarootdir_hack
17764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17765 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17770 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17772 which seems to be undefined. Please make sure it is defined" >&5
17773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17774 which seems to be undefined. Please make sure it is defined" >&2;}
17776 rm -f "$ac_tmp/stdin"
17778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17787 if test x"$ac_file" != x-; then
17789 $as_echo "/* $configure_input */" \
17790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17791 } >"$ac_tmp/config.h" \
17792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17795 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17798 mv "$ac_tmp/config.h" "$ac_file" \
17799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17802 $as_echo "/* $configure_input */" \
17803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17804 || as_fn_error $? "could not create -" "$LINENO" 5
17806 # Compute "$ac_file"'s index
in $config_headers.
17809 for _am_header
in $config_headers :; do
17810 case $_am_header in
17811 $_am_arg |
$_am_arg:* )
17814 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17817 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17818 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17819 X"$_am_arg" : 'X\(//\)[^/]' \| \
17820 X"$_am_arg" : 'X\(//\)$' \| \
17821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17822 $as_echo X"$_am_arg" |
17823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17827 /^X\(\/\/\)[^/].*/{
17839 s/.*/./; q'`/stamp-h
$_am_stamp_count
17842 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17843 $as_echo "$as_me: executing $ac_file commands" >&6;}
17848 case $ac_file$ac_mode in
17849 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17850 # Older Autoconf quotes --file arguments for eval, but not when files
17851 # are listed without --file. Let's play safe and only enable the eval
17852 # if we detect the quoting.
17853 case $CONFIG_FILES in
17854 *\'*) eval set x
"$CONFIG_FILES" ;;
17855 *) set x
$CONFIG_FILES ;;
17860 # Strip MF so we end up with the name of the file.
17861 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17862 # Check whether this is an Automake generated Makefile or not.
17863 # We used to match only the files named 'Makefile.in', but
17864 # some people rename them; so instead we look at the file content.
17865 # Grep'ing the first line is not enough: some people post-process
17866 # each Makefile.in and add a new line on top of each file to say so.
17867 # Grep'ing the whole file is not good either: AIX grep has a line
17868 # limit of 2048, but all sed's we know have understand at least 4000.
17869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17870 dirpart
=`$as_dirname -- "$mf" ||
17871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17872 X"$mf" : 'X\(//\)[^/]' \| \
17873 X"$mf" : 'X\(//\)$' \| \
17874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17880 /^X\(\/\/\)[^/].*/{
17896 # Extract the definition of DEPDIR, am__include, and am__quote
17897 # from the Makefile without running 'make'.
17898 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17899 test -z "$DEPDIR" && continue
17900 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17901 test -z "$am__include" && continue
17902 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17903 # Find all dependency output files, they are included files with
17904 # $(DEPDIR) in their names. We invoke sed twice because it is the
17905 # simplest approach to changing $(DEPDIR) to its actual value in the
17907 for file in `sed -n "
17908 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17909 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17910 # Make sure the directory exists.
17911 test -f "$dirpart/$file" && continue
17912 fdir
=`$as_dirname -- "$file" ||
17913 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17914 X"$file" : 'X\(//\)[^/]' \| \
17915 X"$file" : 'X\(//\)$' \| \
17916 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17917 $as_echo X"$file" |
17918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17922 /^X\(\/\/\)[^/].*/{
17935 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17936 # echo "creating $dirpart/$file"
17937 echo '# dummy' > "$dirpart/$file"
17943 for ac_file
in $CONFIG_FILES; do
17944 # Support "outfile[:infile[:infile...]]"
17946 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
17948 # PO directories have a Makefile.in generated from Makefile.in.in.
17949 case "$ac_file" in */Makefile.
in)
17950 # Adjust a relative srcdir.
17951 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17952 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
17953 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17954 # In autoconf-2.13 it is called $ac_given_srcdir.
17955 # In autoconf-2.50 it is called $srcdir.
17956 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17957 case "$ac_given_srcdir" in
17958 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17959 /*) top_srcdir
="$ac_given_srcdir" ;;
17960 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17962 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17963 rm -f "$ac_dir/POTFILES"
17964 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17965 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17966 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17967 # on $ac_dir but don't depend on user-specified configuration
17969 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17970 # The LINGUAS file contains the set of available languages.
17971 if test -n "$ALL_LINGUAS"; then
17972 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17974 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17975 # Hide the ALL_LINGUAS assigment from automake.
17976 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17978 case "$ac_given_srcdir" in
17980 *) srcdirpre
='$(srcdir)/' ;;
17986 for lang
in $ALL_LINGUAS; do
17987 POFILES
="$POFILES $srcdirpre$lang.po"
17988 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17989 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17990 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17992 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17993 # environment variable.
17995 if test -n "$ALL_LINGUAS"; then
17996 for presentlang
in $ALL_LINGUAS; do
17998 if test "%UNSET%" != "$LINGUAS"; then
17999 desiredlanguages
="$LINGUAS"
18001 desiredlanguages
="$ALL_LINGUAS"
18003 for desiredlang
in $desiredlanguages; do
18004 # Use the presentlang catalog if desiredlang is
18005 # a. equal to presentlang, or
18006 # b. a variant of presentlang (because in this case,
18007 # presentlang can be used as a fallback for messages
18008 # which are not translated in the desiredlang catalog).
18009 case "$desiredlang" in
18010 "$presentlang"*) useit
=yes;;
18013 if test $useit = yes; then
18014 INST_LINGUAS
="$INST_LINGUAS $presentlang"
18019 if test -n "$INST_LINGUAS"; then
18020 for lang
in $INST_LINGUAS; do
18021 CATALOGS
="$CATALOGS $lang.gmo"
18024 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
18025 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18026 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
18027 if test -f "$f"; then
18029 *.orig |
*.bak |
*~
) ;;
18030 *) cat "$f" >> "$ac_dir/Makefile" ;;
18039 test -d intl || mkdir intl
18040 test -f intl
/plural.c ||
cp "$srcdir"/intl
/plural.c intl
/
18041 touch intl
/plural.c
18043 "denoiser":C
) if test $denoiserlevel -gt 0; then
18044 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
18045 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
18046 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
18047 for i
in `find . -name 'Makefile' -print`; do
18048 if test -n "`head -n 1 $i | grep '^#'`"; then
18049 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
18060 ac_clean_files
=$ac_clean_files_save
18062 test $ac_write_fail = 0 ||
18063 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18066 # configure is writing to config.log, and then calls config.status.
18067 # config.status does its own redirection, appending to config.log.
18068 # Unfortunately, on DOS this fails, as config.log is still kept open
18069 # by configure, so config.status won't be able to write to it; its
18070 # output is simply discarded. So we exec the FD to /dev/null,
18071 # effectively closing config.log, so it can be properly (re)opened and
18072 # appended to by config.status. When coming back to configure, we
18073 # need to make the FD available again.
18074 if test "$no_create" != yes; then
18076 ac_config_status_args
=
18077 test "$silent" = yes &&
18078 ac_config_status_args
="$ac_config_status_args --quiet"
18080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18083 # would make configure fail if this is the last instruction.
18084 $ac_cs_success || as_fn_exit
1
18086 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18088 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18092 if test -n "$svndate"; then :
18093 SVN_REVISION
=" ($svndate)"
18100 echo " Configure script has finished system check."
18102 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18104 echo " aMule enabled options:"
18106 echo " **** aMule Core ****"
18107 echo " Prefix where aMule should be installed? ${prefix:-none}"
18108 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18109 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18110 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18111 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18112 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18113 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18114 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18115 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18116 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18119 echo " **** aMule TextClient ****"
18120 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18122 echo " **** aMule WebServer ****"
18123 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18125 echo " **** aMule ED2K Links Handler ****"
18126 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18128 echo " **** aMuleLinkCreator ****"
18129 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18130 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18132 echo " **** aMule Statistics ****"
18133 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18134 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18135 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18136 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18139 echo " **** General Libraries and Tools ****"
18140 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18141 echo " Should aMule file viewer for console be built? ${enable_fileview:-no}"
18142 echo " Libraries aMule will use to build:"
18143 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18146 if test $WX_DEBUG -eq 1; then :
18147 wxinfo
="$wxinfo,debug"
18149 if test $WX_SHARED -eq 1; then :
18150 wxinfo
="$wxinfo,shared"
18152 wxinfo
="$wxinfo,static"
18154 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18157 if test ${with_boost:-no} != no
; then :
18158 if test ${with_boost:-no} = disabled
; then
18159 echo " boost Not detected"
18160 elif test ${boost_cv_inc_path:-yes} != yes; then
18161 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18162 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18167 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18168 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18170 if test ${enable_upnp:-yes} = yes; then :
18172 if test -n "$with_libupnp_prefix"; then :
18173 libupnp_place
=" (in $with_libupnp_prefix)"
18175 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18178 if test ${enable_nls:-yes} = yes; then
18179 if test x
$USE_NLS = xno
; then :
18180 libintl_found
="Not detected"
18182 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
18183 libintl_found
="included"
18185 libintl_found
="system"
18188 echo " libintl $libintl_found"
18190 if test ${enable_geoip:-no} = yes; then :
18191 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18196 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18197 echo " libGeoIP ${geoip_style}"
18200 if test ${enable_webserver:-no} = yes; then :
18201 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18203 if test ${enable_cas:-no} = yes; then :
18204 echo " libgd ${GDLIB_VERSION:-Not detected}"
18206 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then :
18207 echo " zlib ${ZLIB_VERSION:-Not detected}"
18209 if test ${enable_plasmamule:-no} = yes; then :
18210 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18211 echo " qt-core-libs ${QT_CORE_LIBS}"
18212 echo " qt-gui-libs ${QT_GUI_LIBS}"
18213 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18214 echo " kde-headers ${KDE_HEADER_DIR}"
18215 echo " kde-services-path ${KDE_SERVICE_PATH}"
18216 echo " kde-module-path ${KDE_MODULE_PATH}"
18217 echo " kde-icon-path ${KDE_ICON_PATH}"
18218 echo " kde-mime-path ${KDE_MIME_PATH}"
18219 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18222 if test ${_mule_has_warnings:-no} = yes; then
18225 echo " *** Warnings during configuration ***"
18227 if test ${_mule_warning_0:-no} = yes; then
18230 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18231 Please check that gdlib-config is in your default path, check out
18232 LD_LIBRARY_PATH or equivalent variable.
18233 Or this might also be that your gdlib-config has other name.
18234 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18235 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18236 If you use compiled packages check if you have devel pack installed.
18237 To download the latest version check http://www.boutell.com/gd for sources.
18240 if test ${_mule_warning_1:-no} = yes; then
18243 * libpng >= 1.2.0 not found.
18244 amuleweb will be compiled but file download progress bar images will NOT be
18248 if test ${_mule_warning_2:-no} = yes; then
18251 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18254 if test ${_mule_warning_3:-no} = yes; then
18257 * GeoIP support has been disabled because the GeoIP libraries were not found
18260 if test ${_mule_warning_4:-no} = yes; then
18263 * GeoIP support has been disabled because the GeoIP header files were not
18267 if test ${_mule_warning_5:-no} = yes; then
18270 * UPnP code has been disabled because ${libupnp_error}.
18273 if test ${_mule_warning_6:-no} = yes; then
18276 * Cross-compilation detected, so exception handling cannot be tested.
18277 Note that broken exception handling in your compiler may lead to unexpected
18281 if test ${_mule_warning_7:-no} = yes; then
18284 * Boost support has been disabled because Boost.System not found
18287 if test ${_mule_warning_8:-no} = yes; then
18290 * Boost support has been disabled because Boost.Asio not found
18293 if test ${_mule_warning_9:-no} = yes; then
18296 * Boost support has been disabled because Boost.Asio not found
18299 if test ${_mule_warning_10:-no} = yes; then
18302 * Boost support has been disabled because of insufficient Boost version.
18305 if test ${_mule_warning_11:-no} = yes; then
18308 * configure cannot check whether malloc() and realloc() are GNU libc
18309 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18310 configure with the --without-gnu-malloc switch.
18313 if test ${_mule_warning_12:-no} = yes; then
18316 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18320 if test ${_mule_warning_13:-no} = yes; then
18323 * Cannot link to the library containing the bfd functions.
18326 if test ${_mule_warning_14:-no} = yes; then
18329 * bfd.h not found or unusable, please install binutils development package if
18330 you are a developer or want to help testing aMule