2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x
; then
139 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required
="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev
/null
; then :
182 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir
=.
194 for as_base
in sh bash ksh sh5
; do
195 # Try only shells that exist, to save several forks.
196 as_shell
=$as_dir/$as_base
197 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
199 CONFIG_SHELL
=$as_shell as_have_required
=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
210 CONFIG_SHELL
=$SHELL as_have_required
=yes
215 if test "x$CONFIG_SHELL" != x
; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x
$as_have_required = xno
; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x
${ZSH_VERSION+set} = xset
; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL
=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE
= GREP_OPTIONS
=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir
=.
/$as_dir;;
288 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
292 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs
="'$as_qdir' $as_dirs"
296 as_dir
=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
322 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
357 as_val
=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status
=$?
; test $as_status -eq 0 && as_status
=1
371 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit
$as_status
378 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
385 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
397 as_me
=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits
='0123456789'
421 as_cr_alnum
=$as_cr_Letters$as_cr_digits
424 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
425 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x
"$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C
= ECHO_N
= ECHO_T
=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
468 rm -f conf$$ conf$$.exe conf$$.
file
469 if test -d conf$$.dir
; then
470 rm -f conf$$.dir
/conf$$.
file
473 mkdir conf$$.dir
2>/dev
/null
475 if (echo >conf$$.
file) 2>/dev
/null
; then
476 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
484 elif ln conf$$.
file conf$$
2>/dev
/null
; then
492 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
493 rmdir conf$$.dir
2>/dev
/null
495 if mkdir
-p .
2>/dev
/null
; then
496 as_mkdir_p
='mkdir -p "$as_dir"'
498 test -d .
/-p && rmdir .
/-p
502 if test -x / >/dev
/null
2>&1; then
505 if ls -dL / >/dev
/null
2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p
=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix
=/usr
/local
545 ac_config_libobj_dir
=.
552 # Identity of this package.
554 PACKAGE_TARNAME
='amule'
555 PACKAGE_VERSION
='SVN'
556 PACKAGE_STRING
='aMule SVN'
557 PACKAGE_BUGREPORT
='admin@amule.org'
560 ac_unique_file
="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default
="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars
='am__EXEEXT_FALSE
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
614 NEED_CORESERVICES_FALSE
615 NEED_CORESERVICES_TRUE
647 AMULE_DAEMON_MANPAGES
652 INTL_LIBTOOL_SUFFIX_PREFIX
659 BUILD_INCLUDED_LIBINTL
792 MAINTAINER_MODE_FALSE
804 INSTALL_STRIP_PROGRAM
846 program_transform_name
862 enable_option_checking
864 enable_maintainer_mode
865 enable_dependency_tracking
910 with_included_gettext
919 ac_precious_vars
='build_alias
939 # Initialize some variables set by options.
941 ac_init_version
=false
942 ac_unrecognized_opts
=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name
=s
,x
,x
,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir
='${exec_prefix}/bin'
968 sbindir
='${exec_prefix}/sbin'
969 libexecdir
='${exec_prefix}/libexec'
970 datarootdir
='${prefix}/share'
971 datadir
='${datarootdir}'
972 sysconfdir
='${prefix}/etc'
973 sharedstatedir
='${prefix}/com'
974 localstatedir
='${prefix}/var'
975 includedir
='${prefix}/include'
976 oldincludedir
='/usr/include'
977 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir
='${datarootdir}/info'
983 libdir
='${exec_prefix}/lib'
984 localedir
='${datarootdir}/locale'
985 mandir
='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\
$ac_option
999 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1009 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1011 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1012 bindir
=$ac_optarg ;;
1014 -build |
--build |
--buil |
--bui |
--bu)
1015 ac_prev
=build_alias
;;
1016 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1017 build_alias
=$ac_optarg ;;
1019 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1020 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1021 ac_prev
=cache_file
;;
1022 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1023 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1024 cache_file
=$ac_optarg ;;
1026 --config-cache |
-C)
1027 cache_file
=config.cache
;;
1029 -datadir |
--datadir |
--datadi |
--datad)
1031 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1032 datadir
=$ac_optarg ;;
1034 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1035 |
--dataroo |
--dataro |
--datar)
1036 ac_prev
=datarootdir
;;
1037 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1038 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1039 datarootdir
=$ac_optarg ;;
1041 -disable-* |
--disable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=no
;;
1057 -docdir |
--docdir |
--docdi |
--doc |
--do)
1059 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1060 docdir
=$ac_optarg ;;
1062 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1064 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1065 dvidir
=$ac_optarg ;;
1067 -enable-* |
--enable-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 as_fn_error
"invalid feature name: $ac_useropt"
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_
$ac_useropt"
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval enable_
$ac_useropt=\
$ac_optarg ;;
1083 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1084 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1085 |
--exec |
--exe |
--ex)
1086 ac_prev
=exec_prefix
;;
1087 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1088 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1089 |
--exec=* |
--exe=* |
--ex=*)
1090 exec_prefix
=$ac_optarg ;;
1092 -gas |
--gas |
--ga |
--g)
1093 # Obsolete; use --with-gas.
1096 -help |
--help |
--hel |
--he |
-h)
1097 ac_init_help
=long
;;
1098 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1099 ac_init_help
=recursive
;;
1100 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1101 ac_init_help
=short
;;
1103 -host |
--host |
--hos |
--ho)
1104 ac_prev
=host_alias
;;
1105 -host=* |
--host=* |
--hos=* |
--ho=*)
1106 host_alias
=$ac_optarg ;;
1108 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1110 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1112 htmldir
=$ac_optarg ;;
1114 -includedir |
--includedir |
--includedi |
--included |
--include \
1115 |
--includ |
--inclu |
--incl |
--inc)
1116 ac_prev
=includedir
;;
1117 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1118 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1119 includedir
=$ac_optarg ;;
1121 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1123 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1124 infodir
=$ac_optarg ;;
1126 -libdir |
--libdir |
--libdi |
--libd)
1128 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1129 libdir
=$ac_optarg ;;
1131 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1132 |
--libexe |
--libex |
--libe)
1133 ac_prev
=libexecdir
;;
1134 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1135 |
--libexe=* |
--libex=* |
--libe=*)
1136 libexecdir
=$ac_optarg ;;
1138 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1139 ac_prev
=localedir
;;
1140 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1141 localedir
=$ac_optarg ;;
1143 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1144 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1145 ac_prev
=localstatedir
;;
1146 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1147 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1148 localstatedir
=$ac_optarg ;;
1150 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1152 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1153 mandir
=$ac_optarg ;;
1155 -nfp |
--nfp |
--nf)
1156 # Obsolete; use --without-fp.
1159 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1160 |
--no-cr |
--no-c |
-n)
1163 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1164 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1167 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1168 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1169 |
--oldin |
--oldi |
--old |
--ol |
--o)
1170 ac_prev
=oldincludedir
;;
1171 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1172 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1173 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1174 oldincludedir
=$ac_optarg ;;
1176 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1178 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1179 prefix
=$ac_optarg ;;
1181 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1182 |
--program-pre |
--program-pr |
--program-p)
1183 ac_prev
=program_prefix
;;
1184 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1185 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1186 program_prefix
=$ac_optarg ;;
1188 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1189 |
--program-suf |
--program-su |
--program-s)
1190 ac_prev
=program_suffix
;;
1191 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1192 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1193 program_suffix
=$ac_optarg ;;
1195 -program-transform-name |
--program-transform-name \
1196 |
--program-transform-nam |
--program-transform-na \
1197 |
--program-transform-n |
--program-transform- \
1198 |
--program-transform |
--program-transfor \
1199 |
--program-transfo |
--program-transf \
1200 |
--program-trans |
--program-tran \
1201 |
--progr-tra |
--program-tr |
--program-t)
1202 ac_prev
=program_transform_name
;;
1203 -program-transform-name=* |
--program-transform-name=* \
1204 |
--program-transform-nam=* |
--program-transform-na=* \
1205 |
--program-transform-n=* |
--program-transform-=* \
1206 |
--program-transform=* |
--program-transfor=* \
1207 |
--program-transfo=* |
--program-transf=* \
1208 |
--program-trans=* |
--program-tran=* \
1209 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1210 program_transform_name
=$ac_optarg ;;
1212 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1214 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1215 pdfdir
=$ac_optarg ;;
1217 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1219 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1222 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1223 |
-silent |
--silent |
--silen |
--sile |
--sil)
1226 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1228 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1230 sbindir
=$ac_optarg ;;
1232 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1233 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1234 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1236 ac_prev
=sharedstatedir
;;
1237 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1238 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1239 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1241 sharedstatedir
=$ac_optarg ;;
1243 -site |
--site |
--sit)
1245 -site=* |
--site=* |
--sit=*)
1248 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1250 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1251 srcdir
=$ac_optarg ;;
1253 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1254 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1255 ac_prev
=sysconfdir
;;
1256 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1257 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1258 sysconfdir
=$ac_optarg ;;
1260 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1261 ac_prev
=target_alias
;;
1262 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1263 target_alias
=$ac_optarg ;;
1265 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1268 -version |
--version |
--versio |
--versi |
--vers |
-V)
1269 ac_init_version
=: ;;
1272 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1275 as_fn_error
"invalid package name: $ac_useropt"
1276 ac_useropt_orig
=$ac_useropt
1277 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep
=', ';;
1285 eval with_
$ac_useropt=\
$ac_optarg ;;
1287 -without-* |
--without-*)
1288 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1291 as_fn_error
"invalid package name: $ac_useropt"
1292 ac_useropt_orig
=$ac_useropt
1293 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1298 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep
=', ';;
1301 eval with_
$ac_useropt=no
;;
1304 # Obsolete; use --with-x.
1307 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1308 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1309 ac_prev
=x_includes
;;
1310 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1311 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1312 x_includes
=$ac_optarg ;;
1314 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1315 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1316 ac_prev
=x_libraries
;;
1317 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1318 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1319 x_libraries
=$ac_optarg ;;
1321 -*) as_fn_error
"unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1326 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1330 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1332 eval $ac_envvar=\
$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 if test -n "$ac_prev"; then
1347 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error
"missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1354 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 # Check all directory arguments for consistency.
1360 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val
=\$
$ac_var
1366 # Remove trailing slashes.
1369 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\
$ac_val;;
1372 # Be sure to have absolute directory names.
1374 [\\/$
]* | ?
:[\\/]* ) continue;;
1375 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1377 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1385 target
=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x
; then
1389 if test "x$build_alias" = x
; then
1390 cross_compiling
=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1399 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1401 test "$silent" = yes && exec 6>/dev
/null
1404 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di
=`ls -di .` &&
1406 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error
"working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error
"pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted
=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir
=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1444 ac_srcdir_defaulted
=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1448 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1462 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 for ac_var
in $ac_precious_vars; do
1465 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1467 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1478 \`configure' configures aMule SVN to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1541 --build=BUILD configure
for building on BUILD
[guessed
]
1542 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive
) echo "Configuration of aMule SVN:";;
1553 --disable-option-checking ignore unrecognized
--enable/--with options
1554 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1555 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1556 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1557 --disable-silent-rules verbose build output (undo: `make V
=0')
1558 --enable-maintainer-mode enable make rules and dependencies not useful
1559 (and sometimes confusing) to the casual installer
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --disable-monolithic disable building of the monolithic aMule app
1563 --enable-amule-daemon compile aMule daemon version
1564 --enable-amulecmd compile aMule command line client
1565 --enable-webserver compile aMule WebServer
1566 --enable-amule-gui compile aMule remote GUI
1567 --enable-cas compile C aMule Statistics
1568 --enable-wxcas compile aMule GUI Statistics
1569 --disable-ed2k don't compile aMule ed2k links handler
1570 --enable-alc compile aMuleLinkCreator GUI version
1571 --enable-alcc compile aMuleLinkCreator
for console
1572 --enable-xas install xas XChat2 plugin
1573 --enable-fileview compile aMule
file viewer
for console
(EXPERIMENTAL
)
1574 --enable-plasmamule compile aMule plasma applet and engine
1575 --enable-static produce a statically linked executable
1576 --enable-kde-in-home install KDE related stuff
in your home dir
1577 --enable-geoip compile with GeoIP IP2Country library
1578 --disable-upnp do not compile UPnP code
1579 --enable-mmap enable using mapped memory
if supported
1580 --disable-rpath do not hardcode runtime library paths
1581 --disable-nls do not use Native Language Support
1582 --disable-debug disable additional debugging output
1583 --enable-profile enable code profiling
1584 --enable-optimize enable code optimization
1585 --enable-ccache enable ccache support
for fast recompilation
1588 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1589 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1590 --with-kde4-config=PATH kde4-config
script to use
1591 --with-moc=PATH Search
in PATH
for Qt
's meta object compiler
1592 --without-gnu-malloc Don't assume that we use GNU libc compatible
1593 malloc
/realloc when cross-compiling
1594 --with-zlib=PREFIX use zlib
in PREFIX
1595 --with-gdlib-prefix=PREFIX
1596 prefix where gdlib is installed
(optional
)
1597 --with-gdlib-config=CONFIG
1598 gdlib-config
script to use
(optional
)
1599 --with-libpng-prefix=PREFIX
1600 prefix where libpng is installed
(optional
)
1601 --with-libpng-config=CONFIG
1602 libpng-config
script to use
(optional
)
1603 --with-geoip-headers=DIR
1604 GeoIP include files location
1605 --with-geoip-lib=DIR GeoIP library location
1606 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
1607 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
1608 --with-wx-config=CONFIG wx-config
script to use
(optional
)
1609 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
1610 --with-wx-exec-prefix=PREFIX
1611 Exec prefix where wxWidgets is installed
(optional
)
1612 --with-toolkit Build against a specific wxWidgets toolkit
(default
1614 --with-wxshared Force building against a shared build of wxWidgets
,
1615 even
if --disable-shared is given
(default is auto
)
1616 --with-wxdebug Force building against a debug build of wxWidgets
,
1617 even
if --disable-debug is given
(default is auto
)
1618 --with-wxversion Build against a specific version of wxWidgets
1620 --with-libupnp-prefix=PREFIX
1621 UPnP library location
1622 --with-crypto-prefix=PREFIX
1623 prefix where crypto
++ is installed
1624 --with-language=<langs
> Specify a comma-separated list of languages you want
1625 to have installed. See po
/LINGUAS
for available
1627 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1628 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
1629 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1630 --with-included-gettext use the GNU gettext library included here
1631 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1632 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1633 --with-denoise-level=<level
>
1634 Specifies denoising level
(0-4):
1636 4 - Suppress all normal output
1637 (for more information see
1638 src
/utils
/scripts
/denoiser.rules
)
1640 --with-ccache-prefix=PREFIX
1641 prefix where ccache is installed
1643 Some influential environment variables
:
1644 CXX C
++ compiler
command
1645 CXXFLAGS C
++ compiler flags
1646 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1647 nonstandard directory
<lib dir
>
1648 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1649 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1650 you have headers
in a nonstandard directory
<include dir
>
1651 CXXCPP C
++ preprocessor
1652 CC C compiler
command
1653 CFLAGS C compiler flags
1655 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1656 the first program found out of: `bison
-y', `byacc', `yacc'.
1657 YFLAGS The list of arguments that will be passed by default to $YACC.
1658 This script will default YFLAGS to the empty string to avoid a
1659 default value of `-d' given by some make applications.
1660 RC Resource Compiler
1661 RCFLAGS Resource Compiler Flags
1662 PKG_CONFIG path to pkg-config utility
1664 Use these variables to override the choices made by `configure' or to
help
1665 it to
find libraries and programs with nonstandard names
/locations.
1667 Report bugs to
<admin@amule.org
>.
1672 if test "$ac_init_help" = "recursive"; then
1673 # If there are subdirs, report their specific --help.
1674 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1675 test -d "$ac_dir" ||
1676 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1681 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1683 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1684 # A ".." for each directory in $ac_dir_suffix.
1685 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1688 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1691 ac_abs_top_builddir
=$ac_pwd
1692 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1693 # for backward compatibility:
1694 ac_top_builddir
=$ac_top_build_prefix
1697 .
) # We are building in place.
1699 ac_top_srcdir
=$ac_top_builddir_sub
1700 ac_abs_top_srcdir
=$ac_pwd ;;
1701 [\\/]* | ?
:[\\/]* ) # Absolute name.
1702 ac_srcdir
=$srcdir$ac_dir_suffix;
1703 ac_top_srcdir
=$srcdir
1704 ac_abs_top_srcdir
=$srcdir ;;
1706 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1710 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1712 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1719 $SHELL "$ac_srcdir/configure" --help=recursive
1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1723 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1727 test -n "$ac_init_help" && exit $ac_status
1728 if $ac_init_version; then
1731 generated by GNU Autoconf
2.65
1733 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1734 This configure
script is free software
; the Free Software Foundation
1735 gives unlimited permission to copy
, distribute and modify it.
1740 ## ------------------------ ##
1741 ## Autoconf initialization. ##
1742 ## ------------------------ ##
1744 # ac_fn_cxx_try_compile LINENO
1745 # ----------------------------
1746 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_cxx_try_compile
()
1749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1750 rm -f conftest.
$ac_objext
1751 if { { ac_try
="$ac_compile"
1753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_cxx_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_cxx_try_compile
1782 # ac_fn_cxx_try_cpp LINENO
1783 # ------------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_cxx_try_cpp ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1791 *) ac_try_echo
=$ac_try;;
1793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 if test -s conftest.err
; then
1798 grep -v '^ *+' conftest.err
>conftest.er1
1799 cat conftest.er1
>&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } >/dev
/null
&& {
1804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1805 test ! -s conftest.err
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.
$ac_ext >&5
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1815 as_fn_set_status
$ac_retval
1817 } # ac_fn_cxx_try_cpp
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile
()
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 rm -f conftest.
$ac_objext
1826 if { { ac_try
="$ac_compile"
1828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1866 *) ac_try_echo
=$ac_try;;
1868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 if test -s conftest.err
; then
1873 grep -v '^ *+' conftest.err
>conftest.er1
1874 cat conftest.er1
>&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } >/dev
/null
&& {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.
$ac_ext >&5
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1890 as_fn_set_status
$ac_retval
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1900 rm -f conftest.
$ac_objext conftest
$ac_exeext
1901 if { { ac_try
="$ac_link"
1903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_try_run LINENO
1941 # ----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943 # that executables *can* be run.
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_link"
1949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1950 *) ac_try_echo
=$ac_try;;
1952 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1958 { { case "(($ac_try" in
1959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_try") 2>&5
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; }; }; then :
1970 $as_echo "$as_me: program exited with status $ac_status" >&5
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=$ac_status
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 as_fn_set_status $ac_retval
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 ## ------------------------------ ##
2054 ## Report this to admin@amule.org ##
2055 ## ------------------------------ ##
2057 ) | sed "s/^/$as_me: WARNING: /" >&2
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2065 eval "$3=\$ac_header_compiler"
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_mongrel
2075 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists and can be compiled using the include files in
2078 # INCLUDES, setting the cache variable VAR accordingly.
2079 ac_fn_c_check_header_compile ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 } # ac_fn_c_check_header_compile
2106 # ac_fn_cxx_try_run LINENO
2107 # ------------------------
2108 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2109 # that executables *can* be run.
2110 ac_fn_cxx_try_run ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if { { ac_try="$ac_link"
2115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2116 *) ac_try_echo
=$ac_try;;
2118 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_link") 2>&5
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2124 { { case "(($ac_try" in
2125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_try") 2>&5
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; }; }; then :
2136 $as_echo "$as_me: program exited with status $ac_status" >&5
2137 $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 ac_retval=$ac_status
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144 as_fn_set_status $ac_retval
2146 } # ac_fn_cxx_try_run
2148 # ac_fn_cxx_try_link LINENO
2149 # -------------------------
2150 # Try to link conftest.$ac_ext, and return whether this succeeded.
2151 ac_fn_cxx_try_link ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 rm -f conftest.$ac_objext conftest$ac_exeext
2155 if { { ac_try="$ac_link"
2157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2158 *) ac_try_echo
=$ac_try;;
2160 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_link") 2>conftest.err
2164 if test -s conftest.err
; then
2165 grep -v '^ *+' conftest.err
>conftest.er1
2166 cat conftest.er1
>&5
2167 mv -f conftest.er1 conftest.err
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && {
2171 test -z "$ac_cxx_werror_flag" ||
2172 test ! -s conftest.err
2173 } && test -s conftest
$ac_exeext && {
2174 test "$cross_compiling" = yes ||
2175 $as_test_x conftest
$ac_exeext
2179 $as_echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.
$ac_ext >&5
2184 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2185 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2186 # interfere with the next link command; also delete a directory that is
2187 # left behind by Apple's compiler. We do this before executing the actions.
2188 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2190 as_fn_set_status
$ac_retval
2192 } # ac_fn_cxx_try_link
2194 # ac_fn_c_check_func LINENO FUNC VAR
2195 # ----------------------------------
2196 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2197 ac_fn_c_check_func
()
2199 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2203 $as_echo_n "(cached) " >&6
2205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2209 #define $2 innocuous_$2
2211 /* System header to define __stub macros and hopefully few prototypes,
2212 which can conflict with char $2 (); below.
2213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2214 <limits.h> exists even on freestanding compilers. */
2217 # include <limits.h>
2219 # include <assert.h>
2224 /* Override any GCC internal prototype to avoid an error.
2225 Use char because int might match the return type of a GCC
2226 builtin and then its argument prototype would still apply. */
2231 /* The GNU C library defines this for functions which it implements
2232 to always fail with ENOSYS. Some functions are actually named
2233 something starting with __ and the normal name is an alias. */
2234 #if defined __stub_$2 || defined __stub___$2
2246 if ac_fn_c_try_link
"$LINENO"; then :
2251 rm -f core conftest.err conftest.
$ac_objext \
2252 conftest
$ac_exeext conftest.
$ac_ext
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2259 } # ac_fn_c_check_func
2261 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2262 # -------------------------------------------
2263 # Tests whether TYPE exists after having included INCLUDES, setting cache
2264 # variable VAR accordingly.
2265 ac_fn_c_check_type
()
2267 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2286 if ac_fn_c_try_compile
"$LINENO"; then :
2287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2299 if ac_fn_c_try_compile
"$LINENO"; then :
2304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2313 } # ac_fn_c_check_type
2315 # ac_fn_c_check_decl LINENO SYMBOL VAR
2316 # ------------------------------------
2317 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2318 ac_fn_c_check_decl
()
2320 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2322 $as_echo_n "checking whether $2 is declared... " >&6; }
2323 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324 $as_echo_n "(cached) " >&6
2326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2340 if ac_fn_c_try_compile
"$LINENO"; then :
2345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2352 } # ac_fn_c_check_decl
2353 cat >config.log
<<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by aMule $as_me SVN, which was
2358 generated by GNU Autoconf 2.65. Invocation command line was
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir
=.
2394 $as_echo "PATH: $as_dir"
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_must_keep_next
=false
2424 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2425 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2426 |
-silent |
--silent |
--silen |
--sile |
--sil)
2429 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2434 as_fn_append ac_configure_args1
" '$ac_arg'"
2435 if test $ac_must_keep_next = true
; then
2436 ac_must_keep_next
=false
# Got value, back to normal.
2439 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2440 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2441 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2442 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 -* ) ac_must_keep_next
=true
;;
2450 as_fn_append ac_configure_args
" '$ac_arg'"
2455 { ac_configure_args0
=; unset ac_configure_args0
;}
2456 { ac_configure_args1
=; unset ac_configure_args1
;}
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2469 ## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2507 ## ----------------- ##
2508 ## Output variables. ##
2509 ## ----------------- ##
2512 for ac_var in $ac_subst_vars
2514 eval ac_val=\$$ac_var
2516 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -n "$ac_subst_files"; then
2524 ## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##
2529 for ac_var
in $ac_subst_files
2531 eval ac_val
=\$
$ac_var
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 $as_echo "$ac_var='\''$ac_val'\''"
2540 if test -s confdefs.h; then
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 for ac_signal
in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest
* confdefs.h
2566 $as_echo "/* confdefs.h */" > confdefs.h
2568 # Predefined preprocessor variables.
2570 cat >>confdefs.h
<<_ACEOF
2571 #define PACKAGE_NAME "$PACKAGE_NAME"
2574 cat >>confdefs.h
<<_ACEOF
2575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 cat >>confdefs.h
<<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2582 cat >>confdefs.h
<<_ACEOF
2583 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 cat >>confdefs.h
<<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 cat >>confdefs.h
<<_ACEOF
2591 #define PACKAGE_URL "$PACKAGE_URL"
2595 # Let the site file select an alternate cache file if it wants to.
2596 # Prefer an explicitly selected file to automatically selected ones.
2599 if test -n "$CONFIG_SITE"; then
2600 ac_site_file1
=$CONFIG_SITE
2601 elif test "x$prefix" != xNONE
; then
2602 ac_site_file1
=$prefix/share
/config.site
2603 ac_site_file2
=$prefix/etc
/config.site
2605 ac_site_file1
=$ac_default_prefix/share
/config.site
2606 ac_site_file2
=$ac_default_prefix/etc
/config.site
2608 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2610 test "x$ac_site_file" = xNONE
&& continue
2611 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2613 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2614 sed 's/^/| /' "$ac_site_file" >&5
2619 if test -r "$cache_file"; then
2620 # Some versions of bash will fail to source /dev/null (special files
2621 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2622 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2624 $as_echo "$as_me: loading cache $cache_file" >&6;}
2626 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2627 *) .
"./$cache_file";;
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2632 $as_echo "$as_me: creating cache $cache_file" >&6;}
2636 as_fn_append ac_header_list
" stdlib.h"
2637 as_fn_append ac_header_list
" unistd.h"
2638 as_fn_append ac_header_list
" sys/param.h"
2639 # Check that the precious variables saved in the cache have kept the same
2641 ac_cache_corrupted
=false
2642 for ac_var
in $ac_precious_vars; do
2643 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2644 eval ac_new_set
=\
$ac_env_${ac_var}_set
2645 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2646 eval ac_new_val
=\
$ac_env_${ac_var}_value
2647 case $ac_old_set,$ac_new_set in
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651 ac_cache_corrupted
=: ;;
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655 ac_cache_corrupted
=: ;;
2658 if test "x$ac_old_val" != "x$ac_new_val"; then
2659 # differences in whitespace do not lead to failure.
2660 ac_old_val_w
=`echo x $ac_old_val`
2661 ac_new_val_w
=`echo x $ac_new_val`
2662 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665 ac_cache_corrupted
=:
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669 eval $ac_var=\
$ac_old_val
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2672 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2674 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677 # Pass precious variables to config.status.
2678 if test "$ac_new_set" = set; then
2680 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681 *) ac_arg
=$ac_var=$ac_new_val ;;
2683 case " $ac_configure_args " in
2684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2685 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2689 if $ac_cache_corrupted; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2696 ## -------------------- ##
2697 ## Main body of script. ##
2698 ## -------------------- ##
2701 ac_cpp
='$CPP $CPPFLAGS'
2702 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2707 am__api_version
='1.11'
2710 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2711 for ac_t
in install-sh
install.sh shtool
; do
2712 if test -f "$ac_dir/$ac_t"; then
2714 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2719 if test -z "$ac_aux_dir"; then
2720 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2723 # These three variables are undocumented and unsupported,
2724 # and are intended to be withdrawn in a future Autoconf release.
2725 # They can cause serious problems if a builder's source tree is in a directory
2726 # whose full name contains unusual characters.
2727 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2728 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2729 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2732 # Find a good install program. We prefer a C program (faster),
2733 # so one script is as good as another. But avoid the broken or
2734 # incompatible versions:
2735 # SysV /etc/install, /usr/sbin/install
2736 # SunOS /usr/etc/install
2737 # IRIX /sbin/install
2739 # AmigaOS /C/install, which installs bootblocks on floppy discs
2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743 # OS/2's system install, which has a completely different semantic
2744 # ./install, which can be erroneously created by make from ./install.sh.
2745 # Reject install programs that cannot install multiple files.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2748 if test -z "$INSTALL"; then
2749 if test "${ac_cv_path_install+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir
=.
2757 # Account for people who put trailing slashes in PATH elements.
2758 case $as_dir/ in #((
2759 .
/ | .
// |
/[cC
]/* | \
2760 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2761 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2767 for ac_prog
in ginstall scoinst
install; do
2768 for ac_exec_ext
in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2770 if test $ac_prog = install &&
2771 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2774 elif test $ac_prog = install &&
2775 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one
> conftest.one
2781 echo two
> conftest.two
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2784 test -s conftest.one
&& test -s conftest.two
&&
2785 test -s conftest.dir
/conftest.one
&&
2786 test -s conftest.dir
/conftest.two
2788 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2801 rm -rf conftest.one conftest.two conftest.dir
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL
=$ac_cv_path_install
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL
=$ac_install_sh
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815 $as_echo "$INSTALL" >&6; }
2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818 # It thinks the first close brace ends the variable substitution.
2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2823 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826 $as_echo_n "checking whether build environment is sane... " >&6; }
2829 echo timestamp
> conftest.
file
2830 # Reject unsafe characters in $srcdir or the absolute working directory
2831 # name. Accept space and tab only in the latter.
2835 *[\\\"\
#\$\&\'\`$am_lf]*)
2836 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2839 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2840 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2843 # Do `set' in a subshell so we don't clobber the current shell's
2844 # arguments. Must try -L first in case configure is actually a
2845 # symlink; some systems play weird games with the mod time of symlinks
2846 # (eg FreeBSD returns the mod time of the symlink's containing
2849 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2852 set X
`ls -t "$srcdir/configure" conftest.file`
2855 if test "$*" != "X $srcdir/configure conftest.file" \
2856 && test "$*" != "X conftest.file $srcdir/configure"; then
2858 # If neither matched, then we have a broken ls. This can happen
2859 # if, for instance, CONFIG_SHELL is bash and it inherits a
2860 # broken ls alias from the environment. This has actually
2861 # happened. Such a system could not be considered "sane".
2862 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2863 alias in your environment" "$LINENO" 5
2866 test "$2" = conftest.
file
2872 as_fn_error
"newly created file is older than distributed files!
2873 Check your system clock" "$LINENO" 5
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876 $as_echo "yes" >&6; }
2877 test "$program_prefix" != NONE
&&
2878 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2879 # Use a double $ so make ignores it.
2880 test "$program_suffix" != NONE
&&
2881 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2882 # Double any \ or $.
2883 # By default was `s,x,x', remove it if useless.
2884 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2885 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2887 # expand $ac_aux_dir to an absolute path
2888 am_aux_dir
=`cd $ac_aux_dir && pwd`
2890 if test x
"${MISSING+set}" != xset
; then
2893 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2895 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2898 # Use eval to expand $SHELL
2899 if eval "$MISSING --run true"; then
2900 am_missing_run
="$MISSING --run "
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2904 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2907 if test x
"${install_sh}" != xset
; then
2910 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2912 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2916 # Installed binaries are usually stripped using `strip' when the user
2917 # run `make install-strip'. However `strip' might not be the right
2918 # tool to use in cross-compilation environments, therefore Automake
2919 # will honor the `STRIP' environment variable to overrule this program.
2920 if test "$cross_compiling" != no
; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2923 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_STRIP+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$STRIP"; then
2930 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir
=.
2937 for ac_exec_ext
in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 STRIP
=$ac_cv_prog_STRIP
2950 if test -n "$STRIP"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2952 $as_echo "$STRIP" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_STRIP"; then
2962 # Extract the first word of "strip", so it can be a program name with args.
2963 set dummy strip
; ac_word
=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$ac_ct_STRIP"; then
2970 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir
=.
2977 for ac_exec_ext
in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_STRIP
="strip"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2990 if test -n "$ac_ct_STRIP"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2992 $as_echo "$ac_ct_STRIP" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_STRIP" = x
; then
3001 case $cross_compiling:$ac_tool_warned in
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned
=yes ;;
3010 STRIP
="$ac_cv_prog_STRIP"
3014 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3017 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3018 if test -z "$MKDIR_P"; then
3019 if test "${ac_cv_path_mkdir+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3026 test -z "$as_dir" && as_dir
=.
3027 for ac_prog
in mkdir gmkdir
; do
3028 for ac_exec_ext
in '' $ac_executable_extensions; do
3029 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3030 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3031 'mkdir (GNU coreutils) '* | \
3032 'mkdir (coreutils) '* | \
3033 'mkdir (fileutils) '4.1*)
3034 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3044 test -d .
/--version && rmdir .
/--version
3045 if test "${ac_cv_path_mkdir+set}" = set; then
3046 MKDIR_P
="$ac_cv_path_mkdir -p"
3048 # As a last resort, use the slow shell script. Don't cache a
3049 # value for MKDIR_P within a source directory, because that will
3050 # break other packages using the cache if that directory is
3051 # removed, or if the value is a relative name.
3052 MKDIR_P
="$ac_install_sh -d"
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3056 $as_echo "$MKDIR_P" >&6; }
3060 [\\/$
]* | ?
:[\\/]*) ;;
3061 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3064 for ac_prog
in gawk mawk nawk
awk
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy
$ac_prog; ac_word
=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_AWK+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$AWK"; then
3074 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir
=.
3081 for ac_exec_ext
in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_AWK
="$ac_prog"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test -n "$AWK"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3096 $as_echo "$AWK" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$AWK" && break
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3107 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3109 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3110 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3111 $as_echo_n "(cached) " >&6
3113 cat >conftest.
make <<\_ACEOF
3116 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3119 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3121 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3123 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3127 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 SET_MAKE
="MAKE=${MAKE-make}"
3137 rm -rf .tst
2>/dev
/null
3138 mkdir .tst
2>/dev
/null
3139 if test -d .tst
; then
3144 rmdir .tst
2>/dev
/null
3146 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3147 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3148 # is not polluted with repeated "-I."
3149 am__isrc
=' -I$(srcdir)'
3150 # test to see if srcdir already configured
3151 if test -f $srcdir/config.status
; then
3152 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3156 # test whether we have cygpath
3157 if test -z "$CYGPATH_W"; then
3158 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3159 CYGPATH_W
='cygpath -w'
3166 # Define the identity of the package.
3171 cat >>confdefs.h
<<_ACEOF
3172 #define PACKAGE "$PACKAGE"
3176 cat >>confdefs.h
<<_ACEOF
3177 #define VERSION "$VERSION"
3180 # Some tools Automake needs.
3182 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3185 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3188 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3191 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3194 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3196 # We need awk for the "check" target. The system "awk" is bad on
3198 # Always define AMTAR for backward compatibility.
3200 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3202 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3208 # Check whether --enable-silent-rules was given.
3209 if test "${enable_silent_rules+set}" = set; then :
3210 enableval
=$enable_silent_rules;
3213 case $enable_silent_rules in
3214 yes) AM_DEFAULT_VERBOSITY
=0;;
3215 no
) AM_DEFAULT_VERBOSITY
=1;;
3216 *) AM_DEFAULT_VERBOSITY
=1;;
3224 ac_config_headers="$ac_config_headers config.h"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3228 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3229 # Check whether --enable-maintainer-mode was given.
3230 if test "${enable_maintainer_mode+set}" = set; then :
3231 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3233 USE_MAINTAINER_MODE=no
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3237 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3238 if test $USE_MAINTAINER_MODE = yes; then
3239 MAINTAINER_MODE_TRUE=
3240 MAINTAINER_MODE_FALSE='#'
3242 MAINTAINER_MODE_TRUE
='#'
3243 MAINTAINER_MODE_FALSE
=
3246 MAINT
=$MAINTAINER_MODE_TRUE
3250 # Make sure we can run config.sub.
3251 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3252 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3255 $as_echo_n "checking build system type... " >&6; }
3256 if test "${ac_cv_build+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_build_alias
=$build_alias
3260 test "x$ac_build_alias" = x
&&
3261 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3262 test "x$ac_build_alias" = x
&&
3263 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3264 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3265 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3269 $as_echo "$ac_cv_build" >&6; }
3270 case $ac_cv_build in
3272 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3275 ac_save_IFS
=$IFS; IFS
='-'
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3285 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3289 $as_echo_n "checking host system type... " >&6; }
3290 if test "${ac_cv_host+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3293 if test "x$host_alias" = x
; then
3294 ac_cv_host
=$ac_cv_build
3296 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3297 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3302 $as_echo "$ac_cv_host" >&6; }
3305 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3322 case "${host_os}" in
3325 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3326 MULELDFLAGS
="-bind_at_load"
3327 touch src
/Scanner.cpp
3331 LIBS
="$LIBS -L/usr/local/lib"
3332 MULECPPFLAGS
="-D__OPENBSD__"
3334 *cygwin
* |
*mingw32
*)
3336 MULECPPFLAGS
="-DNOMINMAX"
3340 RESOLV_LIB
="-lresolv -lnsl"
3345 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3346 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3347 # Still, we prepend them, instead of adding, so the user may override them.
3348 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
3349 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3353 MULECPPFLAGS
="-D__IRIX__"
3360 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3361 if test ${SYS:-unknown} != win32
; then :
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3364 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3365 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then :
3367 MULELDFLAGS
="$MULELDFLAGS -pthread"
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3373 MULELDFLAGS
="$MULELDFLAGS -lpthread"
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3383 mule_backup_CFLAGS
="$CFLAGS"
3384 mule_backup_CXXFLAGS
="$CXXFLAGS"
3385 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
3387 ac_cpp
='$CXXCPP $CPPFLAGS'
3388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3391 if test -z "$CXX"; then
3392 if test -n "$CCC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_CXX+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$CXX"; then
3406 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir
=.
3413 for ac_exec_ext
in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$CXX"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3428 $as_echo "$CXX" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3435 test -n "$CXX" && break
3438 if test -z "$CXX"; then
3440 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy
$ac_prog; ac_word
=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$ac_ct_CXX"; then
3450 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir
=.
3457 for ac_exec_ext
in '' $ac_executable_extensions; do
3458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3470 if test -n "$ac_ct_CXX"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3472 $as_echo "$ac_ct_CXX" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3479 test -n "$ac_ct_CXX" && break
3482 if test "x$ac_ct_CXX" = x
; then
3485 case $cross_compiling:$ac_tool_warned in
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned
=yes ;;
3497 # Provide some information about the compiler.
3498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3501 for ac_option
in --version -v -V -qversion; do
3502 { { ac_try
="$ac_compiler $ac_option >&5"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511 if test -s conftest.err; then
3513 ... rest of stderr output deleted ...
3514 10q' conftest.err >conftest.er1
3515 cat conftest.er1 >&5
3517 rm -f conftest.er1 conftest.err
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 ac_clean_files_save=$ac_clean_files
3534 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3535 # Try to create an executable without -o first, disregard a.out.
3536 # It will help us diagnose broken compilers, and finding out an intuition
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3539 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3540 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3542 # The possible output files:
3543 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3546 for ac_file in $ac_files
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3555 if { { ac_try="$ac_link_default"
3557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3558 *) ac_try_echo
=$ac_try;;
3560 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link_default") 2>&5
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3567 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3568 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3569 # so that the user can short-circuit this test for compilers unknown to
3571 for ac_file
in $ac_files ''
3573 test -f "$ac_file" ||
continue
3575 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3578 # We found the default executable, but exeext='' is most
3582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3584 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3586 # We set ac_cv_exeext here because the later test for it is not
3587 # safe: cross compilers may not add the suffix if given an `-o'
3588 # argument, so we may need to know it at that point already.
3589 # Even if this section looks crufty: it has the advantage of
3596 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3601 if test -z "$ac_file"; then :
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 { as_fn_set_status
77
3610 as_fn_error
"C++ compiler cannot create executables
3611 See \`config.log' for more details." "$LINENO" 5; }; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3617 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3619 $as_echo "$ac_file" >&6; }
3620 ac_exeext
=$ac_cv_exeext
3622 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3623 ac_clean_files
=$ac_clean_files_save
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625 $as_echo_n "checking for suffix of executables... " >&6; }
3626 if { { ac_try
="$ac_link"
3628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3638 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe'), while it won't with
3641 for ac_file
in conftest.exe conftest conftest.
*; do
3642 test -f "$ac_file" ||
continue
3644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3645 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details." "$LINENO" 5; }
3656 rm -f conftest conftest
$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658 $as_echo "$ac_cv_exeext" >&6; }
3660 rm -f conftest.
$ac_ext
3661 EXEEXT
=$ac_cv_exeext
3663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3669 FILE *f = fopen ("conftest.out", "w");
3670 return ferror (f) || fclose (f) != 0;
3676 ac_clean_files
="$ac_clean_files conftest.out"
3677 # Check that the compiler produces executables we can run. If not, either
3678 # the compiler is broken, or we cross compile.
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680 $as_echo_n "checking whether we are cross compiling... " >&6; }
3681 if test "$cross_compiling" != yes; then
3682 { { ac_try
="$ac_link"
3684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }
3693 if { ac_try='./conftest$ac_cv_exeext'
3694 { { case "(($ac_try" in
3695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3696 *) ac_try_echo
=$ac_try;;
3698 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_try") 2>&5
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; }; then
3706 if test "$cross_compiling" = maybe
; then
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error
"cannot run C++ compiled programs.
3712 If you meant to cross compile, use \`--host'.
3713 See \`config.log' for more details." "$LINENO" 5; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3718 $as_echo "$cross_compiling" >&6; }
3720 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3721 ac_clean_files
=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try
="$ac_compile"
3741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error "cannot compute suffix of object files
: cannot compile
3765 See \
`config.log' for more details." "$LINENO" 5; }
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3792 if ac_fn_cxx_try_compile "$LINENO"; then :
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3802 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3808 ac_test_CXXFLAGS=${CXXFLAGS+set}
3809 ac_save_CXXFLAGS=$CXXFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3811 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3812 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3816 ac_cxx_werror_flag=yes
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 if ac_fn_cxx_try_compile "$LINENO"; then :
3831 ac_cv_prog_cxx_g=yes
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3845 if ac_fn_cxx_try_compile "$LINENO"; then :
3848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 if ac_fn_cxx_try_compile "$LINENO"; then :
3862 ac_cv_prog_cxx_g=yes
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3872 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3873 if test "$ac_test_CXXFLAGS" = set; then
3874 CXXFLAGS=$ac_save_CXXFLAGS
3875 elif test $ac_cv_prog_cxx_g = yes; then
3876 if test "$GXX" = yes; then
3882 if test "$GXX" = yes; then
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893 DEPDIR="${am__leading_dot}deps"
3895 ac_config_commands="$ac_config_commands depfiles"
3898 am_make=${MAKE-make}
3899 cat > confinc << 'END'
3901 @echo this is the am__doit target
3904 # If we don't find an include directive, just comment out the code.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3906 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3910 # First try GNU make style include.
3911 echo "include confinc" > confmf
3912 # Ignore all kinds of additional output from `make'.
3913 case `$am_make -s -f confmf 2> /dev/null` in #(
3914 *the\ am__doit\ target*)
3920 # Now try BSD make style include.
3921 if test "$am__include" = "#"; then
3922 echo '.include
"confinc"' > confmf
3923 case `$am_make -s -f confmf 2> /dev/null` in #(
3924 *the\ am__doit\ target*)
3925 am__include=.include
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3934 $as_echo "$_am_result" >&6; }
3935 rm -f confinc confmf
3937 # Check whether --enable-dependency-tracking was given.
3938 if test "${enable_dependency_tracking+set}" = set; then :
3939 enableval=$enable_dependency_tracking;
3942 if test "x$enable_dependency_tracking" != xno; then
3943 am_depcomp="$ac_aux_dir/depcomp"
3946 if test "x$enable_dependency_tracking" != xno
; then
3956 depcc
="$CXX" am_compiler_list
=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3959 $as_echo_n "checking dependency style of $depcc... " >&6; }
3960 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964 # We make a subdir and do the tests there. Otherwise we can end up
3965 # making bogus files that we don't know about and never remove. For
3966 # instance it was reported that on HP-UX the gcc test will end up
3967 # making a dummy file named `D' -- because `-MD' means `put the output
3970 # Copy depcomp to subdir because otherwise we won't find it if we're
3971 # using a relative directory.
3972 cp "$am_depcomp" conftest.dir
3974 # We will build objects and dependencies in a subdirectory because
3975 # it helps to detect inapplicable dependency modes. For instance
3976 # both Tru64's cc and ICC support -MD to output dependencies as a
3977 # side effect of compilation, but ICC will put the dependencies in
3978 # the current directory while Tru64 will put them in the object
3982 am_cv_CXX_dependencies_compiler_type
=none
3983 if test "$am_compiler_list" = ""; then
3984 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3987 case " $depcc " in #(
3988 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
3991 for depmode
in $am_compiler_list; do
3992 # Setup a source with many dependencies, because some compilers
3993 # like to wrap large dependency lists on column 80 (with \), and
3994 # we should not choose a depcomp mode which is confused by this.
3996 # We need to recreate these files for each test, as the compiler may
3997 # overwrite some of them when testing with obscure command lines.
3998 # This happens at least with the AIX C compiler.
4000 for i
in 1 2 3 4 5 6; do
4001 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4002 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4003 # Solaris 8's {/usr,}/bin/sh.
4004 touch sub
/conftst
$i.h
4006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4009 # mode. It turns out that the SunPro C++ compiler does not properly
4010 # handle `-M -o', and we need to detect this. Also, some Intel
4011 # versions had trouble with output in subdirs
4012 am__obj
=sub
/conftest.
${OBJEXT-o}
4013 am__minus_obj
="-o $am__obj"
4016 # This depmode causes a compiler race in universal mode.
4017 test "$am__universal" = false ||
continue
4020 # after this tag, mechanisms are not by side-effect, so they'll
4021 # only be used when explicitly requested
4022 if test "x$enable_dependency_tracking" = xyes
; then
4028 msvisualcpp | msvcmsys
)
4029 # This compiler won't grok `-c -o', but also, the minuso test has
4030 # not run yet. These depmodes are late enough in the game, and
4031 # so weak that their functioning should not be impacted.
4032 am__obj
=conftest.
${OBJEXT-o}
4037 if depmode
=$depmode \
4038 source=sub
/conftest.c object
=$am__obj \
4039 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4040 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4041 >/dev
/null
2>conftest.err
&&
4042 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4043 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4044 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4045 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4046 # icc doesn't choke on unknown options, it will just issue warnings
4047 # or remarks (even with -Werror). So we grep stderr for any message
4048 # that says an option was ignored or not supported.
4049 # When given -MP, icc 7.0 and 7.1 complain thusly:
4050 # icc: Command line warning: ignoring option '-M'; no argument required
4051 # The diagnosis changed in icc 8.0:
4052 # icc: Command line remark: option '-MP' not supported
4053 if (grep 'ignoring option' conftest.err ||
4054 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4055 am_cv_CXX_dependencies_compiler_type
=$depmode
4064 am_cv_CXX_dependencies_compiler_type
=none
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4069 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4070 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4073 test "x$enable_dependency_tracking" != xno \
4074 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4075 am__fastdepCXX_TRUE
=
4076 am__fastdepCXX_FALSE
='#'
4078 am__fastdepCXX_TRUE
='#'
4079 am__fastdepCXX_FALSE
=
4084 ac_cpp
='$CXXCPP $CPPFLAGS'
4085 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4089 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4090 if test -z "$CXXCPP"; then
4091 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4094 # Double quotes because CXXCPP needs to be expanded
4095 for CXXCPP
in "$CXX -E" "/lib/cpp"
4098 for ac_cxx_preproc_warn_flag
in '' yes
4100 # Use a header file that comes with gcc, so configuring glibc
4101 # with a fresh cross-compiler works.
4102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4103 # <limits.h> exists even on freestanding compilers.
4104 # On the NeXT, cc -E runs the code through the compiler's parser,
4105 # not just through cpp. "Syntax error" is here to catch this case.
4106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4109 # include <limits.h>
4111 # include <assert.h>
4115 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4118 # Broken: fails on valid input.
4121 rm -f conftest.err conftest.
$ac_ext
4123 # OK, works on sane cases. Now check whether nonexistent headers
4124 # can be detected and how.
4125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4129 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4130 # Broken: success on invalid input.
4133 # Passes both tests.
4137 rm -f conftest.err conftest.
$ac_ext
4140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141 rm -f conftest.err conftest.
$ac_ext
4142 if $ac_preproc_ok; then :
4147 ac_cv_prog_CXXCPP
=$CXXCPP
4150 CXXCPP
=$ac_cv_prog_CXXCPP
4152 ac_cv_prog_CXXCPP
=$CXXCPP
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4155 $as_echo "$CXXCPP" >&6; }
4157 for ac_cxx_preproc_warn_flag
in '' yes
4159 # Use a header file that comes with gcc, so configuring glibc
4160 # with a fresh cross-compiler works.
4161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162 # <limits.h> exists even on freestanding compilers.
4163 # On the NeXT, cc -E runs the code through the compiler's parser,
4164 # not just through cpp. "Syntax error" is here to catch this case.
4165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4168 # include <limits.h>
4170 # include <assert.h>
4174 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4177 # Broken: fails on valid input.
4180 rm -f conftest.err conftest.
$ac_ext
4182 # OK, works on sane cases. Now check whether nonexistent headers
4183 # can be detected and how.
4184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <ac_nonexistent.h>
4188 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4189 # Broken: success on invalid input.
4192 # Passes both tests.
4196 rm -f conftest.err conftest.
$ac_ext
4199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4200 rm -f conftest.err conftest.
$ac_ext
4201 if $ac_preproc_ok; then :
4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
4207 See \`config.log' for more details." "$LINENO" 5; }
4211 ac_cpp
='$CPP $CPPFLAGS'
4212 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4217 ac_cpp
='$CPP $CPPFLAGS'
4218 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4223 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if test "${ac_cv_prog_CC+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC
="$CC" # Let the user override the test.
4232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir
=.
4237 for ac_exec_ext
in '' $ac_executable_extensions; do
4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 if test -n "$CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252 $as_echo "$CC" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4260 if test -z "$ac_cv_prog_CC"; then
4262 # Extract the first word of "gcc", so it can be a program name with args.
4263 set dummy gcc
; ac_word
=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC
="gcc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4298 if test "x$ac_ct_CC" = x
; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned
=yes ;;
4313 if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_CC+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC
="$CC" # Let the user override the test.
4325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir
=.
4330 for ac_exec_ext
in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 if test -n "$CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4354 if test -z "$CC"; then
4355 # Extract the first word of "cc", so it can be a program name with args.
4356 set dummy cc
; ac_word
=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_CC+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC
="$CC" # Let the user override the test.
4366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir
=.
4371 for ac_exec_ext
in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4374 ac_prog_rejected
=yes
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 if test $ac_prog_rejected = yes; then
4386 # We found a bogon in the path, so make sure we never use it.
4387 set dummy
$ac_cv_prog_CC
4389 if test $# != 0; then
4390 # We chose a different compiler from the bogus one.
4391 # However, it has the same basename, so the bogon will be chosen
4392 # first if we set CC to just the basename; use the full file name.
4394 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4400 if test -n "$CC"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4410 if test -z "$CC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog
in cl.exe
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_CC+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC
="$CC" # Let the user override the test.
4424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir
=.
4429 for ac_exec_ext
in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CC" && break
4454 if test -z "$CC"; then
4456 for ac_prog
in cl.exe
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy
$ac_prog; ac_word
=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir
=.
4473 for ac_exec_ext
in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC
="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 $as_echo "$ac_ct_CC" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CC" && break
4498 if test "x$ac_ct_CC" = x
; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned
=yes ;;
4514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error
"no acceptable C compiler found in \$PATH
4517 See \`config.log' for more details." "$LINENO" 5; }
4519 # Provide some information about the compiler.
4520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4523 for ac_option
in --version -v -V -qversion; do
4524 { { ac_try
="$ac_compiler $ac_option >&5"
4526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4533 if test -s conftest.err; then
4535 ... rest of stderr output deleted ...
4536 10q' conftest.err >conftest.er1
4537 cat conftest.er1 >&5
4539 rm -f conftest.er1 conftest.err
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4546 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4563 if ac_fn_c_try_compile "$LINENO"; then :
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4574 if test $ac_compiler_gnu = yes; then
4579 ac_test_CFLAGS=${CFLAGS+set}
4580 ac_save_CFLAGS=$CFLAGS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4583 if test "${ac_cv_prog_cc_g+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4586 ac_save_c_werror_flag=$ac_c_werror_flag
4587 ac_c_werror_flag=yes
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4601 if ac_fn_c_try_compile "$LINENO"; then :
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4616 if ac_fn_c_try_compile "$LINENO"; then :
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4632 if ac_fn_c_try_compile "$LINENO"; then :
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4643 $as_echo "$ac_cv_prog_cc_g" >&6; }
4644 if test "$ac_test_CFLAGS" = set; then
4645 CFLAGS=$ac_save_CFLAGS
4646 elif test $ac_cv_prog_cc_g = yes; then
4647 if test "$GCC" = yes; then
4653 if test "$GCC" = yes; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4661 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4664 ac_cv_prog_cc_c89=no
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/stat.h>
4672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673 struct buf { int x; };
4674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675 static char *e (p, i)
4681 static char *f (char * (*g) (char **, int), char **p, ...)
4686 s = g (p, va_arg (v,int));
4691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
4694 as 'x'. The following induces an error, until -std is added to get
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
4697 that's true only with -std. */
4698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705 int test (int i, double x);
4706 struct s1 {int (*f) (int a);};
4707 struct s2 {int (*f) (double a);};
4708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 CC="$ac_save_CC $ac_arg"
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_c89=$ac_arg
4726 rm -f core conftest.err conftest.$ac_objext
4727 test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 rm -f conftest.$ac_ext
4734 case "x$ac_cv_prog_cc_c89" in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4737 $as_echo "none needed" >&6; } ;;
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4740 $as_echo "unsupported" >&6; } ;;
4742 CC="$CC $ac_cv_prog_cc_c89"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746 if test "x$ac_cv_prog_cc_c89" != xno; then :
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756 depcc="$CC" am_compiler_list=
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4759 $as_echo_n "checking dependency style of $depcc... " >&6; }
4760 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4764 # We make a subdir and do the tests there. Otherwise we can end up
4765 # making bogus files that we don't know about and never remove. For
4766 # instance it was reported that on HP-UX the gcc test will end up
4767 # making a dummy file named `D
' -- because `-MD' means
`put the output
4770 # Copy depcomp to subdir because otherwise we won't find it if we're
4771 # using a relative directory.
4772 cp "$am_depcomp" conftest.dir
4774 # We will build objects and dependencies in a subdirectory because
4775 # it helps to detect inapplicable dependency modes. For instance
4776 # both Tru64's cc and ICC support -MD to output dependencies as a
4777 # side effect of compilation, but ICC will put the dependencies in
4778 # the current directory while Tru64 will put them in the object
4782 am_cv_CC_dependencies_compiler_type=none
4783 if test "$am_compiler_list" = ""; then
4784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4787 case " $depcc " in #(
4788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791 for depmode in $am_compiler_list; do
4792 # Setup a source with many dependencies, because some compilers
4793 # like to wrap large dependency lists on column 80 (with \), and
4794 # we should not choose a depcomp mode which is confused by this.
4796 # We need to recreate these files for each test, as the compiler may
4797 # overwrite some of them when testing with obscure command lines.
4798 # This happens at least with the AIX C compiler.
4800 for i in 1 2 3 4 5 6; do
4801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4802 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4803 # Solaris 8's
{/usr
,}/bin
/sh.
4804 touch sub
/conftst
$i.h
4806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4809 # mode. It turns out that the SunPro C++ compiler does not properly
4810 # handle `-M -o', and we need to detect this. Also, some Intel
4811 # versions had trouble with output in subdirs
4812 am__obj
=sub
/conftest.
${OBJEXT-o}
4813 am__minus_obj
="-o $am__obj"
4816 # This depmode causes a compiler race in universal mode.
4817 test "$am__universal" = false ||
continue
4820 # after this tag, mechanisms are not by side-effect, so they'll
4821 # only be used when explicitly requested
4822 if test "x$enable_dependency_tracking" = xyes
; then
4828 msvisualcpp | msvcmsys
)
4829 # This compiler won't grok `-c -o', but also, the minuso test has
4830 # not run yet. These depmodes are late enough in the game, and
4831 # so weak that their functioning should not be impacted.
4832 am__obj
=conftest.
${OBJEXT-o}
4837 if depmode
=$depmode \
4838 source=sub
/conftest.c object
=$am__obj \
4839 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4840 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4841 >/dev
/null
2>conftest.err
&&
4842 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4843 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4844 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4845 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4846 # icc doesn't choke on unknown options, it will just issue warnings
4847 # or remarks (even with -Werror). So we grep stderr for any message
4848 # that says an option was ignored or not supported.
4849 # When given -MP, icc 7.0 and 7.1 complain thusly:
4850 # icc: Command line warning: ignoring option '-M'; no argument required
4851 # The diagnosis changed in icc 8.0:
4852 # icc: Command line remark: option '-MP' not supported
4853 if (grep 'ignoring option' conftest.err ||
4854 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4855 am_cv_CC_dependencies_compiler_type
=$depmode
4864 am_cv_CC_dependencies_compiler_type
=none
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4870 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4873 test "x$enable_dependency_tracking" != xno \
4874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4876 am__fastdepCC_FALSE
='#'
4878 am__fastdepCC_TRUE
='#'
4879 am__fastdepCC_FALSE
=
4884 ac_cpp
='$CPP $CPPFLAGS'
4885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4890 # On Suns, sometimes $CPP names a directory.
4891 if test -n "$CPP" && test -d "$CPP"; then
4894 if test -z "$CPP"; then
4895 if test "${ac_cv_prog_CPP+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 # Double quotes because CPP needs to be expanded
4899 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4902 for ac_c_preproc_warn_flag
in '' yes
4904 # Use a header file that comes with gcc, so configuring glibc
4905 # with a fresh cross-compiler works.
4906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4907 # <limits.h> exists even on freestanding compilers.
4908 # On the NeXT, cc -E runs the code through the compiler's parser,
4909 # not just through cpp. "Syntax error" is here to catch this case.
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4913 # include <limits.h>
4915 # include <assert.h>
4919 if ac_fn_c_try_cpp
"$LINENO"; then :
4922 # Broken: fails on valid input.
4925 rm -f conftest.err conftest.
$ac_ext
4927 # OK, works on sane cases. Now check whether nonexistent headers
4928 # can be detected and how.
4929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <ac_nonexistent.h>
4933 if ac_fn_c_try_cpp
"$LINENO"; then :
4934 # Broken: success on invalid input.
4937 # Passes both tests.
4941 rm -f conftest.err conftest.
$ac_ext
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.
$ac_ext
4946 if $ac_preproc_ok; then :
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4959 $as_echo "$CPP" >&6; }
4961 for ac_c_preproc_warn_flag
in '' yes
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # include <limits.h>
4974 # include <assert.h>
4978 if ac_fn_c_try_cpp
"$LINENO"; then :
4981 # Broken: fails on valid input.
4984 rm -f conftest.err conftest.
$ac_ext
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4992 if ac_fn_c_try_cpp
"$LINENO"; then :
4993 # Broken: success on invalid input.
4996 # Passes both tests.
5000 rm -f conftest.err conftest.
$ac_ext
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.
$ac_ext
5005 if $ac_preproc_ok; then :
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5011 See \`config.log' for more details." "$LINENO" 5; }
5015 ac_cpp
='$CPP $CPPFLAGS'
5016 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5021 test -n "$build_alias" && ac_build_prefix
=$build_alias-
5023 if test "$cross_compiling" = yes; then :
5025 # Even if we're cross-compiling, we want a compiler here
5026 # that is not a cross-compiler.
5027 saved_cross
=$cross_compiling
5031 ac_cpp
='$CPP $BUILD_CPPFLAGS'
5032 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5035 if test -n "$ac_build_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5037 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5043 if test -n "$BUILD_CC"; then
5044 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 BUILD_CC
=$ac_cv_prog_BUILD_CC
5064 if test -n "$BUILD_CC"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5066 $as_echo "$BUILD_CC" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5074 if test -z "$ac_cv_prog_BUILD_CC"; then
5075 ac_ct_BUILD_CC
=$BUILD_CC
5076 # Extract the first word of "gcc", so it can be a program name with args.
5077 set dummy gcc
; ac_word
=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -n "$ac_ct_BUILD_CC"; then
5084 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir
=.
5091 for ac_exec_ext
in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5104 if test -n "$ac_ct_BUILD_CC"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5106 $as_echo "$ac_ct_BUILD_CC" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5112 if test "x$ac_ct_BUILD_CC" = x
; then
5115 case $cross_compiling:$ac_tool_warned in
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned
=yes ;;
5121 BUILD_CC
=$ac_ct_BUILD_CC
5124 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5127 if test -z "$BUILD_CC"; then
5128 if test -n "$ac_build_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5130 set dummy
${ac_build_prefix}cc
; ac_word
=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5136 if test -n "$BUILD_CC"; then
5137 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir
=.
5144 for ac_exec_ext
in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 BUILD_CC
=$ac_cv_prog_BUILD_CC
5157 if test -n "$BUILD_CC"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5159 $as_echo "$BUILD_CC" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_prog_BUILD_CC"; then
5168 ac_ct_BUILD_CC
=$BUILD_CC
5169 # Extract the first word of "cc", so it can be a program name with args.
5170 set dummy cc
; ac_word
=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$ac_ct_BUILD_CC"; then
5177 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir
=.
5184 for ac_exec_ext
in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_BUILD_CC
="cc"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5197 if test -n "$ac_ct_BUILD_CC"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5199 $as_echo "$ac_ct_BUILD_CC" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_ct_BUILD_CC" = x
; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned
=yes ;;
5214 BUILD_CC
=$ac_ct_BUILD_CC
5217 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5221 if test -z "$BUILD_CC"; then
5222 # Extract the first word of "cc", so it can be a program name with args.
5223 set dummy cc
; ac_word
=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 if test -n "$BUILD_CC"; then
5230 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir
=.
5238 for ac_exec_ext
in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5241 ac_prog_rejected
=yes
5244 ac_cv_prog_BUILD_CC
="cc"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test $ac_prog_rejected = yes; then
5253 # We found a bogon in the path, so make sure we never use it.
5254 set dummy
$ac_cv_prog_BUILD_CC
5256 if test $# != 0; then
5257 # We chose a different compiler from the bogus one.
5258 # However, it has the same basename, so the bogon will be chosen
5259 # first if we set BUILD_CC to just the basename; use the full file name.
5261 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
5266 BUILD_CC
=$ac_cv_prog_BUILD_CC
5267 if test -n "$BUILD_CC"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5269 $as_echo "$BUILD_CC" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5277 if test -z "$BUILD_CC"; then
5278 if test -n "$ac_build_prefix"; then
5281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5282 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$BUILD_CC"; then
5289 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir
=.
5296 for ac_exec_ext
in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 BUILD_CC
=$ac_cv_prog_BUILD_CC
5309 if test -n "$BUILD_CC"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5311 $as_echo "$BUILD_CC" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 test -n "$BUILD_CC" && break
5321 if test -z "$BUILD_CC"; then
5322 ac_ct_BUILD_CC
=$BUILD_CC
5325 # Extract the first word of "$ac_prog", so it can be a program name with args.
5326 set dummy
$ac_prog; ac_word
=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5332 if test -n "$ac_ct_BUILD_CC"; then
5333 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir
=.
5340 for ac_exec_ext
in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5353 if test -n "$ac_ct_BUILD_CC"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5355 $as_echo "$ac_ct_BUILD_CC" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 test -n "$ac_ct_BUILD_CC" && break
5365 if test "x$ac_ct_BUILD_CC" = x
; then
5368 case $cross_compiling:$ac_tool_warned in
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned
=yes ;;
5374 BUILD_CC
=$ac_ct_BUILD_CC
5381 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5383 as_fn_error
"no acceptable C compiler found in \$PATH
5384 See \`config.log' for more details." "$LINENO" 5; }
5386 # Provide some information about the compiler.
5387 echo "$as_me:$LINENO:" \
5388 "checking for C compiler version" >&5
5389 ac_compiler
=`set X $ac_compile; echo $2`
5390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5391 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5394 test $ac_status = 0; }
5395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5396 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5401 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5417 ac_clean_files_save
=$ac_clean_files
5418 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5419 # Try to create an executable without -o first, disregard a.out.
5420 # It will help us diagnose broken compilers, and finding out an intuition
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5423 $as_echo_n "checking whether the C compiler works... " >&6; }
5424 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5426 # The possible output files:
5427 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5430 for ac_file
in $ac_files
5433 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5434 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
5439 if { { ac_try
="$ac_link_default"
5441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5445 $as_echo "$ac_try_echo"; } >&5
5446 (eval "$ac_link_default") 2>&5
5448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5449 test $ac_status = 0; }; then :
5450 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
5451 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
5452 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5453 # so that the user can short-circuit this test for compilers unknown to
5455 for ac_file in $ac_files ''
5457 test -f "$ac_file" || continue
5459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5462 # We found the default executable, but exeext='' is most
5466 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5468 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5470 # We set ac_cv_exeext here because the later test for it is not
5471 # safe: cross compilers may not add the suffix if given an `-o'
5472 # argument, so we may need to know it at that point already.
5473 # Even if this section looks crufty: it has the advantage of
5480 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5485 if test -z "$ac_file"; then :
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 $as_echo "$as_me: failed program was:" >&5
5489 sed 's
/^
/|
/' conftest.$ac_ext >&5
5491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5492 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5493 { as_fn_set_status 77
5494 as_fn_error "C compiler cannot create executables
5495 See \`config.log
' for more details." "$LINENO" 5; }; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5501 $as_echo_n "checking for C compiler default output file name... " >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5503 $as_echo "$ac_file" >&6; }
5504 ac_build_exeext=$ac_cv_build_exeext
5506 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5507 ac_clean_files=$ac_clean_files_save
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5509 $as_echo_n "checking for suffix of executables... " >&6; }
5510 if { { ac_try="$ac_link"
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5516 $as_echo "$ac_try_echo"; } >&5
5517 (eval "$ac_link") 2>&5
5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520 test $ac_status = 0; }; then :
5521 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
5522 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
5523 # work properly (i.e., refer to `conftest.exe
'), while it won't with
5525 for ac_file
in conftest.exe conftest conftest.
*; do
5526 test -f "$ac_file" ||
continue
5528 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5529 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5537 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5538 See \`config.log' for more details." "$LINENO" 5; }
5540 rm -f conftest conftest
$ac_cv_build_exeext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5542 $as_echo "$ac_cv_build_exeext" >&6; }
5544 rm -f conftest.
$ac_ext
5545 BUILD_EXEEXT
=$ac_cv_build_exeext
5546 ac_build_exeext
=$BUILD_EXEEXT
5547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5553 FILE *f = fopen ("conftest.out", "w");
5554 return ferror (f) || fclose (f) != 0;
5560 ac_clean_files
="$ac_clean_files conftest.out"
5561 # Check that the compiler produces executables we can run. If not, either
5562 # the compiler is broken, or we cross compile.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5564 $as_echo_n "checking whether we are cross compiling... " >&6; }
5565 if test "$cross_compiling" != yes; then
5566 { { ac_try
="$ac_link"
5568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573 (eval "$ac_link") 2>&5
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }
5577 if { ac_try='./conftest$ac_cv_build_exeext'
5578 { { case "(($ac_try" in
5579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5580 *) ac_try_echo
=$ac_try;;
5582 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5583 $as_echo "$ac_try_echo"; } >&5
5584 (eval "$ac_try") 2>&5
5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587 test $ac_status = 0; }; }; then
5590 if test "$cross_compiling" = maybe
; then
5593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5595 as_fn_error
"cannot run C compiled programs.
5596 If you meant to cross compile, use \`--host'.
5597 See \`config.log' for more details." "$LINENO" 5; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5602 $as_echo "$cross_compiling" >&6; }
5604 rm -f conftest.
$ac_ext conftest
$ac_cv_build_exeext conftest.out
5605 ac_clean_files
=$ac_clean_files_save
5608 # Restore configuration environment
5609 cross_compiling
=$saved_cross
5612 ac_cpp
='$CPP $CPPFLAGS'
5613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5618 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
5620 CFLAGS
="$mule_backup_CFLAGS"
5621 CXXFLAGS
="$mule_backup_CXXFLAGS"
5622 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
5623 for ac_prog
in gawk mawk nawk
awk
5625 # Extract the first word of "$ac_prog", so it can be a program name with args.
5626 set dummy
$ac_prog; ac_word
=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_AWK+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 if test -n "$AWK"; then
5633 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir
=.
5640 for ac_exec_ext
in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_AWK
="$ac_prog"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 if test -n "$AWK"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5655 $as_echo "$AWK" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5662 test -n "$AWK" && break
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5666 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5667 if test "${ac_cv_path_GREP+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 if test -z "$GREP"; then
5671 ac_path_GREP_found
=false
5672 # Loop through the user's path and test for each of PROGNAME-LIST
5673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5674 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5677 test -z "$as_dir" && as_dir
=.
5678 for ac_prog
in grep ggrep
; do
5679 for ac_exec_ext
in '' $ac_executable_extensions; do
5680 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5681 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5682 # Check for GNU ac_path_GREP and select it if it is found.
5683 # Check for GNU $ac_path_GREP
5684 case `"$ac_path_GREP" --version 2>&1` in
5686 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5689 $as_echo_n 0123456789 >"conftest.in"
5692 cat "conftest.in" "conftest.in" >"conftest.tmp"
5693 mv "conftest.tmp" "conftest.in"
5694 cp "conftest.in" "conftest.nl"
5695 $as_echo 'GREP' >> "conftest.nl"
5696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5697 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5698 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5700 # Best one so far, save it but keep looking for a better one
5701 ac_cv_path_GREP
="$ac_path_GREP"
5702 ac_path_GREP_max
=$ac_count
5704 # 10*(2^10) chars as input seems more than enough
5705 test $ac_count -gt 10 && break
5707 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5710 $ac_path_GREP_found && break 3
5715 if test -z "$ac_cv_path_GREP"; then
5716 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5719 ac_cv_path_GREP
=$GREP
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5724 $as_echo "$ac_cv_path_GREP" >&6; }
5725 GREP
="$ac_cv_path_GREP"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5729 $as_echo_n "checking for egrep... " >&6; }
5730 if test "${ac_cv_path_EGREP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5734 then ac_cv_path_EGREP
="$GREP -E"
5736 if test -z "$EGREP"; then
5737 ac_path_EGREP_found
=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5740 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5743 test -z "$as_dir" && as_dir
=.
5744 for ac_prog
in egrep; do
5745 for ac_exec_ext
in '' $ac_executable_extensions; do
5746 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5747 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5748 # Check for GNU ac_path_EGREP and select it if it is found.
5749 # Check for GNU $ac_path_EGREP
5750 case `"$ac_path_EGREP" --version 2>&1` in
5752 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5755 $as_echo_n 0123456789 >"conftest.in"
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 $as_echo 'EGREP' >> "conftest.nl"
5762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5763 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5764 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_EGREP
="$ac_path_EGREP"
5768 ac_path_EGREP_max
=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5773 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5776 $ac_path_EGREP_found && break 3
5781 if test -z "$ac_cv_path_EGREP"; then
5782 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5785 ac_cv_path_EGREP
=$EGREP
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5791 $as_echo "$ac_cv_path_EGREP" >&6; }
5792 EGREP
="$ac_cv_path_EGREP"
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5798 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5799 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5800 $as_echo_n "(cached) " >&6
5802 cat >conftest.
make <<\_ACEOF
5805 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5810 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5812 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5816 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5818 $as_echo "yes" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 SET_MAKE
="MAKE=${MAKE-make}"
5827 for ac_prog
in flex
lex
5829 # Extract the first word of "$ac_prog", so it can be a program name with args.
5830 set dummy
$ac_prog; ac_word
=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_LEX+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$LEX"; then
5837 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
5839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir
=.
5844 for ac_exec_ext
in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_LEX
="$ac_prog"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 if test -n "$LEX"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5859 $as_echo "$LEX" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5866 test -n "$LEX" && break
5868 test -n "$LEX" || LEX
=":"
5870 if test "x$LEX" != "x:"; then
5871 cat >conftest.l
<<_ACEOF
5877 e { yyless (input () != 0); }
5878 f { unput (yytext[0]); }
5879 . { BEGIN INITIAL; }
5881 #ifdef YYTEXT_POINTER
5882 extern char *yytext;
5887 return ! yylex () + ! yywrap ();
5890 { { ac_try
="$LEX conftest.l"
5892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5896 $as_echo "$ac_try_echo"; } >&5
5897 (eval "$LEX conftest.l") 2>&5
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5902 $as_echo_n "checking lex output file root... " >&6; }
5903 if test "${ac_cv_prog_lex_root+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5907 if test -f lex.yy.c; then
5908 ac_cv_prog_lex_root=lex.yy
5909 elif test -f lexyy.c; then
5910 ac_cv_prog_lex_root=lexyy
5912 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5916 $as_echo "$ac_cv_prog_lex_root" >&6; }
5917 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5919 if test -z "${LEXLIB+set}"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5921 $as_echo_n "checking lex library... " >&6; }
5922 if test "${ac_cv_lib_lex+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5927 ac_cv_lib_lex='none needed'
5928 for ac_lib in '' -lfl -ll; do
5929 LIBS="$ac_lib $ac_save_LIBS"
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 `cat $LEX_OUTPUT_ROOT.c
`
5934 if ac_fn_c_try_link "$LINENO"; then :
5935 ac_cv_lib_lex=$ac_lib
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 test "$ac_cv_lib_lex" != 'none needed' && break
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5945 $as_echo "$ac_cv_lib_lex" >&6; }
5946 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5951 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5952 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 # POSIX says lex can declare yytext either as a pointer or an array; the
5956 # default is implementation-dependent. Figure out which it is, since
5957 # not all implementations provide the %pointer and %array declarations.
5958 ac_cv_prog_lex_yytext_pointer=no
5960 LIBS="$LEXLIB $ac_save_LIBS"
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #define YYTEXT_POINTER 1
5964 `cat $LEX_OUTPUT_ROOT.c
`
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 ac_cv_prog_lex_yytext_pointer=yes
5969 rm -f core conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5975 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5976 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5978 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5981 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5993 if test -n "$RANLIB"; then
5994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 RANLIB=$ac_cv_prog_RANLIB
6014 if test -n "$RANLIB"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6016 $as_echo "$RANLIB" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6024 if test -z "$ac_cv_prog_RANLIB"; then
6025 ac_ct_RANLIB=$RANLIB
6026 # Extract the first word of "ranlib", so it can be a program name with args.
6027 set dummy ranlib; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6033 if test -n "$ac_ct_RANLIB"; then
6034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_ac_ct_RANLIB="ranlib"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6054 if test -n "$ac_ct_RANLIB"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6056 $as_echo "$ac_ct_RANLIB" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6062 if test "x$ac_ct_RANLIB" = x; then
6065 case $cross_compiling:$ac_tool_warned in
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6069 ac_tool_warned=yes ;;
6071 RANLIB=$ac_ct_RANLIB
6074 RANLIB="$ac_cv_prog_RANLIB"
6077 for ac_prog in 'bison -y' byacc
6079 # Extract the first word of "$ac_prog", so it can be a program name with args.
6080 set dummy $ac_prog; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_YACC+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6086 if test -n "$YACC"; then
6087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_YACC="$ac_prog"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 YACC=$ac_cv_prog_YACC
6107 if test -n "$YACC"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6109 $as_echo "$YACC" >&6; }
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6116 test -n "$YACC" && break
6118 test -n "$YACC" || YACC="yacc"
6121 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$RANLIB"; then
6130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 RANLIB=$ac_cv_prog_RANLIB
6150 if test -n "$RANLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6152 $as_echo "$RANLIB" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6160 if test -z "$ac_cv_prog_RANLIB"; then
6161 ac_ct_RANLIB=$RANLIB
6162 # Extract the first word of "ranlib", so it can be a program name with args.
6163 set dummy ranlib; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$ac_ct_RANLIB"; then
6170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_ac_ct_RANLIB="ranlib"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6190 if test -n "$ac_ct_RANLIB"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6192 $as_echo "$ac_ct_RANLIB" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6198 if test "x$ac_ct_RANLIB" = x; then
6201 case $cross_compiling:$ac_tool_warned in
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6207 RANLIB=$ac_ct_RANLIB
6210 RANLIB="$ac_cv_prog_RANLIB"
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}strip; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if test "${ac_cv_prog_STRIP+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6221 if test -n "$STRIP"; then
6222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 STRIP=$ac_cv_prog_STRIP
6242 if test -n "$STRIP"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6244 $as_echo "$STRIP" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6252 if test -z "$ac_cv_prog_STRIP"; then
6254 # Extract the first word of "strip", so it can be a program name with args.
6255 set dummy strip; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$ac_ct_STRIP"; then
6262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_ac_ct_STRIP="strip"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6282 if test -n "$ac_ct_STRIP"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6284 $as_echo "$ac_ct_STRIP" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6290 if test "x$ac_ct_STRIP" = x; then
6293 case $cross_compiling:$ac_tool_warned in
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6302 STRIP="$ac_cv_prog_STRIP"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}ar; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_AR+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 if test -n "$AR"; then
6314 ac_cv_prog_AR="$AR" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_AR="${ac_tool_prefix}ar"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 if test -n "$AR"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6336 $as_echo "$AR" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6344 if test -z "$ac_cv_prog_AR"; then
6346 # Extract the first word of "ar", so it can be a program name with args.
6347 set dummy ar; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 if test -n "$ac_ct_AR"; then
6354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_AR="ar"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6374 if test -n "$ac_ct_AR"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6376 $as_echo "$ac_ct_AR" >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6382 if test "x$ac_ct_AR" = x; then
6385 case $cross_compiling:$ac_tool_warned in
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}ld; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_LD+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$LD"; then
6406 ac_cv_prog_LD="$LD" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_LD="${ac_tool_prefix}ld"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 if test -n "$LD"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6428 $as_echo "$LD" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_LD"; then
6438 # Extract the first word of "ld", so it can be a program name with args.
6439 set dummy ld; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$ac_ct_LD"; then
6446 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_ac_ct_LD="ld"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6466 if test -n "$ac_ct_LD"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6468 $as_echo "$ac_ct_LD" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_LD" = x; then
6477 case $cross_compiling:$ac_tool_warned in
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6490 # Check whether --enable-monolithic was given.
6491 if test "${enable_monolithic+set}" = set; then :
6492 enableval=$enable_monolithic;
6495 if test ${enable_monolithic:-yes} = yes; then
6497 MONOLITHIC_FALSE='#'
6504 # Check whether --enable-amule-daemon was given.
6505 if test "${enable_amule_daemon+set}" = set; then :
6506 enableval=$enable_amule_daemon;
6509 if test ${enable_amule_daemon:-no} = yes; then
6511 AMULE_DAEMON_FALSE='#'
6513 AMULE_DAEMON_TRUE='#'
6518 # Check whether --enable-amulecmd was given.
6519 if test "${enable_amulecmd+set}" = set; then :
6520 enableval=$enable_amulecmd;
6523 if test ${enable_amulecmd:-no} = yes; then
6525 COMPILE_CMD_FALSE='#'
6527 COMPILE_CMD_TRUE='#'
6532 # Check whether --enable-webserver was given.
6533 if test "${enable_webserver+set}" = set; then :
6534 enableval=$enable_webserver;
6537 if test ${enable_webserver:-no} = yes; then
6546 # Check whether --enable-amule-gui was given.
6547 if test "${enable_amule_gui+set}" = set; then :
6548 enableval=$enable_amule_gui;
6551 if test ${enable_amule_gui:-no} = yes; then
6560 # Check whether --enable-cas was given.
6561 if test "${enable_cas+set}" = set; then :
6562 enableval=$enable_cas;
6565 if test ${enable_cas:-no} = yes; then
6574 # Check whether --enable-wxcas was given.
6575 if test "${enable_wxcas+set}" = set; then :
6576 enableval=$enable_wxcas;
6579 if test ${enable_wxcas:-no} = yes; then
6588 # Check whether --enable-ed2k was given.
6589 if test "${enable_ed2k+set}" = set; then :
6590 enableval=$enable_ed2k;
6593 if test ${enable_ed2k:-yes} = yes; then
6602 # Check whether --enable-alc was given.
6603 if test "${enable_alc+set}" = set; then :
6604 enableval=$enable_alc;
6607 if test ${enable_alc:-no} = yes; then
6616 # Check whether --enable-alcc was given.
6617 if test "${enable_alcc+set}" = set; then :
6618 enableval=$enable_alcc;
6621 if test ${enable_alcc:-no} = yes; then
6630 # Check whether --enable-xas was given.
6631 if test "${enable_xas+set}" = set; then :
6632 enableval=$enable_xas;
6635 if test ${enable_xas:-no} = yes; then
6644 # Check whether --enable-fileview was given.
6645 if test "${enable_fileview+set}" = set; then :
6646 enableval=$enable_fileview;
6649 if test ${enable_fileview:-no} = yes; then
6658 # Check whether --enable-plasmamule was given.
6659 if test "${enable_plasmamule+set}" = set; then :
6660 enableval=$enable_plasmamule;
6665 # Run all the tests with static linkage if we want a statically linked binary
6666 # Check whether --enable-static was given.
6667 if test "${enable_static+set}" = set; then :
6668 enableval=$enable_static;
6672 if test ${enable_static:-no} = yes; then :
6673 LDFLAGS="$LDFLAGS -static"
6678 # Check whether --with-kde4-config was given.
6679 if test "${with_kde4_config+set}" = set; then :
6680 withval=$with_kde4_config; KDE4_CONFIG=$withval
6685 # Check whether --enable-kde-in-home was given.
6686 if test "${enable_kde_in_home+set}" = set; then :
6687 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6695 # Check whether --with-moc was given.
6696 if test "${with_moc+set}" = set; then :
6697 withval=$with_moc; QT_MOC=$withval
6704 # Default is yes, because they're most likely compatible.
6705 # However, this is only used when cross-compiling.
6707 # Check whether --with-gnu-malloc was given.
6708 if test "${with_gnu_malloc+set}" = set; then :
6709 withval=$with_gnu_malloc; gnumalloc=$withval
6716 # Checking for libs before all other stuff to break
6717 # configure as soon as possible in case of a missing one
6718 # to avoid losing too much time
6721 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 :
6724 # Check whether --with-zlib was given.
6725 if test "${with_zlib+set}" = set; then :
6730 case "${with_zlib:-yes}" in
6732 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6737 zlib_prefix="$with_zlib"
6740 mule_backup_CPPFLAGS="$CPPFLAGS"
6741 mule_backup_LDFLAGS="$LDFLAGS"
6742 mule_backup_LIBS="$LIBS"
6743 if test -n "$zlib_prefix"; then :
6745 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6746 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6747 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6748 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6757 LIBS="$ZLIB_LIBS $LIBS"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6760 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6761 if test "$cross_compiling" = yes; then :
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6776 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6784 if ac_fn_c_try_link "$LINENO"; then :
6786 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest
$ac_exeext |
sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6787 cross_zver_max="`echo $ZLIB_VERSION | cut
-d.
-f1`"
6788 cross_zver_mid="`echo $ZLIB_VERSION | cut
-d.
-f2`"
6789 cross_zver_min="`echo $ZLIB_VERSION | cut
-d.
-f3`"
6790 if test "$cross_zver_max" -gt "1"; then
6792 elif test "$cross_zver_max" -eq "1"; then
6794 if test "$cross_zver_mid" -gt "1"; then
6796 elif test "$cross_zver_mid" -eq "1"; then
6797 if test "$cross_zver_min" -ge "4"; then
6806 if test ${result:-no} = yes; then :
6807 z_version=" (version $ZLIB_VERSION)"
6811 rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6814 $as_echo "$result$z_version" >&6; }
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6827 char *zver = zlibVersion();
6828 FILE *f=fopen("conftestval", "w");
6835 zver[4] >= '4'))) ? "yes" : "no");
6837 f=fopen("conftestver", "w");
6839 fprintf(f, "%s", ZLIB_VERSION);
6848 if ac_fn_c_try_run "$LINENO"; then :
6850 if test -f conftestval; then :
6851 result=`cat conftestval
`
6855 if test ${result:-no} = yes; then :
6857 if test -f conftestver; then :
6859 ZLIB_VERSION=`cat conftestver
`
6860 z_version=" (version $ZLIB_VERSION)"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6868 $as_echo "$result$z_version" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6874 $as_echo "$result" >&6; }
6877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6878 conftest.$ac_objext conftest.beam conftest.$ac_ext
6882 CPPFLAGS="$mule_backup_CPPFLAGS"
6883 LDFLAGS="$mule_backup_LDFLAGS"
6884 LIBS="$mule_backup_LIBS"
6886 if test ${result:-no} = no; then :
6891 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6900 $as_echo_n "checking for ANSI C header files... " >&6; }
6901 if test "${ac_cv_header_stdc+set}" = set; then :
6902 $as_echo_n "(cached) " >&6
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 ac_cv_header_stdc=yes
6922 ac_cv_header_stdc=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 if test $ac_cv_header_stdc = yes; then
6927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6934 $EGREP "memchr" >/dev/null 2>&1; then :
6937 ac_cv_header_stdc=no
6943 if test $ac_cv_header_stdc = yes; then
6944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951 $EGREP "free" >/dev/null 2>&1; then :
6954 ac_cv_header_stdc=no
6960 if test $ac_cv_header_stdc = yes; then
6961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6962 if test "$cross_compiling" = yes; then :
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6969 #if ((' ' & 0x0FF) == 0x020)
6970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6973 # define ISLOWER(c) \
6974 (('a' <= (c) && (c) <= 'i') \
6975 || ('j' <= (c) && (c) <= 'r') \
6976 || ('s' <= (c) && (c) <= 'z'))
6977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6985 for (i = 0; i < 256; i++)
6986 if (XOR (islower (i), ISLOWER (i))
6987 || toupper (i) != TOUPPER (i))
6992 if ac_fn_c_try_run "$LINENO"; then :
6995 ac_cv_header_stdc=no
6997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6998 conftest.$ac_objext conftest.beam conftest.$ac_ext
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7004 $as_echo "$ac_cv_header_stdc" >&6; }
7005 if test $ac_cv_header_stdc = yes; then
7007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7013 inttypes.h stdint.h unistd.h
7015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7018 eval as_val=\$$as_ac_Header
7019 if test "x$as_val" = x""yes; then :
7020 cat >>confdefs.h <<_ACEOF
7021 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7029 if test ${enable_cas:-no} = yes; then :
7034 # Check whether --with-gdlib-prefix was given.
7035 if test "${with_gdlib_prefix+set}" = set; then :
7036 withval=$with_gdlib_prefix;
7040 # Check whether --with-gdlib-config was given.
7041 if test "${with_gdlib_config+set}" = set; then :
7042 withval=$with_gdlib_config;
7048 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7049 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7050 GDLIB_CONFIG_NAME=gdlib-config
7052 if test -n "$with_gdlib_config"; then :
7053 GDLIB_CONFIG_NAME="$with_gdlib_config"
7056 # deal with optional prefix
7057 if test -n "$with_gdlib_prefix"; then :
7058 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7061 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7062 if test -x "$GDLIB_CONFIG_NAME"; then :
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7065 $as_echo_n "checking for gdlib-config... " >&6; }
7066 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7068 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7071 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7072 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7078 case $GDLIB_CONFIG_PATH in
7080 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7085 for as_dir in $as_dummy
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7103 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7104 if test -n "$GDLIB_CONFIG_PATH"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7106 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7115 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7118 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7119 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7121 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7122 gdlib_config_major_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7123 gdlib_config_minor_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7124 gdlib_config_micro_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7127 if test $gdlib_config_major_version -gt 2; then
7129 elif test $gdlib_config_major_version -eq 2; then
7131 if test $gdlib_config_minor_version -gt 0; then
7133 elif test $gdlib_config_minor_version -eq 0; then
7134 if test $gdlib_config_micro_version -ge 0; then
7144 if test -z "$gdlib_ver_ok"; then :
7146 if test -z "$GDLIB_VERSION"; then :
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7152 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7160 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7161 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7162 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7163 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7164 mule_backup_CFLAGS="$CFLAGS"
7165 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7166 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7167 if test "x$ac_cv_header_gd_h" = x""yes; then :
7174 CFLAGS="$mule_backup_CFLAGS"
7180 if test -n "$GDLIB_VERSION"; then :
7183 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7191 if test -z "$CAS_DEFS"; then :
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7193 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7194 Please check that gdlib-config is in your default path, check out
7195 LD_LIBRARY_PATH or equivalent variable.
7196 Or this might also be that your gdlib-config has other name.
7197 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7198 (replace /usr/bin/gdlib-config with a valid path to your
7200 If you use compiled packages check if you have devel pack installed.
7201 To download the latest version check http://www.boutell.com/gd for
7203 $as_echo "$as_me: WARNING:
7204 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7205 Please check that gdlib-config is in your default path, check out
7206 LD_LIBRARY_PATH or equivalent variable.
7207 Or this might also be that your gdlib-config has other name.
7208 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7209 (replace /usr/bin/gdlib-config with a valid path to your
7211 If you use compiled packages check if you have devel pack installed.
7212 To download the latest version check http://www.boutell.com/gd for
7215 _mule_has_warnings=yes
7221 if test ${enable_webserver:-no} = yes; then :
7224 # Check whether --with-libpng-prefix was given.
7225 if test "${with_libpng_prefix+set}" = set; then :
7226 withval=$with_libpng_prefix;
7230 # Check whether --with-libpng-config was given.
7231 if test "${with_libpng_config+set}" = set; then :
7232 withval=$with_libpng_config;
7238 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7239 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7240 LIBPNG_CONFIG_NAME=libpng-config
7242 if test -n "$with_libpng_config"; then :
7243 LIBPNG_CONFIG_NAME="$with_libpng_config"
7246 # deal with optional prefix
7247 if test -n "$with_libpng_prefix"; then :
7248 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7251 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7252 if test -x "$LIBPNG_CONFIG_NAME"; then :
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7255 $as_echo_n "checking for libpng-config... " >&6; }
7256 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7258 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7261 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7262 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7268 case $LIBPNG_CONFIG_PATH in
7270 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7275 for as_dir in $as_dummy
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7293 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7294 if test -n "$LIBPNG_CONFIG_PATH"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7296 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7305 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7308 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7310 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7312 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7313 libpng_config_major_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7314 libpng_config_minor_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7315 libpng_config_micro_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7318 if test $libpng_config_major_version -gt 1; then
7320 elif test $libpng_config_major_version -eq 1; then
7322 if test $libpng_config_minor_version -gt 2; then
7324 elif test $libpng_config_minor_version -eq 2; then
7325 if test $libpng_config_micro_version -ge 0; then
7335 if test -z "$libpng_ver_ok"; then :
7337 if test -z "$LIBPNG_VERSION"; then :
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7343 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7350 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7351 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags |
sed -e "s/ *${LIBPNG_LIBS}$//"`
7352 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7354 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7357 $as_echo_n "checking if libpng is usable... " >&6; }
7359 SAVED_CFLAGS=$CFLAGS
7360 SAVED_LDFLAGS=$LDFLAGS
7363 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7364 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7365 LIBS="$LIBS $LIBPNG_LIBS"
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7378 png_uint_32 libpng_vn = png_access_version_number();
7379 printf("\nlibpng version %i\n\n", libpng_vn);
7386 if ac_fn_c_try_link "$LINENO"; then :
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389 $as_echo "yes" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7394 $as_echo "no (failed to compile and link test program)" >&6; }
7401 rm -f core conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7404 CFLAGS=$SAVED_CFLAGS
7405 LDFLAGS=$SAVED_LDFLAGS
7412 if test -n "$LIBPNG_VERSION"; then :
7413 AMULEWEB_DEFS="-DWITH_LIBPNG"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7417 libpng >= 1.2.0 not found.
7418 amuleweb will be compiled but file download progress bar images will
7419 NOT be generated." >&5
7420 $as_echo "$as_me: WARNING:
7421 libpng >= 1.2.0 not found.
7422 amuleweb will be compiled but file download progress bar images will
7423 NOT be generated." >&2;}
7425 _mule_has_warnings=yes
7435 # Check for perl File::Copy
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7437 $as_echo_n "checking for File::Copy... " >&6; }
7438 if perl -e "require File::Copy" 2>/dev/null; then :
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7440 $as_echo "ok" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7443 File::Copy perl module is required by the mldonkey_importer script.
7444 If you want to use this script please install File::Copy from CPAN." >&5
7445 $as_echo "$as_me: WARNING:
7446 File::Copy perl module is required by the mldonkey_importer script.
7447 If you want to use this script please install File::Copy from CPAN." >&2;}
7449 _mule_has_warnings=yes
7453 # Check if we need to install skins
7454 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7460 # Check for GeoIP (required for IP2Country capability)
7461 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7463 # Check whether --enable-geoip was given.
7464 if test "${enable_geoip+set}" = set; then :
7465 enableval=$enable_geoip;
7470 if test ${enable_geoip:-no} = yes; then :
7473 # Check whether --with-geoip-headers was given.
7474 if test "${with_geoip_headers+set}" = set; then :
7475 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7479 # Check whether --with-geoip-lib was given.
7480 if test "${with_geoip_lib+set}" = set; then :
7481 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7485 mule_backup_CPPFLAGS="$CPPFLAGS"
7486 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7487 mule_backup_LDFLAGS="$LDFLAGS"
7488 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7490 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7491 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7493 if test x$SYS = xwin32; then :
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7496 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7497 # Actually, we might not need any if GeoIP is linked as a .dll
7498 # - but that's even harder to check for
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7505 I do know it's not the best approach, but at least works with MinGW stock headers.
7506 (tested with w32api-3.12)
7518 if ac_fn_c_try_compile "$LINENO"; then :
7520 GEOIP_WINSOCK_LIB="-lwsock32"
7524 GEOIP_WINSOCK_LIB="-lws2_32"
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7529 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7533 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7534 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7537 ac_check_lib_save_LIBS=$LIBS
7538 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7542 /* Override any GCC internal prototype to avoid an error.
7543 Use char because int might match the return type of a GCC
7544 builtin and then its argument prototype would still apply. */
7552 return GeoIP_open ();
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 ac_cv_lib_GeoIP_GeoIP_open=yes
7560 ac_cv_lib_GeoIP_GeoIP_open=no
7562 rm -f core conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7564 LIBS=$ac_check_lib_save_LIBS
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7567 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7568 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7571 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7573 GEOIP_LIBS="-lGeoIP"
7574 if test x$SYS = xwin32; then :
7575 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7577 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7579 # Check whether --with-geoip-static was given.
7580 if test "${with_geoip_static+set}" = set; then :
7581 withval=$with_geoip_static;
7582 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7584 mule_backup_LIBS="$LIBS"
7585 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7596 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7603 if ac_fn_c_try_link "$LINENO"; then :
7605 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7610 Cannot link GeoIP statically, because your linker ($LD) does not
7612 $as_echo "$as_me: WARNING:
7613 Cannot link GeoIP statically, because your linker ($LD) does not
7616 _mule_has_warnings=yes
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LIBS="$mule_backup_LIBS"
7631 enable_geoip=disabled
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7633 GeoIP support has been disabled because the GeoIP libraries were not
7635 $as_echo "$as_me: WARNING:
7636 GeoIP support has been disabled because the GeoIP libraries were not
7639 _mule_has_warnings=yes
7647 enable_geoip=disabled
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7649 GeoIP support has been disabled because the GeoIP header files were
7651 $as_echo "$as_me: WARNING:
7652 GeoIP support has been disabled because the GeoIP header files were
7655 _mule_has_warnings=yes
7662 CPPFLAGS="$mule_backup_CPPFLAGS"
7663 LDFLAGS="$mule_backup_LDFLAGS"
7670 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 :
7673 # Check whether --with-wxdir was given.
7674 if test "${with_wxdir+set}" = set; then :
7675 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7676 wx_config_args="--inplace"
7680 # Check whether --with-wx-config was given.
7681 if test "${with_wx_config+set}" = set; then :
7682 withval=$with_wx_config; wx_config_name="$withval"
7686 # Check whether --with-wx-prefix was given.
7687 if test "${with_wx_prefix+set}" = set; then :
7688 withval=$with_wx_prefix; wx_config_prefix="$withval"
7694 # Check whether --with-wx-exec-prefix was given.
7695 if test "${with_wx_exec_prefix+set}" = set; then :
7696 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7698 wx_config_exec_prefix=""
7713 # Check whether --with-toolkit was given.
7714 if test "${with_toolkit+set}" = set; then :
7715 withval=$with_toolkit;
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7722 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7723 if test "$withval" = "auto" ; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7725 $as_echo "will be automatically detected" >&6; }
7730 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7731 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7732 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7733 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7734 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7735 "$TOOLKIT" != "osx_cocoa"; then
7737 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7742 $as_echo "$TOOLKIT" >&6; }
7749 # Check whether --with-wxshared was given.
7750 if test "${with_wxshared+set}" = set; then :
7751 withval=$with_wxshared;
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7758 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7759 if test "$withval" = "yes" ; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761 $as_echo "yes" >&6; }
7764 elif test "1" = "1" -a "$withval" = "no" ; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7768 elif test "$withval" = "auto" ; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7770 $as_echo "will be automatically detected" >&6; }
7774 Unrecognized option value (allowed values: yes, auto)
7782 # Check whether --with-wxdebug was given.
7783 if test "${with_wxdebug+set}" = set; then :
7784 withval=$with_wxdebug;
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7791 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7792 if test "$withval" = "yes" ; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7797 elif test "1" = "1" -a "$withval" = "no" ; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7801 elif test "$withval" = "auto" ; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7803 $as_echo "will be automatically detected" >&6; }
7807 Unrecognized option value (allowed values: yes, auto)
7815 # Check whether --with-wxversion was given.
7816 if test "${with_wxversion+set}" = set; then :
7817 withval=$with_wxversion;
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7824 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7825 if test "$withval" = "auto" ; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7827 $as_echo "will be automatically detected" >&6; }
7831 wx_requested_major_version=`echo $withval | \
7832 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7833 wx_requested_minor_version=`echo $withval | \
7834 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7836 if test "${#wx_requested_major_version}" != "1" -o \
7837 "${#wx_requested_minor_version}" != "1" ; then
7839 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7843 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7845 $as_echo "$WX_VERSION" >&6; }
7849 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7850 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7851 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7852 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7853 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7854 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7857 # Force using a static wxWidgets library if the executable is to be linked statically.
7858 if test ${enable_static:-no} = yes; then :
7861 # Force using a unicode build of the library
7862 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 :
7867 if test "$WX_SHARED" = "1" ; then
7868 WXCONFIG_FLAGS="--static=no "
7869 elif test "$WX_SHARED" = "0" ; then
7870 WXCONFIG_FLAGS="--static=yes "
7873 if test "$WX_DEBUG" = "1" ; then
7874 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7875 elif test "$WX_DEBUG" = "0" ; then
7876 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7879 if test "$WX_UNICODE" = "1" ; then
7880 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7881 elif test "$WX_UNICODE" = "0" ; then
7882 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7885 if test "$TOOLKIT" != "auto" ; then
7886 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7889 if test "$WX_VERSION" != "auto" ; then
7890 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7893 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7895 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7896 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7900 if test x${WX_CONFIG_NAME+set} != xset ; then
7901 WX_CONFIG_NAME=wx-config
7904 if test "x$wx_config_name" != x ; then
7905 WX_CONFIG_NAME="$wx_config_name"
7908 if test x$wx_config_exec_prefix != x ; then
7909 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7910 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7912 if test x$wx_config_prefix != x ; then
7913 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7914 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7916 if test "$cross_compiling" = "yes"; then
7917 wx_config_args="$wx_config_args --host=$host_alias"
7920 if test -x "$WX_CONFIG_NAME" ; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7922 $as_echo_n "checking for wx-config... " >&6; }
7923 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7925 $as_echo "$WX_CONFIG_PATH" >&6; }
7927 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7928 set dummy $WX_CONFIG_NAME; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7934 case $WX_CONFIG_PATH in
7936 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7941 for as_dir in $as_dummy
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7959 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7960 if test -n "$WX_CONFIG_PATH"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7962 $as_echo "$WX_CONFIG_PATH" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7971 if test "$WX_CONFIG_PATH" != "no" ; then
7974 min_wx_version=2.8.12
7975 if test -z "$WXCONFIG_FLAGS" ; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7977 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7980 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7983 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7985 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev
/null
`
7986 wx_config_major_version=`echo $WX_VERSION_FULL | \
7987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7988 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7990 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7993 wx_requested_major_version=`echo $min_wx_version | \
7994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7995 wx_requested_minor_version=`echo $min_wx_version | \
7996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7997 wx_requested_micro_version=`echo $min_wx_version | \
7998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8002 if test "x$WX_VERSION_FULL" != x ; then
8003 if test $wx_config_major_version -gt $wx_requested_major_version; then
8006 if test $wx_config_major_version -eq $wx_requested_major_version; then
8007 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8010 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8011 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8021 if test -n "$wx_ver_ok"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8024 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8025 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8027 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8029 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8030 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8031 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8033 WX_CFLAGS_ONLY=`echo $WX_CFLAGS |
sed "s@^$WX_CPPFLAGS *@@"`
8034 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS |
sed "s@^$WX_CFLAGS *@@"`
8040 if test "x$WX_VERSION_FULL" = x; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8045 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8054 if test ! -z "$WXCONFIG_FLAGS"; then
8057 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8058 build with the following settings:
8060 but such build is not available.
8062 To see the wxWidgets builds available on this system, please use
8063 'wx-config --list' command. To use the default build, returned by
8064 'wx-config --selected-config', use the options with their 'auto'
8070 The requested wxWidgets build couldn't be found.
8073 If you still get this error, then check that 'wx-config' is
8074 in path, the directory where wxWidgets libraries are installed
8075 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8076 or equivalent variable and wxWidgets version is 2.8.12 or above."
8078 as_fn_error "$wx_error_message" "$LINENO" 5
8102 WX_VERSION_MAJOR="$wx_config_major_version"
8103 WX_VERSION_MINOR="$wx_config_minor_version"
8107 if test "$wxWin" != 1; then :
8109 wxWidgets must be installed on your system but wx-config
8110 script couldn't be found. Please check that wx-config is
8111 in path or specified by --with-wx-config=path flag, the
8112 directory where wxWidgets libraries are installed (returned
8113 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8114 equivalent variable and wxWidgets version is 2.8.12 or above.
8118 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8120 This version of wxWidgets is known to not work with aMule.
8121 Please upgrade to a newer version.
8126 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8128 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8130 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8131 echo "[dbg] Using wx-config --selected-config"
8132 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8136 if test $WX_SHARED = "1"; then
8138 elif test $WX_SHARED = "0"; then
8140 elif test $WX_SHARED = "auto"; then
8145 if test "$UNICODE" = "auto" ; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8148 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8150 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8152 if test "$WX_UNICODE" != "0"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155 $as_echo "yes" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8169 if test "$DEBUG" = "auto" ; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8172 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8174 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8176 if test "$WX_DEBUG" != "0"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8179 $as_echo "yes" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8193 if test "$STATIC" = "auto" ; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8196 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8198 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8200 if test "$WX_STATIC" != "0"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8203 $as_echo "yes" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8217 if test "$WX_STATIC" != "0"; then
8227 if test "$TOOLKIT" = "auto" ; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8230 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8232 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8233 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8234 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8235 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8236 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8237 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8238 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8239 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8240 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8241 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8242 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8245 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8246 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8247 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8248 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8249 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8250 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8251 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8252 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8253 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8254 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8255 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8258 if test "$WX_PORT" = "unknown" ; then
8260 Cannot detect the currently installed wxWidgets port !
8261 Please check your 'wx-config --cxxflags'...
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8266 $as_echo "$WX_PORT" >&6; }
8269 if test -n "$TOOLKIT" ; then
8278 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8279 echo "[dbg] Values of all WX_* options after final detection:"
8280 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8281 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8282 echo "[dbg] WX_SHARED: $WX_SHARED"
8283 echo "[dbg] WX_VERSION: $WX_VERSION"
8284 echo "[dbg] WX_PORT: $WX_PORT"
8287 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8289 Cannot build shared library against a static build of wxWidgets !
8290 This error happens because the wxWidgets build which was selected
8291 has been detected as static while you asked to build $PACKAGE_NAME
8292 as shared library and this is not possible.
8293 Use the '--disable-shared' option to build $PACKAGE_NAME
8294 as static library or '--with-wxshared' to use wxWidgets as shared library.
8298 if test "$DEBUG" = "auto"; then
8301 if test "$DEBUG" = "1"; then
8303 elif test "$DEBUG" = ""; then
8307 if test "$UNICODE" = "auto"; then
8310 if test "$SHARED" = "auto"; then
8313 if test "$TOOLKIT" = "auto"; then
8318 # We also need wxBase
8319 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv
,core
,net
`
8320 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net
`
8321 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8323 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags |
$AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8327 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8328 if test "${WX_PORT}" = base; then :
8330 The selected components need a wxWidgets library with GUI,
8331 but your installation is base-only. Please install a GUI
8332 enabled version of wxWidgets and then retry.
8338 if test ${SYS:-unknown} = win32; then :
8339 if test -n "$ac_tool_prefix"; then
8340 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8341 set dummy ${ac_tool_prefix}windres; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_prog_RC+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8347 if test -n "$RC"; then
8348 ac_cv_prog_RC="$RC" # Let the user override the test.
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 ac_cv_prog_RC="${ac_tool_prefix}windres"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 if test -n "$RC"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8370 $as_echo "$RC" >&6; }
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8378 if test -z "$ac_cv_prog_RC"; then
8380 # Extract the first word of "windres", so it can be a program name with args.
8381 set dummy windres; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8387 if test -n "$ac_ct_RC"; then
8388 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_ac_ct_RC="windres"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8408 if test -n "$ac_ct_RC"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8410 $as_echo "$ac_ct_RC" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8416 if test "x$ac_ct_RC" = x; then
8419 case $cross_compiling:$ac_tool_warned in
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8423 ac_tool_warned=yes ;;
8435 # Check whether --enable-upnp was given.
8436 if test "${enable_upnp+set}" = set; then :
8437 enableval=$enable_upnp;
8441 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8448 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8449 if test -n "$ac_tool_prefix"; then
8450 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8481 if test -n "$PKG_CONFIG"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8483 $as_echo "$PKG_CONFIG" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test -z "$ac_cv_path_PKG_CONFIG"; then
8492 ac_pt_PKG_CONFIG=$PKG_CONFIG
8493 # Extract the first word of "pkg-config", so it can be a program name with args.
8494 set dummy pkg-config; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8500 case $ac_pt_PKG_CONFIG in
8502 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8524 if test -n "$ac_pt_PKG_CONFIG"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8526 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8532 if test "x$ac_pt_PKG_CONFIG" = x; then
8535 case $cross_compiling:$ac_tool_warned in
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539 ac_tool_warned=yes ;;
8541 PKG_CONFIG=$ac_pt_PKG_CONFIG
8544 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8548 if test -n "$PKG_CONFIG"; then
8549 _pkg_min_version=0.9.0
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8551 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8552 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8554 $as_echo "yes" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8562 if test ${enable_upnp:-yes} = yes; then :
8566 # Check whether --with-libupnp-prefix was given.
8567 if test "${with_libupnp_prefix+set}" = set; then :
8568 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8572 if test $cross_compiling = no; then :
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8575 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8576 if test -n "$PKG_CONFIG"; then :
8578 if $PKG_CONFIG libupnp --exists; then :
8580 LIBUPNP_VERSION=`$PKG_CONFIG libupnp
--modversion`
8581 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8584 resultstr=" (version $LIBUPNP_VERSION)"
8585 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp
--cflags-only-I`
8586 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp
--cflags-only-other`
8587 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp
--libs-only-L`
8588 LIBUPNP_LIBS=`$PKG_CONFIG libupnp
--libs-only-other`
8589 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp
--libs-only-l`"
8594 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8601 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8608 resultstr=" (pkg-config not found)"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8612 $as_echo "$result$resultstr" >&6; }
8613 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8618 libupnp_error="cross compiling"
8622 if test ${result:-no} = yes; then :
8623 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8625 enable_upnp=disabled
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8627 UPnP code has been disabled because ${libupnp_error}." >&5
8628 $as_echo "$as_me: WARNING:
8629 UPnP code has been disabled because ${libupnp_error}." >&2;}
8631 _mule_has_warnings=yes
8640 # Check for Crypto++
8641 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8644 # Check whether --with-crypto-prefix was given.
8645 if test "${with_crypto_prefix+set}" = set; then :
8646 withval=$with_crypto_prefix;
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8651 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8653 cryptopp_file_with_version="cryptlib.h"
8655 CRYPTOPP_STYLE="unknown"
8656 CRYPTOPP_LIB_NAME="unknown"
8657 cryptopp_includedir="unknown"
8658 CRYPTOPP_INCLUDE_PREFIX="unknown"
8659 cryptopp_libdir="unknown"
8661 if test -n "$with_crypto_prefix"; then :
8663 CRYPTOPP_PREFIX="$with_crypto_prefix"
8664 # Find the Cryptopp header in the user-provided location
8665 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8667 CRYPTOPP_STYLE="sources"
8668 CRYPTOPP_LIB_NAME="cryptopp"
8669 cryptopp_includedir=
8670 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8673 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8675 CRYPTOPP_STYLE="installed"
8676 CRYPTOPP_LIB_NAME="cryptopp"
8677 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8678 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8679 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8681 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8683 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8684 CRYPTOPP_STYLE="gentoo_debian"
8685 CRYPTOPP_LIB_NAME="crypto++"
8686 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8687 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8688 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8695 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8696 # Find the Cryptopp header in system locations
8697 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8699 CRYPTOPP_STYLE="sources"
8700 CRYPTOPP_LIB_NAME="cryptopp"
8701 cryptopp_includedir=
8702 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8706 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8708 CRYPTOPP_STYLE="installed"
8709 CRYPTOPP_LIB_NAME="cryptopp"
8710 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8711 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8712 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8715 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8717 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8718 CRYPTOPP_STYLE="gentoo_debian"
8719 CRYPTOPP_LIB_NAME="crypto++"
8720 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8721 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8722 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8731 if test $CRYPTOPP_STYLE = "unknown"; then :
8732 result=no; resultstr=""
8735 # Find out the crypto++ version and check against the minimum required
8736 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8737 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path |
sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8738 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8739 minvers=`echo 5.1 |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8741 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8744 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8745 if test -n "$cryptopp_includedir"; then :
8746 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8750 if test -n "$cryptopp_libdir"; then :
8752 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8753 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8758 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8762 cat >>confdefs.h <<_ACEOF
8763 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8770 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8777 $as_echo "$result$resultstr" >&6; }
8779 if test ${result:-no} = yes; then :
8781 # Check for CryptoPP >= 5.5
8782 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8783 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8789 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8790 Please try again with --with-crypto-prefix=/my_crypto_prefix
8791 (replace /my_crypto_prefix with a valid path to your crypto++
8792 installation directory)." "$LINENO" 5
8801 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 :
8803 ac_cpp='$CXXCPP $CPPFLAGS'
8804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8810 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8817 #error Non-GNU C++ library found.
8822 if ac_fn_cxx_try_cpp "$LINENO"; then :
8827 rm -f conftest.err conftest.$ac_ext
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8829 $as_echo "$GLIBCXX" >&6; }
8831 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8833 mule_backup_CPPFLAGS="$CPPFLAGS"
8834 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8837 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8843 #include <wx/filefn.h>
8844 #ifndef wxHAS_LARGE_FILES
8845 #error No LargeFile support!
8850 if ac_fn_cxx_try_cpp "$LINENO"; then :
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8853 $as_echo "yes" >&6; }
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8860 Support for large files in wxWidgets is required by aMule.
8861 To continue you must recompile wxWidgets with support for
8862 large files enabled." "$LINENO" 5
8865 rm -f conftest.err conftest.$ac_ext
8867 CPPFLAGS="$mule_backup_CPPFLAGS"
8871 # Check if the compiler is broken, wrt. exceptions.
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8874 $as_echo_n "checking for exception-handling... " >&6; }
8875 if test "$cross_compiling" = yes; then :
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8878 $as_echo "undeterminable" >&6; }
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8880 Cross-compilation detected, so exception handling cannot be tested.
8881 Note that broken exception handling in your compiler may lead to
8882 unexpected crashes." >&5
8883 $as_echo "$as_me: WARNING:
8884 Cross-compilation detected, so exception handling cannot be tested.
8885 Note that broken exception handling in your compiler may lead to
8886 unexpected crashes." >&2;}
8888 _mule_has_warnings=yes
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8912 if ac_fn_cxx_try_run "$LINENO"; then :
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8915 $as_echo "yes" >&6; }
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8925 conftest.$ac_objext conftest.beam conftest.$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8932 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8944 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8945 std::type_info *ti = abi::__cxa_current_exception_type();
8952 if ac_fn_cxx_try_link "$LINENO"; then :
8955 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8958 $as_echo "yes" >&6; }
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978 # Ok, we have all needed libs, now checking for other stuff
8979 if test "$LEX" = "flex"; then :
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8982 $as_echo_n "checking for extended flex capabilities... " >&6; }
8984 extended_flex=`flex
--help |
grep header-file
`
8985 if test -n "$extended_flex"; then :
8986 HAVE_FLEX_EXTENDED=yes
8988 HAVE_FLEX_EXTENDED=no
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8991 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8993 if test $HAVE_FLEX_EXTENDED = no; then :
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8995 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8999 HAVE_FLEX_EXTENDED=no
9002 # Flush standard test results for speeding cache
9003 cat >confcache <<\_ACEOF
9004 # This file is a shell script that caches the results of configure
9005 # tests run on this system so they can be shared between configure
9006 # scripts and configure runs, see configure's option --config-cache.
9007 # It is not useful on other systems. If it contains results you don't
9008 # want to keep, you may remove or edit it.
9010 # config.status only pays attention to the cache file if you give it
9011 # the --recheck option to rerun configure.
9013 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9019 # The following way of writing the cache mishandles newlines in values,
9020 # but we know of no workaround that is simple, portable, and efficient.
9021 # So, we kill variables containing newlines.
9022 # Ultrix sh set writes to stderr and can't be redirected directly,
9023 # and sets the high bit in the cache file unless we assign to the vars.
9025 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9026 eval ac_val
=\$
$ac_var
9030 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9034 _ | IFS | as_nl
) ;; #(
9035 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9036 *) { eval $ac_var=; unset $ac_var;} ;;
9042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9043 *${as_nl}ac_space
=\
*)
9044 # `set' does not quote correctly, so add quotes: double-quote
9045 # substitution turns \\\\ into \\, and sed turns \\ into \.
9048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9051 # `set' quotes correctly as required by POSIX, so do not add quotes.
9052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9065 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9066 if test -w "$cache_file"; then
9067 test "x$cache_file" != "x/dev/null" &&
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9069 $as_echo "$as_me: updating cache $cache_file" >&6;}
9070 cat confcache
>$cache_file
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9078 # Checks for header files.
9079 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9080 # for constant arguments. Useless!
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9082 $as_echo_n "checking for working alloca.h... " >&6; }
9083 if test "${ac_cv_working_alloca_h+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9092 char *p = (char *) alloca (2 * sizeof (int));
9098 if ac_fn_c_try_link
"$LINENO"; then :
9099 ac_cv_working_alloca_h
=yes
9101 ac_cv_working_alloca_h
=no
9103 rm -f core conftest.err conftest.
$ac_objext \
9104 conftest
$ac_exeext conftest.
$ac_ext
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9107 $as_echo "$ac_cv_working_alloca_h" >&6; }
9108 if test $ac_cv_working_alloca_h = yes; then
9110 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9115 $as_echo_n "checking for alloca... " >&6; }
9116 if test "${ac_cv_func_alloca_works+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9122 # define alloca __builtin_alloca
9125 # include <malloc.h>
9126 # define alloca _alloca
9128 # ifdef HAVE_ALLOCA_H
9129 # include <alloca.h>
9134 # ifndef alloca /* predefined by HP cc +Olibcalls */
9145 char *p = (char *) alloca (1);
9151 if ac_fn_c_try_link
"$LINENO"; then :
9152 ac_cv_func_alloca_works
=yes
9154 ac_cv_func_alloca_works
=no
9156 rm -f core conftest.err conftest.
$ac_objext \
9157 conftest
$ac_exeext conftest.
$ac_ext
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9160 $as_echo "$ac_cv_func_alloca_works" >&6; }
9162 if test $ac_cv_func_alloca_works = yes; then
9164 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9167 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9168 # that cause trouble. Some versions do not even contain alloca or
9169 # contain a buggy version. If you still want to use their alloca,
9170 # use ar to extract alloca.o from them instead of compiling alloca.c.
9172 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9174 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9178 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9179 if test "${ac_cv_os_cray+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #if defined CRAY && ! defined CRAY2
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "webecray" >/dev
/null
2>&1; then :
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9201 $as_echo "$ac_cv_os_cray" >&6; }
9202 if test $ac_cv_os_cray = yes; then
9203 for ac_func
in _getb67 GETB67 getb67
; do
9204 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9205 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9206 eval as_val
=\$
$as_ac_var
9207 if test "x$as_val" = x
""yes; then :
9209 cat >>confdefs.h
<<_ACEOF
9210 #define CRAY_STACKSEG_END $ac_func
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9220 $as_echo_n "checking stack direction for C alloca... " >&6; }
9221 if test "${ac_cv_c_stack_direction+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9224 if test "$cross_compiling" = yes; then :
9225 ac_cv_c_stack_direction
=0
9227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 $ac_includes_default
9231 find_stack_direction ()
9233 static char *addr = 0;
9238 return find_stack_direction ();
9241 return (&dummy > addr) ? 1 : -1;
9247 return find_stack_direction () < 0;
9250 if ac_fn_c_try_run
"$LINENO"; then :
9251 ac_cv_c_stack_direction
=1
9253 ac_cv_c_stack_direction
=-1
9255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9261 $as_echo "$ac_cv_c_stack_direction" >&6; }
9262 cat >>confdefs.h
<<_ACEOF
9263 #define STACK_DIRECTION $ac_cv_c_stack_direction
9270 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9271 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9273 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9274 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9275 $as_echo_n "(cached) " >&6
9277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 #include <sys/types.h>
9291 if ac_fn_c_try_compile
"$LINENO"; then :
9292 eval "$as_ac_Header=yes"
9294 eval "$as_ac_Header=no"
9296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9298 eval ac_res
=\$
$as_ac_Header
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9300 $as_echo "$ac_res" >&6; }
9301 eval as_val
=\$
$as_ac_Header
9302 if test "x$as_val" = x
""yes; then :
9303 cat >>confdefs.h
<<_ACEOF
9304 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9307 ac_header_dirent
=$ac_hdr; break
9311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9312 if test $ac_header_dirent = dirent.h
; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9314 $as_echo_n "checking for library containing opendir... " >&6; }
9315 if test "${ac_cv_search_opendir+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
9318 ac_func_search_save_LIBS
=$LIBS
9319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9337 for ac_lib
in '' dir
; do
9338 if test -z "$ac_lib"; then
9339 ac_res
="none required"
9342 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9344 if ac_fn_c_try_link
"$LINENO"; then :
9345 ac_cv_search_opendir
=$ac_res
9347 rm -f core conftest.err conftest.
$ac_objext \
9349 if test "${ac_cv_search_opendir+set}" = set; then :
9353 if test "${ac_cv_search_opendir+set}" = set; then :
9356 ac_cv_search_opendir
=no
9359 LIBS
=$ac_func_search_save_LIBS
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9362 $as_echo "$ac_cv_search_opendir" >&6; }
9363 ac_res
=$ac_cv_search_opendir
9364 if test "$ac_res" != no
; then :
9365 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9371 $as_echo_n "checking for library containing opendir... " >&6; }
9372 if test "${ac_cv_search_opendir+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9375 ac_func_search_save_LIBS
=$LIBS
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9394 for ac_lib
in '' x
; do
9395 if test -z "$ac_lib"; then
9396 ac_res
="none required"
9399 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9401 if ac_fn_c_try_link
"$LINENO"; then :
9402 ac_cv_search_opendir
=$ac_res
9404 rm -f core conftest.err conftest.
$ac_objext \
9406 if test "${ac_cv_search_opendir+set}" = set; then :
9410 if test "${ac_cv_search_opendir+set}" = set; then :
9413 ac_cv_search_opendir
=no
9416 LIBS
=$ac_func_search_save_LIBS
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9419 $as_echo "$ac_cv_search_opendir" >&6; }
9420 ac_res
=$ac_cv_search_opendir
9421 if test "$ac_res" != no
; then :
9422 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9429 $as_echo_n "checking for ANSI C header files... " >&6; }
9430 if test "${ac_cv_header_stdc+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9448 if ac_fn_c_try_compile
"$LINENO"; then :
9449 ac_cv_header_stdc
=yes
9451 ac_cv_header_stdc
=no
9453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9455 if test $ac_cv_header_stdc = yes; then
9456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9463 $EGREP "memchr" >/dev
/null
2>&1; then :
9466 ac_cv_header_stdc
=no
9472 if test $ac_cv_header_stdc = yes; then
9473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9480 $EGREP "free" >/dev
/null
2>&1; then :
9483 ac_cv_header_stdc
=no
9489 if test $ac_cv_header_stdc = yes; then
9490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9491 if test "$cross_compiling" = yes; then :
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9498 #if ((' ' & 0x0FF) == 0x020)
9499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9502 # define ISLOWER(c) \
9503 (('a' <= (c) && (c) <= 'i') \
9504 || ('j' <= (c) && (c) <= 'r') \
9505 || ('s' <= (c) && (c) <= 'z'))
9506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9514 for (i = 0; i < 256; i++)
9515 if (XOR (islower (i), ISLOWER (i))
9516 || toupper (i) != TOUPPER (i))
9521 if ac_fn_c_try_run
"$LINENO"; then :
9524 ac_cv_header_stdc
=no
9526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9533 $as_echo "$ac_cv_header_stdc" >&6; }
9534 if test $ac_cv_header_stdc = yes; then
9536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9540 for ac_header
in argz.h arpa
/inet.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 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 errno.h signal.h
9542 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9544 eval as_val
=\$
$as_ac_Header
9545 if test "x$as_val" = x
""yes; then :
9546 cat >>confdefs.h
<<_ACEOF
9547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9555 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9556 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 #include <sys/types.h>
9562 #include <sys/wait.h>
9564 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9567 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9575 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9580 if ac_fn_c_try_compile
"$LINENO"; then :
9581 ac_cv_header_sys_wait_h
=yes
9583 ac_cv_header_sys_wait_h
=no
9585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9588 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9589 if test $ac_cv_header_sys_wait_h = yes; then
9591 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9596 # Checks for typedefs, structures, and compiler characteristics.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9598 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9599 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9605 #include <stdbool.h>
9607 "error: bool is not defined"
9610 "error: false is not defined"
9613 "error: false is not 0"
9616 "error: true is not defined"
9619 "error: true is not 1"
9621 #ifndef __bool_true_false_are_defined
9622 "error: __bool_true_false_are_defined is not defined"
9625 struct s { _Bool s: 1; _Bool t; } s;
9627 char a[true == 1 ? 1 : -1];
9628 char b[false == 0 ? 1 : -1];
9629 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9630 char d[(bool) 0.5 == true ? 1 : -1];
9632 char f[(_Bool) 0.0 == false ? 1 : -1];
9634 char h[sizeof (_Bool)];
9636 enum { j = false, k = true, l = false * true, m = true * 256 };
9637 /* The following fails for
9638 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9640 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9641 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9642 # if defined __xlc__ || defined __GNUC__
9643 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9644 reported by James Lemley on 2005-10-05; see
9645 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9646 This test is not quite right, since xlc is allowed to
9647 reject this program, as the initializer for xlcbug is
9648 not one of the forms that C requires support for.
9649 However, doing the test right would require a runtime
9650 test, and that would make cross-compilation harder.
9651 Let us hope that IBM fixes the xlc bug, and also adds
9652 support for this kind of constant expression. In the
9653 meantime, this test will reject xlc, which is OK, since
9654 our stdbool.h substitute should suffice. We also test
9655 this with GCC, where it should work, to detect more
9656 quickly whether someone messes up the test in the
9658 char digs[] = "0123456789";
9659 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9661 /* Catch a bug in an HP-UX C compiler. See
9662 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9663 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9674 /* Refer to every declared value, to avoid compiler optimizations. */
9675 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9676 + !m + !n + !o + !p + !q + !pq);
9682 if ac_fn_c_try_compile
"$LINENO"; then :
9683 ac_cv_header_stdbool_h
=yes
9685 ac_cv_header_stdbool_h
=no
9687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9690 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9691 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9692 if test "x$ac_cv_type__Bool" = x
""yes; then :
9694 cat >>confdefs.h
<<_ACEOF
9695 #define HAVE__BOOL 1
9701 if test $ac_cv_header_stdbool_h = yes; then
9703 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9708 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9709 if test "${ac_cv_c_const+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9718 /* FIXME: Include the comments suggested by Paul. */
9720 /* Ultrix mips cc rejects this. */
9721 typedef int charset[2];
9723 /* SunOS 4.1.1 cc rejects this. */
9724 char const *const *pcpcc;
9726 /* NEC SVR4.0.2 mips cc rejects this. */
9727 struct point {int x, y;};
9728 static struct point const zero = {0,0};
9729 /* AIX XL C 1.02.0.0 rejects this.
9730 It does not let you subtract one const X* pointer from another in
9731 an arm of an if-expression whose if-part is not a constant
9733 const char *g = "string";
9734 pcpcc = &g + (g ? g-g : 0);
9735 /* HPUX 7.0 cc rejects these. */
9737 ppc = (char**) pcpcc;
9738 pcpcc = (char const *const *) ppc;
9739 { /* SCO 3.2v4 cc rejects this. */
9741 char const *s = 0 ? (char *) 0 : (char const *) 0;
9746 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9748 const int *foo = &x[0];
9751 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9752 typedef const int *iptr;
9756 { /* AIX XL C 1.02.0.0 rejects this saying
9757 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9758 struct s { int j; const int *ap[3]; };
9759 struct s *b; b->j = 5;
9761 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9765 return !cs[0] && !zero.x;
9772 if ac_fn_c_try_compile
"$LINENO"; then :
9777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9780 $as_echo "$ac_cv_c_const" >&6; }
9781 if test $ac_cv_c_const = no
; then
9783 $as_echo "#define const /**/" >>confdefs.h
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9788 $as_echo_n "checking for inline... " >&6; }
9789 if test "${ac_cv_c_inline+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9793 for ac_kw
in inline __inline__ __inline
; do
9794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9798 static $ac_kw foo_t static_foo () {return 0; }
9799 $ac_kw foo_t foo () {return 0; }
9803 if ac_fn_c_try_compile
"$LINENO"; then :
9804 ac_cv_c_inline
=$ac_kw
9806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9807 test "$ac_cv_c_inline" != no
&& break
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9812 $as_echo "$ac_cv_c_inline" >&6; }
9814 case $ac_cv_c_inline in
9817 case $ac_cv_c_inline in
9819 *) ac_val
=$ac_cv_c_inline;;
9821 cat >>confdefs.h
<<_ACEOF
9823 #define inline $ac_val
9829 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9830 if test "x$ac_cv_type_mode_t" = x
""yes; then :
9834 cat >>confdefs.h
<<_ACEOF
9840 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9841 if test "x$ac_cv_type_off_t" = x
""yes; then :
9845 cat >>confdefs.h
<<_ACEOF
9846 #define off_t long int
9851 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9852 if test "x$ac_cv_type_size_t" = x
""yes; then :
9856 cat >>confdefs.h
<<_ACEOF
9857 #define size_t unsigned int
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9863 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9864 if test "${ac_cv_header_time+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 #include <sys/types.h>
9870 #include <sys/time.h>
9876 if ((struct tm *) 0)
9882 if ac_fn_c_try_compile
"$LINENO"; then :
9883 ac_cv_header_time
=yes
9885 ac_cv_header_time
=no
9887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9890 $as_echo "$ac_cv_header_time" >&6; }
9891 if test $ac_cv_header_time = yes; then
9893 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9898 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9899 if test "${ac_cv_struct_tm+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9911 int *p = &tm.tm_sec;
9917 if ac_fn_c_try_compile
"$LINENO"; then :
9918 ac_cv_struct_tm
=time.h
9920 ac_cv_struct_tm
=sys
/time.h
9922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9925 $as_echo "$ac_cv_struct_tm" >&6; }
9926 if test $ac_cv_struct_tm = sys
/time.h
; then
9928 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9933 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9934 if test "${ac_cv_type_uid_t+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 #include <sys/types.h>
9942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9943 $EGREP "uid_t" >/dev
/null
2>&1; then :
9944 ac_cv_type_uid_t
=yes
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9952 $as_echo "$ac_cv_type_uid_t" >&6; }
9953 if test $ac_cv_type_uid_t = no
; then
9955 $as_echo "#define uid_t int" >>confdefs.h
9958 $as_echo "#define gid_t int" >>confdefs.h
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9963 $as_echo_n "checking for working volatile... " >&6; }
9964 if test "${ac_cv_c_volatile+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9975 int * volatile y = (int *) 0;
9981 if ac_fn_c_try_compile
"$LINENO"; then :
9982 ac_cv_c_volatile
=yes
9986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9989 $as_echo "$ac_cv_c_volatile" >&6; }
9990 if test $ac_cv_c_volatile = no
; then
9992 $as_echo "#define volatile /**/" >>confdefs.h
9996 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9997 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
9999 cat >>confdefs.h
<<_ACEOF
10000 #define HAVE_PTRDIFF_T 1
10007 # Checks for library functions.
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10009 $as_echo_n "checking whether closedir returns void... " >&6; }
10010 if test "${ac_cv_func_closedir_void+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10013 if test "$cross_compiling" = yes; then :
10014 ac_cv_func_closedir_void
=yes
10016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 $ac_includes_default
10019 #include <$ac_header_dirent>
10020 #ifndef __cplusplus
10027 return closedir (opendir (".")) != 0;
10032 if ac_fn_c_try_run
"$LINENO"; then :
10033 ac_cv_func_closedir_void
=no
10035 ac_cv_func_closedir_void
=yes
10037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10043 $as_echo "$ac_cv_func_closedir_void" >&6; }
10044 if test $ac_cv_func_closedir_void = yes; then
10046 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10050 if test $ac_cv_c_compiler_gnu = yes; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10052 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10053 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10056 ac_pattern
="Autoconf.*'x'"
10057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
10064 ac_cv_prog_gcc_traditional
=yes
10066 ac_cv_prog_gcc_traditional
=no
10071 if test $ac_cv_prog_gcc_traditional = no
; then
10072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #include <termio.h>
10077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10078 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
10079 ac_cv_prog_gcc_traditional
=yes
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10086 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10087 if test $ac_cv_prog_gcc_traditional = yes; then
10088 CC
="$CC -traditional"
10092 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10093 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10097 cat >>confdefs.h
<<_ACEOF
10103 for ac_header
in vfork.h
10105 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10106 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10107 cat >>confdefs.h
<<_ACEOF
10108 #define HAVE_VFORK_H 1
10115 for ac_func
in fork vfork
10117 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10118 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10119 eval as_val
=\$
$as_ac_var
10120 if test "x$as_val" = x
""yes; then :
10121 cat >>confdefs.h
<<_ACEOF
10122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10128 if test "x$ac_cv_func_fork" = xyes
; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10130 $as_echo_n "checking for working fork... " >&6; }
10131 if test "${ac_cv_func_fork_works+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10134 if test "$cross_compiling" = yes; then :
10135 ac_cv_func_fork_works
=cross
10137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 $ac_includes_default
10144 /* By Ruediger Kuhlmann. */
10145 return fork () < 0;
10151 if ac_fn_c_try_run
"$LINENO"; then :
10152 ac_cv_func_fork_works
=yes
10154 ac_cv_func_fork_works
=no
10156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10162 $as_echo "$ac_cv_func_fork_works" >&6; }
10165 ac_cv_func_fork_works
=$ac_cv_func_fork
10167 if test "x$ac_cv_func_fork_works" = xcross
; then
10169 *-*-amigaos* |
*-*-msdosdjgpp*)
10170 # Override, as these systems have only a dummy fork() stub
10171 ac_cv_func_fork_works
=no
10174 ac_cv_func_fork_works
=yes
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10178 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10180 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10181 if test "x$ac_cv_func_vfork" = xyes
; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10183 $as_echo_n "checking for working vfork... " >&6; }
10184 if test "${ac_cv_func_vfork_works+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10187 if test "$cross_compiling" = yes; then :
10188 ac_cv_func_vfork_works
=cross
10190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 /* Thanks to Paul Eggert for this test. */
10193 $ac_includes_default
10194 #include <sys/wait.h>
10195 #ifdef HAVE_VFORK_H
10196 # include <vfork.h>
10198 /* On some sparc systems, changes by the child to local and incoming
10199 argument registers are propagated back to the parent. The compiler
10200 is told about this with #include <vfork.h>, but some compilers
10201 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10202 static variable whose address is put into a register that is
10203 clobbered by the vfork. */
10206 sparc_address_test (int arg)
10208 sparc_address_test (arg) int arg;
10211 static pid_t child;
10229 pid_t parent = getpid ();
10232 sparc_address_test (0);
10237 /* Here is another test for sparc vfork register problems. This
10238 test uses lots of local variables, at least as many local
10239 variables as main has allocated so far including compiler
10240 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10241 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10242 reuse the register of parent for one of the local variables,
10243 since it will think that parent can't possibly be used any more
10244 in this routine. Assigning to the local variable will thus
10245 munge parent in the parent process. */
10247 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10248 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10249 /* Convince the compiler that p..p7 are live; otherwise, it might
10250 use the same hardware register for all 8 local variables. */
10251 if (p != p1 || p != p2 || p != p3 || p != p4
10252 || p != p5 || p != p6 || p != p7)
10255 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10256 from child file descriptors. If the child closes a descriptor
10257 before it execs or exits, this munges the parent's descriptor
10258 as well. Test for this by closing stdout in the child. */
10259 _exit(close(fileno(stdout)) != 0);
10264 while (wait(&status) != child)
10267 /* Was there some problem with vforking? */
10270 /* Did the child fail? (This shouldn't happen.) */
10273 /* Did the vfork/compiler bug occur? */
10274 || parent != getpid()
10276 /* Did the file descriptor bug occur? */
10277 || fstat(fileno(stdout), &st) != 0
10282 if ac_fn_c_try_run
"$LINENO"; then :
10283 ac_cv_func_vfork_works
=yes
10285 ac_cv_func_vfork_works
=no
10287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10288 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10293 $as_echo "$ac_cv_func_vfork_works" >&6; }
10296 if test "x$ac_cv_func_fork_works" = xcross
; then
10297 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10302 if test "x$ac_cv_func_vfork_works" = xyes
; then
10304 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10308 $as_echo "#define vfork fork" >>confdefs.h
10311 if test "x$ac_cv_func_fork_works" = xyes
; then
10313 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10318 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10319 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10322 rm -f conftest.sym conftest.
file
10323 echo >conftest.
file
10324 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
10325 if test "$cross_compiling" = yes; then :
10326 ac_cv_func_lstat_dereferences_slashed_symlink
=no
10328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 $ac_includes_default
10335 /* Linux will dereference the symlink and fail, as required by POSIX.
10336 That is better in the sense that it means we will not
10337 have to compile and use the lstat wrapper. */
10338 return lstat ("conftest.sym/", &sbuf) == 0;
10343 if ac_fn_c_try_run
"$LINENO"; then :
10344 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
10346 ac_cv_func_lstat_dereferences_slashed_symlink
=no
10348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10353 # If the `ln -s' command failed, then we probably don't even
10354 # have an lstat function.
10355 ac_cv_func_lstat_dereferences_slashed_symlink
=no
10357 rm -f conftest.sym conftest.
file
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10361 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10363 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10365 cat >>confdefs.h
<<_ACEOF
10366 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10370 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
10371 case " $LIBOBJS " in
10372 *" lstat.$ac_objext "* ) ;;
10373 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
10379 if test x
$SYS != xwin32
; then :
10381 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10382 # -lseq on Dynix/PTX, -lgen on Unixware.
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10384 $as_echo_n "checking for library containing getmntent... " >&6; }
10385 if test "${ac_cv_search_getmntent+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10388 ac_func_search_save_LIBS
=$LIBS
10389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10402 return getmntent ();
10407 for ac_lib
in '' sun
seq gen
; do
10408 if test -z "$ac_lib"; then
10409 ac_res
="none required"
10412 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10414 if ac_fn_c_try_link
"$LINENO"; then :
10415 ac_cv_search_getmntent
=$ac_res
10417 rm -f core conftest.err conftest.
$ac_objext \
10419 if test "${ac_cv_search_getmntent+set}" = set; then :
10423 if test "${ac_cv_search_getmntent+set}" = set; then :
10426 ac_cv_search_getmntent
=no
10428 rm conftest.
$ac_ext
10429 LIBS
=$ac_func_search_save_LIBS
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10432 $as_echo "$ac_cv_search_getmntent" >&6; }
10433 ac_res
=$ac_cv_search_getmntent
10434 if test "$ac_res" != no
; then :
10435 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10436 ac_cv_func_getmntent
=yes
10438 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10441 ac_cv_func_getmntent
=no
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10446 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10447 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 if test "$cross_compiling" = yes; then :
10451 ac_cv_func_lstat_empty_string_bug
=yes
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 $ac_includes_default
10460 return lstat ("", &sbuf) == 0;
10465 if ac_fn_c_try_run
"$LINENO"; then :
10466 ac_cv_func_lstat_empty_string_bug
=no
10468 ac_cv_func_lstat_empty_string_bug
=yes
10470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10476 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10477 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10478 case " $LIBOBJS " in
10479 *" lstat.$ac_objext "* ) ;;
10480 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
10485 cat >>confdefs.h
<<_ACEOF
10486 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10492 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10493 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10496 rm -f conftest.sym conftest.
file
10497 echo >conftest.
file
10498 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
10499 if test "$cross_compiling" = yes; then :
10500 ac_cv_func_lstat_dereferences_slashed_symlink
=no
10502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 $ac_includes_default
10509 /* Linux will dereference the symlink and fail, as required by POSIX.
10510 That is better in the sense that it means we will not
10511 have to compile and use the lstat wrapper. */
10512 return lstat ("conftest.sym/", &sbuf) == 0;
10517 if ac_fn_c_try_run
"$LINENO"; then :
10518 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
10520 ac_cv_func_lstat_dereferences_slashed_symlink
=no
10522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10527 # If the `ln -s' command failed, then we probably don't even
10528 # have an lstat function.
10529 ac_cv_func_lstat_dereferences_slashed_symlink
=no
10531 rm -f conftest.sym conftest.
file
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10535 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10537 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10539 cat >>confdefs.h
<<_ACEOF
10540 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10544 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
10545 case " $LIBOBJS " in
10546 *" lstat.$ac_objext "* ) ;;
10547 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10556 $as_echo_n "checking for working memcmp... " >&6; }
10557 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10558 $as_echo_n "(cached) " >&6
10560 if test "$cross_compiling" = yes; then :
10561 ac_cv_func_memcmp_working
=no
10563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 $ac_includes_default
10570 /* Some versions of memcmp are not 8-bit clean. */
10571 char c0 = '\100', c1 = '\200', c2 = '\201';
10572 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10575 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10576 or more and with at least one buffer not starting on a 4-byte boundary.
10577 William Lewis provided this test program. */
10582 for (i = 0; i < 4; i++)
10586 strcpy (a, "--------01111111");
10587 strcpy (b, "--------10000000");
10588 if (memcmp (a, b, 16) >= 0)
10598 if ac_fn_c_try_run
"$LINENO"; then :
10599 ac_cv_func_memcmp_working
=yes
10601 ac_cv_func_memcmp_working
=no
10603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10609 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10610 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
10611 *" memcmp.$ac_objext "* ) ;;
10612 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
10617 for ac_header
in sys
/select.h sys
/socket.h
10619 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10621 eval as_val
=\$
$as_ac_Header
10622 if test "x$as_val" = x
""yes; then :
10623 cat >>confdefs.h
<<_ACEOF
10624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10632 $as_echo_n "checking types of arguments for select... " >&6; }
10633 if test "${ac_cv_func_select_args+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10636 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
10637 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10638 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
10639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 $ac_includes_default
10642 #ifdef HAVE_SYS_SELECT_H
10643 # include <sys/select.h>
10645 #ifdef HAVE_SYS_SOCKET_H
10646 # include <sys/socket.h>
10652 extern int select ($ac_arg1,
10653 $ac_arg234, $ac_arg234, $ac_arg234,
10659 if ac_fn_c_try_compile
"$LINENO"; then :
10660 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10666 # Provide a safe default value.
10667 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10671 $as_echo "$ac_cv_func_select_args" >&6; }
10672 ac_save_IFS
=$IFS; IFS
=','
10673 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10677 cat >>confdefs.h
<<_ACEOF
10678 #define SELECT_TYPE_ARG1 $1
10682 cat >>confdefs.h
<<_ACEOF
10683 #define SELECT_TYPE_ARG234 ($2)
10687 cat >>confdefs.h
<<_ACEOF
10688 #define SELECT_TYPE_ARG5 ($3)
10693 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10696 ac_cv_func_setvbuf_reversed
=no
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10701 $as_echo_n "checking return type of signal handlers... " >&6; }
10702 if test "${ac_cv_type_signal+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #include <sys/types.h>
10708 #include <signal.h>
10713 return *(signal (0, 0)) (0) == 1;
10718 if ac_fn_c_try_compile
"$LINENO"; then :
10719 ac_cv_type_signal
=int
10721 ac_cv_type_signal
=void
10723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10726 $as_echo "$ac_cv_type_signal" >&6; }
10728 cat >>confdefs.h
<<_ACEOF
10729 #define RETSIGTYPE $ac_cv_type_signal
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10734 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10735 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10738 if test "$cross_compiling" = yes; then :
10739 ac_cv_func_stat_empty_string_bug
=yes
10741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 $ac_includes_default
10748 return stat ("", &sbuf) == 0;
10753 if ac_fn_c_try_run
"$LINENO"; then :
10754 ac_cv_func_stat_empty_string_bug
=no
10756 ac_cv_func_stat_empty_string_bug
=yes
10758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10764 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10765 if test $ac_cv_func_stat_empty_string_bug = yes; then
10766 case " $LIBOBJS " in
10767 *" stat.$ac_objext "* ) ;;
10768 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
10773 cat >>confdefs.h
<<_ACEOF
10774 #define HAVE_STAT_EMPTY_STRING_BUG 1
10779 for ac_func
in strftime
10781 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
10782 if test "x$ac_cv_func_strftime" = x
""yes; then :
10783 cat >>confdefs.h
<<_ACEOF
10784 #define HAVE_STRFTIME 1
10788 # strftime is in -lintl on SCO UNIX.
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10790 $as_echo_n "checking for strftime in -lintl... " >&6; }
10791 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10794 ac_check_lib_save_LIBS
=$LIBS
10795 LIBS
="-lintl $LIBS"
10796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10809 return strftime ();
10814 if ac_fn_c_try_link
"$LINENO"; then :
10815 ac_cv_lib_intl_strftime
=yes
10817 ac_cv_lib_intl_strftime
=no
10819 rm -f core conftest.err conftest.
$ac_objext \
10820 conftest
$ac_exeext conftest.
$ac_ext
10821 LIBS
=$ac_check_lib_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10824 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10825 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
10826 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10828 LIBS
="-lintl $LIBS"
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10835 $as_echo_n "checking for working strtod... " >&6; }
10836 if test "${ac_cv_func_strtod+set}" = set; then :
10837 $as_echo_n "(cached) " >&6
10839 if test "$cross_compiling" = yes; then :
10840 ac_cv_func_strtod
=no
10842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10845 $ac_includes_default
10853 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10854 char *string = " +69";
10857 value = strtod (string, &term);
10858 if (value != 69 || term != (string + 4))
10863 /* Under Solaris 2.4, strtod returns the wrong value for the
10864 terminating character under some conditions. */
10865 char *string = "NaN";
10867 strtod (string, &term);
10868 if (term != string && *(term - 1) == 0)
10875 if ac_fn_c_try_run
"$LINENO"; then :
10876 ac_cv_func_strtod
=yes
10878 ac_cv_func_strtod
=no
10880 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10881 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10886 $as_echo "$ac_cv_func_strtod" >&6; }
10887 if test $ac_cv_func_strtod = no
; then
10888 case " $LIBOBJS " in
10889 *" strtod.$ac_objext "* ) ;;
10890 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
10894 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
10895 if test "x$ac_cv_func_pow" = x
""yes; then :
10899 if test $ac_cv_func_pow = no
; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10901 $as_echo_n "checking for pow in -lm... " >&6; }
10902 if test "${ac_cv_lib_m_pow+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10905 ac_check_lib_save_LIBS
=$LIBS
10907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10925 if ac_fn_c_try_link
"$LINENO"; then :
10926 ac_cv_lib_m_pow
=yes
10930 rm -f core conftest.err conftest.
$ac_objext \
10931 conftest
$ac_exeext conftest.
$ac_ext
10932 LIBS
=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10935 $as_echo "$ac_cv_lib_m_pow" >&6; }
10936 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10940 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10947 for ac_func
in vprintf
10949 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
10950 if test "x$ac_cv_func_vprintf" = x
""yes; then :
10951 cat >>confdefs.h
<<_ACEOF
10952 #define HAVE_VPRINTF 1
10955 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
10956 if test "x$ac_cv_func__doprnt" = x
""yes; then :
10958 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10966 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10969 configure cannot check whether malloc() and realloc() are GNU libc
10970 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10971 run configure with the --without-gnu-malloc switch." >&5
10972 $as_echo "$as_me: WARNING:
10973 configure cannot check whether malloc() and realloc() are GNU libc
10974 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10975 run configure with the --without-gnu-malloc switch." >&2;}
10976 _mule_warning_8
=yes
10977 _mule_has_warnings
=yes
10979 ac_cv_func_malloc_0_nonnull
=yes
10980 ac_cv_func_realloc_0_nonnull
=yes
10983 for ac_header
in stdlib.h
10985 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10986 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
10987 cat >>confdefs.h
<<_ACEOF
10988 #define HAVE_STDLIB_H 1
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10996 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10997 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
11000 if test "$cross_compiling" = yes; then :
11001 ac_cv_func_malloc_0_nonnull
=no
11003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11006 # include <stdlib.h>
11014 return ! malloc (0);
11019 if ac_fn_c_try_run
"$LINENO"; then :
11020 ac_cv_func_malloc_0_nonnull
=yes
11022 ac_cv_func_malloc_0_nonnull
=no
11024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11030 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11031 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11033 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11036 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11038 case " $LIBOBJS " in
11039 *" malloc.$ac_objext "* ) ;;
11040 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
11045 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11050 for ac_header
in stdlib.h
11052 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11053 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
11054 cat >>confdefs.h
<<_ACEOF
11055 #define HAVE_STDLIB_H 1
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11063 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11064 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11067 if test "$cross_compiling" = yes; then :
11068 ac_cv_func_realloc_0_nonnull
=no
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11073 # include <stdlib.h>
11081 return ! realloc (0, 0);
11086 if ac_fn_c_try_run
"$LINENO"; then :
11087 ac_cv_func_realloc_0_nonnull
=yes
11089 ac_cv_func_realloc_0_nonnull
=no
11091 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11092 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11097 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11098 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11100 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11103 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11105 case " $LIBOBJS " in
11106 *" realloc.$ac_objext "* ) ;;
11107 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
11112 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11117 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
11119 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11121 eval as_val
=\$
$as_ac_var
11122 if test "x$as_val" = x
""yes; then :
11123 cat >>confdefs.h
<<_ACEOF
11124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11130 #-------------------------------------------------------------------------------
11131 # End of autoscan stuff
11132 #-------------------------------------------------------------------------------
11134 for ac_func
in mkdir getrlimit setrlimit getopt_long
11136 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11138 eval as_val
=\$
$as_ac_var
11139 if test "x$as_val" = x
""yes; then :
11140 cat >>confdefs.h
<<_ACEOF
11141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11151 for ac_header
in $ac_header_list
11153 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11156 eval as_val
=\$
$as_ac_Header
11157 if test "x$as_val" = x
""yes; then :
11158 cat >>confdefs.h
<<_ACEOF
11159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11172 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11174 # Check whether --enable-mmap was given.
11175 if test "${enable_mmap+set}" = set; then :
11176 enableval
=$enable_mmap;
11181 if test ${enable_mmap:-no} = yes; then :
11183 for ac_header
in sys
/mman.h
11185 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11186 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
11187 cat >>confdefs.h
<<_ACEOF
11188 #define HAVE_SYS_MMAN_H 1
11196 for ac_func
in getpagesize
11198 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11199 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
11200 cat >>confdefs.h
<<_ACEOF
11201 #define HAVE_GETPAGESIZE 1
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11208 $as_echo_n "checking for working mmap... " >&6; }
11209 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11212 if test "$cross_compiling" = yes; then :
11213 ac_cv_func_mmap_fixed_mapped
=no
11215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11217 $ac_includes_default
11218 /* malloc might have been renamed as rpl_malloc. */
11221 /* Thanks to Mike Haertel and Jim Avera for this test.
11222 Here is a matrix of mmap possibilities:
11223 mmap private not fixed
11224 mmap private fixed at somewhere currently unmapped
11225 mmap private fixed at somewhere already mapped
11226 mmap shared not fixed
11227 mmap shared fixed at somewhere currently unmapped
11228 mmap shared fixed at somewhere already mapped
11229 For private mappings, we should verify that changes cannot be read()
11230 back from the file, nor mmap's back from the file at a different
11231 address. (There have been systems where private was not correctly
11232 implemented like the infamous i386 svr4.0, and systems where the
11233 VM page cache was not coherent with the file system buffer cache
11234 like early versions of FreeBSD and possibly contemporary NetBSD.)
11235 For shared mappings, we should conversely verify that changes get
11236 propagated back to all the places they're supposed to be.
11238 Grep wants private fixed already mapped.
11239 The main things grep needs to know about mmap are:
11240 * does it exist and is it safe to write into the mmap'd area
11241 * how to use it (BSD variants) */
11244 #include <sys/mman.h>
11246 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11250 /* This mess was copied from the GNU getpagesize.h. */
11251 #ifndef HAVE_GETPAGESIZE
11252 # ifdef _SC_PAGESIZE
11253 # define getpagesize() sysconf(_SC_PAGESIZE)
11254 # else /* no _SC_PAGESIZE */
11255 # ifdef HAVE_SYS_PARAM_H
11256 # include <sys/param.h>
11257 # ifdef EXEC_PAGESIZE
11258 # define getpagesize() EXEC_PAGESIZE
11259 # else /* no EXEC_PAGESIZE */
11261 # define getpagesize() NBPG * CLSIZE
11264 # endif /* no CLSIZE */
11265 # else /* no NBPG */
11267 # define getpagesize() NBPC
11268 # else /* no NBPC */
11270 # define getpagesize() PAGESIZE
11271 # endif /* PAGESIZE */
11272 # endif /* no NBPC */
11273 # endif /* no NBPG */
11274 # endif /* no EXEC_PAGESIZE */
11275 # else /* no HAVE_SYS_PARAM_H */
11276 # define getpagesize() 8192 /* punt totally */
11277 # endif /* no HAVE_SYS_PARAM_H */
11278 # endif /* no _SC_PAGESIZE */
11280 #endif /* no HAVE_GETPAGESIZE */
11285 char *data, *data2, *data3;
11289 pagesize = getpagesize ();
11291 /* First, make a file with some known garbage in it. */
11292 data = (char *) malloc (pagesize);
11295 for (i = 0; i < pagesize; ++i)
11296 *(data + i) = rand ();
11298 fd = creat ("conftest.mmap", 0600);
11301 if (write (fd, data, pagesize) != pagesize)
11305 /* Next, check that the tail of a page is zero-filled. File must have
11306 non-zero length, otherwise we risk SIGBUS for entire page. */
11307 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11311 if (write (fd2, data2, 1) != 1)
11313 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11314 if (data2 == MAP_FAILED)
11316 for (i = 0; i < pagesize; ++i)
11320 if (munmap (data2, pagesize))
11323 /* Next, try to mmap the file at a fixed address which already has
11324 something else allocated at it. If we can, also make sure that
11325 we see the same garbage. */
11326 fd = open ("conftest.mmap", O_RDWR);
11329 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11330 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11332 for (i = 0; i < pagesize; ++i)
11333 if (*(data + i) != *(data2 + i))
11336 /* Finally, make sure that changes to the mapped area do not
11337 percolate back to the file as seen by read(). (This is a bug on
11338 some variants of i386 svr4.0.) */
11339 for (i = 0; i < pagesize; ++i)
11340 *(data2 + i) = *(data2 + i) + 1;
11341 data3 = (char *) malloc (pagesize);
11344 if (read (fd, data3, pagesize) != pagesize)
11346 for (i = 0; i < pagesize; ++i)
11347 if (*(data + i) != *(data3 + i))
11353 if ac_fn_c_try_run
"$LINENO"; then :
11354 ac_cv_func_mmap_fixed_mapped
=yes
11356 ac_cv_func_mmap_fixed_mapped
=no
11358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11364 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11365 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11367 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11370 rm -f conftest.mmap conftest.txt
11372 for ac_func
in munmap sysconf
11374 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11375 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11376 eval as_val
=\$
$as_ac_var
11377 if test "x$as_val" = x
""yes; then :
11378 cat >>confdefs.h
<<_ACEOF
11379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11385 if test $ac_cv_func_sysconf = yes; then :
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11388 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11393 #include <unistd.h>
11399 return sysconf(_SC_PAGESIZE);
11406 if ac_fn_c_try_link
"$LINENO"; then :
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11409 $as_echo "_SC_PAGESIZE" >&6; }
11411 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11420 #include <unistd.h>
11426 return sysconf(_SC_PAGE_SIZE);
11433 if ac_fn_c_try_link
"$LINENO"; then :
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11436 $as_echo "_SC_PAGE_SIZE" >&6; }
11438 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11444 $as_echo "none" >&6; }
11447 rm -f core conftest.err conftest.
$ac_objext \
11448 conftest
$ac_exeext conftest.
$ac_ext
11451 rm -f core conftest.err conftest.
$ac_objext \
11452 conftest
$ac_exeext conftest.
$ac_ext
11458 # fake the result of the test for munmap() for the gettext macros
11459 ac_cv_func_munmap
=no
11465 mule_backup_CPPFLAGS
="$CPPFLAGS"
11466 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
11467 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11468 if test "x$ac_cv_have_decl_strerror_r" = x
""yes; then :
11474 cat >>confdefs.h
<<_ACEOF
11475 #define HAVE_DECL_STRERROR_R $ac_have_decl
11478 for ac_func
in strerror_r
11480 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11481 if test "x$ac_cv_func_strerror_r" = x
""yes; then :
11482 cat >>confdefs.h
<<_ACEOF
11483 #define HAVE_STRERROR_R 1
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11490 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11491 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11495 ac_cv_func_strerror_r_char_p
=no
11496 if test $ac_cv_have_decl_strerror_r = yes; then
11497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 $ac_includes_default
11505 char x = *strerror_r (0, buf, sizeof buf);
11506 char *p = strerror_r (0, buf, sizeof buf);
11513 if ac_fn_c_try_compile
"$LINENO"; then :
11514 ac_cv_func_strerror_r_char_p
=yes
11516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11518 # strerror_r is not declared. Choose between
11519 # systems that have relatively inaccessible declarations for the
11520 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11521 # former has a strerror_r that returns char*, while the latter
11522 # has a strerror_r that returns `int'.
11523 # This test should segfault on the DEC system.
11524 if test "$cross_compiling" = yes; then :
11527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 extern char *strerror_r ();
11535 char x = *strerror_r (0, buf, sizeof buf);
11536 return ! isalpha (x);
11541 if ac_fn_c_try_run
"$LINENO"; then :
11542 ac_cv_func_strerror_r_char_p
=yes
11544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11552 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11553 if test $ac_cv_func_strerror_r_char_p = yes; then
11555 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11559 CPPFLAGS
="$mule_backup_CPPFLAGS"
11561 # Look for a way to preallocate disk space for files.
11562 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11565 $as_echo_n "checking for fallocate... " >&6; }
11566 mule_backup_CPPFLAGS
="$CPPFLAGS"
11567 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
11568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11572 #define _GNU_SOURCE
11573 #ifdef HAVE_FCNTL_H
11574 # include <fcntl.h>
11576 #include <linux/falloc.h>
11582 fallocate(0, 0, 0, 0);
11589 if ac_fn_c_try_link
"$LINENO"; then :
11592 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11595 $as_echo "yes" >&6; }
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11603 rm -f core conftest.err conftest.
$ac_objext \
11604 conftest
$ac_exeext conftest.
$ac_ext
11605 CPPFLAGS
="$mule_backup_CPPFLAGS"
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11609 $as_echo_n "checking for SYS_fallocate... " >&6; }
11610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11614 #include <sys/syscall.h>
11615 #include <sys/types.h>
11616 #include <unistd.h>
11622 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11629 if ac_fn_c_try_link
"$LINENO"; then :
11632 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11635 $as_echo "yes" >&6; }
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11643 rm -f core conftest.err conftest.
$ac_objext \
11644 conftest
$ac_exeext conftest.
$ac_ext
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11647 $as_echo_n "checking for posix_fallocate... " >&6; }
11648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11652 #define _XOPEN_SOURCE 600
11653 #include <stdlib.h>
11654 #ifdef HAVE_FCNTL_H
11655 # include <fcntl.h>
11662 posix_fallocate(0, 0, 0);
11669 if ac_fn_c_try_link
"$LINENO"; then :
11672 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11683 rm -f core conftest.err conftest.
$ac_objext \
11684 conftest
$ac_exeext conftest.
$ac_ext
11688 # Checking Native Language Support
11692 if test -n "$ac_aux_dir"; then
11693 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
11695 if test -z "$MKINSTALLDIRS"; then
11696 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
11703 # Extract the first word of "msgfmt", so it can be a program name with args.
11704 set dummy msgfmt
; ac_word
=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11712 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
11715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11716 for ac_dir
in $PATH; do
11717 test -z "$ac_dir" && ac_dir
=.
11718 if test -f $ac_dir/$ac_word; then
11719 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
11720 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11721 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
11727 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
11731 MSGFMT
="$ac_cv_path_MSGFMT"
11732 if test "$MSGFMT" != ":"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11734 $as_echo "$MSGFMT" >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11740 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11741 set dummy gmsgfmt
; ac_word
=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11749 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
11752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11753 for as_dir
in $PATH
11756 test -z "$as_dir" && as_dir
=.
11757 for ac_exec_ext
in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
11771 GMSGFMT
=$ac_cv_path_GMSGFMT
11772 if test -n "$GMSGFMT"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11774 $as_echo "$GMSGFMT" >&6; }
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11782 # Extract the first word of "xgettext", so it can be a program name with args.
11783 set dummy xgettext
; ac_word
=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11789 case "$XGETTEXT" in
11791 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
11794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11795 for ac_dir
in $PATH; do
11796 test -z "$ac_dir" && ac_dir
=.
11797 if test -f $ac_dir/$ac_word; then
11798 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
11799 (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
11800 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
11806 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
11810 XGETTEXT
="$ac_cv_path_XGETTEXT"
11811 if test "$XGETTEXT" != ":"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11813 $as_echo "$XGETTEXT" >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11821 # Extract the first word of "msgmerge", so it can be a program name with args.
11822 set dummy msgmerge
; ac_word
=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11828 case "$MSGMERGE" in
11830 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
11833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11834 for ac_dir
in $PATH; do
11835 test -z "$ac_dir" && ac_dir
=.
11836 if test -f $ac_dir/$ac_word; then
11837 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
11838 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
11844 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
11848 MSGMERGE
="$ac_cv_path_MSGMERGE"
11849 if test "$MSGMERGE" != ":"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11851 $as_echo "$MSGMERGE" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11858 if test "$GMSGFMT" != ":"; then
11859 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
11860 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11863 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11865 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11870 if test "$XGETTEXT" != ":"; then
11871 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
11872 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11876 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11882 ac_config_commands
="$ac_config_commands default-1"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11887 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11888 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11891 ac_check_lib_save_LIBS
=$LIBS
11892 LIBS
="-lcposix $LIBS"
11893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11906 return strerror ();
11911 if ac_fn_c_try_link
"$LINENO"; then :
11912 ac_cv_lib_cposix_strerror
=yes
11914 ac_cv_lib_cposix_strerror
=no
11916 rm -f core conftest.err conftest.
$ac_objext \
11917 conftest
$ac_exeext conftest.
$ac_ext
11918 LIBS
=$ac_check_lib_save_LIBS
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11921 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11922 if test "x$ac_cv_lib_cposix_strerror" = x
""yes; then :
11923 LIBS
="$LIBS -lcposix"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11930 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11931 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 #include <features.h>
11938 #ifdef __GNU_LIBRARY__
11939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
11947 ac_cv_gnu_library_2_1
=yes
11949 ac_cv_gnu_library_2_1
=no
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11957 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11959 GLIBC21
="$ac_cv_gnu_library_2_1"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11965 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11966 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11970 if test "$cross_compiling" = yes; then :
11972 # Guess based on the CPU.
11973 case "$host_cpu" in
11974 alpha
* | i3456786 | m68k | s390
*)
11975 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
11977 gt_cv_int_divbyzero_sigfpe
="guessing no";;
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 #include <stdlib.h>
11985 #include <signal.h>
11989 sigfpe_handler (int sig)
11991 sigfpe_handler (sig) int sig;
11994 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11995 exit (sig != SIGFPE);
12005 signal (SIGFPE, sigfpe_handler);
12006 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12007 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12008 signal (SIGTRAP, sigfpe_handler);
12010 /* Linux/SPARC yields signal SIGILL. */
12011 #if defined (__sparc__) && defined (__linux__)
12012 signal (SIGILL, sigfpe_handler);
12021 if ac_fn_c_try_run
"$LINENO"; then :
12022 gt_cv_int_divbyzero_sigfpe
=yes
12024 gt_cv_int_divbyzero_sigfpe
=no
12026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12033 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12034 case "$gt_cv_int_divbyzero_sigfpe" in
12039 cat >>confdefs.h
<<_ACEOF
12040 #define INTDIV0_RAISES_SIGFPE $value
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12046 $as_echo_n "checking for inttypes.h... " >&6; }
12047 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 #include <sys/types.h>
12053 #include <inttypes.h>
12057 uintmax_t i = (uintmax_t) -1;
12062 if ac_fn_c_try_compile
"$LINENO"; then :
12063 jm_ac_cv_header_inttypes_h
=yes
12065 jm_ac_cv_header_inttypes_h
=no
12067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12070 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12071 if test $jm_ac_cv_header_inttypes_h = yes; then
12073 cat >>confdefs.h
<<_ACEOF
12074 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12081 $as_echo_n "checking for stdint.h... " >&6; }
12082 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #include <sys/types.h>
12088 #include <stdint.h>
12092 uintmax_t i = (uintmax_t) -1;
12097 if ac_fn_c_try_compile
"$LINENO"; then :
12098 jm_ac_cv_header_stdint_h
=yes
12100 jm_ac_cv_header_stdint_h
=no
12102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12105 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12106 if test $jm_ac_cv_header_stdint_h = yes; then
12108 cat >>confdefs.h
<<_ACEOF
12109 #define HAVE_STDINT_H_WITH_UINTMAX 1
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12116 $as_echo_n "checking for unsigned long long... " >&6; }
12117 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122 unsigned long long ull = 1; int i = 63;
12126 unsigned long long ullmax = (unsigned long long) -1;
12127 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12132 if ac_fn_c_try_link
"$LINENO"; then :
12133 ac_cv_type_unsigned_long_long
=yes
12135 ac_cv_type_unsigned_long_long
=no
12137 rm -f core conftest.err conftest.
$ac_objext \
12138 conftest
$ac_exeext conftest.
$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12141 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12142 if test $ac_cv_type_unsigned_long_long = yes; then
12144 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12151 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
12153 test $ac_cv_type_unsigned_long_long = yes \
12154 && ac_type
='unsigned long long' \
12155 || ac_type
='unsigned long'
12157 cat >>confdefs.h
<<_ACEOF
12158 #define uintmax_t $ac_type
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12165 $as_echo_n "checking for inttypes.h... " >&6; }
12166 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 #include <sys/types.h>
12173 #include <inttypes.h>
12182 if ac_fn_c_try_compile
"$LINENO"; then :
12183 gt_cv_header_inttypes_h
=yes
12185 gt_cv_header_inttypes_h
=no
12187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12191 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12192 if test $gt_cv_header_inttypes_h = yes; then
12194 cat >>confdefs.h
<<_ACEOF
12195 #define HAVE_INTTYPES_H 1
12202 if test $gt_cv_header_inttypes_h = yes; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12204 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12205 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #include <inttypes.h>
12224 if ac_fn_c_try_compile
"$LINENO"; then :
12225 gt_cv_inttypes_pri_broken
=no
12227 gt_cv_inttypes_pri_broken
=yes
12229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12233 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12235 if test "$gt_cv_inttypes_pri_broken" = yes; then
12237 cat >>confdefs.h
<<_ACEOF
12238 #define PRI_MACROS_BROKEN 1
12244 if test "X$prefix" = "XNONE"; then
12245 acl_final_prefix
="$ac_default_prefix"
12247 acl_final_prefix
="$prefix"
12249 if test "X$exec_prefix" = "XNONE"; then
12250 acl_final_exec_prefix
='${prefix}'
12252 acl_final_exec_prefix
="$exec_prefix"
12254 acl_save_prefix
="$prefix"
12255 prefix
="$acl_final_prefix"
12256 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12257 prefix
="$acl_save_prefix"
12260 # Check whether --with-gnu-ld was given.
12261 if test "${with_gnu_ld+set}" = set; then :
12262 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12268 if test "$GCC" = yes; then
12269 # Check if gcc -print-prog-name=ld gives a path.
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12271 $as_echo_n "checking for ld used by GCC... " >&6; }
12274 # gcc leaves a trailing carriage return which upsets mingw
12275 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12277 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12280 # Accept absolute paths.
12281 [\\/]* |
[A-Za-z
]:[\\/]*)
12282 re_direlt
='/[^/][^/]*/\.\./'
12283 # Canonicalize the path of ld
12284 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
12285 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
12286 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12288 test -z "$LD" && LD
="$ac_prog"
12291 # If it fails, then pretend we aren't using GCC.
12295 # If it is relative, then search for the first ld in PATH.
12296 with_gnu_ld
=unknown
12299 elif test "$with_gnu_ld" = yes; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12301 $as_echo_n "checking for GNU ld... " >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12304 $as_echo_n "checking for non-GNU ld... " >&6; }
12306 if test "${acl_cv_path_LD+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12309 if test -z "$LD"; then
12310 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12311 for ac_dir
in $PATH; do
12312 test -z "$ac_dir" && ac_dir
=.
12313 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12314 acl_cv_path_LD
="$ac_dir/$ac_prog"
12315 # Check to see if the program is GNU ld. I'd rather use --version,
12316 # but apparently some GNU ld's only accept -v.
12317 # Break only if it was the GNU/non-GNU ld that we prefer.
12318 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
12319 test "$with_gnu_ld" != no
&& break
12321 test "$with_gnu_ld" != yes && break
12327 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12331 LD
="$acl_cv_path_LD"
12332 if test -n "$LD"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12334 $as_echo "$LD" >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12339 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12341 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12342 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12343 $as_echo_n "(cached) " >&6
12345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12346 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
12347 acl_cv_prog_gnu_ld
=yes
12349 acl_cv_prog_gnu_ld
=no
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12353 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12354 with_gnu_ld
=$acl_cv_prog_gnu_ld
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12359 $as_echo_n "checking for shared library run path origin... " >&6; }
12360 if test "${acl_cv_rpath+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12364 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12365 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12367 rm -f .
/conftest.sh
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12372 $as_echo "$acl_cv_rpath" >&6; }
12374 libext
="$acl_cv_libext"
12375 shlibext
="$acl_cv_shlibext"
12376 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12377 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12378 hardcode_direct
="$acl_cv_hardcode_direct"
12379 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12380 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
12381 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
12382 # Check whether --enable-rpath was given.
12383 if test "${enable_rpath+set}" = set; then :
12384 enableval
=$enable_rpath; :
12398 acl_save_prefix
="$prefix"
12399 prefix
="$acl_final_prefix"
12400 acl_save_exec_prefix
="$exec_prefix"
12401 exec_prefix
="$acl_final_exec_prefix"
12403 eval additional_includedir
=\"$includedir\"
12404 eval additional_libdir
=\"$libdir\"
12406 exec_prefix
="$acl_save_exec_prefix"
12407 prefix
="$acl_save_prefix"
12410 # Check whether --with-libiconv-prefix was given.
12411 if test "${with_libiconv_prefix+set}" = set; then :
12412 withval
=$with_libiconv_prefix;
12413 if test "X$withval" = "Xno"; then
12416 if test "X$withval" = "X"; then
12418 acl_save_prefix
="$prefix"
12419 prefix
="$acl_final_prefix"
12420 acl_save_exec_prefix
="$exec_prefix"
12421 exec_prefix
="$acl_final_exec_prefix"
12423 eval additional_includedir
=\"$includedir\"
12424 eval additional_libdir
=\"$libdir\"
12426 exec_prefix
="$acl_save_exec_prefix"
12427 prefix
="$acl_save_prefix"
12430 additional_includedir
="$withval/include"
12431 additional_libdir
="$withval/lib"
12442 names_already_handled
=
12443 names_next_round
='iconv '
12444 while test -n "$names_next_round"; do
12445 names_this_round
="$names_next_round"
12447 for name
in $names_this_round; do
12449 for n
in $names_already_handled; do
12450 if test "$n" = "$name"; then
12451 already_handled
=yes
12455 if test -z "$already_handled"; then
12456 names_already_handled
="$names_already_handled $name"
12457 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12458 eval value
=\"\
$HAVE_LIB$uppername\"
12459 if test -n "$value"; then
12460 if test "$value" = yes; then
12461 eval value
=\"\
$LIB$uppername\"
12462 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
12463 eval value
=\"\
$LTLIB$uppername\"
12464 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
12473 if test $use_additional = yes; then
12474 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12475 found_dir
="$additional_libdir"
12476 found_so
="$additional_libdir/lib$name.$shlibext"
12477 if test -f "$additional_libdir/lib$name.la"; then
12478 found_la
="$additional_libdir/lib$name.la"
12481 if test -f "$additional_libdir/lib$name.$libext"; then
12482 found_dir
="$additional_libdir"
12483 found_a
="$additional_libdir/lib$name.$libext"
12484 if test -f "$additional_libdir/lib$name.la"; then
12485 found_la
="$additional_libdir/lib$name.la"
12490 if test "X$found_dir" = "X"; then
12491 for x
in $LDFLAGS $LTLIBICONV; do
12493 acl_save_prefix
="$prefix"
12494 prefix
="$acl_final_prefix"
12495 acl_save_exec_prefix
="$exec_prefix"
12496 exec_prefix
="$acl_final_exec_prefix"
12498 exec_prefix
="$acl_save_exec_prefix"
12499 prefix
="$acl_save_prefix"
12503 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12504 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12506 found_so
="$dir/lib$name.$shlibext"
12507 if test -f "$dir/lib$name.la"; then
12508 found_la
="$dir/lib$name.la"
12511 if test -f "$dir/lib$name.$libext"; then
12513 found_a
="$dir/lib$name.$libext"
12514 if test -f "$dir/lib$name.la"; then
12515 found_la
="$dir/lib$name.la"
12521 if test "X$found_dir" != "X"; then
12526 if test "X$found_dir" != "X"; then
12527 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12528 if test "X$found_so" != "X"; then
12529 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12530 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12533 for x
in $ltrpathdirs; do
12534 if test "X$x" = "X$found_dir"; then
12539 if test -z "$haveit"; then
12540 ltrpathdirs
="$ltrpathdirs $found_dir"
12542 if test "$hardcode_direct" = yes; then
12543 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12545 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12546 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12548 for x
in $rpathdirs; do
12549 if test "X$x" = "X$found_dir"; then
12554 if test -z "$haveit"; then
12555 rpathdirs
="$rpathdirs $found_dir"
12559 for x
in $LDFLAGS $LIBICONV; do
12561 acl_save_prefix
="$prefix"
12562 prefix
="$acl_final_prefix"
12563 acl_save_exec_prefix
="$exec_prefix"
12564 exec_prefix
="$acl_final_exec_prefix"
12566 exec_prefix
="$acl_save_exec_prefix"
12567 prefix
="$acl_save_prefix"
12569 if test "X$x" = "X-L$found_dir"; then
12574 if test -z "$haveit"; then
12575 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12577 if test "$hardcode_minus_L" != no
; then
12578 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12580 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12586 if test "X$found_a" != "X"; then
12587 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
12589 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12592 additional_includedir
=
12593 case "$found_dir" in
12595 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12596 additional_includedir
="$basedir/include"
12599 if test "X$additional_includedir" != "X"; then
12600 if test "X$additional_includedir" != "X/usr/include"; then
12602 if test "X$additional_includedir" = "X/usr/local/include"; then
12603 if test -n "$GCC"; then
12605 linux
*) haveit
=yes;;
12609 if test -z "$haveit"; then
12610 for x
in $CPPFLAGS $INCICONV; do
12612 acl_save_prefix
="$prefix"
12613 prefix
="$acl_final_prefix"
12614 acl_save_exec_prefix
="$exec_prefix"
12615 exec_prefix
="$acl_final_exec_prefix"
12617 exec_prefix
="$acl_save_exec_prefix"
12618 prefix
="$acl_save_prefix"
12620 if test "X$x" = "X-I$additional_includedir"; then
12625 if test -z "$haveit"; then
12626 if test -d "$additional_includedir"; then
12627 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12633 if test -n "$found_la"; then
12634 save_libdir
="$libdir"
12635 case "$found_la" in
12636 */* |
*\\*) .
"$found_la" ;;
12637 *) .
"./$found_la" ;;
12639 libdir
="$save_libdir"
12640 for dep
in $dependency_libs; do
12643 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12644 if test "X$additional_libdir" != "X/usr/lib"; then
12646 if test "X$additional_libdir" = "X/usr/local/lib"; then
12647 if test -n "$GCC"; then
12649 linux
*) haveit
=yes;;
12653 if test -z "$haveit"; then
12655 for x
in $LDFLAGS $LIBICONV; do
12657 acl_save_prefix
="$prefix"
12658 prefix
="$acl_final_prefix"
12659 acl_save_exec_prefix
="$exec_prefix"
12660 exec_prefix
="$acl_final_exec_prefix"
12662 exec_prefix
="$acl_save_exec_prefix"
12663 prefix
="$acl_save_prefix"
12665 if test "X$x" = "X-L$additional_libdir"; then
12670 if test -z "$haveit"; then
12671 if test -d "$additional_libdir"; then
12672 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12676 for x
in $LDFLAGS $LTLIBICONV; do
12678 acl_save_prefix
="$prefix"
12679 prefix
="$acl_final_prefix"
12680 acl_save_exec_prefix
="$exec_prefix"
12681 exec_prefix
="$acl_final_exec_prefix"
12683 exec_prefix
="$acl_save_exec_prefix"
12684 prefix
="$acl_save_prefix"
12686 if test "X$x" = "X-L$additional_libdir"; then
12691 if test -z "$haveit"; then
12692 if test -d "$additional_libdir"; then
12693 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12700 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12701 if test "$enable_rpath" != no
; then
12703 for x
in $rpathdirs; do
12704 if test "X$x" = "X$dir"; then
12709 if test -z "$haveit"; then
12710 rpathdirs
="$rpathdirs $dir"
12713 for x
in $ltrpathdirs; do
12714 if test "X$x" = "X$dir"; then
12719 if test -z "$haveit"; then
12720 ltrpathdirs
="$ltrpathdirs $dir"
12725 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12728 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12731 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
12732 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12738 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12739 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12745 if test "X$rpathdirs" != "X"; then
12746 if test -n "$hardcode_libdir_separator"; then
12748 for found_dir
in $rpathdirs; do
12749 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12751 acl_save_libdir
="$libdir"
12753 eval flag
=\"$hardcode_libdir_flag_spec\"
12754 libdir
="$acl_save_libdir"
12755 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12757 for found_dir
in $rpathdirs; do
12758 acl_save_libdir
="$libdir"
12759 libdir
="$found_dir"
12760 eval flag
=\"$hardcode_libdir_flag_spec\"
12761 libdir
="$acl_save_libdir"
12762 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12766 if test "X$ltrpathdirs" != "X"; then
12767 for found_dir
in $ltrpathdirs; do
12768 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12775 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12776 stdlib.h string.h unistd.h sys
/param.h
12778 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12780 eval as_val
=\$
$as_ac_Header
12781 if test "x$as_val" = x
""yes; then :
12782 cat >>confdefs.h
<<_ACEOF
12783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12790 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12791 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12792 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12794 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12795 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12796 eval as_val
=\$
$as_ac_var
12797 if test "x$as_val" = x
""yes; then :
12798 cat >>confdefs.h
<<_ACEOF
12799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12811 am_save_CPPFLAGS
="$CPPFLAGS"
12813 for element
in $INCICONV; do
12815 for x
in $CPPFLAGS; do
12817 acl_save_prefix
="$prefix"
12818 prefix
="$acl_final_prefix"
12819 acl_save_exec_prefix
="$exec_prefix"
12820 exec_prefix
="$acl_final_exec_prefix"
12822 exec_prefix
="$acl_save_exec_prefix"
12823 prefix
="$acl_save_prefix"
12825 if test "X$x" = "X$element"; then
12830 if test -z "$haveit"; then
12831 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12837 $as_echo_n "checking for iconv... " >&6; }
12838 if test "${am_cv_func_iconv+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12842 am_cv_func_iconv
="no, consider installing GNU libiconv"
12844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <stdlib.h>
12851 iconv_t cd = iconv_open("","");
12852 iconv(cd,NULL,NULL,NULL,NULL);
12858 if ac_fn_c_try_link
"$LINENO"; then :
12859 am_cv_func_iconv
=yes
12861 rm -f core conftest.err conftest.
$ac_objext \
12862 conftest
$ac_exeext conftest.
$ac_ext
12863 if test "$am_cv_func_iconv" != yes; then
12864 am_save_LIBS
="$LIBS"
12865 LIBS
="$LIBS $LIBICONV"
12866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include <stdlib.h>
12873 iconv_t cd = iconv_open("","");
12874 iconv(cd,NULL,NULL,NULL,NULL);
12880 if ac_fn_c_try_link
"$LINENO"; then :
12881 am_cv_lib_iconv
=yes
12882 am_cv_func_iconv
=yes
12884 rm -f core conftest.err conftest.
$ac_objext \
12885 conftest
$ac_exeext conftest.
$ac_ext
12886 LIBS
="$am_save_LIBS"
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12891 $as_echo "$am_cv_func_iconv" >&6; }
12892 if test "$am_cv_func_iconv" = yes; then
12894 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12897 if test "$am_cv_lib_iconv" = yes; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12899 $as_echo_n "checking how to link with libiconv... " >&6; }
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12901 $as_echo "$LIBICONV" >&6; }
12903 CPPFLAGS
="$am_save_CPPFLAGS"
12910 if test "$am_cv_func_iconv" = yes; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12912 $as_echo_n "checking for iconv declaration... " >&6; }
12913 if test "${am_cv_proto_iconv+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12920 #include <stdlib.h>
12926 #if defined(__STDC__) || defined(__cplusplus)
12927 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12940 if ac_fn_c_try_compile
"$LINENO"; then :
12941 am_cv_proto_iconv_arg1
=""
12943 am_cv_proto_iconv_arg1
="const"
12945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12946 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);"
12949 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12951 }$am_cv_proto_iconv" >&5
12953 }$am_cv_proto_iconv" >&6; }
12955 cat >>confdefs.h
<<_ACEOF
12956 #define ICONV_CONST $am_cv_proto_iconv_arg1
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12963 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12964 if test "${am_cv_langinfo_codeset+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 #include <langinfo.h>
12973 char* cs = nl_langinfo(CODESET);
12978 if ac_fn_c_try_link
"$LINENO"; then :
12979 am_cv_langinfo_codeset
=yes
12981 am_cv_langinfo_codeset
=no
12983 rm -f core conftest.err conftest.
$ac_objext \
12984 conftest
$ac_exeext conftest.
$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12988 $as_echo "$am_cv_langinfo_codeset" >&6; }
12989 if test $am_cv_langinfo_codeset = yes; then
12991 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12995 if test $ac_cv_header_locale_h = yes; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12998 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12999 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004 #include <locale.h>
13013 if ac_fn_c_try_link
"$LINENO"; then :
13014 am_cv_val_LC_MESSAGES
=yes
13016 am_cv_val_LC_MESSAGES
=no
13018 rm -f core conftest.err conftest.
$ac_objext \
13019 conftest
$ac_exeext conftest.
$ac_ext
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13022 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13023 if test $am_cv_val_LC_MESSAGES = yes; then
13025 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13031 for ac_prog
in bison
13033 # Extract the first word of "$ac_prog", so it can be a program name with args.
13034 set dummy
$ac_prog; ac_word
=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13040 if test -n "$INTLBISON"; then
13041 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
13043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13044 for as_dir
in $PATH
13047 test -z "$as_dir" && as_dir
=.
13048 for ac_exec_ext
in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_INTLBISON
="$ac_prog"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 INTLBISON
=$ac_cv_prog_INTLBISON
13061 if test -n "$INTLBISON"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13063 $as_echo "$INTLBISON" >&6; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13070 test -n "$INTLBISON" && break
13073 if test -z "$INTLBISON"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13077 $as_echo_n "checking version of bison... " >&6; }
13078 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13079 case $ac_prog_version in
13080 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
13081 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
13082 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
13083 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13086 $as_echo "$ac_prog_version" >&6; }
13088 if test $ac_verc_fail = yes; then
13094 # Check whether --with-language was given.
13095 if test "${with_language+set}" = set; then :
13096 withval
=$with_language; if test "$withval" != "all"; then :
13097 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13117 $as_echo_n "checking whether NLS is requested... " >&6; }
13118 # Check whether --enable-nls was given.
13119 if test "${enable_nls+set}" = set; then :
13120 enableval
=$enable_nls; USE_NLS
=$enableval
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13126 $as_echo "$USE_NLS" >&6; }
13130 BUILD_INCLUDED_LIBINTL
=no
13131 USE_INCLUDED_LIBINTL
=no
13137 if test "$USE_NLS" = "yes"; then
13138 gt_use_preinstalled_gnugettext
=no
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13141 $as_echo_n "checking whether included gettext is requested... " >&6; }
13143 # Check whether --with-included-gettext was given.
13144 if test "${with_included_gettext+set}" = set; then :
13145 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
13147 nls_cv_force_use_gnu_gettext
=no
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13151 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13153 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
13154 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13162 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13163 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 #include <libintl.h>
13169 extern int _nl_msg_cat_cntr;
13170 extern int *_nl_domain_bindings;
13174 bindtextdomain ("", "");
13175 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13180 if ac_fn_c_try_link
"$LINENO"; then :
13181 gt_cv_func_gnugettext2_libc
=yes
13183 gt_cv_func_gnugettext2_libc
=no
13185 rm -f core conftest.err conftest.
$ac_objext \
13186 conftest
$ac_exeext conftest.
$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13189 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13191 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13197 acl_save_prefix
="$prefix"
13198 prefix
="$acl_final_prefix"
13199 acl_save_exec_prefix
="$exec_prefix"
13200 exec_prefix
="$acl_final_exec_prefix"
13202 eval additional_includedir
=\"$includedir\"
13203 eval additional_libdir
=\"$libdir\"
13205 exec_prefix
="$acl_save_exec_prefix"
13206 prefix
="$acl_save_prefix"
13209 # Check whether --with-libintl-prefix was given.
13210 if test "${with_libintl_prefix+set}" = set; then :
13211 withval
=$with_libintl_prefix;
13212 if test "X$withval" = "Xno"; then
13215 if test "X$withval" = "X"; then
13217 acl_save_prefix
="$prefix"
13218 prefix
="$acl_final_prefix"
13219 acl_save_exec_prefix
="$exec_prefix"
13220 exec_prefix
="$acl_final_exec_prefix"
13222 eval additional_includedir
=\"$includedir\"
13223 eval additional_libdir
=\"$libdir\"
13225 exec_prefix
="$acl_save_exec_prefix"
13226 prefix
="$acl_save_prefix"
13229 additional_includedir
="$withval/include"
13230 additional_libdir
="$withval/lib"
13241 names_already_handled
=
13242 names_next_round
='intl '
13243 while test -n "$names_next_round"; do
13244 names_this_round
="$names_next_round"
13246 for name
in $names_this_round; do
13248 for n
in $names_already_handled; do
13249 if test "$n" = "$name"; then
13250 already_handled
=yes
13254 if test -z "$already_handled"; then
13255 names_already_handled
="$names_already_handled $name"
13256 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13257 eval value
=\"\
$HAVE_LIB$uppername\"
13258 if test -n "$value"; then
13259 if test "$value" = yes; then
13260 eval value
=\"\
$LIB$uppername\"
13261 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
13262 eval value
=\"\
$LTLIB$uppername\"
13263 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
13272 if test $use_additional = yes; then
13273 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13274 found_dir
="$additional_libdir"
13275 found_so
="$additional_libdir/lib$name.$shlibext"
13276 if test -f "$additional_libdir/lib$name.la"; then
13277 found_la
="$additional_libdir/lib$name.la"
13280 if test -f "$additional_libdir/lib$name.$libext"; then
13281 found_dir
="$additional_libdir"
13282 found_a
="$additional_libdir/lib$name.$libext"
13283 if test -f "$additional_libdir/lib$name.la"; then
13284 found_la
="$additional_libdir/lib$name.la"
13289 if test "X$found_dir" = "X"; then
13290 for x
in $LDFLAGS $LTLIBINTL; do
13292 acl_save_prefix
="$prefix"
13293 prefix
="$acl_final_prefix"
13294 acl_save_exec_prefix
="$exec_prefix"
13295 exec_prefix
="$acl_final_exec_prefix"
13297 exec_prefix
="$acl_save_exec_prefix"
13298 prefix
="$acl_save_prefix"
13302 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13303 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13305 found_so
="$dir/lib$name.$shlibext"
13306 if test -f "$dir/lib$name.la"; then
13307 found_la
="$dir/lib$name.la"
13310 if test -f "$dir/lib$name.$libext"; then
13312 found_a
="$dir/lib$name.$libext"
13313 if test -f "$dir/lib$name.la"; then
13314 found_la
="$dir/lib$name.la"
13320 if test "X$found_dir" != "X"; then
13325 if test "X$found_dir" != "X"; then
13326 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13327 if test "X$found_so" != "X"; then
13328 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13329 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13332 for x
in $ltrpathdirs; do
13333 if test "X$x" = "X$found_dir"; then
13338 if test -z "$haveit"; then
13339 ltrpathdirs
="$ltrpathdirs $found_dir"
13341 if test "$hardcode_direct" = yes; then
13342 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13344 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13345 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13347 for x
in $rpathdirs; do
13348 if test "X$x" = "X$found_dir"; then
13353 if test -z "$haveit"; then
13354 rpathdirs
="$rpathdirs $found_dir"
13358 for x
in $LDFLAGS $LIBINTL; do
13360 acl_save_prefix
="$prefix"
13361 prefix
="$acl_final_prefix"
13362 acl_save_exec_prefix
="$exec_prefix"
13363 exec_prefix
="$acl_final_exec_prefix"
13365 exec_prefix
="$acl_save_exec_prefix"
13366 prefix
="$acl_save_prefix"
13368 if test "X$x" = "X-L$found_dir"; then
13373 if test -z "$haveit"; then
13374 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13376 if test "$hardcode_minus_L" != no
; then
13377 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
13379 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13385 if test "X$found_a" != "X"; then
13386 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
13388 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13391 additional_includedir
=
13392 case "$found_dir" in
13394 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13395 additional_includedir
="$basedir/include"
13398 if test "X$additional_includedir" != "X"; then
13399 if test "X$additional_includedir" != "X/usr/include"; then
13401 if test "X$additional_includedir" = "X/usr/local/include"; then
13402 if test -n "$GCC"; then
13404 linux
*) haveit
=yes;;
13408 if test -z "$haveit"; then
13409 for x
in $CPPFLAGS $INCINTL; do
13411 acl_save_prefix
="$prefix"
13412 prefix
="$acl_final_prefix"
13413 acl_save_exec_prefix
="$exec_prefix"
13414 exec_prefix
="$acl_final_exec_prefix"
13416 exec_prefix
="$acl_save_exec_prefix"
13417 prefix
="$acl_save_prefix"
13419 if test "X$x" = "X-I$additional_includedir"; then
13424 if test -z "$haveit"; then
13425 if test -d "$additional_includedir"; then
13426 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13432 if test -n "$found_la"; then
13433 save_libdir
="$libdir"
13434 case "$found_la" in
13435 */* |
*\\*) .
"$found_la" ;;
13436 *) .
"./$found_la" ;;
13438 libdir
="$save_libdir"
13439 for dep
in $dependency_libs; do
13442 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13443 if test "X$additional_libdir" != "X/usr/lib"; then
13445 if test "X$additional_libdir" = "X/usr/local/lib"; then
13446 if test -n "$GCC"; then
13448 linux
*) haveit
=yes;;
13452 if test -z "$haveit"; then
13454 for x
in $LDFLAGS $LIBINTL; do
13456 acl_save_prefix
="$prefix"
13457 prefix
="$acl_final_prefix"
13458 acl_save_exec_prefix
="$exec_prefix"
13459 exec_prefix
="$acl_final_exec_prefix"
13461 exec_prefix
="$acl_save_exec_prefix"
13462 prefix
="$acl_save_prefix"
13464 if test "X$x" = "X-L$additional_libdir"; then
13469 if test -z "$haveit"; then
13470 if test -d "$additional_libdir"; then
13471 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13475 for x
in $LDFLAGS $LTLIBINTL; do
13477 acl_save_prefix
="$prefix"
13478 prefix
="$acl_final_prefix"
13479 acl_save_exec_prefix
="$exec_prefix"
13480 exec_prefix
="$acl_final_exec_prefix"
13482 exec_prefix
="$acl_save_exec_prefix"
13483 prefix
="$acl_save_prefix"
13485 if test "X$x" = "X-L$additional_libdir"; then
13490 if test -z "$haveit"; then
13491 if test -d "$additional_libdir"; then
13492 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13499 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13500 if test "$enable_rpath" != no
; then
13502 for x
in $rpathdirs; do
13503 if test "X$x" = "X$dir"; then
13508 if test -z "$haveit"; then
13509 rpathdirs
="$rpathdirs $dir"
13512 for x
in $ltrpathdirs; do
13513 if test "X$x" = "X$dir"; then
13518 if test -z "$haveit"; then
13519 ltrpathdirs
="$ltrpathdirs $dir"
13524 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13527 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13530 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
13531 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13537 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
13538 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13544 if test "X$rpathdirs" != "X"; then
13545 if test -n "$hardcode_libdir_separator"; then
13547 for found_dir
in $rpathdirs; do
13548 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13550 acl_save_libdir
="$libdir"
13552 eval flag
=\"$hardcode_libdir_flag_spec\"
13553 libdir
="$acl_save_libdir"
13554 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13556 for found_dir
in $rpathdirs; do
13557 acl_save_libdir
="$libdir"
13558 libdir
="$found_dir"
13559 eval flag
=\"$hardcode_libdir_flag_spec\"
13560 libdir
="$acl_save_libdir"
13561 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
13565 if test "X$ltrpathdirs" != "X"; then
13566 for found_dir
in $ltrpathdirs; do
13567 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13572 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13573 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13576 gt_save_CPPFLAGS
="$CPPFLAGS"
13577 CPPFLAGS
="$CPPFLAGS $INCINTL"
13578 gt_save_LIBS
="$LIBS"
13579 LIBS
="$LIBS $LIBINTL"
13580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582 #include <libintl.h>
13583 extern int _nl_msg_cat_cntr;
13588 const char *_nl_expand_alias ();
13592 bindtextdomain ("", "");
13593 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13598 if ac_fn_c_try_link
"$LINENO"; then :
13599 gt_cv_func_gnugettext2_libintl
=yes
13601 gt_cv_func_gnugettext2_libintl
=no
13603 rm -f core conftest.err conftest.
$ac_objext \
13604 conftest
$ac_exeext conftest.
$ac_ext
13605 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13606 LIBS
="$LIBS $LIBICONV"
13607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include <libintl.h>
13610 extern int _nl_msg_cat_cntr;
13615 const char *_nl_expand_alias ();
13619 bindtextdomain ("", "");
13620 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13625 if ac_fn_c_try_link
"$LINENO"; then :
13626 LIBINTL
="$LIBINTL $LIBICONV"
13627 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
13628 gt_cv_func_gnugettext2_libintl
=yes
13631 rm -f core conftest.err conftest.
$ac_objext \
13632 conftest
$ac_exeext conftest.
$ac_ext
13634 CPPFLAGS
="$gt_save_CPPFLAGS"
13635 LIBS
="$gt_save_LIBS"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13638 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13641 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13642 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13643 && test "$PACKAGE" != gettext; }; then
13644 gt_use_preinstalled_gnugettext
=yes
13652 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13653 nls_cv_use_gnu_gettext
=yes
13657 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13658 INTLOBJS
="\$(GETTOBJS)"
13659 BUILD_INCLUDED_LIBINTL
=yes
13660 USE_INCLUDED_LIBINTL
=yes
13661 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
13662 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13663 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13666 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13667 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13672 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13673 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
13675 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13682 if test "$USE_NLS" = "yes"; then
13684 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13685 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13687 $as_echo_n "checking how to link with libintl... " >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13689 $as_echo "$LIBINTL" >&6; }
13691 for element
in $INCINTL; do
13693 for x
in $CPPFLAGS; do
13695 acl_save_prefix
="$prefix"
13696 prefix
="$acl_final_prefix"
13697 acl_save_exec_prefix
="$exec_prefix"
13698 exec_prefix
="$acl_final_exec_prefix"
13700 exec_prefix
="$acl_save_exec_prefix"
13701 prefix
="$acl_save_prefix"
13703 if test "X$x" = "X$element"; then
13708 if test -z "$haveit"; then
13709 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13716 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13719 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13727 if test "$PACKAGE" = gettext; then
13728 BUILD_INCLUDED_LIBINTL
=yes
13736 nls_cv_header_intl
=
13737 nls_cv_header_libgt
=
13748 INTL_LIBTOOL_SUFFIX_PREFIX
=
13752 INTLLIBS
="$LIBINTL"
13759 if test $USE_INCLUDED_LIBINTL = yes; then :
13760 INCINTL
=-I\
${top_builddir}/intl
13763 if test x
$USE_NLS = xyes
; then :
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13766 $as_echo_n "checking for autopoint... " >&6; }
13767 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13768 if test -n "$autopoint_version"; then :
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13771 $as_echo "yes ($autopoint_version)" >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13783 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then :
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13785 You need to install GNU gettext/gettext-tools to compile aMule with
13787 $as_echo "$as_me: WARNING:
13788 You need to install GNU gettext/gettext-tools to compile aMule with
13789 i18n support." >&2;}
13790 _mule_warning_9
=yes
13791 _mule_has_warnings
=yes
13795 if test ${USE_NLS:-no} = yes; then :
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13798 $as_echo_n "checking for requested languages... " >&6; }
13799 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13801 if test ${enable_amule_daemon:-no} = yes; then :
13803 if test -z "$LINGUAS"; then :
13804 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13807 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13808 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13811 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13814 AMULE_DAEMON_MANPAGES
=
13819 if test ${enable_amulecmd:-no} = yes; then :
13821 if test -z "$LINGUAS"; then :
13822 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13825 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13826 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13829 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13837 if test ${enable_webserver:-no} = yes; then :
13839 if test -z "$LINGUAS"; then :
13840 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13843 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13844 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13847 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13850 WEBSERVER_MANPAGES
=
13855 if test ${enable_amule_gui:-no} = yes; then :
13857 if test -z "$LINGUAS"; then :
13858 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13861 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13862 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13865 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13868 AMULE_GUI_MANPAGES
=
13873 if test ${enable_cas:-no} = yes; then :
13875 if test -z "$LINGUAS"; then :
13876 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13879 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13880 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13883 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
13891 if test ${enable_wxcas:-no} = yes; then :
13893 if test -z "$LINGUAS"; then :
13894 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13897 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13898 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13901 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
13909 if test ${enable_ed2k:-yes} = yes; then :
13911 if test -z "$LINGUAS"; then :
13912 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13915 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13916 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13919 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
13927 if test ${enable_alc:-no} = yes; then :
13929 if test -z "$LINGUAS"; then :
13930 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13933 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13934 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13937 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
13945 if test ${enable_alcc:-no} = yes; then :
13947 if test -z "$LINGUAS"; then :
13948 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13951 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13952 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13955 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
13963 if test ${enable_monolithic:-yes} = yes; then :
13965 if test -z "$LINGUAS"; then :
13966 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13969 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13970 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13973 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13976 MONOLITHIC_MANPAGES
=
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13981 $as_echo "${LINGUAS:-all}" >&6; }
13987 # Check for bfd.h (to have proper backtraces without using wxExecute)
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13990 $as_echo_n "checking for bfd... " >&6; }
13992 for bfd_ldadd
in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
13993 mule_backup_LIBS
="$LIBS"
13994 mule_backup_LDFLAGS
="$LDFLAGS"
13995 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13996 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
13997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14001 #include <ansidecl.h>
14008 char *dummy = bfd_errmsg(bfd_get_error());
14015 if ac_fn_c_try_link
"$LINENO"; then :
14018 BFD_CPPFLAGS
="-DHAVE_BFD"
14019 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
14020 LIBS
="$mule_backup_LIBS"
14021 LDFLAGS
="$mule_backup_LDFLAGS"
14025 rm -f core conftest.err conftest.
$ac_objext \
14026 conftest
$ac_exeext conftest.
$ac_ext
14027 LIBS
="$mule_backup_LIBS"
14028 LDFLAGS
="$mule_backup_LDFLAGS"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14032 $as_echo "$result" >&6; }
14034 if test $result = no
; then :
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14036 bfd.h not found or unusable, please install binutils development
14037 package if you are a developer or want to help testing aMule" >&5
14038 $as_echo "$as_me: WARNING:
14039 bfd.h not found or unusable, please install binutils development
14040 package if you are a developer or want to help testing aMule" >&2;}
14041 _mule_warning_10
=yes
14042 _mule_has_warnings
=yes
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14049 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14054 #include <execinfo.h>
14061 int n = backtrace(&bt, 1);
14062 const char **bt_syms = backtrace_symbols(bt, n);
14069 if ac_fn_c_try_link
"$LINENO"; then :
14072 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14083 rm -f core conftest.err conftest.
$ac_objext \
14084 conftest
$ac_exeext conftest.
$ac_ext
14087 # Flush standard test results for speeding cache
14088 cat >confcache
<<\_ACEOF
14089 # This file is a shell script that caches the results of configure
14090 # tests run on this system so they can be shared between configure
14091 # scripts and configure runs, see configure's option --config-cache.
14092 # It is not useful on other systems. If it contains results you don't
14093 # want to keep, you may remove or edit it.
14095 # config.status only pays attention to the cache file if you give it
14096 # the --recheck option to rerun configure.
14098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14100 # following values.
14104 # The following way of writing the cache mishandles newlines in values,
14105 # but we know of no workaround that is simple, portable, and efficient.
14106 # So, we kill variables containing newlines.
14107 # Ultrix sh set writes to stderr and can't be redirected directly,
14108 # and sets the high bit in the cache file unless we assign to the vars.
14110 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14111 eval ac_val
=\$
$ac_var
14115 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14119 _ | IFS | as_nl
) ;; #(
14120 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14121 *) { eval $ac_var=; unset $ac_var;} ;;
14127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14128 *${as_nl}ac_space
=\
*)
14129 # `set' does not quote correctly, so add quotes: double-quote
14130 # substitution turns \\\\ into \\, and sed turns \\ into \.
14133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14136 # `set' quotes correctly as required by POSIX, so do not add quotes.
14137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14150 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14151 if test -w "$cache_file"; then
14152 test "x$cache_file" != "x/dev/null" &&
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14154 $as_echo "$as_me: updating cache $cache_file" >&6;}
14155 cat confcache
>$cache_file
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14158 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14166 # Check whether --enable-debug was given.
14167 if test "${enable_debug+set}" = set; then :
14168 enableval
=$enable_debug;
14172 # Check whether --enable-profile was given.
14173 if test "${enable_profile+set}" = set; then :
14174 enableval
=$enable_profile;
14178 # Check whether --enable-optimize was given.
14179 if test "${enable_optimize+set}" = set; then :
14180 enableval
=$enable_optimize;
14185 if test ${enable_debug:-yes} = yes; then :
14187 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
14189 MULECFLAGS
="$MULECFLAGS -g"
14190 MULECXXFLAGS
="$MULECXXFLAGS -g"
14192 if test ${GCC:-no} = yes; then :
14194 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14195 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14198 if test ${SYS:-unknown} = win32
; then :
14199 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
14204 if test ${GCC:-no} = yes; then :
14206 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14207 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14213 if test ${enable_profile:-no} = yes; then :
14216 MULECFLAGS
="$MULECFLAGS -pg"
14217 MULECXXFLAGS
="$MULECXXFLAGS -pg"
14219 MULELDFLAGS
="$MULELDFLAGS -pg"
14223 if test ${enable_optimize:-no} = yes; then :
14225 MULECFLAGS
="$MULECFLAGS -O2"
14226 MULECXXFLAGS
="$MULECXXFLAGS -O2"
14230 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14233 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14235 $as_echo_n "checking for docdir... " >&6; }
14236 if test -z "$docdir"; then :
14237 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14240 $as_echo "$docdir" >&6; }
14242 # Try to set the SVN checkout-date
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14244 $as_echo_n "checking for SVNDATE... " >&6; }
14245 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14247 svndate
="rev. `cat $srcdir/.svn-revision`"
14248 elif test -d $srcdir/.svn
# SVNDATE for svn
14250 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14253 $as_echo "${svndate:-None required}" >&6; }
14254 if test -n "$svndate"; then :
14257 cat >>confdefs.h
<<_ACEOF
14258 #define SVNDATE "$svndate"
14261 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
14268 # Check whether --with-denoise-level was given.
14269 if test "${with_denoise_level+set}" = set; then :
14270 withval
=$with_denoise_level;
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14275 $as_echo_n "checking denoising level... " >&6; }
14276 if test ${with_denoise_level:-5} = yes; then :
14277 with_denoise_level
=5
14279 if test ${with_denoise_level:-5} = no
; then :
14280 with_denoise_level
=0
14282 if test ${with_denoise_level:-5} -gt 4; then :
14283 if test "${svndate:+set}" = "set"; then :
14284 with_denoise_level
=0
14286 with_denoise_level
=4
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14290 $as_echo "$with_denoise_level" >&6; }
14292 ac_config_commands
="$ac_config_commands denoiser"
14296 if test ${enable_plasmamule:-no} = yes; then :
14299 if test -z ${QT_MOC}; then :
14301 for ac_prog
in moc-qt4 moc
14303 # Extract the first word of "$ac_prog", so it can be a program name with args.
14304 set dummy
$ac_prog; ac_word
=$2
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14306 $as_echo_n "checking for $ac_word... " >&6; }
14307 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14312 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
14315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14316 for as_dir
in $PATH
14319 test -z "$as_dir" && as_dir
=.
14320 for ac_exec_ext
in '' $ac_executable_extensions; do
14321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14322 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
14323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 QT_MOC
=$ac_cv_path_QT_MOC
14334 if test -n "$QT_MOC"; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14336 $as_echo "$QT_MOC" >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14339 $as_echo "no" >&6; }
14343 test -n "$QT_MOC" && break
14346 if test -z ${QT_MOC}; then :
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14356 $as_echo_n "checking for moc... " >&6; }
14357 if test -x ${QT_MOC}; then :
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14360 $as_echo "${QT_MOC}" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14366 $as_echo "\"not found\"" >&6; }
14375 if test "${QT_MOC}" != "not found"; then :
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14378 $as_echo_n "checking for moc version >= 4... " >&6; }
14379 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14380 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14383 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14388 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14396 if test "${QT_MOC}" = "not found"; then :
14397 enable_plasmamule
=disabled
14400 if test ${enable_plasmamule:-no} = yes; then :
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14405 $as_echo_n "checking for qt... " >&6; }
14406 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14409 $as_echo "found" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14411 $as_echo_n "checking for qt core cflags... " >&6; }
14412 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14414 $as_echo "$QT_CORE_CFLAGS" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14416 $as_echo_n "checking for qt core libs... " >&6; }
14417 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14419 $as_echo "$QT_CORE_LIBS" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14421 $as_echo_n "checking for qt gui cflags... " >&6; }
14422 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14424 $as_echo "$QT_GUI_CFLAGS" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14426 $as_echo_n "checking for qt gui libs... " >&6; }
14427 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14429 $as_echo "$QT_GUI_LIBS" >&6; }
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14433 $as_echo "not found" >&6; }
14438 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
14440 QT_DBUS_LDFLAGS
="-lQtDBus"
14450 if test -z "${QT_CORE_CXXFLAGS}"; then :
14451 enable_plasmamule
=disabled
14456 if test ${enable_plasmamule:-no} = yes; then :
14459 if test -z ${KDE4_CONFIG}; then :
14461 # Extract the first word of "kde4-config", so it can be a program name with args.
14462 set dummy kde4-config
; ac_word
=$2
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14464 $as_echo_n "checking for $ac_word... " >&6; }
14465 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14468 case $KDE4_CONFIG in
14470 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
14473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14474 for as_dir
in $PATH
14477 test -z "$as_dir" && as_dir
=.
14478 for ac_exec_ext
in '' $ac_executable_extensions; do
14479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14480 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
14492 if test -n "$KDE4_CONFIG"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14494 $as_echo "$KDE4_CONFIG" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14505 $as_echo_n "checking for kde4-config... " >&6; }
14506 if test ! -x KDE4_CONFIG
; then :
14508 KDE4_CONFIG
="not found"
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14510 $as_echo "not found" >&6; }
14517 if test "${KDE4_CONFIG}" != "not found"; then :
14519 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14520 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14523 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
14528 $as_echo "at least version
4 required
" >&6; }
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
14536 $as_echo "not found
" >&6; }
14542 if test "${KDE4_CONFIG}" = "not found
"; then :
14543 enable_plasmamule=disabled
14548 if test ${enable_plasmamule:-no} = yes; then :
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
14552 $as_echo_n "checking
for kde4 headers...
" >&6; }
14553 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14555 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14557 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
14560 $as_echo "${KDE_HEADER_DIR}" >&6; }
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
14565 $as_echo "dataengine.h not found
" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
14573 $as_echo "kdirwatch.h not found
" >&6; }
14579 if test -z ${KDE_HEADER_DIR}; then :
14580 enable_plasmamule=disabled
14585 if test ${enable_plasmamule:-no} = yes; then :
14587 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14588 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
14593 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
14594 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14599 if test ${KDE_IN_HOME} = "yes"; then :
14601 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14605 if test -n ${prefix}; then :
14607 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14608 if test -n ${KDE_APPLNK_PATH}; then :
14610 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14616 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
14622 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
14628 $as_echo_n "checking
for kde4 services Path...
" >&6; }
14629 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14634 if test ${KDE_IN_HOME} = "yes"; then :
14636 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14640 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
14644 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
14650 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
14651 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14656 if test ${KDE_IN_HOME} = "yes"; then :
14658 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14662 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
14666 $as_echo "${KDE_MODULE_PATH}" >&6; }
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
14672 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
14673 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14678 if test ${KDE_IN_HOME} = "yes"; then :
14680 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14684 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14687 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
14689 $as_echo "${KDE_ICON_PATH}" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
14695 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
14696 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14701 if test ${KDE_IN_HOME} = "yes"; then :
14703 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14707 if test -n ${prefix}; then :
14709 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14710 if test -n ${KDE_MIME_PATH}; then :
14712 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14718 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
14724 $as_echo "${KDE_MIME_PATH}" >&6; }
14729 enable_plasmamule=disabled
14734 if test ${enable_debug:-yes} = yes; then :
14736 DEBUGFLAG="-D__DEBUG__"
14743 if test x$SYS = xwin32; then
14745 SYS_WIN32_FALSE='#'
14751 if test x$SYS = xwin32 -a "$RC" != ":"; then
14759 if test x$SYS = xdarwin; then
14760 NEED_CORESERVICES_TRUE=
14761 NEED_CORESERVICES_FALSE='#'
14763 NEED_CORESERVICES_TRUE='#'
14764 NEED_CORESERVICES_FALSE=
14767 if test x$USE_NLS = xyes; then
14769 COMPILE_NLS_FALSE='#'
14771 COMPILE_NLS_TRUE='#'
14775 if test x$HAVE_FLEX_EXTENDED = xyes; then
14776 GENERATE_FLEX_HEADER_TRUE=
14777 GENERATE_FLEX_HEADER_FALSE='#'
14779 GENERATE_FLEX_HEADER_TRUE='#'
14780 GENERATE_FLEX_HEADER_FALSE=
14783 if test x$INSTALL_SKINS = xyes; then
14784 INSTALL_SKINS_TRUE=
14785 INSTALL_SKINS_FALSE='#'
14787 INSTALL_SKINS_TRUE='#'
14788 INSTALL_SKINS_FALSE=
14791 if test ${enable_plasmamule:-no} = yes; then
14793 PLASMAMULE_FALSE='#'
14795 PLASMAMULE_TRUE='#'
14800 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
14801 COMPILE_LIB_COMMON_TRUE=
14802 COMPILE_LIB_COMMON_FALSE='#'
14804 COMPILE_LIB_COMMON_TRUE='#'
14805 COMPILE_LIB_COMMON_FALSE=
14808 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
14809 COMPILE_LIB_EC_TRUE=
14810 COMPILE_LIB_EC_FALSE='#'
14812 COMPILE_LIB_EC_TRUE='#'
14813 COMPILE_LIB_EC_FALSE=
14817 # Check for readline library
14818 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a readline compatible library
" >&5
14821 $as_echo_n "checking
for a readline compatible library...
" >&6; }
14822 if test "${vl_cv_lib_readline+set}" = set; then :
14823 $as_echo_n "(cached
) " >&6
14827 for readline_lib in readline edit editline; do
14828 for termcap_lib in "" termcap curses ncurses; do
14829 if test -z "$termcap_lib"; then
14830 TRY_LIB="-l$readline_lib"
14832 TRY_LIB="-l$readline_lib -l$termcap_lib"
14834 LIBS="$ORIG_LIBS $TRY_LIB"
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14848 return readline ();
14853 if ac_fn_c_try_link "$LINENO"; then :
14854 vl_cv_lib_readline="$TRY_LIB"
14856 rm -f core conftest.err conftest.$ac_objext \
14857 conftest$ac_exeext conftest.$ac_ext
14858 if test -n "$vl_cv_lib_readline"; then
14862 if test -n "$vl_cv_lib_readline"; then
14866 if test -z "$vl_cv_lib_readline"; then
14867 vl_cv_lib_readline="no
"
14871 READLINE_LIBS="$vl_cv_lib_readline"
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $vl_cv_lib_readline" >&5
14876 $as_echo "$vl_cv_lib_readline" >&6; }
14878 if test "$vl_cv_lib_readline" != "no
"; then
14880 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14882 for ac_header
in readline.h readline
/readline.h
14884 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14885 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14886 eval as_val
=\$
$as_ac_Header
14887 if test "x$as_val" = x
""yes; then :
14888 cat >>confdefs.h
<<_ACEOF
14889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14897 $as_echo_n "checking whether readline supports history... " >&6; }
14898 if test "${vl_cv_lib_readline_history+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14902 vl_cv_lib_readline_history
="no"
14903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14906 /* Override any GCC internal prototype to avoid an error.
14907 Use char because int might match the return type of a GCC
14908 builtin and then its argument prototype would still apply. */
14912 char add_history ();
14916 return add_history ();
14921 if ac_fn_c_try_link
"$LINENO"; then :
14922 vl_cv_lib_readline_history
="yes"
14924 rm -f core conftest.err conftest.
$ac_objext \
14925 conftest
$ac_exeext conftest.
$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14929 $as_echo "$vl_cv_lib_readline_history" >&6; }
14930 if test "$vl_cv_lib_readline_history" = "yes"; then
14932 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14934 for ac_header
in history.h readline
/history.h
14936 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14937 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14938 eval as_val
=\$
$as_ac_Header
14939 if test "x$as_val" = x
""yes; then :
14940 cat >>confdefs.h
<<_ACEOF
14941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14955 if test ${PLASMAMULE:-no} = yes; then :
14958 if test -z ${QT_MOC}; then :
14960 for ac_prog
in moc-qt4 moc
14962 # Extract the first word of "$ac_prog", so it can be a program name with args.
14963 set dummy
$ac_prog; ac_word
=$2
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14965 $as_echo_n "checking for $ac_word... " >&6; }
14966 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14967 $as_echo_n "(cached) " >&6
14971 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
14974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14975 for as_dir
in $PATH
14978 test -z "$as_dir" && as_dir
=.
14979 for ac_exec_ext
in '' $ac_executable_extensions; do
14980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14981 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
14982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14992 QT_MOC
=$ac_cv_path_QT_MOC
14993 if test -n "$QT_MOC"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14995 $as_echo "$QT_MOC" >&6; }
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
15002 test -n "$QT_MOC" && break
15005 if test -z ${QT_MOC}; then :
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15015 $as_echo_n "checking for moc... " >&6; }
15016 if test -x ${QT_MOC}; then :
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15019 $as_echo "${QT_MOC}" >&6; }
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15025 $as_echo "\"not found\"" >&6; }
15034 if test "${QT_MOC}" != "not found"; then :
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15037 $as_echo_n "checking for moc version >= 4... " >&6; }
15038 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15039 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15042 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15047 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15055 if test "${QT_MOC}" = "not found"; then :
15056 enable_plasmamule
=disabled
15059 if test ${enable_plasmamule:-no} = yes; then :
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15064 $as_echo_n "checking for qt... " >&6; }
15065 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15068 $as_echo "found" >&6; }
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15070 $as_echo_n "checking for qt core cflags... " >&6; }
15071 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15073 $as_echo "$QT_CORE_CFLAGS" >&6; }
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15075 $as_echo_n "checking for qt core libs... " >&6; }
15076 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15078 $as_echo "$QT_CORE_LIBS" >&6; }
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15080 $as_echo_n "checking for qt gui cflags... " >&6; }
15081 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15083 $as_echo "$QT_GUI_CFLAGS" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15085 $as_echo_n "checking for qt gui libs... " >&6; }
15086 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15088 $as_echo "$QT_GUI_LIBS" >&6; }
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15092 $as_echo "not found" >&6; }
15097 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15099 QT_DBUS_LDFLAGS
="-lQtDBus"
15109 if test -z "${QT_CORE_CXXFLAGS}"; then :
15110 enable_plasmamule
=disabled
15115 if test ${enable_plasmamule:-no} = yes; then :
15118 if test -z ${KDE4_CONFIG}; then :
15120 # Extract the first word of "kde4-config", so it can be a program name with args.
15121 set dummy kde4-config
; ac_word
=$2
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15123 $as_echo_n "checking for $ac_word... " >&6; }
15124 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15127 case $KDE4_CONFIG in
15129 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
15132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15133 for as_dir
in $PATH
15136 test -z "$as_dir" && as_dir
=.
15137 for ac_exec_ext
in '' $ac_executable_extensions; do
15138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15139 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15150 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
15151 if test -n "$KDE4_CONFIG"; then
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15153 $as_echo "$KDE4_CONFIG" >&6; }
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15156 $as_echo "no" >&6; }
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15164 $as_echo_n "checking for kde4-config... " >&6; }
15165 if test ! -x KDE4_CONFIG
; then :
15167 KDE4_CONFIG
="not found"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15169 $as_echo "not found" >&6; }
15176 if test "${KDE4_CONFIG}" != "not found"; then :
15178 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15179 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15182 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
15187 $as_echo "at least version
4 required
" >&6; }
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
15195 $as_echo "not found
" >&6; }
15201 if test "${KDE4_CONFIG}" = "not found
"; then :
15202 enable_plasmamule=disabled
15207 if test ${enable_plasmamule:-no} = yes; then :
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
15211 $as_echo_n "checking
for kde4 headers...
" >&6; }
15212 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15214 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15216 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
15219 $as_echo "${KDE_HEADER_DIR}" >&6; }
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
15224 $as_echo "dataengine.h not found
" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
15232 $as_echo "kdirwatch.h not found
" >&6; }
15238 if test -z ${KDE_HEADER_DIR}; then :
15239 enable_plasmamule=disabled
15244 if test ${enable_plasmamule:-no} = yes; then :
15246 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15247 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
15252 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
15253 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15258 if test ${KDE_IN_HOME} = "yes"; then :
15260 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15264 if test -n ${prefix}; then :
15266 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15267 if test -n ${KDE_APPLNK_PATH}; then :
15269 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15275 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
15281 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
15287 $as_echo_n "checking
for kde4 services Path...
" >&6; }
15288 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15293 if test ${KDE_IN_HOME} = "yes"; then :
15295 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15299 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
15303 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
15309 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
15310 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15315 if test ${KDE_IN_HOME} = "yes"; then :
15317 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15321 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
15325 $as_echo "${KDE_MODULE_PATH}" >&6; }
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
15331 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
15332 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15337 if test ${KDE_IN_HOME} = "yes"; then :
15339 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15343 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15346 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
15348 $as_echo "${KDE_ICON_PATH}" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
15354 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
15355 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15360 if test ${KDE_IN_HOME} = "yes"; then :
15362 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15366 if test -n ${prefix}; then :
15368 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15369 if test -n ${KDE_MIME_PATH}; then :
15371 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15377 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
15383 $as_echo "${KDE_MIME_PATH}" >&6; }
15388 enable_plasmamule=disabled
15393 if test ${enable_debug:-yes} = yes; then :
15395 DEBUGFLAG="-D__DEBUG__"
15402 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15405 # Check whether --enable-ccache was given.
15406 if test "${enable_ccache+set}" = set; then :
15407 enableval=$enable_ccache;
15413 # Check whether --with-ccache-prefix was given.
15414 if test "${with_ccache_prefix+set}" = set; then :
15415 withval=$with_ccache_prefix;
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added
" >&5
15420 $as_echo_n "checking whether ccache support should be added...
" >&6; }
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${enable_ccache:-no}" >&5
15422 $as_echo "${enable_ccache:-no}" >&6; }
15424 if test ${enable_ccache:-no} = yes; then :
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ccache presence
" >&5
15427 $as_echo_n "checking
for ccache presence...
" >&6; }
15428 if test -z "$with_ccache_prefix"; then :
15430 ccache_full=`which ccache`
15431 with_ccache_prefix=`dirname ${ccache_full}`
15434 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15436 CC="$with_ccache_prefix/ccache
$CC"
15437 CXX="$with_ccache_prefix/ccache
$CXX"
15438 BUILD_CC="$with_ccache_prefix/ccache
$BUILD_CC"
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${enable_ccache:-no}" >&5
15444 $as_echo "${enable_ccache:-no}" >&6; }
15449 ac_config_files="$ac_config_files Makefile docs
/Makefile docs
/man
/Makefile intl
/Makefile 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
"
15451 ac_config_files="$ac_config_files po
/Makefile.
in Compilation.flags
"
15453 if test x$SYS = xwin32; then :
15454 ac_config_files="$ac_config_files version.rc
"
15457 cat >confcache <<\_ACEOF
15458 # This file is a shell script that caches the results of configure
15459 # tests run on this system so they can be shared between configure
15460 # scripts and configure runs, see configure's option --config-cache.
15461 # It is not useful on other systems. If it contains results you don't
15462 # want to keep, you may remove or edit it.
15464 # config.status only pays attention to the cache file if you give it
15465 # the --recheck option to rerun configure.
15467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15469 # following values.
15473 # The following way of writing the cache mishandles newlines in values,
15474 # but we know of no workaround that is simple, portable, and efficient.
15475 # So, we kill variables containing newlines.
15476 # Ultrix sh set writes to stderr and can't be redirected directly,
15477 # and sets the high bit in the cache file unless we assign to the vars.
15479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15480 eval ac_val=\$$ac_var
15484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
15485 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
15488 _ | IFS | as_nl) ;; #(
15489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15490 *) { eval $ac_var=; unset $ac_var;} ;;
15496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15497 *${as_nl}ac_space=\ *)
15498 # `set' does not quote correctly, so add quotes: double-quote
15499 # substitution turns \\\\ into \\, and sed turns \\ into \.
15502 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
15505 # `set' quotes correctly as required by POSIX, so do not add quotes.
15506 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
15515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15520 if test -w "$cache_file"; then
15521 test "x
$cache_file" != "x
/dev
/null
" &&
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
15523 $as_echo "$as_me: updating cache
$cache_file" >&6;}
15524 cat confcache >$cache_file
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
15527 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
15532 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
15533 # Let make expand exec_prefix.
15534 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
15536 DEFS=-DHAVE_CONFIG_H
15540 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
15541 # 1. Remove the extension, and $U if already installed.
15542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15545 # will be set to the directory where LIBOBJS objects are built.
15546 as_fn_append ac_libobjs " \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
15547 as_fn_append ac_ltlibobjs " \
${LIBOBJDIR}$ac_i"'$U.lo'
15549 LIBOBJS=$ac_libobjs
15551 LTLIBOBJS=$ac_ltlibobjs
15554 if test -n "$EXEEXT"; then
15556 am__EXEEXT_FALSE='#'
15558 am__EXEEXT_TRUE='#'
15562 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15563 as_fn_error "conditional
\"MAINTAINER_MODE
\" was never defined.
15564 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15567 as_fn_error "conditional
\"AMDEP
\" was never defined.
15568 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15570 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15571 as_fn_error "conditional
\"am__fastdepCXX
\" was never defined.
15572 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15575 as_fn_error "conditional
\"am__fastdepCC
\" was never defined.
15576 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15578 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15579 as_fn_error "conditional
\"MONOLITHIC
\" was never defined.
15580 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15582 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15583 as_fn_error "conditional
\"AMULE_DAEMON
\" was never defined.
15584 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15586 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15587 as_fn_error "conditional
\"COMPILE_CMD
\" was never defined.
15588 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15590 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15591 as_fn_error "conditional
\"WEB
\" was never defined.
15592 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15594 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15595 as_fn_error "conditional
\"AMULE_GUI
\" was never defined.
15596 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15598 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15599 as_fn_error "conditional
\"CAS
\" was never defined.
15600 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15602 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15603 as_fn_error "conditional
\"WXCAS
\" was never defined.
15604 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15606 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15607 as_fn_error "conditional
\"ED2K
\" was never defined.
15608 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15610 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15611 as_fn_error "conditional
\"ALC
\" was never defined.
15612 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15614 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15615 as_fn_error "conditional
\"ALCC
\" was never defined.
15616 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15618 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15619 as_fn_error "conditional
\"XAS
\" was never defined.
15620 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15622 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15623 as_fn_error "conditional
\"FILEVIEW
\" was never defined.
15624 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15626 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15627 as_fn_error "conditional
\"SYS_WIN32
\" was never defined.
15628 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15630 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15631 as_fn_error "conditional
\"NEED_RC
\" was never defined.
15632 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15634 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15635 as_fn_error "conditional
\"NEED_CORESERVICES
\" was never defined.
15636 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15638 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15639 as_fn_error "conditional
\"COMPILE_NLS
\" was never defined.
15640 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15642 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15643 as_fn_error "conditional
\"GENERATE_FLEX_HEADER
\" was never defined.
15644 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15646 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15647 as_fn_error "conditional
\"INSTALL_SKINS
\" was never defined.
15648 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15650 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15651 as_fn_error "conditional
\"PLASMAMULE
\" was never defined.
15652 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15654 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15655 as_fn_error "conditional
\"COMPILE_LIB_COMMON
\" was never defined.
15656 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15658 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15659 as_fn_error "conditional
\"COMPILE_LIB_EC
\" was never defined.
15660 Usually this means the macro was only invoked conditionally.
" "$LINENO" 5
15663 : ${CONFIG_STATUS=./config.status}
15665 ac_clean_files_save=$ac_clean_files
15666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$CONFIG_STATUS" >&5
15668 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
15670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15672 # Generated by $as_me.
15673 # Run this file to recreate the current configuration.
15674 # Compiler output produced by configure, useful for debugging
15675 # configure, is in config.log if it exists.
15678 ac_cs_recheck=false
15681 SHELL=\${CONFIG_SHELL-$SHELL}
15684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15685 ## -------------------- ##
15686 ## M4sh Initialization. ##
15687 ## -------------------- ##
15689 # Be more Bourne compatible
15690 DUALCASE=1; export DUALCASE # for MKS sh
15691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15695 # is contrary to our usage. Disable this feature.
15696 alias -g '${1+"$@"}'='"$@
"'
15697 setopt NO_GLOB_SUBST
15699 case `(set -o) 2>/dev/null` in #(
15711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15715 # Prefer a ksh shell builtin over an external printf program on Solaris,
15716 # but without wasting forks for bash or zsh.
15717 if test -z "$BASH_VERSION$ZSH_VERSION" \
15718 && (test "X
`print -r -- $as_echo`" = "X
$as_echo") 2>/dev/null; then
15719 as_echo='print -r --'
15720 as_echo_n='print -rn --'
15721 elif (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
15722 as_echo='printf %s\n'
15723 as_echo_n='printf %s'
15725 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
15726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15727 as_echo_n='/usr/ucb/echo -n'
15729 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
15730 as_echo_n_body='eval
15734 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
15735 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
15737 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
15739 export as_echo_n_body
15740 as_echo_n='sh -c $as_echo_n_body as_echo'
15742 export as_echo_body
15743 as_echo='sh -c $as_echo_body as_echo'
15746 # The user is always right.
15747 if test "${PATH_SEPARATOR+set}" != set; then
15749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15757 # We need space, tab and new line, in precisely that order. Quoting is
15758 # there to prevent editors from complaining about space-tab.
15759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15760 # splitting by setting IFS to empty value.)
15763 # Find who we are. Look in the path if we contain no directory separator.
15765 *[\\/]* ) as_myself=$0 ;;
15766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15770 test -z "$as_dir" && as_dir=.
15771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15777 # We did not find ourselves, most probably we were run as `sh COMMAND'
15778 # in which case we are not to be found in the path.
15779 if test "x
$as_myself" = x; then
15782 if test ! -f "$as_myself"; then
15783 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
15787 # Unset variables that we do not need and which cause bugs (e.g. in
15788 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "||
exit 1"
15789 # suppresses any "Segmentation fault
" message there. '((' could
15790 # trigger a bug in pdksh 5.2.14.
15791 for as_var in BASH_ENV ENV MAIL MAILPATH
15792 do eval test x\${$as_var+set} = xset \
15793 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15809 # as_fn_error ERROR [LINENO LOG_FD]
15810 # ---------------------------------
15811 # Output "`basename $0`: error
: ERROR
" to stderr. If LINENO and LOG_FD are
15812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15813 # script with status $?, using 1 if that was 0.
15816 as_status=$?; test $as_status -eq 0 && as_status=1
15818 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15819 $as_echo "$as_me:${as_lineno-$LINENO}: error
: $1" >&$3
15821 $as_echo "$as_me: error
: $1" >&2
15822 as_fn_exit $as_status
15826 # as_fn_set_status STATUS
15827 # -----------------------
15828 # Set $? to STATUS, without forking.
15829 as_fn_set_status ()
15832 } # as_fn_set_status
15834 # as_fn_exit STATUS
15835 # -----------------
15836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15840 as_fn_set_status $1
15846 # Portably unset VAR.
15849 { eval $1=; unset $1;}
15851 as_unset=as_fn_unset
15852 # as_fn_append VAR VALUE
15853 # ----------------------
15854 # Append the text in VALUE to the end of the definition contained in VAR. Take
15855 # advantage of any shell optimizations that allow amortized linear growth over
15856 # repeated appends, instead of the typical quadratic growth present in naive
15858 if (eval "as_var
=1; as_var
+=2; test x\
$as_var = x12
") 2>/dev/null; then :
15859 eval 'as_fn_append ()
15870 # as_fn_arith ARG...
15871 # ------------------
15872 # Perform arithmetic evaluation on the ARGs, and store the result in the
15873 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15874 # must be portable across $(()) and expr.
15875 if (eval "test \$
(( 1 + 1 )) = 2") 2>/dev/null; then :
15876 eval 'as_fn_arith ()
15883 as_val=`expr "$@
" || test $? -eq 1`
15888 if expr a : '\(a\)' >/dev/null 2>&1 &&
15889 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
15895 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
15896 as_basename=basename
15901 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
15907 as_me=`$as_basename -- "$0" ||
15908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15909 X"$0" : 'X\(//\)$' \| \
15910 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15912 sed '/^.*\/\([^/][^/]*\)\/*$/{
15926 # Avoid depending upon Character Ranges.
15927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15930 as_cr_digits='0123456789'
15931 as_cr_alnum=$as_cr_Letters$as_cr_digits
15933 ECHO_C= ECHO_N= ECHO_T=
15934 case `echo -n x` in #(((((
15936 case `echo 'xy\c'` in
15937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15946 rm -f conf$$ conf$$.exe conf$$.file
15947 if test -d conf$$.dir; then
15948 rm -f conf$$.dir/conf$$.file
15951 mkdir conf$$.dir 2>/dev/null
15953 if (echo >conf$$.file) 2>/dev/null; then
15954 if ln -s conf$$.file conf$$ 2>/dev/null; then
15956 # ... but there are two gotchas:
15957 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15958 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15959 # In both cases, we have to default to `cp -p'.
15960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15962 elif ln conf$$.file conf$$ 2>/dev/null; then
15970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15971 rmdir conf$$.dir 2>/dev/null
15976 # Create "$as_dir" as a directory, including parents if necessary.
15981 -*) as_dir=./$as_dir;;
15983 test -d "$as_dir" || eval $as_mkdir_p || {
15987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s
/'/'\\\\\\\\''/g
"`;; #'(
15988 *) as_qdir=$as_dir;;
15990 as_dirs="'$as_qdir' $as_dirs"
15991 as_dir=`$as_dirname -- "$as_dir" ||
15992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15993 X"$as_dir" : 'X\(//\)[^/]' \| \
15994 X"$as_dir" : 'X\(//\)$' \| \
15995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15996 $as_echo X"$as_dir" |
15997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16001 /^X\(\/\/\)[^/].*/{
16014 test -d "$as_dir" && break
16016 test -z "$as_dirs" || eval "mkdir
$as_dirs"
16017 } || test -d "$as_dir" || as_fn_error "cannot create directory
$as_dir"
16021 if mkdir -p . 2>/dev/null; then
16022 as_mkdir_p='mkdir -p "$as_dir"'
16024 test -d ./-p && rmdir ./-p
16028 if test -x / >/dev/null 2>&1; then
16029 as_test_x='test -x'
16031 if ls -dL / >/dev/null 2>&1; then
16038 if test -d "$1"; then
16044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16045 ???[sx]*):;;*)false;;esac;fi
16049 as_executable_p=$as_test_x
16051 # Sed expression to map a string onto a valid CPP name.
16052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16054 # Sed expression to map a string onto a valid variable name.
16055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16059 ## ----------------------------------- ##
16060 ## Main body of $CONFIG_STATUS script. ##
16061 ## ----------------------------------- ##
16063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 # Save the log message, to keep $0 and so on meaningful, and to
16067 # report actual input values of CONFIG_FILES etc. instead of their
16068 # values after options handling.
16070 This
file was extended by aMule
$as_me SVN
, which was
16071 generated by GNU Autoconf
2.65. Invocation
command line was
16073 CONFIG_FILES
= $CONFIG_FILES
16074 CONFIG_HEADERS
= $CONFIG_HEADERS
16075 CONFIG_LINKS
= $CONFIG_LINKS
16076 CONFIG_COMMANDS
= $CONFIG_COMMANDS
16079 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
16084 case $ac_config_files in *"
16085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16088 case $ac_config_headers in *"
16089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16094 # Files that config.status was made for.
16095 config_files="$ac_config_files"
16096 config_headers="$ac_config_headers"
16097 config_commands="$ac_config_commands"
16101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 \
`$as_me' instantiates files and other configuration actions
16104 from templates according to the current configuration. Unless the files
16105 and actions are specified as TAGs, all are instantiated by default.
16107 Usage: $0 [OPTION]... [TAG]...
16109 -h, --help print this help, then exit
16110 -V, --version print version number and configuration settings, then exit
16111 --config print configuration, then exit
16112 -q, --quiet, --silent
16113 do not print progress messages
16114 -d, --debug don't remove temporary files
16115 --recheck update $as_me by reconfiguring in the same conditions
16116 --file=FILE[:TEMPLATE]
16117 instantiate the configuration file FILE
16118 --header=FILE[:TEMPLATE]
16119 instantiate the configuration header FILE
16121 Configuration files:
16124 Configuration headers:
16127 Configuration commands:
16130 Report bugs to <admin@amule.org>."
16133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16134 ac_cs_config="`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16136 aMule config.status SVN
16137 configured by $0, generated by GNU Autoconf 2.65,
16138 with options \\"\$ac_cs_config\\"
16140 Copyright (C) 2009 Free Software Foundation, Inc.
16141 This config.status script is free software; the Free Software Foundation
16142 gives unlimited permission to copy, distribute and modify it."
16149 test -n "\$AWK" || AWK=awk
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 # The default lists apply if the user does not specify any file.
16159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16160 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16171 # Handling of the options.
16172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16175 $as_echo "$ac_cs_version"; exit ;;
16176 --config | --confi | --conf | --con | --co | --c )
16177 $as_echo "$ac_cs_config"; exit ;;
16178 --debug | --debu | --deb | --de | --d | -d )
16180 --file | --fil | --fi | --f )
16183 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
16185 as_fn_append CONFIG_FILES " '$ac_optarg'"
16186 ac_need_defaults=false;;
16187 --header | --heade | --head | --hea )
16190 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
16192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16193 ac_need_defaults=false;;
16195 # Conflict between --help and --header
16196 as_fn_error "ambiguous option: \`$1'
16197 Try \`$0 --help' for more information.
";;
16198 --help | --hel | -h )
16199 $as_echo "$ac_cs_usage"; exit ;;
16200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16204 # This is an error.
16205 -*) as_fn_error "unrecognized option
: \
`$1'
16206 Try \`$0 --help' for more information." ;;
16208 *) as_fn_append ac_config_targets " $1"
16209 ac_need_defaults=false ;;
16215 ac_configure_extra_args=
16217 if $ac_cs_silent; then
16219 ac_configure_extra_args="$ac_configure_extra_args --silent"
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 if \$ac_cs_recheck; then
16225 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16228 CONFIG_SHELL='$SHELL'
16229 export CONFIG_SHELL
16234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16238 sed 'h
;s
/.
/-/g
;s
/^...
/## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16239 ## Running $as_me. ##
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16250 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16251 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16253 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16254 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16255 LINGUAS="${LINGUAS-%UNSET%}"
16257 denoiserlevel=$with_denoise_level
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16263 # Handling of arguments.
16264 for ac_config_target
in $ac_config_targets
16266 case $ac_config_target in
16267 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16268 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16269 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16270 "denoiser") CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
16271 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16272 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
16273 "docs/man/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
16274 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
16275 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16276 "src/pixmaps/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
16277 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16278 "src/libs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
16279 "src/libs/ec/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
16280 "src/libs/ec/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16281 "src/libs/common/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
16282 "src/utils/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
16283 "src/utils/aLinkCreator/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16284 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16285 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16286 "src/utils/cas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
16287 "src/utils/cas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16288 "src/utils/fileview/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16289 "src/utils/plasmamule/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16290 "src/utils/wxCas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16291 "src/utils/wxCas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16292 "src/utils/wxCas/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16293 "src/utils/xas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
16294 "src/utils/xas/autostart-xas") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16295 "src/utils/xas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16296 "src/skins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
16297 "src/webserver/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
16298 "src/webserver/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
16299 "src/webserver/default/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
16300 "unittests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
16301 "unittests/muleunit/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16302 "unittests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
16303 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
16304 "Compilation.flags") CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
16305 "version.rc") CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
16307 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16312 # If the user did not use the arguments to specify the items to instantiate,
16313 # then the envvar interface is used. Set only those that are not.
16314 # We use the long form for the default assignment because of an extremely
16315 # bizarre bug on SunOS 4.1.3.
16316 if $ac_need_defaults; then
16317 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16318 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16319 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16322 # Have a temporary directory for convenience. Make it in the build tree
16323 # simply because there is no reason against having it here, and in addition,
16324 # creating and moving files from /tmp can sometimes cause problems.
16325 # Hook for its removal unless debugging.
16326 # Note that there is a small window in which the directory will not be cleaned:
16327 # after its creation but before its name has been assigned to `$tmp'.
16331 trap 'exit_status=$?
16332 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16334 trap 'as_fn_exit 1' 1 2 13 15
16336 # Create a (secure) tmp directory for tmp files.
16339 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16340 test -n "$tmp" && test -d "$tmp"
16343 tmp
=.
/conf$$
-$RANDOM
16344 (umask 077 && mkdir
"$tmp")
16345 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16347 # Set up the scripts for CONFIG_FILES section.
16348 # No need to generate them if there are no CONFIG_FILES.
16349 # This happens for instance with `./config.status config.h'.
16350 if test -n "$CONFIG_FILES"; then
16353 ac_cr
=`echo X | tr X '\015'`
16354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16355 # But we know of no other shell where ac_cr would be empty at this
16356 # point, so we can use a bashism as a fallback.
16357 if test "x$ac_cr" = x
; then
16358 eval ac_cr
=\$
\'\\r
\'
16360 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16364 ac_cs_awk_cr
=$ac_cr
16367 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16372 echo "cat >conf$$subs.awk <<_ACEOF" &&
16373 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16375 } >conf$$subs.sh ||
16376 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16379 for ac_last_try in false false false false false :; do
16380 . ./conf$$subs.sh ||
16381 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16383 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16384 if test $ac_delim_n = $ac_delim_num; then
16386 elif $ac_last_try; then
16387 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16389 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16392 rm -f conf$$subs.sh
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16399 s/^/S["/; s
/!.
*/"]=/
16409 s/\(.\{148\}\)..*/\1/
16411 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16416 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16423 s/\(.\{148\}\)..*/\1/
16425 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16429 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16434 ' <conf$$subs.awk | sed '
16439 ' >>$CONFIG_STATUS || ac_write_fail=1
16440 rm -f conf$$subs.awk
16441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16444 for (key in S) S_is_set[key] = 1
16450 nfields = split(line, field, "@
")
16452 len = length(field[1])
16453 for (i = 2; i < nfields; i++) {
16455 keylen = length(key)
16456 if (S_is_set[key]) {
16458 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16459 len += length(value) + length(field[++i])
16470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16471 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16472 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16475 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16476 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16481 # trailing colons and then remove the whole line if VPATH becomes empty
16482 # (actually we leave an empty line to preserve line numbers).
16483 if test "x
$srcdir" = x.; then
16484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16485 s/:*\$(srcdir):*/:/
16486 s/:*\${srcdir}:*/:/
16488 s/^\([^=]*=[ ]*\):*/\1/
16494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16495 fi # test -n "$CONFIG_FILES"
16497 # Set up the scripts for CONFIG_HEADERS section.
16498 # No need to generate them if there are no CONFIG_HEADERS.
16499 # This happens for instance with `./config.status Makefile'.
16500 if test -n "$CONFIG_HEADERS"; then
16501 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16505 # Transform confdefs.h into an awk script `defines.awk', embedded as
16506 # here-document in config.status, that substitutes the proper values into
16507 # config.h.in to produce config.h.
16509 # Create a delimiter string that does not exist in confdefs.h, to ease
16510 # handling of long lines.
16512 for ac_last_try in false false :; do
16513 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16514 if test -z "$ac_t"; then
16516 elif $ac_last_try; then
16517 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16519 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16523 # For the awk script, D is an array of macro values keyed by name,
16524 # likewise P contains macro parameters if any. Preserve backslash
16525 # newline sequences.
16527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16529 s/.\{148\}/&'"$ac_delim"'/g
16532 s/^[ ]*#[ ]*define[ ][ ]*/ /
16539 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16541 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16546 D["\
1"]=" \
3\\\\\\n
"\\/p
16548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16553 s/.\{148\}/&'"$ac_delim"'/g
16558 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16561 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16563 ' <confdefs.h | sed '
16564 s/'"$ac_delim"'/"\\\
16565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16568 for (key in D) D_is_set[key] = 1
16571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16573 split(line, arg, " ")
16574 if (arg[1] == "#") {
16578 defundef
= substr
(arg
[1], 2)
16581 split(mac1
, mac2
, "(") #)
16583 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16584 if (D_is_set
[macro
]) {
16585 # Preserve the white space surrounding the "#".
16586 print prefix
"define", macro P
[macro
] D
[macro
]
16589 # Replace #undef with comments. This is necessary, for example,
16590 # in the case of _POSIX_SOURCE, which is predefined and required
16591 # on some systems where configure will not decide to define it.
16592 if (defundef
== "undef") {
16593 print
"/*", prefix defundef
, macro
, "*/"
16601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16602 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16603 fi # test -n "$CONFIG_HEADERS"
16606 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16611 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16613 case $ac_mode$ac_tag in
16615 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16616 :[FH
]-) ac_tag
=-:-;;
16617 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16634 -) ac_f
="$tmp/stdin";;
16635 *) # Look for the file first in the build tree, then in the source tree
16636 # (if the path is not absolute). The absolute path cannot be DOS-style,
16637 # because $ac_f cannot contain `:'.
16641 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16643 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16645 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16646 as_fn_append ac_file_inputs
" '$ac_f'"
16649 # Let's still pretend it is `configure' which instantiates (i.e., don't
16650 # use $as_me), people would be surprised to read:
16651 # /* config.h. Generated by config.status. */
16652 configure_input
='Generated from '`
16653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16655 if test x
"$ac_file" != x-
; then
16656 configure_input
="$ac_file. $configure_input"
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16658 $as_echo "$as_me: creating $ac_file" >&6;}
16660 # Neutralize special characters interpreted by sed in replacement strings.
16661 case $configure_input in #(
16662 *\
&* |
*\|
* |
*\\* )
16663 ac_sed_conf_input
=`$as_echo "$configure_input" |
16664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16665 *) ac_sed_conf_input
=$configure_input;;
16669 *:-:* |
*:-) cat >"$tmp/stdin" \
16670 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16675 ac_dir
=`$as_dirname -- "$ac_file" ||
16676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$ac_file" : 'X\(//\)[^/]' \| \
16678 X"$ac_file" : 'X\(//\)$' \| \
16679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16680 $as_echo X"$ac_file" |
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16685 /^X\(\/\/\)[^/].*/{
16698 as_dir
="$ac_dir"; as_fn_mkdir_p
16702 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16704 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16705 # A ".." for each directory in $ac_dir_suffix.
16706 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16707 case $ac_top_builddir_sub in
16708 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16709 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16712 ac_abs_top_builddir
=$ac_pwd
16713 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16714 # for backward compatibility:
16715 ac_top_builddir
=$ac_top_build_prefix
16718 .
) # We are building in place.
16720 ac_top_srcdir
=$ac_top_builddir_sub
16721 ac_abs_top_srcdir
=$ac_pwd ;;
16722 [\\/]* | ?
:[\\/]* ) # Absolute name.
16723 ac_srcdir
=$srcdir$ac_dir_suffix;
16724 ac_top_srcdir
=$srcdir
16725 ac_abs_top_srcdir
=$srcdir ;;
16726 *) # Relative name.
16727 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16728 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16729 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16731 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16741 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16742 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16744 ac_MKDIR_P
=$MKDIR_P
16746 [\\/$
]* | ?
:[\\/]* ) ;;
16747 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16752 # If the template does not know about datarootdir, expand it.
16753 # FIXME: This hack should be removed a few years after 2.60.
16754 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16766 *datarootdir
*) ac_datarootdir_seen
=yes;;
16767 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772 ac_datarootdir_hack='
16773 s&@datadir@&$datadir&g
16774 s&@docdir@&$docdir&g
16775 s&@infodir@&$infodir&g
16776 s&@localedir@&$localedir&g
16777 s&@mandir@&$mandir&g
16778 s&\\\${datarootdir}&$datarootdir&g' ;;
16782 # Neutralize VPATH when `$srcdir' = `.'.
16783 # Shell code in configure.ac might set extrasub.
16784 # FIXME: do we really want to maintain this feature?
16785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16786 ac_sed_extra="$ac_vpsub
16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16791 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16792 s|@configure_input@|
$ac_sed_conf_input|
;t t
16793 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16794 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16795 s
&@srcdir@
&$ac_srcdir&;t t
16796 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16797 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16798 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16799 s
&@builddir@
&$ac_builddir&;t t
16800 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16801 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16802 s
&@INSTALL@
&$ac_INSTALL&;t t
16803 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16804 $ac_datarootdir_hack
16806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
16807 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16813 which seems to be undefined. Please make sure it is defined." >&5
16814 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16815 which seems to be undefined. Please make sure it is defined." >&2;}
16819 -) cat "$tmp/out" && rm -f "$tmp/out";;
16820 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16822 || as_fn_error "could not create $ac_file" "$LINENO" 5
16828 if test x"$ac_file" != x-; then
16830 $as_echo "/* $configure_input */" \
16831 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16832 } >"$tmp/config.h" \
16833 || as_fn_error "could not create $ac_file" "$LINENO" 5
16834 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16836 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16839 mv "$tmp/config.h" "$ac_file" \
16840 || as_fn_error "could not create $ac_file" "$LINENO" 5
16843 $as_echo "/* $configure_input */" \
16844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16845 || as_fn_error "could not create -" "$LINENO" 5
16847 # Compute "$ac_file"'s index
in $config_headers.
16850 for _am_header
in $config_headers :; do
16851 case $_am_header in
16852 $_am_arg |
$_am_arg:* )
16855 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16858 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16859 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860 X"$_am_arg" : 'X\(//\)[^/]' \| \
16861 X"$_am_arg" : 'X\(//\)$' \| \
16862 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$_am_arg" |
16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16868 /^X\(\/\/\)[^/].*/{
16880 s/.*/./; q'`/stamp-h
$_am_stamp_count
16883 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16884 $as_echo "$as_me: executing $ac_file commands" >&6;}
16889 case $ac_file$ac_mode in
16890 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16891 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16892 # are listed without --file. Let's play safe and only enable the eval
16893 # if we detect the quoting.
16894 case $CONFIG_FILES in
16895 *\'*) eval set x
"$CONFIG_FILES" ;;
16896 *) set x
$CONFIG_FILES ;;
16901 # Strip MF so we end up with the name of the file.
16902 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16903 # Check whether this is an Automake generated Makefile or not.
16904 # We used to match only the files named `Makefile.in', but
16905 # some people rename them; so instead we look at the file content.
16906 # Grep'ing the first line is not enough: some people post-process
16907 # each Makefile.in and add a new line on top of each file to say so.
16908 # Grep'ing the whole file is not good either: AIX grep has a line
16909 # limit of 2048, but all sed's we know have understand at least 4000.
16910 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16911 dirpart
=`$as_dirname -- "$mf" ||
16912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16913 X"$mf" : 'X\(//\)[^/]' \| \
16914 X"$mf" : 'X\(//\)$' \| \
16915 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16921 /^X\(\/\/\)[^/].*/{
16937 # Extract the definition of DEPDIR, am__include, and am__quote
16938 # from the Makefile without running `make'.
16939 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16940 test -z "$DEPDIR" && continue
16941 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16942 test -z "am__include" && continue
16943 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16944 # When using ansi2knr, U may be empty or an underscore; expand it
16945 U
=`sed -n 's/^U = //p' < "$mf"`
16946 # Find all dependency output files, they are included files with
16947 # $(DEPDIR) in their names. We invoke sed twice because it is the
16948 # simplest approach to changing $(DEPDIR) to its actual value in the
16950 for file in `sed -n "
16951 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16952 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16953 # Make sure the directory exists.
16954 test -f "$dirpart/$file" && continue
16955 fdir
=`$as_dirname -- "$file" ||
16956 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16957 X"$file" : 'X\(//\)[^/]' \| \
16958 X"$file" : 'X\(//\)$' \| \
16959 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16960 $as_echo X"$file" |
16961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 /^X\(\/\/\)[^/].*/{
16978 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16979 # echo "creating $dirpart/$file"
16980 echo '# dummy' > "$dirpart/$file"
16986 for ac_file
in $CONFIG_FILES; do
16987 # Support "outfile[:infile[:infile...]]"
16989 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
16991 # PO directories have a Makefile.in generated from Makefile.in.in.
16992 case "$ac_file" in */Makefile.
in)
16993 # Adjust a relative srcdir.
16994 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16995 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
16996 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16997 # In autoconf-2.13 it is called $ac_given_srcdir.
16998 # In autoconf-2.50 it is called $srcdir.
16999 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17000 case "$ac_given_srcdir" in
17001 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17002 /*) top_srcdir
="$ac_given_srcdir" ;;
17003 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17005 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17006 rm -f "$ac_dir/POTFILES"
17007 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17008 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17009 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17010 # on $ac_dir but don't depend on user-specified configuration
17012 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17013 # The LINGUAS file contains the set of available languages.
17014 if test -n "$ALL_LINGUAS"; then
17015 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17017 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17018 # Hide the ALL_LINGUAS assigment from automake.
17019 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17021 case "$ac_given_srcdir" in
17023 *) srcdirpre
='$(srcdir)/' ;;
17029 for lang
in $ALL_LINGUAS; do
17030 POFILES
="$POFILES $srcdirpre$lang.po"
17031 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17032 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17033 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17035 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17036 # environment variable.
17038 if test -n "$ALL_LINGUAS"; then
17039 for presentlang
in $ALL_LINGUAS; do
17041 if test "%UNSET%" != "$LINGUAS"; then
17042 desiredlanguages
="$LINGUAS"
17044 desiredlanguages
="$ALL_LINGUAS"
17046 for desiredlang
in $desiredlanguages; do
17047 # Use the presentlang catalog if desiredlang is
17048 # a. equal to presentlang, or
17049 # b. a variant of presentlang (because in this case,
17050 # presentlang can be used as a fallback for messages
17051 # which are not translated in the desiredlang catalog).
17052 case "$desiredlang" in
17053 "$presentlang"*) useit
=yes;;
17056 if test $useit = yes; then
17057 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17062 if test -n "$INST_LINGUAS"; then
17063 for lang
in $INST_LINGUAS; do
17064 CATALOGS
="$CATALOGS $lang.gmo"
17067 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17068 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"
17069 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17070 if test -f "$f"; then
17072 *.orig |
*.bak |
*~
) ;;
17073 *) cat "$f" >> "$ac_dir/Makefile" ;;
17081 "denoiser":C
) if test $denoiserlevel -gt 0; then
17082 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
17083 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" \
17084 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
17085 for i
in `find . -name 'Makefile' -print`; do
17086 if test -n "`head -n 1 $i | grep '^#'`"; then
17087 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
17098 ac_clean_files
=$ac_clean_files_save
17100 test $ac_write_fail = 0 ||
17101 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17104 # configure is writing to config.log, and then calls config.status.
17105 # config.status does its own redirection, appending to config.log.
17106 # Unfortunately, on DOS this fails, as config.log is still kept open
17107 # by configure, so config.status won't be able to write to it; its
17108 # output is simply discarded. So we exec the FD to /dev/null,
17109 # effectively closing config.log, so it can be properly (re)opened and
17110 # appended to by config.status. When coming back to configure, we
17111 # need to make the FD available again.
17112 if test "$no_create" != yes; then
17114 ac_config_status_args
=
17115 test "$silent" = yes &&
17116 ac_config_status_args
="$ac_config_status_args --quiet"
17118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17121 # would make configure fail if this is the last instruction.
17122 $ac_cs_success || as_fn_exit $?
17124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17130 if test -n "$svndate"; then :
17131 SVN_REVISION
=" ($svndate)"
17138 echo " Configure script has finished system check."
17140 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17142 echo " aMule enabled options:"
17144 echo " **** aMule Core ****"
17145 echo " Prefix where aMule should be installed? ${prefix:-none}"
17146 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17147 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17148 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17149 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17150 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17151 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17152 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17153 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17154 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17155 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17158 echo " **** aMule TextClient ****"
17159 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17161 echo " **** aMule WebServer ****"
17162 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17164 echo " **** aMule ED2K Links Handler ****"
17165 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17167 echo " **** aMuleLinkCreator ****"
17168 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17169 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17171 echo " **** aMule Statistics ****"
17172 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17173 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17174 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17175 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17178 echo " **** General Libraries and Tools ****"
17179 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17180 echo " Libraries aMule will use to build:"
17181 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 :
17184 if test $WX_DEBUG -eq 1; then :
17185 wxinfo
="$wxinfo,debug"
17187 if test $WX_SHARED -eq 1; then :
17188 wxinfo
="$wxinfo,shared"
17190 wxinfo
="$wxinfo,static"
17192 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17195 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17196 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17198 if test ${enable_upnp:-yes} = yes; then :
17200 if test -n "$with_libupnp_prefix"; then :
17201 libupnp_place
=" (in $with_libupnp_prefix)"
17203 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17206 if test ${enable_nls:-yes} = yes; then
17207 if test x
$USE_NLS = xno
; then :
17208 libintl_found
="Not detected"
17210 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
17211 libintl_found
="included"
17213 libintl_found
="system"
17216 echo " libintl $libintl_found"
17218 if test ${enable_geoip:-no} = yes; then :
17219 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17224 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17225 echo " libGeoIP ${geoip_style}"
17228 if test ${enable_webserver:-no} = yes; then :
17229 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17231 if test ${enable_cas:-no} = yes; then :
17232 echo " libgd ${GDLIB_VERSION:-Not detected}"
17234 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 :
17235 echo " zlib ${ZLIB_VERSION:-Not detected}"
17237 if test ${enable_plasmamule:-no} = yes; then :
17238 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17239 echo " qt-core-libs ${QT_CORE_LIBS}"
17240 echo " qt-gui-libs ${QT_GUI_LIBS}"
17241 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17242 echo " kde-headers ${KDE_HEADER_DIR}"
17243 echo " kde-services-path ${KDE_SERVICE_PATH}"
17244 echo " kde-module-path ${KDE_MODULE_PATH}"
17245 echo " kde-icon-path ${KDE_ICON_PATH}"
17246 echo " kde-mime-path ${KDE_MIME_PATH}"
17247 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17250 if test ${_mule_has_warnings:-no} = yes; then
17253 echo " *** Warnings during configuration ***"
17255 if test ${_mule_warning_0:-no} = yes; then
17258 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17259 Please check that gdlib-config is in your default path, check out
17260 LD_LIBRARY_PATH or equivalent variable.
17261 Or this might also be that your gdlib-config has other name.
17262 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17263 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17264 If you use compiled packages check if you have devel pack installed.
17265 To download the latest version check http://www.boutell.com/gd for sources.
17268 if test ${_mule_warning_1:-no} = yes; then
17271 * libpng >= 1.2.0 not found.
17272 amuleweb will be compiled but file download progress bar images will NOT be
17276 if test ${_mule_warning_2:-no} = yes; then
17279 * File::Copy perl module is required by the mldonkey_importer script.
17280 If you want to use this script please install File::Copy from CPAN.
17283 if test ${_mule_warning_3:-no} = yes; then
17286 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17289 if test ${_mule_warning_4:-no} = yes; then
17292 * GeoIP support has been disabled because the GeoIP libraries were not found
17295 if test ${_mule_warning_5:-no} = yes; then
17298 * GeoIP support has been disabled because the GeoIP header files were not
17302 if test ${_mule_warning_6:-no} = yes; then
17305 * UPnP code has been disabled because ${libupnp_error}.
17308 if test ${_mule_warning_7:-no} = yes; then
17311 * Cross-compilation detected, so exception handling cannot be tested.
17312 Note that broken exception handling in your compiler may lead to unexpected
17316 if test ${_mule_warning_8:-no} = yes; then
17319 * configure cannot check whether malloc() and realloc() are GNU libc
17320 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17321 configure with the --without-gnu-malloc switch.
17324 if test ${_mule_warning_9:-no} = yes; then
17327 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17331 if test ${_mule_warning_10:-no} = yes; then
17334 * bfd.h not found or unusable, please install binutils development package if
17335 you are a developer or want to help testing aMule