2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='amule'
272 PACKAGE_VERSION
='SVN'
273 PACKAGE_STRING
='aMule SVN'
274 PACKAGE_BUGREPORT
='admin@amule.org'
276 ac_unique_file
="src/amule.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESOLV_LIB MULECPPFLAGS MULECFLAGS MULECXXFLAGS MULELDFLAGS MULERCFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP BUILD_CC ac_ct_BUILD_CC EXEEXT BUILD_EXEEXT BUILD_CPPFLAGS BUILD_CFLAGS BUILD_LDFLAGS EGREP LEX LEXLIB LEX_OUTPUT_ROOT RANLIB ac_ct_RANLIB YACC AR ac_ct_AR LD ac_ct_LD MONOLITHIC_TRUE MONOLITHIC_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE WEB_TRUE WEB_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ED2K_TRUE ED2K_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE XAS_TRUE XAS_FALSE FILEVIEW_TRUE FILEVIEW_FALSE ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_VERSION_FULL WX_RESCOMP WX_VERSION_MAJOR WX_VERSION_MINOR WX_UNICODE WX_DEBUG WX_SHARED WX_PORT WXBASE_LIBS WXBASE_CPPFLAGS RC RCFLAGS ac_ct_RC PKG_CONFIG ac_pt_PKG_CONFIG LIBUPNP_CPPFLAGS LIBUPNP_CFLAGS LIBUPNP_LDFLAGS LIBUPNP_LIBS CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS ALLOCA LIBOBJS POW_LIB MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB AMULE_DAEMON_MANPAGES AMULECMD_MANPAGES WEBSERVER_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL BFD_CPPFLAGS BFD_LIBS docdir SVNDATE QT_MOC QT_CORE_CXXFLAGS QT_CORE_LIBS QT_GUI_CXXFLAGS QT_GUI_LIBS KDE4_CONFIG KDE_HEADER_DIR KDE_APPLNK_PATH KDE_SERVICE_PATH KDE_MODULE_PATH KDE_ICON_PATH KDE_MIME_PATH SYS_WIN32_TRUE SYS_WIN32_FALSE NEED_RC_TRUE NEED_RC_FALSE NEED_CORESERVICES_TRUE NEED_CORESERVICES_FALSE COMPILE_NLS_TRUE COMPILE_NLS_FALSE GENERATE_FLEX_HEADER_TRUE GENERATE_FLEX_HEADER_FALSE INSTALL_SKINS_TRUE INSTALL_SKINS_FALSE PLASMAMULE_TRUE PLASMAMULE_FALSE COMPILE_LIB_COMMON_TRUE COMPILE_LIB_COMMON_FALSE COMPILE_LIB_EC_TRUE COMPILE_LIB_EC_FALSE READLINE_LIBS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CXX_set
=${CXX+set}
756 ac_env_CXX_value
=$CXX
757 ac_cv_env_CXX_set
=${CXX+set}
758 ac_cv_env_CXX_value
=$CXX
759 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value
=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CXXCPP_set
=${CXXCPP+set}
772 ac_env_CXXCPP_value
=$CXXCPP
773 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
774 ac_cv_env_CXXCPP_value
=$CXXCPP
775 ac_env_CC_set
=${CC+set}
777 ac_cv_env_CC_set
=${CC+set}
778 ac_cv_env_CC_value
=$CC
779 ac_env_CFLAGS_set
=${CFLAGS+set}
780 ac_env_CFLAGS_value
=$CFLAGS
781 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value
=$CFLAGS
783 ac_env_CPP_set
=${CPP+set}
784 ac_env_CPP_value
=$CPP
785 ac_cv_env_CPP_set
=${CPP+set}
786 ac_cv_env_CPP_value
=$CPP
787 ac_env_RC_set
=${RC+set}
789 ac_cv_env_RC_set
=${RC+set}
790 ac_cv_env_RC_value
=$RC
791 ac_env_RCFLAGS_set
=${RCFLAGS+set}
792 ac_env_RCFLAGS_value
=$RCFLAGS
793 ac_cv_env_RCFLAGS_set
=${RCFLAGS+set}
794 ac_cv_env_RCFLAGS_value
=$RCFLAGS
795 ac_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
796 ac_env_PKG_CONFIG_value
=$PKG_CONFIG
797 ac_cv_env_PKG_CONFIG_set
=${PKG_CONFIG+set}
798 ac_cv_env_PKG_CONFIG_value
=$PKG_CONFIG
801 # Report the --help message.
803 if test "$ac_init_help" = "long"; then
804 # Omit some internal or obsolete options to make the list less imposing.
805 # This message is too long to be a string in the A/UX 3.1 sh.
807 \`configure' configures aMule SVN to adapt to many kinds of systems.
809 Usage: $0 [OPTION]... [VAR=VALUE]...
811 To assign environment variables (e.g., CC, CFLAGS...), specify them as
812 VAR=VALUE. See below for descriptions of some of the useful variables.
814 Defaults for the options are specified in brackets.
817 -h, --help display this help and exit
818 --help=short display options specific to this package
819 --help=recursive display the short help of all the included packages
820 -V, --version display version information and exit
821 -q, --quiet, --silent do not print \`checking...' messages
822 --cache-file=FILE cache test results in FILE [disabled]
823 -C, --config-cache alias for \`--cache-file=config.cache'
824 -n, --no-create do not create output files
825 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830 Installation directories:
831 --prefix=PREFIX install architecture-independent files in PREFIX
833 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
836 By default, \`make install' will install all the files in
837 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
838 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
839 for instance \`--prefix=\$HOME'.
841 For better control, use the options below.
843 Fine tuning of the installation directories:
844 --bindir=DIR user executables [EPREFIX/bin]
845 --sbindir=DIR system admin executables [EPREFIX/sbin]
846 --libexecdir=DIR program executables [EPREFIX/libexec]
847 --datadir=DIR read-only architecture-independent data [PREFIX/share]
848 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
849 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
850 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
851 --libdir=DIR object code libraries [EPREFIX/lib]
852 --includedir=DIR C header files [PREFIX/include]
853 --oldincludedir=DIR C header files for non-gcc [/usr/include]
854 --infodir=DIR info documentation [PREFIX/info]
855 --mandir=DIR man documentation [PREFIX/man]
861 --program-prefix=PREFIX prepend PREFIX to installed program names
862 --program-suffix=SUFFIX append SUFFIX to installed program names
863 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
866 --build=BUILD configure
for building on BUILD
[guessed
]
867 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
871 if test -n "$ac_init_help"; then
872 case $ac_init_help in
873 short | recursive
) echo "Configuration of aMule SVN:";;
878 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
879 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
880 --enable-maintainer-mode enable make rules and dependencies not useful
881 (and sometimes confusing
) to the casual installer
882 --disable-dependency-tracking speeds up one-time build
883 --enable-dependency-tracking do not reject slow dependency extractors
884 --disable-monolithic disable building of the monolithic aMule app
885 --enable-amule-daemon compile aMule daemon version
886 --enable-amulecmd compile aMule
command line client
887 --enable-webserver compile aMule WebServer
888 --enable-amule-gui compile aMule remote GUI
(EXPERIMENTAL
)
889 --enable-cas compile C aMule Statistics
890 --enable-wxcas compile aMule GUI Statistics
891 --disable-ed2k don
't compile aMule ed2k links handler
892 --enable-alc compile aMuleLinkCreator GUI version
893 --enable-alcc compile aMuleLinkCreator for console
894 --enable-xas install xas XChat2 plugin
895 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
896 --enable-plasmamule compile aMule plasma applet and engine
897 --enable-static produce a statically linked executable
898 --enable-kde-in-home install KDE related stuff in your home dir
899 --enable-geoip compile with GeoIP IP2Country library
900 --disable-upnp do not compile UPnP code
901 --enable-mmap enable using mapped memory if supported
902 --disable-rpath do not hardcode runtime library paths
903 --disable-nls do not use Native Language Support
904 --disable-debug disable additional debugging output
905 --enable-profile enable code profiling
906 --enable-optimize enable code optimization
907 --enable-ccache enable ccache support for fast recompilation
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-kde4-config=PATH kde4-config script to use
913 --with-moc=PATH Search in PATH for Qt's meta object compiler
914 --without-gnu-malloc Don
't assume that we use GNU libc compatible
915 malloc/realloc when cross-compiling
916 --with-zlib=PREFIX use zlib in PREFIX
917 --with-gdlib-prefix=PREFIX
918 prefix where gdlib is installed (optional)
919 --with-gdlib-config=CONFIG
920 gdlib-config script to use (optional)
921 --with-libpng-prefix=PREFIX
922 prefix where libpng is installed (optional)
923 --with-libpng-config=CONFIG
924 libpng-config script to use (optional)
925 --with-geoip-headers=DIR
926 GeoIP include files location
927 --with-geoip-lib=DIR GeoIP library location
928 --with-geoip-static Explicitly link GeoIP statically (default=no)
929 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
930 --with-wx-config=CONFIG wx-config script to use (optional)
931 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
932 --with-wx-exec-prefix=PREFIX
933 Exec prefix where wxWidgets is installed (optional)
934 --with-toolkit Build against a specific wxWidgets toolkit (default
936 --with-wxshared Force building against a shared build of wxWidgets,
937 even if --disable-shared is given (default is auto)
938 --with-wxdebug Force building against a debug build of wxWidgets,
939 even if --disable-debug is given (default is auto)
940 --with-wxversion Build against a specific version of wxWidgets
942 --with-libupnp-prefix=PREFIX
943 UPnP library location
944 --with-crypto-prefix=PREFIX
945 prefix where crypto++ is installed
946 --with-language=<langs> Specify a comma-separated list of languages you want
947 to have installed. See po/LINGUAS for available
949 --with-gnu-ld assume the C compiler uses GNU ld default=no
950 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
951 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
952 --with-included-gettext use the GNU
gettext library included here
953 --with-libintl-prefix=DIR search
for libintl
in DIR
/include and DIR
/lib
954 --without-libintl-prefix don
't search for libintl in includedir and libdir
955 --with-denoise-level=<level>
956 Specifies denoising level (0-4):
958 4 - Suppress all normal output
959 (for more information see
960 src/utils/scripts/denoiser.rules)
962 --with-ccache-prefix=PREFIX
963 prefix where ccache is installed
965 Some influential environment variables:
966 CXX C++ compiler command
967 CXXFLAGS C++ compiler flags
968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
969 nonstandard directory <lib dir>
970 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
971 headers in a nonstandard directory <include dir>
972 CXXCPP C++ preprocessor
973 CC C compiler command
974 CFLAGS C compiler flags
977 RCFLAGS Resource Compiler Flags
978 PKG_CONFIG path to pkg-config utility
980 Use these variables to override the choices made by `configure' or to
help
981 it to
find libraries and programs with nonstandard names
/locations.
983 Report bugs to
<admin@amule.org
>.
987 if test "$ac_init_help" = "recursive"; then
988 # If there are subdirs, report their specific --help.
990 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
991 test -d $ac_dir ||
continue
994 if test "$ac_dir" != .
; then
995 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
996 # A "../" for each directory in $ac_dir_suffix.
997 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
999 ac_dir_suffix
= ac_top_builddir
=
1003 .
) # No --srcdir option. We are building in place.
1005 if test -z "$ac_top_builddir"; then
1008 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
1010 [\\/]* | ?
:[\\/]* ) # Absolute path.
1011 ac_srcdir
=$srcdir$ac_dir_suffix;
1012 ac_top_srcdir
=$srcdir ;;
1014 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
1015 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
1018 # Do not use `cd foo && pwd` to compute absolute paths, because
1019 # the directories may not exist.
1021 .
) ac_abs_builddir
="$ac_dir";;
1024 .
) ac_abs_builddir
=`pwd`;;
1025 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
1026 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
1029 case $ac_abs_builddir in
1030 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
1032 case ${ac_top_builddir}.
in
1033 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
1034 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
1035 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
1038 case $ac_abs_builddir in
1039 .
) ac_abs_srcdir
=$ac_srcdir;;
1042 .
) ac_abs_srcdir
=$ac_abs_builddir;;
1043 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
1044 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
1047 case $ac_abs_builddir in
1048 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
1050 case $ac_top_srcdir in
1051 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
1052 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
1053 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
1058 # Check for guested configure; otherwise get Cygnus style configure.
1059 if test -f $ac_srcdir/configure.gnu
; then
1061 $SHELL $ac_srcdir/configure.gnu
--help=recursive
1062 elif test -f $ac_srcdir/configure
; then
1064 $SHELL $ac_srcdir/configure
--help=recursive
1065 elif test -f $ac_srcdir/configure.ac ||
1066 test -f $ac_srcdir/configure.
in; then
1068 $ac_configure --help
1070 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076 test -n "$ac_init_help" && exit 0
1077 if $ac_init_version; then
1080 generated by GNU Autoconf
2.59
1082 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1083 This configure
script is free software
; the Free Software Foundation
1084 gives unlimited permission to copy
, distribute and modify it.
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1093 It was created by aMule $as_me SVN, which was
1094 generated by GNU Autoconf 2.59. Invocation command line was
1105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1117 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1128 test -z "$as_dir" && as_dir
=.
1129 echo "PATH: $as_dir"
1144 # Keep a trace of the command line.
1145 # Strip out --no-create and --no-recursion so they do not pile up.
1146 # Strip out --silent because we don't want to record it for future runs.
1147 # Also quote any args containing shell meta-characters.
1148 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_must_keep_next
=false
1159 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1160 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1161 |
-silent |
--silent |
--silen |
--sile |
--sil)
1163 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1164 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1169 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1170 if test $ac_must_keep_next = true
; then
1171 ac_must_keep_next
=false
# Got value, back to normal.
1174 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1175 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1176 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1177 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1178 case "$ac_configure_args0 " in
1179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1182 -* ) ac_must_keep_next
=true
;;
1185 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1186 # Get rid of the leading space.
1192 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1193 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201 # Save into config.log some information that might help in debugging.
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1211 # The following way of writing the cache mishandles newlines in values,
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1234 for ac_var in $ac_subst_vars
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1241 if test -n "$ac_subst_files"; then
1248 for ac_var in $ac_subst_files
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -s confdefs.h; then
1263 sed "/^$/d" confdefs.h | sort
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1270 rm -f core *.core &&
1271 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1274 for ac_signal
in 1 2 13 15; do
1275 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest
* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h
<<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1291 cat >>confdefs.h
<<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1296 cat >>confdefs.h
<<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1301 cat >>confdefs.h
<<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1306 cat >>confdefs.h
<<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE
; then
1315 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1317 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file
in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's/^/| /' "$ac_site_file" >&5
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1336 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1337 *) . .
/$cache_file;;
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1346 # Check that the precious variables saved in the cache have kept the same
1348 ac_cache_corrupted
=false
1349 for ac_var
in `(set) 2>&1 |
1350 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1352 eval ac_new_set
=\
$ac_env_${ac_var}_set
1353 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val
="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359 ac_cache_corrupted
=: ;;
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted
=: ;;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted
=:
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1379 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg
=$ac_var=$ac_new_val ;;
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1398 ac_cpp
='$CPP $CPPFLAGS'
1399 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1429 am__api_version
="1.9"
1431 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1432 if test -f $ac_dir/install-sh
; then
1434 ac_install_sh
="$ac_aux_dir/install-sh -c"
1436 elif test -f $ac_dir/install.sh
; then
1438 ac_install_sh
="$ac_aux_dir/install.sh -c"
1440 elif test -f $ac_dir/shtool
; then
1442 ac_install_sh
="$ac_aux_dir/shtool install -c"
1446 if test -z "$ac_aux_dir"; then
1447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1448 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1449 { (exit 1); exit 1; }; }
1451 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1452 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1453 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1455 # Find a good install program. We prefer a C program (faster),
1456 # so one script is as good as another. But avoid the broken or
1457 # incompatible versions:
1458 # SysV /etc/install, /usr/sbin/install
1459 # SunOS /usr/etc/install
1460 # IRIX /sbin/install
1462 # AmigaOS /C/install, which installs bootblocks on floppy discs
1463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466 # OS/2's system install, which has a completely different semantic
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470 if test -z "$INSTALL"; then
1471 if test "${ac_cv_path_install+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 # Account for people who put trailing slashes in PATH elements.
1481 .
/ | .
// |
/cC
/* | \
1482 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1483 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1486 # OSF1 and SCO ODT 3.0 have their own names for install.
1487 # Don't use installbsd from OSF since it installs stuff as root
1489 for ac_prog
in ginstall scoinst
install; do
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492 if test $ac_prog = install &&
1493 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1494 # AIX install. It has an incompatible calling convention.
1496 elif test $ac_prog = install &&
1497 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1498 # program-specific install script used by HP pwplus--don't use.
1501 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1513 if test "${ac_cv_path_install+set}" = set; then
1514 INSTALL
=$ac_cv_path_install
1516 # As a last resort, use the slow shell script. We don't cache a
1517 # path for INSTALL within a source directory, because that will
1518 # break other packages using the cache if that directory is
1519 # removed, or if the path is relative.
1520 INSTALL
=$ac_install_sh
1523 echo "$as_me:$LINENO: result: $INSTALL" >&5
1524 echo "${ECHO_T}$INSTALL" >&6
1526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527 # It thinks the first close brace ends the variable substitution.
1528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1534 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538 echo timestamp
> conftest.
file
1539 # Do `set' in a subshell so we don't clobber the current shell's
1540 # arguments. Must try -L first in case configure is actually a
1541 # symlink; some systems play weird games with the mod time of symlinks
1542 # (eg FreeBSD returns the mod time of the symlink's containing
1545 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546 if test "$*" = "X"; then
1548 set X
`ls -t $srcdir/configure conftest.file`
1551 if test "$*" != "X $srcdir/configure conftest.file" \
1552 && test "$*" != "X conftest.file $srcdir/configure"; then
1554 # If neither matched, then we have a broken ls. This can happen
1555 # if, for instance, CONFIG_SHELL is bash and it inherits a
1556 # broken ls alias from the environment. This has actually
1557 # happened. Such a system could not be considered "sane".
1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1559 alias in your environment" >&5
1560 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1561 alias in your environment" >&2;}
1562 { (exit 1); exit 1; }; }
1565 test "$2" = conftest.
file
1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572 Check your system clock" >&5
1573 echo "$as_me: error: newly created file is older than distributed files!
1574 Check your system clock" >&2;}
1575 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 test "$program_prefix" != NONE
&&
1580 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1581 # Use a double $ so make ignores it.
1582 test "$program_suffix" != NONE
&&
1583 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1584 # Double any \ or $. echo might interpret backslashes.
1585 # By default was `s,x,x', remove it if useless.
1586 cat <<\_ACEOF
>conftest.
sed
1587 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1589 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1592 # expand $ac_aux_dir to an absolute path
1593 am_aux_dir
=`cd $ac_aux_dir && pwd`
1595 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1596 # Use eval to expand $SHELL
1597 if eval "$MISSING --run true"; then
1598 am_missing_run
="$MISSING --run "
1601 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1606 # We used to keeping the `.' as first argument, in order to
1607 # allow $(mkdir_p) to be used without argument. As in
1608 # $(mkdir_p) $(somedir)
1609 # where $(somedir) is conditionally defined. However this is wrong
1611 # 1. if the package is installed by a user who cannot write `.'
1612 # make install will fail,
1613 # 2. the above comment should most certainly read
1614 # $(mkdir_p) $(DESTDIR)$(somedir)
1615 # so it does not work when $(somedir) is undefined and
1616 # $(DESTDIR) is not.
1617 # To support the latter case, we have to write
1618 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619 # so the `.' trick is pointless.
1620 mkdir_p
='mkdir -p --'
1622 # On NextStep and OpenStep, the `mkdir' command does not
1623 # recognize any option. It will interpret all options as
1624 # directories to create, and then abort because `.' already
1626 for d
in .
/-p .
/--version;
1628 test -d $d && rmdir $d
1630 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631 if test -f "$ac_aux_dir/mkinstalldirs"; then
1632 mkdir_p
='$(mkinstalldirs)'
1634 mkdir_p
='$(install_sh) -d'
1638 for ac_prog
in gawk mawk nawk
awk
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy
$ac_prog; ac_word
=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_AWK+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$AWK"; then
1648 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir
=.
1655 for ac_exec_ext
in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_AWK
="$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$AWK"; then
1668 echo "$as_me:$LINENO: result: $AWK" >&5
1669 echo "${ECHO_T}$AWK" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$AWK" && break
1678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1680 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 cat >conftest.
make <<\_ACEOF
1686 @
echo 'ac_maketemp="$(MAKE)"'
1688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1690 if test -n "$ac_maketemp"; then
1691 eval ac_cv_prog_make_
${ac_make}_set
=yes
1693 eval ac_cv_prog_make_
${ac_make}_set
=no
1697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 SET_MAKE
="MAKE=${MAKE-make}"
1707 rm -rf .tst
2>/dev
/null
1708 mkdir .tst
2>/dev
/null
1709 if test -d .tst
; then
1714 rmdir .tst
2>/dev
/null
1716 # test to see if srcdir already configured
1717 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1718 test -f $srcdir/config.status
; then
1719 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721 { (exit 1); exit 1; }; }
1724 # test whether we have cygpath
1725 if test -z "$CYGPATH_W"; then
1726 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1727 CYGPATH_W
='cygpath -w'
1734 # Define the identity of the package.
1739 cat >>confdefs.h
<<_ACEOF
1740 #define PACKAGE "$PACKAGE"
1744 cat >>confdefs.h
<<_ACEOF
1745 #define VERSION "$VERSION"
1748 # Some tools Automake needs.
1750 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1756 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1762 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1764 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1766 # Installed binaries are usually stripped using `strip' when the user
1767 # run `make install-strip'. However `strip' might not be the right
1768 # tool to use in cross-compilation environments, therefore Automake
1769 # will honor the `STRIP' environment variable to overrule this program.
1770 if test "$cross_compiling" != no
; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_STRIP+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$STRIP"; then
1780 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir
=.
1787 for ac_exec_ext
in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 STRIP
=$ac_cv_prog_STRIP
1799 if test -n "$STRIP"; then
1800 echo "$as_me:$LINENO: result: $STRIP" >&5
1801 echo "${ECHO_T}$STRIP" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1808 if test -z "$ac_cv_prog_STRIP"; then
1810 # Extract the first word of "strip", so it can be a program name with args.
1811 set dummy strip
; ac_word
=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$ac_ct_STRIP"; then
1818 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir
=.
1825 for ac_exec_ext
in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_ac_ct_STRIP
="strip"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1837 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1838 if test -n "$ac_ct_STRIP"; then
1839 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1840 echo "${ECHO_T}$ac_ct_STRIP" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1848 STRIP
="$ac_cv_prog_STRIP"
1852 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1854 # We need awk for the "check" target. The system "awk" is bad on
1856 # Always define AMTAR for backward compatibility.
1858 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1860 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1870 ac_config_headers
="$ac_config_headers config.h"
1872 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1873 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1874 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1875 if test "${enable_maintainer_mode+set}" = set; then
1876 enableval
="$enable_maintainer_mode"
1877 USE_MAINTAINER_MODE
=$enableval
1879 USE_MAINTAINER_MODE
=no
1881 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1882 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1885 if test $USE_MAINTAINER_MODE = yes; then
1886 MAINTAINER_MODE_TRUE
=
1887 MAINTAINER_MODE_FALSE
='#'
1889 MAINTAINER_MODE_TRUE
='#'
1890 MAINTAINER_MODE_FALSE
=
1893 MAINT
=$MAINTAINER_MODE_TRUE
1897 # Make sure we can run config.sub.
1898 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1899 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1900 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1901 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: checking build system type" >&5
1904 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1905 if test "${ac_cv_build+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 ac_cv_build_alias
=$build_alias
1909 test -z "$ac_cv_build_alias" &&
1910 ac_cv_build_alias
=`$ac_config_guess`
1911 test -z "$ac_cv_build_alias" &&
1912 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1913 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1914 { (exit 1); exit 1; }; }
1915 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1917 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1918 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1922 echo "${ECHO_T}$ac_cv_build" >&6
1924 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1929 echo "$as_me:$LINENO: checking host system type" >&5
1930 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1931 if test "${ac_cv_host+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_cv_host_alias
=$host_alias
1935 test -z "$ac_cv_host_alias" &&
1936 ac_cv_host_alias
=$ac_cv_build_alias
1937 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1938 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1939 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1944 echo "${ECHO_T}$ac_cv_host" >&6
1946 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1947 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1948 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1952 case "${host_os}" in
1955 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1956 MULELDFLAGS
="-bind_at_load"
1957 touch src
/Scanner.cpp
1961 LIBS
="$LIBS -L/usr/local/lib"
1962 MULECPPFLAGS
="-D__OPENBSD__"
1964 *cygwin
* |
*mingw32
*)
1966 MULECPPFLAGS
="-DNOMINMAX"
1970 RESOLV_LIB
="-lresolv -lnsl"
1975 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1976 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1977 # Still, we prepend them, instead of adding, so the user may override them.
1978 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1979 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1983 MULECPPFLAGS
="-D__IRIX__"
1990 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1991 if test ${SYS:-unknown} != win32
; then
1993 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1994 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1995 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1997 MULELDFLAGS
="$MULELDFLAGS -pthread"
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2003 MULELDFLAGS
="$MULELDFLAGS -lpthread"
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2015 mule_backup_CFLAGS
="$CFLAGS"
2016 mule_backup_CXXFLAGS
="$CXXFLAGS"
2017 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2019 ac_cpp
='$CXXCPP $CPPFLAGS'
2020 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CXX+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CXX"; then
2034 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CXX"; then
2054 echo "$as_me:$LINENO: result: $CXX" >&5
2055 echo "${ECHO_T}$CXX" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CXX" && break
2064 if test -z "$CXX"; then
2066 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy
$ac_prog; ac_word
=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CXX"; then
2076 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir
=.
2083 for ac_exec_ext
in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2095 if test -n "$ac_ct_CXX"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2097 echo "${ECHO_T}$ac_ct_CXX" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CXX" && break
2105 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113 "checking for C++ compiler version" >&5
2114 ac_compiler
=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save
=$ac_clean_files
2147 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2152 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2153 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 # b.out is created by i960 compilers.
2167 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2169 test -f "$ac_file" ||
continue
2171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2174 # This is the source file.
2177 # We found the default executable, but exeext='' is most
2181 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.
$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext
=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2209 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try
='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 if test "$cross_compiling" = maybe
; then
2224 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C++ compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2238 ac_clean_files
=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file
in conftest.exe conftest conftest.
*; do
2258 test -f "$ac_file" ||
continue
2260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2261 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest
$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.
$ac_ext
2280 EXEEXT
=$ac_cv_exeext
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.
$ac_ext <<_ACEOF
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2302 rm -f conftest.o conftest.obj
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2311 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.
$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2328 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329 echo "${ECHO_T}$ac_cv_objext" >&6
2330 OBJEXT
=$ac_cv_objext
2332 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2333 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2334 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.
$ac_ext <<_ACEOF
2340 cat confdefs.h
>>conftest.
$ac_ext
2341 cat >>conftest.
$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1
>conftest.err
2361 cat conftest.err
>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try
='test -z "$ac_cxx_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2390 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2392 ac_save_CXXFLAGS
=$CXXFLAGS
2394 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cxx_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.
$ac_ext <<_ACEOF
2402 cat confdefs.h
>>conftest.
$ac_ext
2403 cat >>conftest.
$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.
$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1
>conftest.err
2420 cat conftest.err
>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try
='test -z "$ac_cxx_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 ac_cv_prog_cxx_g
=yes
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.
$ac_ext >&5
2443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2447 if test "$ac_test_CXXFLAGS" = set; then
2448 CXXFLAGS
=$ac_save_CXXFLAGS
2449 elif test $ac_cv_prog_cxx_g = yes; then
2450 if test "$GXX" = yes; then
2456 if test "$GXX" = yes; then
2462 for ac_declaration
in \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2470 cat >conftest.
$ac_ext <<_ACEOF
2473 cat confdefs.h
>>conftest.
$ac_ext
2474 cat >>conftest.
$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2486 rm -f conftest.
$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1
>conftest.err
2492 cat conftest.err
>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try
='test -z "$ac_cxx_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try
='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.
$ac_ext >&5
2515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 cat >conftest.
$ac_ext <<_ACEOF
2519 cat confdefs.h
>>conftest.
$ac_ext
2520 cat >>conftest.
$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.
$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1
>conftest.err
2537 cat conftest.err
>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try
='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try
='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 DEPDIR
="${am__leading_dot}deps"
2575 ac_config_commands
="$ac_config_commands depfiles"
2578 am_make
=${MAKE-make}
2579 cat > confinc
<< 'END'
2584 # If we don't find an include directive, just comment out the code.
2585 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2586 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2590 # First try GNU make style include.
2591 echo "include confinc" > confmf
2592 # We grep out `Entering directory' and `Leaving directory'
2593 # messages which can occur if `w' ends up in MAKEFLAGS.
2594 # In particular we don't look at `^make:' because GNU make might
2595 # be invoked under some other name (usually "gmake"), in which
2596 # case it prints its new name instead of `make'.
2597 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2602 # Now try BSD make style include.
2603 if test "$am__include" = "#"; then
2604 echo '.include "confinc"' > confmf
2605 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2606 am__include
=.include
2613 echo "$as_me:$LINENO: result: $_am_result" >&5
2614 echo "${ECHO_T}$_am_result" >&6
2615 rm -f confinc confmf
2617 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2618 if test "${enable_dependency_tracking+set}" = set; then
2619 enableval
="$enable_dependency_tracking"
2622 if test "x$enable_dependency_tracking" != xno
; then
2623 am_depcomp
="$ac_aux_dir/depcomp"
2628 if test "x$enable_dependency_tracking" != xno; then
2639 depcc
="$CXX" am_compiler_list
=
2641 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2642 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2643 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2647 # We make a subdir and do the tests there. Otherwise we can end up
2648 # making bogus files that we don't know about and never remove. For
2649 # instance it was reported that on HP-UX the gcc test will end up
2650 # making a dummy file named `D' -- because `-MD' means `put the output
2653 # Copy depcomp to subdir because otherwise we won't find it if we're
2654 # using a relative directory.
2655 cp "$am_depcomp" conftest.dir
2657 # We will build objects and dependencies in a subdirectory because
2658 # it helps to detect inapplicable dependency modes. For instance
2659 # both Tru64's cc and ICC support -MD to output dependencies as a
2660 # side effect of compilation, but ICC will put the dependencies in
2661 # the current directory while Tru64 will put them in the object
2665 am_cv_CXX_dependencies_compiler_type
=none
2666 if test "$am_compiler_list" = ""; then
2667 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2669 for depmode
in $am_compiler_list; do
2670 # Setup a source with many dependencies, because some compilers
2671 # like to wrap large dependency lists on column 80 (with \), and
2672 # we should not choose a depcomp mode which is confused by this.
2674 # We need to recreate these files for each test, as the compiler may
2675 # overwrite some of them when testing with obscure command lines.
2676 # This happens at least with the AIX C compiler.
2678 for i
in 1 2 3 4 5 6; do
2679 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2681 # Solaris 8's {/usr,}/bin/sh.
2682 touch sub
/conftst
$i.h
2684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2688 # after this tag, mechanisms are not by side-effect, so they'll
2689 # only be used when explicitly requested
2690 if test "x$enable_dependency_tracking" = xyes
; then
2698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2699 # mode. It turns out that the SunPro C++ compiler does not properly
2700 # handle `-M -o', and we need to detect this.
2701 if depmode
=$depmode \
2702 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2703 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2704 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2705 >/dev
/null
2>conftest.err
&&
2706 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2707 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2708 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2709 # icc doesn't choke on unknown options, it will just issue warnings
2710 # or remarks (even with -Werror). So we grep stderr for any message
2711 # that says an option was ignored or not supported.
2712 # When given -MP, icc 7.0 and 7.1 complain thusly:
2713 # icc: Command line warning: ignoring option '-M'; no argument required
2714 # The diagnosis changed in icc 8.0:
2715 # icc: Command line remark: option '-MP' not supported
2716 if (grep 'ignoring option' conftest.err ||
2717 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2718 am_cv_CXX_dependencies_compiler_type
=$depmode
2727 am_cv_CXX_dependencies_compiler_type
=none
2731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2733 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2738 test "x$enable_dependency_tracking" != xno \
2739 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2740 am__fastdepCXX_TRUE
=
2741 am__fastdepCXX_FALSE
='#'
2743 am__fastdepCXX_TRUE
='#'
2744 am__fastdepCXX_FALSE
=
2749 ac_cpp
='$CXXCPP $CPPFLAGS'
2750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2755 if test -z "$CXXCPP"; then
2756 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 # Double quotes because CXXCPP needs to be expanded
2760 for CXXCPP
in "$CXX -E" "/lib/cpp"
2763 for ac_cxx_preproc_warn_flag
in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2778 # include <limits.h>
2780 # include <assert.h>
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev
/null
; then
2792 if test -s conftest.err
; then
2793 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2794 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2801 if test -z "$ac_cpp_err"; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2807 # Broken: fails on valid input.
2810 rm -f conftest.err conftest.
$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev
/null
; then
2830 if test -s conftest.err
; then
2831 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2832 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2846 # Passes both tests.
2850 rm -f conftest.err conftest.
$ac_ext
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.
$ac_ext
2855 if $ac_preproc_ok; then
2860 ac_cv_prog_CXXCPP
=$CXXCPP
2863 CXXCPP
=$ac_cv_prog_CXXCPP
2865 ac_cv_prog_CXXCPP
=$CXXCPP
2867 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2868 echo "${ECHO_T}$CXXCPP" >&6
2870 for ac_cxx_preproc_warn_flag
in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2885 # include <limits.h>
2887 # include <assert.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2908 if test -z "$ac_cpp_err"; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2914 # Broken: fails on valid input.
2917 rm -f conftest.err conftest.
$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1
>conftest.err
2934 cat conftest.err
>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev
/null
; then
2937 if test -s conftest.err
; then
2938 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2939 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Passes both tests.
2957 rm -f conftest.err conftest.
$ac_ext
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.
$ac_ext
2962 if $ac_preproc_ok; then
2965 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2973 ac_cpp
='$CPP $CPPFLAGS'
2974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2979 ac_cpp
='$CPP $CPPFLAGS'
2980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2986 echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC
="$CC" # Let the user override the test.
2994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir
=.
2999 for ac_exec_ext
in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc
; ac_word
=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC
="gcc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3051 echo "${ECHO_T}$ac_ct_CC" >&6
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_CC+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC
="$CC" # Let the user override the test.
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3100 if test -z "$ac_cv_prog_CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103 set dummy cc
; ac_word
=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC
="cc"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc
; ac_word
=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected
=yes
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy
$ac_cv_prog_CC
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3182 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$CC" && break
3239 if test -z "$CC"; then
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_prog; ac_word
=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_prog"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3270 if test -n "$ac_ct_CC"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272 echo "${ECHO_T}$ac_ct_CC" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 test -n "$ac_ct_CC" && break
3287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&5
3289 echo "$as_me: error: no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details." >&2;}
3291 { (exit 1); exit 1; }; }
3293 # Provide some information about the compiler.
3294 echo "$as_me:$LINENO:" \
3295 "checking for C compiler version" >&5
3296 ac_compiler
=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >conftest.
$ac_ext <<_ACEOF
3321 cat confdefs.h
>>conftest.
$ac_ext
3322 cat >>conftest.
$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3372 ac_test_CFLAGS
=${CFLAGS+set}
3373 ac_save_CFLAGS
=$CFLAGS
3375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.
$ac_ext >&5
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS
=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_prog_cc_stdc
=no
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 #include <sys/types.h>
3459 #include <sys/stat.h>
3460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461 struct buf { int x; };
3462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463 static char *e (p, i)
3469 static char *f (char * (*g) (char **, int), char **p, ...)
3474 s = g (p, va_arg (v,int));
3479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 # Don't try gcc -ansi; that turns off useful extensions and
3503 # breaks some systems' header files.
3504 # AIX -qlanglvl=ansi
3505 # Ultrix and OSF/1 -std1
3506 # HP-UX 10.20 and later -Ae
3507 # HP-UX older versions -Aa -D_HPUX_SOURCE
3508 # SVR4 -Xc -D__EXTENSIONS__
3509 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC
="$ac_save_CC $ac_arg"
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc
=$ac_arg
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3541 rm -f conftest.err conftest.
$ac_objext
3543 rm -f conftest.
$ac_ext conftest.
$ac_objext
3548 case "x$ac_cv_prog_cc_stdc" in
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551 echo "${ECHO_T}none needed" >&6 ;;
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3558 # Some people use a C++ compiler to compile C. Since we use `exit',
3559 # in C++ we need to declare it. In case someone uses the same compiler
3560 # for both compiling C and C++ we need to have the C++ compiler decide
3561 # the declaration of exit, since it's the most demanding environment.
3562 cat >conftest.
$ac_ext <<_ACEOF
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1
>conftest.err
3573 cat conftest.err
>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try
='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try
='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration
in \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try
='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try
='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_cpp
='$CPP $CPPFLAGS'
3703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3707 depcc
="$CC" am_compiler_list
=
3709 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3710 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3711 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3715 # We make a subdir and do the tests there. Otherwise we can end up
3716 # making bogus files that we don't know about and never remove. For
3717 # instance it was reported that on HP-UX the gcc test will end up
3718 # making a dummy file named `D' -- because `-MD' means `put the output
3721 # Copy depcomp to subdir because otherwise we won't find it if we're
3722 # using a relative directory.
3723 cp "$am_depcomp" conftest.dir
3725 # We will build objects and dependencies in a subdirectory because
3726 # it helps to detect inapplicable dependency modes. For instance
3727 # both Tru64's cc and ICC support -MD to output dependencies as a
3728 # side effect of compilation, but ICC will put the dependencies in
3729 # the current directory while Tru64 will put them in the object
3733 am_cv_CC_dependencies_compiler_type
=none
3734 if test "$am_compiler_list" = ""; then
3735 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 for depmode
in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3746 for i
in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub
/conftst
$i.h
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes
; then
3766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767 # mode. It turns out that the SunPro C++ compiler does not properly
3768 # handle `-M -o', and we need to detect this.
3769 if depmode
=$depmode \
3770 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3771 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3772 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3773 >/dev
/null
2>conftest.err
&&
3774 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3775 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3776 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3777 # icc doesn't choke on unknown options, it will just issue warnings
3778 # or remarks (even with -Werror). So we grep stderr for any message
3779 # that says an option was ignored or not supported.
3780 # When given -MP, icc 7.0 and 7.1 complain thusly:
3781 # icc: Command line warning: ignoring option '-M'; no argument required
3782 # The diagnosis changed in icc 8.0:
3783 # icc: Command line remark: option '-MP' not supported
3784 if (grep 'ignoring option' conftest.err ||
3785 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3786 am_cv_CC_dependencies_compiler_type
=$depmode
3795 am_cv_CC_dependencies_compiler_type
=none
3799 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3800 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3801 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3809 am__fastdepCC_FALSE
='#'
3811 am__fastdepCC_TRUE
='#'
3812 am__fastdepCC_FALSE
=
3817 ac_cpp
='$CPP $CPPFLAGS'
3818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3821 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823 # On Suns, sometimes $CPP names a directory.
3824 if test -n "$CPP" && test -d "$CPP"; then
3827 if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Double quotes because CPP needs to be expanded
3832 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3939 echo "$as_me:$LINENO: result: $CPP" >&5
3940 echo "${ECHO_T}$CPP" >&6
3942 for ac_c_preproc_warn_flag
in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat >conftest.
$ac_ext <<_ACEOF
3953 cat confdefs.h
>>conftest.
$ac_ext
3954 cat >>conftest.
$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev
/null
; then
3971 if test -s conftest.err
; then
3972 ac_cpp_err
=$ac_c_preproc_warn_flag
3973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3980 if test -z "$ac_cpp_err"; then
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether non-existent headers
3992 # can be detected and how.
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1
>conftest.err
4006 cat conftest.err
>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev
/null
; then
4009 if test -s conftest.err
; then
4010 ac_cpp_err
=$ac_c_preproc_warn_flag
4011 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4018 if test -z "$ac_cpp_err"; then
4019 # Broken: success on invalid input.
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.
$ac_ext >&5
4025 # Passes both tests.
4029 rm -f conftest.err conftest.
$ac_ext
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.
$ac_ext
4034 if $ac_preproc_ok; then
4037 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&5
4039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 if test "$cross_compiling" = yes; then
4052 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4055 # Even if we're cross-compiling, we want a compiler here
4056 # that is not a cross-compiler.
4057 saved_cross
=$cross_compiling
4061 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4062 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_build_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4067 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if test -n "$BUILD_CC"; then
4074 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 BUILD_CC
=$ac_cv_prog_BUILD_CC
4093 if test -n "$BUILD_CC"; then
4094 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4095 echo "${ECHO_T}$BUILD_CC" >&6
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4102 if test -z "$ac_cv_prog_BUILD_CC"; then
4103 ac_ct_BUILD_CC
=$BUILD_CC
4104 # Extract the first word of "gcc", so it can be a program name with args.
4105 set dummy gcc
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$ac_ct_BUILD_CC"; then
4112 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir
=.
4119 for ac_exec_ext
in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4131 if test -n "$ac_ct_BUILD_CC"; then
4132 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4133 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 BUILD_CC
=$ac_ct_BUILD_CC
4141 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4144 if test -z "$BUILD_CC"; then
4145 if test -n "$ac_build_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$BUILD_CC"; then
4154 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 BUILD_CC
=$ac_cv_prog_BUILD_CC
4173 if test -n "$BUILD_CC"; then
4174 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4175 echo "${ECHO_T}$BUILD_CC" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_BUILD_CC"; then
4183 ac_ct_BUILD_CC
=$BUILD_CC
4184 # Extract the first word of "cc", so it can be a program name with args.
4185 set dummy cc
; ac_word
=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_BUILD_CC"; then
4192 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4211 if test -n "$ac_ct_BUILD_CC"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4213 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4215 echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4219 BUILD_CC
=$ac_ct_BUILD_CC
4221 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4225 if test -z "$BUILD_CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc
; ac_word
=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$BUILD_CC"; then
4234 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_exec_ext
in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected
=yes
4248 ac_cv_prog_BUILD_CC
="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test $ac_prog_rejected = yes; then
4256 # We found a bogon in the path, so make sure we never use it.
4257 set dummy
$ac_cv_prog_BUILD_CC
4259 if test $# != 0; then
4260 # We chose a different compiler from the bogus one.
4261 # However, it has the same basename, so the bogon will be chosen
4262 # first if we set BUILD_CC to just the basename; use the full file name.
4264 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4269 BUILD_CC
=$ac_cv_prog_BUILD_CC
4270 if test -n "$BUILD_CC"; then
4271 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4272 echo "${ECHO_T}$BUILD_CC" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 if test -z "$BUILD_CC"; then
4280 if test -n "$ac_build_prefix"; then
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$BUILD_CC"; then
4291 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 BUILD_CC
=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$BUILD_CC" && break
4321 if test -z "$BUILD_CC"; then
4322 ac_ct_BUILD_CC
=$BUILD_CC
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy
$ac_prog; ac_word
=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$ac_ct_BUILD_CC"; then
4333 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4352 if test -n "$ac_ct_BUILD_CC"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4354 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4360 test -n "$ac_ct_BUILD_CC" && break
4363 BUILD_CC
=$ac_ct_BUILD_CC
4369 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details." >&2;}
4373 { (exit 1); exit 1; }; }
4375 # Provide some information about the compiler.
4376 echo "$as_me:$LINENO:" \
4377 "checking for C compiler version" >&5
4378 ac_compiler
=`set X $ac_compile; echo $2`
4379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4380 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }
4384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4385 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }
4389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4390 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4395 cat >conftest.
$ac_ext <<_ACEOF
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4410 ac_clean_files_save
=$ac_clean_files
4411 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4412 # Try to create an executable without -o first, disregard a.out.
4413 # It will help us diagnose broken compilers, and finding out an intuition
4415 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4416 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4417 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4419 (eval $ac_link_default) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 # Find the output, starting from the most likely. This scheme is
4424 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4427 # Be careful to initialize this variable, since it used to be cached.
4428 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4430 # b.out is created by i960 compilers.
4431 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4433 test -f "$ac_file" ||
continue
4435 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4438 # This is the source file.
4441 # We found the default executable, but exeext='' is most
4445 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446 # FIXME: I believe we export ac_cv_exeext for Libtool,
4447 # but it would be cool to find out if it's true. Does anybody
4448 # maintain Libtool? --akim.
4449 export ac_cv_build_exeext
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C compiler cannot create executables
4462 See \`config.log' for more details." >&2;}
4463 { (exit 77); exit 77; }; }
4466 ac_build_exeext
=$ac_cv_build_exeext
4467 echo "$as_me:$LINENO: result: $ac_file" >&5
4468 echo "${ECHO_T}$ac_file" >&6
4470 # Check the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4475 # If not cross compiling, check that we can run a simple program.
4476 if test "$cross_compiling" != yes; then
4477 if { ac_try
='./$ac_file'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4485 if test "$cross_compiling" = maybe
; then
4488 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4489 If you meant to cross compile, use \`--host'.
4490 See \`config.log' for more details." >&5
4491 echo "$as_me: error: cannot run C compiled programs.
4492 If you meant to cross compile, use \`--host'.
4493 See \`config.log' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4501 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4502 ac_clean_files
=$ac_clean_files_save
4503 # Check the compiler produces executables we can run. If not, either
4504 # the compiler is broken, or we cross compile.
4505 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4506 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4507 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4508 echo "${ECHO_T}$cross_compiling" >&6
4510 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4511 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 for ac_file
in conftest.exe conftest conftest.
*; do
4522 test -f "$ac_file" ||
continue
4524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4525 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 export ac_cv_build_exeext
4532 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4539 rm -f conftest
$ac_cv_build_exeext
4540 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4541 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4543 rm -f conftest.
$ac_ext
4544 BUILD_EXEEXT
=$ac_cv_build_exeext
4545 ac_build_exeext
=$BUILD_EXEEXT
4548 # Restore configuration environment
4549 cross_compiling
=$saved_cross
4552 ac_cpp
='$CPP $CPPFLAGS'
4553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4558 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4561 CFLAGS
="$mule_backup_CFLAGS"
4562 CXXFLAGS
="$mule_backup_CXXFLAGS"
4563 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4564 for ac_prog
in gawk mawk nawk
awk
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy
$ac_prog; ac_word
=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_AWK+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK
="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$AWK"; then
4594 echo "$as_me:$LINENO: result: $AWK" >&5
4595 echo "${ECHO_T}$AWK" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4601 test -n "$AWK" && break
4604 echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4606 if test "${ac_cv_prog_egrep+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4610 then ac_cv_prog_egrep
='grep -E'
4611 else ac_cv_prog_egrep
='egrep'
4614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4616 EGREP
=$ac_cv_prog_egrep
4619 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4620 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4621 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4622 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.
make <<\_ACEOF
4627 @
echo 'ac_maketemp="$(MAKE)"'
4629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4630 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4631 if test -n "$ac_maketemp"; then
4632 eval ac_cv_prog_make_
${ac_make}_set
=yes
4634 eval ac_cv_prog_make_
${ac_make}_set
=no
4638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 SET_MAKE
="MAKE=${MAKE-make}"
4649 for ac_prog
in flex
lex
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy
$ac_prog; ac_word
=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_LEX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$LEX"; then
4659 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_LEX
="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test -n "$LEX"; then
4679 echo "$as_me:$LINENO: result: $LEX" >&5
4680 echo "${ECHO_T}$LEX" >&6
4682 echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4686 test -n "$LEX" && break
4688 test -n "$LEX" || LEX
=":"
4690 if test -z "$LEXLIB"
4692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS
=$LIBS
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4721 rm -f conftest.
$ac_objext conftest
$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1
>conftest.err
4727 cat conftest.err
>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try
='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try
='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_fl_yywrap
=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 ac_cv_lib_fl_yywrap
=no
4750 rm -f conftest.err conftest.
$ac_objext \
4751 conftest
$ac_exeext conftest.
$ac_ext
4752 LIBS
=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4755 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4756 if test $ac_cv_lib_fl_yywrap = yes; then
4759 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4760 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4761 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_check_lib_save_LIBS
=$LIBS
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4788 rm -f conftest.
$ac_objext conftest
$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1
>conftest.err
4794 cat conftest.err
>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try
='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_lib_l_yywrap
=yes
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.
$ac_ext >&5
4815 ac_cv_lib_l_yywrap
=no
4817 rm -f conftest.err conftest.
$ac_objext \
4818 conftest
$ac_exeext conftest.
$ac_ext
4819 LIBS
=$ac_check_lib_save_LIBS
4821 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4822 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4823 if test $ac_cv_lib_l_yywrap = yes; then
4831 if test "x$LEX" != "x:"; then
4832 echo "$as_me:$LINENO: checking lex output file root" >&5
4833 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4834 if test "${ac_cv_prog_lex_root+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 # The minimal lex program is just a single line: %%. But some broken lexes
4838 # (Solaris, I think it was) want two %% lines, so accommodate them.
4839 cat >conftest.l
<<_ACEOF
4843 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4844 (eval $LEX conftest.l
) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 if test -f lex.yy.c
; then
4849 ac_cv_prog_lex_root
=lex.yy
4850 elif test -f lexyy.c
; then
4851 ac_cv_prog_lex_root
=lexyy
4853 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4854 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4855 { (exit 1); exit 1; }; }
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4859 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4861 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4863 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4864 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4865 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 # POSIX says lex can declare yytext either as a pointer or an array; the
4869 # default is implementation-dependent. Figure out which it is, since
4870 # not all implementations provide the %pointer and %array declarations.
4871 ac_cv_prog_lex_yytext_pointer
=no
4872 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4874 LIBS
="$LIBS $LEXLIB"
4875 cat >conftest.
$ac_ext <<_ACEOF
4876 `cat $LEX_OUTPUT_ROOT.c`
4878 rm -f conftest.
$ac_objext conftest
$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_prog_lex_yytext_pointer
=yes
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext \
4907 conftest
$ac_exeext conftest.
$ac_ext
4909 rm -f "${LEX_OUTPUT_ROOT}.c"
4912 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4913 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4914 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4916 cat >>confdefs.h
<<\_ACEOF
4917 #define YYTEXT_POINTER 1
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 # Account for people who put trailing slashes in PATH elements.
4949 .
/ | .
// |
/cC
/* | \
4950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4957 for ac_prog
in ginstall scoinst
install; do
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4960 if test $ac_prog = install &&
4961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL
=$ac_cv_path_install
4984 # As a last resort, use the slow shell script. We don't cache a
4985 # path for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the path is relative.
4988 INSTALL
=$ac_install_sh
4991 echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5000 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6
5034 echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB
=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib
; ac_word
=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5073 echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5077 RANLIB
=$ac_ct_RANLIB
5079 RANLIB
="$ac_cv_prog_RANLIB"
5082 for ac_prog
in 'bison -y' byacc
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy
$ac_prog; ac_word
=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_YACC+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 if test -n "$YACC"; then
5092 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir
=.
5099 for ac_exec_ext
in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_YACC
="$ac_prog"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 YACC
=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 echo "$as_me:$LINENO: result: $YACC" >&5
5113 echo "${ECHO_T}$YACC" >&6
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5119 test -n "$YACC" && break
5121 test -n "$YACC" || YACC
="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB
=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5161 if test -z "$ac_cv_prog_RANLIB"; then
5162 ac_ct_RANLIB
=$RANLIB
5163 # Extract the first word of "ranlib", so it can be a program name with args.
5164 set dummy ranlib
; ac_word
=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test -n "$ac_ct_RANLIB"; then
5171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5198 RANLIB
=$ac_ct_RANLIB
5200 RANLIB
="$ac_cv_prog_RANLIB"
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 STRIP
=$ac_cv_prog_STRIP
5231 if test -n "$STRIP"; then
5232 echo "$as_me:$LINENO: result: $STRIP" >&5
5233 echo "${ECHO_T}$STRIP" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5240 if test -z "$ac_cv_prog_STRIP"; then
5242 # Extract the first word of "strip", so it can be a program name with args.
5243 set dummy strip
; ac_word
=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$ac_ct_STRIP"; then
5250 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_ac_ct_STRIP
="strip"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5269 if test -n "$ac_ct_STRIP"; then
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271 echo "${ECHO_T}$ac_ct_STRIP" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5279 STRIP
="$ac_cv_prog_STRIP"
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_AR+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$AR"; then
5291 ac_cv_prog_AR
="$AR" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 if test -n "$AR"; then
5311 echo "$as_me:$LINENO: result: $AR" >&5
5312 echo "${ECHO_T}$AR" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5319 if test -z "$ac_cv_prog_AR"; then
5321 # Extract the first word of "ar", so it can be a program name with args.
5322 set dummy
ar; ac_word
=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_AR
="ar"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5348 if test -n "$ac_ct_AR"; then
5349 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5350 echo "${ECHO_T}$ac_ct_AR" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_LD+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$LD"; then
5370 ac_cv_prog_LD
="$LD" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$LD"; then
5390 echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5393 echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5398 if test -z "$ac_cv_prog_LD"; then
5400 # Extract the first word of "ld", so it can be a program name with args.
5401 set dummy ld
; ac_word
=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 if test -n "$ac_ct_LD"; then
5408 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_LD
="ld"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5427 if test -n "$ac_ct_LD"; then
5428 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5429 echo "${ECHO_T}$ac_ct_LD" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5441 # Check whether --enable-monolithic or --disable-monolithic was given.
5442 if test "${enable_monolithic+set}" = set; then
5443 enableval
="$enable_monolithic"
5448 if test ${enable_monolithic:-yes} = yes; then
5450 MONOLITHIC_FALSE
='#'
5457 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5458 if test "${enable_amule_daemon+set}" = set; then
5459 enableval
="$enable_amule_daemon"
5464 if test ${enable_amule_daemon:-no} = yes; then
5466 AMULE_DAEMON_FALSE
='#'
5468 AMULE_DAEMON_TRUE
='#'
5473 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5474 if test "${enable_amulecmd+set}" = set; then
5475 enableval
="$enable_amulecmd"
5480 if test ${enable_amulecmd:-no} = yes; then
5482 COMPILE_CMD_FALSE
='#'
5484 COMPILE_CMD_TRUE
='#'
5489 # Check whether --enable-webserver or --disable-webserver was given.
5490 if test "${enable_webserver+set}" = set; then
5491 enableval
="$enable_webserver"
5496 if test ${enable_webserver:-no} = yes; then
5505 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5506 if test "${enable_amule_gui+set}" = set; then
5507 enableval
="$enable_amule_gui"
5512 if test ${enable_amule_gui:-no} = yes; then
5521 # Check whether --enable-cas or --disable-cas was given.
5522 if test "${enable_cas+set}" = set; then
5523 enableval
="$enable_cas"
5528 if test ${enable_cas:-no} = yes; then
5537 # Check whether --enable-wxcas or --disable-wxcas was given.
5538 if test "${enable_wxcas+set}" = set; then
5539 enableval
="$enable_wxcas"
5544 if test ${enable_wxcas:-no} = yes; then
5553 # Check whether --enable-ed2k or --disable-ed2k was given.
5554 if test "${enable_ed2k+set}" = set; then
5555 enableval
="$enable_ed2k"
5560 if test ${enable_ed2k:-yes} = yes; then
5569 # Check whether --enable-alc or --disable-alc was given.
5570 if test "${enable_alc+set}" = set; then
5571 enableval
="$enable_alc"
5576 if test ${enable_alc:-no} = yes; then
5585 # Check whether --enable-alcc or --disable-alcc was given.
5586 if test "${enable_alcc+set}" = set; then
5587 enableval
="$enable_alcc"
5592 if test ${enable_alcc:-no} = yes; then
5601 # Check whether --enable-xas or --disable-xas was given.
5602 if test "${enable_xas+set}" = set; then
5603 enableval
="$enable_xas"
5608 if test ${enable_xas:-no} = yes; then
5617 # Check whether --enable-fileview or --disable-fileview was given.
5618 if test "${enable_fileview+set}" = set; then
5619 enableval
="$enable_fileview"
5624 if test ${enable_fileview:-no} = yes; then
5633 # Check whether --enable-plasmamule or --disable-plasmamule was given.
5634 if test "${enable_plasmamule+set}" = set; then
5635 enableval
="$enable_plasmamule"
5640 # Run all the tests with static linkage if we want a statically linked binary
5641 # Check whether --enable-static or --disable-static was given.
5642 if test "${enable_static+set}" = set; then
5643 enableval
="$enable_static"
5647 if test ${enable_static:-no} = yes; then
5648 LDFLAGS
="$LDFLAGS -static"
5654 # Check whether --with-kde4-config or --without-kde4-config was given.
5655 if test "${with_kde4_config+set}" = set; then
5656 withval
="$with_kde4_config"
5657 KDE4_CONFIG
=$withval
5661 # Check whether --enable-kde-in-home or --disable-kde-in-home was given.
5662 if test "${enable_kde_in_home+set}" = set; then
5663 enableval
="$enable_kde_in_home"
5664 KDE_IN_HOME
=$enableval
5671 # Check whether --with-moc or --without-moc was given.
5672 if test "${with_moc+set}" = set; then
5680 # Default is yes, because they're most likely compatible.
5681 # However, this is only used when cross-compiling.
5683 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5684 if test "${with_gnu_malloc+set}" = set; then
5685 withval
="$with_gnu_malloc"
5692 # Checking for libs before all other stuff to break
5693 # configure as soon as possible in case of a missing one
5694 # to avoid losing too much time
5697 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
5700 # Check whether --with-zlib or --without-zlib was given.
5701 if test "${with_zlib+set}" = set; then
5702 withval
="$with_zlib"
5706 case "${with_zlib:-yes}" in
5708 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5709 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5710 { (exit 1); exit 1; }; }
5715 zlib_prefix
="$with_zlib"
5718 mule_backup_CPPFLAGS
="$CPPFLAGS"
5719 mule_backup_LDFLAGS
="$LDFLAGS"
5720 mule_backup_LIBS
="$LIBS"
5721 if test -n "$zlib_prefix"; then
5723 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5724 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5725 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5726 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5736 LIBS
="$ZLIB_LIBS $LIBS"
5738 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5739 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5740 if test "$cross_compiling" = yes; then
5744 cat >conftest.
$ac_ext <<_ACEOF
5748 cat confdefs.h
>>conftest.
$ac_ext
5749 cat >>conftest.
$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5759 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5767 rm -f conftest.
$ac_objext conftest
$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1
>conftest.err
5773 cat conftest.err
>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try
='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try
='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5790 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5791 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5792 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5793 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5794 if test "$cross_zver_max" -gt "1"; then
5796 elif test "$cross_zver_max" -eq "1"; then
5798 if test "$cross_zver_mid" -gt "1"; then
5800 elif test "$cross_zver_mid" -eq "1"; then
5801 if test "$cross_zver_min" -ge "4"; then
5810 if test ${result:-no} = yes; then
5811 z_version
=" (version $ZLIB_VERSION)"
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.
$ac_ext >&5
5820 rm -f conftest.err conftest.
$ac_objext \
5821 conftest
$ac_exeext conftest.
$ac_ext
5822 echo "$as_me:$LINENO: result: $result$z_version" >&5
5823 echo "${ECHO_T}$result$z_version" >&6
5826 cat >conftest.
$ac_ext <<_ACEOF
5830 cat confdefs.h
>>conftest.
$ac_ext
5831 cat >>conftest.
$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5840 char *zver = zlibVersion();
5841 FILE *f=fopen("conftestval", "w");
5848 zver[4] >= '4'))) ? "yes" : "no");
5850 f=fopen("conftestver", "w");
5852 fprintf(f, "%s", ZLIB_VERSION);
5861 rm -f conftest
$ac_exeext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5873 if test -f conftestval
; then
5874 result
=`cat conftestval`
5879 if test ${result:-no} = yes; then
5881 if test -f conftestver
; then
5883 ZLIB_VERSION
=`cat conftestver`
5884 z_version
=" (version $ZLIB_VERSION)"
5893 echo "$as_me:$LINENO: result: $result$z_version" >&5
5894 echo "${ECHO_T}$result$z_version" >&6
5897 echo "$as_me: program exited with status $ac_status" >&5
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5904 echo "$as_me:$LINENO: result: $result" >&5
5905 echo "${ECHO_T}$result" >&6
5908 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5911 CPPFLAGS
="$mule_backup_CPPFLAGS"
5912 LDFLAGS
="$mule_backup_LDFLAGS"
5913 LIBS
="$mule_backup_LIBS"
5915 if test ${result:-no} = no
; then
5920 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5921 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5922 { (exit 1); exit 1; }; }
5931 if test ${enable_cas:-no} = yes; then
5935 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5936 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5937 if test "${ac_cv_header_stdc+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 cat >conftest.
$ac_ext <<_ACEOF
5943 cat confdefs.h
>>conftest.
$ac_ext
5944 cat >>conftest.
$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5959 rm -f conftest.
$ac_objext
5960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5961 (eval $ac_compile) 2>conftest.er1
5963 grep -v '^ *+' conftest.er1
>conftest.err
5965 cat conftest.err
>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try
='test -z "$ac_c_werror_flag"
5969 || test ! -s conftest.err'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; } &&
5975 { ac_try
='test -s conftest.$ac_objext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_header_stdc
=yes
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 ac_cv_header_stdc
=no
5988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5990 if test $ac_cv_header_stdc = yes; then
5991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5992 cat >conftest.
$ac_ext <<_ACEOF
5995 cat confdefs.h
>>conftest.
$ac_ext
5996 cat >>conftest.
$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
6001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6002 $EGREP "memchr" >/dev
/null
2>&1; then
6005 ac_cv_header_stdc
=no
6011 if test $ac_cv_header_stdc = yes; then
6012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6013 cat >conftest.
$ac_ext <<_ACEOF
6016 cat confdefs.h
>>conftest.
$ac_ext
6017 cat >>conftest.
$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "free" >/dev
/null
2>&1; then
6026 ac_cv_header_stdc
=no
6032 if test $ac_cv_header_stdc = yes; then
6033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6034 if test "$cross_compiling" = yes; then
6037 cat >conftest.
$ac_ext <<_ACEOF
6040 cat confdefs.h
>>conftest.
$ac_ext
6041 cat >>conftest.
$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 #if ((' ' & 0x0FF) == 0x020)
6045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6048 # define ISLOWER(c) \
6049 (('a' <= (c) && (c) <= 'i') \
6050 || ('j' <= (c) && (c) <= 'r') \
6051 || ('s' <= (c) && (c) <= 'z'))
6052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6060 for (i = 0; i < 256; i++)
6061 if (XOR (islower (i), ISLOWER (i))
6062 || toupper (i) != TOUPPER (i))
6067 rm -f conftest
$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6080 echo "$as_me: program exited with status $ac_status" >&5
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6085 ac_cv_header_stdc
=no
6087 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6091 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6092 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6093 if test $ac_cv_header_stdc = yes; then
6095 cat >>confdefs.h
<<\_ACEOF
6096 #define STDC_HEADERS 1
6101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6111 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6112 inttypes.h stdint.h unistd.h
6114 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6115 echo "$as_me:$LINENO: checking for $ac_header" >&5
6116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.
$ac_ext <<_ACEOF
6123 cat confdefs.h
>>conftest.
$ac_ext
6124 cat >>conftest.
$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6128 #include <$ac_header>
6130 rm -f conftest.
$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6134 grep -v '^ *+' conftest.er1
>conftest.err
6136 cat conftest.err
>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try
='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try
='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 eval "$as_ac_Header=yes"
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 eval "$as_ac_Header=no"
6159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6164 cat >>confdefs.h
<<_ACEOF
6165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6175 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6176 if test "${with_gdlib_prefix+set}" = set; then
6177 withval
="$with_gdlib_prefix"
6181 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6182 if test "${with_gdlib_config+set}" = set; then
6183 withval
="$with_gdlib_config"
6189 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6190 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6191 GDLIB_CONFIG_NAME
=gdlib-config
6194 if test -n "$with_gdlib_config"; then
6195 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6199 # deal with optional prefix
6200 if test -n "$with_gdlib_prefix"; then
6201 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6205 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6206 if test -x "$GDLIB_CONFIG_NAME"; then
6208 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6209 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6210 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6211 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6212 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6215 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6216 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6217 echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 case $GDLIB_CONFIG_PATH in
6224 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6228 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6229 for as_dir
in $as_dummy
6232 test -z "$as_dir" && as_dir
=.
6233 for ac_exec_ext
in '' $ac_executable_extensions; do
6234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6246 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6248 if test -n "$GDLIB_CONFIG_PATH"; then
6249 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6250 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6252 echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6259 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6261 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6262 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6263 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6265 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6266 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6267 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6268 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6271 if test $gdlib_config_major_version -gt 2; then
6273 elif test $gdlib_config_major_version -eq 2; then
6275 if test $gdlib_config_minor_version -gt 0; then
6277 elif test $gdlib_config_minor_version -eq 0; then
6278 if test $gdlib_config_micro_version -ge 0; then
6288 if test -z "$gdlib_ver_ok"; then
6290 if test -z "$GDLIB_VERSION"; then
6291 echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6
6295 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6296 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6304 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6305 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6306 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6307 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6308 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6309 mule_backup_CFLAGS
="$CFLAGS"
6310 CFLAGS
="$CFLAGS $GDLIB_CFLAGS"
6311 if test "${ac_cv_header_gd_h+set}" = set; then
6312 echo "$as_me:$LINENO: checking for gd.h" >&5
6313 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6314 if test "${ac_cv_header_gd_h+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6318 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6320 # Is the header compilable?
6321 echo "$as_me:$LINENO: checking gd.h usability" >&5
6322 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6323 cat >conftest.
$ac_ext <<_ACEOF
6326 cat confdefs.h
>>conftest.
$ac_ext
6327 cat >>conftest.
$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 $ac_includes_default
6332 rm -f conftest.
$ac_objext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6334 (eval $ac_compile) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1
>conftest.err
6338 cat conftest.err
>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try
='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try
='test -s conftest.$ac_objext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_header_compiler
=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.
$ac_ext >&5
6359 ac_header_compiler
=no
6361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6
6365 # Is the header present?
6366 echo "$as_me:$LINENO: checking gd.h presence" >&5
6367 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6368 cat >conftest.
$ac_ext <<_ACEOF
6371 cat confdefs.h
>>conftest.
$ac_ext
6372 cat >>conftest.
$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6379 grep -v '^ *+' conftest.er1
>conftest.err
6381 cat conftest.err
>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } >/dev
/null
; then
6384 if test -s conftest.err
; then
6385 ac_cpp_err
=$ac_c_preproc_warn_flag
6386 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6393 if test -z "$ac_cpp_err"; then
6394 ac_header_preproc
=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.
$ac_ext >&5
6399 ac_header_preproc
=no
6401 rm -f conftest.err conftest.
$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6
6405 # So? What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc
=yes
6415 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6429 ## ------------------------------ ##
6430 ## Report this to admin@amule.org ##
6431 ## ------------------------------ ##
6434 sed "s/^/$as_me: WARNING: /" >&2
6437 echo "$as_me:$LINENO: checking for gd.h" >&5
6438 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6439 if test "${ac_cv_header_gd_h+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 ac_cv_header_gd_h
=$ac_header_preproc
6444 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6445 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6448 if test $ac_cv_header_gd_h = yes; then
6455 CFLAGS
="$mule_backup_CFLAGS"
6463 if test -n "$GDLIB_VERSION"; then
6466 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6475 if test -z "$CAS_DEFS"; then
6476 { echo "$as_me:$LINENO: WARNING:
6477 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6478 Please check that gdlib-config is in your default path, check out
6479 LD_LIBRARY_PATH or equivalent variable.
6480 Or this might also be that your gdlib-config has other name.
6481 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6482 (replace /usr/bin/gdlib-config with a valid path to your
6484 If you use compiled packages check if you have devel pack installed.
6485 To download the latest version check http://www.boutell.com/gd for
6487 echo "$as_me: WARNING:
6488 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6489 Please check that gdlib-config is in your default path, check out
6490 LD_LIBRARY_PATH or equivalent variable.
6491 Or this might also be that your gdlib-config has other name.
6492 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6493 (replace /usr/bin/gdlib-config with a valid path to your
6495 If you use compiled packages check if you have devel pack installed.
6496 To download the latest version check http://www.boutell.com/gd for
6499 _mule_has_warnings
=yes
6507 if test ${enable_webserver:-no} = yes; then
6510 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6511 if test "${with_libpng_prefix+set}" = set; then
6512 withval
="$with_libpng_prefix"
6516 # Check whether --with-libpng-config or --without-libpng-config was given.
6517 if test "${with_libpng_config+set}" = set; then
6518 withval
="$with_libpng_config"
6524 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6525 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6526 LIBPNG_CONFIG_NAME
=libpng-config
6529 if test -n "$with_libpng_config"; then
6530 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6534 # deal with optional prefix
6535 if test -n "$with_libpng_prefix"; then
6536 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6540 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6541 if test -x "$LIBPNG_CONFIG_NAME"; then
6543 echo "$as_me:$LINENO: checking for libpng-config" >&5
6544 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6545 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6546 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6547 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6550 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6551 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6552 echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6554 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 case $LIBPNG_CONFIG_PATH in
6559 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6563 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6564 for as_dir
in $as_dummy
6567 test -z "$as_dir" && as_dir
=.
6568 for ac_exec_ext
in '' $ac_executable_extensions; do
6569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6581 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6583 if test -n "$LIBPNG_CONFIG_PATH"; then
6584 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6585 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6594 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6596 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6597 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6599 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6601 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6602 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6603 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6604 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6607 if test $libpng_config_major_version -gt 1; then
6609 elif test $libpng_config_major_version -eq 1; then
6611 if test $libpng_config_minor_version -gt 2; then
6613 elif test $libpng_config_minor_version -eq 2; then
6614 if test $libpng_config_micro_version -ge 0; then
6624 if test -z "$libpng_ver_ok"; then
6626 if test -z "$LIBPNG_VERSION"; then
6627 echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6
6631 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6632 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6640 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6641 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6642 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6643 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6644 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6652 if test -n "$LIBPNG_VERSION"; then
6653 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6656 { echo "$as_me:$LINENO: WARNING:
6657 libpng >= 1.2.0 not found.
6658 amuleweb will be compiled but file download progress bar images will
6659 NOT be generated." >&5
6660 echo "$as_me: WARNING:
6661 libpng >= 1.2.0 not found.
6662 amuleweb will be compiled but file download progress bar images will
6663 NOT be generated." >&2;}
6665 _mule_has_warnings
=yes
6677 # Check for perl File::Copy
6678 echo "$as_me:$LINENO: checking for File::Copy" >&5
6679 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6680 if perl
-e "require File::Copy" 2>/dev
/null
; then
6681 echo "$as_me:$LINENO: result: ok" >&5
6682 echo "${ECHO_T}ok" >&6
6684 { echo "$as_me:$LINENO: WARNING:
6685 File::Copy perl module is required by the mldonkey_importer script.
6686 If you want to use this script please install File::Copy from CPAN." >&5
6687 echo "$as_me: WARNING:
6688 File::Copy perl module is required by the mldonkey_importer script.
6689 If you want to use this script please install File::Copy from CPAN." >&2;}
6691 _mule_has_warnings
=yes
6696 # Check if we need to install skins
6697 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6704 # Check for GeoIP (required for IP2Country capability)
6705 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
6707 # Check whether --enable-geoip or --disable-geoip was given.
6708 if test "${enable_geoip+set}" = set; then
6709 enableval
="$enable_geoip"
6714 if test ${enable_geoip:-no} = yes; then
6717 # Check whether --with-geoip-headers or --without-geoip-headers was given.
6718 if test "${with_geoip_headers+set}" = set; then
6719 withval
="$with_geoip_headers"
6720 GEOIP_CPPFLAGS
="-I$withval"
6723 # Check whether --with-geoip-lib or --without-geoip-lib was given.
6724 if test "${with_geoip_lib+set}" = set; then
6725 withval
="$with_geoip_lib"
6726 GEOIP_LDFLAGS
="-L$withval"
6729 mule_backup_CPPFLAGS
="$CPPFLAGS"
6730 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6731 mule_backup_LDFLAGS
="$LDFLAGS"
6732 LDFLAGS
="$LDFLAGS $GEOIP_LDFLAGS"
6734 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6735 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6736 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6737 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6741 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6743 # Is the header compilable?
6744 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6745 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6746 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6755 rm -f conftest.
$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1
>conftest.err
6761 cat conftest.err
>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try
='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_header_compiler
=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6782 ac_header_compiler
=no
6784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6786 echo "${ECHO_T}$ac_header_compiler" >&6
6788 # Is the header present?
6789 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6790 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6791 cat >conftest.
$ac_ext <<_ACEOF
6794 cat confdefs.h
>>conftest.
$ac_ext
6795 cat >>conftest.
$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
6804 cat conftest.err
>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } >/dev
/null
; then
6807 if test -s conftest.err
; then
6808 ac_cpp_err
=$ac_c_preproc_warn_flag
6809 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6816 if test -z "$ac_cpp_err"; then
6817 ac_header_preproc
=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.
$ac_ext >&5
6822 ac_header_preproc
=no
6824 rm -f conftest.err conftest.
$ac_ext
6825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6826 echo "${ECHO_T}$ac_header_preproc" >&6
6828 # So? What about this header?
6829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6831 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
6832 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
6834 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
6835 ac_header_preproc
=yes
6838 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
6843 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
6845 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
6847 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
6849 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
6852 ## ------------------------------ ##
6853 ## Report this to admin@amule.org ##
6854 ## ------------------------------ ##
6857 sed "s/^/$as_me: WARNING: /" >&2
6860 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6861 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6862 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 ac_cv_header_GeoIP_h
=$ac_header_preproc
6867 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6868 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6871 if test $ac_cv_header_GeoIP_h = yes; then
6873 if test x
$SYS = xwin32
; then
6875 echo "$as_me:$LINENO: checking for WinSock library needed by GeoIP" >&5
6876 echo $ECHO_N "checking for WinSock library needed by GeoIP... $ECHO_C" >&6
6877 # Actually, we might not need any if GeoIP is linked as a .dll
6878 # - but that's even harder to check for
6879 cat >conftest.
$ac_ext <<_ACEOF
6883 cat confdefs.h
>>conftest.
$ac_ext
6884 cat >>conftest.
$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6889 I do know it's not the best approach, but at least works with MinGW stock headers.
6890 (tested with w32api-3.12)
6902 rm -f conftest.
$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try
='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try
='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6925 GEOIP_WINSOCK_LIB
="-lwsock32"
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6932 GEOIP_WINSOCK_LIB
="-lws2_32"
6935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6936 echo "$as_me:$LINENO: result: $GEOIP_WINSOCK_LIB" >&5
6937 echo "${ECHO_T}$GEOIP_WINSOCK_LIB" >&6
6941 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
6942 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
6943 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_check_lib_save_LIBS
=$LIBS
6947 LIBS
="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
6948 cat >conftest.
$ac_ext <<_ACEOF
6951 cat confdefs.h
>>conftest.
$ac_ext
6952 cat >>conftest.
$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6955 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6970 rm -f conftest.
$ac_objext conftest
$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>conftest.er1
6974 grep -v '^ *+' conftest.er1
>conftest.err
6976 cat conftest.err
>&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try
='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try
='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_lib_GeoIP_GeoIP_open
=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.
$ac_ext >&5
6997 ac_cv_lib_GeoIP_GeoIP_open
=no
6999 rm -f conftest.err conftest.
$ac_objext \
7000 conftest
$ac_exeext conftest.
$ac_ext
7001 LIBS
=$ac_check_lib_save_LIBS
7003 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7004 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7005 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7008 cat >>confdefs.h
<<\_ACEOF
7009 #define SUPPORT_GEOIP 1
7012 GEOIP_LIBS
="-lGeoIP"
7013 if test x
$SYS = xwin32
; then
7014 GEOIP_LIBS
="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7017 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7019 # Check whether --with-geoip-static or --without-geoip-static was given.
7020 if test "${with_geoip_static+set}" = set; then
7021 withval
="$with_geoip_static"
7023 if test "$withval" != "no" -a ${enable_static:-no} = no
; then
7025 mule_backup_LIBS
="$LIBS"
7026 LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7027 cat >conftest.
$ac_ext <<_ACEOF
7031 cat confdefs.h
>>conftest.
$ac_ext
7032 cat >>conftest.
$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7041 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7048 rm -f conftest.
$ac_objext conftest
$ac_exeext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>conftest.er1
7052 grep -v '^ *+' conftest.er1
>conftest.err
7054 cat conftest.err
>&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try
='test -z "$ac_c_werror_flag"
7058 || test ! -s conftest.err'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; } &&
7064 { ac_try
='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7071 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.
$ac_ext >&5
7078 { echo "$as_me:$LINENO: WARNING:
7079 Cannot link GeoIP statically, because your linker ($LD) does not
7081 echo "$as_me: WARNING:
7082 Cannot link GeoIP statically, because your linker ($LD) does not
7085 _mule_has_warnings
=yes
7089 rm -f conftest.err conftest.
$ac_objext \
7090 conftest
$ac_exeext conftest.
$ac_ext
7091 LIBS
="$mule_backup_LIBS"
7100 enable_geoip
=disabled
7101 { echo "$as_me:$LINENO: WARNING:
7102 GeoIP support has been disabled because the GeoIP libraries were not
7104 echo "$as_me: WARNING:
7105 GeoIP support has been disabled because the GeoIP libraries were not
7108 _mule_has_warnings
=yes
7116 enable_geoip
=disabled
7117 { echo "$as_me:$LINENO: WARNING:
7118 GeoIP support has been disabled because the GeoIP header files were
7120 echo "$as_me: WARNING:
7121 GeoIP support has been disabled because the GeoIP header files were
7124 _mule_has_warnings
=yes
7131 CPPFLAGS
="$mule_backup_CPPFLAGS"
7132 LDFLAGS
="$mule_backup_LDFLAGS"
7141 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
7144 # Check whether --with-wxdir or --without-wxdir was given.
7145 if test "${with_wxdir+set}" = set; then
7146 withval
="$with_wxdir"
7147 wx_config_name
="$withval/wx-config"
7148 wx_config_args
="--inplace"
7151 # Check whether --with-wx-config or --without-wx-config was given.
7152 if test "${with_wx_config+set}" = set; then
7153 withval
="$with_wx_config"
7154 wx_config_name
="$withval"
7157 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7158 if test "${with_wx_prefix+set}" = set; then
7159 withval
="$with_wx_prefix"
7160 wx_config_prefix
="$withval"
7165 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7166 if test "${with_wx_exec_prefix+set}" = set; then
7167 withval
="$with_wx_exec_prefix"
7168 wx_config_exec_prefix
="$withval"
7170 wx_config_exec_prefix
=""
7184 # Check whether --with-toolkit or --without-toolkit was given.
7185 if test "${with_toolkit+set}" = set; then
7186 withval
="$with_toolkit"
7192 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7193 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7194 if test "$withval" = "auto" ; then
7195 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7196 echo "${ECHO_T}will be automatically detected" >&6
7201 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7202 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7203 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7204 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7205 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7206 "$TOOLKIT" != "osx_cocoa"; then
7207 { { echo "$as_me:$LINENO: error:
7208 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7210 echo "$as_me: error:
7211 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7213 { (exit 1); exit 1; }; }
7216 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7217 echo "${ECHO_T}$TOOLKIT" >&6
7224 # Check whether --with-wxshared or --without-wxshared was given.
7225 if test "${with_wxshared+set}" = set; then
7226 withval
="$with_wxshared"
7232 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7233 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7234 if test "$withval" = "yes" ; then
7235 echo "$as_me:$LINENO: result: yes" >&5
7236 echo "${ECHO_T}yes" >&6
7239 elif test "1" = "1" -a "$withval" = "no" ; then
7240 echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6
7243 elif test "$withval" = "auto" ; then
7244 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7245 echo "${ECHO_T}will be automatically detected" >&6
7248 { { echo "$as_me:$LINENO: error:
7249 Unrecognized option value (allowed values: yes, auto)
7251 echo "$as_me: error:
7252 Unrecognized option value (allowed values: yes, auto)
7254 { (exit 1); exit 1; }; }
7261 # Check whether --with-wxdebug or --without-wxdebug was given.
7262 if test "${with_wxdebug+set}" = set; then
7263 withval
="$with_wxdebug"
7269 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7270 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7271 if test "$withval" = "yes" ; then
7272 echo "$as_me:$LINENO: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7276 elif test "1" = "1" -a "$withval" = "no" ; then
7277 echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7280 elif test "$withval" = "auto" ; then
7281 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7282 echo "${ECHO_T}will be automatically detected" >&6
7285 { { echo "$as_me:$LINENO: error:
7286 Unrecognized option value (allowed values: yes, auto)
7288 echo "$as_me: error:
7289 Unrecognized option value (allowed values: yes, auto)
7291 { (exit 1); exit 1; }; }
7298 # Check whether --with-wxversion or --without-wxversion was given.
7299 if test "${with_wxversion+set}" = set; then
7300 withval
="$with_wxversion"
7306 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7307 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7308 if test "$withval" = "auto" ; then
7309 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7310 echo "${ECHO_T}will be automatically detected" >&6
7314 wx_requested_major_version
=`echo $withval | \
7315 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7316 wx_requested_minor_version
=`echo $withval | \
7317 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7319 if test "${#wx_requested_major_version}" != "1" -o \
7320 "${#wx_requested_minor_version}" != "1" ; then
7321 { { echo "$as_me:$LINENO: error:
7322 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7324 echo "$as_me: error:
7325 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7327 { (exit 1); exit 1; }; }
7330 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7331 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7332 echo "${ECHO_T}$WX_VERSION" >&6
7336 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7337 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7338 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7339 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7340 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7341 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7344 # Force using a static wxWidgets library if the executable is to be linked statically.
7345 if test ${enable_static:-no} = yes; then
7349 # Force using a unicode build of the library
7350 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
7356 if test "$WX_SHARED" = "1" ; then
7357 WXCONFIG_FLAGS
="--static=no "
7358 elif test "$WX_SHARED" = "0" ; then
7359 WXCONFIG_FLAGS
="--static=yes "
7362 if test "$WX_DEBUG" = "1" ; then
7363 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=yes "
7364 elif test "$WX_DEBUG" = "0" ; then
7365 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--debug=no "
7368 if test "$WX_UNICODE" = "1" ; then
7369 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=yes "
7370 elif test "$WX_UNICODE" = "0" ; then
7371 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--unicode=no "
7374 if test "$TOOLKIT" != "auto" ; then
7375 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7378 if test "$WX_VERSION" != "auto" ; then
7379 WXCONFIG_FLAGS
="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7382 WXCONFIG_FLAGS
=${WXCONFIG_FLAGS% }
7384 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7385 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7389 if test x
${WX_CONFIG_NAME+set} != xset
; then
7390 WX_CONFIG_NAME
=wx-config
7393 if test "x$wx_config_name" != x
; then
7394 WX_CONFIG_NAME
="$wx_config_name"
7397 if test x
$wx_config_exec_prefix != x
; then
7398 wx_config_args
="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7399 WX_LOOKUP_PATH
="$wx_config_exec_prefix/bin"
7401 if test x
$wx_config_prefix != x
; then
7402 wx_config_args
="$wx_config_args --prefix=$wx_config_prefix"
7403 WX_LOOKUP_PATH
="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7405 if test "$cross_compiling" = "yes"; then
7406 wx_config_args
="$wx_config_args --host=$host_alias"
7409 if test -x "$WX_CONFIG_NAME" ; then
7410 echo "$as_me:$LINENO: checking for wx-config" >&5
7411 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
7412 WX_CONFIG_PATH
="$WX_CONFIG_NAME"
7413 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7414 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7416 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7417 set dummy
$WX_CONFIG_NAME; ac_word
=$2
7418 echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7420 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 case $WX_CONFIG_PATH in
7425 ac_cv_path_WX_CONFIG_PATH
="$WX_CONFIG_PATH" # Let the user override the test with a path.
7428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7429 as_dummy
=""$WX_LOOKUP_PATH:$PATH""
7430 for as_dir
in $as_dummy
7433 test -z "$as_dir" && as_dir
=.
7434 for ac_exec_ext
in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_path_WX_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH
="no"
7447 WX_CONFIG_PATH
=$ac_cv_path_WX_CONFIG_PATH
7449 if test -n "$WX_CONFIG_PATH"; then
7450 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
7451 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
7453 echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7459 if test "$WX_CONFIG_PATH" != "no" ; then
7462 min_wx_version
=2.8.8
7463 if test -z "$WXCONFIG_FLAGS" ; then
7464 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
7465 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
7467 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7468 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... $ECHO_C" >&6
7471 WX_CONFIG_WITH_ARGS
="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7473 WX_VERSION_FULL
=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7474 wx_config_major_version
=`echo $WX_VERSION_FULL | \
7475 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7476 wx_config_minor_version
=`echo $WX_VERSION_FULL | \
7477 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7478 wx_config_micro_version
=`echo $WX_VERSION_FULL | \
7479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7481 wx_requested_major_version
=`echo $min_wx_version | \
7482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7483 wx_requested_minor_version
=`echo $min_wx_version | \
7484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7485 wx_requested_micro_version
=`echo $min_wx_version | \
7486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7490 if test "x$WX_VERSION_FULL" != x
; then
7491 if test $wx_config_major_version -gt $wx_requested_major_version; then
7494 if test $wx_config_major_version -eq $wx_requested_major_version; then
7495 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7498 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7499 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7509 if test -n "$wx_ver_ok"; then
7511 echo "$as_me:$LINENO: result: yes (version $WX_VERSION_FULL)" >&5
7512 echo "${ECHO_T}yes (version $WX_VERSION_FULL)" >&6
7513 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs`
7515 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7517 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7518 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7519 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7521 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7522 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7528 if test "x$WX_VERSION_FULL" = x
; then
7529 echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7532 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7533 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7542 if test ! -z "$WXCONFIG_FLAGS"; then
7545 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7546 build with the following settings:
7548 but such build is not available.
7550 To see the wxWidgets builds available on this system, please use
7551 'wx-config --list' command. To use the default build, returned by
7552 'wx-config --selected-config', use the options with their 'auto'
7558 The requested wxWidgets build couldn't be found.
7561 If you still get this error, then check that 'wx-config' is
7562 in path, the directory where wxWidgets libraries are installed
7563 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7564 or equivalent variable and wxWidgets version is 2.8.8 or above."
7566 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7567 echo "$as_me: error: $wx_error_message" >&2;}
7568 { (exit 1); exit 1; }; }
7592 WX_VERSION_MAJOR
="$wx_config_major_version"
7593 WX_VERSION_MINOR
="$wx_config_minor_version"
7597 if test "$wxWin" != 1; then
7598 { { echo "$as_me:$LINENO: error:
7599 wxWidgets must be installed on your system but wx-config
7600 script couldn't be found. Please check that wx-config is
7601 in path or specified by --with-wx-config=path flag, the
7602 directory where wxWidgets libraries are installed (returned
7603 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7604 equivalent variable and wxWidgets version is 2.8.8 or above.
7606 echo "$as_me: error:
7607 wxWidgets must be installed on your system but wx-config
7608 script couldn't be found. Please check that wx-config is
7609 in path or specified by --with-wx-config=path flag, the
7610 directory where wxWidgets libraries are installed (returned
7611 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7612 equivalent variable and wxWidgets version is 2.8.8 or above.
7614 { (exit 1); exit 1; }; }
7618 if test "${WX_VERSION_FULL}" = "2.9.0"; then
7619 { { echo "$as_me:$LINENO: error:
7620 This version of wxWidgets is known to not work with aMule.
7621 Please upgrade to a newer version.
7623 echo "$as_me: error:
7624 This version of wxWidgets is known to not work with aMule.
7625 Please upgrade to a newer version.
7627 { (exit 1); exit 1; }; }
7632 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7634 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7636 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7637 echo "[dbg] Using wx-config --selected-config"
7638 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7642 if test $WX_SHARED = "1"; then
7644 elif test $WX_SHARED = "0"; then
7646 elif test $WX_SHARED = "auto"; then
7651 if test "$UNICODE" = "auto" ; then
7653 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7654 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7656 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7658 if test "$WX_UNICODE" != "0"; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661 echo "${ECHO_T}yes" >&6
7665 echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7675 if test "$DEBUG" = "auto" ; then
7677 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7678 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7680 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7682 if test "$WX_DEBUG" != "0"; then
7684 echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6
7689 echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6
7699 if test "$STATIC" = "auto" ; then
7701 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7702 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7704 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7706 if test "$WX_STATIC" != "0"; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709 echo "${ECHO_T}yes" >&6
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7723 if test "$WX_STATIC" != "0"; then
7733 if test "$TOOLKIT" = "auto" ; then
7735 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7736 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7738 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7739 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7740 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7741 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7742 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7743 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7744 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7745 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7746 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7747 WX_COCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
7748 WX_OSXCOCOAPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
7751 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7752 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7753 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7754 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7755 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7756 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7757 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7758 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7759 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7760 if test "$WX_COCOAPORT" != "0"; then WX_PORT
="cocoa"; fi
7761 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT
="osx_cocoa"; fi
7764 if test "$WX_PORT" = "unknown" ; then
7765 { { echo "$as_me:$LINENO: error:
7766 Cannot detect the currently installed wxWidgets port !
7767 Please check your 'wx-config --cxxflags'...
7769 echo "$as_me: error:
7770 Cannot detect the currently installed wxWidgets port !
7771 Please check your 'wx-config --cxxflags'...
7773 { (exit 1); exit 1; }; }
7776 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7777 echo "${ECHO_T}$WX_PORT" >&6
7780 if test -n "$TOOLKIT" ; then
7789 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7790 echo "[dbg] Values of all WX_* options after final detection:"
7791 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7792 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7793 echo "[dbg] WX_SHARED: $WX_SHARED"
7794 echo "[dbg] WX_VERSION: $WX_VERSION"
7795 echo "[dbg] WX_PORT: $WX_PORT"
7798 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7799 { { echo "$as_me:$LINENO: error:
7800 Cannot build shared library against a static build of wxWidgets !
7801 This error happens because the wxWidgets build which was selected
7802 has been detected as static while you asked to build $PACKAGE_NAME
7803 as shared library and this is not possible.
7804 Use the '--disable-shared' option to build $PACKAGE_NAME
7805 as static library or '--with-wxshared' to use wxWidgets as shared library.
7807 echo "$as_me: error:
7808 Cannot build shared library against a static build of wxWidgets !
7809 This error happens because the wxWidgets build which was selected
7810 has been detected as static while you asked to build $PACKAGE_NAME
7811 as shared library and this is not possible.
7812 Use the '--disable-shared' option to build $PACKAGE_NAME
7813 as static library or '--with-wxshared' to use wxWidgets as shared library.
7815 { (exit 1); exit 1; }; }
7818 if test "$DEBUG" = "auto"; then
7821 if test "$DEBUG" = "1"; then
7823 elif test "$DEBUG" = ""; then
7827 if test "$UNICODE" = "auto"; then
7830 if test "$SHARED" = "auto"; then
7833 if test "$TOOLKIT" = "auto"; then
7838 # We also need wxBase
7839 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7840 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
7841 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
7843 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7848 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then
7849 if test "${WX_PORT}" = base
; then
7850 { { echo "$as_me:$LINENO: error:
7851 The selected components need a wxWidgets library with GUI,
7852 but your installation is base-only. Please install a GUI
7853 enabled version of wxWidgets and then retry.
7855 echo "$as_me: error:
7856 The selected components need a wxWidgets library with GUI,
7857 but your installation is base-only. Please install a GUI
7858 enabled version of wxWidgets and then retry.
7860 { (exit 1); exit 1; }; }
7867 if test ${SYS:-unknown} = win32
; then
7868 if test -n "$ac_tool_prefix"; then
7869 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7870 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7871 echo "$as_me:$LINENO: checking for $ac_word" >&5
7872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7873 if test "${ac_cv_prog_RC+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 if test -n "$RC"; then
7877 ac_cv_prog_RC
="$RC" # Let the user override the test.
7879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir
=.
7884 for ac_exec_ext
in '' $ac_executable_extensions; do
7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_RC
="${ac_tool_prefix}windres"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 if test -n "$RC"; then
7897 echo "$as_me:$LINENO: result: $RC" >&5
7898 echo "${ECHO_T}$RC" >&6
7900 echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7905 if test -z "$ac_cv_prog_RC"; then
7907 # Extract the first word of "windres", so it can be a program name with args.
7908 set dummy windres
; ac_word
=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 if test -n "$ac_ct_RC"; then
7915 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
7917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir
=.
7922 for ac_exec_ext
in '' $ac_executable_extensions; do
7923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_ac_ct_RC
="windres"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
7934 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
7935 if test -n "$ac_ct_RC"; then
7936 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7937 echo "${ECHO_T}$ac_ct_RC" >&6
7939 echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6
7953 # Check whether --enable-upnp or --disable-upnp was given.
7954 if test "${enable_upnp+set}" = set; then
7955 enableval
="$enable_upnp"
7959 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
7965 if test ${enable_upnp:-yes} = yes; then
7969 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7972 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7973 echo "$as_me:$LINENO: checking for $ac_word" >&5
7974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir
=.
7988 for ac_exec_ext
in '' $ac_executable_extensions; do
7989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8002 if test -n "$PKG_CONFIG"; then
8003 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8004 echo "${ECHO_T}$PKG_CONFIG" >&6
8006 echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8011 if test -z "$ac_cv_path_PKG_CONFIG"; then
8012 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8013 # Extract the first word of "pkg-config", so it can be a program name with args.
8014 set dummy pkg-config
; ac_word
=$2
8015 echo "$as_me:$LINENO: checking for $ac_word" >&5
8016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8017 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 case $ac_pt_PKG_CONFIG in
8022 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8044 if test -n "$ac_pt_PKG_CONFIG"; then
8045 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8046 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8052 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8054 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8058 if test -n "$PKG_CONFIG"; then
8059 _pkg_min_version
=0.9.0
8060 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8061 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
8062 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8063 echo "$as_me:$LINENO: result: yes" >&5
8064 echo "${ECHO_T}yes" >&6
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8074 # Check whether --with-libupnp-prefix or --without-libupnp-prefix was given.
8075 if test "${with_libupnp_prefix+set}" = set; then
8076 withval
="$with_libupnp_prefix"
8077 export PKG_CONFIG_PATH
=$withval/lib
/pkgconfig
8080 if test $cross_compiling = no
; then
8082 echo "$as_me:$LINENO: checking for libupnp version >= 1.6.6" >&5
8083 echo $ECHO_N "checking for libupnp version >= 1.6.6... $ECHO_C" >&6
8084 if test -n "$PKG_CONFIG"; then
8086 if $PKG_CONFIG libupnp
--exists; then
8088 LIBUPNP_VERSION
=`$PKG_CONFIG libupnp --modversion`
8089 if $PKG_CONFIG libupnp
--atleast-version=1.6.6; then
8092 resultstr
=" (version $LIBUPNP_VERSION)"
8093 LIBUPNP_CPPFLAGS
=`$PKG_CONFIG libupnp --cflags-only-I`
8094 LIBUPNP_CFLAGS
=`$PKG_CONFIG libupnp --cflags-only-other`
8095 LIBUPNP_LDFLAGS
=`$PKG_CONFIG libupnp --libs-only-L`
8096 LIBUPNP_LIBS
=`$PKG_CONFIG libupnp --libs-only-other`
8097 LIBUPNP_LIBS
="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8102 resultstr
=" (version $LIBUPNP_VERSION is not new enough)"
8110 resultstr
=" (try to use --with-libupnp-prefix=PREFIX)"
8118 resultstr
=" (pkg-config not found)"
8122 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8123 echo "${ECHO_T}$result$resultstr" >&6
8124 libupnp_error
="libupnp >= 1.6.6 not found$resultstr"
8129 libupnp_error
="cross compiling"
8134 if test ${result:-no} = yes; then
8135 LIBUPNP_CPPFLAGS
="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8137 enable_upnp
=disabled
8138 { echo "$as_me:$LINENO: WARNING:
8139 UPnP code has been disabled because ${libupnp_error}." >&5
8140 echo "$as_me: WARNING:
8141 UPnP code has been disabled because ${libupnp_error}." >&2;}
8143 _mule_has_warnings
=yes
8154 # Check for Crypto++
8155 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
8158 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
8159 if test "${with_crypto_prefix+set}" = set; then
8160 withval
="$with_crypto_prefix"
8164 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
8165 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
8167 cryptopp_file_with_version
="cryptlib.h"
8169 CRYPTOPP_STYLE
="unknown"
8170 CRYPTOPP_LIB_NAME
="unknown"
8171 cryptopp_includedir
="unknown"
8172 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8173 cryptopp_libdir
="unknown"
8175 if test -n "$with_crypto_prefix"; then
8177 CRYPTOPP_PREFIX
="$with_crypto_prefix"
8178 # Find the Cryptopp header in the user-provided location
8179 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8181 CRYPTOPP_STYLE
="sources"
8182 CRYPTOPP_LIB_NAME
="cryptopp"
8183 cryptopp_includedir
=
8184 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8187 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8189 CRYPTOPP_STYLE
="installed"
8190 CRYPTOPP_LIB_NAME
="cryptopp"
8191 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8192 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8193 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8195 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8197 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8198 CRYPTOPP_STYLE
="gentoo_debian"
8199 CRYPTOPP_LIB_NAME
="crypto++"
8200 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8201 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8202 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8209 for CRYPTOPP_PREFIX
in /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8210 # Find the Cryptopp header in system locations
8211 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8213 CRYPTOPP_STYLE
="sources"
8214 CRYPTOPP_LIB_NAME
="cryptopp"
8215 cryptopp_includedir
=
8216 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8220 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8222 CRYPTOPP_STYLE
="installed"
8223 CRYPTOPP_LIB_NAME
="cryptopp"
8224 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8225 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8226 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8229 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8231 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8232 CRYPTOPP_STYLE
="gentoo_debian"
8233 CRYPTOPP_LIB_NAME
="crypto++"
8234 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8235 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8236 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8246 if test $CRYPTOPP_STYLE = "unknown"; then
8247 result
=no
; resultstr
=""
8250 # Find out the crypto++ version and check against the minimum required
8251 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8252 CRYPTOPP_VERSION_STRING
=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8253 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8254 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8256 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8259 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8260 if test -n "$cryptopp_includedir"; then
8261 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8266 if test -n "$cryptopp_libdir"; then
8268 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8269 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8274 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8280 cat >>confdefs.h
<<_ACEOF
8281 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8288 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8296 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8297 echo "${ECHO_T}$result$resultstr" >&6
8299 if test ${result:-no} = yes; then
8301 # Check for CryptoPP >= 5.5
8302 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8303 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8309 { { echo "$as_me:$LINENO: error:
8310 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8311 Please try again with --with-crypto-prefix=/my_crypto_prefix
8312 (replace /my_crypto_prefix with a valid path to your crypto++
8313 installation directory)." >&5
8314 echo "$as_me: error:
8315 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8316 Please try again with --with-crypto-prefix=/my_crypto_prefix
8317 (replace /my_crypto_prefix with a valid path to your crypto++
8318 installation directory)." >&2;}
8319 { (exit 1); exit 1; }; }
8328 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
8330 ac_cpp
='$CXXCPP $CPPFLAGS'
8331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8338 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8339 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8340 cat >conftest.
$ac_ext <<_ACEOF
8344 cat confdefs.h
>>conftest.
$ac_ext
8345 cat >>conftest.
$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8350 #error Non-GNU C++ library found.
8355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8356 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8358 grep -v '^ *+' conftest.er1
>conftest.err
8360 cat conftest.err
>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } >/dev
/null
; then
8363 if test -s conftest.err
; then
8364 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8365 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8372 if test -z "$ac_cpp_err"; then
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.
$ac_ext >&5
8380 rm -f conftest.err conftest.
$ac_ext
8381 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8382 echo "${ECHO_T}$GLIBCXX" >&6
8384 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then
8386 mule_backup_CPPFLAGS
="$CPPFLAGS"
8387 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8389 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8390 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8391 cat >conftest.
$ac_ext <<_ACEOF
8395 cat confdefs.h
>>conftest.
$ac_ext
8396 cat >>conftest.
$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8400 #include <wx/filefn.h>
8401 #ifndef wxHAS_LARGE_FILES
8402 #error No LargeFile support!
8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8410 grep -v '^ *+' conftest.er1
>conftest.err
8412 cat conftest.err
>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } >/dev
/null
; then
8415 if test -s conftest.err
; then
8416 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8417 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8424 if test -z "$ac_cpp_err"; then
8426 echo "$as_me:$LINENO: result: yes" >&5
8427 echo "${ECHO_T}yes" >&6
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.
$ac_ext >&5
8434 echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6
8436 { { echo "$as_me:$LINENO: error:
8437 Support for large files in wxWidgets is required by aMule.
8438 To continue you must recompile wxWidgets with support for
8439 large files enabled." >&5
8440 echo "$as_me: error:
8441 Support for large files in wxWidgets is required by aMule.
8442 To continue you must recompile wxWidgets with support for
8443 large files enabled." >&2;}
8444 { (exit 1); exit 1; }; }
8447 rm -f conftest.err conftest.
$ac_ext
8449 CPPFLAGS
="$mule_backup_CPPFLAGS"
8454 # Check if the compiler is broken, wrt. exceptions.
8456 echo "$as_me:$LINENO: checking for exception-handling" >&5
8457 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8458 if test "$cross_compiling" = yes; then
8460 echo "$as_me:$LINENO: result: undeterminable" >&5
8461 echo "${ECHO_T}undeterminable" >&6
8462 { echo "$as_me:$LINENO: WARNING:
8463 Cross-compilation detected, so exception handling cannot be tested.
8464 Note that broken exception handling in your compiler may lead to
8465 unexpected crashes." >&5
8466 echo "$as_me: WARNING:
8467 Cross-compilation detected, so exception handling cannot be tested.
8468 Note that broken exception handling in your compiler may lead to
8469 unexpected crashes." >&2;}
8471 _mule_has_warnings
=yes
8475 cat >conftest.
$ac_ext <<_ACEOF
8479 cat confdefs.h
>>conftest.
$ac_ext
8480 cat >>conftest.
$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8499 rm -f conftest
$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8511 echo "$as_me:$LINENO: result: yes" >&5
8512 echo "${ECHO_T}yes" >&6
8515 echo "$as_me: program exited with status $ac_status" >&5
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.
$ac_ext >&5
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8524 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8525 { (exit 1); exit 1; }; }
8528 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8533 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8534 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8535 cat >conftest.
$ac_ext <<_ACEOF
8539 cat confdefs.h
>>conftest.
$ac_ext
8540 cat >>conftest.
$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8550 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8551 std::type_info *ti = abi::__cxa_current_exception_type();
8558 rm -f conftest.
$ac_objext conftest
$ac_exeext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try
='test -z "$ac_cxx_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try
='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8583 cat >>confdefs.h
<<\_ACEOF
8584 #define HAVE_CXXABI 1
8587 echo "$as_me:$LINENO: result: yes" >&5
8588 echo "${ECHO_T}yes" >&6
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8595 echo "$as_me:$LINENO: result: no" >&5
8596 echo "${ECHO_T}no" >&6
8599 rm -f conftest.err conftest.
$ac_objext \
8600 conftest
$ac_exeext conftest.
$ac_ext
8603 ac_cpp
='$CPP $CPPFLAGS'
8604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8612 # Ok, we have all needed libs, now checking for other stuff
8613 if test "$LEX" = "flex"; then
8615 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8616 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8618 extended_flex
=`flex --help | grep header-file`
8619 if test -n "$extended_flex"; then
8620 HAVE_FLEX_EXTENDED
=yes
8622 HAVE_FLEX_EXTENDED
=no
8625 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8626 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8628 if test $HAVE_FLEX_EXTENDED = no
; then
8629 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8630 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8635 HAVE_FLEX_EXTENDED
=no
8639 # Flush standard test results for speeding cache
8640 cat >confcache
<<\_ACEOF
8641 # This file is a shell script that caches the results of configure
8642 # tests run on this system so they can be shared between configure
8643 # scripts and configure runs, see configure's option --config-cache.
8644 # It is not useful on other systems. If it contains results you don't
8645 # want to keep, you may remove or edit it.
8647 # config.status only pays attention to the cache file if you give it
8648 # the --recheck option to rerun configure.
8650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8656 # The following way of writing the cache mishandles newlines in values,
8657 # but we know of no workaround that is simple, portable, and efficient.
8658 # So, don't put newlines in cache variables' values.
8659 # Ultrix sh set writes to stderr and can't be redirected directly,
8660 # and sets the high bit in the cache file unless we assign to the vars.
8663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8665 # `set' does not quote correctly, so add quotes (double-quote
8666 # substitution turns \\\\ into \\, and sed turns \\ into \).
8669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8672 # `set' quotes correctly as required by POSIX, so do not add quotes.
8674 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8683 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8685 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8686 if test -w $cache_file; then
8687 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8688 cat confcache
>$cache_file
8690 echo "not updating unwritable cache $cache_file"
8695 # Checks for header files.
8696 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8697 # for constant arguments. Useless!
8698 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8699 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8700 if test "${ac_cv_working_alloca_h+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8713 char *p = (char *) alloca (2 * sizeof (int));
8718 rm -f conftest.
$ac_objext conftest
$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1
>conftest.err
8724 cat conftest.err
>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try
='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try
='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_working_alloca_h
=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.
$ac_ext >&5
8745 ac_cv_working_alloca_h
=no
8747 rm -f conftest.err conftest.
$ac_objext \
8748 conftest
$ac_exeext conftest.
$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8751 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8752 if test $ac_cv_working_alloca_h = yes; then
8754 cat >>confdefs.h
<<\_ACEOF
8755 #define HAVE_ALLOCA_H 1
8760 echo "$as_me:$LINENO: checking for alloca" >&5
8761 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8762 if test "${ac_cv_func_alloca_works+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 cat >conftest.
$ac_ext <<_ACEOF
8768 cat confdefs.h
>>conftest.
$ac_ext
8769 cat >>conftest.
$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 # define alloca __builtin_alloca
8775 # include <malloc.h>
8776 # define alloca _alloca
8779 # include <alloca.h>
8784 # ifndef alloca /* predefined by HP cc +Olibcalls */
8795 char *p = (char *) alloca (1);
8800 rm -f conftest.
$ac_objext conftest
$ac_exeext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802 (eval $ac_link) 2>conftest.er1
8804 grep -v '^ *+' conftest.er1
>conftest.err
8806 cat conftest.err
>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try
='test -z "$ac_c_werror_flag"
8810 || test ! -s conftest.err'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; } &&
8816 { ac_try
='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_func_alloca_works
=yes
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8827 ac_cv_func_alloca_works
=no
8829 rm -f conftest.err conftest.
$ac_objext \
8830 conftest
$ac_exeext conftest.
$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8833 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8835 if test $ac_cv_func_alloca_works = yes; then
8837 cat >>confdefs.h
<<\_ACEOF
8838 #define HAVE_ALLOCA 1
8842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8843 # that cause trouble. Some versions do not even contain alloca or
8844 # contain a buggy version. If you still want to use their alloca,
8845 # use ar to extract alloca.o from them instead of compiling alloca.c.
8847 ALLOCA
=alloca.
$ac_objext
8849 cat >>confdefs.h
<<\_ACEOF
8854 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8855 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8856 if test "${ac_cv_os_cray+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 cat >conftest.
$ac_ext <<_ACEOF
8862 cat confdefs.h
>>conftest.
$ac_ext
8863 cat >>conftest.
$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 #if defined(CRAY) && ! defined(CRAY2)
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 $EGREP "webecray" >/dev
/null
2>&1; then
8881 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8882 echo "${ECHO_T}$ac_cv_os_cray" >&6
8883 if test $ac_cv_os_cray = yes; then
8884 for ac_func
in _getb67 GETB67 getb67
; do
8885 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8886 echo "$as_me:$LINENO: checking for $ac_func" >&5
8887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_var+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.
$ac_ext <<_ACEOF
8894 cat confdefs.h
>>conftest.
$ac_ext
8895 cat >>conftest.
$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899 #define $ac_func innocuous_$ac_func
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char $ac_func (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8907 # include <limits.h>
8909 # include <assert.h>
8914 /* Override any gcc2 internal prototype to avoid an error. */
8919 /* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8922 /* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8928 char (*f) () = $ac_func;
8937 return f != $ac_func;
8942 rm -f conftest.
$ac_objext conftest
$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8946 grep -v '^ *+' conftest.er1
>conftest.err
8948 cat conftest.err
>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try
='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try
='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 eval "$as_ac_var=yes"
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.
$ac_ext >&5
8969 eval "$as_ac_var=no"
8971 rm -f conftest.err conftest.
$ac_objext \
8972 conftest
$ac_exeext conftest.
$ac_ext
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978 cat >>confdefs.h
<<_ACEOF
8979 #define CRAY_STACKSEG_END $ac_func
8988 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8989 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8990 if test "${ac_cv_c_stack_direction+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 if test "$cross_compiling" = yes; then
8994 ac_cv_c_stack_direction
=0
8996 cat >conftest.
$ac_ext <<_ACEOF
8999 cat confdefs.h
>>conftest.
$ac_ext
9000 cat >>conftest.
$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9003 find_stack_direction ()
9005 static char *addr = 0;
9010 return find_stack_direction ();
9013 return (&dummy > addr) ? 1 : -1;
9019 exit (find_stack_direction () < 0);
9022 rm -f conftest
$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_cv_c_stack_direction
=1
9035 echo "$as_me: program exited with status $ac_status" >&5
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.
$ac_ext >&5
9040 ac_cv_c_stack_direction
=-1
9042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9046 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9048 cat >>confdefs.h
<<_ACEOF
9049 #define STACK_DIRECTION $ac_cv_c_stack_direction
9061 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9062 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9063 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9064 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 cat >conftest.
$ac_ext <<_ACEOF
9071 cat confdefs.h
>>conftest.
$ac_ext
9072 cat >>conftest.
$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 #include <sys/types.h>
9086 rm -f conftest.
$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>conftest.er1
9090 grep -v '^ *+' conftest.er1
>conftest.err
9092 cat conftest.err
>&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try
='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try
='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 eval "$as_ac_Header=yes"
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.
$ac_ext >&5
9113 eval "$as_ac_Header=no"
9115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120 cat >>confdefs.h
<<_ACEOF
9121 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9124 ac_header_dirent
=$ac_hdr; break
9128 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9129 if test $ac_header_dirent = dirent.h
; then
9130 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9131 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9132 if test "${ac_cv_search_opendir+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 ac_func_search_save_LIBS
=$LIBS
9136 ac_cv_search_opendir
=no
9137 cat >conftest.
$ac_ext <<_ACEOF
9140 cat confdefs.h
>>conftest.
$ac_ext
9141 cat >>conftest.
$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9144 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9159 rm -f conftest.
$ac_objext conftest
$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>conftest.er1
9163 grep -v '^ *+' conftest.er1
>conftest.err
9165 cat conftest.err
>&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try
='test -z "$ac_c_werror_flag"
9169 || test ! -s conftest.err'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try
='test -s conftest$ac_exeext'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 ac_cv_search_opendir
="none required"
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.
$ac_ext >&5
9187 rm -f conftest.err conftest.
$ac_objext \
9188 conftest
$ac_exeext conftest.
$ac_ext
9189 if test "$ac_cv_search_opendir" = no
; then
9190 for ac_lib
in dir
; do
9191 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9199 /* Override any gcc2 internal prototype to avoid an error. */
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9214 rm -f conftest.
$ac_objext conftest
$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>conftest.er1
9218 grep -v '^ *+' conftest.er1
>conftest.err
9220 cat conftest.err
>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try
='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try
='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_search_opendir
="-l$ac_lib"
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.
$ac_ext >&5
9243 rm -f conftest.err conftest.
$ac_objext \
9244 conftest
$ac_exeext conftest.
$ac_ext
9247 LIBS
=$ac_func_search_save_LIBS
9249 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9250 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9251 if test "$ac_cv_search_opendir" != no
; then
9252 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9257 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9258 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9259 if test "${ac_cv_search_opendir+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 ac_func_search_save_LIBS
=$LIBS
9263 ac_cv_search_opendir
=no
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9271 /* Override any gcc2 internal prototype to avoid an error. */
9275 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */
9286 rm -f conftest.
$ac_objext conftest
$ac_exeext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288 (eval $ac_link) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try
='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try
='test -s conftest$ac_exeext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_search_opendir
="none required"
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9314 rm -f conftest.err conftest.
$ac_objext \
9315 conftest
$ac_exeext conftest.
$ac_ext
9316 if test "$ac_cv_search_opendir" = no
; then
9318 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9319 cat >conftest.
$ac_ext <<_ACEOF
9322 cat confdefs.h
>>conftest.
$ac_ext
9323 cat >>conftest.
$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9326 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9341 rm -f conftest.
$ac_objext conftest
$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>conftest.er1
9345 grep -v '^ *+' conftest.er1
>conftest.err
9347 cat conftest.err
>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try
='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try
='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_cv_search_opendir
="-l$ac_lib"
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.
$ac_ext >&5
9370 rm -f conftest.err conftest.
$ac_objext \
9371 conftest
$ac_exeext conftest.
$ac_ext
9374 LIBS
=$ac_func_search_save_LIBS
9376 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9377 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9378 if test "$ac_cv_search_opendir" != no
; then
9379 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9385 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9387 if test "${ac_cv_header_stdc+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.
$ac_ext <<_ACEOF
9393 cat confdefs.h
>>conftest.
$ac_ext
9394 cat >>conftest.
$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9409 rm -f conftest.
$ac_objext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9411 (eval $ac_compile) 2>conftest.er1
9413 grep -v '^ *+' conftest.er1
>conftest.err
9415 cat conftest.err
>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try
='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try
='test -s conftest.$ac_objext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_header_stdc
=yes
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9436 ac_cv_header_stdc
=no
9438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9440 if test $ac_cv_header_stdc = yes; then
9441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9442 cat >conftest.
$ac_ext <<_ACEOF
9445 cat confdefs.h
>>conftest.
$ac_ext
9446 cat >>conftest.
$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9452 $EGREP "memchr" >/dev
/null
2>&1; then
9455 ac_cv_header_stdc
=no
9461 if test $ac_cv_header_stdc = yes; then
9462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9463 cat >conftest.
$ac_ext <<_ACEOF
9466 cat confdefs.h
>>conftest.
$ac_ext
9467 cat >>conftest.
$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9473 $EGREP "free" >/dev
/null
2>&1; then
9476 ac_cv_header_stdc
=no
9482 if test $ac_cv_header_stdc = yes; then
9483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9484 if test "$cross_compiling" = yes; then
9487 cat >conftest.
$ac_ext <<_ACEOF
9490 cat confdefs.h
>>conftest.
$ac_ext
9491 cat >>conftest.
$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9494 #if ((' ' & 0x0FF) == 0x020)
9495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9498 # define ISLOWER(c) \
9499 (('a' <= (c) && (c) <= 'i') \
9500 || ('j' <= (c) && (c) <= 'r') \
9501 || ('s' <= (c) && (c) <= 'z'))
9502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9510 for (i = 0; i < 256; i++)
9511 if (XOR (islower (i), ISLOWER (i))
9512 || toupper (i) != TOUPPER (i))
9517 rm -f conftest
$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9530 echo "$as_me: program exited with status $ac_status" >&5
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.
$ac_ext >&5
9535 ac_cv_header_stdc
=no
9537 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9541 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9542 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9543 if test $ac_cv_header_stdc = yes; then
9545 cat >>confdefs.h
<<\_ACEOF
9546 #define STDC_HEADERS 1
9585 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
9587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9597 # Is the header compilable?
9598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600 cat >conftest.
$ac_ext <<_ACEOF
9603 cat confdefs.h
>>conftest.
$ac_ext
9604 cat >>conftest.
$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 #include <$ac_header>
9609 rm -f conftest.
$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9613 grep -v '^ *+' conftest.er1
>conftest.err
9615 cat conftest.err
>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try
='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try
='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler
=yes
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9636 ac_header_compiler
=no
9638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6
9642 # Is the header present?
9643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9656 grep -v '^ *+' conftest.er1
>conftest.err
9658 cat conftest.err
>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } >/dev
/null
; then
9661 if test -s conftest.err
; then
9662 ac_cpp_err
=$ac_c_preproc_warn_flag
9663 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9670 if test -z "$ac_cpp_err"; then
9671 ac_header_preproc
=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9676 ac_header_preproc
=no
9678 rm -f conftest.err conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc
=yes
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9706 ## ------------------------------ ##
9707 ## Report this to admin@amule.org ##
9708 ## ------------------------------ ##
9711 sed "s/^/$as_me: WARNING: /" >&2
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 eval "$as_ac_Header=\$ac_header_preproc"
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h
<<_ACEOF
9727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9735 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9736 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 cat >conftest.
$ac_ext <<_ACEOF
9742 cat confdefs.h
>>conftest.
$ac_ext
9743 cat >>conftest.
$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 #include <sys/types.h>
9746 #include <sys/wait.h>
9748 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9751 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9759 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9764 rm -f conftest.
$ac_objext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9768 grep -v '^ *+' conftest.er1
>conftest.err
9770 cat conftest.err
>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try
='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try
='test -s conftest.$ac_objext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_header_sys_wait_h
=yes
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 ac_cv_header_sys_wait_h
=no
9793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9795 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9796 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9797 if test $ac_cv_header_sys_wait_h = yes; then
9799 cat >>confdefs.h
<<\_ACEOF
9800 #define HAVE_SYS_WAIT_H 1
9806 # Checks for typedefs, structures, and compiler characteristics.
9807 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9808 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9809 if test "${ac_cv_header_stdbool_h+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 cat >conftest.
$ac_ext <<_ACEOF
9815 cat confdefs.h
>>conftest.
$ac_ext
9816 cat >>conftest.
$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9819 #include <stdbool.h>
9821 # error bool is not defined
9824 # error false is not defined
9827 # error false is not 0
9830 # error true is not defined
9833 # error true is not 1
9835 #ifndef __bool_true_false_are_defined
9836 # error __bool_true_false_are_defined is not defined
9839 struct s { _Bool s: 1; _Bool t; } s;
9841 char a[true == 1 ? 1 : -1];
9842 char b[false == 0 ? 1 : -1];
9843 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9844 char d[(bool) -0.5 == true ? 1 : -1];
9846 char f[(_Bool) -0.0 == false ? 1 : -1];
9848 char h[sizeof (_Bool)];
9854 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9859 rm -f conftest.
$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1
>conftest.err
9865 cat conftest.err
>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try
='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try
='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_header_stdbool_h
=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.
$ac_ext >&5
9886 ac_cv_header_stdbool_h
=no
9888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9891 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9892 echo "$as_me:$LINENO: checking for _Bool" >&5
9893 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9894 if test "${ac_cv_type__Bool+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 cat >conftest.
$ac_ext <<_ACEOF
9900 cat confdefs.h
>>conftest.
$ac_ext
9901 cat >>conftest.
$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 $ac_includes_default
9915 rm -f conftest.
$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9919 grep -v '^ *+' conftest.er1
>conftest.err
9921 cat conftest.err
>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try
='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try
='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_type__Bool
=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.
$ac_ext >&5
9944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9947 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9948 if test $ac_cv_type__Bool = yes; then
9950 cat >>confdefs.h
<<_ACEOF
9951 #define HAVE__BOOL 1
9957 if test $ac_cv_header_stdbool_h = yes; then
9959 cat >>confdefs.h
<<\_ACEOF
9960 #define HAVE_STDBOOL_H 1
9965 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9966 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9967 if test "${ac_cv_c_const+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 cat >conftest.
$ac_ext <<_ACEOF
9973 cat confdefs.h
>>conftest.
$ac_ext
9974 cat >>conftest.
$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9980 /* FIXME: Include the comments suggested by Paul. */
9982 /* Ultrix mips cc rejects this. */
9983 typedef int charset[2];
9985 /* SunOS 4.1.1 cc rejects this. */
9986 char const *const *ccp;
9988 /* NEC SVR4.0.2 mips cc rejects this. */
9989 struct point {int x, y;};
9990 static struct point const zero = {0,0};
9991 /* AIX XL C 1.02.0.0 rejects this.
9992 It does not let you subtract one const X* pointer from another in
9993 an arm of an if-expression whose if-part is not a constant
9995 const char *g = "string";
9996 ccp = &g + (g ? g-g : 0);
9997 /* HPUX 7.0 cc rejects these. */
10000 ccp = (char const *const *) p;
10001 { /* SCO 3.2v4 cc rejects this. */
10003 char const *s = 0 ? (char *) 0 : (char const *) 0;
10007 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10008 int x[] = {25, 17};
10009 const int *foo = &x[0];
10012 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10013 typedef const int *iptr;
10017 { /* AIX XL C 1.02.0.0 rejects this saying
10018 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10019 struct s { int j; const int *ap[3]; };
10020 struct s *b; b->j = 5;
10022 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10023 const int foo = 10;
10031 rm -f conftest.
$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1
>conftest.err
10037 cat conftest.err
>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try
='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try
='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10063 echo "${ECHO_T}$ac_cv_c_const" >&6
10064 if test $ac_cv_c_const = no
; then
10066 cat >>confdefs.h
<<\_ACEOF
10072 echo "$as_me:$LINENO: checking for inline" >&5
10073 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10074 if test "${ac_cv_c_inline+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 for ac_kw
in inline __inline__ __inline
; do
10079 cat >conftest.
$ac_ext <<_ACEOF
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #ifndef __cplusplus
10087 static $ac_kw foo_t static_foo () {return 0; }
10088 $ac_kw foo_t foo () {return 0; }
10092 rm -f conftest.
$ac_objext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>conftest.er1
10096 grep -v '^ *+' conftest.er1
>conftest.err
10098 cat conftest.err
>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try
='test -z "$ac_c_werror_flag"
10102 || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try
='test -s conftest.$ac_objext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_c_inline
=$ac_kw; break
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.
$ac_ext >&5
10120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10124 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10125 echo "${ECHO_T}$ac_cv_c_inline" >&6
10128 case $ac_cv_c_inline in
10131 case $ac_cv_c_inline in
10133 *) ac_val
=$ac_cv_c_inline;;
10135 cat >>confdefs.h
<<_ACEOF
10136 #ifndef __cplusplus
10137 #define inline $ac_val
10143 echo "$as_me:$LINENO: checking for mode_t" >&5
10144 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10145 if test "${ac_cv_type_mode_t+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.
$ac_ext <<_ACEOF
10151 cat confdefs.h
>>conftest.
$ac_ext
10152 cat >>conftest.
$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 $ac_includes_default
10160 if (sizeof (mode_t))
10166 rm -f conftest.
$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>conftest.er1
10170 grep -v '^ *+' conftest.er1
>conftest.err
10172 cat conftest.err
>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try
='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try
='test -s conftest.$ac_objext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 ac_cv_type_mode_t
=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.
$ac_ext >&5
10193 ac_cv_type_mode_t
=no
10195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10197 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10198 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10199 if test $ac_cv_type_mode_t = yes; then
10203 cat >>confdefs.h
<<_ACEOF
10209 echo "$as_me:$LINENO: checking for off_t" >&5
10210 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10211 if test "${ac_cv_type_off_t+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.
$ac_ext <<_ACEOF
10217 cat confdefs.h
>>conftest.
$ac_ext
10218 cat >>conftest.
$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 $ac_includes_default
10226 if (sizeof (off_t))
10232 rm -f conftest.
$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>conftest.er1
10236 grep -v '^ *+' conftest.er1
>conftest.err
10238 cat conftest.err
>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try
='test -z "$ac_c_werror_flag"
10242 || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try
='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_type_off_t
=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.
$ac_ext >&5
10259 ac_cv_type_off_t
=no
10261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10263 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10264 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10265 if test $ac_cv_type_off_t = yes; then
10269 cat >>confdefs.h
<<_ACEOF
10275 echo "$as_me:$LINENO: checking for size_t" >&5
10276 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10277 if test "${ac_cv_type_size_t+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 cat >conftest.
$ac_ext <<_ACEOF
10283 cat confdefs.h
>>conftest.
$ac_ext
10284 cat >>conftest.
$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 $ac_includes_default
10292 if (sizeof (size_t))
10298 rm -f conftest.
$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1
>conftest.err
10304 cat conftest.err
>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try
='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try
='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_type_size_t
=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.
$ac_ext >&5
10325 ac_cv_type_size_t
=no
10327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10329 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10330 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10331 if test $ac_cv_type_size_t = yes; then
10335 cat >>confdefs.h
<<_ACEOF
10336 #define size_t unsigned
10341 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10342 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10343 if test "${ac_cv_header_time+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 cat >conftest.
$ac_ext <<_ACEOF
10349 cat confdefs.h
>>conftest.
$ac_ext
10350 cat >>conftest.
$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 #include <sys/types.h>
10353 #include <sys/time.h>
10359 if ((struct tm *) 0)
10365 rm -f conftest.
$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10369 grep -v '^ *+' conftest.er1
>conftest.err
10371 cat conftest.err
>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try
='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try
='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_header_time
=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.
$ac_ext >&5
10392 ac_cv_header_time
=no
10394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10397 echo "${ECHO_T}$ac_cv_header_time" >&6
10398 if test $ac_cv_header_time = yes; then
10400 cat >>confdefs.h
<<\_ACEOF
10401 #define TIME_WITH_SYS_TIME 1
10406 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10407 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10408 if test "${ac_cv_struct_tm+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 cat >conftest.
$ac_ext <<_ACEOF
10414 cat confdefs.h
>>conftest.
$ac_ext
10415 cat >>conftest.
$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 #include <sys/types.h>
10423 struct tm *tp; tp->tm_sec;
10428 rm -f conftest.
$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>conftest.er1
10432 grep -v '^ *+' conftest.er1
>conftest.err
10434 cat conftest.err
>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try
='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try
='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_struct_tm
=time.h
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.
$ac_ext >&5
10455 ac_cv_struct_tm
=sys
/time.h
10457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10459 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10460 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10461 if test $ac_cv_struct_tm = sys
/time.h
; then
10463 cat >>confdefs.h
<<\_ACEOF
10464 #define TM_IN_SYS_TIME 1
10469 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10470 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10471 if test "${ac_cv_type_uid_t+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 cat >conftest.
$ac_ext <<_ACEOF
10477 cat confdefs.h
>>conftest.
$ac_ext
10478 cat >>conftest.
$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 #include <sys/types.h>
10483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10484 $EGREP "uid_t" >/dev
/null
2>&1; then
10485 ac_cv_type_uid_t
=yes
10487 ac_cv_type_uid_t
=no
10492 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10493 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10494 if test $ac_cv_type_uid_t = no
; then
10496 cat >>confdefs.h
<<\_ACEOF
10501 cat >>confdefs.h
<<\_ACEOF
10507 echo "$as_me:$LINENO: checking for working volatile" >&5
10508 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10509 if test "${ac_cv_c_volatile+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 cat >conftest.
$ac_ext <<_ACEOF
10515 cat confdefs.h
>>conftest.
$ac_ext
10516 cat >>conftest.
$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10529 rm -f conftest.
$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>conftest.er1
10533 grep -v '^ *+' conftest.er1
>conftest.err
10535 cat conftest.err
>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try
='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try
='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_c_volatile
=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.
$ac_ext >&5
10556 ac_cv_c_volatile
=no
10558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10560 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10561 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10562 if test $ac_cv_c_volatile = no
; then
10564 cat >>confdefs.h
<<\_ACEOF
10570 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10571 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10572 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 cat >conftest.
$ac_ext <<_ACEOF
10578 cat confdefs.h
>>conftest.
$ac_ext
10579 cat >>conftest.
$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 $ac_includes_default
10585 if ((ptrdiff_t *) 0)
10587 if (sizeof (ptrdiff_t))
10593 rm -f conftest.
$ac_objext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>conftest.er1
10597 grep -v '^ *+' conftest.er1
>conftest.err
10599 cat conftest.err
>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try
='test -z "$ac_c_werror_flag"
10603 || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try
='test -s conftest.$ac_objext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_type_ptrdiff_t
=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.
$ac_ext >&5
10620 ac_cv_type_ptrdiff_t
=no
10622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10624 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10625 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10626 if test $ac_cv_type_ptrdiff_t = yes; then
10628 cat >>confdefs.h
<<_ACEOF
10629 #define HAVE_PTRDIFF_T 1
10636 # Checks for library functions.
10637 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10638 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10639 if test "${ac_cv_func_closedir_void+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 if test "$cross_compiling" = yes; then
10643 ac_cv_func_closedir_void
=yes
10645 cat >conftest.
$ac_ext <<_ACEOF
10648 cat confdefs.h
>>conftest.
$ac_ext
10649 cat >>conftest.
$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 $ac_includes_default
10652 #include <$ac_header_dirent>
10653 #ifndef __cplusplus
10660 exit (closedir (opendir (".")) != 0);
10665 rm -f conftest
$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_func_closedir_void
=no
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.
$ac_ext >&5
10682 ( exit $ac_status )
10683 ac_cv_func_closedir_void
=yes
10685 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10688 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10689 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10690 if test $ac_cv_func_closedir_void = yes; then
10692 cat >>confdefs.h
<<\_ACEOF
10693 #define CLOSEDIR_VOID 1
10698 if test $ac_cv_c_compiler_gnu = yes; then
10699 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10700 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10701 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 ac_pattern
="Autoconf.*'x'"
10705 cat >conftest.
$ac_ext <<_ACEOF
10708 cat confdefs.h
>>conftest.
$ac_ext
10709 cat >>conftest.
$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10715 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10716 ac_cv_prog_gcc_traditional
=yes
10718 ac_cv_prog_gcc_traditional
=no
10723 if test $ac_cv_prog_gcc_traditional = no
; then
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <termio.h>
10733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10734 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10735 ac_cv_prog_gcc_traditional
=yes
10741 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10742 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10743 if test $ac_cv_prog_gcc_traditional = yes; then
10744 CC
="$CC -traditional"
10748 echo "$as_me:$LINENO: checking for pid_t" >&5
10749 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10750 if test "${ac_cv_type_pid_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.
$ac_ext <<_ACEOF
10756 cat confdefs.h
>>conftest.
$ac_ext
10757 cat >>conftest.
$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10765 if (sizeof (pid_t))
10771 rm -f conftest.
$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1
>conftest.err
10777 cat conftest.err
>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try
='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try
='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_type_pid_t
=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.
$ac_ext >&5
10798 ac_cv_type_pid_t
=no
10800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10804 if test $ac_cv_type_pid_t = yes; then
10808 cat >>confdefs.h
<<_ACEOF
10816 for ac_header
in unistd.h vfork.h
10818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10820 echo "$as_me:$LINENO: checking for $ac_header" >&5
10821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10828 # Is the header compilable?
10829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10831 cat >conftest.
$ac_ext <<_ACEOF
10834 cat confdefs.h
>>conftest.
$ac_ext
10835 cat >>conftest.
$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 #include <$ac_header>
10840 rm -f conftest.
$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>conftest.er1
10844 grep -v '^ *+' conftest.er1
>conftest.err
10846 cat conftest.err
>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try
='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try
='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_header_compiler
=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.
$ac_ext >&5
10867 ac_header_compiler
=no
10869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871 echo "${ECHO_T}$ac_header_compiler" >&6
10873 # Is the header present?
10874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10876 cat >conftest.
$ac_ext <<_ACEOF
10879 cat confdefs.h
>>conftest.
$ac_ext
10880 cat >>conftest.
$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <$ac_header>
10884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10887 grep -v '^ *+' conftest.er1
>conftest.err
10889 cat conftest.err
>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } >/dev
/null
; then
10892 if test -s conftest.err
; then
10893 ac_cpp_err
=$ac_c_preproc_warn_flag
10894 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10901 if test -z "$ac_cpp_err"; then
10902 ac_header_preproc
=yes
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.
$ac_ext >&5
10907 ac_header_preproc
=no
10909 rm -f conftest.err conftest.
$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911 echo "${ECHO_T}$ac_header_preproc" >&6
10913 # So? What about this header?
10914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10920 ac_header_preproc
=yes
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10937 ## ------------------------------ ##
10938 ## Report this to admin@amule.org ##
10939 ## ------------------------------ ##
10942 sed "s/^/$as_me: WARNING: /" >&2
10945 echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 eval "$as_ac_Header=\$ac_header_preproc"
10952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10957 cat >>confdefs.h
<<_ACEOF
10958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 for ac_func
in fork vfork
10969 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10970 echo "$as_me:$LINENO: checking for $ac_func" >&5
10971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10972 if eval "test \"\${$as_ac_var+set}\" = set"; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.
$ac_ext <<_ACEOF
10978 cat confdefs.h
>>conftest.
$ac_ext
10979 cat >>conftest.
$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10983 #define $ac_func innocuous_$ac_func
10985 /* System header to define __stub macros and hopefully few prototypes,
10986 which can conflict with char $ac_func (); below.
10987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10988 <limits.h> exists even on freestanding compilers. */
10991 # include <limits.h>
10993 # include <assert.h>
10998 /* Override any gcc2 internal prototype to avoid an error. */
11003 /* We use char because int might match the return type of a gcc2
11004 builtin and then its argument prototype would still apply. */
11006 /* The GNU C library defines this for functions which it implements
11007 to always fail with ENOSYS. Some functions are actually named
11008 something starting with __ and the normal name is an alias. */
11009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11012 char (*f) () = $ac_func;
11021 return f != $ac_func;
11026 rm -f conftest.
$ac_objext conftest
$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>conftest.er1
11030 grep -v '^ *+' conftest.er1
>conftest.err
11032 cat conftest.err
>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try
='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try
='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 eval "$as_ac_var=yes"
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.
$ac_ext >&5
11053 eval "$as_ac_var=no"
11055 rm -f conftest.err conftest.
$ac_objext \
11056 conftest
$ac_exeext conftest.
$ac_ext
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061 cat >>confdefs.h
<<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11068 if test "x$ac_cv_func_fork" = xyes
; then
11069 echo "$as_me:$LINENO: checking for working fork" >&5
11070 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11071 if test "${ac_cv_func_fork_works+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 if test "$cross_compiling" = yes; then
11075 ac_cv_func_fork_works
=cross
11077 cat >conftest.
$ac_ext <<_ACEOF
11078 /* By Ruediger Kuhlmann. */
11079 #include <sys/types.h>
11081 # include <unistd.h>
11083 /* Some systems only have a dummy stub for fork() */
11091 rm -f conftest
$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093 (eval $ac_link) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_func_fork_works
=yes
11104 echo "$as_me: program exited with status $ac_status" >&5
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.
$ac_ext >&5
11108 ( exit $ac_status )
11109 ac_cv_func_fork_works
=no
11111 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11115 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11118 ac_cv_func_fork_works
=$ac_cv_func_fork
11120 if test "x$ac_cv_func_fork_works" = xcross
; then
11122 *-*-amigaos* |
*-*-msdosdjgpp*)
11123 # Override, as these systems have only a dummy fork() stub
11124 ac_cv_func_fork_works
=no
11127 ac_cv_func_fork_works
=yes
11130 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11131 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11133 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11134 if test "x$ac_cv_func_vfork" = xyes
; then
11135 echo "$as_me:$LINENO: checking for working vfork" >&5
11136 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11137 if test "${ac_cv_func_vfork_works+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 if test "$cross_compiling" = yes; then
11141 ac_cv_func_vfork_works
=cross
11143 cat >conftest.
$ac_ext <<_ACEOF
11146 cat confdefs.h
>>conftest.
$ac_ext
11147 cat >>conftest.
$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Thanks to Paul Eggert for this test. */
11151 #include <stdlib.h>
11152 #include <sys/types.h>
11153 #include <sys/stat.h>
11154 #include <sys/wait.h>
11156 # include <unistd.h>
11159 # include <vfork.h>
11161 /* On some sparc systems, changes by the child to local and incoming
11162 argument registers are propagated back to the parent. The compiler
11163 is told about this with #include <vfork.h>, but some compilers
11164 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11165 static variable whose address is put into a register that is
11166 clobbered by the vfork. */
11169 sparc_address_test (int arg)
11171 sparc_address_test (arg) int arg;
11174 static pid_t child;
11192 pid_t parent = getpid ();
11195 sparc_address_test (0);
11200 /* Here is another test for sparc vfork register problems. This
11201 test uses lots of local variables, at least as many local
11202 variables as main has allocated so far including compiler
11203 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11204 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11205 reuse the register of parent for one of the local variables,
11206 since it will think that parent can't possibly be used any more
11207 in this routine. Assigning to the local variable will thus
11208 munge parent in the parent process. */
11210 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11211 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11212 /* Convince the compiler that p..p7 are live; otherwise, it might
11213 use the same hardware register for all 8 local variables. */
11214 if (p != p1 || p != p2 || p != p3 || p != p4
11215 || p != p5 || p != p6 || p != p7)
11218 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11219 from child file descriptors. If the child closes a descriptor
11220 before it execs or exits, this munges the parent's descriptor
11221 as well. Test for this by closing stdout in the child. */
11222 _exit(close(fileno(stdout)) != 0);
11227 while (wait(&status) != child)
11230 /* Was there some problem with vforking? */
11233 /* Did the child fail? (This shouldn't happen.) */
11236 /* Did the vfork/compiler bug occur? */
11237 || parent != getpid()
11239 /* Did the file descriptor bug occur? */
11240 || fstat(fileno(stdout), &st) != 0
11245 rm -f conftest
$ac_exeext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247 (eval $ac_link) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_func_vfork_works
=yes
11258 echo "$as_me: program exited with status $ac_status" >&5
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.
$ac_ext >&5
11262 ( exit $ac_status )
11263 ac_cv_func_vfork_works
=no
11265 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11269 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11272 if test "x$ac_cv_func_fork_works" = xcross
; then
11273 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11274 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11275 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11278 if test "x$ac_cv_func_vfork_works" = xyes
; then
11280 cat >>confdefs.h
<<\_ACEOF
11281 #define HAVE_WORKING_VFORK 1
11286 cat >>confdefs.h
<<\_ACEOF
11291 if test "x$ac_cv_func_fork_works" = xyes
; then
11293 cat >>confdefs.h
<<\_ACEOF
11294 #define HAVE_WORKING_FORK 1
11299 if test x
$SYS != xwin32
; then
11301 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11302 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11303 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11304 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 ac_check_lib_save_LIBS
=$LIBS
11309 cat >conftest.
$ac_ext <<_ACEOF
11312 cat confdefs.h
>>conftest.
$ac_ext
11313 cat >>conftest.
$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11316 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11331 rm -f conftest.
$ac_objext conftest
$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>conftest.er1
11335 grep -v '^ *+' conftest.er1
>conftest.err
11337 cat conftest.err
>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try
='test -z "$ac_c_werror_flag"
11341 || test ! -s conftest.err'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try
='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_cv_lib_sun_getmntent
=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.
$ac_ext >&5
11358 ac_cv_lib_sun_getmntent
=no
11360 rm -f conftest.err conftest.
$ac_objext \
11361 conftest
$ac_exeext conftest.
$ac_ext
11362 LIBS
=$ac_check_lib_save_LIBS
11364 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11365 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11366 if test $ac_cv_lib_sun_getmntent = yes; then
11369 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11370 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11371 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 ac_check_lib_save_LIBS
=$LIBS
11376 cat >conftest.
$ac_ext <<_ACEOF
11379 cat confdefs.h
>>conftest.
$ac_ext
11380 cat >>conftest.
$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11383 /* Override any gcc2 internal prototype to avoid an error. */
11387 /* We use char because int might match the return type of a gcc2
11388 builtin and then its argument prototype would still apply. */
11398 rm -f conftest.
$ac_objext conftest
$ac_exeext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11400 (eval $ac_link) 2>conftest.er1
11402 grep -v '^ *+' conftest.er1
>conftest.err
11404 cat conftest.err
>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try
='test -z "$ac_c_werror_flag"
11408 || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try
='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_seq_getmntent
=yes
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.
$ac_ext >&5
11425 ac_cv_lib_seq_getmntent
=no
11427 rm -f conftest.err conftest.
$ac_objext \
11428 conftest
$ac_exeext conftest.
$ac_ext
11429 LIBS
=$ac_check_lib_save_LIBS
11431 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11432 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11433 if test $ac_cv_lib_seq_getmntent = yes; then
11436 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11437 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11438 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 ac_check_lib_save_LIBS
=$LIBS
11443 cat >conftest.
$ac_ext <<_ACEOF
11446 cat confdefs.h
>>conftest.
$ac_ext
11447 cat >>conftest.
$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11450 /* Override any gcc2 internal prototype to avoid an error. */
11454 /* We use char because int might match the return type of a gcc2
11455 builtin and then its argument prototype would still apply. */
11465 rm -f conftest.
$ac_objext conftest
$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467 (eval $ac_link) 2>conftest.er1
11469 grep -v '^ *+' conftest.er1
>conftest.err
11471 cat conftest.err
>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try
='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try
='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_cv_lib_gen_getmntent
=yes
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.
$ac_ext >&5
11492 ac_cv_lib_gen_getmntent
=no
11494 rm -f conftest.err conftest.
$ac_objext \
11495 conftest
$ac_exeext conftest.
$ac_ext
11496 LIBS
=$ac_check_lib_save_LIBS
11498 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11499 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11500 if test $ac_cv_lib_gen_getmntent = yes; then
11509 for ac_func
in getmntent
11511 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 echo "$as_me:$LINENO: checking for $ac_func" >&5
11513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11514 if eval "test \"\${$as_ac_var+set}\" = set"; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 cat >conftest.
$ac_ext <<_ACEOF
11520 cat confdefs.h
>>conftest.
$ac_ext
11521 cat >>conftest.
$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11525 #define $ac_func innocuous_$ac_func
11527 /* System header to define __stub macros and hopefully few prototypes,
11528 which can conflict with char $ac_func (); below.
11529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 <limits.h> exists even on freestanding compilers. */
11533 # include <limits.h>
11535 # include <assert.h>
11540 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11548 /* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11554 char (*f) () = $ac_func;
11563 return f != $ac_func;
11568 rm -f conftest.
$ac_objext conftest
$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>conftest.er1
11572 grep -v '^ *+' conftest.er1
>conftest.err
11574 cat conftest.err
>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try
='test -z "$ac_c_werror_flag"
11578 || test ! -s conftest.err'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try
='test -s conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 eval "$as_ac_var=yes"
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.
$ac_ext >&5
11595 eval "$as_ac_var=no"
11597 rm -f conftest.err conftest.
$ac_objext \
11598 conftest
$ac_exeext conftest.
$ac_ext
11600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11602 if test `eval echo '${'$as_ac_var'}'` = yes; then
11603 cat >>confdefs.h
<<_ACEOF
11604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11611 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11612 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11613 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 rm -f conftest.sym conftest.
file
11617 echo >conftest.
file
11618 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11619 if test "$cross_compiling" = yes; then
11620 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11622 cat >conftest.
$ac_ext <<_ACEOF
11625 cat confdefs.h
>>conftest.
$ac_ext
11626 cat >>conftest.
$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11633 /* Linux will dereference the symlink and fail.
11634 That is better in the sense that it means we will not
11635 have to compile and use the lstat wrapper. */
11636 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11641 rm -f conftest
$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11654 echo "$as_me: program exited with status $ac_status" >&5
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.
$ac_ext >&5
11658 ( exit $ac_status )
11659 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11661 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11664 # If the `ln -s' command failed, then we probably don't even
11665 # have an lstat function.
11666 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11668 rm -f conftest.sym conftest.
file
11671 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11672 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11674 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11676 cat >>confdefs.h
<<_ACEOF
11677 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11681 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11683 "lstat.$ac_objext" | \
11684 *" lstat.$ac_objext" | \
11685 "lstat.$ac_objext "* | \
11686 *" lstat.$ac_objext "* ) ;;
11687 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11692 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11693 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11694 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 if test "$cross_compiling" = yes; then
11698 ac_cv_func_lstat_empty_string_bug
=yes
11700 cat >conftest.
$ac_ext <<_ACEOF
11703 cat confdefs.h
>>conftest.
$ac_ext
11704 cat >>conftest.
$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 $ac_includes_default
11711 exit (lstat ("", &sbuf) ? 1 : 0);
11716 rm -f conftest
$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 ac_cv_func_lstat_empty_string_bug
=yes
11729 echo "$as_me: program exited with status $ac_status" >&5
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.
$ac_ext >&5
11733 ( exit $ac_status )
11734 ac_cv_func_lstat_empty_string_bug
=no
11736 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11739 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11740 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11741 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11743 "lstat.$ac_objext" | \
11744 *" lstat.$ac_objext" | \
11745 "lstat.$ac_objext "* | \
11746 *" lstat.$ac_objext "* ) ;;
11747 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11751 cat >>confdefs.h
<<_ACEOF
11752 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11757 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11758 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11759 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 rm -f conftest.sym conftest.
file
11763 echo >conftest.
file
11764 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11765 if test "$cross_compiling" = yes; then
11766 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11768 cat >conftest.
$ac_ext <<_ACEOF
11771 cat confdefs.h
>>conftest.
$ac_ext
11772 cat >>conftest.
$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11779 /* Linux will dereference the symlink and fail.
11780 That is better in the sense that it means we will not
11781 have to compile and use the lstat wrapper. */
11782 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11787 rm -f conftest
$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11800 echo "$as_me: program exited with status $ac_status" >&5
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.
$ac_ext >&5
11804 ( exit $ac_status )
11805 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11807 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11810 # If the `ln -s' command failed, then we probably don't even
11811 # have an lstat function.
11812 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11814 rm -f conftest.sym conftest.
file
11817 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11818 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11820 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11822 cat >>confdefs.h
<<_ACEOF
11823 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11827 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11829 "lstat.$ac_objext" | \
11830 *" lstat.$ac_objext" | \
11831 "lstat.$ac_objext "* | \
11832 *" lstat.$ac_objext "* ) ;;
11833 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11841 echo "$as_me:$LINENO: checking for working memcmp" >&5
11842 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11843 if test "${ac_cv_func_memcmp_working+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 if test "$cross_compiling" = yes; then
11847 ac_cv_func_memcmp_working
=no
11849 cat >conftest.
$ac_ext <<_ACEOF
11852 cat confdefs.h
>>conftest.
$ac_ext
11853 cat >>conftest.
$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 $ac_includes_default
11860 /* Some versions of memcmp are not 8-bit clean. */
11861 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11862 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11865 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11866 or more and with at least one buffer not starting on a 4-byte boundary.
11867 William Lewis provided this test program. */
11872 for (i = 0; i < 4; i++)
11876 strcpy (a, "--------01111111");
11877 strcpy (b, "--------10000000");
11878 if (memcmp (a, b, 16) >= 0)
11888 rm -f conftest
$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_memcmp_working
=yes
11901 echo "$as_me: program exited with status $ac_status" >&5
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.
$ac_ext >&5
11905 ( exit $ac_status )
11906 ac_cv_func_memcmp_working
=no
11908 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11911 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11912 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11913 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
11914 "memcmp.$ac_objext" | \
11915 *" memcmp.$ac_objext" | \
11916 "memcmp.$ac_objext "* | \
11917 *" memcmp.$ac_objext "* ) ;;
11918 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
11924 for ac_header
in sys
/select.h sys
/socket.h
11926 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11928 echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11936 # Is the header compilable?
11937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11939 cat >conftest.
$ac_ext <<_ACEOF
11942 cat confdefs.h
>>conftest.
$ac_ext
11943 cat >>conftest.
$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11945 $ac_includes_default
11946 #include <$ac_header>
11948 rm -f conftest.
$ac_objext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11950 (eval $ac_compile) 2>conftest.er1
11952 grep -v '^ *+' conftest.er1
>conftest.err
11954 cat conftest.err
>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try
='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try
='test -s conftest.$ac_objext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_header_compiler
=yes
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.
$ac_ext >&5
11975 ac_header_compiler
=no
11977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11979 echo "${ECHO_T}$ac_header_compiler" >&6
11981 # Is the header present?
11982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11984 cat >conftest.
$ac_ext <<_ACEOF
11987 cat confdefs.h
>>conftest.
$ac_ext
11988 cat >>conftest.
$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #include <$ac_header>
11992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11995 grep -v '^ *+' conftest.er1
>conftest.err
11997 cat conftest.err
>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } >/dev
/null
; then
12000 if test -s conftest.err
; then
12001 ac_cpp_err
=$ac_c_preproc_warn_flag
12002 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12009 if test -z "$ac_cpp_err"; then
12010 ac_header_preproc
=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.
$ac_ext >&5
12015 ac_header_preproc
=no
12017 rm -f conftest.err conftest.
$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12019 echo "${ECHO_T}$ac_header_preproc" >&6
12021 # So? What about this header?
12022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12028 ac_header_preproc
=yes
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12045 ## ------------------------------ ##
12046 ## Report this to admin@amule.org ##
12047 ## ------------------------------ ##
12050 sed "s/^/$as_me: WARNING: /" >&2
12053 echo "$as_me:$LINENO: checking for $ac_header" >&5
12054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 eval "$as_ac_Header=\$ac_header_preproc"
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12065 cat >>confdefs.h
<<_ACEOF
12066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12073 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12074 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12075 if test "${ac_cv_func_select_args+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12079 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12080 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12081 cat >conftest.
$ac_ext <<_ACEOF
12084 cat confdefs.h
>>conftest.
$ac_ext
12085 cat >>conftest.
$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 $ac_includes_default
12088 #if HAVE_SYS_SELECT_H
12089 # include <sys/select.h>
12091 #if HAVE_SYS_SOCKET_H
12092 # include <sys/socket.h>
12098 extern int select ($ac_arg1,
12099 $ac_arg234, $ac_arg234, $ac_arg234,
12105 rm -f conftest.
$ac_objext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>conftest.er1
12109 grep -v '^ *+' conftest.er1
>conftest.err
12111 cat conftest.err
>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try
='test -z "$ac_c_werror_flag"
12115 || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try
='test -s conftest.$ac_objext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.
$ac_ext >&5
12133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12137 # Provide a safe default value.
12138 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12141 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12142 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12143 ac_save_IFS
=$IFS; IFS
=','
12144 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12148 cat >>confdefs.h
<<_ACEOF
12149 #define SELECT_TYPE_ARG1 $1
12153 cat >>confdefs.h
<<_ACEOF
12154 #define SELECT_TYPE_ARG234 ($2)
12158 cat >>confdefs.h
<<_ACEOF
12159 #define SELECT_TYPE_ARG5 ($3)
12164 echo "$as_me:$LINENO: checking for function prototypes" >&5
12165 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12166 if test "$ac_cv_prog_cc_stdc" != no
; then
12167 echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12170 cat >>confdefs.h
<<\_ACEOF
12171 #define PROTOTYPES 1
12175 cat >>confdefs.h
<<\_ACEOF
12176 #define __PROTOTYPES 1
12180 echo "$as_me:$LINENO: result: no" >&5
12181 echo "${ECHO_T}no" >&6
12184 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12185 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12186 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_cv_func_setvbuf_reversed
=no
12190 cat >conftest.
$ac_ext <<_ACEOF
12193 cat confdefs.h
>>conftest.
$ac_ext
12194 cat >>conftest.
$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12198 int (setvbuf) (FILE *, int, char *, size_t);
12203 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12208 rm -f conftest.
$ac_objext conftest
$ac_exeext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210 (eval $ac_link) 2>conftest.er1
12212 grep -v '^ *+' conftest.er1
>conftest.err
12214 cat conftest.err
>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try
='test -z "$ac_c_werror_flag"
12218 || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try
='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 cat >conftest.
$ac_ext <<_ACEOF
12233 cat confdefs.h
>>conftest.
$ac_ext
12234 cat >>conftest.
$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12238 int (setvbuf) (FILE *, int, char *, size_t);
12243 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12248 rm -f conftest.
$ac_objext conftest
$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try
='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try
='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 # It compiles and links either way, so it must not be declared
12271 # with a prototype and most likely this is a K&R C compiler.
12273 if test "$cross_compiling" = yes; then
12274 : # Assume setvbuf is not reversed when cross-compiling.
12276 cat >conftest.
$ac_ext <<_ACEOF
12279 cat confdefs.h
>>conftest.
$ac_ext
12280 cat >>conftest.
$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12286 /* This call has the arguments reversed.
12287 A reversed system may check and see that the address of buf
12288 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12290 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12293 exit (0); /* Non-reversed systems SEGV here. */
12298 rm -f conftest
$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_func_setvbuf_reversed
=yes
12311 echo "$as_me: program exited with status $ac_status" >&5
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.
$ac_ext >&5
12315 ( exit $ac_status )
12318 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12320 ac_cv_func_setvbuf_reversed
=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.
$ac_ext >&5
12326 rm -f conftest.err conftest.
$ac_objext \
12327 conftest
$ac_exeext conftest.
$ac_ext
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.
$ac_ext >&5
12333 rm -f conftest.err conftest.
$ac_objext \
12334 conftest
$ac_exeext conftest.
$ac_ext
12336 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12337 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12338 if test $ac_cv_func_setvbuf_reversed = yes; then
12340 cat >>confdefs.h
<<\_ACEOF
12341 #define SETVBUF_REVERSED 1
12346 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12347 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12348 if test "${ac_cv_type_signal+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 cat >conftest.
$ac_ext <<_ACEOF
12354 cat confdefs.h
>>conftest.
$ac_ext
12355 cat >>conftest.
$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 #include <sys/types.h>
12358 #include <signal.h>
12363 extern "C" void (*signal (int, void (*)(int)))(int);
12365 void (*signal ()) ();
12376 rm -f conftest.
$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12380 grep -v '^ *+' conftest.er1
>conftest.err
12382 cat conftest.err
>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try
='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try
='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_type_signal
=void
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.
$ac_ext >&5
12403 ac_cv_type_signal
=int
12405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12408 echo "${ECHO_T}$ac_cv_type_signal" >&6
12410 cat >>confdefs.h
<<_ACEOF
12411 #define RETSIGTYPE $ac_cv_type_signal
12415 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
12416 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
12417 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 if test "$cross_compiling" = yes; then
12421 ac_cv_func_stat_empty_string_bug
=yes
12423 cat >conftest.
$ac_ext <<_ACEOF
12426 cat confdefs.h
>>conftest.
$ac_ext
12427 cat >>conftest.
$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 $ac_includes_default
12434 exit (stat ("", &sbuf) ? 1 : 0);
12439 rm -f conftest
$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_func_stat_empty_string_bug
=yes
12452 echo "$as_me: program exited with status $ac_status" >&5
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.
$ac_ext >&5
12456 ( exit $ac_status )
12457 ac_cv_func_stat_empty_string_bug
=no
12459 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12462 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
12463 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
12464 if test $ac_cv_func_stat_empty_string_bug = yes; then
12466 "stat.$ac_objext" | \
12467 *" stat.$ac_objext" | \
12468 "stat.$ac_objext "* | \
12469 *" stat.$ac_objext "* ) ;;
12470 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
12474 cat >>confdefs.h
<<_ACEOF
12475 #define HAVE_STAT_EMPTY_STRING_BUG 1
12481 for ac_func
in strftime
12483 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484 echo "$as_me:$LINENO: checking for $ac_func" >&5
12485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12486 if eval "test \"\${$as_ac_var+set}\" = set"; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 cat >conftest.
$ac_ext <<_ACEOF
12492 cat confdefs.h
>>conftest.
$ac_ext
12493 cat >>conftest.
$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497 #define $ac_func innocuous_$ac_func
12499 /* System header to define __stub macros and hopefully few prototypes,
12500 which can conflict with char $ac_func (); below.
12501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502 <limits.h> exists even on freestanding compilers. */
12505 # include <limits.h>
12507 # include <assert.h>
12512 /* Override any gcc2 internal prototype to avoid an error. */
12517 /* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12520 /* The GNU C library defines this for functions which it implements
12521 to always fail with ENOSYS. Some functions are actually named
12522 something starting with __ and the normal name is an alias. */
12523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12526 char (*f) () = $ac_func;
12535 return f != $ac_func;
12540 rm -f conftest.
$ac_objext conftest
$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1
>conftest.err
12546 cat conftest.err
>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try
='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try
='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 eval "$as_ac_var=yes"
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 eval "$as_ac_var=no"
12569 rm -f conftest.err conftest.
$ac_objext \
12570 conftest
$ac_exeext conftest.
$ac_ext
12572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12574 if test `eval echo '${'$as_ac_var'}'` = yes; then
12575 cat >>confdefs.h
<<_ACEOF
12576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12580 # strftime is in -lintl on SCO UNIX.
12581 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12582 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12583 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS
=$LIBS
12587 LIBS
="-lintl $LIBS"
12588 cat >conftest.
$ac_ext <<_ACEOF
12591 cat confdefs.h
>>conftest.
$ac_ext
12592 cat >>conftest.
$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any gcc2 internal prototype to avoid an error. */
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12610 rm -f conftest.
$ac_objext conftest
$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12614 grep -v '^ *+' conftest.er1
>conftest.err
12616 cat conftest.err
>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try
='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try
='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_lib_intl_strftime
=yes
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.
$ac_ext >&5
12637 ac_cv_lib_intl_strftime
=no
12639 rm -f conftest.err conftest.
$ac_objext \
12640 conftest
$ac_exeext conftest.
$ac_ext
12641 LIBS
=$ac_check_lib_save_LIBS
12643 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12644 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12645 if test $ac_cv_lib_intl_strftime = yes; then
12646 cat >>confdefs.h
<<\_ACEOF
12647 #define HAVE_STRFTIME 1
12650 LIBS
="-lintl $LIBS"
12656 echo "$as_me:$LINENO: checking for working strtod" >&5
12657 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
12658 if test "${ac_cv_func_strtod+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 if test "$cross_compiling" = yes; then
12662 ac_cv_func_strtod
=no
12664 cat >conftest.
$ac_ext <<_ACEOF
12667 cat confdefs.h
>>conftest.
$ac_ext
12668 cat >>conftest.
$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12676 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12677 char *string = " +69";
12680 value = strtod (string, &term);
12681 if (value != 69 || term != (string + 4))
12686 /* Under Solaris 2.4, strtod returns the wrong value for the
12687 terminating character under some conditions. */
12688 char *string = "NaN";
12690 strtod (string, &term);
12691 if (term != string && *(term - 1) == 0)
12698 rm -f conftest
$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_func_strtod
=yes
12711 echo "$as_me: program exited with status $ac_status" >&5
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.
$ac_ext >&5
12715 ( exit $ac_status )
12716 ac_cv_func_strtod
=no
12718 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
12722 echo "${ECHO_T}$ac_cv_func_strtod" >&6
12723 if test $ac_cv_func_strtod = no
; then
12725 "strtod.$ac_objext" | \
12726 *" strtod.$ac_objext" | \
12727 "strtod.$ac_objext "* | \
12728 *" strtod.$ac_objext "* ) ;;
12729 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
12732 echo "$as_me:$LINENO: checking for pow" >&5
12733 echo $ECHO_N "checking for pow... $ECHO_C" >&6
12734 if test "${ac_cv_func_pow+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 cat >conftest.
$ac_ext <<_ACEOF
12740 cat confdefs.h
>>conftest.
$ac_ext
12741 cat >>conftest.
$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
12744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12745 #define pow innocuous_pow
12747 /* System header to define __stub macros and hopefully few prototypes,
12748 which can conflict with char pow (); below.
12749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12750 <limits.h> exists even on freestanding compilers. */
12753 # include <limits.h>
12755 # include <assert.h>
12760 /* Override any gcc2 internal prototype to avoid an error. */
12765 /* We use char because int might match the return type of a gcc2
12766 builtin and then its argument prototype would still apply. */
12768 /* The GNU C library defines this for functions which it implements
12769 to always fail with ENOSYS. Some functions are actually named
12770 something starting with __ and the normal name is an alias. */
12771 #if defined (__stub_pow) || defined (__stub___pow)
12774 char (*f) () = pow;
12788 rm -f conftest.
$ac_objext conftest
$ac_exeext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>conftest.er1
12792 grep -v '^ *+' conftest.er1
>conftest.err
12794 cat conftest.err
>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try
='test -z "$ac_c_werror_flag"
12798 || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try
='test -s conftest$ac_exeext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.
$ac_ext >&5
12817 rm -f conftest.err conftest.
$ac_objext \
12818 conftest
$ac_exeext conftest.
$ac_ext
12820 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12821 echo "${ECHO_T}$ac_cv_func_pow" >&6
12823 if test $ac_cv_func_pow = no
; then
12824 echo "$as_me:$LINENO: checking for pow in -lm" >&5
12825 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
12826 if test "${ac_cv_lib_m_pow+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 ac_check_lib_save_LIBS
=$LIBS
12831 cat >conftest.
$ac_ext <<_ACEOF
12834 cat confdefs.h
>>conftest.
$ac_ext
12835 cat >>conftest.
$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12838 /* Override any gcc2 internal prototype to avoid an error. */
12842 /* We use char because int might match the return type of a gcc2
12843 builtin and then its argument prototype would still apply. */
12853 rm -f conftest.
$ac_objext conftest
$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12857 grep -v '^ *+' conftest.er1
>conftest.err
12859 cat conftest.err
>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try
='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try
='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_lib_m_pow
=yes
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.
$ac_ext >&5
12882 rm -f conftest.err conftest.
$ac_objext \
12883 conftest
$ac_exeext conftest.
$ac_ext
12884 LIBS
=$ac_check_lib_save_LIBS
12886 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12887 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
12888 if test $ac_cv_lib_m_pow = yes; then
12891 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12892 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12900 for ac_func
in vprintf
12902 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12903 echo "$as_me:$LINENO: checking for $ac_func" >&5
12904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12905 if eval "test \"\${$as_ac_var+set}\" = set"; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 cat >conftest.
$ac_ext <<_ACEOF
12911 cat confdefs.h
>>conftest.
$ac_ext
12912 cat >>conftest.
$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12916 #define $ac_func innocuous_$ac_func
12918 /* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func (); below.
12920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921 <limits.h> exists even on freestanding compilers. */
12924 # include <limits.h>
12926 # include <assert.h>
12931 /* Override any gcc2 internal prototype to avoid an error. */
12936 /* We use char because int might match the return type of a gcc2
12937 builtin and then its argument prototype would still apply. */
12939 /* The GNU C library defines this for functions which it implements
12940 to always fail with ENOSYS. Some functions are actually named
12941 something starting with __ and the normal name is an alias. */
12942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12945 char (*f) () = $ac_func;
12954 return f != $ac_func;
12959 rm -f conftest.
$ac_objext conftest
$ac_exeext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12961 (eval $ac_link) 2>conftest.er1
12963 grep -v '^ *+' conftest.er1
>conftest.err
12965 cat conftest.err
>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try
='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try
='test -s conftest$ac_exeext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 eval "$as_ac_var=yes"
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.
$ac_ext >&5
12986 eval "$as_ac_var=no"
12988 rm -f conftest.err conftest.
$ac_objext \
12989 conftest
$ac_exeext conftest.
$ac_ext
12991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12993 if test `eval echo '${'$as_ac_var'}'` = yes; then
12994 cat >>confdefs.h
<<_ACEOF
12995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12998 echo "$as_me:$LINENO: checking for _doprnt" >&5
12999 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13000 if test "${ac_cv_func__doprnt+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 cat >conftest.
$ac_ext <<_ACEOF
13006 cat confdefs.h
>>conftest.
$ac_ext
13007 cat >>conftest.
$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define _doprnt innocuous__doprnt
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char _doprnt (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13019 # include <limits.h>
13021 # include <assert.h>
13026 /* Override any gcc2 internal prototype to avoid an error. */
13031 /* We use char because int might match the return type of a gcc2
13032 builtin and then its argument prototype would still apply. */
13034 /* The GNU C library defines this for functions which it implements
13035 to always fail with ENOSYS. Some functions are actually named
13036 something starting with __ and the normal name is an alias. */
13037 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13040 char (*f) () = _doprnt;
13049 return f != _doprnt;
13054 rm -f conftest.
$ac_objext conftest
$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>conftest.er1
13058 grep -v '^ *+' conftest.er1
>conftest.err
13060 cat conftest.err
>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try
='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try
='test -s conftest$ac_exeext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_cv_func__doprnt
=yes
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.
$ac_ext >&5
13081 ac_cv_func__doprnt
=no
13083 rm -f conftest.err conftest.
$ac_objext \
13084 conftest
$ac_exeext conftest.
$ac_ext
13086 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13087 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13088 if test $ac_cv_func__doprnt = yes; then
13090 cat >>confdefs.h
<<\_ACEOF
13091 #define HAVE_DOPRNT 1
13100 if test $cross_compiling = yes -a $gnumalloc = yes; then
13102 { echo "$as_me:$LINENO: WARNING:
13103 configure cannot check whether malloc() and realloc() are GNU libc
13104 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13105 run configure with the --without-gnu-malloc switch." >&5
13106 echo "$as_me: WARNING:
13107 configure cannot check whether malloc() and realloc() are GNU libc
13108 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13109 run configure with the --without-gnu-malloc switch." >&2;}
13110 _mule_warning_8
=yes
13111 _mule_has_warnings
=yes
13113 ac_cv_func_malloc_0_nonnull
=yes
13114 ac_cv_func_realloc_0_nonnull
=yes
13119 for ac_header
in stdlib.h
13121 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13123 echo "$as_me:$LINENO: checking for $ac_header" >&5
13124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13131 # Is the header compilable?
13132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13134 cat >conftest.
$ac_ext <<_ACEOF
13137 cat confdefs.h
>>conftest.
$ac_ext
13138 cat >>conftest.
$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 $ac_includes_default
13141 #include <$ac_header>
13143 rm -f conftest.
$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13147 grep -v '^ *+' conftest.er1
>conftest.err
13149 cat conftest.err
>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try
='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try
='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_header_compiler
=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.
$ac_ext >&5
13170 ac_header_compiler
=no
13172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13174 echo "${ECHO_T}$ac_header_compiler" >&6
13176 # Is the header present?
13177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13179 cat >conftest.
$ac_ext <<_ACEOF
13182 cat confdefs.h
>>conftest.
$ac_ext
13183 cat >>conftest.
$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 #include <$ac_header>
13187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13190 grep -v '^ *+' conftest.er1
>conftest.err
13192 cat conftest.err
>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev
/null
; then
13195 if test -s conftest.err
; then
13196 ac_cpp_err
=$ac_c_preproc_warn_flag
13197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13204 if test -z "$ac_cpp_err"; then
13205 ac_header_preproc
=yes
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.
$ac_ext >&5
13210 ac_header_preproc
=no
13212 rm -f conftest.err conftest.
$ac_ext
13213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13214 echo "${ECHO_T}$ac_header_preproc" >&6
13216 # So? What about this header?
13217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13223 ac_header_preproc
=yes
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13240 ## ------------------------------ ##
13241 ## Report this to admin@amule.org ##
13242 ## ------------------------------ ##
13245 sed "s/^/$as_me: WARNING: /" >&2
13248 echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 eval "$as_ac_Header=\$ac_header_preproc"
13255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13260 cat >>confdefs.h
<<_ACEOF
13261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13268 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13269 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13270 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 if test "$cross_compiling" = yes; then
13274 ac_cv_func_malloc_0_nonnull
=no
13276 cat >conftest.
$ac_ext <<_ACEOF
13279 cat confdefs.h
>>conftest.
$ac_ext
13280 cat >>conftest.
$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #if STDC_HEADERS || HAVE_STDLIB_H
13283 # include <stdlib.h>
13291 exit (malloc (0) ? 0 : 1);
13296 rm -f conftest
$ac_exeext
13297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13298 (eval $ac_link) 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_func_malloc_0_nonnull
=yes
13309 echo "$as_me: program exited with status $ac_status" >&5
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.
$ac_ext >&5
13313 ( exit $ac_status )
13314 ac_cv_func_malloc_0_nonnull
=no
13316 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13319 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13320 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13321 if test $ac_cv_func_malloc_0_nonnull = yes; then
13323 cat >>confdefs.h
<<\_ACEOF
13324 #define HAVE_MALLOC 1
13328 cat >>confdefs.h
<<\_ACEOF
13329 #define HAVE_MALLOC 0
13333 "malloc.$ac_objext" | \
13334 *" malloc.$ac_objext" | \
13335 "malloc.$ac_objext "* | \
13336 *" malloc.$ac_objext "* ) ;;
13337 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13341 cat >>confdefs.h
<<\_ACEOF
13342 #define malloc rpl_malloc
13350 for ac_header
in stdlib.h
13352 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13354 echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13362 # Is the header compilable?
13363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13365 cat >conftest.
$ac_ext <<_ACEOF
13368 cat confdefs.h
>>conftest.
$ac_ext
13369 cat >>conftest.
$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 $ac_includes_default
13372 #include <$ac_header>
13374 rm -f conftest.
$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1
>conftest.err
13380 cat conftest.err
>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try
='test -z "$ac_c_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try
='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_header_compiler
=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.
$ac_ext >&5
13401 ac_header_compiler
=no
13403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13405 echo "${ECHO_T}$ac_header_compiler" >&6
13407 # Is the header present?
13408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13410 cat >conftest.
$ac_ext <<_ACEOF
13413 cat confdefs.h
>>conftest.
$ac_ext
13414 cat >>conftest.
$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include <$ac_header>
13418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13419 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13421 grep -v '^ *+' conftest.er1
>conftest.err
13423 cat conftest.err
>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } >/dev
/null
; then
13426 if test -s conftest.err
; then
13427 ac_cpp_err
=$ac_c_preproc_warn_flag
13428 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13435 if test -z "$ac_cpp_err"; then
13436 ac_header_preproc
=yes
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.
$ac_ext >&5
13441 ac_header_preproc
=no
13443 rm -f conftest.err conftest.
$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13445 echo "${ECHO_T}$ac_header_preproc" >&6
13447 # So? What about this header?
13448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13454 ac_header_preproc
=yes
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13471 ## ------------------------------ ##
13472 ## Report this to admin@amule.org ##
13473 ## ------------------------------ ##
13476 sed "s/^/$as_me: WARNING: /" >&2
13479 echo "$as_me:$LINENO: checking for $ac_header" >&5
13480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 eval "$as_ac_Header=\$ac_header_preproc"
13486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13491 cat >>confdefs.h
<<_ACEOF
13492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13499 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13500 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
13501 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 if test "$cross_compiling" = yes; then
13505 ac_cv_func_realloc_0_nonnull
=no
13507 cat >conftest.
$ac_ext <<_ACEOF
13510 cat confdefs.h
>>conftest.
$ac_ext
13511 cat >>conftest.
$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #if STDC_HEADERS || HAVE_STDLIB_H
13514 # include <stdlib.h>
13522 exit (realloc (0, 0) ? 0 : 1);
13527 rm -f conftest
$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_cv_func_realloc_0_nonnull
=yes
13540 echo "$as_me: program exited with status $ac_status" >&5
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.
$ac_ext >&5
13544 ( exit $ac_status )
13545 ac_cv_func_realloc_0_nonnull
=no
13547 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13551 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
13552 if test $ac_cv_func_realloc_0_nonnull = yes; then
13554 cat >>confdefs.h
<<\_ACEOF
13555 #define HAVE_REALLOC 1
13559 cat >>confdefs.h
<<\_ACEOF
13560 #define HAVE_REALLOC 0
13564 "realloc.$ac_objext" | \
13565 *" realloc.$ac_objext" | \
13566 "realloc.$ac_objext "* | \
13567 *" realloc.$ac_objext "* ) ;;
13568 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
13572 cat >>confdefs.h
<<\_ACEOF
13573 #define realloc rpl_realloc
13613 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
13615 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13616 echo "$as_me:$LINENO: checking for $ac_func" >&5
13617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13618 if eval "test \"\${$as_ac_var+set}\" = set"; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 cat >conftest.
$ac_ext <<_ACEOF
13624 cat confdefs.h
>>conftest.
$ac_ext
13625 cat >>conftest.
$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13629 #define $ac_func innocuous_$ac_func
13631 /* System header to define __stub macros and hopefully few prototypes,
13632 which can conflict with char $ac_func (); below.
13633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13634 <limits.h> exists even on freestanding compilers. */
13637 # include <limits.h>
13639 # include <assert.h>
13644 /* Override any gcc2 internal prototype to avoid an error. */
13649 /* We use char because int might match the return type of a gcc2
13650 builtin and then its argument prototype would still apply. */
13652 /* The GNU C library defines this for functions which it implements
13653 to always fail with ENOSYS. Some functions are actually named
13654 something starting with __ and the normal name is an alias. */
13655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13658 char (*f) () = $ac_func;
13667 return f != $ac_func;
13672 rm -f conftest.
$ac_objext conftest
$ac_exeext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13674 (eval $ac_link) 2>conftest.er1
13676 grep -v '^ *+' conftest.er1
>conftest.err
13678 cat conftest.err
>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try
='test -z "$ac_c_werror_flag"
13682 || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try
='test -s conftest$ac_exeext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 eval "$as_ac_var=yes"
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.
$ac_ext >&5
13699 eval "$as_ac_var=no"
13701 rm -f conftest.err conftest.
$ac_objext \
13702 conftest
$ac_exeext conftest.
$ac_ext
13704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13706 if test `eval echo '${'$as_ac_var'}'` = yes; then
13707 cat >>confdefs.h
<<_ACEOF
13708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13714 #-------------------------------------------------------------------------------
13715 # End of autoscan stuff
13716 #-------------------------------------------------------------------------------
13722 for ac_func
in mkdir getrlimit setrlimit getopt_long
13724 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13725 echo "$as_me:$LINENO: checking for $ac_func" >&5
13726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13727 if eval "test \"\${$as_ac_var+set}\" = set"; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.
$ac_ext <<_ACEOF
13733 cat confdefs.h
>>conftest.
$ac_ext
13734 cat >>conftest.
$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13738 #define $ac_func innocuous_$ac_func
13740 /* System header to define __stub macros and hopefully few prototypes,
13741 which can conflict with char $ac_func (); below.
13742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13743 <limits.h> exists even on freestanding compilers. */
13746 # include <limits.h>
13748 # include <assert.h>
13753 /* Override any gcc2 internal prototype to avoid an error. */
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13761 /* The GNU C library defines this for functions which it implements
13762 to always fail with ENOSYS. Some functions are actually named
13763 something starting with __ and the normal name is an alias. */
13764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13767 char (*f) () = $ac_func;
13776 return f != $ac_func;
13781 rm -f conftest.
$ac_objext conftest
$ac_exeext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783 (eval $ac_link) 2>conftest.er1
13785 grep -v '^ *+' conftest.er1
>conftest.err
13787 cat conftest.err
>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try
='test -z "$ac_c_werror_flag"
13791 || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try
='test -s conftest$ac_exeext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 eval "$as_ac_var=yes"
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.
$ac_ext >&5
13808 eval "$as_ac_var=no"
13810 rm -f conftest.err conftest.
$ac_objext \
13811 conftest
$ac_exeext conftest.
$ac_ext
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13815 if test `eval echo '${'$as_ac_var'}'` = yes; then
13816 cat >>confdefs.h
<<_ACEOF
13817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13824 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
13826 # Check whether --enable-mmap or --disable-mmap was given.
13827 if test "${enable_mmap+set}" = set; then
13828 enableval
="$enable_mmap"
13833 if test ${enable_mmap:-no} = yes; then
13836 for ac_header
in sys
/mman.h
13838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13840 echo "$as_me:$LINENO: checking for $ac_header" >&5
13841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13848 # Is the header compilable?
13849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13851 cat >conftest.
$ac_ext <<_ACEOF
13854 cat confdefs.h
>>conftest.
$ac_ext
13855 cat >>conftest.
$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 $ac_includes_default
13858 #include <$ac_header>
13860 rm -f conftest.
$ac_objext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862 (eval $ac_compile) 2>conftest.er1
13864 grep -v '^ *+' conftest.er1
>conftest.err
13866 cat conftest.err
>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
13869 { ac_try
='test -z "$ac_c_werror_flag"
13870 || test ! -s conftest.err'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try
='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_header_compiler
=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.
$ac_ext >&5
13887 ac_header_compiler
=no
13889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13891 echo "${ECHO_T}$ac_header_compiler" >&6
13893 # Is the header present?
13894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13896 cat >conftest.
$ac_ext <<_ACEOF
13899 cat confdefs.h
>>conftest.
$ac_ext
13900 cat >>conftest.
$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <$ac_header>
13904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13907 grep -v '^ *+' conftest.er1
>conftest.err
13909 cat conftest.err
>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } >/dev
/null
; then
13912 if test -s conftest.err
; then
13913 ac_cpp_err
=$ac_c_preproc_warn_flag
13914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13921 if test -z "$ac_cpp_err"; then
13922 ac_header_preproc
=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.
$ac_ext >&5
13927 ac_header_preproc
=no
13929 rm -f conftest.err conftest.
$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13931 echo "${ECHO_T}$ac_header_preproc" >&6
13933 # So? What about this header?
13934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13940 ac_header_preproc
=yes
13943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13957 ## ------------------------------ ##
13958 ## Report this to admin@amule.org ##
13959 ## ------------------------------ ##
13962 sed "s/^/$as_me: WARNING: /" >&2
13965 echo "$as_me:$LINENO: checking for $ac_header" >&5
13966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 eval "$as_ac_Header=\$ac_header_preproc"
13972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13977 cat >>confdefs.h
<<_ACEOF
13978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13987 for ac_header
in stdlib.h unistd.h
13989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13999 # Is the header compilable?
14000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002 cat >conftest.
$ac_ext <<_ACEOF
14005 cat confdefs.h
>>conftest.
$ac_ext
14006 cat >>conftest.
$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 #include <$ac_header>
14011 rm -f conftest.
$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14015 grep -v '^ *+' conftest.er1
>conftest.err
14017 cat conftest.err
>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try
='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try
='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler
=yes
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.
$ac_ext >&5
14038 ac_header_compiler
=no
14040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042 echo "${ECHO_T}$ac_header_compiler" >&6
14044 # Is the header present?
14045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047 cat >conftest.
$ac_ext <<_ACEOF
14050 cat confdefs.h
>>conftest.
$ac_ext
14051 cat >>conftest.
$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <$ac_header>
14055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14058 grep -v '^ *+' conftest.er1
>conftest.err
14060 cat conftest.err
>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev
/null
; then
14063 if test -s conftest.err
; then
14064 ac_cpp_err
=$ac_c_preproc_warn_flag
14065 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14072 if test -z "$ac_cpp_err"; then
14073 ac_header_preproc
=yes
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.
$ac_ext >&5
14078 ac_header_preproc
=no
14080 rm -f conftest.err conftest.
$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc
=yes
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14108 ## ------------------------------ ##
14109 ## Report this to admin@amule.org ##
14110 ## ------------------------------ ##
14113 sed "s/^/$as_me: WARNING: /" >&2
14116 echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 eval "$as_ac_Header=\$ac_header_preproc"
14123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h
<<_ACEOF
14129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14137 for ac_func
in getpagesize
14139 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_func" >&5
14141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 cat >conftest.
$ac_ext <<_ACEOF
14148 cat confdefs.h
>>conftest.
$ac_ext
14149 cat >>conftest.
$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153 #define $ac_func innocuous_$ac_func
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14161 # include <limits.h>
14163 # include <assert.h>
14168 /* Override any gcc2 internal prototype to avoid an error. */
14173 /* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14182 char (*f) () = $ac_func;
14191 return f != $ac_func;
14196 rm -f conftest.
$ac_objext conftest
$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14200 grep -v '^ *+' conftest.er1
>conftest.err
14202 cat conftest.err
>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try
='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try
='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.
$ac_ext >&5
14223 eval "$as_ac_var=no"
14225 rm -f conftest.err conftest.
$ac_objext \
14226 conftest
$ac_exeext conftest.
$ac_ext
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230 if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h
<<_ACEOF
14232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14238 echo "$as_me:$LINENO: checking for working mmap" >&5
14239 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14240 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 if test "$cross_compiling" = yes; then
14244 ac_cv_func_mmap_fixed_mapped
=no
14246 cat >conftest.
$ac_ext <<_ACEOF
14249 cat confdefs.h
>>conftest.
$ac_ext
14250 cat >>conftest.
$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14253 /* malloc might have been renamed as rpl_malloc. */
14256 /* Thanks to Mike Haertel and Jim Avera for this test.
14257 Here is a matrix of mmap possibilities:
14258 mmap private not fixed
14259 mmap private fixed at somewhere currently unmapped
14260 mmap private fixed at somewhere already mapped
14261 mmap shared not fixed
14262 mmap shared fixed at somewhere currently unmapped
14263 mmap shared fixed at somewhere already mapped
14264 For private mappings, we should verify that changes cannot be read()
14265 back from the file, nor mmap's back from the file at a different
14266 address. (There have been systems where private was not correctly
14267 implemented like the infamous i386 svr4.0, and systems where the
14268 VM page cache was not coherent with the file system buffer cache
14269 like early versions of FreeBSD and possibly contemporary NetBSD.)
14270 For shared mappings, we should conversely verify that changes get
14271 propagated back to all the places they're supposed to be.
14273 Grep wants private fixed already mapped.
14274 The main things grep needs to know about mmap are:
14275 * does it exist and is it safe to write into the mmap'd area
14276 * how to use it (BSD variants) */
14279 #include <sys/mman.h>
14281 #if !STDC_HEADERS && !HAVE_STDLIB_H
14285 /* This mess was copied from the GNU getpagesize.h. */
14286 #if !HAVE_GETPAGESIZE
14287 /* Assume that all systems that can run configure have sys/param.h. */
14288 # if !HAVE_SYS_PARAM_H
14289 # define HAVE_SYS_PARAM_H 1
14292 # ifdef _SC_PAGESIZE
14293 # define getpagesize() sysconf(_SC_PAGESIZE)
14294 # else /* no _SC_PAGESIZE */
14295 # if HAVE_SYS_PARAM_H
14296 # include <sys/param.h>
14297 # ifdef EXEC_PAGESIZE
14298 # define getpagesize() EXEC_PAGESIZE
14299 # else /* no EXEC_PAGESIZE */
14301 # define getpagesize() NBPG * CLSIZE
14304 # endif /* no CLSIZE */
14305 # else /* no NBPG */
14307 # define getpagesize() NBPC
14308 # else /* no NBPC */
14310 # define getpagesize() PAGESIZE
14311 # endif /* PAGESIZE */
14312 # endif /* no NBPC */
14313 # endif /* no NBPG */
14314 # endif /* no EXEC_PAGESIZE */
14315 # else /* no HAVE_SYS_PARAM_H */
14316 # define getpagesize() 8192 /* punt totally */
14317 # endif /* no HAVE_SYS_PARAM_H */
14318 # endif /* no _SC_PAGESIZE */
14320 #endif /* no HAVE_GETPAGESIZE */
14325 char *data, *data2, *data3;
14329 pagesize = getpagesize ();
14331 /* First, make a file with some known garbage in it. */
14332 data = (char *) malloc (pagesize);
14335 for (i = 0; i < pagesize; ++i)
14336 *(data + i) = rand ();
14338 fd = creat ("conftest.mmap", 0600);
14341 if (write (fd, data, pagesize) != pagesize)
14345 /* Next, try to mmap the file at a fixed address which already has
14346 something else allocated at it. If we can, also make sure that
14347 we see the same garbage. */
14348 fd = open ("conftest.mmap", O_RDWR);
14351 data2 = (char *) malloc (2 * pagesize);
14354 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14358 for (i = 0; i < pagesize; ++i)
14359 if (*(data + i) != *(data2 + i))
14362 /* Finally, make sure that changes to the mapped area do not
14363 percolate back to the file as seen by read(). (This is a bug on
14364 some variants of i386 svr4.0.) */
14365 for (i = 0; i < pagesize; ++i)
14366 *(data2 + i) = *(data2 + i) + 1;
14367 data3 = (char *) malloc (pagesize);
14370 if (read (fd, data3, pagesize) != pagesize)
14372 for (i = 0; i < pagesize; ++i)
14373 if (*(data + i) != *(data3 + i))
14379 rm -f conftest
$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_func_mmap_fixed_mapped
=yes
14392 echo "$as_me: program exited with status $ac_status" >&5
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.
$ac_ext >&5
14396 ( exit $ac_status )
14397 ac_cv_func_mmap_fixed_mapped
=no
14399 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14402 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14406 cat >>confdefs.h
<<\_ACEOF
14407 #define HAVE_MMAP 1
14411 rm -f conftest.mmap
14415 for ac_func
in munmap sysconf
14417 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14418 echo "$as_me:$LINENO: checking for $ac_func" >&5
14419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14420 if eval "test \"\${$as_ac_var+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 cat >conftest.
$ac_ext <<_ACEOF
14426 cat confdefs.h
>>conftest.
$ac_ext
14427 cat >>conftest.
$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14431 #define $ac_func innocuous_$ac_func
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func (); below.
14435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14436 <limits.h> exists even on freestanding compilers. */
14439 # include <limits.h>
14441 # include <assert.h>
14446 /* Override any gcc2 internal prototype to avoid an error. */
14451 /* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14454 /* The GNU C library defines this for functions which it implements
14455 to always fail with ENOSYS. Some functions are actually named
14456 something starting with __ and the normal name is an alias. */
14457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14460 char (*f) () = $ac_func;
14469 return f != $ac_func;
14474 rm -f conftest.
$ac_objext conftest
$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>conftest.er1
14478 grep -v '^ *+' conftest.er1
>conftest.err
14480 cat conftest.err
>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try
='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try
='test -s conftest$ac_exeext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 eval "$as_ac_var=yes"
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.
$ac_ext >&5
14501 eval "$as_ac_var=no"
14503 rm -f conftest.err conftest.
$ac_objext \
14504 conftest
$ac_exeext conftest.
$ac_ext
14506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14508 if test `eval echo '${'$as_ac_var'}'` = yes; then
14509 cat >>confdefs.h
<<_ACEOF
14510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14516 if test $ac_cv_func_sysconf = yes; then
14518 echo "$as_me:$LINENO: checking for pagesize constant for sysconf" >&5
14519 echo $ECHO_N "checking for pagesize constant for sysconf... $ECHO_C" >&6
14520 cat >conftest.
$ac_ext <<_ACEOF
14524 cat confdefs.h
>>conftest.
$ac_ext
14525 cat >>conftest.
$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 #include <unistd.h>
14534 return sysconf(_SC_PAGESIZE);
14541 rm -f conftest.
$ac_objext conftest
$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14545 grep -v '^ *+' conftest.er1
>conftest.err
14547 cat conftest.err
>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try
='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try
='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14564 echo "$as_me:$LINENO: result: _SC_PAGESIZE" >&5
14565 echo "${ECHO_T}_SC_PAGESIZE" >&6
14567 cat >>confdefs.h
<<\_ACEOF
14568 #define HAVE__SC_PAGESIZE 1
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.
$ac_ext >&5
14577 cat >conftest.
$ac_ext <<_ACEOF
14581 cat confdefs.h
>>conftest.
$ac_ext
14582 cat >>conftest.
$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14585 #include <unistd.h>
14591 return sysconf(_SC_PAGE_SIZE);
14598 rm -f conftest.
$ac_objext conftest
$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>conftest.er1
14602 grep -v '^ *+' conftest.er1
>conftest.err
14604 cat conftest.err
>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try
='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try
='test -s conftest$ac_exeext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14621 echo "$as_me:$LINENO: result: _SC_PAGE_SIZE" >&5
14622 echo "${ECHO_T}_SC_PAGE_SIZE" >&6
14624 cat >>confdefs.h
<<\_ACEOF
14625 #define HAVE__SC_PAGE_SIZE 1
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.
$ac_ext >&5
14634 echo "$as_me:$LINENO: result: none" >&5
14635 echo "${ECHO_T}none" >&6
14638 rm -f conftest.err conftest.
$ac_objext \
14639 conftest
$ac_exeext conftest.
$ac_ext
14642 rm -f conftest.err conftest.
$ac_objext \
14643 conftest
$ac_exeext conftest.
$ac_ext
14650 # fake the result of the test for munmap() for the gettext macros
14651 ac_cv_func_munmap
=no
14659 mule_backup_CPPFLAGS
="$CPPFLAGS"
14660 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14661 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14662 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14663 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 cat >conftest.
$ac_ext <<_ACEOF
14669 cat confdefs.h
>>conftest.
$ac_ext
14670 cat >>conftest.
$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14677 char *p = (char *) strerror_r;
14684 rm -f conftest.
$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14688 grep -v '^ *+' conftest.er1
>conftest.err
14690 cat conftest.err
>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try
='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try
='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_have_decl_strerror_r
=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.
$ac_ext >&5
14711 ac_cv_have_decl_strerror_r
=no
14713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14715 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14716 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14717 if test $ac_cv_have_decl_strerror_r = yes; then
14719 cat >>confdefs.h
<<_ACEOF
14720 #define HAVE_DECL_STRERROR_R 1
14725 cat >>confdefs.h
<<_ACEOF
14726 #define HAVE_DECL_STRERROR_R 0
14734 for ac_func
in strerror_r
14736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14737 echo "$as_me:$LINENO: checking for $ac_func" >&5
14738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14739 if eval "test \"\${$as_ac_var+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 cat >conftest.
$ac_ext <<_ACEOF
14745 cat confdefs.h
>>conftest.
$ac_ext
14746 cat >>conftest.
$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14750 #define $ac_func innocuous_$ac_func
14752 /* System header to define __stub macros and hopefully few prototypes,
14753 which can conflict with char $ac_func (); below.
14754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14755 <limits.h> exists even on freestanding compilers. */
14758 # include <limits.h>
14760 # include <assert.h>
14765 /* Override any gcc2 internal prototype to avoid an error. */
14770 /* We use char because int might match the return type of a gcc2
14771 builtin and then its argument prototype would still apply. */
14773 /* The GNU C library defines this for functions which it implements
14774 to always fail with ENOSYS. Some functions are actually named
14775 something starting with __ and the normal name is an alias. */
14776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14779 char (*f) () = $ac_func;
14788 return f != $ac_func;
14793 rm -f conftest.
$ac_objext conftest
$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>conftest.er1
14797 grep -v '^ *+' conftest.er1
>conftest.err
14799 cat conftest.err
>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
14802 { ac_try
='test -z "$ac_c_werror_flag"
14803 || test ! -s conftest.err'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } &&
14809 { ac_try
='test -s conftest$ac_exeext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 eval "$as_ac_var=yes"
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.
$ac_ext >&5
14820 eval "$as_ac_var=no"
14822 rm -f conftest.err conftest.
$ac_objext \
14823 conftest
$ac_exeext conftest.
$ac_ext
14825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14827 if test `eval echo '${'$as_ac_var'}'` = yes; then
14828 cat >>confdefs.h
<<_ACEOF
14829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14836 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14837 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 ac_cv_func_strerror_r_char_p
=no
14842 if test $ac_cv_have_decl_strerror_r = yes; then
14843 cat >conftest.
$ac_ext <<_ACEOF
14846 cat confdefs.h
>>conftest.
$ac_ext
14847 cat >>conftest.
$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 $ac_includes_default
14855 char x = *strerror_r (0, buf, sizeof buf);
14856 char *p = strerror_r (0, buf, sizeof buf);
14862 rm -f conftest.
$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>conftest.er1
14866 grep -v '^ *+' conftest.er1
>conftest.err
14868 cat conftest.err
>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try
='test -z "$ac_c_werror_flag"
14872 || test ! -s conftest.err'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try
='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_func_strerror_r_char_p
=yes
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.
$ac_ext >&5
14890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14892 # strerror_r is not declared. Choose between
14893 # systems that have relatively inaccessible declarations for the
14894 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14895 # former has a strerror_r that returns char*, while the latter
14896 # has a strerror_r that returns `int'.
14897 # This test should segfault on the DEC system.
14898 if test "$cross_compiling" = yes; then
14901 cat >conftest.
$ac_ext <<_ACEOF
14904 cat confdefs.h
>>conftest.
$ac_ext
14905 cat >>conftest.
$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 extern char *strerror_r ();
14913 char x = *strerror_r (0, buf, sizeof buf);
14914 exit (!isalpha (x));
14919 rm -f conftest
$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_cv_func_strerror_r_char_p
=yes
14932 echo "$as_me: program exited with status $ac_status" >&5
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.
$ac_ext >&5
14937 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14942 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14943 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14944 if test $ac_cv_func_strerror_r_char_p = yes; then
14946 cat >>confdefs.h
<<\_ACEOF
14947 #define STRERROR_R_CHAR_P 1
14952 CPPFLAGS
="$mule_backup_CPPFLAGS"
14954 # Look for a way to preallocate disk space for files.
14955 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then
14957 echo "$as_me:$LINENO: checking for fallocate" >&5
14958 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14959 mule_backup_CPPFLAGS
="$CPPFLAGS"
14960 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
14961 cat >conftest.
$ac_ext <<_ACEOF
14965 cat confdefs.h
>>conftest.
$ac_ext
14966 cat >>conftest.
$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14969 #define _GNU_SOURCE
14970 #ifdef HAVE_FCNTL_H
14971 # include <fcntl.h>
14973 #include <linux/falloc.h>
14979 fallocate(0, 0, 0, 0);
14986 rm -f conftest.
$ac_objext conftest
$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>conftest.er1
14990 grep -v '^ *+' conftest.er1
>conftest.err
14992 cat conftest.err
>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try
='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try
='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15011 cat >>confdefs.h
<<\_ACEOF
15012 #define HAVE_FALLOCATE 1
15015 echo "$as_me:$LINENO: result: yes" >&5
15016 echo "${ECHO_T}yes" >&6
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.
$ac_ext >&5
15023 echo "$as_me:$LINENO: result: no" >&5
15024 echo "${ECHO_T}no" >&6
15027 rm -f conftest.err conftest.
$ac_objext \
15028 conftest
$ac_exeext conftest.
$ac_ext
15029 CPPFLAGS
="$mule_backup_CPPFLAGS"
15032 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
15033 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
15034 cat >conftest.
$ac_ext <<_ACEOF
15038 cat confdefs.h
>>conftest.
$ac_ext
15039 cat >>conftest.
$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 #include <sys/syscall.h>
15043 #include <sys/types.h>
15044 #include <unistd.h>
15050 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
15057 rm -f conftest.
$ac_objext conftest
$ac_exeext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15059 (eval $ac_link) 2>conftest.er1
15061 grep -v '^ *+' conftest.er1
>conftest.err
15063 cat conftest.err
>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try
='test -z "$ac_c_werror_flag"
15067 || test ! -s conftest.err'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try
='test -s conftest$ac_exeext'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15082 cat >>confdefs.h
<<\_ACEOF
15083 #define HAVE_SYS_FALLOCATE 1
15086 echo "$as_me:$LINENO: result: yes" >&5
15087 echo "${ECHO_T}yes" >&6
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.
$ac_ext >&5
15094 echo "$as_me:$LINENO: result: no" >&5
15095 echo "${ECHO_T}no" >&6
15098 rm -f conftest.err conftest.
$ac_objext \
15099 conftest
$ac_exeext conftest.
$ac_ext
15101 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
15102 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
15103 cat >conftest.
$ac_ext <<_ACEOF
15107 cat confdefs.h
>>conftest.
$ac_ext
15108 cat >>conftest.
$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15111 #define _XOPEN_SOURCE 600
15112 #include <stdlib.h>
15113 #ifdef HAVE_FCNTL_H
15114 # include <fcntl.h>
15121 posix_fallocate(0, 0, 0);
15128 rm -f conftest.
$ac_objext conftest
$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15132 grep -v '^ *+' conftest.er1
>conftest.err
15134 cat conftest.err
>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try
='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try
='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15153 cat >>confdefs.h
<<\_ACEOF
15154 #define HAVE_POSIX_FALLOCATE 1
15157 echo "$as_me:$LINENO: result: yes" >&5
15158 echo "${ECHO_T}yes" >&6
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.
$ac_ext >&5
15165 echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6
15169 rm -f conftest.err conftest.
$ac_objext \
15170 conftest
$ac_exeext conftest.
$ac_ext
15175 # Checking Native Language Support
15179 if test -n "$ac_aux_dir"; then
15180 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
15182 if test -z "$MKINSTALLDIRS"; then
15183 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
15190 # Extract the first word of "msgfmt", so it can be a program name with args.
15191 set dummy msgfmt
; ac_word
=$2
15192 echo "$as_me:$LINENO: checking for $ac_word" >&5
15193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194 if test "${ac_cv_path_MSGFMT+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
15202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15203 for ac_dir
in $PATH; do
15204 test -z "$ac_dir" && ac_dir
=.
15205 if test -f $ac_dir/$ac_word; then
15206 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
15207 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15208 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
15214 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
15218 MSGFMT
="$ac_cv_path_MSGFMT"
15219 if test "$MSGFMT" != ":"; then
15220 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15221 echo "${ECHO_T}$MSGFMT" >&6
15223 echo "$as_me:$LINENO: result: no" >&5
15224 echo "${ECHO_T}no" >&6
15227 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15228 set dummy gmsgfmt
; ac_word
=$2
15229 echo "$as_me:$LINENO: checking for $ac_word" >&5
15230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15231 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15236 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
15239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15240 for as_dir
in $PATH
15243 test -z "$as_dir" && as_dir
=.
15244 for ac_exec_ext
in '' $ac_executable_extensions; do
15245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15246 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
15247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15253 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
15257 GMSGFMT
=$ac_cv_path_GMSGFMT
15259 if test -n "$GMSGFMT"; then
15260 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15261 echo "${ECHO_T}$GMSGFMT" >&6
15263 echo "$as_me:$LINENO: result: no" >&5
15264 echo "${ECHO_T}no" >&6
15268 # Extract the first word of "xgettext", so it can be a program name with args.
15269 set dummy xgettext
; ac_word
=$2
15270 echo "$as_me:$LINENO: checking for $ac_word" >&5
15271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15272 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 case "$XGETTEXT" in
15277 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15281 for ac_dir
in $PATH; do
15282 test -z "$ac_dir" && ac_dir
=.
15283 if test -f $ac_dir/$ac_word; then
15284 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15285 (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
15286 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15292 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15296 XGETTEXT
="$ac_cv_path_XGETTEXT"
15297 if test "$XGETTEXT" != ":"; then
15298 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15299 echo "${ECHO_T}$XGETTEXT" >&6
15301 echo "$as_me:$LINENO: result: no" >&5
15302 echo "${ECHO_T}no" >&6
15307 # Extract the first word of "msgmerge", so it can be a program name with args.
15308 set dummy msgmerge
; ac_word
=$2
15309 echo "$as_me:$LINENO: checking for $ac_word" >&5
15310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15311 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 case "$MSGMERGE" in
15316 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15319 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15320 for ac_dir
in $PATH; do
15321 test -z "$ac_dir" && ac_dir
=.
15322 if test -f $ac_dir/$ac_word; then
15323 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15324 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15330 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15334 MSGMERGE
="$ac_cv_path_MSGMERGE"
15335 if test "$MSGMERGE" != ":"; then
15336 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15337 echo "${ECHO_T}$MSGMERGE" >&6
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15344 if test "$GMSGFMT" != ":"; then
15345 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15346 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15349 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15350 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15351 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15356 if test "$XGETTEXT" != ":"; then
15357 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15358 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15361 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15362 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15368 ac_config_commands
="$ac_config_commands default-1"
15371 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15372 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15373 if test "${ac_cv_search_strerror+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 ac_func_search_save_LIBS
=$LIBS
15377 ac_cv_search_strerror
=no
15378 cat >conftest.
$ac_ext <<_ACEOF
15381 cat confdefs.h
>>conftest.
$ac_ext
15382 cat >>conftest.
$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15385 /* Override any gcc2 internal prototype to avoid an error. */
15389 /* We use char because int might match the return type of a gcc2
15390 builtin and then its argument prototype would still apply. */
15400 rm -f conftest.
$ac_objext conftest
$ac_exeext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>conftest.er1
15404 grep -v '^ *+' conftest.er1
>conftest.err
15406 cat conftest.err
>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try
='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try
='test -s conftest$ac_exeext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_search_strerror
="none required"
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.
$ac_ext >&5
15428 rm -f conftest.err conftest.
$ac_objext \
15429 conftest
$ac_exeext conftest.
$ac_ext
15430 if test "$ac_cv_search_strerror" = no
; then
15431 for ac_lib
in cposix
; do
15432 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15433 cat >conftest.
$ac_ext <<_ACEOF
15436 cat confdefs.h
>>conftest.
$ac_ext
15437 cat >>conftest.
$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15440 /* Override any gcc2 internal prototype to avoid an error. */
15444 /* We use char because int might match the return type of a gcc2
15445 builtin and then its argument prototype would still apply. */
15455 rm -f conftest.
$ac_objext conftest
$ac_exeext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1
>conftest.err
15461 cat conftest.err
>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try
='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try
='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_search_strerror
="-l$ac_lib"
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.
$ac_ext >&5
15484 rm -f conftest.err conftest.
$ac_objext \
15485 conftest
$ac_exeext conftest.
$ac_ext
15488 LIBS
=$ac_func_search_save_LIBS
15490 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15491 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15492 if test "$ac_cv_search_strerror" != no
; then
15493 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15498 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15499 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15500 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 cat >conftest.
$ac_ext <<_ACEOF
15506 cat confdefs.h
>>conftest.
$ac_ext
15507 cat >>conftest.
$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15510 #include <features.h>
15511 #ifdef __GNU_LIBRARY__
15512 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15519 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15520 ac_cv_gnu_library_2_1
=yes
15522 ac_cv_gnu_library_2_1
=no
15529 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15530 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15532 GLIBC21
="$ac_cv_gnu_library_2_1"
15537 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15538 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15539 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 if test "$cross_compiling" = yes; then
15545 # Guess based on the CPU.
15546 case "$host_cpu" in
15547 alpha
* | i3456786 | m68k | s390
*)
15548 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15550 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15554 cat >conftest.
$ac_ext <<_ACEOF
15557 cat confdefs.h
>>conftest.
$ac_ext
15558 cat >>conftest.
$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 #include <stdlib.h>
15562 #include <signal.h>
15566 sigfpe_handler (int sig)
15568 sigfpe_handler (sig) int sig;
15571 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15572 exit (sig != SIGFPE);
15582 signal (SIGFPE, sigfpe_handler);
15583 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15584 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15585 signal (SIGTRAP, sigfpe_handler);
15587 /* Linux/SPARC yields signal SIGILL. */
15588 #if defined (__sparc__) && defined (__linux__)
15589 signal (SIGILL, sigfpe_handler);
15598 rm -f conftest
$ac_exeext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 gt_cv_int_divbyzero_sigfpe
=yes
15611 echo "$as_me: program exited with status $ac_status" >&5
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.
$ac_ext >&5
15615 ( exit $ac_status )
15616 gt_cv_int_divbyzero_sigfpe
=no
15618 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15622 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15623 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15624 case "$gt_cv_int_divbyzero_sigfpe" in
15629 cat >>confdefs.h
<<_ACEOF
15630 #define INTDIV0_RAISES_SIGFPE $value
15635 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15636 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15637 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 cat >conftest.
$ac_ext <<_ACEOF
15643 cat confdefs.h
>>conftest.
$ac_ext
15644 cat >>conftest.
$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <sys/types.h>
15647 #include <inttypes.h>
15651 uintmax_t i = (uintmax_t) -1;
15656 rm -f conftest.
$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658 (eval $ac_compile) 2>conftest.er1
15660 grep -v '^ *+' conftest.er1
>conftest.err
15662 cat conftest.err
>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try
='test -z "$ac_c_werror_flag"
15666 || test ! -s conftest.err'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try
='test -s conftest.$ac_objext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 jm_ac_cv_header_inttypes_h
=yes
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.
$ac_ext >&5
15683 jm_ac_cv_header_inttypes_h
=no
15685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15687 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15688 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15689 if test $jm_ac_cv_header_inttypes_h = yes; then
15691 cat >>confdefs.h
<<_ACEOF
15692 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15698 echo "$as_me:$LINENO: checking for stdint.h" >&5
15699 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15700 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 cat >conftest.
$ac_ext <<_ACEOF
15706 cat confdefs.h
>>conftest.
$ac_ext
15707 cat >>conftest.
$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 #include <sys/types.h>
15710 #include <stdint.h>
15714 uintmax_t i = (uintmax_t) -1;
15719 rm -f conftest.
$ac_objext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721 (eval $ac_compile) 2>conftest.er1
15723 grep -v '^ *+' conftest.er1
>conftest.err
15725 cat conftest.err
>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try
='test -z "$ac_c_werror_flag"
15729 || test ! -s conftest.err'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try
='test -s conftest.$ac_objext'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 jm_ac_cv_header_stdint_h
=yes
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.
$ac_ext >&5
15746 jm_ac_cv_header_stdint_h
=no
15748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15750 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15751 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15752 if test $jm_ac_cv_header_stdint_h = yes; then
15754 cat >>confdefs.h
<<_ACEOF
15755 #define HAVE_STDINT_H_WITH_UINTMAX 1
15761 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15762 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15763 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 cat >conftest.
$ac_ext <<_ACEOF
15769 cat confdefs.h
>>conftest.
$ac_ext
15770 cat >>conftest.
$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 unsigned long long ull = 1; int i = 63;
15776 unsigned long long ullmax = (unsigned long long) -1;
15777 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15782 rm -f conftest.
$ac_objext conftest
$ac_exeext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784 (eval $ac_link) 2>conftest.er1
15786 grep -v '^ *+' conftest.er1
>conftest.err
15788 cat conftest.err
>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try
='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try
='test -s conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_cv_type_unsigned_long_long
=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 ac_cv_type_unsigned_long_long
=no
15811 rm -f conftest.err conftest.
$ac_objext \
15812 conftest
$ac_exeext conftest.
$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15815 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15816 if test $ac_cv_type_unsigned_long_long = yes; then
15818 cat >>confdefs.h
<<\_ACEOF
15819 #define HAVE_UNSIGNED_LONG_LONG 1
15827 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15829 test $ac_cv_type_unsigned_long_long = yes \
15830 && ac_type
='unsigned long long' \
15831 || ac_type
='unsigned long'
15833 cat >>confdefs.h
<<_ACEOF
15834 #define uintmax_t $ac_type
15840 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15841 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15842 if test "${gt_cv_header_inttypes_h+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 cat >conftest.
$ac_ext <<_ACEOF
15849 cat confdefs.h
>>conftest.
$ac_ext
15850 cat >>conftest.
$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <sys/types.h>
15853 #include <inttypes.h>
15862 rm -f conftest.
$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>conftest.er1
15866 grep -v '^ *+' conftest.er1
>conftest.err
15868 cat conftest.err
>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try
='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try
='test -s conftest.$ac_objext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 gt_cv_header_inttypes_h
=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.
$ac_ext >&5
15889 gt_cv_header_inttypes_h
=no
15891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15894 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15895 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15896 if test $gt_cv_header_inttypes_h = yes; then
15898 cat >>confdefs.h
<<_ACEOF
15899 #define HAVE_INTTYPES_H 1
15906 if test $gt_cv_header_inttypes_h = yes; then
15907 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15908 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15909 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 cat >conftest.
$ac_ext <<_ACEOF
15916 cat confdefs.h
>>conftest.
$ac_ext
15917 cat >>conftest.
$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <inttypes.h>
15932 rm -f conftest.
$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>conftest.er1
15936 grep -v '^ *+' conftest.er1
>conftest.err
15938 cat conftest.err
>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try
='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try
='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 gt_cv_inttypes_pri_broken
=no
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.
$ac_ext >&5
15959 gt_cv_inttypes_pri_broken
=yes
15961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15964 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15965 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15967 if test "$gt_cv_inttypes_pri_broken" = yes; then
15969 cat >>confdefs.h
<<_ACEOF
15970 #define PRI_MACROS_BROKEN 1
15976 if test "X$prefix" = "XNONE"; then
15977 acl_final_prefix
="$ac_default_prefix"
15979 acl_final_prefix
="$prefix"
15981 if test "X$exec_prefix" = "XNONE"; then
15982 acl_final_exec_prefix
='${prefix}'
15984 acl_final_exec_prefix
="$exec_prefix"
15986 acl_save_prefix
="$prefix"
15987 prefix
="$acl_final_prefix"
15988 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
15989 prefix
="$acl_save_prefix"
15992 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15993 if test "${with_gnu_ld+set}" = set; then
15994 withval
="$with_gnu_ld"
15995 test "$withval" = no || with_gnu_ld
=yes
16000 if test "$GCC" = yes; then
16001 # Check if gcc -print-prog-name=ld gives a path.
16002 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16003 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16006 # gcc leaves a trailing carriage return which upsets mingw
16007 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16009 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16012 # Accept absolute paths.
16013 [\\/]* |
[A-Za-z
]:[\\/]*)
16014 re_direlt
='/[^/][^/]*/\.\./'
16015 # Canonicalize the path of ld
16016 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16017 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16018 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16020 test -z "$LD" && LD
="$ac_prog"
16023 # If it fails, then pretend we aren't using GCC.
16027 # If it is relative, then search for the first ld in PATH.
16028 with_gnu_ld
=unknown
16031 elif test "$with_gnu_ld" = yes; then
16032 echo "$as_me:$LINENO: checking for GNU ld" >&5
16033 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16035 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16036 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16038 if test "${acl_cv_path_LD+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 if test -z "$LD"; then
16042 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16043 for ac_dir
in $PATH; do
16044 test -z "$ac_dir" && ac_dir
=.
16045 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16046 acl_cv_path_LD
="$ac_dir/$ac_prog"
16047 # Check to see if the program is GNU ld. I'd rather use --version,
16048 # but apparently some GNU ld's only accept -v.
16049 # Break only if it was the GNU/non-GNU ld that we prefer.
16050 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
16051 test "$with_gnu_ld" != no
&& break
16053 test "$with_gnu_ld" != yes && break
16059 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16063 LD
="$acl_cv_path_LD"
16064 if test -n "$LD"; then
16065 echo "$as_me:$LINENO: result: $LD" >&5
16066 echo "${ECHO_T}$LD" >&6
16068 echo "$as_me:$LINENO: result: no" >&5
16069 echo "${ECHO_T}no" >&6
16071 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16072 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16073 { (exit 1); exit 1; }; }
16074 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16075 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16076 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16080 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
16081 acl_cv_prog_gnu_ld
=yes
16083 acl_cv_prog_gnu_ld
=no
16086 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16087 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16088 with_gnu_ld
=$acl_cv_prog_gnu_ld
16092 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16093 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16094 if test "${acl_cv_rpath+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16099 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16101 rm -f .
/conftest.sh
16105 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16106 echo "${ECHO_T}$acl_cv_rpath" >&6
16108 libext
="$acl_cv_libext"
16109 shlibext
="$acl_cv_shlibext"
16110 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16111 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16112 hardcode_direct
="$acl_cv_hardcode_direct"
16113 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16114 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
16115 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
16116 # Check whether --enable-rpath or --disable-rpath was given.
16117 if test "${enable_rpath+set}" = set; then
16118 enableval
="$enable_rpath"
16132 acl_save_prefix
="$prefix"
16133 prefix
="$acl_final_prefix"
16134 acl_save_exec_prefix
="$exec_prefix"
16135 exec_prefix
="$acl_final_exec_prefix"
16137 eval additional_includedir
=\"$includedir\"
16138 eval additional_libdir
=\"$libdir\"
16140 exec_prefix
="$acl_save_exec_prefix"
16141 prefix
="$acl_save_prefix"
16144 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16145 if test "${with_libiconv_prefix+set}" = set; then
16146 withval
="$with_libiconv_prefix"
16148 if test "X$withval" = "Xno"; then
16151 if test "X$withval" = "X"; then
16153 acl_save_prefix
="$prefix"
16154 prefix
="$acl_final_prefix"
16155 acl_save_exec_prefix
="$exec_prefix"
16156 exec_prefix
="$acl_final_exec_prefix"
16158 eval additional_includedir
=\"$includedir\"
16159 eval additional_libdir
=\"$libdir\"
16161 exec_prefix
="$acl_save_exec_prefix"
16162 prefix
="$acl_save_prefix"
16165 additional_includedir
="$withval/include"
16166 additional_libdir
="$withval/lib"
16176 names_already_handled
=
16177 names_next_round
='iconv '
16178 while test -n "$names_next_round"; do
16179 names_this_round
="$names_next_round"
16181 for name
in $names_this_round; do
16183 for n
in $names_already_handled; do
16184 if test "$n" = "$name"; then
16185 already_handled
=yes
16189 if test -z "$already_handled"; then
16190 names_already_handled
="$names_already_handled $name"
16191 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16192 eval value
=\"\
$HAVE_LIB$uppername\"
16193 if test -n "$value"; then
16194 if test "$value" = yes; then
16195 eval value
=\"\
$LIB$uppername\"
16196 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16197 eval value
=\"\
$LTLIB$uppername\"
16198 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16207 if test $use_additional = yes; then
16208 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16209 found_dir
="$additional_libdir"
16210 found_so
="$additional_libdir/lib$name.$shlibext"
16211 if test -f "$additional_libdir/lib$name.la"; then
16212 found_la
="$additional_libdir/lib$name.la"
16215 if test -f "$additional_libdir/lib$name.$libext"; then
16216 found_dir
="$additional_libdir"
16217 found_a
="$additional_libdir/lib$name.$libext"
16218 if test -f "$additional_libdir/lib$name.la"; then
16219 found_la
="$additional_libdir/lib$name.la"
16224 if test "X$found_dir" = "X"; then
16225 for x
in $LDFLAGS $LTLIBICONV; do
16227 acl_save_prefix
="$prefix"
16228 prefix
="$acl_final_prefix"
16229 acl_save_exec_prefix
="$exec_prefix"
16230 exec_prefix
="$acl_final_exec_prefix"
16232 exec_prefix
="$acl_save_exec_prefix"
16233 prefix
="$acl_save_prefix"
16237 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16238 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16240 found_so
="$dir/lib$name.$shlibext"
16241 if test -f "$dir/lib$name.la"; then
16242 found_la
="$dir/lib$name.la"
16245 if test -f "$dir/lib$name.$libext"; then
16247 found_a
="$dir/lib$name.$libext"
16248 if test -f "$dir/lib$name.la"; then
16249 found_la
="$dir/lib$name.la"
16255 if test "X$found_dir" != "X"; then
16260 if test "X$found_dir" != "X"; then
16261 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16262 if test "X$found_so" != "X"; then
16263 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16264 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16267 for x
in $ltrpathdirs; do
16268 if test "X$x" = "X$found_dir"; then
16273 if test -z "$haveit"; then
16274 ltrpathdirs
="$ltrpathdirs $found_dir"
16276 if test "$hardcode_direct" = yes; then
16277 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16279 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16280 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16282 for x
in $rpathdirs; do
16283 if test "X$x" = "X$found_dir"; then
16288 if test -z "$haveit"; then
16289 rpathdirs
="$rpathdirs $found_dir"
16293 for x
in $LDFLAGS $LIBICONV; do
16295 acl_save_prefix
="$prefix"
16296 prefix
="$acl_final_prefix"
16297 acl_save_exec_prefix
="$exec_prefix"
16298 exec_prefix
="$acl_final_exec_prefix"
16300 exec_prefix
="$acl_save_exec_prefix"
16301 prefix
="$acl_save_prefix"
16303 if test "X$x" = "X-L$found_dir"; then
16308 if test -z "$haveit"; then
16309 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16311 if test "$hardcode_minus_L" != no
; then
16312 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16314 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16320 if test "X$found_a" != "X"; then
16321 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16323 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16326 additional_includedir
=
16327 case "$found_dir" in
16329 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16330 additional_includedir
="$basedir/include"
16333 if test "X$additional_includedir" != "X"; then
16334 if test "X$additional_includedir" != "X/usr/include"; then
16336 if test "X$additional_includedir" = "X/usr/local/include"; then
16337 if test -n "$GCC"; then
16339 linux
*) haveit
=yes;;
16343 if test -z "$haveit"; then
16344 for x
in $CPPFLAGS $INCICONV; do
16346 acl_save_prefix
="$prefix"
16347 prefix
="$acl_final_prefix"
16348 acl_save_exec_prefix
="$exec_prefix"
16349 exec_prefix
="$acl_final_exec_prefix"
16351 exec_prefix
="$acl_save_exec_prefix"
16352 prefix
="$acl_save_prefix"
16354 if test "X$x" = "X-I$additional_includedir"; then
16359 if test -z "$haveit"; then
16360 if test -d "$additional_includedir"; then
16361 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16367 if test -n "$found_la"; then
16368 save_libdir
="$libdir"
16369 case "$found_la" in
16370 */* |
*\\*) .
"$found_la" ;;
16371 *) .
"./$found_la" ;;
16373 libdir
="$save_libdir"
16374 for dep
in $dependency_libs; do
16377 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16378 if test "X$additional_libdir" != "X/usr/lib"; then
16380 if test "X$additional_libdir" = "X/usr/local/lib"; then
16381 if test -n "$GCC"; then
16383 linux
*) haveit
=yes;;
16387 if test -z "$haveit"; then
16389 for x
in $LDFLAGS $LIBICONV; do
16391 acl_save_prefix
="$prefix"
16392 prefix
="$acl_final_prefix"
16393 acl_save_exec_prefix
="$exec_prefix"
16394 exec_prefix
="$acl_final_exec_prefix"
16396 exec_prefix
="$acl_save_exec_prefix"
16397 prefix
="$acl_save_prefix"
16399 if test "X$x" = "X-L$additional_libdir"; then
16404 if test -z "$haveit"; then
16405 if test -d "$additional_libdir"; then
16406 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16410 for x
in $LDFLAGS $LTLIBICONV; do
16412 acl_save_prefix
="$prefix"
16413 prefix
="$acl_final_prefix"
16414 acl_save_exec_prefix
="$exec_prefix"
16415 exec_prefix
="$acl_final_exec_prefix"
16417 exec_prefix
="$acl_save_exec_prefix"
16418 prefix
="$acl_save_prefix"
16420 if test "X$x" = "X-L$additional_libdir"; then
16425 if test -z "$haveit"; then
16426 if test -d "$additional_libdir"; then
16427 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16434 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16435 if test "$enable_rpath" != no
; then
16437 for x
in $rpathdirs; do
16438 if test "X$x" = "X$dir"; then
16443 if test -z "$haveit"; then
16444 rpathdirs
="$rpathdirs $dir"
16447 for x
in $ltrpathdirs; do
16448 if test "X$x" = "X$dir"; then
16453 if test -z "$haveit"; then
16454 ltrpathdirs
="$ltrpathdirs $dir"
16459 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16462 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16465 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16466 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16472 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16473 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16479 if test "X$rpathdirs" != "X"; then
16480 if test -n "$hardcode_libdir_separator"; then
16482 for found_dir
in $rpathdirs; do
16483 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16485 acl_save_libdir
="$libdir"
16487 eval flag
=\"$hardcode_libdir_flag_spec\"
16488 libdir
="$acl_save_libdir"
16489 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16491 for found_dir
in $rpathdirs; do
16492 acl_save_libdir
="$libdir"
16493 libdir
="$found_dir"
16494 eval flag
=\"$hardcode_libdir_flag_spec\"
16495 libdir
="$acl_save_libdir"
16496 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16500 if test "X$ltrpathdirs" != "X"; then
16501 for found_dir
in $ltrpathdirs; do
16502 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16519 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16520 stdlib.h string.h unistd.h sys
/param.h
16522 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16532 # Is the header compilable?
16533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16535 cat >conftest.
$ac_ext <<_ACEOF
16538 cat confdefs.h
>>conftest.
$ac_ext
16539 cat >>conftest.
$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <$ac_header>
16544 rm -f conftest.
$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1
>conftest.err
16550 cat conftest.err
>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try
='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try
='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler
=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.
$ac_ext >&5
16571 ac_header_compiler
=no
16573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.
$ac_ext <<_ACEOF
16583 cat confdefs.h
>>conftest.
$ac_ext
16584 cat >>conftest.
$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <$ac_header>
16588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16591 grep -v '^ *+' conftest.er1
>conftest.err
16593 cat conftest.err
>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev
/null
; then
16596 if test -s conftest.err
; then
16597 ac_cpp_err
=$ac_c_preproc_warn_flag
16598 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc
=yes
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 ac_header_preproc
=no
16613 rm -f conftest.err conftest.
$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16624 ac_header_preproc
=yes
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16641 ## ------------------------------ ##
16642 ## Report this to admin@amule.org ##
16643 ## ------------------------------ ##
16646 sed "s/^/$as_me: WARNING: /" >&2
16649 echo "$as_me:$LINENO: checking for $ac_header" >&5
16650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 eval "$as_ac_Header=\$ac_header_preproc"
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h
<<_ACEOF
16662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16690 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16691 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16692 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16694 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16695 echo "$as_me:$LINENO: checking for $ac_func" >&5
16696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16697 if eval "test \"\${$as_ac_var+set}\" = set"; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 cat >conftest.
$ac_ext <<_ACEOF
16703 cat confdefs.h
>>conftest.
$ac_ext
16704 cat >>conftest.
$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16708 #define $ac_func innocuous_$ac_func
16710 /* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func (); below.
16712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713 <limits.h> exists even on freestanding compilers. */
16716 # include <limits.h>
16718 # include <assert.h>
16723 /* Override any gcc2 internal prototype to avoid an error. */
16728 /* We use char because int might match the return type of a gcc2
16729 builtin and then its argument prototype would still apply. */
16731 /* The GNU C library defines this for functions which it implements
16732 to always fail with ENOSYS. Some functions are actually named
16733 something starting with __ and the normal name is an alias. */
16734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16737 char (*f) () = $ac_func;
16746 return f != $ac_func;
16751 rm -f conftest.
$ac_objext conftest
$ac_exeext
16752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16753 (eval $ac_link) 2>conftest.er1
16755 grep -v '^ *+' conftest.er1
>conftest.err
16757 cat conftest.err
>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try
='test -z "$ac_c_werror_flag"
16761 || test ! -s conftest.err'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try
='test -s conftest$ac_exeext'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 eval "$as_ac_var=yes"
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.
$ac_ext >&5
16778 eval "$as_ac_var=no"
16780 rm -f conftest.err conftest.
$ac_objext \
16781 conftest
$ac_exeext conftest.
$ac_ext
16783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16785 if test `eval echo '${'$as_ac_var'}'` = yes; then
16786 cat >>confdefs.h
<<_ACEOF
16787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16799 am_save_CPPFLAGS
="$CPPFLAGS"
16801 for element
in $INCICONV; do
16803 for x
in $CPPFLAGS; do
16805 acl_save_prefix
="$prefix"
16806 prefix
="$acl_final_prefix"
16807 acl_save_exec_prefix
="$exec_prefix"
16808 exec_prefix
="$acl_final_exec_prefix"
16810 exec_prefix
="$acl_save_exec_prefix"
16811 prefix
="$acl_save_prefix"
16813 if test "X$x" = "X$element"; then
16818 if test -z "$haveit"; then
16819 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16824 echo "$as_me:$LINENO: checking for iconv" >&5
16825 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16826 if test "${am_cv_func_iconv+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 am_cv_func_iconv
="no, consider installing GNU libiconv"
16832 cat >conftest.
$ac_ext <<_ACEOF
16835 cat confdefs.h
>>conftest.
$ac_ext
16836 cat >>conftest.
$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 #include <stdlib.h>
16843 iconv_t cd = iconv_open("","");
16844 iconv(cd,NULL,NULL,NULL,NULL);
16850 rm -f conftest.
$ac_objext conftest
$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>conftest.er1
16854 grep -v '^ *+' conftest.er1
>conftest.err
16856 cat conftest.err
>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try
='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try
='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 am_cv_func_iconv
=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.
$ac_ext >&5
16878 rm -f conftest.err conftest.
$ac_objext \
16879 conftest
$ac_exeext conftest.
$ac_ext
16880 if test "$am_cv_func_iconv" != yes; then
16881 am_save_LIBS
="$LIBS"
16882 LIBS
="$LIBS $LIBICONV"
16883 cat >conftest.
$ac_ext <<_ACEOF
16886 cat confdefs.h
>>conftest.
$ac_ext
16887 cat >>conftest.
$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #include <stdlib.h>
16894 iconv_t cd = iconv_open("","");
16895 iconv(cd,NULL,NULL,NULL,NULL);
16901 rm -f conftest.
$ac_objext conftest
$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>conftest.er1
16905 grep -v '^ *+' conftest.er1
>conftest.err
16907 cat conftest.err
>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try
='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try
='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 am_cv_lib_iconv
=yes
16924 am_cv_func_iconv
=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.
$ac_ext >&5
16930 rm -f conftest.err conftest.
$ac_objext \
16931 conftest
$ac_exeext conftest.
$ac_ext
16932 LIBS
="$am_save_LIBS"
16936 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16937 echo "${ECHO_T}$am_cv_func_iconv" >&6
16938 if test "$am_cv_func_iconv" = yes; then
16940 cat >>confdefs.h
<<\_ACEOF
16941 #define HAVE_ICONV 1
16945 if test "$am_cv_lib_iconv" = yes; then
16946 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16947 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16948 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16949 echo "${ECHO_T}$LIBICONV" >&6
16951 CPPFLAGS
="$am_save_CPPFLAGS"
16958 if test "$am_cv_func_iconv" = yes; then
16959 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16960 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16961 if test "${am_cv_proto_iconv+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 cat >conftest.
$ac_ext <<_ACEOF
16968 cat confdefs.h
>>conftest.
$ac_ext
16969 cat >>conftest.
$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16972 #include <stdlib.h>
16978 #if defined(__STDC__) || defined(__cplusplus)
16979 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16992 rm -f conftest.
$ac_objext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16994 (eval $ac_compile) 2>conftest.er1
16996 grep -v '^ *+' conftest.er1
>conftest.err
16998 cat conftest.err
>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try
='test -z "$ac_c_werror_flag"
17002 || test ! -s conftest.err'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try
='test -s conftest.$ac_objext'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 am_cv_proto_iconv_arg1
=""
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.
$ac_ext >&5
17019 am_cv_proto_iconv_arg1
="const"
17021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17022 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);"
17025 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17026 echo "$as_me:$LINENO: result: ${ac_t:-
17027 }$am_cv_proto_iconv" >&5
17028 echo "${ECHO_T}${ac_t:-
17029 }$am_cv_proto_iconv" >&6
17031 cat >>confdefs.h
<<_ACEOF
17032 #define ICONV_CONST $am_cv_proto_iconv_arg1
17038 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17039 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17040 if test "${am_cv_langinfo_codeset+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 cat >conftest.
$ac_ext <<_ACEOF
17046 cat confdefs.h
>>conftest.
$ac_ext
17047 cat >>conftest.
$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 #include <langinfo.h>
17053 char* cs = nl_langinfo(CODESET);
17058 rm -f conftest.
$ac_objext conftest
$ac_exeext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17060 (eval $ac_link) 2>conftest.er1
17062 grep -v '^ *+' conftest.er1
>conftest.err
17064 cat conftest.err
>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try
='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try
='test -s conftest$ac_exeext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 am_cv_langinfo_codeset
=yes
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 am_cv_langinfo_codeset
=no
17087 rm -f conftest.err conftest.
$ac_objext \
17088 conftest
$ac_exeext conftest.
$ac_ext
17091 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
17092 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17093 if test $am_cv_langinfo_codeset = yes; then
17095 cat >>confdefs.h
<<\_ACEOF
17096 #define HAVE_LANGINFO_CODESET 1
17101 if test $ac_cv_header_locale_h = yes; then
17103 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
17104 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17105 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 cat >conftest.
$ac_ext <<_ACEOF
17111 cat confdefs.h
>>conftest.
$ac_ext
17112 cat >>conftest.
$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 #include <locale.h>
17123 rm -f conftest.
$ac_objext conftest
$ac_exeext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>conftest.er1
17127 grep -v '^ *+' conftest.er1
>conftest.err
17129 cat conftest.err
>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try
='test -z "$ac_c_werror_flag"
17133 || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try
='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 am_cv_val_LC_MESSAGES
=yes
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17150 am_cv_val_LC_MESSAGES
=no
17152 rm -f conftest.err conftest.
$ac_objext \
17153 conftest
$ac_exeext conftest.
$ac_ext
17155 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
17156 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17157 if test $am_cv_val_LC_MESSAGES = yes; then
17159 cat >>confdefs.h
<<\_ACEOF
17160 #define HAVE_LC_MESSAGES 1
17167 for ac_prog
in bison
17169 # Extract the first word of "$ac_prog", so it can be a program name with args.
17170 set dummy
$ac_prog; ac_word
=$2
17171 echo "$as_me:$LINENO: checking for $ac_word" >&5
17172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17173 if test "${ac_cv_prog_INTLBISON+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 if test -n "$INTLBISON"; then
17177 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
17179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17180 for as_dir
in $PATH
17183 test -z "$as_dir" && as_dir
=.
17184 for ac_exec_ext
in '' $ac_executable_extensions; do
17185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17186 ac_cv_prog_INTLBISON
="$ac_prog"
17187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17195 INTLBISON
=$ac_cv_prog_INTLBISON
17196 if test -n "$INTLBISON"; then
17197 echo "$as_me:$LINENO: result: $INTLBISON" >&5
17198 echo "${ECHO_T}$INTLBISON" >&6
17200 echo "$as_me:$LINENO: result: no" >&5
17201 echo "${ECHO_T}no" >&6
17204 test -n "$INTLBISON" && break
17207 if test -z "$INTLBISON"; then
17210 echo "$as_me:$LINENO: checking version of bison" >&5
17211 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17212 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17213 case $ac_prog_version in
17214 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
17215 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
17216 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
17217 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
17219 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
17220 echo "${ECHO_T}$ac_prog_version" >&6
17222 if test $ac_verc_fail = yes; then
17228 # Check whether --with-language or --without-language was given.
17229 if test "${with_language+set}" = set; then
17230 withval
="$with_language"
17231 if test "$withval" != "all"; then
17232 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
17251 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17252 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17253 # Check whether --enable-nls or --disable-nls was given.
17254 if test "${enable_nls+set}" = set; then
17255 enableval
="$enable_nls"
17260 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17261 echo "${ECHO_T}$USE_NLS" >&6
17265 BUILD_INCLUDED_LIBINTL
=no
17266 USE_INCLUDED_LIBINTL
=no
17272 if test "$USE_NLS" = "yes"; then
17273 gt_use_preinstalled_gnugettext
=no
17275 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17278 # Check whether --with-included-gettext or --without-included-gettext was given.
17279 if test "${with_included_gettext+set}" = set; then
17280 withval
="$with_included_gettext"
17281 nls_cv_force_use_gnu_gettext
=$withval
17283 nls_cv_force_use_gnu_gettext
=no
17285 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17288 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17289 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17296 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17298 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 cat >conftest.
$ac_ext <<_ACEOF
17304 cat confdefs.h
>>conftest.
$ac_ext
17305 cat >>conftest.
$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #include <libintl.h>
17308 extern int _nl_msg_cat_cntr;
17309 extern int *_nl_domain_bindings;
17313 bindtextdomain ("", "");
17314 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17319 rm -f conftest.
$ac_objext conftest
$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>conftest.er1
17323 grep -v '^ *+' conftest.er1
>conftest.err
17325 cat conftest.err
>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try
='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try
='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 gt_cv_func_gnugettext2_libc
=yes
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.
$ac_ext >&5
17346 gt_cv_func_gnugettext2_libc
=no
17348 rm -f conftest.err conftest.
$ac_objext \
17349 conftest
$ac_exeext conftest.
$ac_ext
17351 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17352 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17354 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17360 acl_save_prefix
="$prefix"
17361 prefix
="$acl_final_prefix"
17362 acl_save_exec_prefix
="$exec_prefix"
17363 exec_prefix
="$acl_final_exec_prefix"
17365 eval additional_includedir
=\"$includedir\"
17366 eval additional_libdir
=\"$libdir\"
17368 exec_prefix
="$acl_save_exec_prefix"
17369 prefix
="$acl_save_prefix"
17372 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17373 if test "${with_libintl_prefix+set}" = set; then
17374 withval
="$with_libintl_prefix"
17376 if test "X$withval" = "Xno"; then
17379 if test "X$withval" = "X"; then
17381 acl_save_prefix
="$prefix"
17382 prefix
="$acl_final_prefix"
17383 acl_save_exec_prefix
="$exec_prefix"
17384 exec_prefix
="$acl_final_exec_prefix"
17386 eval additional_includedir
=\"$includedir\"
17387 eval additional_libdir
=\"$libdir\"
17389 exec_prefix
="$acl_save_exec_prefix"
17390 prefix
="$acl_save_prefix"
17393 additional_includedir
="$withval/include"
17394 additional_libdir
="$withval/lib"
17404 names_already_handled
=
17405 names_next_round
='intl '
17406 while test -n "$names_next_round"; do
17407 names_this_round
="$names_next_round"
17409 for name
in $names_this_round; do
17411 for n
in $names_already_handled; do
17412 if test "$n" = "$name"; then
17413 already_handled
=yes
17417 if test -z "$already_handled"; then
17418 names_already_handled
="$names_already_handled $name"
17419 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17420 eval value
=\"\
$HAVE_LIB$uppername\"
17421 if test -n "$value"; then
17422 if test "$value" = yes; then
17423 eval value
=\"\
$LIB$uppername\"
17424 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17425 eval value
=\"\
$LTLIB$uppername\"
17426 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17435 if test $use_additional = yes; then
17436 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17437 found_dir
="$additional_libdir"
17438 found_so
="$additional_libdir/lib$name.$shlibext"
17439 if test -f "$additional_libdir/lib$name.la"; then
17440 found_la
="$additional_libdir/lib$name.la"
17443 if test -f "$additional_libdir/lib$name.$libext"; then
17444 found_dir
="$additional_libdir"
17445 found_a
="$additional_libdir/lib$name.$libext"
17446 if test -f "$additional_libdir/lib$name.la"; then
17447 found_la
="$additional_libdir/lib$name.la"
17452 if test "X$found_dir" = "X"; then
17453 for x
in $LDFLAGS $LTLIBINTL; do
17455 acl_save_prefix
="$prefix"
17456 prefix
="$acl_final_prefix"
17457 acl_save_exec_prefix
="$exec_prefix"
17458 exec_prefix
="$acl_final_exec_prefix"
17460 exec_prefix
="$acl_save_exec_prefix"
17461 prefix
="$acl_save_prefix"
17465 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17466 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17468 found_so
="$dir/lib$name.$shlibext"
17469 if test -f "$dir/lib$name.la"; then
17470 found_la
="$dir/lib$name.la"
17473 if test -f "$dir/lib$name.$libext"; then
17475 found_a
="$dir/lib$name.$libext"
17476 if test -f "$dir/lib$name.la"; then
17477 found_la
="$dir/lib$name.la"
17483 if test "X$found_dir" != "X"; then
17488 if test "X$found_dir" != "X"; then
17489 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17490 if test "X$found_so" != "X"; then
17491 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17492 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17495 for x
in $ltrpathdirs; do
17496 if test "X$x" = "X$found_dir"; then
17501 if test -z "$haveit"; then
17502 ltrpathdirs
="$ltrpathdirs $found_dir"
17504 if test "$hardcode_direct" = yes; then
17505 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17507 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17508 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17510 for x
in $rpathdirs; do
17511 if test "X$x" = "X$found_dir"; then
17516 if test -z "$haveit"; then
17517 rpathdirs
="$rpathdirs $found_dir"
17521 for x
in $LDFLAGS $LIBINTL; do
17523 acl_save_prefix
="$prefix"
17524 prefix
="$acl_final_prefix"
17525 acl_save_exec_prefix
="$exec_prefix"
17526 exec_prefix
="$acl_final_exec_prefix"
17528 exec_prefix
="$acl_save_exec_prefix"
17529 prefix
="$acl_save_prefix"
17531 if test "X$x" = "X-L$found_dir"; then
17536 if test -z "$haveit"; then
17537 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17539 if test "$hardcode_minus_L" != no
; then
17540 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17542 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17548 if test "X$found_a" != "X"; then
17549 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17551 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17554 additional_includedir
=
17555 case "$found_dir" in
17557 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17558 additional_includedir
="$basedir/include"
17561 if test "X$additional_includedir" != "X"; then
17562 if test "X$additional_includedir" != "X/usr/include"; then
17564 if test "X$additional_includedir" = "X/usr/local/include"; then
17565 if test -n "$GCC"; then
17567 linux
*) haveit
=yes;;
17571 if test -z "$haveit"; then
17572 for x
in $CPPFLAGS $INCINTL; do
17574 acl_save_prefix
="$prefix"
17575 prefix
="$acl_final_prefix"
17576 acl_save_exec_prefix
="$exec_prefix"
17577 exec_prefix
="$acl_final_exec_prefix"
17579 exec_prefix
="$acl_save_exec_prefix"
17580 prefix
="$acl_save_prefix"
17582 if test "X$x" = "X-I$additional_includedir"; then
17587 if test -z "$haveit"; then
17588 if test -d "$additional_includedir"; then
17589 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17595 if test -n "$found_la"; then
17596 save_libdir
="$libdir"
17597 case "$found_la" in
17598 */* |
*\\*) .
"$found_la" ;;
17599 *) .
"./$found_la" ;;
17601 libdir
="$save_libdir"
17602 for dep
in $dependency_libs; do
17605 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17606 if test "X$additional_libdir" != "X/usr/lib"; then
17608 if test "X$additional_libdir" = "X/usr/local/lib"; then
17609 if test -n "$GCC"; then
17611 linux
*) haveit
=yes;;
17615 if test -z "$haveit"; then
17617 for x
in $LDFLAGS $LIBINTL; do
17619 acl_save_prefix
="$prefix"
17620 prefix
="$acl_final_prefix"
17621 acl_save_exec_prefix
="$exec_prefix"
17622 exec_prefix
="$acl_final_exec_prefix"
17624 exec_prefix
="$acl_save_exec_prefix"
17625 prefix
="$acl_save_prefix"
17627 if test "X$x" = "X-L$additional_libdir"; then
17632 if test -z "$haveit"; then
17633 if test -d "$additional_libdir"; then
17634 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17638 for x
in $LDFLAGS $LTLIBINTL; do
17640 acl_save_prefix
="$prefix"
17641 prefix
="$acl_final_prefix"
17642 acl_save_exec_prefix
="$exec_prefix"
17643 exec_prefix
="$acl_final_exec_prefix"
17645 exec_prefix
="$acl_save_exec_prefix"
17646 prefix
="$acl_save_prefix"
17648 if test "X$x" = "X-L$additional_libdir"; then
17653 if test -z "$haveit"; then
17654 if test -d "$additional_libdir"; then
17655 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17662 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17663 if test "$enable_rpath" != no
; then
17665 for x
in $rpathdirs; do
17666 if test "X$x" = "X$dir"; then
17671 if test -z "$haveit"; then
17672 rpathdirs
="$rpathdirs $dir"
17675 for x
in $ltrpathdirs; do
17676 if test "X$x" = "X$dir"; then
17681 if test -z "$haveit"; then
17682 ltrpathdirs
="$ltrpathdirs $dir"
17687 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17690 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17693 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17694 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17700 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17701 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17707 if test "X$rpathdirs" != "X"; then
17708 if test -n "$hardcode_libdir_separator"; then
17710 for found_dir
in $rpathdirs; do
17711 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17713 acl_save_libdir
="$libdir"
17715 eval flag
=\"$hardcode_libdir_flag_spec\"
17716 libdir
="$acl_save_libdir"
17717 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17719 for found_dir
in $rpathdirs; do
17720 acl_save_libdir
="$libdir"
17721 libdir
="$found_dir"
17722 eval flag
=\"$hardcode_libdir_flag_spec\"
17723 libdir
="$acl_save_libdir"
17724 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17728 if test "X$ltrpathdirs" != "X"; then
17729 for found_dir
in $ltrpathdirs; do
17730 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17734 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17735 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17736 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 gt_save_CPPFLAGS
="$CPPFLAGS"
17740 CPPFLAGS
="$CPPFLAGS $INCINTL"
17741 gt_save_LIBS
="$LIBS"
17742 LIBS
="$LIBS $LIBINTL"
17743 cat >conftest.
$ac_ext <<_ACEOF
17746 cat confdefs.h
>>conftest.
$ac_ext
17747 cat >>conftest.
$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <libintl.h>
17750 extern int _nl_msg_cat_cntr;
17755 const char *_nl_expand_alias ();
17759 bindtextdomain ("", "");
17760 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17765 rm -f conftest.
$ac_objext conftest
$ac_exeext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767 (eval $ac_link) 2>conftest.er1
17769 grep -v '^ *+' conftest.er1
>conftest.err
17771 cat conftest.err
>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try
='test -z "$ac_c_werror_flag"
17775 || test ! -s conftest.err'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; } &&
17781 { ac_try
='test -s conftest$ac_exeext'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 gt_cv_func_gnugettext2_libintl
=yes
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.
$ac_ext >&5
17792 gt_cv_func_gnugettext2_libintl
=no
17794 rm -f conftest.err conftest.
$ac_objext \
17795 conftest
$ac_exeext conftest.
$ac_ext
17796 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17797 LIBS
="$LIBS $LIBICONV"
17798 cat >conftest.
$ac_ext <<_ACEOF
17801 cat confdefs.h
>>conftest.
$ac_ext
17802 cat >>conftest.
$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 #include <libintl.h>
17805 extern int _nl_msg_cat_cntr;
17810 const char *_nl_expand_alias ();
17814 bindtextdomain ("", "");
17815 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17820 rm -f conftest.
$ac_objext conftest
$ac_exeext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822 (eval $ac_link) 2>conftest.er1
17824 grep -v '^ *+' conftest.er1
>conftest.err
17826 cat conftest.err
>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try
='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try
='test -s conftest$ac_exeext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 LIBINTL
="$LIBINTL $LIBICONV"
17843 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17844 gt_cv_func_gnugettext2_libintl
=yes
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.
$ac_ext >&5
17851 rm -f conftest.err conftest.
$ac_objext \
17852 conftest
$ac_exeext conftest.
$ac_ext
17854 CPPFLAGS
="$gt_save_CPPFLAGS"
17855 LIBS
="$gt_save_LIBS"
17857 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17858 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17861 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17862 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17863 && test "$PACKAGE" != gettext; }; then
17864 gt_use_preinstalled_gnugettext
=yes
17872 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17873 nls_cv_use_gnu_gettext
=yes
17877 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17878 INTLOBJS
="\$(GETTOBJS)"
17879 BUILD_INCLUDED_LIBINTL
=yes
17880 USE_INCLUDED_LIBINTL
=yes
17881 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17882 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17883 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17886 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17887 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17892 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17893 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17895 cat >>confdefs.h
<<\_ACEOF
17896 #define ENABLE_NLS 1
17904 if test "$USE_NLS" = "yes"; then
17906 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17907 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17908 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17909 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17910 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17911 echo "${ECHO_T}$LIBINTL" >&6
17913 for element
in $INCINTL; do
17915 for x
in $CPPFLAGS; do
17917 acl_save_prefix
="$prefix"
17918 prefix
="$acl_final_prefix"
17919 acl_save_exec_prefix
="$exec_prefix"
17920 exec_prefix
="$acl_final_exec_prefix"
17922 exec_prefix
="$acl_save_exec_prefix"
17923 prefix
="$acl_save_prefix"
17925 if test "X$x" = "X$element"; then
17930 if test -z "$haveit"; then
17931 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17938 cat >>confdefs.h
<<\_ACEOF
17939 #define HAVE_GETTEXT 1
17943 cat >>confdefs.h
<<\_ACEOF
17944 #define HAVE_DCGETTEXT 1
17953 if test "$PACKAGE" = gettext; then
17954 BUILD_INCLUDED_LIBINTL
=yes
17962 nls_cv_header_intl
=
17963 nls_cv_header_libgt
=
17974 INTL_LIBTOOL_SUFFIX_PREFIX
=
17978 INTLLIBS
="$LIBINTL"
17985 if test $USE_INCLUDED_LIBINTL = yes; then
17986 INCINTL
=-I\
${top_builddir}/intl
17990 if test x
$USE_NLS = xyes
; then
17992 echo "$as_me:$LINENO: checking for autopoint" >&5
17993 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17994 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17995 if test -n "$autopoint_version"; then
17997 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17998 echo "${ECHO_T}yes ($autopoint_version)" >&6
18003 echo "$as_me:$LINENO: result: no" >&5
18004 echo "${ECHO_T}no" >&6
18012 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
18013 { echo "$as_me:$LINENO: WARNING:
18014 You need to install GNU gettext/gettext-tools to compile aMule with
18016 echo "$as_me: WARNING:
18017 You need to install GNU gettext/gettext-tools to compile aMule with
18018 i18n support." >&2;}
18019 _mule_warning_9
=yes
18020 _mule_has_warnings
=yes
18025 if test ${USE_NLS:-no} = yes; then
18027 echo "$as_me:$LINENO: checking for requested languages" >&5
18028 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
18029 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
18031 if test ${enable_amule_daemon:-no} = yes; then
18033 if test -z "$LINGUAS"; then
18034 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
18037 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18038 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
18042 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
18045 AMULE_DAEMON_MANPAGES
=
18051 if test ${enable_amulecmd:-no} = yes; then
18053 if test -z "$LINGUAS"; then
18054 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
18057 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18058 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
18062 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
18071 if test ${enable_webserver:-no} = yes; then
18073 if test -z "$LINGUAS"; then
18074 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
18077 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18078 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
18082 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
18085 WEBSERVER_MANPAGES
=
18091 if test ${enable_amule_gui:-no} = yes; then
18093 if test -z "$LINGUAS"; then
18094 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
18097 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18098 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
18102 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
18105 AMULE_GUI_MANPAGES
=
18111 if test ${enable_cas:-no} = yes; then
18113 if test -z "$LINGUAS"; then
18114 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
18117 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18118 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
18122 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
18131 if test ${enable_wxcas:-no} = yes; then
18133 if test -z "$LINGUAS"; then
18134 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
18137 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18138 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
18142 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
18151 if test ${enable_ed2k:-yes} = yes; then
18153 if test -z "$LINGUAS"; then
18154 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
18157 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18158 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
18162 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
18171 if test ${enable_alc:-no} = yes; then
18173 if test -z "$LINGUAS"; then
18174 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
18177 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18178 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
18182 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
18191 if test ${enable_alcc:-no} = yes; then
18193 if test -z "$LINGUAS"; then
18194 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
18197 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18198 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
18202 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
18211 if test ${enable_monolithic:-yes} = yes; then
18213 if test -z "$LINGUAS"; then
18214 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
18217 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
18218 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
18222 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
18225 MONOLITHIC_MANPAGES
=
18230 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
18231 echo "${ECHO_T}${LINGUAS:-all}" >&6
18238 # Check for bfd.h (to have proper backtraces without using wxExecute)
18240 echo "$as_me:$LINENO: checking for bfd" >&5
18241 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
18243 for bfd_ldadd
in "" "${LIBINTL}"; do
18244 mule_backup_LIBS
="$LIBS"
18245 mule_backup_LDFLAGS
="$LDFLAGS"
18246 LIBS
="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
18247 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
18248 cat >conftest.
$ac_ext <<_ACEOF
18252 cat confdefs.h
>>conftest.
$ac_ext
18253 cat >>conftest.
$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 #include <ansidecl.h>
18263 char *dummy = bfd_errmsg(bfd_get_error());
18270 rm -f conftest.
$ac_objext conftest
$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18274 grep -v '^ *+' conftest.er1
>conftest.err
18276 cat conftest.err
>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try
='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try
='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18294 BFD_CPPFLAGS
="-DHAVE_BFD"
18295 BFD_LIBS
="-lbfd -liberty ${bfd_ldadd}"
18296 LIBS
="$mule_backup_LIBS"
18297 LDFLAGS
="$mule_backup_LDFLAGS"
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.
$ac_ext >&5
18305 rm -f conftest.err conftest.
$ac_objext \
18306 conftest
$ac_exeext conftest.
$ac_ext
18307 LIBS
="$mule_backup_LIBS"
18308 LDFLAGS
="$mule_backup_LDFLAGS"
18311 echo "$as_me:$LINENO: result: $result" >&5
18312 echo "${ECHO_T}$result" >&6
18314 if test $result = no
; then
18315 { echo "$as_me:$LINENO: WARNING:
18316 bfd.h not found or unusable, please install binutils development
18317 package if you are a developer or want to help testing aMule" >&5
18318 echo "$as_me: WARNING:
18319 bfd.h not found or unusable, please install binutils development
18320 package if you are a developer or want to help testing aMule" >&2;}
18321 _mule_warning_10
=yes
18322 _mule_has_warnings
=yes
18329 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
18330 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
18331 cat >conftest.
$ac_ext <<_ACEOF
18335 cat confdefs.h
>>conftest.
$ac_ext
18336 cat >>conftest.
$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 #include <execinfo.h>
18346 int n = backtrace(&bt, 1);
18347 const char **bt_syms = backtrace_symbols(bt, n);
18354 rm -f conftest.
$ac_objext conftest
$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1
>conftest.err
18360 cat conftest.err
>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try
='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try
='test -s conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18379 cat >>confdefs.h
<<\_ACEOF
18380 #define HAVE_EXECINFO 1
18383 echo "$as_me:$LINENO: result: yes" >&5
18384 echo "${ECHO_T}yes" >&6
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.
$ac_ext >&5
18391 echo "$as_me:$LINENO: result: no" >&5
18392 echo "${ECHO_T}no" >&6
18395 rm -f conftest.err conftest.
$ac_objext \
18396 conftest
$ac_exeext conftest.
$ac_ext
18399 # Flush standard test results for speeding cache
18400 cat >confcache
<<\_ACEOF
18401 # This file is a shell script that caches the results of configure
18402 # tests run on this system so they can be shared between configure
18403 # scripts and configure runs, see configure's option --config-cache.
18404 # It is not useful on other systems. If it contains results you don't
18405 # want to keep, you may remove or edit it.
18407 # config.status only pays attention to the cache file if you give it
18408 # the --recheck option to rerun configure.
18410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18412 # following values.
18416 # The following way of writing the cache mishandles newlines in values,
18417 # but we know of no workaround that is simple, portable, and efficient.
18418 # So, don't put newlines in cache variables' values.
18419 # Ultrix sh set writes to stderr and can't be redirected directly,
18420 # and sets the high bit in the cache file unless we assign to the vars.
18423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18425 # `set' does not quote correctly, so add quotes (double-quote
18426 # substitution turns \\\\ into \\, and sed turns \\ into \).
18429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18432 # `set' quotes correctly as required by POSIX, so do not add quotes.
18434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18445 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18446 if test -w $cache_file; then
18447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18448 cat confcache
>$cache_file
18450 echo "not updating unwritable cache $cache_file"
18458 # Check whether --enable-debug or --disable-debug was given.
18459 if test "${enable_debug+set}" = set; then
18460 enableval
="$enable_debug"
18464 # Check whether --enable-profile or --disable-profile was given.
18465 if test "${enable_profile+set}" = set; then
18466 enableval
="$enable_profile"
18470 # Check whether --enable-optimize or --disable-optimize was given.
18471 if test "${enable_optimize+set}" = set; then
18472 enableval
="$enable_optimize"
18477 if test ${enable_debug:-yes} = yes; then
18479 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18481 MULECFLAGS
="$MULECFLAGS -g"
18482 MULECXXFLAGS
="$MULECXXFLAGS -g"
18484 if test ${GLIBCXX:-no} = yes; then
18485 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18488 if test ${GCC:-no} = yes; then
18490 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18491 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18495 if test ${SYS:-unknown} = win32
; then
18496 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18502 if test ${GCC:-no} = yes; then
18504 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18505 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18513 if test ${enable_profile:-no} = yes; then
18516 MULECFLAGS
="$MULECFLAGS -pg"
18517 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18519 MULELDFLAGS
="$MULELDFLAGS -pg"
18524 if test ${enable_optimize:-no} = yes; then
18526 MULECFLAGS
="$MULECFLAGS -O2"
18527 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18532 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18535 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18536 echo "$as_me:$LINENO: checking for docdir" >&5
18537 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18538 if test -z "$docdir"; then
18539 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18542 echo "$as_me:$LINENO: result: $docdir" >&5
18543 echo "${ECHO_T}$docdir" >&6
18545 # Try to set the SVN checkout-date
18546 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18547 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18548 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
18550 svndate
="rev. `cat $srcdir/.svn-revision`"
18551 elif test -d $srcdir/.svn
# SVNDATE for svn
18553 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18555 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18556 echo "${ECHO_T}${svndate:-None required}" >&6
18557 if test -n "$svndate"; then
18560 cat >>confdefs.h
<<_ACEOF
18561 #define SVNDATE "$svndate"
18564 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18572 # Check whether --with-denoise-level or --without-denoise-level was given.
18573 if test "${with_denoise_level+set}" = set; then
18574 withval
="$with_denoise_level"
18578 echo "$as_me:$LINENO: checking denoising level" >&5
18579 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18580 if test ${with_denoise_level:-5} = yes; then
18581 with_denoise_level
=5
18584 if test ${with_denoise_level:-5} = no
; then
18585 with_denoise_level
=0
18588 if test ${with_denoise_level:-5} -gt 4; then
18589 if test "${svndate:+set}" = "set"; then
18590 with_denoise_level
=0
18592 with_denoise_level
=4
18597 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18598 echo "${ECHO_T}$with_denoise_level" >&6
18600 ac_config_commands
="$ac_config_commands denoiser"
18604 if test ${enable_plasmamule:-no} = yes; then
18607 if test -z ${QT_MOC}; then
18609 for ac_prog
in moc-qt4 moc
18611 # Extract the first word of "$ac_prog", so it can be a program name with args.
18612 set dummy
$ac_prog; ac_word
=$2
18613 echo "$as_me:$LINENO: checking for $ac_word" >&5
18614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18615 if test "${ac_cv_path_QT_MOC+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
18623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18624 for as_dir
in $PATH
18627 test -z "$as_dir" && as_dir
=.
18628 for ac_exec_ext
in '' $ac_executable_extensions; do
18629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18630 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
18631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18640 QT_MOC
=$ac_cv_path_QT_MOC
18642 if test -n "$QT_MOC"; then
18643 echo "$as_me:$LINENO: result: $QT_MOC" >&5
18644 echo "${ECHO_T}$QT_MOC" >&6
18646 echo "$as_me:$LINENO: result: no" >&5
18647 echo "${ECHO_T}no" >&6
18650 test -n "$QT_MOC" && break
18656 echo "$as_me:$LINENO: checking for moc" >&5
18657 echo $ECHO_N "checking for moc... $ECHO_C" >&6
18658 if test -x ${QT_MOC}; then
18660 echo "$as_me:$LINENO: result: ${QT_MOC}" >&5
18661 echo "${ECHO_T}${QT_MOC}" >&6
18666 echo "$as_me:$LINENO: result: \"not found\"" >&5
18667 echo "${ECHO_T}\"not found\"" >&6
18677 if test "${QT_MOC}" != "not found"; then
18679 echo "$as_me:$LINENO: checking for moc version >= 4" >&5
18680 echo $ECHO_N "checking for moc version >= 4... $ECHO_C" >&6
18681 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
18682 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then
18684 echo "$as_me:$LINENO: result: found ${QT_MOC_VERSION}" >&5
18685 echo "${ECHO_T}found ${QT_MOC_VERSION}" >&6
18689 echo "$as_me:$LINENO: result: not found ${QT_MOC_VERSION} is too old" >&5
18690 echo "${ECHO_T}not found ${QT_MOC_VERSION} is too old" >&6
18699 if test "${QT_MOC}" = "not found"; then
18700 enable_plasmamule
=disabled
18704 if test ${enable_plasmamule:-no} = yes; then
18708 echo "$as_me:$LINENO: checking for qt" >&5
18709 echo $ECHO_N "checking for qt... $ECHO_C" >&6
18710 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then
18712 echo "$as_me:$LINENO: result: found" >&5
18713 echo "${ECHO_T}found" >&6
18714 echo "$as_me:$LINENO: checking for qt core cflags" >&5
18715 echo $ECHO_N "checking for qt core cflags... $ECHO_C" >&6
18716 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
18717 echo "$as_me:$LINENO: result: $QT_CORE_CFLAGS" >&5
18718 echo "${ECHO_T}$QT_CORE_CFLAGS" >&6
18719 echo "$as_me:$LINENO: checking for qt core libs" >&5
18720 echo $ECHO_N "checking for qt core libs... $ECHO_C" >&6
18721 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
18722 echo "$as_me:$LINENO: result: $QT_CORE_LIBS" >&5
18723 echo "${ECHO_T}$QT_CORE_LIBS" >&6
18724 echo "$as_me:$LINENO: checking for qt gui cflags" >&5
18725 echo $ECHO_N "checking for qt gui cflags... $ECHO_C" >&6
18726 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
18727 echo "$as_me:$LINENO: result: $QT_GUI_CFLAGS" >&5
18728 echo "${ECHO_T}$QT_GUI_CFLAGS" >&6
18729 echo "$as_me:$LINENO: checking for qt gui libs" >&5
18730 echo $ECHO_N "checking for qt gui libs... $ECHO_C" >&6
18731 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
18732 echo "$as_me:$LINENO: result: $QT_GUI_LIBS" >&5
18733 echo "${ECHO_T}$QT_GUI_LIBS" >&6
18736 echo "$as_me:$LINENO: result: not found" >&5
18737 echo "${ECHO_T}not found" >&6
18746 if test -z "${QT_CORE_CXXFLAGS}"; then
18747 enable_plasmamule
=disabled
18754 if test ${enable_plasmamule:-no} = yes; then
18757 if test -z ${KDE4_CONFIG}; then
18759 # Extract the first word of "kde4-config", so it can be a program name with args.
18760 set dummy kde4-config
; ac_word
=$2
18761 echo "$as_me:$LINENO: checking for $ac_word" >&5
18762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18763 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 case $KDE4_CONFIG in
18768 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
18771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18772 for as_dir
in $PATH
18775 test -z "$as_dir" && as_dir
=.
18776 for ac_exec_ext
in '' $ac_executable_extensions; do
18777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
18779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18788 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
18790 if test -n "$KDE4_CONFIG"; then
18791 echo "$as_me:$LINENO: result: $KDE4_CONFIG" >&5
18792 echo "${ECHO_T}$KDE4_CONFIG" >&6
18794 echo "$as_me:$LINENO: result: no" >&5
18795 echo "${ECHO_T}no" >&6
18801 echo "$as_me:$LINENO: checking for kde4-config" >&5
18802 echo $ECHO_N "checking for kde4-config... $ECHO_C" >&6
18803 if test ! -x KDE4_CONFIG
; then
18805 KDE4_CONFIG
="not found"
18806 echo "$as_me:$LINENO: result: not found" >&5
18807 echo "${ECHO_T}not found" >&6
18815 if test "${KDE4_CONFIG}" != "not found"; then
18817 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
18818 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then
18820 echo "$as_me:$LINENO: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
18821 echo "${ECHO_T}found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6
18825 echo "$as_me:$LINENO: result: not found" >&5
18826 echo "${ECHO_T}not found" >&6
18833 echo "$as_me:$LINENO: result: not found" >&5
18834 echo "${ECHO_T}not found" >&6
18840 if test "${KDE4_CONFIG}" = "not found"; then
18841 enable_plasmamule
=disabled
18848 if test ${enable_plasmamule:-no} = yes; then
18851 echo "$as_me:$LINENO: checking for kde4 headers" >&5
18852 echo $ECHO_N "checking for kde4 headers... $ECHO_C" >&6
18853 KDE_HEADER_DIR
=`${KDE4_CONFIG} --path include`
18855 if test -f ${KDE_HEADER_DIR}kdirwatch.h
; then
18857 if test -f ${KDE_HEADER_DIR}plasma
/dataengine.h
; then
18859 echo "$as_me:$LINENO: result: ${KDE_HEADER_DIR}" >&5
18860 echo "${ECHO_T}${KDE_HEADER_DIR}" >&6
18864 echo "$as_me:$LINENO: result: not found" >&5
18865 echo "${ECHO_T}not found" >&6
18872 echo "$as_me:$LINENO: result: not found2" >&5
18873 echo "${ECHO_T}not found2" >&6
18879 if test -z ${KDE_HEADER_DIR}; then
18880 enable_plasmamule
=disabled
18887 if test ${enable_plasmamule:-no} = yes; then
18889 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
18890 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then
18894 echo "$as_me:$LINENO: checking for kde4 applinks Path" >&5
18895 echo $ECHO_N "checking for kde4 applinks Path... $ECHO_C" >&6
18896 if test `echo ${prefix} | grep home | wc -l` == 1; then
18902 if test ${KDE_IN_HOME} = "yes"; then
18904 KDE_APPLNK_PATH
=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18908 if test -n ${prefix}; then
18910 KDE_APPLNK_PATH
=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
18911 if test -n ${KDE_APPLNK_PATH}; then
18913 KDE_APPLNK_PATH
=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
18920 KDE_APPLNK_PATH
=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
18927 echo "$as_me:$LINENO: result: ${KDE_APPLNK_PATH}" >&5
18928 echo "${ECHO_T}${KDE_APPLNK_PATH}" >&6
18933 echo "$as_me:$LINENO: checking for kde4 services Path" >&5
18934 echo $ECHO_N "checking for kde4 services Path... $ECHO_C" >&6
18935 if test `echo ${prefix} | grep home | wc -l` == 1; then
18941 if test ${KDE_IN_HOME} = "yes"; then
18943 KDE_SERVICE_PATH
=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18947 KDE_SERVICE_PATH
=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
18951 echo "$as_me:$LINENO: result: ${KDE_SERVICE_PATH}" >&5
18952 echo "${ECHO_T}${KDE_SERVICE_PATH}" >&6
18957 echo "$as_me:$LINENO: checking for kde4 plugins Path" >&5
18958 echo $ECHO_N "checking for kde4 plugins Path... $ECHO_C" >&6
18959 if test `echo ${prefix} | grep home | wc -l` == 1; then
18965 if test ${KDE_IN_HOME} = "yes"; then
18967 KDE_MODULE_PATH
=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18971 KDE_MODULE_PATH
=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
18975 echo "$as_me:$LINENO: result: ${KDE_MODULE_PATH}" >&5
18976 echo "${ECHO_T}${KDE_MODULE_PATH}" >&6
18981 echo "$as_me:$LINENO: checking for kde4 icons Path" >&5
18982 echo $ECHO_N "checking for kde4 icons Path... $ECHO_C" >&6
18983 if test `echo ${prefix} | grep home | wc -l` == 1; then
18989 if test ${KDE_IN_HOME} = "yes"; then
18991 KDE_ICON_PATH
=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
18995 KDE_ICON_PATH
=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
18999 KDE_ICON_PATH
=${KDE_ICON_PATH}hicolor
/scalable
/mimetypes
/
19000 echo "$as_me:$LINENO: result: ${KDE_ICON_PATH}" >&5
19001 echo "${ECHO_T}${KDE_ICON_PATH}" >&6
19006 echo "$as_me:$LINENO: checking for location for mime-type installation" >&5
19007 echo $ECHO_N "checking for location for mime-type installation... $ECHO_C" >&6
19008 if test `echo ${prefix} | grep home | wc -l` == 1; then
19014 if test ${KDE_IN_HOME} = "yes"; then
19016 KDE_MIME_PATH
=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
19020 if test -n ${prefix}; then
19022 KDE_MIME_PATH
=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
19023 if test -n ${KDE_MIME_PATH}; then
19025 KDE_MIME_PATH
=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
19032 KDE_MIME_PATH
=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
19039 echo "$as_me:$LINENO: result: ${KDE_MIME_PATH}" >&5
19040 echo "${ECHO_T}${KDE_MIME_PATH}" >&6
19045 enable_plasmamule
=disabled
19057 if test x
$SYS = xwin32
; then
19059 SYS_WIN32_FALSE
='#'
19067 if test x
$SYS = xwin32
-a "$RC" != ":"; then
19077 if test x
$SYS = xdarwin
; then
19078 NEED_CORESERVICES_TRUE
=
19079 NEED_CORESERVICES_FALSE
='#'
19081 NEED_CORESERVICES_TRUE
='#'
19082 NEED_CORESERVICES_FALSE
=
19087 if test x
$USE_NLS = xyes
; then
19089 COMPILE_NLS_FALSE
='#'
19091 COMPILE_NLS_TRUE
='#'
19097 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
19098 GENERATE_FLEX_HEADER_TRUE
=
19099 GENERATE_FLEX_HEADER_FALSE
='#'
19101 GENERATE_FLEX_HEADER_TRUE
='#'
19102 GENERATE_FLEX_HEADER_FALSE
=
19107 if test x
$INSTALL_SKINS = xyes
; then
19108 INSTALL_SKINS_TRUE
=
19109 INSTALL_SKINS_FALSE
='#'
19111 INSTALL_SKINS_TRUE
='#'
19112 INSTALL_SKINS_FALSE
=
19117 if test ${enable_plasmamule:-no} = yes; then
19119 PLASMAMULE_FALSE
='#'
19121 PLASMAMULE_TRUE
='#'
19128 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
19129 COMPILE_LIB_COMMON_TRUE
=
19130 COMPILE_LIB_COMMON_FALSE
='#'
19132 COMPILE_LIB_COMMON_TRUE
='#'
19133 COMPILE_LIB_COMMON_FALSE
=
19138 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
19139 COMPILE_LIB_EC_TRUE
=
19140 COMPILE_LIB_EC_FALSE
='#'
19142 COMPILE_LIB_EC_TRUE
='#'
19143 COMPILE_LIB_EC_FALSE
=
19147 # Check for readline library
19148 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then
19150 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
19151 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
19152 if test "${vl_cv_lib_readline+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 for readline_lib
in readline edit editline
; do
19158 for termcap_lib
in "" termcap curses ncurses
; do
19159 if test -z "$termcap_lib"; then
19160 TRY_LIB
="-l$readline_lib"
19162 TRY_LIB
="-l$readline_lib -l$termcap_lib"
19164 LIBS
="$ORIG_LIBS $TRY_LIB"
19165 cat >conftest.
$ac_ext <<_ACEOF
19168 cat confdefs.h
>>conftest.
$ac_ext
19169 cat >>conftest.
$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19172 /* Override any gcc2 internal prototype to avoid an error. */
19176 /* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
19187 rm -f conftest.
$ac_objext conftest
$ac_exeext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189 (eval $ac_link) 2>conftest.er1
19191 grep -v '^ *+' conftest.er1
>conftest.err
19193 cat conftest.err
>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try
='test -z "$ac_c_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try
='test -s conftest$ac_exeext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 vl_cv_lib_readline
="$TRY_LIB"
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.
$ac_ext >&5
19215 rm -f conftest.err conftest.
$ac_objext \
19216 conftest
$ac_exeext conftest.
$ac_ext
19217 if test -n "$vl_cv_lib_readline"; then
19221 if test -n "$vl_cv_lib_readline"; then
19225 if test -z "$vl_cv_lib_readline"; then
19226 vl_cv_lib_readline
="no"
19230 READLINE_LIBS
="$vl_cv_lib_readline"
19234 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
19235 echo "${ECHO_T}$vl_cv_lib_readline" >&6
19237 if test "$vl_cv_lib_readline" != "no"; then
19239 cat >>confdefs.h
<<\_ACEOF
19240 #define HAVE_LIBREADLINE 1
19245 for ac_header
in readline.h readline
/readline.h
19247 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19249 echo "$as_me:$LINENO: checking for $ac_header" >&5
19250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19257 # Is the header compilable?
19258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19260 cat >conftest.
$ac_ext <<_ACEOF
19263 cat confdefs.h
>>conftest.
$ac_ext
19264 cat >>conftest.
$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 $ac_includes_default
19267 #include <$ac_header>
19269 rm -f conftest.
$ac_objext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271 (eval $ac_compile) 2>conftest.er1
19273 grep -v '^ *+' conftest.er1
>conftest.err
19275 cat conftest.err
>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try
='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try
='test -s conftest.$ac_objext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_header_compiler
=yes
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.
$ac_ext >&5
19296 ac_header_compiler
=no
19298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19300 echo "${ECHO_T}$ac_header_compiler" >&6
19302 # Is the header present?
19303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19305 cat >conftest.
$ac_ext <<_ACEOF
19308 cat confdefs.h
>>conftest.
$ac_ext
19309 cat >>conftest.
$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 #include <$ac_header>
19313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19314 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19316 grep -v '^ *+' conftest.er1
>conftest.err
19318 cat conftest.err
>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } >/dev
/null
; then
19321 if test -s conftest.err
; then
19322 ac_cpp_err
=$ac_c_preproc_warn_flag
19323 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19330 if test -z "$ac_cpp_err"; then
19331 ac_header_preproc
=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.
$ac_ext >&5
19336 ac_header_preproc
=no
19338 rm -f conftest.err conftest.
$ac_ext
19339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19340 echo "${ECHO_T}$ac_header_preproc" >&6
19342 # So? What about this header?
19343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19349 ac_header_preproc
=yes
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19366 ## ------------------------------ ##
19367 ## Report this to admin@amule.org ##
19368 ## ------------------------------ ##
19371 sed "s/^/$as_me: WARNING: /" >&2
19374 echo "$as_me:$LINENO: checking for $ac_header" >&5
19375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 eval "$as_ac_Header=\$ac_header_preproc"
19381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19386 cat >>confdefs.h
<<_ACEOF
19387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19394 echo "$as_me:$LINENO: checking whether readline supports history" >&5
19395 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
19396 if test "${vl_cv_lib_readline_history+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 vl_cv_lib_readline_history
="no"
19401 cat >conftest.
$ac_ext <<_ACEOF
19404 cat confdefs.h
>>conftest.
$ac_ext
19405 cat >>conftest.
$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any gcc2 internal prototype to avoid an error. */
19412 /* We use char because int might match the return type of a gcc2
19413 builtin and then its argument prototype would still apply. */
19414 char add_history ();
19423 rm -f conftest.
$ac_objext conftest
$ac_exeext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425 (eval $ac_link) 2>conftest.er1
19427 grep -v '^ *+' conftest.er1
>conftest.err
19429 cat conftest.err
>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try
='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try
='test -s conftest$ac_exeext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 vl_cv_lib_readline_history
="yes"
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.
$ac_ext >&5
19451 rm -f conftest.err conftest.
$ac_objext \
19452 conftest
$ac_exeext conftest.
$ac_ext
19455 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
19456 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
19457 if test "$vl_cv_lib_readline_history" = "yes"; then
19459 cat >>confdefs.h
<<\_ACEOF
19460 #define HAVE_READLINE_HISTORY 1
19465 for ac_header
in history.h readline
/history.h
19467 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469 echo "$as_me:$LINENO: checking for $ac_header" >&5
19470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19477 # Is the header compilable?
19478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19480 cat >conftest.
$ac_ext <<_ACEOF
19483 cat confdefs.h
>>conftest.
$ac_ext
19484 cat >>conftest.
$ac_ext <<_ACEOF
19485 /* end confdefs.h. */
19486 $ac_includes_default
19487 #include <$ac_header>
19489 rm -f conftest.
$ac_objext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19491 (eval $ac_compile) 2>conftest.er1
19493 grep -v '^ *+' conftest.er1
>conftest.err
19495 cat conftest.err
>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
19498 { ac_try
='test -z "$ac_c_werror_flag"
19499 || test ! -s conftest.err'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try
='test -s conftest.$ac_objext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 ac_header_compiler
=yes
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.
$ac_ext >&5
19516 ac_header_compiler
=no
19518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19520 echo "${ECHO_T}$ac_header_compiler" >&6
19522 # Is the header present?
19523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19525 cat >conftest.
$ac_ext <<_ACEOF
19528 cat confdefs.h
>>conftest.
$ac_ext
19529 cat >>conftest.
$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 #include <$ac_header>
19533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19534 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1
>conftest.err
19538 cat conftest.err
>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } >/dev
/null
; then
19541 if test -s conftest.err
; then
19542 ac_cpp_err
=$ac_c_preproc_warn_flag
19543 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19550 if test -z "$ac_cpp_err"; then
19551 ac_header_preproc
=yes
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.
$ac_ext >&5
19556 ac_header_preproc
=no
19558 rm -f conftest.err conftest.
$ac_ext
19559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19560 echo "${ECHO_T}$ac_header_preproc" >&6
19562 # So? What about this header?
19563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19569 ac_header_preproc
=yes
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19586 ## ------------------------------ ##
19587 ## Report this to admin@amule.org ##
19588 ## ------------------------------ ##
19591 sed "s/^/$as_me: WARNING: /" >&2
19594 echo "$as_me:$LINENO: checking for $ac_header" >&5
19595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 eval "$as_ac_Header=\$ac_header_preproc"
19601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19606 cat >>confdefs.h
<<_ACEOF
19607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19622 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
19625 # Check whether --enable-ccache or --disable-ccache was given.
19626 if test "${enable_ccache+set}" = set; then
19627 enableval
="$enable_ccache"
19633 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
19634 if test "${with_ccache_prefix+set}" = set; then
19635 withval
="$with_ccache_prefix"
19639 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
19640 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
19641 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19642 echo "${ECHO_T}${enable_ccache:-no}" >&6
19644 if test ${enable_ccache:-no} = yes; then
19646 echo "$as_me:$LINENO: checking for ccache presence" >&5
19647 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
19648 if test -z "$with_ccache_prefix"; then
19650 ccache_full
=`which ccache`
19651 with_ccache_prefix
=`dirname ${ccache_full}`
19655 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
19657 CC
="$with_ccache_prefix/ccache $CC"
19658 CXX
="$with_ccache_prefix/ccache $CXX"
19659 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
19665 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
19666 echo "${ECHO_T}${enable_ccache:-no}" >&6
19672 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"
19674 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
19676 if test x
$SYS = xwin32
; then
19677 ac_config_files
="$ac_config_files version.rc"
19681 cat >confcache
<<\_ACEOF
19682 # This file is a shell script that caches the results of configure
19683 # tests run on this system so they can be shared between configure
19684 # scripts and configure runs, see configure's option --config-cache.
19685 # It is not useful on other systems. If it contains results you don't
19686 # want to keep, you may remove or edit it.
19688 # config.status only pays attention to the cache file if you give it
19689 # the --recheck option to rerun configure.
19691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19693 # following values.
19697 # The following way of writing the cache mishandles newlines in values,
19698 # but we know of no workaround that is simple, portable, and efficient.
19699 # So, don't put newlines in cache variables' values.
19700 # Ultrix sh set writes to stderr and can't be redirected directly,
19701 # and sets the high bit in the cache file unless we assign to the vars.
19704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19706 # `set' does not quote correctly, so add quotes (double-quote
19707 # substitution turns \\\\ into \\, and sed turns \\ into \).
19710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19713 # `set' quotes correctly as required by POSIX, so do not add quotes.
19715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19726 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19727 if test -w $cache_file; then
19728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19729 cat confcache
>$cache_file
19731 echo "not updating unwritable cache $cache_file"
19736 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19737 # Let make expand exec_prefix.
19738 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19740 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19741 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19742 # trailing colons and then remove the whole line if VPATH becomes empty
19743 # (actually we leave an empty line to preserve line numbers).
19744 if test "x$srcdir" = x.
; then
19745 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19746 s/:*\$(srcdir):*/:/;
19747 s/:*\${srcdir}:*/:/;
19749 s/^\([^=]*=[ ]*\):*/\1/;
19755 DEFS
=-DHAVE_CONFIG_H
19759 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19760 # 1. Remove the extension, and $U if already installed.
19761 ac_i
=`echo "$ac_i" |
19762 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19764 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19765 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19767 LIBOBJS
=$ac_libobjs
19769 LTLIBOBJS
=$ac_ltlibobjs
19772 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19773 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&5
19775 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19776 Usually this means the macro was only invoked conditionally." >&2;}
19777 { (exit 1); exit 1; }; }
19779 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19780 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&5
19782 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19783 Usually this means the macro was only invoked conditionally." >&2;}
19784 { (exit 1); exit 1; }; }
19786 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19787 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&5
19789 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19790 Usually this means the macro was only invoked conditionally." >&2;}
19791 { (exit 1); exit 1; }; }
19793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19795 Usually this means the macro was only invoked conditionally." >&5
19796 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19797 Usually this means the macro was only invoked conditionally." >&2;}
19798 { (exit 1); exit 1; }; }
19800 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19801 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19802 Usually this means the macro was only invoked conditionally." >&5
19803 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19804 Usually this means the macro was only invoked conditionally." >&2;}
19805 { (exit 1); exit 1; }; }
19807 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19808 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19809 Usually this means the macro was only invoked conditionally." >&5
19810 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19811 Usually this means the macro was only invoked conditionally." >&2;}
19812 { (exit 1); exit 1; }; }
19814 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19815 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19816 Usually this means the macro was only invoked conditionally." >&5
19817 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19818 Usually this means the macro was only invoked conditionally." >&2;}
19819 { (exit 1); exit 1; }; }
19821 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19822 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19823 Usually this means the macro was only invoked conditionally." >&5
19824 echo "$as_me: error: conditional \"WEB\" was never defined.
19825 Usually this means the macro was only invoked conditionally." >&2;}
19826 { (exit 1); exit 1; }; }
19828 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19829 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19830 Usually this means the macro was only invoked conditionally." >&5
19831 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19832 Usually this means the macro was only invoked conditionally." >&2;}
19833 { (exit 1); exit 1; }; }
19835 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19836 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19837 Usually this means the macro was only invoked conditionally." >&5
19838 echo "$as_me: error: conditional \"CAS\" was never defined.
19839 Usually this means the macro was only invoked conditionally." >&2;}
19840 { (exit 1); exit 1; }; }
19842 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19843 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19844 Usually this means the macro was only invoked conditionally." >&5
19845 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19846 Usually this means the macro was only invoked conditionally." >&2;}
19847 { (exit 1); exit 1; }; }
19849 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19850 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19851 Usually this means the macro was only invoked conditionally." >&5
19852 echo "$as_me: error: conditional \"ED2K\" was never defined.
19853 Usually this means the macro was only invoked conditionally." >&2;}
19854 { (exit 1); exit 1; }; }
19856 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19857 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19858 Usually this means the macro was only invoked conditionally." >&5
19859 echo "$as_me: error: conditional \"ALC\" was never defined.
19860 Usually this means the macro was only invoked conditionally." >&2;}
19861 { (exit 1); exit 1; }; }
19863 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19864 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19865 Usually this means the macro was only invoked conditionally." >&5
19866 echo "$as_me: error: conditional \"ALCC\" was never defined.
19867 Usually this means the macro was only invoked conditionally." >&2;}
19868 { (exit 1); exit 1; }; }
19870 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
19871 { { echo "$as_me:$LINENO: error: conditional \"XAS\" was never defined.
19872 Usually this means the macro was only invoked conditionally." >&5
19873 echo "$as_me: error: conditional \"XAS\" was never defined.
19874 Usually this means the macro was only invoked conditionally." >&2;}
19875 { (exit 1); exit 1; }; }
19877 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
19878 { { echo "$as_me:$LINENO: error: conditional \"FILEVIEW\" was never defined.
19879 Usually this means the macro was only invoked conditionally." >&5
19880 echo "$as_me: error: conditional \"FILEVIEW\" was never defined.
19881 Usually this means the macro was only invoked conditionally." >&2;}
19882 { (exit 1); exit 1; }; }
19884 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19885 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19886 Usually this means the macro was only invoked conditionally." >&5
19887 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19888 Usually this means the macro was only invoked conditionally." >&2;}
19889 { (exit 1); exit 1; }; }
19891 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19892 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19893 Usually this means the macro was only invoked conditionally." >&5
19894 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19895 Usually this means the macro was only invoked conditionally." >&2;}
19896 { (exit 1); exit 1; }; }
19898 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19899 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&5
19901 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19902 Usually this means the macro was only invoked conditionally." >&2;}
19903 { (exit 1); exit 1; }; }
19905 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19906 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&5
19908 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19909 Usually this means the macro was only invoked conditionally." >&2;}
19910 { (exit 1); exit 1; }; }
19912 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19913 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&5
19915 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19916 Usually this means the macro was only invoked conditionally." >&2;}
19917 { (exit 1); exit 1; }; }
19919 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
19920 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SKINS\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&5
19922 echo "$as_me: error: conditional \"INSTALL_SKINS\" was never defined.
19923 Usually this means the macro was only invoked conditionally." >&2;}
19924 { (exit 1); exit 1; }; }
19926 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
19927 { { echo "$as_me:$LINENO: error: conditional \"PLASMAMULE\" was never defined.
19928 Usually this means the macro was only invoked conditionally." >&5
19929 echo "$as_me: error: conditional \"PLASMAMULE\" was never defined.
19930 Usually this means the macro was only invoked conditionally." >&2;}
19931 { (exit 1); exit 1; }; }
19933 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
19934 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_LIB_COMMON\" was never defined.
19935 Usually this means the macro was only invoked conditionally." >&5
19936 echo "$as_me: error: conditional \"COMPILE_LIB_COMMON\" was never defined.
19937 Usually this means the macro was only invoked conditionally." >&2;}
19938 { (exit 1); exit 1; }; }
19940 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
19941 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_LIB_EC\" was never defined.
19942 Usually this means the macro was only invoked conditionally." >&5
19943 echo "$as_me: error: conditional \"COMPILE_LIB_EC\" was never defined.
19944 Usually this means the macro was only invoked conditionally." >&2;}
19945 { (exit 1); exit 1; }; }
19948 : ${CONFIG_STATUS=./config.status}
19949 ac_clean_files_save
=$ac_clean_files
19950 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19951 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19952 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19953 cat >$CONFIG_STATUS <<_ACEOF
19955 # Generated by $as_me.
19956 # Run this file to recreate the current configuration.
19957 # Compiler output produced by configure, useful for debugging
19958 # configure, is in config.log if it exists.
19961 ac_cs_recheck=false
19963 SHELL=\${CONFIG_SHELL-$SHELL}
19966 cat >>$CONFIG_STATUS <<\_ACEOF
19967 ## --------------------- ##
19968 ## M4sh Initialization. ##
19969 ## --------------------- ##
19971 # Be Bourne compatible
19972 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19976 # is contrary to our usage. Disable this feature.
19977 alias -g '${1+"$@"}'='"$@"'
19978 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19981 DUALCASE
=1; export DUALCASE
# for MKS sh
19983 # Support unset when possible.
19984 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19991 # Work around bugs in pre-3.0 UWIN ksh.
19992 $as_unset ENV MAIL MAILPATH
19999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20001 LC_TELEPHONE LC_TIME
20003 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20004 eval $as_var=C
; export $as_var
20010 # Required to use basename.
20011 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20017 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
20018 as_basename
=basename
20024 # Name of the executable.
20025 as_me
=`$as_basename "$0" ||
20026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20027 X"$0" : 'X\(//\)$' \| \
20028 X"$0" : 'X\(/\)$' \| \
20029 . : '\(.\)' 2>/dev/null ||
20031 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20032 /^X\/\(\/\/\)$/{ s//\1/; q; }
20033 /^X\/\(\/\).*/{ s//\1/; q; }
20037 # PATH needs CR, and LINENO needs CR and PATH.
20038 # Avoid depending upon Character Ranges.
20039 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20040 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20041 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20042 as_cr_digits
='0123456789'
20043 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20045 # The user is always right.
20046 if test "${PATH_SEPARATOR+set}" != set; then
20047 echo "#! /bin/sh" >conf$$.sh
20048 echo "exit 0" >>conf$$.sh
20050 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20059 as_lineno_1
=$LINENO
20060 as_lineno_2
=$LINENO
20061 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20062 test "x$as_lineno_1" != "x$as_lineno_2" &&
20063 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
20064 # Find who we are. Look in the path if we contain no path at all
20067 *[\\/]* ) as_myself
=$0 ;;
20068 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20069 for as_dir
in $PATH
20072 test -z "$as_dir" && as_dir
=.
20073 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20078 # We did not find ourselves, most probably we were run as `sh COMMAND'
20079 # in which case we are not to be found in the path.
20080 if test "x$as_myself" = x
; then
20083 if test ! -f "$as_myself"; then
20084 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20085 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20086 { (exit 1); exit 1; }; }
20088 case $CONFIG_SHELL in
20090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20091 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
20094 test -z "$as_dir" && as_dir
=.
20095 for as_base
in sh bash ksh sh5
; do
20098 if ("$as_dir/$as_base" -c '
20099 as_lineno_1=$LINENO
20100 as_lineno_2=$LINENO
20101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20102 test "x$as_lineno_1" != "x$as_lineno_2" &&
20103 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
20104 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
20105 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
20106 CONFIG_SHELL
=$as_dir/$as_base
20107 export CONFIG_SHELL
20108 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20117 # uniformly replaced by the line number. The first 'sed' inserts a
20118 # line-number line before each line; the second 'sed' does the real
20119 # work. The second script uses 'N' to pair each line-number line
20120 # with the numbered line, and appends trailing '-' during
20121 # substitution so that $LINENO is not a special case at line end.
20122 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20123 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20124 sed '=' <$as_myself |
20129 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20132 s,^['$as_cr_digits']*\n,,
20133 ' >$as_me.lineno
&&
20134 chmod +x
$as_me.lineno ||
20135 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20136 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20137 { (exit 1); exit 1; }; }
20139 # Don't try to exec as it changes $[0], causing all sort of problems
20140 # (the dirname of $[0] is not the place where we might find the
20141 # original and so on. Autoconf is especially sensible to this).
20143 # Exit status is that of the last command.
20148 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20149 *c
*,-n*) ECHO_N
= ECHO_C
='
20151 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20152 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20155 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20161 rm -f conf$$ conf$$.exe conf$$.
file
20163 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20164 # We could just check for DJGPP; but this test a) works b) is more generic
20165 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20166 if test -f conf$$.exe
; then
20167 # Don't use ln at all; we don't have any links
20172 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20177 rm -f conf$$ conf$$.exe conf$$.
file
20179 if mkdir
-p .
2>/dev
/null
; then
20182 test -d .
/-p && rmdir .
/-p
20186 as_executable_p
="test -f"
20188 # Sed expression to map a string onto a valid CPP name.
20189 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20191 # Sed expression to map a string onto a valid variable name.
20192 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20196 # We need space, tab and new line, in precisely that order.
20206 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20207 # report actual input values of CONFIG_FILES etc. instead of their
20208 # values after options handling. Logging --version etc. is OK.
20212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20213 ## Running $as_me. ##
20218 This file was extended by aMule $as_me SVN, which was
20219 generated by GNU Autoconf 2.59. Invocation command line was
20221 CONFIG_FILES = $CONFIG_FILES
20222 CONFIG_HEADERS = $CONFIG_HEADERS
20223 CONFIG_LINKS = $CONFIG_LINKS
20224 CONFIG_COMMANDS = $CONFIG_COMMANDS
20228 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20232 # Files that config.status was made for.
20233 if test -n "$ac_config_files"; then
20234 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20237 if test -n "$ac_config_headers"; then
20238 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20241 if test -n "$ac_config_links"; then
20242 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20245 if test -n "$ac_config_commands"; then
20246 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20249 cat >>$CONFIG_STATUS <<\_ACEOF
20252 \`$as_me' instantiates files from templates according to the
20253 current configuration.
20255 Usage: $0 [OPTIONS] [FILE]...
20257 -h, --help print this help, then exit
20258 -V, --version print version number, then exit
20259 -q, --quiet do not print progress messages
20260 -d, --debug don't remove temporary files
20261 --recheck update $as_me by reconfiguring in the same conditions
20262 --file=FILE[:TEMPLATE]
20263 instantiate the configuration file FILE
20264 --header=FILE[:TEMPLATE]
20265 instantiate the configuration header FILE
20267 Configuration files:
20270 Configuration headers:
20273 Configuration commands:
20276 Report bugs to <bug-autoconf@gnu.org>."
20279 cat >>$CONFIG_STATUS <<_ACEOF
20281 aMule config.status SVN
20282 configured by $0, generated by GNU Autoconf 2.59,
20283 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20285 Copyright (C) 2003 Free Software Foundation, Inc.
20286 This config.status script is free software; the Free Software Foundation
20287 gives unlimited permission to copy, distribute and modify it."
20292 cat >>$CONFIG_STATUS <<\_ACEOF
20293 # If no file are specified by the user, then we need to provide default
20294 # value. By we need to know if files were specified by the user.
20300 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20301 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20309 *) # This is not an option, so the user has probably given explicit
20312 ac_need_defaults
=false
;;
20316 # Handling of the options.
20318 cat >>$CONFIG_STATUS <<\_ACEOF
20319 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20321 --version |
--vers* |
-V )
20322 echo "$ac_cs_version"; exit 0 ;;
20324 # Conflict between --help and --header
20325 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20326 Try \`$0 --help' for more information." >&5
20327 echo "$as_me: error: ambiguous option: $1
20328 Try \`$0 --help' for more information." >&2;}
20329 { (exit 1); exit 1; }; };;
20330 --help |
--hel |
-h )
20331 echo "$ac_cs_usage"; exit 0 ;;
20332 --debug |
--d* |
-d )
20334 --file |
--fil |
--fi |
--f )
20336 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20337 ac_need_defaults
=false
;;
20338 --header |
--heade |
--head |
--hea )
20340 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20341 ac_need_defaults
=false
;;
20342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20343 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20346 # This is an error.
20347 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20348 Try \`$0 --help' for more information." >&5
20349 echo "$as_me: error: unrecognized option: $1
20350 Try \`$0 --help' for more information." >&2;}
20351 { (exit 1); exit 1; }; } ;;
20353 *) ac_config_targets
="$ac_config_targets $1" ;;
20359 ac_configure_extra_args
=
20361 if $ac_cs_silent; then
20363 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20367 cat >>$CONFIG_STATUS <<_ACEOF
20368 if \$ac_cs_recheck; then
20369 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20370 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20375 cat >>$CONFIG_STATUS <<_ACEOF
20377 # INIT-COMMANDS section.
20380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20381 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20382 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20384 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
20385 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20386 LINGUAS="${LINGUAS-%UNSET%}"
20388 denoiserlevel=$with_denoise_level
20394 cat >>$CONFIG_STATUS <<\_ACEOF
20395 for ac_config_target
in $ac_config_targets
20397 case "$ac_config_target" in
20398 # Handling of arguments.
20399 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20400 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
20401 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
20402 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
20403 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20404 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
20405 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
20406 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
20407 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
20408 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
20409 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
20410 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
20411 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
20412 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
20413 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
20414 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
20415 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
20416 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
20417 "src/utils/plasmamule/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
20418 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
20419 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
20420 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
20421 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
20422 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
20423 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
20424 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
20425 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
20426 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
20427 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
20428 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
20429 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
20430 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
20431 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
20432 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
20433 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
20434 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20435 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20436 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
20437 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20438 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20440 { (exit 1); exit 1; }; };;
20444 # If the user did not use the arguments to specify the items to instantiate,
20445 # then the envvar interface is used. Set only those that are not.
20446 # We use the long form for the default assignment because of an extremely
20447 # bizarre bug on SunOS 4.1.3.
20448 if $ac_need_defaults; then
20449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20454 # Have a temporary directory for convenience. Make it in the build tree
20455 # simply because there is no reason to put it here, and in addition,
20456 # creating and moving files from /tmp can sometimes cause problems.
20457 # Create a temporary directory, and hook for its removal unless debugging.
20460 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20461 trap '{ (exit 1); exit 1; }' 1 2 13 15
20464 # Create a (secure) tmp directory for tmp files.
20467 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20468 test -n "$tmp" && test -d "$tmp"
20471 tmp
=.
/confstat$$
-$RANDOM
20472 (umask 077 && mkdir
$tmp)
20475 echo "$me: cannot create a temporary directory in ." >&2
20476 { (exit 1); exit 1; }
20481 cat >>$CONFIG_STATUS <<_ACEOF
20484 # CONFIG_FILES section.
20487 # No need to generate the scripts if there are no CONFIG_FILES.
20488 # This happens for instance when ./config.status config.h
20489 if test -n "\$CONFIG_FILES"; then
20490 # Protect against being on the right side of a sed subst in config.status.
20491 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20492 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20493 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
20494 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
20495 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
20496 s,@SHELL@,$SHELL,;t t
20497 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20498 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20499 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20500 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20501 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20502 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20503 s,@exec_prefix@,$exec_prefix,;t t
20504 s,@prefix@,$prefix,;t t
20505 s,@program_transform_name@,$program_transform_name,;t t
20506 s,@bindir@,$bindir,;t t
20507 s,@sbindir@,$sbindir,;t t
20508 s,@libexecdir@,$libexecdir,;t t
20509 s,@datadir@,$datadir,;t t
20510 s,@sysconfdir@,$sysconfdir,;t t
20511 s,@sharedstatedir@,$sharedstatedir,;t t
20512 s,@localstatedir@,$localstatedir,;t t
20513 s,@libdir@,$libdir,;t t
20514 s,@includedir@,$includedir,;t t
20515 s,@oldincludedir@,$oldincludedir,;t t
20516 s,@infodir@,$infodir,;t t
20517 s,@mandir@,$mandir,;t t
20518 s,@build_alias@,$build_alias,;t t
20519 s,@host_alias@,$host_alias,;t t
20520 s,@target_alias@,$target_alias,;t t
20521 s,@DEFS@,$DEFS,;t t
20522 s,@ECHO_C@,$ECHO_C,;t t
20523 s,@ECHO_N@,$ECHO_N,;t t
20524 s,@ECHO_T@,$ECHO_T,;t t
20525 s,@LIBS@,$LIBS,;t t
20526 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20527 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20528 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20529 s,@CYGPATH_W@,$CYGPATH_W,;t t
20530 s,@PACKAGE@,$PACKAGE,;t t
20531 s,@VERSION@,$VERSION,;t t
20532 s,@ACLOCAL@,$ACLOCAL,;t t
20533 s,@AUTOCONF@,$AUTOCONF,;t t
20534 s,@AUTOMAKE@,$AUTOMAKE,;t t
20535 s,@AUTOHEADER@,$AUTOHEADER,;t t
20536 s,@MAKEINFO@,$MAKEINFO,;t t
20537 s,@install_sh@,$install_sh,;t t
20538 s,@STRIP@,$STRIP,;t t
20539 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20540 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20541 s,@mkdir_p@,$mkdir_p,;t t
20543 s,@SET_MAKE@,$SET_MAKE,;t t
20544 s,@am__leading_dot@,$am__leading_dot,;t t
20545 s,@AMTAR@,$AMTAR,;t t
20546 s,@am__tar@,$am__tar,;t t
20547 s,@am__untar@,$am__untar,;t t
20548 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20549 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20550 s,@MAINT@,$MAINT,;t t
20551 s,@build@,$build,;t t
20552 s,@build_cpu@,$build_cpu,;t t
20553 s,@build_vendor@,$build_vendor,;t t
20554 s,@build_os@,$build_os,;t t
20555 s,@host@,$host,;t t
20556 s,@host_cpu@,$host_cpu,;t t
20557 s,@host_vendor@,$host_vendor,;t t
20558 s,@host_os@,$host_os,;t t
20559 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
20560 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
20561 s,@MULECFLAGS@,$MULECFLAGS,;t t
20562 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
20563 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
20564 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
20566 s,@CXXFLAGS@,$CXXFLAGS,;t t
20567 s,@LDFLAGS@,$LDFLAGS,;t t
20568 s,@CPPFLAGS@,$CPPFLAGS,;t t
20569 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20570 s,@EXEEXT@,$EXEEXT,;t t
20571 s,@OBJEXT@,$OBJEXT,;t t
20572 s,@DEPDIR@,$DEPDIR,;t t
20573 s,@am__include@,$am__include,;t t
20574 s,@am__quote@,$am__quote,;t t
20575 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20576 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20577 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20578 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20579 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20580 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20581 s,@CXXCPP@,$CXXCPP,;t t
20583 s,@CFLAGS@,$CFLAGS,;t t
20584 s,@ac_ct_CC@,$ac_ct_CC,;t t
20585 s,@CCDEPMODE@,$CCDEPMODE,;t t
20586 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20587 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20589 s,@BUILD_CC@,$BUILD_CC,;t t
20590 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
20591 s,@EXEEXT@,$EXEEXT,;t t
20592 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20593 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
20594 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20595 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
20596 s,@EGREP@,$EGREP,;t t
20598 s,@LEXLIB@,$LEXLIB,;t t
20599 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20600 s,@RANLIB@,$RANLIB,;t t
20601 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20602 s,@YACC@,$YACC,;t t
20604 s,@ac_ct_AR@,$ac_ct_AR,;t t
20606 s,@ac_ct_LD@,$ac_ct_LD,;t t
20607 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
20608 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
20609 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
20610 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
20611 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
20612 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
20613 s,@WEB_TRUE@,$WEB_TRUE,;t t
20614 s,@WEB_FALSE@,$WEB_FALSE,;t t
20615 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
20616 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
20617 s,@CAS_TRUE@,$CAS_TRUE,;t t
20618 s,@CAS_FALSE@,$CAS_FALSE,;t t
20619 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
20620 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
20621 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
20622 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
20623 s,@ALC_TRUE@,$ALC_TRUE,;t t
20624 s,@ALC_FALSE@,$ALC_FALSE,;t t
20625 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
20626 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
20627 s,@XAS_TRUE@,$XAS_TRUE,;t t
20628 s,@XAS_FALSE@,$XAS_FALSE,;t t
20629 s,@FILEVIEW_TRUE@,$FILEVIEW_TRUE,;t t
20630 s,@FILEVIEW_FALSE@,$FILEVIEW_FALSE,;t t
20631 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
20632 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
20633 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
20634 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
20635 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
20636 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
20637 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
20638 s,@CAS_DEFS@,$CAS_DEFS,;t t
20639 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
20640 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
20641 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
20642 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
20643 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
20644 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
20645 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
20646 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
20647 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
20648 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
20649 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
20650 s,@WX_LIBS@,$WX_LIBS,;t t
20651 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
20652 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
20653 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
20654 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
20655 s,@WX_UNICODE@,$WX_UNICODE,;t t
20656 s,@WX_DEBUG@,$WX_DEBUG,;t t
20657 s,@WX_SHARED@,$WX_SHARED,;t t
20658 s,@WX_PORT@,$WX_PORT,;t t
20659 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
20660 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
20662 s,@RCFLAGS@,$RCFLAGS,;t t
20663 s,@ac_ct_RC@,$ac_ct_RC,;t t
20664 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20665 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20666 s,@LIBUPNP_CPPFLAGS@,$LIBUPNP_CPPFLAGS,;t t
20667 s,@LIBUPNP_CFLAGS@,$LIBUPNP_CFLAGS,;t t
20668 s,@LIBUPNP_LDFLAGS@,$LIBUPNP_LDFLAGS,;t t
20669 s,@LIBUPNP_LIBS@,$LIBUPNP_LIBS,;t t
20670 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
20671 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
20672 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
20673 s,@ALLOCA@,$ALLOCA,;t t
20674 s,@LIBOBJS@,$LIBOBJS,;t t
20675 s,@POW_LIB@,$POW_LIB,;t t
20676 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20677 s,@MSGFMT@,$MSGFMT,;t t
20678 s,@GMSGFMT@,$GMSGFMT,;t t
20679 s,@XGETTEXT@,$XGETTEXT,;t t
20680 s,@MSGMERGE@,$MSGMERGE,;t t
20681 s,@GLIBC21@,$GLIBC21,;t t
20682 s,@LIBICONV@,$LIBICONV,;t t
20683 s,@LTLIBICONV@,$LTLIBICONV,;t t
20684 s,@INTLBISON@,$INTLBISON,;t t
20685 s,@USE_NLS@,$USE_NLS,;t t
20686 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
20687 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
20688 s,@CATOBJEXT@,$CATOBJEXT,;t t
20689 s,@INTLOBJS@,$INTLOBJS,;t t
20690 s,@DATADIRNAME@,$DATADIRNAME,;t t
20691 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20692 s,@GENCAT@,$GENCAT,;t t
20693 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
20694 s,@INTLLIBS@,$INTLLIBS,;t t
20695 s,@LIBINTL@,$LIBINTL,;t t
20696 s,@LTLIBINTL@,$LTLIBINTL,;t t
20697 s,@POSUB@,$POSUB,;t t
20698 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
20699 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
20700 s,@WEBSERVER_MANPAGES@,$WEBSERVER_MANPAGES,;t t
20701 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
20702 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
20703 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
20704 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
20705 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
20706 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
20707 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
20708 s,@INCINTL@,$INCINTL,;t t
20709 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
20710 s,@BFD_LIBS@,$BFD_LIBS,;t t
20711 s,@docdir@,$docdir,;t t
20712 s,@SVNDATE@,$SVNDATE,;t t
20713 s,@QT_MOC@,$QT_MOC,;t t
20714 s,@QT_CORE_CXXFLAGS@,$QT_CORE_CXXFLAGS,;t t
20715 s,@QT_CORE_LIBS@,$QT_CORE_LIBS,;t t
20716 s,@QT_GUI_CXXFLAGS@,$QT_GUI_CXXFLAGS,;t t
20717 s,@QT_GUI_LIBS@,$QT_GUI_LIBS,;t t
20718 s,@KDE4_CONFIG@,$KDE4_CONFIG,;t t
20719 s,@KDE_HEADER_DIR@,$KDE_HEADER_DIR,;t t
20720 s,@KDE_APPLNK_PATH@,$KDE_APPLNK_PATH,;t t
20721 s,@KDE_SERVICE_PATH@,$KDE_SERVICE_PATH,;t t
20722 s,@KDE_MODULE_PATH@,$KDE_MODULE_PATH,;t t
20723 s,@KDE_ICON_PATH@,$KDE_ICON_PATH,;t t
20724 s,@KDE_MIME_PATH@,$KDE_MIME_PATH,;t t
20725 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
20726 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
20727 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
20728 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
20729 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
20730 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
20731 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
20732 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
20733 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
20734 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
20735 s,@INSTALL_SKINS_TRUE@,$INSTALL_SKINS_TRUE,;t t
20736 s,@INSTALL_SKINS_FALSE@,$INSTALL_SKINS_FALSE,;t t
20737 s,@PLASMAMULE_TRUE@,$PLASMAMULE_TRUE,;t t
20738 s,@PLASMAMULE_FALSE@,$PLASMAMULE_FALSE,;t t
20739 s,@COMPILE_LIB_COMMON_TRUE@,$COMPILE_LIB_COMMON_TRUE,;t t
20740 s,@COMPILE_LIB_COMMON_FALSE@,$COMPILE_LIB_COMMON_FALSE,;t t
20741 s,@COMPILE_LIB_EC_TRUE@,$COMPILE_LIB_EC_TRUE,;t t
20742 s,@COMPILE_LIB_EC_FALSE@,$COMPILE_LIB_EC_FALSE,;t t
20743 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
20744 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20749 cat >>$CONFIG_STATUS <<\_ACEOF
20750 # Split the substitutions into bite-sized pieces for seds with
20751 # small command number limits, like on Digital OSF/1 and HP-UX.
20752 ac_max_sed_lines
=48
20753 ac_sed_frag
=1 # Number of current file.
20754 ac_beg
=1 # First line for current file.
20755 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20758 while $ac_more_lines; do
20759 if test $ac_beg -gt 1; then
20760 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20762 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20764 if test ! -s $tmp/subs.frag
; then
20765 ac_more_lines
=false
20767 # The purpose of the label and of the branching condition is to
20768 # speed up the sed processing (if there are no `@' at all, there
20769 # is no need to browse any of the substitutions).
20770 # These are the two extra sed commands mentioned above.
20772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20773 if test -z "$ac_sed_cmds"; then
20774 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20776 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20778 ac_sed_frag
=`expr $ac_sed_frag + 1`
20780 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20783 if test -z "$ac_sed_cmds"; then
20786 fi # test -n "$CONFIG_FILES"
20789 cat >>$CONFIG_STATUS <<\_ACEOF
20790 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20791 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20793 - |
*:- |
*:-:* ) # input from stdin
20795 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20796 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20797 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20798 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20799 * ) ac_file_in
=$ac_file.
in ;;
20802 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20803 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20805 X"$ac_file" : 'X\(//\)[^/]' \| \
20806 X"$ac_file" : 'X\(//\)$' \| \
20807 X"$ac_file" : 'X\(/\)' \| \
20808 . : '\(.\)' 2>/dev/null ||
20810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20812 /^X\(\/\/\)$/{ s//\1/; q; }
20813 /^X\(\/\).*/{ s//\1/; q; }
20815 { if $as_mkdir_p; then
20820 while test ! -d "$as_dir"; do
20821 as_dirs
="$as_dir $as_dirs"
20822 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20824 X"$as_dir" : 'X\(//\)[^/]' \| \
20825 X"$as_dir" : 'X\(//\)$' \| \
20826 X"$as_dir" : 'X\(/\)' \| \
20827 . : '\(.\)' 2>/dev/null ||
20829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20831 /^X\(\/\/\)$/{ s//\1/; q; }
20832 /^X\(\/\).*/{ s//\1/; q; }
20835 test ! -n "$as_dirs" || mkdir
$as_dirs
20836 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20837 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20838 { (exit 1); exit 1; }; }; }
20842 if test "$ac_dir" != .
; then
20843 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20844 # A "../" for each directory in $ac_dir_suffix.
20845 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20847 ac_dir_suffix
= ac_top_builddir
=
20851 .
) # No --srcdir option. We are building in place.
20853 if test -z "$ac_top_builddir"; then
20856 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20858 [\\/]* | ?
:[\\/]* ) # Absolute path.
20859 ac_srcdir
=$srcdir$ac_dir_suffix;
20860 ac_top_srcdir
=$srcdir ;;
20861 *) # Relative path.
20862 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20863 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20866 # Do not use `cd foo && pwd` to compute absolute paths, because
20867 # the directories may not exist.
20869 .
) ac_abs_builddir
="$ac_dir";;
20872 .
) ac_abs_builddir
=`pwd`;;
20873 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20874 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20877 case $ac_abs_builddir in
20878 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20880 case ${ac_top_builddir}.
in
20881 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20882 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20883 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20886 case $ac_abs_builddir in
20887 .
) ac_abs_srcdir
=$ac_srcdir;;
20890 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20891 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20892 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20895 case $ac_abs_builddir in
20896 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20898 case $ac_top_srcdir in
20899 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20900 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20901 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20907 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20908 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20911 if test x
"$ac_file" != x-
; then
20912 { echo "$as_me:$LINENO: creating $ac_file" >&5
20913 echo "$as_me: creating $ac_file" >&6;}
20916 # Let's still pretend it is `configure' which instantiates (i.e., don't
20917 # use $as_me), people would be surprised to read:
20918 # /* config.h. Generated by config.status. */
20919 if test x
"$ac_file" = x-
; then
20922 configure_input
="$ac_file. "
20924 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20925 sed 's,.*/,,'` by configure."
20927 # First look for the input files in the build tree, otherwise in the
20929 ac_file_inputs
=`IFS=:
20930 for f in $ac_file_in; do
20932 -) echo $tmp/stdin ;;
20934 # Absolute (can't be DOS-style, as IFS=:)
20935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20936 echo "$as_me: error: cannot find input file: $f" >&2;}
20937 { (exit 1); exit 1; }; }
20940 if test -f "$f"; then
20943 elif test -f "$srcdir/$f"; then
20948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20949 echo "$as_me: error: cannot find input file: $f" >&2;}
20950 { (exit 1); exit 1; }; }
20953 done` ||
{ (exit 1); exit 1; }
20955 cat >>$CONFIG_STATUS <<_ACEOF
20959 cat >>$CONFIG_STATUS <<\_ACEOF
20961 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20962 s
,@configure_input@
,$configure_input,;t t
20963 s
,@srcdir@
,$ac_srcdir,;t t
20964 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20965 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20966 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20967 s
,@builddir@
,$ac_builddir,;t t
20968 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20969 s
,@top_builddir@
,$ac_top_builddir,;t t
20970 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20971 s
,@INSTALL@
,$ac_INSTALL,;t t
20972 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20974 if test x"$ac_file" != x-; then
20975 mv $tmp/out $ac_file
20983 cat >>$CONFIG_STATUS <<\_ACEOF
20986 # CONFIG_HEADER section.
20989 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20990 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20992 # ac_d sets the value in "#define NAME VALUE" lines.
20993 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20994 ac_dB
='[ ].*$,\1#\2'
20997 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20998 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20999 ac_uB
='$,\1#\2define\3'
21003 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
21004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21006 - |
*:- |
*:-:* ) # input from stdin
21008 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21009 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21010 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21011 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21012 * ) ac_file_in
=$ac_file.
in ;;
21015 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
21016 echo "$as_me: creating $ac_file" >&6;}
21018 # First look for the input files in the build tree, otherwise in the
21020 ac_file_inputs
=`IFS=:
21021 for f in $ac_file_in; do
21023 -) echo $tmp/stdin ;;
21025 # Absolute (can't be DOS-style, as IFS=:)
21026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21027 echo "$as_me: error: cannot find input file: $f" >&2;}
21028 { (exit 1); exit 1; }; }
21029 # Do quote $f, to prevent DOS paths from being IFS'd.
21032 if test -f "$f"; then
21035 elif test -f "$srcdir/$f"; then
21040 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21041 echo "$as_me: error: cannot find input file: $f" >&2;}
21042 { (exit 1); exit 1; }; }
21045 done` ||
{ (exit 1); exit 1; }
21046 # Remove the trailing spaces.
21047 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21051 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21052 # `conftest.undefs', that substitutes the proper values into
21053 # config.h.in to produce config.h. The first handles `#define'
21054 # templates, and the second `#undef' templates.
21055 # And first: Protect against being on the right side of a sed subst in
21056 # config.status. Protect against being in an unquoted here document
21057 # in config.status.
21058 rm -f conftest.defines conftest.undefs
21059 # Using a here document instead of a string reduces the quoting nightmare.
21060 # Putting comments in sed scripts is not portable.
21062 # `end' is used to avoid that the second main sed command (meant for
21063 # 0-ary CPP macros) applies to n-ary macro definitions.
21064 # See the Autoconf documentation for `clear'.
21065 cat >confdef2sed.
sed <<\_ACEOF
21070 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21072 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21075 # If some macros were called several times there might be several times
21076 # the same #defines, which is useless. Nevertheless, we may not want to
21077 # sort them, since we want the *last* AC-DEFINE to be honored.
21078 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21079 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21080 rm -f confdef2sed.sed
21082 # This sed command replaces #undef with comments. This is necessary, for
21083 # example, in the case of _POSIX_SOURCE, which is predefined and required
21084 # on some systems where configure will not decide to define it.
21085 cat >>conftest.undefs <<\_ACEOF
21086 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21089 # Break up conftest.defines because some shells have a limit on the size
21090 # of here documents, and old seds have small limits too (100 cmds).
21091 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21092 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21093 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21094 echo ' :' >>$CONFIG_STATUS
21095 rm -f conftest.tail
21096 while grep . conftest.defines >/dev/null
21098 # Write a limited-size here document to $tmp/defines.sed.
21099 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21100 # Speed up: don't consider the non `#define' lines.
21101 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21102 # Work around the forget-to-reset-the-flag bug.
21103 echo 't clr' >>$CONFIG_STATUS
21104 echo ': clr' >>$CONFIG_STATUS
21105 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
21107 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21109 mv $tmp/out $tmp/in
21111 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
21112 rm -f conftest.defines
21113 mv conftest.
tail conftest.defines
21115 rm -f conftest.defines
21116 echo ' fi # grep' >>$CONFIG_STATUS
21117 echo >>$CONFIG_STATUS
21119 # Break up conftest.undefs because some shells have a limit on the size
21120 # of here documents, and old seds have small limits too (100 cmds).
21121 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21122 rm -f conftest.
tail
21123 while grep . conftest.undefs
>/dev
/null
21125 # Write a limited-size here document to $tmp/undefs.sed.
21126 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21127 # Speed up: don't consider the non
`#undef'
21128 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21129 # Work around the forget-to-reset-the-flag bug.
21130 echo 't clr' >>$CONFIG_STATUS
21131 echo ': clr' >>$CONFIG_STATUS
21132 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21134 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21136 mv $tmp/out $tmp/in
21138 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21139 rm -f conftest.undefs
21140 mv conftest.tail conftest.undefs
21142 rm -f conftest.undefs
21144 cat >>$CONFIG_STATUS <<\_ACEOF
21145 # Let's still pretend it is `configure
' which instantiates (i.e., don't
21146 # use $as_me), people would be surprised to read:
21147 # /* config.h. Generated by config.status. */
21148 if test x
"$ac_file" = x-
; then
21149 echo "/* Generated by configure. */" >$tmp/config.h
21151 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21153 cat $tmp/in >>$tmp/config.h
21155 if test x
"$ac_file" != x-
; then
21156 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
21157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21158 echo "$as_me: $ac_file is unchanged" >&6;}
21160 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21162 X"$ac_file" : 'X\(//\)[^/]' \| \
21163 X"$ac_file" : 'X\(//\)$' \| \
21164 X"$ac_file" : 'X\(/\)' \| \
21165 . : '\(.\)' 2>/dev/null ||
21167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21169 /^X\(\/\/\)$/{ s//\1/; q; }
21170 /^X\(\/\).*/{ s//\1/; q; }
21172 { if $as_mkdir_p; then
21177 while test ! -d "$as_dir"; do
21178 as_dirs
="$as_dir $as_dirs"
21179 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21181 X"$as_dir" : 'X\(//\)[^/]' \| \
21182 X"$as_dir" : 'X\(//\)$' \| \
21183 X"$as_dir" : 'X\(/\)' \| \
21184 . : '\(.\)' 2>/dev/null ||
21186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21188 /^X\(\/\/\)$/{ s//\1/; q; }
21189 /^X\(\/\).*/{ s//\1/; q; }
21192 test ! -n "$as_dirs" || mkdir
$as_dirs
21193 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21195 { (exit 1); exit 1; }; }; }
21198 mv $tmp/config.h
$ac_file
21202 rm -f $tmp/config.h
21204 # Compute $ac_file's index in $config_headers.
21206 for _am_header
in $config_headers :; do
21207 case $_am_header in
21208 $ac_file |
$ac_file:* )
21211 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21214 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21215 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21216 X$ac_file : 'X\(//\)[^/]' \| \
21217 X$ac_file : 'X\(//\)$' \| \
21218 X$ac_file : 'X\(/\)' \| \
21219 . : '\(.\)' 2>/dev/null ||
21221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21223 /^X\(\/\/\)$/{ s//\1/; q; }
21224 /^X\(\/\).*/{ s//\1/; q; }
21225 s/.*/./; q'`/stamp-h
$_am_stamp_count
21228 cat >>$CONFIG_STATUS <<\_ACEOF
21231 # CONFIG_COMMANDS section.
21233 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21234 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21235 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21236 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238 X"$ac_dest" : 'X\(//\)[^/]' \| \
21239 X"$ac_dest" : 'X\(//\)$' \| \
21240 X"$ac_dest" : 'X\(/\)' \| \
21241 . : '\(.\)' 2>/dev/null ||
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245 /^X\(\/\/\)$/{ s//\1/; q; }
21246 /^X\(\/\).*/{ s//\1/; q; }
21248 { if $as_mkdir_p; then
21253 while test ! -d "$as_dir"; do
21254 as_dirs
="$as_dir $as_dirs"
21255 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257 X"$as_dir" : 'X\(//\)[^/]' \| \
21258 X"$as_dir" : 'X\(//\)$' \| \
21259 X"$as_dir" : 'X\(/\)' \| \
21260 . : '\(.\)' 2>/dev/null ||
21262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21264 /^X\(\/\/\)$/{ s//\1/; q; }
21265 /^X\(\/\).*/{ s//\1/; q; }
21268 test ! -n "$as_dirs" || mkdir
$as_dirs
21269 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21271 { (exit 1); exit 1; }; }; }
21275 if test "$ac_dir" != .
; then
21276 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21277 # A "../" for each directory in $ac_dir_suffix.
21278 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21280 ac_dir_suffix
= ac_top_builddir
=
21284 .
) # No --srcdir option. We are building in place.
21286 if test -z "$ac_top_builddir"; then
21289 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21291 [\\/]* | ?
:[\\/]* ) # Absolute path.
21292 ac_srcdir
=$srcdir$ac_dir_suffix;
21293 ac_top_srcdir
=$srcdir ;;
21294 *) # Relative path.
21295 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21296 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21299 # Do not use `cd foo && pwd` to compute absolute paths, because
21300 # the directories may not exist.
21302 .
) ac_abs_builddir
="$ac_dir";;
21305 .
) ac_abs_builddir
=`pwd`;;
21306 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21307 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21310 case $ac_abs_builddir in
21311 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21313 case ${ac_top_builddir}.
in
21314 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21315 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21316 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21319 case $ac_abs_builddir in
21320 .
) ac_abs_srcdir
=$ac_srcdir;;
21323 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21324 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21325 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21328 case $ac_abs_builddir in
21329 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21331 case $ac_top_srcdir in
21332 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21333 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21334 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21339 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21340 echo "$as_me: executing $ac_dest commands" >&6;}
21342 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21343 # Strip MF so we end up with the name of the file.
21344 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21345 # Check whether this is an Automake generated Makefile or not.
21346 # We used to match only the files named `Makefile.in', but
21347 # some people rename them; so instead we look at the file content.
21348 # Grep'ing the first line is not enough: some people post-process
21349 # each Makefile.in and add a new line on top of each file to say so.
21350 # So let's grep whole file.
21351 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21352 dirpart
=`(dirname "$mf") 2>/dev/null ||
21353 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21354 X"$mf" : 'X\(//\)[^/]' \| \
21355 X"$mf" : 'X\(//\)$' \| \
21356 X"$mf" : 'X\(/\)' \| \
21357 . : '\(.\)' 2>/dev/null ||
21359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21361 /^X\(\/\/\)$/{ s//\1/; q; }
21362 /^X\(\/\).*/{ s//\1/; q; }
21367 # Extract the definition of DEPDIR, am__include, and am__quote
21368 # from the Makefile without running `make'.
21369 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21370 test -z "$DEPDIR" && continue
21371 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21372 test -z "am__include" && continue
21373 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21374 # When using ansi2knr, U may be empty or an underscore; expand it
21375 U
=`sed -n 's/^U = //p' < "$mf"`
21376 # Find all dependency output files, they are included files with
21377 # $(DEPDIR) in their names. We invoke sed twice because it is the
21378 # simplest approach to changing $(DEPDIR) to its actual value in the
21380 for file in `sed -n "
21381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21383 # Make sure the directory exists.
21384 test -f "$dirpart/$file" && continue
21385 fdir
=`(dirname "$file") 2>/dev/null ||
21386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21387 X"$file" : 'X\(//\)[^/]' \| \
21388 X"$file" : 'X\(//\)$' \| \
21389 X"$file" : 'X\(/\)' \| \
21390 . : '\(.\)' 2>/dev/null ||
21392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21394 /^X\(\/\/\)$/{ s//\1/; q; }
21395 /^X\(\/\).*/{ s//\1/; q; }
21397 { if $as_mkdir_p; then
21398 mkdir
-p $dirpart/$fdir
21400 as_dir
=$dirpart/$fdir
21402 while test ! -d "$as_dir"; do
21403 as_dirs
="$as_dir $as_dirs"
21404 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21406 X"$as_dir" : 'X\(//\)[^/]' \| \
21407 X"$as_dir" : 'X\(//\)$' \| \
21408 X"$as_dir" : 'X\(/\)' \| \
21409 . : '\(.\)' 2>/dev/null ||
21411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21413 /^X\(\/\/\)$/{ s//\1/; q; }
21414 /^X\(\/\).*/{ s//\1/; q; }
21417 test ! -n "$as_dirs" || mkdir
$as_dirs
21418 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21419 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21420 { (exit 1); exit 1; }; }; }
21422 # echo "creating $dirpart/$file"
21423 echo '# dummy' > "$dirpart/$file"
21428 for ac_file
in $CONFIG_FILES; do
21429 # Support "outfile[:infile[:infile...]]"
21431 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
21433 # PO directories have a Makefile.in generated from Makefile.in.in.
21434 case "$ac_file" in */Makefile.
in)
21435 # Adjust a relative srcdir.
21436 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21437 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
21438 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21439 # In autoconf-2.13 it is called $ac_given_srcdir.
21440 # In autoconf-2.50 it is called $srcdir.
21441 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
21442 case "$ac_given_srcdir" in
21443 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
21444 /*) top_srcdir
="$ac_given_srcdir" ;;
21445 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
21447 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21448 rm -f "$ac_dir/POTFILES"
21449 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
21450 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21451 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
21452 # on $ac_dir but don't depend on user-specified configuration
21454 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21455 # The LINGUAS file contains the set of available languages.
21456 if test -n "$ALL_LINGUAS"; then
21457 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
21459 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21460 # Hide the ALL_LINGUAS assigment from automake.
21461 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21463 case "$ac_given_srcdir" in
21465 *) srcdirpre
='$(srcdir)/' ;;
21471 for lang
in $ALL_LINGUAS; do
21472 POFILES
="$POFILES $srcdirpre$lang.po"
21473 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
21474 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
21475 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
21477 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21478 # environment variable.
21480 if test -n "$ALL_LINGUAS"; then
21481 for presentlang
in $ALL_LINGUAS; do
21483 if test "%UNSET%" != "$LINGUAS"; then
21484 desiredlanguages
="$LINGUAS"
21486 desiredlanguages
="$ALL_LINGUAS"
21488 for desiredlang
in $desiredlanguages; do
21489 # Use the presentlang catalog if desiredlang is
21490 # a. equal to presentlang, or
21491 # b. a variant of presentlang (because in this case,
21492 # presentlang can be used as a fallback for messages
21493 # which are not translated in the desiredlang catalog).
21494 case "$desiredlang" in
21495 "$presentlang"*) useit
=yes;;
21498 if test $useit = yes; then
21499 INST_LINGUAS
="$INST_LINGUAS $presentlang"
21504 if test -n "$INST_LINGUAS"; then
21505 for lang
in $INST_LINGUAS; do
21506 CATALOGS
="$CATALOGS $lang.gmo"
21509 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
21510 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"
21511 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
21512 if test -f "$f"; then
21514 *.orig |
*.bak |
*~
) ;;
21515 *) cat "$f" >> "$ac_dir/Makefile" ;;
21523 denoiser
) if test $denoiserlevel -gt 0; then
21524 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
21525 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" \
21526 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
21527 for i
in `find . -name 'Makefile' -print`; do
21528 if test -n "`head -n 1 $i | grep '^#'`"; then
21529 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
21537 cat >>$CONFIG_STATUS <<\_ACEOF
21539 { (exit 0); exit 0; }
21541 chmod +x
$CONFIG_STATUS
21542 ac_clean_files
=$ac_clean_files_save
21545 # configure is writing to config.log, and then calls config.status.
21546 # config.status does its own redirection, appending to config.log.
21547 # Unfortunately, on DOS this fails, as config.log is still kept open
21548 # by configure, so config.status won't be able to write to it; its
21549 # output is simply discarded. So we exec the FD to /dev/null,
21550 # effectively closing config.log, so it can be properly (re)opened and
21551 # appended to by config.status. When coming back to configure, we
21552 # need to make the FD available again.
21553 if test "$no_create" != yes; then
21555 ac_config_status_args
=
21556 test "$silent" = yes &&
21557 ac_config_status_args
="$ac_config_status_args --quiet"
21559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21562 # would make configure fail if this is the last instruction.
21563 $ac_cs_success ||
{ (exit 1); exit 1; }
21567 if test -n "$svndate"; then
21568 SVN_REVISION
=" ($svndate)"
21576 echo " Configure script has finished system check."
21578 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
21580 echo " aMule enabled options:"
21582 echo " **** aMule Core ****"
21583 echo " Prefix where aMule should be installed? ${prefix:-none}"
21584 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
21585 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
21586 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
21587 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
21588 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
21589 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
21590 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
21591 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
21592 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${enable_amule_gui:-no}"
21593 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
21596 echo " **** aMule TextClient ****"
21597 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
21599 echo " **** aMule WebServer ****"
21600 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
21602 echo " **** aMule ED2K Links Handler ****"
21603 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
21605 echo " **** aMuleLinkCreator ****"
21606 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
21607 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
21609 echo " **** aMule Statistics ****"
21610 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
21611 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
21612 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
21613 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
21616 echo " **** General Libraries and Tools ****"
21617 echo " Should ccache support be enabled? ${enable_ccache:-no}"
21618 echo " Libraries aMule will use to build:"
21619 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
21622 if test $WX_DEBUG -eq 1; then
21623 wxinfo
="$wxinfo,debug"
21626 if test $WX_SHARED -eq 1; then
21627 wxinfo
="$wxinfo,shared"
21629 wxinfo
="$wxinfo,static"
21632 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
21636 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
21637 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
21640 if test ${enable_upnp:-yes} = yes; then
21642 if test -n "$with_libupnp_prefix"; then
21643 libupnp_place
=" (in $with_libupnp_prefix)"
21646 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
21650 if test ${enable_nls:-yes} = yes; then
21651 if test x
$USE_NLS = xno
; then
21652 libintl_found
="Not detected"
21654 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
21655 libintl_found
="included"
21657 libintl_found
="system"
21662 echo " libintl $libintl_found"
21664 if test ${enable_geoip:-no} = yes; then
21665 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then
21671 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
21672 echo " libGeoIP ${geoip_style}"
21677 if test ${enable_webserver:-no} = yes; then
21678 echo " libpng ${LIBPNG_VERSION:-Not detected}"
21681 if test ${enable_cas:-no} = yes; then
21682 echo " libgd ${GDLIB_VERSION:-Not detected}"
21685 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
21686 echo " zlib ${ZLIB_VERSION:-Not detected}"
21689 if test ${enable_plasmamule:-no} = yes; then
21690 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
21691 echo " qt-core-libs ${QT_CORE_LIBS}"
21692 echo " qt-gui-libs ${QT_GUI_LIBS}"
21693 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
21694 echo " kde-headers ${KDE_HEADER_DIR}"
21695 echo " kde-services-path ${KDE_SERVICE_PATH}"
21696 echo " kde-module-path ${KDE_MODULE_PATH}"
21697 echo " kde-icon-path ${KDE_ICON_PATH}"
21698 echo " kde-mime-path ${KDE_MIME_PATH}"
21699 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
21700 echo " **** You have to run kbuildsycoca after installing to let plasma know the changes ****"
21701 echo " **** You have to run \"update-mime-database ${KDE_MIME_PATH}\" to register the mimetype ****"
21704 if test ${_mule_has_warnings:-no} = yes; then
21707 echo " *** Warnings during configuration ***"
21709 if test ${_mule_warning_0:-no} = yes; then
21712 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
21713 Please check that gdlib-config is in your default path, check out
21714 LD_LIBRARY_PATH or equivalent variable.
21715 Or this might also be that your gdlib-config has other name.
21716 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
21717 /usr/bin/gdlib-config with a valid path to your gdlib-config).
21718 If you use compiled packages check if you have devel pack installed.
21719 To download the latest version check http://www.boutell.com/gd for sources.
21722 if test ${_mule_warning_1:-no} = yes; then
21725 * libpng >= 1.2.0 not found.
21726 amuleweb will be compiled but file download progress bar images will NOT be
21730 if test ${_mule_warning_2:-no} = yes; then
21733 * File::Copy perl module is required by the mldonkey_importer script.
21734 If you want to use this script please install File::Copy from CPAN.
21737 if test ${_mule_warning_3:-no} = yes; then
21740 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
21743 if test ${_mule_warning_4:-no} = yes; then
21746 * GeoIP support has been disabled because the GeoIP libraries were not found
21749 if test ${_mule_warning_5:-no} = yes; then
21752 * GeoIP support has been disabled because the GeoIP header files were not
21756 if test ${_mule_warning_6:-no} = yes; then
21759 * UPnP code has been disabled because ${libupnp_error}.
21762 if test ${_mule_warning_7:-no} = yes; then
21765 * Cross-compilation detected, so exception handling cannot be tested.
21766 Note that broken exception handling in your compiler may lead to unexpected
21770 if test ${_mule_warning_8:-no} = yes; then
21773 * configure cannot check whether malloc() and realloc() are GNU libc
21774 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
21775 configure with the --without-gnu-malloc switch.
21778 if test ${_mule_warning_9:-no} = yes; then
21781 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
21785 if test ${_mule_warning_10:-no} = yes; then
21788 * bfd.h not found or unusable, please install binutils development package if
21789 you are a developer or want to help testing aMule