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
='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 X11LIBS 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 ZLIB_CPPFLAGS ZLIB_LDFLAGS ZLIB_LIBS GDLIB_CONFIG_PATH GDLIB_CFLAGS GDLIB_LDFLAGS GDLIB_LIBS CAS_DEFS REGEX_LIBS LIBPNG_CONFIG_PATH LIBPNG_CFLAGS LIBPNG_LDFLAGS LIBPNG_LIBS AMULEWEB_DEFS GEOIP_CPPFLAGS GEOIP_LDFLAGS GEOIP_LIBS WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC 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 CRYPTOPP_CPPFLAGS CRYPTOPP_LDFLAGS CRYPTOPP_LIBS BFD_CPPFLAGS BFD_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 WEB_MANPAGES AMULE_GUI_MANPAGES CAS_MANPAGES WXCAS_MANPAGES ED2K_MANPAGES ALC_MANPAGES ALCC_MANPAGES MONOLITHIC_MANPAGES INCINTL docdir SVNDATE WEB_TRUE WEB_FALSE ED2K_TRUE ED2K_FALSE CAS_TRUE CAS_FALSE WXCAS_TRUE WXCAS_FALSE ALC_TRUE ALC_FALSE ALCC_TRUE ALCC_FALSE AMULE_GUI_TRUE AMULE_GUI_FALSE AMULE_DAEMON_TRUE AMULE_DAEMON_FALSE COMPILE_CMD_TRUE COMPILE_CMD_FALSE MONOLITHIC_TRUE MONOLITHIC_FALSE ENABLE_UPNP_TRUE ENABLE_UPNP_FALSE ENABLE_IP2COUNTRY_TRUE ENABLE_IP2COUNTRY_FALSE 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 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
797 # Report the --help message.
799 if test "$ac_init_help" = "long"; then
800 # Omit some internal or obsolete options to make the list less imposing.
801 # This message is too long to be a string in the A/UX 3.1 sh.
803 \`configure' configures aMule SVN to adapt to many kinds of systems.
805 Usage: $0 [OPTION]... [VAR=VALUE]...
807 To assign environment variables (e.g., CC, CFLAGS...), specify them as
808 VAR=VALUE. See below for descriptions of some of the useful variables.
810 Defaults for the options are specified in brackets.
813 -h, --help display this help and exit
814 --help=short display options specific to this package
815 --help=recursive display the short help of all the included packages
816 -V, --version display version information and exit
817 -q, --quiet, --silent do not print \`checking...' messages
818 --cache-file=FILE cache test results in FILE [disabled]
819 -C, --config-cache alias for \`--cache-file=config.cache'
820 -n, --no-create do not create output files
821 --srcdir=DIR find the sources in DIR [configure dir or \`..']
826 Installation directories:
827 --prefix=PREFIX install architecture-independent files in PREFIX
829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
832 By default, \`make install' will install all the files in
833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835 for instance \`--prefix=\$HOME'.
837 For better control, use the options below.
839 Fine tuning of the installation directories:
840 --bindir=DIR user executables [EPREFIX/bin]
841 --sbindir=DIR system admin executables [EPREFIX/sbin]
842 --libexecdir=DIR program executables [EPREFIX/libexec]
843 --datadir=DIR read-only architecture-independent data [PREFIX/share]
844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
847 --libdir=DIR object code libraries [EPREFIX/lib]
848 --includedir=DIR C header files [PREFIX/include]
849 --oldincludedir=DIR C header files for non-gcc [/usr/include]
850 --infodir=DIR info documentation [PREFIX/info]
851 --mandir=DIR man documentation [PREFIX/man]
857 --program-prefix=PREFIX prepend PREFIX to installed program names
858 --program-suffix=SUFFIX append SUFFIX to installed program names
859 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
862 --x-includes=DIR X include files are
in DIR
863 --x-libraries=DIR X library files are
in DIR
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 --disable-upnp do not compile UPnP code
895 --enable-geoip compile with GeoIP IP2Country library
896 --disable-rpath do not hardcode runtime library paths
897 --disable-nls do not use Native Language Support
898 --disable-debug disable additional debugging output
899 --enable-optimize enable code optimization
900 --enable-profile enable code profiling
901 --enable-static produce a statically linked executable
902 --enable-ccache enable ccache support for fast recompilation
905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
907 --with-geoip-headers=DIR
908 GeoIP include files location
909 --with-geoip-lib=DIR GeoIP library location
910 --with-geoip-static Explicitly link GeoIP statically (default=no)
911 --without-gnu-malloc Don't assume that we use GNU libc compatible
912 malloc
/realloc when cross-compiling
913 --with-zlib=PREFIX use zlib
in PREFIX
914 --with-gdlib-prefix=PREFIX
915 prefix where gdlib is installed
(optional
)
916 --with-gdlib-config=CONFIG
917 gdlib-config
script to use
(optional
)
918 --with-libpng-prefix=PREFIX
919 prefix where libpng is installed
(optional
)
920 --with-libpng-config=CONFIG
921 libpng-config
script to use
(optional
)
922 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
923 --with-wx-config=CONFIG wx-config
script to use
(optional
)
924 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
925 --with-wx-exec-prefix=PREFIX
926 Exec prefix where wxWidgets is installed
(optional
)
927 --with-toolkit Build against a specific wxWidgets toolkit
(default
929 --with-wxshared Force building against a shared build of wxWidgets
,
930 even
if --disable-shared is given
(default is auto
)
931 --with-wxdebug Force building against a debug build of wxWidgets
,
932 even
if --disable-debug is given
(default is auto
)
933 --with-wxversion Build against a specific version of wxWidgets
935 --with-crypto-prefix=PREFIX
936 prefix where crypto
++ is installed
937 --with-x use the X Window System
938 --with-language=<langs
> Specify a comma-separated list of languages you want
939 to have installed. See po
/LINGUAS
for available
941 --with-gnu-ld assume the C compiler uses GNU ld default
=no
942 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
943 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
944 --with-included-gettext use the GNU gettext library included here
945 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
946 --without-libintl-prefix don't search
for libintl
in includedir and libdir
947 --with-denoise-level=<level
>
948 Specifies denoising level
(0-4):
950 4 - Suppress all normal output
951 (for more information see
952 src
/utils
/scripts
/denoiser.rules
)
954 --with-ccache-prefix=PREFIX
955 prefix where ccache is installed
957 Some influential environment variables
:
958 CXX C
++ compiler
command
959 CXXFLAGS C
++ compiler flags
960 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
961 nonstandard directory
<lib dir
>
962 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
963 headers
in a nonstandard directory
<include dir
>
964 CXXCPP C
++ preprocessor
965 CC C compiler
command
966 CFLAGS C compiler flags
969 RCFLAGS Resource Compiler Flags
971 Use these variables to override the choices made by
`configure' or to help
972 it to find libraries and programs with nonstandard names/locations.
974 Report bugs to <admin@amule.org>.
978 if test "$ac_init_help" = "recursive"; then
979 # If there are subdirs, report their specific --help.
981 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
982 test -d $ac_dir || continue
985 if test "$ac_dir" != .; then
986 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
987 # A "../" for each directory in $ac_dir_suffix.
988 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
990 ac_dir_suffix= ac_top_builddir=
994 .) # No --srcdir option. We are building in place.
996 if test -z "$ac_top_builddir"; then
999 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1001 [\\/]* | ?:[\\/]* ) # Absolute path.
1002 ac_srcdir=$srcdir$ac_dir_suffix;
1003 ac_top_srcdir=$srcdir ;;
1005 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1006 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1009 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1010 # the directories may not exist.
1012 .) ac_abs_builddir="$ac_dir";;
1015 .) ac_abs_builddir=`pwd`;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1017 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1020 case $ac_abs_builddir in
1021 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1023 case ${ac_top_builddir}. in
1024 .) ac_abs_top_builddir=$ac_abs_builddir;;
1025 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1026 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1029 case $ac_abs_builddir in
1030 .) ac_abs_srcdir=$ac_srcdir;;
1033 .) ac_abs_srcdir=$ac_abs_builddir;;
1034 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1035 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1038 case $ac_abs_builddir in
1039 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1041 case $ac_top_srcdir in
1042 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1043 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1044 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1049 # Check for guested configure; otherwise get Cygnus style configure.
1050 if test -f $ac_srcdir/configure.gnu; then
1052 $SHELL $ac_srcdir/configure.gnu --help=recursive
1053 elif test -f $ac_srcdir/configure; then
1055 $SHELL $ac_srcdir/configure --help=recursive
1056 elif test -f $ac_srcdir/configure.ac ||
1057 test -f $ac_srcdir/configure.in; then
1059 $ac_configure --help
1061 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1067 test -n "$ac_init_help" && exit 0
1068 if $ac_init_version; then
1071 generated by GNU Autoconf 2.59
1073 Copyright (C) 2003 Free Software Foundation, Inc.
1074 This configure script is free software; the Free Software Foundation
1075 gives unlimited permission to copy, distribute and modify it.
1081 This file contains any messages produced by compilers while
1082 running configure, to aid debugging if configure makes a mistake.
1084 It was created by aMule $as_me SVN, which was
1085 generated by GNU Autoconf 2.59. Invocation command line was
1096 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1097 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1098 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1099 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1100 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1102 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1103 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1105 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1106 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1107 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1108 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1109 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1110 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1111 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1119 test -z "$as_dir" && as_dir=.
1120 echo "PATH: $as_dir"
1135 # Keep a trace of the command line.
1136 # Strip out --no-create and --no-recursion so they do not pile up.
1137 # Strip out --silent because we don't want to record it for future runs.
1138 # Also quote any args containing shell meta-characters.
1139 # Make two passes to allow for proper duplicate-argument suppression.
1144 ac_must_keep_next=false
1150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1154 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1155 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1158 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1160 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1161 if test $ac_must_keep_next = true; then
1162 ac_must_keep_next=false # Got value, back to normal.
1165 *=* | --config-cache | -C | -disable-* | --disable-* \
1166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1168 | -with-* | --with-* | -without-* | --without-* | --x)
1169 case "$ac_configure_args0 " in
1170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1173 -* ) ac_must_keep_next=true ;;
1176 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1177 # Get rid of the leading space.
1183 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1184 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1186 # When interrupted or exit'd, cleanup temporary files, and complete
1187 # config.log. We remove comments because anyway the quotes in there
1188 # would cause problems or look ugly.
1189 # WARNING: Be sure not to use single quotes in there, as some shells,
1190 # such as our DU 5.0 friend, will then `close
' the trap.
1191 trap 'exit_status
=$?
1192 # Save into config.log some information that might help in debugging.
1197 ## ---------------- ##
1198 ## Cache variables. ##
1199 ## ---------------- ##
1202 # The following way of writing the cache mishandles newlines in values,
1205 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1208 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1220 ## ----------------- ##
1221 ## Output variables. ##
1222 ## ----------------- ##
1225 for ac_var
in $ac_subst_vars
1227 eval ac_val
=$
`echo $ac_var`
1228 echo "$ac_var='"'"'$ac_val'"'"'"
1232 if test -n "$ac_subst_files"; then
1239 for ac_var
in $ac_subst_files
1241 eval ac_val
=$
`echo $ac_var`
1242 echo "$ac_var='"'"'$ac_val'"'"'"
1247 if test -s confdefs.h
; then
1254 sed "/^$/d" confdefs.h |
sort
1257 test "$ac_signal" != 0 &&
1258 echo "$as_me: caught signal $ac_signal"
1259 echo "$as_me: exit $exit_status"
1261 rm -f core
*.core
&&
1262 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1265 for ac_signal in 1 2 13 15; do
1266 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1271 rm -rf conftest* confdefs.h
1272 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1275 # Predefined preprocessor variables.
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_NAME "$PACKAGE_NAME"
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_STRING "$PACKAGE_STRING"
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1302 # Let the site file select an alternate cache file if it wants to.
1303 # Prefer explicitly selected file to automatically selected ones.
1304 if test -z "$CONFIG_SITE"; then
1305 if test "x$prefix" != xNONE; then
1306 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1308 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1311 for ac_site_file in $CONFIG_SITE; do
1312 if test -r "$ac_site_file"; then
1313 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1314 echo "$as_me: loading site script $ac_site_file" >&6;}
1315 sed 's
/^
/|
/' "$ac_site_file" >&5
1320 if test -r "$cache_file"; then
1321 # Some versions of bash will fail to source /dev/null (special
1322 # files actually), so we avoid doing that.
1323 if test -f "$cache_file"; then
1324 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1325 echo "$as_me: loading cache $cache_file" >&6;}
1327 [\\/]* | ?:[\\/]* ) . $cache_file;;
1328 *) . ./$cache_file;;
1332 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1333 echo "$as_me: creating cache $cache_file" >&6;}
1337 # Check that the precious variables saved in the cache have kept the same
1339 ac_cache_corrupted=false
1340 for ac_var in `(set) 2>&1 |
1341 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1342 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1343 eval ac_new_set=\$ac_env_${ac_var}_set
1344 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1345 eval ac_new_val="\$ac_env_${ac_var}_value"
1346 case $ac_old_set,$ac_new_set in
1348 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1349 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1350 ac_cache_corrupted=: ;;
1352 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1353 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1354 ac_cache_corrupted=: ;;
1357 if test "x$ac_old_val" != "x$ac_new_val"; then
1358 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1359 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1360 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1361 echo "$as_me: former value: $ac_old_val" >&2;}
1362 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1363 echo "$as_me: current value: $ac_new_val" >&2;}
1364 ac_cache_corrupted=:
1367 # Pass precious variables to config.status.
1368 if test "$ac_new_set" = set; then
1370 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1371 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1372 *) ac_arg=$ac_var=$ac_new_val ;;
1374 case " $ac_configure_args " in
1375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1376 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1380 if $ac_cache_corrupted; then
1381 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1382 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1383 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1384 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1385 { (exit 1); exit 1; }; }
1389 ac_cpp='$CPP $CPPFLAGS'
1390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1391 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420 am__api_version="1.9"
1422 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1423 if test -f $ac_dir/install-sh; then
1425 ac_install_sh="$ac_aux_dir/install-sh -c"
1427 elif test -f $ac_dir/install.sh; then
1429 ac_install_sh="$ac_aux_dir/install.sh -c"
1431 elif test -f $ac_dir/shtool; then
1433 ac_install_sh="$ac_aux_dir/shtool install -c"
1437 if test -z "$ac_aux_dir"; then
1438 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1439 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1440 { (exit 1); exit 1; }; }
1442 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1443 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1444 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1446 # Find a good install program. We prefer a C program (faster),
1447 # so one script is as good as another. But avoid the broken or
1448 # incompatible versions:
1449 # SysV /etc/install, /usr/sbin/install
1450 # SunOS /usr/etc/install
1451 # IRIX /sbin/install
1453 # AmigaOS /C/install, which installs bootblocks on floppy discs
1454 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1457 # OS/2's system install, which has a completely different semantic
1458 # ./install, which can be erroneously created by make from ./install.sh.
1459 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1460 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1461 if test -z "$INSTALL"; then
1462 if test "${ac_cv_path_install+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1469 test -z "$as_dir" && as_dir
=.
1470 # Account for people who put trailing slashes in PATH elements.
1472 .
/ | .
// |
/cC
/* | \
1473 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1474 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1477 # OSF1 and SCO ODT 3.0 have their own names for install.
1478 # Don't use installbsd from OSF since it installs stuff as root
1480 for ac_prog
in ginstall scoinst
install; do
1481 for ac_exec_ext
in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1483 if test $ac_prog = install &&
1484 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1485 # AIX install. It has an incompatible calling convention.
1487 elif test $ac_prog = install &&
1488 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1489 # program-specific install script used by HP pwplus--don't use.
1492 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1504 if test "${ac_cv_path_install+set}" = set; then
1505 INSTALL
=$ac_cv_path_install
1507 # As a last resort, use the slow shell script. We don't cache a
1508 # path for INSTALL within a source directory, because that will
1509 # break other packages using the cache if that directory is
1510 # removed, or if the path is relative.
1511 INSTALL
=$ac_install_sh
1514 echo "$as_me:$LINENO: result: $INSTALL" >&5
1515 echo "${ECHO_T}$INSTALL" >&6
1517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1518 # It thinks the first close brace ends the variable substitution.
1519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1523 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1525 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1526 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1529 echo timestamp
> conftest.
file
1530 # Do `set' in a subshell so we don't clobber the current shell's
1531 # arguments. Must try -L first in case configure is actually a
1532 # symlink; some systems play weird games with the mod time of symlinks
1533 # (eg FreeBSD returns the mod time of the symlink's containing
1536 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1537 if test "$*" = "X"; then
1539 set X
`ls -t $srcdir/configure conftest.file`
1542 if test "$*" != "X $srcdir/configure conftest.file" \
1543 && test "$*" != "X conftest.file $srcdir/configure"; then
1545 # If neither matched, then we have a broken ls. This can happen
1546 # if, for instance, CONFIG_SHELL is bash and it inherits a
1547 # broken ls alias from the environment. This has actually
1548 # happened. Such a system could not be considered "sane".
1549 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1550 alias in your environment" >&5
1551 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1552 alias in your environment" >&2;}
1553 { (exit 1); exit 1; }; }
1556 test "$2" = conftest.
file
1562 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1563 Check your system clock" >&5
1564 echo "$as_me: error: newly created file is older than distributed files!
1565 Check your system clock" >&2;}
1566 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: yes" >&5
1569 echo "${ECHO_T}yes" >&6
1570 test "$program_prefix" != NONE
&&
1571 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1572 # Use a double $ so make ignores it.
1573 test "$program_suffix" != NONE
&&
1574 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1575 # Double any \ or $. echo might interpret backslashes.
1576 # By default was `s,x,x', remove it if useless.
1577 cat <<\_ACEOF
>conftest.
sed
1578 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1580 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1583 # expand $ac_aux_dir to an absolute path
1584 am_aux_dir
=`cd $ac_aux_dir && pwd`
1586 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1587 # Use eval to expand $SHELL
1588 if eval "$MISSING --run true"; then
1589 am_missing_run
="$MISSING --run "
1592 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1593 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1596 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1597 # We used to keeping the `.' as first argument, in order to
1598 # allow $(mkdir_p) to be used without argument. As in
1599 # $(mkdir_p) $(somedir)
1600 # where $(somedir) is conditionally defined. However this is wrong
1602 # 1. if the package is installed by a user who cannot write `.'
1603 # make install will fail,
1604 # 2. the above comment should most certainly read
1605 # $(mkdir_p) $(DESTDIR)$(somedir)
1606 # so it does not work when $(somedir) is undefined and
1607 # $(DESTDIR) is not.
1608 # To support the latter case, we have to write
1609 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1610 # so the `.' trick is pointless.
1611 mkdir_p
='mkdir -p --'
1613 # On NextStep and OpenStep, the `mkdir' command does not
1614 # recognize any option. It will interpret all options as
1615 # directories to create, and then abort because `.' already
1617 for d
in .
/-p .
/--version;
1619 test -d $d && rmdir $d
1621 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622 if test -f "$ac_aux_dir/mkinstalldirs"; then
1623 mkdir_p
='$(mkinstalldirs)'
1625 mkdir_p
='$(install_sh) -d'
1629 for ac_prog
in gawk mawk nawk
awk
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy
$ac_prog; ac_word
=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_AWK+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$AWK"; then
1639 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir
=.
1646 for ac_exec_ext
in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_AWK
="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 if test -n "$AWK"; then
1659 echo "$as_me:$LINENO: result: $AWK" >&5
1660 echo "${ECHO_T}$AWK" >&6
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1666 test -n "$AWK" && break
1669 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1672 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 cat >conftest.
make <<\_ACEOF
1677 @
echo 'ac_maketemp="$(MAKE)"'
1679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681 if test -n "$ac_maketemp"; then
1682 eval ac_cv_prog_make_
${ac_make}_set
=yes
1684 eval ac_cv_prog_make_
${ac_make}_set
=no
1688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 SET_MAKE
="MAKE=${MAKE-make}"
1698 rm -rf .tst
2>/dev
/null
1699 mkdir .tst
2>/dev
/null
1700 if test -d .tst
; then
1705 rmdir .tst
2>/dev
/null
1707 # test to see if srcdir already configured
1708 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709 test -f $srcdir/config.status
; then
1710 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712 { (exit 1); exit 1; }; }
1715 # test whether we have cygpath
1716 if test -z "$CYGPATH_W"; then
1717 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1718 CYGPATH_W
='cygpath -w'
1725 # Define the identity of the package.
1730 cat >>confdefs.h
<<_ACEOF
1731 #define PACKAGE "$PACKAGE"
1735 cat >>confdefs.h
<<_ACEOF
1736 #define VERSION "$VERSION"
1739 # Some tools Automake needs.
1741 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1747 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1753 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1755 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1757 # Installed binaries are usually stripped using `strip' when the user
1758 # run `make install-strip'. However `strip' might not be the right
1759 # tool to use in cross-compilation environments, therefore Automake
1760 # will honor the `STRIP' environment variable to overrule this program.
1761 if test "$cross_compiling" != no
; then
1762 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_STRIP+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$STRIP"; then
1771 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir
=.
1778 for ac_exec_ext
in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 STRIP
=$ac_cv_prog_STRIP
1790 if test -n "$STRIP"; then
1791 echo "$as_me:$LINENO: result: $STRIP" >&5
1792 echo "${ECHO_T}$STRIP" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1799 if test -z "$ac_cv_prog_STRIP"; then
1801 # Extract the first word of "strip", so it can be a program name with args.
1802 set dummy strip
; ac_word
=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$ac_ct_STRIP"; then
1809 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir
=.
1816 for ac_exec_ext
in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_ac_ct_STRIP
="strip"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1828 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1829 if test -n "$ac_ct_STRIP"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831 echo "${ECHO_T}$ac_ct_STRIP" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1839 STRIP
="$ac_cv_prog_STRIP"
1843 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1845 # We need awk for the "check" target. The system "awk" is bad on
1847 # Always define AMTAR for backward compatibility.
1849 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1851 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1859 ac_config_headers
="$ac_config_headers config.h"
1861 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1862 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1863 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1864 if test "${enable_maintainer_mode+set}" = set; then
1865 enableval
="$enable_maintainer_mode"
1866 USE_MAINTAINER_MODE
=$enableval
1868 USE_MAINTAINER_MODE
=no
1870 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1871 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1874 if test $USE_MAINTAINER_MODE = yes; then
1875 MAINTAINER_MODE_TRUE
=
1876 MAINTAINER_MODE_FALSE
='#'
1878 MAINTAINER_MODE_TRUE
='#'
1879 MAINTAINER_MODE_FALSE
=
1882 MAINT
=$MAINTAINER_MODE_TRUE
1886 # Make sure we can run config.sub.
1887 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1888 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1889 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1890 { (exit 1); exit 1; }; }
1892 echo "$as_me:$LINENO: checking build system type" >&5
1893 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1894 if test "${ac_cv_build+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 ac_cv_build_alias
=$build_alias
1898 test -z "$ac_cv_build_alias" &&
1899 ac_cv_build_alias
=`$ac_config_guess`
1900 test -z "$ac_cv_build_alias" &&
1901 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1902 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1903 { (exit 1); exit 1; }; }
1904 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1905 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1906 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1907 { (exit 1); exit 1; }; }
1910 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1911 echo "${ECHO_T}$ac_cv_build" >&6
1913 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1914 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1915 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1918 echo "$as_me:$LINENO: checking host system type" >&5
1919 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1920 if test "${ac_cv_host+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 ac_cv_host_alias
=$host_alias
1924 test -z "$ac_cv_host_alias" &&
1925 ac_cv_host_alias
=$ac_cv_build_alias
1926 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1927 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1928 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1929 { (exit 1); exit 1; }; }
1932 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1933 echo "${ECHO_T}$ac_cv_host" >&6
1935 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1936 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1937 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1941 case "${host_os}" in
1944 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
1945 MULELDFLAGS
="-bind_at_load"
1946 touch src
/Scanner.cpp
1950 LIBS
="$LIBS -L/usr/local/lib"
1951 X11LIBS
="-lX11 -L/usr/X11R6/lib"
1952 MULECPPFLAGS
="-D__OPENBSD__"
1954 *cygwin
* |
*mingw32
*)
1956 MULECPPFLAGS
="-DNOMINMAX"
1960 RESOLV_LIB
="-lresolv -lnsl"
1966 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
1967 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
1968 # Still, we prepend them, instead of adding, so the user may override them.
1969 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
1970 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
1977 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
1978 if test ${SYS:-unknown} != win32
; then
1980 echo "$as_me:$LINENO: checking if this is a FreeBSD 4 or earlier system" >&5
1981 echo $ECHO_N "checking if this is a FreeBSD 4 or earlier system... $ECHO_C" >&6
1982 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then
1984 MULELDFLAGS
="$MULELDFLAGS -pthread"
1985 echo "$as_me:$LINENO: result: yes" >&5
1986 echo "${ECHO_T}yes" >&6
1990 MULELDFLAGS
="$MULELDFLAGS -lpthread"
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
2002 mule_backup_CFLAGS
="$CFLAGS"
2003 mule_backup_CXXFLAGS
="$CXXFLAGS"
2004 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
2006 ac_cpp
='$CXXCPP $CPPFLAGS'
2007 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CXX+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CXX"; then
2021 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir
=.
2028 for ac_exec_ext
in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CXX"; then
2041 echo "$as_me:$LINENO: result: $CXX" >&5
2042 echo "${ECHO_T}$CXX" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2048 test -n "$CXX" && break
2051 if test -z "$CXX"; then
2053 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy
$ac_prog; ac_word
=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CXX"; then
2063 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir
=.
2070 for ac_exec_ext
in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2082 if test -n "$ac_ct_CXX"; then
2083 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2084 echo "${ECHO_T}$ac_ct_CXX" >&6
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2090 test -n "$ac_ct_CXX" && break
2092 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2098 # Provide some information about the compiler.
2099 echo "$as_me:$LINENO:" \
2100 "checking for C++ compiler version" >&5
2101 ac_compiler
=`set X $ac_compile; echo $2`
2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2103 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2108 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2113 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2118 cat >conftest.
$ac_ext <<_ACEOF
2121 cat confdefs.h
>>conftest.
$ac_ext
2122 cat >>conftest.
$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2133 ac_clean_files_save
=$ac_clean_files
2134 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2135 # Try to create an executable without -o first, disregard a.out.
2136 # It will help us diagnose broken compilers, and finding out an intuition
2138 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2139 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2140 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2142 (eval $ac_link_default) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # Find the output, starting from the most likely. This scheme is
2147 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2150 # Be careful to initialize this variable, since it used to be cached.
2151 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2153 # b.out is created by i960 compilers.
2154 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2156 test -f "$ac_file" ||
continue
2158 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2161 # This is the source file.
2164 # We found the default executable, but exeext='' is most
2168 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169 # FIXME: I believe we export ac_cv_exeext for Libtool,
2170 # but it would be cool to find out if it's true. Does anybody
2171 # maintain Libtool? --akim.
2179 echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.
$ac_ext >&5
2182 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: C++ compiler cannot create executables
2185 See \`config.log' for more details." >&2;}
2186 { (exit 77); exit 77; }; }
2189 ac_exeext
=$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_file" >&5
2191 echo "${ECHO_T}$ac_file" >&6
2193 # Check the compiler produces executables we can run. If not, either
2194 # the compiler is broken, or we cross compile.
2195 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2196 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2197 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2198 # If not cross compiling, check that we can run a simple program.
2199 if test "$cross_compiling" != yes; then
2200 if { ac_try
='./$ac_file'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2208 if test "$cross_compiling" = maybe
; then
2211 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot run C++ compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2221 echo "$as_me:$LINENO: result: yes" >&5
2222 echo "${ECHO_T}yes" >&6
2224 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2225 ac_clean_files
=$ac_clean_files_save
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2229 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2230 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2231 echo "${ECHO_T}$cross_compiling" >&6
2233 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2234 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2236 (eval $ac_link) 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
2240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2242 # work properly (i.e., refer to `conftest.exe'), while it won't with
2244 for ac_file
in conftest.exe conftest conftest.
*; do
2245 test -f "$ac_file" ||
continue
2247 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2248 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest
$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2264 echo "${ECHO_T}$ac_cv_exeext" >&6
2266 rm -f conftest.
$ac_ext
2267 EXEEXT
=$ac_cv_exeext
2269 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2271 if test "${ac_cv_objext+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 cat >conftest.
$ac_ext <<_ACEOF
2277 cat confdefs.h
>>conftest.
$ac_ext
2278 cat >>conftest.
$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2289 rm -f conftest.o conftest.obj
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2297 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2298 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.
$ac_ext >&5
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2313 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2315 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2316 echo "${ECHO_T}$ac_cv_objext" >&6
2317 OBJEXT
=$ac_cv_objext
2319 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2320 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 cat >conftest.
$ac_ext <<_ACEOF
2327 cat confdefs.h
>>conftest.
$ac_ext
2328 cat >>conftest.
$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2342 rm -f conftest.
$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2346 grep -v '^ *+' conftest.er1
>conftest.err
2348 cat conftest.err
>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try
='test -z "$ac_cxx_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try
='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.
$ac_ext >&5
2371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2375 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2376 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2377 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2378 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2379 ac_save_CXXFLAGS
=$CXXFLAGS
2381 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2382 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cxx_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 cat >conftest.
$ac_ext <<_ACEOF
2389 cat confdefs.h
>>conftest.
$ac_ext
2390 cat >>conftest.
$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2401 rm -f conftest.
$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2405 grep -v '^ *+' conftest.er1
>conftest.err
2407 cat conftest.err
>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try
='test -z "$ac_cxx_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try
='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cxx_g
=yes
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.
$ac_ext >&5
2430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2434 if test "$ac_test_CXXFLAGS" = set; then
2435 CXXFLAGS
=$ac_save_CXXFLAGS
2436 elif test $ac_cv_prog_cxx_g = yes; then
2437 if test "$GXX" = yes; then
2443 if test "$GXX" = yes; then
2449 for ac_declaration
in \
2451 'extern "C" void std::exit (int) throw (); using std::exit;' \
2452 'extern "C" void std::exit (int); using std::exit;' \
2453 'extern "C" void exit (int) throw ();' \
2454 'extern "C" void exit (int);' \
2457 cat >conftest.
$ac_ext <<_ACEOF
2460 cat confdefs.h
>>conftest.
$ac_ext
2461 cat >>conftest.
$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2473 rm -f conftest.
$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1
>conftest.err
2479 cat conftest.err
>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try
='test -z "$ac_cxx_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try
='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.
$ac_ext >&5
2502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2503 cat >conftest.
$ac_ext <<_ACEOF
2506 cat confdefs.h
>>conftest.
$ac_ext
2507 cat >>conftest.
$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.
$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2522 grep -v '^ *+' conftest.er1
>conftest.err
2524 cat conftest.err
>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try
='test -z "$ac_cxx_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try
='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.
$ac_ext >&5
2546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2549 if test -n "$ac_declaration"; then
2550 echo '#ifdef __cplusplus' >>confdefs.h
2551 echo $ac_declaration >>confdefs.h
2552 echo '#endif' >>confdefs.h
2556 ac_cpp
='$CPP $CPPFLAGS'
2557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2560 DEPDIR
="${am__leading_dot}deps"
2562 ac_config_commands
="$ac_config_commands depfiles"
2565 am_make
=${MAKE-make}
2566 cat > confinc
<< 'END'
2571 # If we don't find an include directive, just comment out the code.
2572 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2573 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2577 # First try GNU make style include.
2578 echo "include confinc" > confmf
2579 # We grep out `Entering directory' and `Leaving directory'
2580 # messages which can occur if `w' ends up in MAKEFLAGS.
2581 # In particular we don't look at `^make:' because GNU make might
2582 # be invoked under some other name (usually "gmake"), in which
2583 # case it prints its new name instead of `make'.
2584 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2589 # Now try BSD make style include.
2590 if test "$am__include" = "#"; then
2591 echo '.include "confinc"' > confmf
2592 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2593 am__include
=.include
2600 echo "$as_me:$LINENO: result: $_am_result" >&5
2601 echo "${ECHO_T}$_am_result" >&6
2602 rm -f confinc confmf
2604 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2605 if test "${enable_dependency_tracking+set}" = set; then
2606 enableval
="$enable_dependency_tracking"
2609 if test "x$enable_dependency_tracking" != xno
; then
2610 am_depcomp
="$ac_aux_dir/depcomp"
2615 if test "x$enable_dependency_tracking" != xno; then
2626 depcc
="$CXX" am_compiler_list
=
2628 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2629 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2630 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2634 # We make a subdir and do the tests there. Otherwise we can end up
2635 # making bogus files that we don't know about and never remove. For
2636 # instance it was reported that on HP-UX the gcc test will end up
2637 # making a dummy file named `D' -- because `-MD' means `put the output
2640 # Copy depcomp to subdir because otherwise we won't find it if we're
2641 # using a relative directory.
2642 cp "$am_depcomp" conftest.dir
2644 # We will build objects and dependencies in a subdirectory because
2645 # it helps to detect inapplicable dependency modes. For instance
2646 # both Tru64's cc and ICC support -MD to output dependencies as a
2647 # side effect of compilation, but ICC will put the dependencies in
2648 # the current directory while Tru64 will put them in the object
2652 am_cv_CXX_dependencies_compiler_type
=none
2653 if test "$am_compiler_list" = ""; then
2654 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2656 for depmode
in $am_compiler_list; do
2657 # Setup a source with many dependencies, because some compilers
2658 # like to wrap large dependency lists on column 80 (with \), and
2659 # we should not choose a depcomp mode which is confused by this.
2661 # We need to recreate these files for each test, as the compiler may
2662 # overwrite some of them when testing with obscure command lines.
2663 # This happens at least with the AIX C compiler.
2665 for i
in 1 2 3 4 5 6; do
2666 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2667 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2668 # Solaris 8's {/usr,}/bin/sh.
2669 touch sub
/conftst
$i.h
2671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2675 # after this tag, mechanisms are not by side-effect, so they'll
2676 # only be used when explicitly requested
2677 if test "x$enable_dependency_tracking" = xyes
; then
2685 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2686 # mode. It turns out that the SunPro C++ compiler does not properly
2687 # handle `-M -o', and we need to detect this.
2688 if depmode
=$depmode \
2689 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2690 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2691 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2692 >/dev
/null
2>conftest.err
&&
2693 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2694 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2695 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2696 # icc doesn't choke on unknown options, it will just issue warnings
2697 # or remarks (even with -Werror). So we grep stderr for any message
2698 # that says an option was ignored or not supported.
2699 # When given -MP, icc 7.0 and 7.1 complain thusly:
2700 # icc: Command line warning: ignoring option '-M'; no argument required
2701 # The diagnosis changed in icc 8.0:
2702 # icc: Command line remark: option '-MP' not supported
2703 if (grep 'ignoring option' conftest.err ||
2704 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2705 am_cv_CXX_dependencies_compiler_type
=$depmode
2714 am_cv_CXX_dependencies_compiler_type
=none
2718 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2719 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2720 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2725 test "x$enable_dependency_tracking" != xno \
2726 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
2727 am__fastdepCXX_TRUE
=
2728 am__fastdepCXX_FALSE
='#'
2730 am__fastdepCXX_TRUE
='#'
2731 am__fastdepCXX_FALSE
=
2736 ac_cpp
='$CXXCPP $CPPFLAGS'
2737 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2742 if test -z "$CXXCPP"; then
2743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 # Double quotes because CXXCPP needs to be expanded
2747 for CXXCPP
in "$CXX -E" "/lib/cpp"
2750 for ac_cxx_preproc_warn_flag
in '' yes
2752 # Use a header file that comes with gcc, so configuring glibc
2753 # with a fresh cross-compiler works.
2754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2755 # <limits.h> exists even on freestanding compilers.
2756 # On the NeXT, cc -E runs the code through the compiler's parser,
2757 # not just through cpp. "Syntax error" is here to catch this case.
2758 cat >conftest.
$ac_ext <<_ACEOF
2761 cat confdefs.h
>>conftest.
$ac_ext
2762 cat >>conftest.
$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2765 # include <limits.h>
2767 # include <assert.h>
2771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2774 grep -v '^ *+' conftest.er1
>conftest.err
2776 cat conftest.err
>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } >/dev
/null
; then
2779 if test -s conftest.err
; then
2780 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2781 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2788 if test -z "$ac_cpp_err"; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.
$ac_ext >&5
2794 # Broken: fails on valid input.
2797 rm -f conftest.err conftest.
$ac_ext
2799 # OK, works on sane cases. Now check whether non-existent headers
2800 # can be detected and how.
2801 cat >conftest.
$ac_ext <<_ACEOF
2804 cat confdefs.h
>>conftest.
$ac_ext
2805 cat >>conftest.
$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 #include <ac_nonexistent.h>
2809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2810 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2812 grep -v '^ *+' conftest.er1
>conftest.err
2814 cat conftest.err
>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } >/dev
/null
; then
2817 if test -s conftest.err
; then
2818 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2819 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2826 if test -z "$ac_cpp_err"; then
2827 # Broken: success on invalid input.
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.
$ac_ext >&5
2833 # Passes both tests.
2837 rm -f conftest.err conftest.
$ac_ext
2840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2841 rm -f conftest.err conftest.
$ac_ext
2842 if $ac_preproc_ok; then
2847 ac_cv_prog_CXXCPP
=$CXXCPP
2850 CXXCPP
=$ac_cv_prog_CXXCPP
2852 ac_cv_prog_CXXCPP
=$CXXCPP
2854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2855 echo "${ECHO_T}$CXXCPP" >&6
2857 for ac_cxx_preproc_warn_flag
in '' yes
2859 # Use a header file that comes with gcc, so configuring glibc
2860 # with a fresh cross-compiler works.
2861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862 # <limits.h> exists even on freestanding compilers.
2863 # On the NeXT, cc -E runs the code through the compiler's parser,
2864 # not just through cpp. "Syntax error" is here to catch this case.
2865 cat >conftest.
$ac_ext <<_ACEOF
2868 cat confdefs.h
>>conftest.
$ac_ext
2869 cat >>conftest.
$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2872 # include <limits.h>
2874 # include <assert.h>
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1
>conftest.err
2883 cat conftest.err
>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev
/null
; then
2886 if test -s conftest.err
; then
2887 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2888 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2895 if test -z "$ac_cpp_err"; then
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.
$ac_ext >&5
2901 # Broken: fails on valid input.
2904 rm -f conftest.err conftest.
$ac_ext
2906 # OK, works on sane cases. Now check whether non-existent headers
2907 # can be detected and how.
2908 cat >conftest.
$ac_ext <<_ACEOF
2911 cat confdefs.h
>>conftest.
$ac_ext
2912 cat >>conftest.
$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #include <ac_nonexistent.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1
>conftest.err
2921 cat conftest.err
>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev
/null
; then
2924 if test -s conftest.err
; then
2925 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2926 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2933 if test -z "$ac_cpp_err"; then
2934 # Broken: success on invalid input.
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.
$ac_ext >&5
2940 # Passes both tests.
2944 rm -f conftest.err conftest.
$ac_ext
2947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2948 rm -f conftest.err conftest.
$ac_ext
2949 if $ac_preproc_ok; then
2952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2960 ac_cpp
='$CPP $CPPFLAGS'
2961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2966 ac_cpp
='$CPP $CPPFLAGS'
2967 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_prog_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC
="$CC" # Let the user override the test.
2981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir
=.
2986 for ac_exec_ext
in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 if test -n "$CC"; then
2999 echo "$as_me:$LINENO: result: $CC" >&5
3000 echo "${ECHO_T}$CC" >&6
3002 echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6
3007 if test -z "$ac_cv_prog_CC"; then
3009 # Extract the first word of "gcc", so it can be a program name with args.
3010 set dummy gcc
; ac_word
=$2
3011 echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir
=.
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_CC
="gcc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3038 echo "${ECHO_T}$ac_ct_CC" >&6
3040 echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3053 echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC
="$CC" # Let the user override the test.
3061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir
=.
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test -n "$CC"; then
3079 echo "$as_me:$LINENO: result: $CC" >&5
3080 echo "${ECHO_T}$CC" >&6
3082 echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3087 if test -z "$ac_cv_prog_CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc
; ac_word
=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir
=.
3104 for ac_exec_ext
in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_ac_ct_CC
="cc"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3118 echo "${ECHO_T}$ac_ct_CC" >&6
3120 echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3130 if test -z "$CC"; then
3131 # Extract the first word of "cc", so it can be a program name with args.
3132 set dummy cc
; ac_word
=$2
3133 echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC
="$CC" # Let the user override the test.
3142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir
=.
3147 for ac_exec_ext
in '' $ac_executable_extensions; do
3148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3150 ac_prog_rejected
=yes
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 if test $ac_prog_rejected = yes; then
3161 # We found a bogon in the path, so make sure we never use it.
3162 set dummy
$ac_cv_prog_CC
3164 if test $# != 0; then
3165 # We chose a different compiler from the bogus one.
3166 # However, it has the same basename, so the bogon will be chosen
3167 # first if we set CC to just the basename; use the full file name.
3169 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3175 if test -n "$CC"; then
3176 echo "$as_me:$LINENO: result: $CC" >&5
3177 echo "${ECHO_T}$CC" >&6
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3190 echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192 if test "${ac_cv_prog_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC
="$CC" # Let the user override the test.
3198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir
=.
3203 for ac_exec_ext
in '' $ac_executable_extensions; do
3204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 if test -n "$CC"; then
3216 echo "$as_me:$LINENO: result: $CC" >&5
3217 echo "${ECHO_T}$CC" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 test -n "$CC" && break
3226 if test -z "$CC"; then
3230 # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy
$ac_prog; ac_word
=$2
3232 echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir
=.
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_ac_ct_CC
="$ac_prog"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3259 echo "${ECHO_T}$ac_ct_CC" >&6
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3265 test -n "$ac_ct_CC" && break
3274 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3275 See \`config.log' for more details." >&5
3276 echo "$as_me: error: no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details." >&2;}
3278 { (exit 1); exit 1; }; }
3280 # Provide some information about the compiler.
3281 echo "$as_me:$LINENO:" \
3282 "checking for C compiler version" >&5
3283 ac_compiler
=`set X $ac_compile; echo $2`
3284 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3285 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }
3289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3290 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }
3294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3295 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }
3300 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3301 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3302 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 cat >conftest.
$ac_ext <<_ACEOF
3308 cat confdefs.h
>>conftest.
$ac_ext
3309 cat >>conftest.
$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3323 rm -f conftest.
$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3327 grep -v '^ *+' conftest.er1
>conftest.err
3329 cat conftest.err
>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try
='test -z "$ac_c_werror_flag"
3333 || test ! -s conftest.err'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try
='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.
$ac_ext >&5
3352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3353 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3358 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3359 ac_test_CFLAGS
=${CFLAGS+set}
3360 ac_save_CFLAGS
=$CFLAGS
3362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3364 if test "${ac_cv_prog_cc_g+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3382 rm -f conftest.
$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3386 grep -v '^ *+' conftest.er1
>conftest.err
3388 cat conftest.err
>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try
='test -z "$ac_c_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try
='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.
$ac_ext >&5
3411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3414 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3415 if test "$ac_test_CFLAGS" = set; then
3416 CFLAGS
=$ac_save_CFLAGS
3417 elif test $ac_cv_prog_cc_g = yes; then
3418 if test "$GCC" = yes; then
3424 if test "$GCC" = yes; then
3430 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3431 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3432 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 ac_cv_prog_cc_stdc
=no
3437 cat >conftest.
$ac_ext <<_ACEOF
3440 cat confdefs.h
>>conftest.
$ac_ext
3441 cat >>conftest.
$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3445 #include <sys/types.h>
3446 #include <sys/stat.h>
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3461 s = g (p, va_arg (v,int));
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std1 is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std1. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475 int test (int i, double x);
3476 struct s1 {int (*f) (int a);};
3477 struct s2 {int (*f) (double a);};
3478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3489 # Don't try gcc -ansi; that turns off useful extensions and
3490 # breaks some systems' header files.
3491 # AIX -qlanglvl=ansi
3492 # Ultrix and OSF/1 -std1
3493 # HP-UX 10.20 and later -Ae
3494 # HP-UX older versions -Aa -D_HPUX_SOURCE
3495 # SVR4 -Xc -D__EXTENSIONS__
3496 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498 CC
="$ac_save_CC $ac_arg"
3499 rm -f conftest.
$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3503 grep -v '^ *+' conftest.er1
>conftest.err
3505 cat conftest.err
>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try
='test -z "$ac_c_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_prog_cc_stdc
=$ac_arg
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.
$ac_ext >&5
3528 rm -f conftest.err conftest.
$ac_objext
3530 rm -f conftest.
$ac_ext conftest.
$ac_objext
3535 case "x$ac_cv_prog_cc_stdc" in
3537 echo "$as_me:$LINENO: result: none needed" >&5
3538 echo "${ECHO_T}none needed" >&6 ;;
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3541 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3542 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3545 # Some people use a C++ compiler to compile C. Since we use `exit',
3546 # in C++ we need to declare it. In case someone uses the same compiler
3547 # for both compiling C and C++ we need to have the C++ compiler decide
3548 # the declaration of exit, since it's the most demanding environment.
3549 cat >conftest.
$ac_ext <<_ACEOF
3554 rm -f conftest.
$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try
='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 for ac_declaration
in \
3578 'extern "C" void std::exit (int) throw (); using std::exit;' \
3579 'extern "C" void std::exit (int); using std::exit;' \
3580 'extern "C" void exit (int) throw ();' \
3581 'extern "C" void exit (int);' \
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3600 rm -f conftest.
$ac_objext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>conftest.er1
3604 grep -v '^ *+' conftest.er1
>conftest.err
3606 cat conftest.err
>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try
='test -z "$ac_c_werror_flag"
3610 || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try
='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.
$ac_ext >&5
3629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3630 cat >conftest.
$ac_ext <<_ACEOF
3633 cat confdefs.h
>>conftest.
$ac_ext
3634 cat >>conftest.
$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 rm -f conftest.
$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3649 grep -v '^ *+' conftest.er1
>conftest.err
3651 cat conftest.err
>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try
='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try
='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.
$ac_ext >&5
3673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3676 if test -n "$ac_declaration"; then
3677 echo '#ifdef __cplusplus' >>confdefs.h
3678 echo $ac_declaration >>confdefs.h
3679 echo '#endif' >>confdefs.h
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.
$ac_ext >&5
3687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 ac_cpp
='$CPP $CPPFLAGS'
3690 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3694 depcc
="$CC" am_compiler_list
=
3696 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3697 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3698 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3702 # We make a subdir and do the tests there. Otherwise we can end up
3703 # making bogus files that we don't know about and never remove. For
3704 # instance it was reported that on HP-UX the gcc test will end up
3705 # making a dummy file named `D' -- because `-MD' means `put the output
3708 # Copy depcomp to subdir because otherwise we won't find it if we're
3709 # using a relative directory.
3710 cp "$am_depcomp" conftest.dir
3712 # We will build objects and dependencies in a subdirectory because
3713 # it helps to detect inapplicable dependency modes. For instance
3714 # both Tru64's cc and ICC support -MD to output dependencies as a
3715 # side effect of compilation, but ICC will put the dependencies in
3716 # the current directory while Tru64 will put them in the object
3720 am_cv_CC_dependencies_compiler_type
=none
3721 if test "$am_compiler_list" = ""; then
3722 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724 for depmode
in $am_compiler_list; do
3725 # Setup a source with many dependencies, because some compilers
3726 # like to wrap large dependency lists on column 80 (with \), and
3727 # we should not choose a depcomp mode which is confused by this.
3729 # We need to recreate these files for each test, as the compiler may
3730 # overwrite some of them when testing with obscure command lines.
3731 # This happens at least with the AIX C compiler.
3733 for i
in 1 2 3 4 5 6; do
3734 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3736 # Solaris 8's {/usr,}/bin/sh.
3737 touch sub
/conftst
$i.h
3739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743 # after this tag, mechanisms are not by side-effect, so they'll
3744 # only be used when explicitly requested
3745 if test "x$enable_dependency_tracking" = xyes
; then
3753 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3754 # mode. It turns out that the SunPro C++ compiler does not properly
3755 # handle `-M -o', and we need to detect this.
3756 if depmode
=$depmode \
3757 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3758 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3759 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3760 >/dev
/null
2>conftest.err
&&
3761 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3762 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3763 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3764 # icc doesn't choke on unknown options, it will just issue warnings
3765 # or remarks (even with -Werror). So we grep stderr for any message
3766 # that says an option was ignored or not supported.
3767 # When given -MP, icc 7.0 and 7.1 complain thusly:
3768 # icc: Command line warning: ignoring option '-M'; no argument required
3769 # The diagnosis changed in icc 8.0:
3770 # icc: Command line remark: option '-MP' not supported
3771 if (grep 'ignoring option' conftest.err ||
3772 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3773 am_cv_CC_dependencies_compiler_type
=$depmode
3782 am_cv_CC_dependencies_compiler_type
=none
3786 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3787 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3788 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3793 test "x$enable_dependency_tracking" != xno \
3794 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3796 am__fastdepCC_FALSE
='#'
3798 am__fastdepCC_TRUE
='#'
3799 am__fastdepCC_FALSE
=
3804 ac_cpp
='$CPP $CPPFLAGS'
3805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3808 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3809 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3810 # On Suns, sometimes $CPP names a directory.
3811 if test -n "$CPP" && test -d "$CPP"; then
3814 if test -z "$CPP"; then
3815 if test "${ac_cv_prog_CPP+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 # Double quotes because CPP needs to be expanded
3819 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3822 for ac_c_preproc_warn_flag
in '' yes
3824 # Use a header file that comes with gcc, so configuring glibc
3825 # with a fresh cross-compiler works.
3826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3827 # <limits.h> exists even on freestanding compilers.
3828 # On the NeXT, cc -E runs the code through the compiler's parser,
3829 # not just through cpp. "Syntax error" is here to catch this case.
3830 cat >conftest.
$ac_ext <<_ACEOF
3833 cat confdefs.h
>>conftest.
$ac_ext
3834 cat >>conftest.
$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3837 # include <limits.h>
3839 # include <assert.h>
3843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3846 grep -v '^ *+' conftest.er1
>conftest.err
3848 cat conftest.err
>&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } >/dev
/null
; then
3851 if test -s conftest.err
; then
3852 ac_cpp_err
=$ac_c_preproc_warn_flag
3853 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3860 if test -z "$ac_cpp_err"; then
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.
$ac_ext >&5
3866 # Broken: fails on valid input.
3869 rm -f conftest.err conftest.
$ac_ext
3871 # OK, works on sane cases. Now check whether non-existent headers
3872 # can be detected and how.
3873 cat >conftest.
$ac_ext <<_ACEOF
3876 cat confdefs.h
>>conftest.
$ac_ext
3877 cat >>conftest.
$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #include <ac_nonexistent.h>
3881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3884 grep -v '^ *+' conftest.er1
>conftest.err
3886 cat conftest.err
>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev
/null
; then
3889 if test -s conftest.err
; then
3890 ac_cpp_err
=$ac_c_preproc_warn_flag
3891 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3898 if test -z "$ac_cpp_err"; then
3899 # Broken: success on invalid input.
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.
$ac_ext >&5
3905 # Passes both tests.
3909 rm -f conftest.err conftest.
$ac_ext
3912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3913 rm -f conftest.err conftest.
$ac_ext
3914 if $ac_preproc_ok; then
3926 echo "$as_me:$LINENO: result: $CPP" >&5
3927 echo "${ECHO_T}$CPP" >&6
3929 for ac_c_preproc_warn_flag
in '' yes
3931 # Use a header file that comes with gcc, so configuring glibc
3932 # with a fresh cross-compiler works.
3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934 # <limits.h> exists even on freestanding compilers.
3935 # On the NeXT, cc -E runs the code through the compiler's parser,
3936 # not just through cpp. "Syntax error" is here to catch this case.
3937 cat >conftest.
$ac_ext <<_ACEOF
3940 cat confdefs.h
>>conftest.
$ac_ext
3941 cat >>conftest.
$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3944 # include <limits.h>
3946 # include <assert.h>
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3953 grep -v '^ *+' conftest.er1
>conftest.err
3955 cat conftest.err
>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev
/null
; then
3958 if test -s conftest.err
; then
3959 ac_cpp_err
=$ac_c_preproc_warn_flag
3960 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3967 if test -z "$ac_cpp_err"; then
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.
$ac_ext >&5
3973 # Broken: fails on valid input.
3976 rm -f conftest.err conftest.
$ac_ext
3978 # OK, works on sane cases. Now check whether non-existent headers
3979 # can be detected and how.
3980 cat >conftest.
$ac_ext <<_ACEOF
3983 cat confdefs.h
>>conftest.
$ac_ext
3984 cat >>conftest.
$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1
>conftest.err
3993 cat conftest.err
>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } >/dev
/null
; then
3996 if test -s conftest.err
; then
3997 ac_cpp_err
=$ac_c_preproc_warn_flag
3998 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4005 if test -z "$ac_cpp_err"; then
4006 # Broken: success on invalid input.
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.
$ac_ext >&5
4012 # Passes both tests.
4016 rm -f conftest.err conftest.
$ac_ext
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.err conftest.
$ac_ext
4021 if $ac_preproc_ok; then
4024 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4025 See \`config.log' for more details." >&5
4026 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4027 See \`config.log' for more details." >&2;}
4028 { (exit 1); exit 1; }; }
4032 ac_cpp
='$CPP $CPPFLAGS'
4033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4037 if test "$cross_compiling" = yes; then
4039 test -n "$build_alias" && ac_build_prefix
=$build_alias-
4042 # Even if we're cross-compiling, we want a compiler here
4043 # that is not a cross-compiler.
4044 saved_cross
=$cross_compiling
4048 ac_cpp
='$CPP $BUILD_CPPFLAGS'
4049 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
4051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_build_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if test -n "$BUILD_CC"; then
4061 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir
=.
4068 for ac_exec_ext
in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 BUILD_CC
=$ac_cv_prog_BUILD_CC
4080 if test -n "$BUILD_CC"; then
4081 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4082 echo "${ECHO_T}$BUILD_CC" >&6
4084 echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4089 if test -z "$ac_cv_prog_BUILD_CC"; then
4090 ac_ct_BUILD_CC
=$BUILD_CC
4091 # Extract the first word of "gcc", so it can be a program name with args.
4092 set dummy gcc
; ac_word
=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if test -n "$ac_ct_BUILD_CC"; then
4099 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4105 test -z "$as_dir" && as_dir
=.
4106 for ac_exec_ext
in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4118 if test -n "$ac_ct_BUILD_CC"; then
4119 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4120 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4122 echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4126 BUILD_CC
=$ac_ct_BUILD_CC
4128 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4131 if test -z "$BUILD_CC"; then
4132 if test -n "$ac_build_prefix"; then
4133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4134 set dummy
${ac_build_prefix}cc
; ac_word
=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if test -n "$BUILD_CC"; then
4141 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4147 test -z "$as_dir" && as_dir
=.
4148 for ac_exec_ext
in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 BUILD_CC
=$ac_cv_prog_BUILD_CC
4160 if test -n "$BUILD_CC"; then
4161 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4162 echo "${ECHO_T}$BUILD_CC" >&6
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4169 if test -z "$ac_cv_prog_BUILD_CC"; then
4170 ac_ct_BUILD_CC
=$BUILD_CC
4171 # Extract the first word of "cc", so it can be a program name with args.
4172 set dummy cc
; ac_word
=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if test -n "$ac_ct_BUILD_CC"; then
4179 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir
=.
4186 for ac_exec_ext
in '' $ac_executable_extensions; do
4187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_BUILD_CC
="cc"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4198 if test -n "$ac_ct_BUILD_CC"; then
4199 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4200 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4202 echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4206 BUILD_CC
=$ac_ct_BUILD_CC
4208 BUILD_CC
="$ac_cv_prog_BUILD_CC"
4212 if test -z "$BUILD_CC"; then
4213 # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc
; ac_word
=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir
=.
4229 for ac_exec_ext
in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232 ac_prog_rejected
=yes
4235 ac_cv_prog_BUILD_CC
="cc"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 if test $ac_prog_rejected = yes; then
4243 # We found a bogon in the path, so make sure we never use it.
4244 set dummy
$ac_cv_prog_BUILD_CC
4246 if test $# != 0; then
4247 # We chose a different compiler from the bogus one.
4248 # However, it has the same basename, so the bogon will be chosen
4249 # first if we set BUILD_CC to just the basename; use the full file name.
4251 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4256 BUILD_CC
=$ac_cv_prog_BUILD_CC
4257 if test -n "$BUILD_CC"; then
4258 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4259 echo "${ECHO_T}$BUILD_CC" >&6
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4266 if test -z "$BUILD_CC"; then
4267 if test -n "$ac_build_prefix"; then
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 if test -n "$BUILD_CC"; then
4278 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir
=.
4285 for ac_exec_ext
in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 BUILD_CC
=$ac_cv_prog_BUILD_CC
4297 if test -n "$BUILD_CC"; then
4298 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4299 echo "${ECHO_T}$BUILD_CC" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$BUILD_CC" && break
4308 if test -z "$BUILD_CC"; then
4309 ac_ct_BUILD_CC
=$BUILD_CC
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy
$ac_prog; ac_word
=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$ac_ct_BUILD_CC"; then
4320 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
4322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir
=.
4327 for ac_exec_ext
in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
4339 if test -n "$ac_ct_BUILD_CC"; then
4340 echo "$as_me:$LINENO: result: $ac_ct_BUILD_CC" >&5
4341 echo "${ECHO_T}$ac_ct_BUILD_CC" >&6
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4347 test -n "$ac_ct_BUILD_CC" && break
4350 BUILD_CC
=$ac_ct_BUILD_CC
4356 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: no acceptable C compiler found in \$PATH
4359 See \`config.log' for more details." >&2;}
4360 { (exit 1); exit 1; }; }
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364 "checking for C compiler version" >&5
4365 ac_compiler
=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }
4382 cat >conftest.
$ac_ext <<_ACEOF
4385 cat confdefs.h
>>conftest.
$ac_ext
4386 cat >>conftest.
$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4397 ac_clean_files_save
=$ac_clean_files
4398 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
4399 # Try to create an executable without -o first, disregard a.out.
4400 # It will help us diagnose broken compilers, and finding out an intuition
4402 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4403 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4404 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4406 (eval $ac_link_default) 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 # Find the output, starting from the most likely. This scheme is
4411 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4414 # Be careful to initialize this variable, since it used to be cached.
4415 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4417 # b.out is created by i960 compilers.
4418 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
4420 test -f "$ac_file" ||
continue
4422 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
4425 # This is the source file.
4428 # We found the default executable, but exeext='' is most
4432 ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433 # FIXME: I believe we export ac_cv_exeext for Libtool,
4434 # but it would be cool to find out if it's true. Does anybody
4435 # maintain Libtool? --akim.
4436 export ac_cv_build_exeext
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.
$ac_ext >&5
4446 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4447 See \`config.log' for more details." >&5
4448 echo "$as_me: error: C compiler cannot create executables
4449 See \`config.log' for more details." >&2;}
4450 { (exit 77); exit 77; }; }
4453 ac_build_exeext
=$ac_cv_build_exeext
4454 echo "$as_me:$LINENO: result: $ac_file" >&5
4455 echo "${ECHO_T}$ac_file" >&6
4457 # Check the compiler produces executables we can run. If not, either
4458 # the compiler is broken, or we cross compile.
4459 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4462 # If not cross compiling, check that we can run a simple program.
4463 if test "$cross_compiling" != yes; then
4464 if { ac_try
='./$ac_file'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4472 if test "$cross_compiling" = maybe
; then
4475 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4476 If you meant to cross compile, use \`--host'.
4477 See \`config.log' for more details." >&5
4478 echo "$as_me: error: cannot run C compiled programs.
4479 If you meant to cross compile, use \`--host'.
4480 See \`config.log' for more details." >&2;}
4481 { (exit 1); exit 1; }; }
4485 echo "$as_me:$LINENO: result: yes" >&5
4486 echo "${ECHO_T}yes" >&6
4488 rm -f a.out a.exe conftest
$ac_cv_build_exeext b.out
4489 ac_clean_files
=$ac_clean_files_save
4490 # Check the compiler produces executables we can run. If not, either
4491 # the compiler is broken, or we cross compile.
4492 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4493 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4494 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4495 echo "${ECHO_T}$cross_compiling" >&6
4497 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4498 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; then
4504 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4505 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4506 # work properly (i.e., refer to `conftest.exe'), while it won't with
4508 for ac_file
in conftest.exe conftest conftest.
*; do
4509 test -f "$ac_file" ||
continue
4511 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
4512 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 export ac_cv_build_exeext
4519 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4520 See \`config.log' for more details." >&5
4521 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details." >&2;}
4523 { (exit 1); exit 1; }; }
4526 rm -f conftest
$ac_cv_build_exeext
4527 echo "$as_me:$LINENO: result: $ac_cv_build_exeext" >&5
4528 echo "${ECHO_T}$ac_cv_build_exeext" >&6
4530 rm -f conftest.
$ac_ext
4531 BUILD_EXEEXT
=$ac_cv_build_exeext
4532 ac_build_exeext
=$BUILD_EXEEXT
4535 # Restore configuration environment
4536 cross_compiling
=$saved_cross
4539 ac_cpp
='$CPP $CPPFLAGS'
4540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4545 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
4548 CFLAGS
="$mule_backup_CFLAGS"
4549 CXXFLAGS
="$mule_backup_CXXFLAGS"
4550 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
4551 for ac_prog
in gawk mawk nawk
awk
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy
$ac_prog; ac_word
=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_prog_AWK+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 if test -n "$AWK"; then
4561 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir
=.
4568 for ac_exec_ext
in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_AWK
="$ac_prog"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 if test -n "$AWK"; then
4581 echo "$as_me:$LINENO: result: $AWK" >&5
4582 echo "${ECHO_T}$AWK" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 test -n "$AWK" && break
4591 echo "$as_me:$LINENO: checking for egrep" >&5
4592 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4593 if test "${ac_cv_prog_egrep+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4597 then ac_cv_prog_egrep
='grep -E'
4598 else ac_cv_prog_egrep
='egrep'
4601 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4602 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4603 EGREP
=$ac_cv_prog_egrep
4606 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4607 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4608 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4609 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 cat >conftest.
make <<\_ACEOF
4614 @
echo 'ac_maketemp="$(MAKE)"'
4616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4617 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4618 if test -n "$ac_maketemp"; then
4619 eval ac_cv_prog_make_
${ac_make}_set
=yes
4621 eval ac_cv_prog_make_
${ac_make}_set
=no
4625 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4626 echo "$as_me:$LINENO: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6
4630 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632 SET_MAKE
="MAKE=${MAKE-make}"
4636 for ac_prog
in flex
lex
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy
$ac_prog; ac_word
=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_LEX+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 if test -n "$LEX"; then
4646 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir
=.
4653 for ac_exec_ext
in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_LEX
="$ac_prog"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$LEX"; then
4666 echo "$as_me:$LINENO: result: $LEX" >&5
4667 echo "${ECHO_T}$LEX" >&6
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4673 test -n "$LEX" && break
4675 test -n "$LEX" || LEX
=":"
4677 if test -z "$LEXLIB"
4679 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4680 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4681 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_check_lib_save_LIBS
=$LIBS
4686 cat >conftest.
$ac_ext <<_ACEOF
4689 cat confdefs.h
>>conftest.
$ac_ext
4690 cat >>conftest.
$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4693 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4708 rm -f conftest.
$ac_objext conftest
$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>conftest.er1
4712 grep -v '^ *+' conftest.er1
>conftest.err
4714 cat conftest.err
>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try
='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try
='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_lib_fl_yywrap
=yes
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.
$ac_ext >&5
4735 ac_cv_lib_fl_yywrap
=no
4737 rm -f conftest.err conftest.
$ac_objext \
4738 conftest
$ac_exeext conftest.
$ac_ext
4739 LIBS
=$ac_check_lib_save_LIBS
4741 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4742 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4743 if test $ac_cv_lib_fl_yywrap = yes; then
4746 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4747 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4748 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 ac_check_lib_save_LIBS
=$LIBS
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4775 rm -f conftest.
$ac_objext conftest
$ac_exeext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777 (eval $ac_link) 2>conftest.er1
4779 grep -v '^ *+' conftest.er1
>conftest.err
4781 cat conftest.err
>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try
='test -z "$ac_c_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try
='test -s conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_lib_l_yywrap
=yes
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.
$ac_ext >&5
4802 ac_cv_lib_l_yywrap
=no
4804 rm -f conftest.err conftest.
$ac_objext \
4805 conftest
$ac_exeext conftest.
$ac_ext
4806 LIBS
=$ac_check_lib_save_LIBS
4808 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4809 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4810 if test $ac_cv_lib_l_yywrap = yes; then
4818 if test "x$LEX" != "x:"; then
4819 echo "$as_me:$LINENO: checking lex output file root" >&5
4820 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4821 if test "${ac_cv_prog_lex_root+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 # The minimal lex program is just a single line: %%. But some broken lexes
4825 # (Solaris, I think it was) want two %% lines, so accommodate them.
4826 cat >conftest.l
<<_ACEOF
4830 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4831 (eval $LEX conftest.l
) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }
4835 if test -f lex.yy.c
; then
4836 ac_cv_prog_lex_root
=lex.yy
4837 elif test -f lexyy.c
; then
4838 ac_cv_prog_lex_root
=lexyy
4840 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4841 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4842 { (exit 1); exit 1; }; }
4845 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4846 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4848 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4850 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4851 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4852 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 # POSIX says lex can declare yytext either as a pointer or an array; the
4856 # default is implementation-dependent. Figure out which it is, since
4857 # not all implementations provide the %pointer and %array declarations.
4858 ac_cv_prog_lex_yytext_pointer
=no
4859 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4861 LIBS
="$LIBS $LEXLIB"
4862 cat >conftest.
$ac_ext <<_ACEOF
4863 `cat $LEX_OUTPUT_ROOT.c`
4865 rm -f conftest.
$ac_objext conftest
$ac_exeext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try
='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try
='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_prog_lex_yytext_pointer
=yes
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.
$ac_ext >&5
4893 rm -f conftest.err conftest.
$ac_objext \
4894 conftest
$ac_exeext conftest.
$ac_ext
4896 rm -f "${LEX_OUTPUT_ROOT}.c"
4899 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4900 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4901 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4903 cat >>confdefs.h
<<\_ACEOF
4904 #define YYTEXT_POINTER 1
4910 # Find a good install program. We prefer a C program (faster),
4911 # so one script is as good as another. But avoid the broken or
4912 # incompatible versions:
4913 # SysV /etc/install, /usr/sbin/install
4914 # SunOS /usr/etc/install
4915 # IRIX /sbin/install
4917 # AmigaOS /C/install, which installs bootblocks on floppy discs
4918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4921 # OS/2's system install, which has a completely different semantic
4922 # ./install, which can be erroneously created by make from ./install.sh.
4923 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4924 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4925 if test -z "$INSTALL"; then
4926 if test "${ac_cv_path_install+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir
=.
4934 # Account for people who put trailing slashes in PATH elements.
4936 .
/ | .
// |
/cC
/* | \
4937 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4938 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4941 # OSF1 and SCO ODT 3.0 have their own names for install.
4942 # Don't use installbsd from OSF since it installs stuff as root
4944 for ac_prog
in ginstall scoinst
install; do
4945 for ac_exec_ext
in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4947 if test $ac_prog = install &&
4948 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4949 # AIX install. It has an incompatible calling convention.
4951 elif test $ac_prog = install &&
4952 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4953 # program-specific install script used by HP pwplus--don't use.
4956 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4968 if test "${ac_cv_path_install+set}" = set; then
4969 INSTALL
=$ac_cv_path_install
4971 # As a last resort, use the slow shell script. We don't cache a
4972 # path for INSTALL within a source directory, because that will
4973 # break other packages using the cache if that directory is
4974 # removed, or if the path is relative.
4975 INSTALL
=$ac_install_sh
4978 echo "$as_me:$LINENO: result: $INSTALL" >&5
4979 echo "${ECHO_T}$INSTALL" >&6
4981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4982 # It thinks the first close brace ends the variable substitution.
4983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4987 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_RANLIB+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 if test -n "$RANLIB"; then
4998 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir
=.
5005 for ac_exec_ext
in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 RANLIB
=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 echo "$as_me:$LINENO: result: $RANLIB" >&5
5019 echo "${ECHO_T}$RANLIB" >&6
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5026 if test -z "$ac_cv_prog_RANLIB"; then
5027 ac_ct_RANLIB
=$RANLIB
5028 # Extract the first word of "ranlib", so it can be a program name with args.
5029 set dummy ranlib
; ac_word
=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test -n "$ac_ct_RANLIB"; then
5036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5056 if test -n "$ac_ct_RANLIB"; then
5057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5064 RANLIB
=$ac_ct_RANLIB
5066 RANLIB
="$ac_cv_prog_RANLIB"
5069 for ac_prog
in 'bison -y' byacc
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy
$ac_prog; ac_word
=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_YACC+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 if test -n "$YACC"; then
5079 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir
=.
5086 for ac_exec_ext
in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_YACC
="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 YACC
=$ac_cv_prog_YACC
5098 if test -n "$YACC"; then
5099 echo "$as_me:$LINENO: result: $YACC" >&5
5100 echo "${ECHO_T}$YACC" >&6
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5106 test -n "$YACC" && break
5108 test -n "$YACC" || YACC
="yacc"
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5113 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5114 echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116 if test "${ac_cv_prog_RANLIB+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 if test -n "$RANLIB"; then
5120 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir
=.
5127 for ac_exec_ext
in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 RANLIB
=$ac_cv_prog_RANLIB
5139 if test -n "$RANLIB"; then
5140 echo "$as_me:$LINENO: result: $RANLIB" >&5
5141 echo "${ECHO_T}$RANLIB" >&6
5143 echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5148 if test -z "$ac_cv_prog_RANLIB"; then
5149 ac_ct_RANLIB
=$RANLIB
5150 # Extract the first word of "ranlib", so it can be a program name with args.
5151 set dummy ranlib
; ac_word
=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir
=.
5165 for ac_exec_ext
in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5177 if test -n "$ac_ct_RANLIB"; then
5178 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5179 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5185 RANLIB
=$ac_ct_RANLIB
5187 RANLIB
="$ac_cv_prog_RANLIB"
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5192 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_STRIP+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if test -n "$STRIP"; then
5199 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir
=.
5206 for ac_exec_ext
in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 STRIP
=$ac_cv_prog_STRIP
5218 if test -n "$STRIP"; then
5219 echo "$as_me:$LINENO: result: $STRIP" >&5
5220 echo "${ECHO_T}$STRIP" >&6
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5227 if test -z "$ac_cv_prog_STRIP"; then
5229 # Extract the first word of "strip", so it can be a program name with args.
5230 set dummy strip
; ac_word
=$2
5231 echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5233 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test -n "$ac_ct_STRIP"; then
5237 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_ac_ct_STRIP
="strip"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5256 if test -n "$ac_ct_STRIP"; then
5257 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5258 echo "${ECHO_T}$ac_ct_STRIP" >&6
5260 echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5266 STRIP
="$ac_cv_prog_STRIP"
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5271 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_prog_AR+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test -n "$AR"; then
5278 ac_cv_prog_AR
="$AR" # Let the user override the test.
5280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir
=.
5285 for ac_exec_ext
in '' $ac_executable_extensions; do
5286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 if test -n "$AR"; then
5298 echo "$as_me:$LINENO: result: $AR" >&5
5299 echo "${ECHO_T}$AR" >&6
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5306 if test -z "$ac_cv_prog_AR"; then
5308 # Extract the first word of "ar", so it can be a program name with args.
5309 set dummy
ar; ac_word
=$2
5310 echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 if test -n "$ac_ct_AR"; then
5316 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_AR
="ar"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5335 if test -n "$ac_ct_AR"; then
5336 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5337 echo "${ECHO_T}$ac_ct_AR" >&6
5339 echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5350 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
5351 echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5353 if test "${ac_cv_prog_LD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 if test -n "$LD"; then
5357 ac_cv_prog_LD
="$LD" # Let the user override the test.
5359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir
=.
5364 for ac_exec_ext
in '' $ac_executable_extensions; do
5365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_LD
="${ac_tool_prefix}ld"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 if test -n "$LD"; then
5377 echo "$as_me:$LINENO: result: $LD" >&5
5378 echo "${ECHO_T}$LD" >&6
5380 echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5385 if test -z "$ac_cv_prog_LD"; then
5387 # Extract the first word of "ld", so it can be a program name with args.
5388 set dummy ld
; ac_word
=$2
5389 echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test -n "$ac_ct_LD"; then
5395 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
5397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir
=.
5402 for ac_exec_ext
in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_ac_ct_LD
="ld"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
5414 if test -n "$ac_ct_LD"; then
5415 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5416 echo "${ECHO_T}$ac_ct_LD" >&6
5418 echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6
5428 # Check whether --enable-monolithic or --disable-monolithic was given.
5429 if test "${enable_monolithic+set}" = set; then
5430 enableval
="$enable_monolithic"
5431 MONOLITHIC
=$enableval
5436 # Check whether --enable-amule-daemon or --disable-amule-daemon was given.
5437 if test "${enable_amule_daemon+set}" = set; then
5438 enableval
="$enable_amule_daemon"
5439 AMULE_DAEMON
=$enableval
5444 # Check whether --enable-amulecmd or --disable-amulecmd was given.
5445 if test "${enable_amulecmd+set}" = set; then
5446 enableval
="$enable_amulecmd"
5452 # Check whether --enable-webserver or --disable-webserver was given.
5453 if test "${enable_webserver+set}" = set; then
5454 enableval
="$enable_webserver"
5460 # Check whether --enable-amule-gui or --disable-amule-gui was given.
5461 if test "${enable_amule_gui+set}" = set; then
5462 enableval
="$enable_amule_gui"
5463 AMULE_GUI
=$enableval
5468 # Check whether --enable-cas or --disable-cas was given.
5469 if test "${enable_cas+set}" = set; then
5470 enableval
="$enable_cas"
5476 # Check whether --enable-wxcas or --disable-wxcas was given.
5477 if test "${enable_wxcas+set}" = set; then
5478 enableval
="$enable_wxcas"
5484 # Check whether --enable-ed2k or --disable-ed2k was given.
5485 if test "${enable_ed2k+set}" = set; then
5486 enableval
="$enable_ed2k"
5492 # Check whether --enable-alc or --disable-alc was given.
5493 if test "${enable_alc+set}" = set; then
5494 enableval
="$enable_alc"
5500 # Check whether --enable-alcc or --disable-alcc was given.
5501 if test "${enable_alcc+set}" = set; then
5502 enableval
="$enable_alcc"
5508 # Check whether --enable-monolithic or --disable-monolithic was given.
5509 if test "${enable_monolithic+set}" = set; then
5510 enableval
="$enable_monolithic"
5511 MONOLITHIC
=$enableval
5516 # Check whether --enable-upnp or --disable-upnp was given.
5517 if test "${enable_upnp+set}" = set; then
5518 enableval
="$enable_upnp"
5519 ENABLE_UPNP
=$enableval
5524 # Check whether --enable-geoip or --disable-geoip was given.
5525 if test "${enable_geoip+set}" = set; then
5526 enableval
="$enable_geoip"
5527 ENABLE_IP2COUNTRY
=$enableval
5529 ENABLE_IP2COUNTRY
=no
5533 # Check whether --with-geoip-headers or --without-geoip-headers was given.
5534 if test "${with_geoip_headers+set}" = set; then
5535 withval
="$with_geoip_headers"
5536 GEOIP_CPPFLAGS
="-I$withval"
5540 # Check whether --with-geoip-lib or --without-geoip-lib was given.
5541 if test "${with_geoip_lib+set}" = set; then
5542 withval
="$with_geoip_lib"
5543 GEOIP_LDFLAGS
="-L$withval"
5547 # Check whether --with-geoip-static or --without-geoip-static was given.
5548 if test "${with_geoip_static+set}" = set; then
5549 withval
="$with_geoip_static"
5550 if test "$withval" != "no"; then
5551 GEOIP_LIBS
="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
5556 # Default is yes, because they're most likely compatible.
5557 # However, this is only used when cross-compiling.
5559 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
5560 if test "${with_gnu_malloc+set}" = set; then
5561 withval
="$with_gnu_malloc"
5568 # Checking for libs before all other stuff to break
5569 # configure as soon as possible in case of a missing one
5570 # to avoid losing too much time
5575 # Check whether --with-zlib or --without-zlib was given.
5576 if test "${with_zlib+set}" = set; then
5577 withval
="$with_zlib"
5581 case "${with_zlib:-yes}" in
5583 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5584 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5585 { (exit 1); exit 1; }; }
5590 zlib_prefix
="$with_zlib"
5593 mule_backup_CPPFLAGS
="$CPPFLAGS"
5594 mule_backup_LDFLAGS
="$LDFLAGS"
5595 mule_backup_LIBS
="$LIBS"
5596 if test -n "$zlib_prefix"; then
5598 ZLIB_CPPFLAGS
="-I$zlib_prefix/include"
5599 ZLIB_LDFLAGS
="-L$zlib_prefix/lib"
5600 CPPFLAGS
="$CPPFLAGS $ZLIB_CPPFLAGS"
5601 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
5611 LIBS
="$ZLIB_LIBS $LIBS"
5613 echo "$as_me:$LINENO: checking for zlib >= 1.1.4" >&5
5614 echo $ECHO_N "checking for zlib >= 1.1.4... $ECHO_C" >&6
5615 if test "$cross_compiling" = yes; then
5619 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5634 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
5642 rm -f conftest.
$ac_objext conftest
$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>conftest.er1
5646 grep -v '^ *+' conftest.er1
>conftest.err
5648 cat conftest.err
>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try
='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try
='test -s conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5665 ZLIB_VERSION
=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
5666 cross_zver_max
="`echo $ZLIB_VERSION | cut -d. -f1`"
5667 cross_zver_mid
="`echo $ZLIB_VERSION | cut -d. -f2`"
5668 cross_zver_min
="`echo $ZLIB_VERSION | cut -d. -f3`"
5669 if test "$cross_zver_max" -gt "1"; then
5671 elif test "$cross_zver_max" -eq "1"; then
5673 if test "$cross_zver_mid" -gt "1"; then
5675 elif test "$cross_zver_mid" -eq "1"; then
5676 if test "$cross_zver_min" -ge "4"; then
5685 if test ${result:-no} = yes; then
5686 z_version
=" (version $ZLIB_VERSION)"
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.
$ac_ext >&5
5695 rm -f conftest.err conftest.
$ac_objext \
5696 conftest
$ac_exeext conftest.
$ac_ext
5697 echo "$as_me:$LINENO: result: $result$z_version" >&5
5698 echo "${ECHO_T}$result$z_version" >&6
5701 cat >conftest.
$ac_ext <<_ACEOF
5705 cat confdefs.h
>>conftest.
$ac_ext
5706 cat >>conftest.
$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5715 char *zver = zlibVersion();
5716 FILE *f=fopen("conftestval", "w");
5723 zver[4] >= '4'))) ? "yes" : "no");
5725 f=fopen("conftestver", "w");
5727 fprintf(f, "%s", ZLIB_VERSION);
5736 rm -f conftest
$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5748 if test -f conftestval
; then
5749 result
=`cat conftestval`
5754 if test ${result:-no} = yes; then
5756 if test -f conftestver
; then
5758 ZLIB_VERSION
=`cat conftestver`
5759 z_version
=" (version $ZLIB_VERSION)"
5768 echo "$as_me:$LINENO: result: $result$z_version" >&5
5769 echo "${ECHO_T}$result$z_version" >&6
5772 echo "$as_me: program exited with status $ac_status" >&5
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.
$ac_ext >&5
5779 echo "$as_me:$LINENO: result: $result" >&5
5780 echo "${ECHO_T}$result" >&6
5783 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5786 CPPFLAGS
="$mule_backup_CPPFLAGS"
5787 LDFLAGS
="$mule_backup_LDFLAGS"
5788 LIBS
="$mule_backup_LIBS"
5790 if test ${result:-no} = no
; then
5795 { { echo "$as_me:$LINENO: error: zlib >= 1.1.4 is required for aMule" >&5
5796 echo "$as_me: error: zlib >= 1.1.4 is required for aMule" >&2;}
5797 { (exit 1); exit 1; }; }
5804 if test x
$CAS = xyes
; then
5808 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5810 if test "${ac_cv_header_stdc+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 cat >conftest.
$ac_ext <<_ACEOF
5816 cat confdefs.h
>>conftest.
$ac_ext
5817 cat >>conftest.
$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5832 rm -f conftest.
$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1
>conftest.err
5838 cat conftest.err
>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try
='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try
='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_header_stdc
=yes
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.
$ac_ext >&5
5859 ac_cv_header_stdc
=no
5861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat >conftest.
$ac_ext <<_ACEOF
5868 cat confdefs.h
>>conftest.
$ac_ext
5869 cat >>conftest.
$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "memchr" >/dev
/null
2>&1; then
5878 ac_cv_header_stdc
=no
5884 if test $ac_cv_header_stdc = yes; then
5885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5886 cat >conftest.
$ac_ext <<_ACEOF
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "free" >/dev
/null
2>&1; then
5899 ac_cv_header_stdc
=no
5905 if test $ac_cv_header_stdc = yes; then
5906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5907 if test "$cross_compiling" = yes; then
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5917 #if ((' ' & 0x0FF) == 0x020)
5918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5921 # define ISLOWER(c) \
5922 (('a' <= (c) && (c) <= 'i') \
5923 || ('j' <= (c) && (c) <= 'r') \
5924 || ('s' <= (c) && (c) <= 'z'))
5925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5933 for (i = 0; i < 256; i++)
5934 if (XOR (islower (i), ISLOWER (i))
5935 || toupper (i) != TOUPPER (i))
5940 rm -f conftest
$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_cv_header_stdc
=no
5960 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5966 if test $ac_cv_header_stdc = yes; then
5968 cat >>confdefs.h
<<\_ACEOF
5969 #define STDC_HEADERS 1
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5984 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5985 inttypes.h stdint.h unistd.h
5987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.
$ac_ext <<_ACEOF
5996 cat confdefs.h
>>conftest.
$ac_ext
5997 cat >>conftest.
$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6001 #include <$ac_header>
6003 rm -f conftest.
$ac_objext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>conftest.er1
6007 grep -v '^ *+' conftest.er1
>conftest.err
6009 cat conftest.err
>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try
='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try
='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 eval "$as_ac_Header=yes"
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6030 eval "$as_ac_Header=no"
6032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6048 # Check whether --with-gdlib-prefix or --without-gdlib-prefix was given.
6049 if test "${with_gdlib_prefix+set}" = set; then
6050 withval
="$with_gdlib_prefix"
6054 # Check whether --with-gdlib-config or --without-gdlib-config was given.
6055 if test "${with_gdlib_config+set}" = set; then
6056 withval
="$with_gdlib_config"
6062 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
6063 if test x
${GDLIB_CONFIG_NAME+set} != xset
; then
6064 GDLIB_CONFIG_NAME
=gdlib-config
6067 if test -n "$with_gdlib_config"; then
6068 GDLIB_CONFIG_NAME
="$with_gdlib_config"
6072 # deal with optional prefix
6073 if test -n "$with_gdlib_prefix"; then
6074 GDLIB_LOOKUP_PATH
="$with_gdlib_prefix/bin"
6078 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
6079 if test -x "$GDLIB_CONFIG_NAME"; then
6081 echo "$as_me:$LINENO: checking for gdlib-config" >&5
6082 echo $ECHO_N "checking for gdlib-config... $ECHO_C" >&6
6083 GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_NAME"
6084 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6085 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6088 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
6089 set dummy
$GDLIB_CONFIG_NAME; ac_word
=$2
6090 echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6092 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 case $GDLIB_CONFIG_PATH in
6097 ac_cv_path_GDLIB_CONFIG_PATH
="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
6100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6101 as_dummy
="$GDLIB_LOOKUP_PATH:$PATH"
6102 for as_dir
in $as_dummy
6105 test -z "$as_dir" && as_dir
=.
6106 for ac_exec_ext
in '' $ac_executable_extensions; do
6107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_path_GDLIB_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH
="no"
6119 GDLIB_CONFIG_PATH
=$ac_cv_path_GDLIB_CONFIG_PATH
6121 if test -n "$GDLIB_CONFIG_PATH"; then
6122 echo "$as_me:$LINENO: result: $GDLIB_CONFIG_PATH" >&5
6123 echo "${ECHO_T}$GDLIB_CONFIG_PATH" >&6
6125 echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6
6132 if test ${GDLIB_CONFIG_PATH:-no} != no
; then
6134 echo "$as_me:$LINENO: checking for gdlib version >= 2.0.0" >&5
6135 echo $ECHO_N "checking for gdlib version >= 2.0.0... $ECHO_C" >&6
6136 GDLIB_CONFIG_WITH_ARGS
="$GDLIB_CONFIG_PATH $gdlib_config_args"
6138 GDLIB_VERSION
=`$GDLIB_CONFIG_WITH_ARGS --version`
6139 gdlib_config_major_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6140 gdlib_config_minor_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6141 gdlib_config_micro_version
=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6144 if test $gdlib_config_major_version -gt 2; then
6146 elif test $gdlib_config_major_version -eq 2; then
6148 if test $gdlib_config_minor_version -gt 0; then
6150 elif test $gdlib_config_minor_version -eq 0; then
6151 if test $gdlib_config_micro_version -ge 0; then
6161 if test -z "$gdlib_ver_ok"; then
6163 if test -z "$GDLIB_VERSION"; then
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6168 echo "$as_me:$LINENO: result: no (version $GDLIB_VERSION is not new enough)" >&5
6169 echo "${ECHO_T}no (version $GDLIB_VERSION is not new enough)" >&6
6177 echo "$as_me:$LINENO: result: yes (version $GDLIB_VERSION)" >&5
6178 echo "${ECHO_T}yes (version $GDLIB_VERSION)" >&6
6179 if test "${ac_cv_header_gd_h+set}" = set; then
6180 echo "$as_me:$LINENO: checking for gd.h" >&5
6181 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6182 if test "${ac_cv_header_gd_h+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6186 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6188 # Is the header compilable?
6189 echo "$as_me:$LINENO: checking gd.h usability" >&5
6190 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
6191 cat >conftest.
$ac_ext <<_ACEOF
6194 cat confdefs.h
>>conftest.
$ac_ext
6195 cat >>conftest.
$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6200 rm -f conftest.
$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>conftest.er1
6204 grep -v '^ *+' conftest.er1
>conftest.err
6206 cat conftest.err
>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try
='test -z "$ac_c_werror_flag"
6210 || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try
='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_header_compiler
=yes
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.
$ac_ext >&5
6227 ac_header_compiler
=no
6229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6231 echo "${ECHO_T}$ac_header_compiler" >&6
6233 # Is the header present?
6234 echo "$as_me:$LINENO: checking gd.h presence" >&5
6235 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
6236 cat >conftest.
$ac_ext <<_ACEOF
6239 cat confdefs.h
>>conftest.
$ac_ext
6240 cat >>conftest.
$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6245 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6247 grep -v '^ *+' conftest.er1
>conftest.err
6249 cat conftest.err
>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev
/null
; then
6252 if test -s conftest.err
; then
6253 ac_cpp_err
=$ac_c_preproc_warn_flag
6254 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6261 if test -z "$ac_cpp_err"; then
6262 ac_header_preproc
=yes
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6267 ac_header_preproc
=no
6269 rm -f conftest.err conftest.
$ac_ext
6270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6271 echo "${ECHO_T}$ac_header_preproc" >&6
6273 # So? What about this header?
6274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6276 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
6277 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
6279 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
6280 ac_header_preproc
=yes
6283 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
6284 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
6286 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
6288 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
6290 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
6292 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
6294 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
6297 ## ------------------------------ ##
6298 ## Report this to admin@amule.org ##
6299 ## ------------------------------ ##
6302 sed "s/^/$as_me: WARNING: /" >&2
6305 echo "$as_me:$LINENO: checking for gd.h" >&5
6306 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
6307 if test "${ac_cv_header_gd_h+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cv_header_gd_h
=$ac_header_preproc
6312 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
6313 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
6316 if test $ac_cv_header_gd_h = yes; then
6318 GDLIB_CFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
6319 GDLIB_LDFLAGS
="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
6320 GDLIB_LIBS
="`$GDLIB_CONFIG_WITH_ARGS --libs`"
6334 if test -n "$GDLIB_VERSION"; then
6337 GDLIB_LIBS
="-lgd $GDLIB_LIBS"
6346 if test -z "$CAS_DEFS"; then
6348 { echo "$as_me:$LINENO: WARNING:
6349 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6350 Please check that gdlib-config is in your default path, check out
6351 LD_LIBRARY_PATH or equivalent variable.
6352 Or this might also be that your gdlib-config has other name.
6353 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6354 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6355 If you use compiled packages check if you have devel pack installed.
6356 To download the latest version check http://www.boutell.com/gd
6358 echo "$as_me: WARNING:
6359 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
6360 Please check that gdlib-config is in your default path, check out
6361 LD_LIBRARY_PATH or equivalent variable.
6362 Or this might also be that your gdlib-config has other name.
6363 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
6364 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
6365 If you use compiled packages check if you have devel pack installed.
6366 To download the latest version check http://www.boutell.com/gd
6373 GDLIB_VERSION
="not_needed"
6378 if test x
$WEB = xyes
; then
6380 echo "$as_me:$LINENO: checking for a POSIX compliant regex library" >&5
6381 echo $ECHO_N "checking for a POSIX compliant regex library... $ECHO_C" >&6
6383 for REGEX_LIBS
in '' -lgnurx -lregex; do
6384 mule_backup_LIBS
="$LIBS"
6385 LIBS
="$REGEX_LIBS $LIBS"
6386 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6401 regcomp(&preg, "", REG_EXTENDED);
6403 regexec(&preg, "", 0, pmatch, 0);
6411 rm -f conftest.
$ac_objext conftest
$ac_exeext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1
>conftest.err
6417 cat conftest.err
>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try
='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6434 LIBS
="$mule_backup_LIBS"
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 LIBS
="$mule_backup_LIBS"
6444 rm -f conftest.err conftest.
$ac_objext \
6445 conftest
$ac_exeext conftest.
$ac_ext
6447 echo "$as_me:$LINENO: result: $regex_found" >&5
6448 echo "${ECHO_T}$regex_found" >&6
6449 if test $regex_found = yes; then
6458 if test x
$WEB = xyes
; then
6461 # Check whether --with-libpng-prefix or --without-libpng-prefix was given.
6462 if test "${with_libpng_prefix+set}" = set; then
6463 withval
="$with_libpng_prefix"
6467 # Check whether --with-libpng-config or --without-libpng-config was given.
6468 if test "${with_libpng_config+set}" = set; then
6469 withval
="$with_libpng_config"
6475 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
6476 if test x
${LIBPNG_CONFIG_NAME+set} != xset
; then
6477 LIBPNG_CONFIG_NAME
=libpng-config
6480 if test -n "$with_libpng_config"; then
6481 LIBPNG_CONFIG_NAME
="$with_libpng_config"
6485 # deal with optional prefix
6486 if test -n "$with_libpng_prefix"; then
6487 LIBPNG_LOOKUP_PATH
="$with_libpng_prefix/bin"
6491 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
6492 if test -x "$LIBPNG_CONFIG_NAME"; then
6494 echo "$as_me:$LINENO: checking for libpng-config" >&5
6495 echo $ECHO_N "checking for libpng-config... $ECHO_C" >&6
6496 LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_NAME"
6497 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6498 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6501 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
6502 set dummy
$LIBPNG_CONFIG_NAME; ac_word
=$2
6503 echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 case $LIBPNG_CONFIG_PATH in
6510 ac_cv_path_LIBPNG_CONFIG_PATH
="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
6513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6514 as_dummy
="$LIBPNG_LOOKUP_PATH:$PATH"
6515 for as_dir
in $as_dummy
6518 test -z "$as_dir" && as_dir
=.
6519 for ac_exec_ext
in '' $ac_executable_extensions; do
6520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_path_LIBPNG_CONFIG_PATH
="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH
="no"
6532 LIBPNG_CONFIG_PATH
=$ac_cv_path_LIBPNG_CONFIG_PATH
6534 if test -n "$LIBPNG_CONFIG_PATH"; then
6535 echo "$as_me:$LINENO: result: $LIBPNG_CONFIG_PATH" >&5
6536 echo "${ECHO_T}$LIBPNG_CONFIG_PATH" >&6
6538 echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6545 if test ${LIBPNG_CONFIG_PATH:-no} != no
; then
6547 echo "$as_me:$LINENO: checking for libpng version >= 1.2.0" >&5
6548 echo $ECHO_N "checking for libpng version >= 1.2.0... $ECHO_C" >&6
6550 LIBPNG_CONFIG_WITH_ARGS
="$LIBPNG_CONFIG_PATH $libpng_config_args"
6552 LIBPNG_VERSION
=`$LIBPNG_CONFIG_WITH_ARGS --version`
6553 libpng_config_major_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6554 libpng_config_minor_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6555 libpng_config_micro_version
=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6558 if test $libpng_config_major_version -gt 1; then
6560 elif test $libpng_config_major_version -eq 1; then
6562 if test $libpng_config_minor_version -gt 2; then
6564 elif test $libpng_config_minor_version -eq 2; then
6565 if test $libpng_config_micro_version -ge 0; then
6575 if test -z "$libpng_ver_ok"; then
6577 if test -z "$LIBPNG_VERSION"; then
6578 echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6
6582 echo "$as_me:$LINENO: result: no (version $LIBPNG_VERSION is not new enough)" >&5
6583 echo "${ECHO_T}no (version $LIBPNG_VERSION is not new enough)" >&6
6591 LIBPNG_LIBS
=`$LIBPNG_CONFIG_WITH_ARGS --libs`
6592 LIBPNG_LDFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
6593 LIBPNG_CFLAGS
=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
6594 echo "$as_me:$LINENO: result: yes (version $LIBPNG_VERSION)" >&5
6595 echo "${ECHO_T}yes (version $LIBPNG_VERSION)" >&6
6602 # Try hard to find a usable libpng
6603 # Some RedHat RPMs miss libpng-config, so test for
6604 # the usability with default options.
6605 echo "$as_me:$LINENO: checking for libpng >= 1.2.0" >&5
6606 echo $ECHO_N "checking for libpng >= 1.2.0... $ECHO_C" >&6
6607 mule_backup_LIBS
="$LIBS"
6608 LIBS
="-lpng -lz -lm $LIBS"
6609 if test "$cross_compiling" = yes; then
6611 echo "$as_me:$LINENO: result: cross-compilation detected, checking only the header" >&5
6612 echo "${ECHO_T}cross-compilation detected, checking only the header" >&6
6613 if test "${ac_cv_header_png_h+set}" = set; then
6614 echo "$as_me:$LINENO: checking for png.h" >&5
6615 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6616 if test "${ac_cv_header_png_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6620 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6622 # Is the header compilable?
6623 echo "$as_me:$LINENO: checking png.h usability" >&5
6624 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
6625 cat >conftest.
$ac_ext <<_ACEOF
6628 cat confdefs.h
>>conftest.
$ac_ext
6629 cat >>conftest.
$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 $ac_includes_default
6634 rm -f conftest.
$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1
>conftest.err
6640 cat conftest.err
>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try
='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try
='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler
=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.
$ac_ext >&5
6661 ac_header_compiler
=no
6663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking png.h presence" >&5
6669 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
6670 cat >conftest.
$ac_ext <<_ACEOF
6673 cat confdefs.h
>>conftest.
$ac_ext
6674 cat >>conftest.
$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev
/null
; then
6686 if test -s conftest.err
; then
6687 ac_cpp_err
=$ac_c_preproc_warn_flag
6688 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6695 if test -z "$ac_cpp_err"; then
6696 ac_header_preproc
=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.
$ac_ext >&5
6701 ac_header_preproc
=no
6703 rm -f conftest.err conftest.
$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6714 ac_header_preproc
=yes
6717 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6731 ## ------------------------------ ##
6732 ## Report this to admin@amule.org ##
6733 ## ------------------------------ ##
6736 sed "s/^/$as_me: WARNING: /" >&2
6739 echo "$as_me:$LINENO: checking for png.h" >&5
6740 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
6741 if test "${ac_cv_header_png_h+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_header_png_h
=$ac_header_preproc
6746 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6747 echo "${ECHO_T}$ac_cv_header_png_h" >&6
6750 if test $ac_cv_header_png_h = yes; then
6752 LIBPNG_VERSION
="detected"
6753 LIBPNG_LIBS
="-lpng -lz -lm"
6760 cat >conftest.
$ac_ext <<_ACEOF
6764 cat confdefs.h
>>conftest.
$ac_ext
6765 cat >>conftest.
$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6771 /* Check linking to png library */
6773 png_check_sig(NULL, 0);
6779 /* png.h defines PNG_LIBPNG_VER=xyyzz */
6780 FILE *f=fopen("conftestval", "w");
6782 fprintf(f, "%s", (PNG_LIBPNG_VER >= 1 * 10000 + 2 * 100 + 0) ? "yes" : "no");
6784 f=fopen("conftestver", "w");
6786 fprintf(f, "%s", PNG_LIBPNG_VER_STRING);
6795 rm -f conftest
$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6807 if test -f conftestval
; then
6808 result
=`cat conftestval`
6813 if test ${result:-no} = yes; then
6815 if test -f conftestver
; then
6817 LIBPNG_VERSION
=`cat conftestver`
6818 lib_version
=" (version $LIBPNG_VERSION)"
6823 LIBPNG_VERSION
="detected"
6830 echo "$as_me:$LINENO: result: $result$lib_version" >&5
6831 echo "${ECHO_T}$result$lib_version" >&6
6832 LIBPNG_LIBS
="-lpng -lz -lm"
6835 echo "$as_me: program exited with status $ac_status" >&5
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.
$ac_ext >&5
6842 echo "$as_me:$LINENO: result: $result" >&5
6843 echo "${ECHO_T}$result" >&6
6846 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6848 LIBS
="$mule_backup_LIBS"
6853 if test -n "$LIBPNG_VERSION"; then
6854 AMULEWEB_DEFS
="-DWITH_LIBPNG"
6856 { echo "$as_me:$LINENO: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&5
6857 echo "$as_me: WARNING: libpng-devel >= 1.2.0 is needed for amuleweb" >&2;}
6864 LIBPNG_VERSION
="not_needed"
6869 # Check for perl File::Copy
6870 echo "$as_me:$LINENO: checking for File::Copy" >&5
6871 echo $ECHO_N "checking for File::Copy... $ECHO_C" >&6
6872 if perl
-e "require File::Copy" 2>/dev
/null
; then
6873 echo "$as_me:$LINENO: result: ok" >&5
6874 echo "${ECHO_T}ok" >&6
6876 { { echo "$as_me:$LINENO: error: File::Copy perl module is required" >&5
6877 echo "$as_me: error: File::Copy perl module is required" >&2;}
6878 { (exit 1); exit 1; }; }
6883 # Check if we need the GUI
6884 echo "$as_me:$LINENO: checking whether we need the GUI" >&5
6885 echo $ECHO_N "checking whether we need the GUI... $ECHO_C" >&6
6886 if test x
$MONOLITHIC = xyes
; then
6890 if test x
$WXCAS = xyes
; then
6894 if test x
$ALC = xyes
; then
6898 if test x
$AMULE_GUI = xyes
; then
6902 if test x
${need_gui:+set} != xset
; then
6906 echo "$as_me:$LINENO: result: $need_gui" >&5
6907 echo "${ECHO_T}$need_gui" >&6
6910 # Check for GeoIP (required for IP2Country capability)
6911 if test ${ENABLE_IP2COUNTRY:-no} = yes; then
6913 GEOIP_LIBS
="-lGeoIP"
6914 GEOIP_CPPFLAGS
="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
6915 mule_backup_CPPFLAGS
="$CPPFLAGS"
6916 CPPFLAGS
="$CPPFLAGS $GEOIP_CPPFLAGS"
6917 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6918 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
6919 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
6920 if test "${ac_cv_header_GeoIP_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
6924 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
6926 # Is the header compilable?
6927 echo "$as_me:$LINENO: checking GeoIP.h usability" >&5
6928 echo $ECHO_N "checking GeoIP.h usability... $ECHO_C" >&6
6929 cat >conftest.
$ac_ext <<_ACEOF
6932 cat confdefs.h
>>conftest.
$ac_ext
6933 cat >>conftest.
$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6938 rm -f conftest.
$ac_objext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940 (eval $ac_compile) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1
>conftest.err
6944 cat conftest.err
>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try
='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try
='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_header_compiler
=yes
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.
$ac_ext >&5
6965 ac_header_compiler
=no
6967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6969 echo "${ECHO_T}$ac_header_compiler" >&6
6971 # Is the header present?
6972 echo "$as_me:$LINENO: checking GeoIP.h presence" >&5
6973 echo $ECHO_N "checking GeoIP.h presence... $ECHO_C" >&6
6974 cat >conftest.
$ac_ext <<_ACEOF
6977 cat confdefs.h
>>conftest.
$ac_ext
6978 cat >>conftest.
$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1
>conftest.err
6987 cat conftest.err
>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev
/null
; then
6990 if test -s conftest.err
; then
6991 ac_cpp_err
=$ac_c_preproc_warn_flag
6992 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6999 if test -z "$ac_cpp_err"; then
7000 ac_header_preproc
=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.
$ac_ext >&5
7005 ac_header_preproc
=no
7007 rm -f conftest.err conftest.
$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7009 echo "${ECHO_T}$ac_header_preproc" >&6
7011 # So? What about this header?
7012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7014 { echo "$as_me:$LINENO: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&5
7015 echo "$as_me: WARNING: GeoIP.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the compiler's result" >&5
7017 echo "$as_me: WARNING: GeoIP.h: proceeding with the compiler's result" >&2;}
7018 ac_header_preproc
=yes
7021 { echo "$as_me:$LINENO: WARNING: GeoIP.h: present but cannot be compiled" >&5
7022 echo "$as_me: WARNING: GeoIP.h: present but cannot be compiled" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: GeoIP.h: check for missing prerequisite headers?" >&5
7024 echo "$as_me: WARNING: GeoIP.h: check for missing prerequisite headers?" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: GeoIP.h: see the Autoconf documentation" >&5
7026 echo "$as_me: WARNING: GeoIP.h: see the Autoconf documentation" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&5
7028 echo "$as_me: WARNING: GeoIP.h: section \"Present But Cannot Be Compiled\"" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&5
7030 echo "$as_me: WARNING: GeoIP.h: proceeding with the preprocessor's result" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&5
7032 echo "$as_me: WARNING: GeoIP.h: in the future, the compiler will take precedence" >&2;}
7035 ## ------------------------------ ##
7036 ## Report this to admin@amule.org ##
7037 ## ------------------------------ ##
7040 sed "s/^/$as_me: WARNING: /" >&2
7043 echo "$as_me:$LINENO: checking for GeoIP.h" >&5
7044 echo $ECHO_N "checking for GeoIP.h... $ECHO_C" >&6
7045 if test "${ac_cv_header_GeoIP_h+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 ac_cv_header_GeoIP_h
=$ac_header_preproc
7050 echo "$as_me:$LINENO: result: $ac_cv_header_GeoIP_h" >&5
7051 echo "${ECHO_T}$ac_cv_header_GeoIP_h" >&6
7054 if test $ac_cv_header_GeoIP_h = yes; then
7057 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&5
7058 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP header files were not found" >&2;}
7059 { (exit 1); exit 1; }; }
7063 echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5
7064 echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6
7065 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_check_lib_save_LIBS
=$LIBS
7069 LIBS
="-lGeoIP $LIBS"
7070 cat >conftest.
$ac_ext <<_ACEOF
7073 cat confdefs.h
>>conftest.
$ac_ext
7074 cat >>conftest.
$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7077 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7092 rm -f conftest.
$ac_objext conftest
$ac_exeext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7094 (eval $ac_link) 2>conftest.er1
7096 grep -v '^ *+' conftest.er1
>conftest.err
7098 cat conftest.err
>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try
='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try
='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_cv_lib_GeoIP_GeoIP_open
=yes
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7119 ac_cv_lib_GeoIP_GeoIP_open
=no
7121 rm -f conftest.err conftest.
$ac_objext \
7122 conftest
$ac_exeext conftest.
$ac_ext
7123 LIBS
=$ac_check_lib_save_LIBS
7125 echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7126 echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6
7127 if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then
7129 cat >>confdefs.h
<<\_ACEOF
7130 #define SUPPORT_GEOIP 1
7134 { { echo "$as_me:$LINENO: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&5
7135 echo "$as_me: error: --enable-geoip passed to configure, but the GeoIP libraries were not found" >&2;}
7136 { (exit 1); exit 1; }; }
7139 CPPFLAGS
="$mule_backup_CPPFLAGS"
7148 # Check whether --with-wxdir or --without-wxdir was given.
7149 if test "${with_wxdir+set}" = set; then
7150 withval
="$with_wxdir"
7151 wx_config_name
="$withval/wx-config"
7152 wx_config_args
="--inplace"
7155 # Check whether --with-wx-config or --without-wx-config was given.
7156 if test "${with_wx_config+set}" = set; then
7157 withval
="$with_wx_config"
7158 wx_config_name
="$withval"
7161 # Check whether --with-wx-prefix or --without-wx-prefix was given.
7162 if test "${with_wx_prefix+set}" = set; then
7163 withval
="$with_wx_prefix"
7164 wx_config_prefix
="$withval"
7169 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
7170 if test "${with_wx_exec_prefix+set}" = set; then
7171 withval
="$with_wx_exec_prefix"
7172 wx_config_exec_prefix
="$withval"
7174 wx_config_exec_prefix
=""
7188 # Check whether --with-toolkit or --without-toolkit was given.
7189 if test "${with_toolkit+set}" = set; then
7190 withval
="$with_toolkit"
7196 echo "$as_me:$LINENO: checking for the --with-toolkit option" >&5
7197 echo $ECHO_N "checking for the --with-toolkit option... $ECHO_C" >&6
7198 if test "$withval" = "auto" ; then
7199 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7200 echo "${ECHO_T}will be automatically detected" >&6
7205 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7206 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7207 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7208 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7209 "$TOOLKIT" != "base" ; then
7210 { { echo "$as_me:$LINENO: error:
7211 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7213 echo "$as_me: error:
7214 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base)
7216 { (exit 1); exit 1; }; }
7219 echo "$as_me:$LINENO: result: $TOOLKIT" >&5
7220 echo "${ECHO_T}$TOOLKIT" >&6
7227 # Check whether --with-wxshared or --without-wxshared was given.
7228 if test "${with_wxshared+set}" = set; then
7229 withval
="$with_wxshared"
7235 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
7236 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
7237 if test "$withval" = "yes" ; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7242 elif test "1" = "1" -a "$withval" = "no" ; then
7243 echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7246 elif test "$withval" = "auto" ; then
7247 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7248 echo "${ECHO_T}will be automatically detected" >&6
7251 { { echo "$as_me:$LINENO: error:
7252 Unrecognized option value (allowed values: yes, auto)
7254 echo "$as_me: error:
7255 Unrecognized option value (allowed values: yes, auto)
7257 { (exit 1); exit 1; }; }
7264 # Check whether --with-wxdebug or --without-wxdebug was given.
7265 if test "${with_wxdebug+set}" = set; then
7266 withval
="$with_wxdebug"
7272 echo "$as_me:$LINENO: checking for the --with-wxdebug option" >&5
7273 echo $ECHO_N "checking for the --with-wxdebug option... $ECHO_C" >&6
7274 if test "$withval" = "yes" ; then
7275 echo "$as_me:$LINENO: result: yes" >&5
7276 echo "${ECHO_T}yes" >&6
7279 elif test "1" = "1" -a "$withval" = "no" ; then
7280 echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6
7283 elif test "$withval" = "auto" ; then
7284 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7285 echo "${ECHO_T}will be automatically detected" >&6
7288 { { echo "$as_me:$LINENO: error:
7289 Unrecognized option value (allowed values: yes, auto)
7291 echo "$as_me: error:
7292 Unrecognized option value (allowed values: yes, auto)
7294 { (exit 1); exit 1; }; }
7301 # Check whether --with-wxversion or --without-wxversion was given.
7302 if test "${with_wxversion+set}" = set; then
7303 withval
="$with_wxversion"
7309 echo "$as_me:$LINENO: checking for the --with-wxversion option" >&5
7310 echo $ECHO_N "checking for the --with-wxversion option... $ECHO_C" >&6
7311 if test "$withval" = "auto" ; then
7312 echo "$as_me:$LINENO: result: will be automatically detected" >&5
7313 echo "${ECHO_T}will be automatically detected" >&6
7317 wx_requested_major_version
=`echo $withval | \
7318 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7319 wx_requested_minor_version
=`echo $withval | \
7320 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7322 if test "${#wx_requested_major_version}" != "1" -o \
7323 "${#wx_requested_minor_version}" != "1" ; then
7324 { { echo "$as_me:$LINENO: error:
7325 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7327 echo "$as_me: error:
7328 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9)
7330 { (exit 1); exit 1; }; }
7333 WX_VERSION
="$wx_requested_major_version"".""$wx_requested_minor_version"
7334 echo "$as_me:$LINENO: result: $WX_VERSION" >&5
7335 echo "${ECHO_T}$WX_VERSION" >&6
7339 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7340 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7341 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7342 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7343 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7344 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7347 # Force using a static wxWidgets library if the executable is to be linked statically.
7348 if test ${enable_static:-no} = yes; then
7352 # Force using a unicode build of the library
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.0
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 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
7516 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
7517 WX_LIBS_STATIC
=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
7518 if test "x$WX_LIBS_STATIC" = "x"; then
7519 echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7522 echo "$as_me:$LINENO: result: yes" >&5
7523 echo "${ECHO_T}yes" >&6
7527 if test $wx_config_major_version -gt 2; then
7530 if test $wx_config_major_version -eq 2; then
7531 if test $wx_config_minor_version -gt 2; then
7534 if test $wx_config_minor_version -eq 2; then
7535 if test $wx_config_micro_version -ge 6; then
7544 if test $wx_config_major_version -gt 2; then
7547 if test $wx_config_major_version -eq 2; then
7548 if test $wx_config_minor_version -ge 7; then
7553 if test "x$wx_has_rescomp" = x
; then
7556 WX_RESCOMP
=`$WX_CONFIG_WITH_ARGS --rescomp`
7559 if test "x$wx_has_cppflags" = x
; then
7560 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7561 WX_CPPFLAGS
=$WX_CFLAGS
7562 WX_CXXFLAGS
=$WX_CFLAGS
7564 WX_CFLAGS_ONLY
=$WX_CFLAGS
7565 WX_CXXFLAGS_ONLY
=$WX_CFLAGS
7567 WX_CPPFLAGS
=`$WX_CONFIG_WITH_ARGS --cppflags`
7568 WX_CXXFLAGS
=`$WX_CONFIG_WITH_ARGS --cxxflags`
7569 WX_CFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags`
7571 WX_CFLAGS_ONLY
=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7572 WX_CXXFLAGS_ONLY
=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7579 if test "x$WX_VERSION_FULL" = x
; then
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7583 echo "$as_me:$LINENO: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7584 echo "${ECHO_T}no (version $WX_VERSION_FULL is not new enough)" >&6
7594 if test ! -z "$WXCONFIG_FLAGS"; then
7597 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7598 build with the following settings:
7600 but such build is not available.
7602 To see the wxWidgets builds available on this system, please use
7603 'wx-config --list' command. To use the default build, returned by
7604 'wx-config --selected-config', use the options with their 'auto'
7610 The requested wxWidgets build couldn't be found.
7613 If you still get this error, then check that 'wx-config' is
7614 in path, the directory where wxWidgets libraries are installed
7615 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
7616 or equivalent variable and wxWidgets version is 2.8.0 or above."
7618 { { echo "$as_me:$LINENO: error: $wx_error_message" >&5
7619 echo "$as_me: error: $wx_error_message" >&2;}
7620 { (exit 1); exit 1; }; }
7646 WX_VERSION_MAJOR
="$wx_config_major_version"
7647 WX_VERSION_MINOR
="$wx_config_minor_version"
7651 if test "$wxWin" != 1; then
7652 { { echo "$as_me:$LINENO: error:
7653 wxWidgets must be installed on your system but wx-config
7654 script couldn't be found. Please check that wx-config is
7655 in path or specified by --with-wx-config=path flag, the
7656 directory where wxWidgets libraries are installed (returned
7657 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7658 equivalent variable and wxWidgets version is 2.8.0 or above.
7660 echo "$as_me: error:
7661 wxWidgets must be installed on your system but wx-config
7662 script couldn't be found. Please check that wx-config is
7663 in path or specified by --with-wx-config=path flag, the
7664 directory where wxWidgets libraries are installed (returned
7665 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
7666 equivalent variable and wxWidgets version is 2.8.0 or above.
7668 { (exit 1); exit 1; }; }
7671 WX_VERSION
="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
7672 if test $WX_VERSION -lt 26 ; then
7674 { { echo "$as_me:$LINENO: error:
7675 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7676 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7677 version of wxWidgets.
7679 echo "$as_me: error:
7680 Cannot detect the wxWidgets configuration for the selected wxWidgets build
7681 since its version is $WX_VERSION_FULL < 2.6.0; please install a newer
7682 version of wxWidgets.
7684 { (exit 1); exit 1; }; }
7687 WX_SELECTEDCONFIG
=$
($WX_CONFIG_WITH_ARGS --selected_config)
7689 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7690 echo "[dbg] Using wx-config --selected-config"
7691 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
7695 if test $WX_SHARED = "1"; then
7697 elif test $WX_SHARED = "0"; then
7699 elif test $WX_SHARED = "auto"; then
7704 if test "$UNICODE" = "auto" ; then
7706 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
7707 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
7709 WX_UNICODE
=$
(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
7711 if test "$WX_UNICODE" != "0"; then
7713 echo "$as_me:$LINENO: result: yes" >&5
7714 echo "${ECHO_T}yes" >&6
7718 echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6
7728 if test "$DEBUG" = "auto" ; then
7730 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
7731 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
7733 WX_DEBUG
=$
(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
7735 if test "$WX_DEBUG" != "0"; then
7737 echo "$as_me:$LINENO: result: yes" >&5
7738 echo "${ECHO_T}yes" >&6
7742 echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7752 if test "$STATIC" = "auto" ; then
7754 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
7755 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
7757 WX_STATIC
=$
(expr "$WX_SELECTEDCONFIG" : ".*static.*")
7759 if test "$WX_STATIC" != "0"; then
7761 echo "$as_me:$LINENO: result: yes" >&5
7762 echo "${ECHO_T}yes" >&6
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7776 if test "$WX_STATIC" != "0"; then
7786 if test "$TOOLKIT" = "auto" ; then
7788 echo "$as_me:$LINENO: checking which wxWidgets toolkit was selected" >&5
7789 echo $ECHO_N "checking which wxWidgets toolkit was selected... $ECHO_C" >&6
7791 WX_GTKPORT1
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
7792 WX_GTKPORT2
=$
(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
7793 WX_MSWPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
7794 WX_MOTIFPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
7795 WX_MACPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
7796 WX_X11PORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
7797 WX_MGLPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
7798 WX_DFBPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
7799 WX_BASEPORT
=$
(expr "$WX_SELECTEDCONFIG" : ".*base.*")
7802 if test "$WX_GTKPORT1" != "0"; then WX_PORT
="gtk1"; fi
7803 if test "$WX_GTKPORT2" != "0"; then WX_PORT
="gtk2"; fi
7804 if test "$WX_MSWPORT" != "0"; then WX_PORT
="msw"; fi
7805 if test "$WX_MOTIFPORT" != "0"; then WX_PORT
="motif"; fi
7806 if test "$WX_MACPORT" != "0"; then WX_PORT
="mac"; fi
7807 if test "$WX_X11PORT" != "0"; then WX_PORT
="x11"; fi
7808 if test "$WX_MGLPORT" != "0"; then WX_PORT
="mgl"; fi
7809 if test "$WX_DFBPORT" != "0"; then WX_PORT
="dfb"; fi
7810 if test "$WX_BASEPORT" != "0"; then WX_PORT
="base"; fi
7813 if test "$WX_PORT" = "unknown" ; then
7814 { { echo "$as_me:$LINENO: error:
7815 Cannot detect the currently installed wxWidgets port !
7816 Please check your 'wx-config --cxxflags'...
7818 echo "$as_me: error:
7819 Cannot detect the currently installed wxWidgets port !
7820 Please check your 'wx-config --cxxflags'...
7822 { (exit 1); exit 1; }; }
7825 echo "$as_me:$LINENO: result: $WX_PORT" >&5
7826 echo "${ECHO_T}$WX_PORT" >&6
7829 if test -z "$TOOLKIT" ; then
7838 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7839 echo "[dbg] Values of all WX_* options after final detection:"
7840 echo "[dbg] WX_DEBUG: $WX_DEBUG"
7841 echo "[dbg] WX_UNICODE: $WX_UNICODE"
7842 echo "[dbg] WX_SHARED: $WX_SHARED"
7843 echo "[dbg] WX_VERSION: $WX_VERSION"
7844 echo "[dbg] WX_PORT: $WX_PORT"
7847 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
7848 { { echo "$as_me:$LINENO: error:
7849 Cannot build shared library against a static build of wxWidgets !
7850 This error happens because the wxWidgets build which was selected
7851 has been detected as static while you asked to build $PACKAGE_NAME
7852 as shared library and this is not possible.
7853 Use the '--disable-shared' option to build $PACKAGE_NAME
7854 as static library or '--with-wxshared' to use wxWidgets as shared library.
7856 echo "$as_me: error:
7857 Cannot build shared library against a static build of wxWidgets !
7858 This error happens because the wxWidgets build which was selected
7859 has been detected as static while you asked to build $PACKAGE_NAME
7860 as shared library and this is not possible.
7861 Use the '--disable-shared' option to build $PACKAGE_NAME
7862 as static library or '--with-wxshared' to use wxWidgets as shared library.
7864 { (exit 1); exit 1; }; }
7867 if test "$DEBUG" = "auto"; then
7870 if test "$DEBUG" = "1"; then
7872 elif test "$DEBUG" = ""; then
7876 if test "$UNICODE" = "auto"; then
7879 if test "$SHARED" = "auto"; then
7882 if test "$TOOLKIT" = "auto"; then
7888 # We also need wxBase
7889 WX_LIBS
=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
7890 WXBASE_LIBS
=`$WX_CONFIG_WITH_ARGS --libs net`
7891 WXBASE_CPPFLAGS
="$WX_CPPFLAGS -DwxUSE_GUI=0"
7895 if test ${SYS:-unknown} = win32
; then
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7899 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7900 echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7902 if test "${ac_cv_prog_RC+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 if test -n "$RC"; then
7906 ac_cv_prog_RC
="$RC" # Let the user override the test.
7908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir
=.
7913 for ac_exec_ext
in '' $ac_executable_extensions; do
7914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_RC
="${ac_tool_prefix}windres"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 if test -n "$RC"; then
7926 echo "$as_me:$LINENO: result: $RC" >&5
7927 echo "${ECHO_T}$RC" >&6
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7934 if test -z "$ac_cv_prog_RC"; then
7936 # Extract the first word of "windres", so it can be a program name with args.
7937 set dummy windres
; ac_word
=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 if test -n "$ac_ct_RC"; then
7944 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
7946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir
=.
7951 for ac_exec_ext
in '' $ac_executable_extensions; do
7952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_ac_ct_RC
="windres"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 test -z "$ac_cv_prog_ac_ct_RC" && ac_cv_prog_ac_ct_RC
=":"
7963 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
7964 if test -n "$ac_ct_RC"; then
7965 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
7966 echo "${ECHO_T}$ac_ct_RC" >&6
7968 echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6
7977 MULERCFLAGS
=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
7982 # Check for Crypto++
7985 # Check whether --with-crypto-prefix or --without-crypto-prefix was given.
7986 if test "${with_crypto_prefix+set}" = set; then
7987 withval
="$with_crypto_prefix"
7991 echo "$as_me:$LINENO: checking for crypto++ version >= 5.1" >&5
7992 echo $ECHO_N "checking for crypto++ version >= 5.1... $ECHO_C" >&6
7994 cryptopp_file_with_version
="cryptlib.h"
7996 CRYPTOPP_STYLE
="unknown"
7997 CRYPTOPP_LIB_NAME
="unknown"
7998 cryptopp_includedir
="unknown"
7999 CRYPTOPP_INCLUDE_PREFIX
="unknown"
8000 cryptopp_libdir
="unknown"
8002 for CRYPTOPP_PREFIX
in "$with_crypto_prefix" /usr
/usr
/local /opt
/opt
/local /usr
/pkg
/mingw
; do
8003 if test -z "$CRYPTOPP_PREFIX"; then
8008 # Find the Cryptopp header
8009 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8011 CRYPTOPP_STYLE
="sources"
8012 CRYPTOPP_LIB_NAME
="cryptopp"
8013 cryptopp_includedir
=
8014 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_PREFIX"
8018 elif test -f $CRYPTOPP_PREFIX/include
/cryptopp
/$cryptopp_file_with_version; then
8020 CRYPTOPP_STYLE
="installed"
8021 CRYPTOPP_LIB_NAME
="cryptopp"
8022 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8023 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8024 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8027 elif test -f $CRYPTOPP_PREFIX/include
/crypto
++/$cryptopp_file_with_version; then
8029 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8030 CRYPTOPP_STYLE
="gentoo_debian"
8031 CRYPTOPP_LIB_NAME
="crypto++"
8032 cryptopp_includedir
="$CRYPTOPP_PREFIX/include"
8033 CRYPTOPP_INCLUDE_PREFIX
="$CRYPTOPP_LIB_NAME"
8034 cryptopp_libdir
="$CRYPTOPP_PREFIX/lib"
8041 if test $CRYPTOPP_STYLE = "unknown"; then
8045 # Find out the crypto++ version and check against the minimum required
8046 cryptopp_header_path
="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8047 CRYPTOPP_VERSION_STRING
=`grep "Reference Manual" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8048 CRYPTOPP_VERSION_NUMBER
=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8049 minvers
=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8051 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then
8054 resultstr
=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8055 if test -n "$cryptopp_includedir"; then
8056 CRYPTOPP_CPPFLAGS
="-I$cryptopp_includedir"
8061 if test -n "$cryptopp_libdir"; then
8063 CRYPTOPP_LDFLAGS
="-L$cryptopp_libdir"
8064 CRYPTOPP_LIBS
="-l$CRYPTOPP_LIB_NAME"
8069 CRYPTOPP_LIBS
="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8075 cat >>confdefs.h
<<_ACEOF
8076 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8083 resultstr
=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8091 echo "$as_me:$LINENO: result: $result$resultstr" >&5
8092 echo "${ECHO_T}$result$resultstr" >&6
8094 if test ${result:-no} = yes; then
8096 # Check for CryptoPP >= 5.5
8097 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then
8098 CRYPTOPP_CPPFLAGS
="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8104 { { echo "$as_me:$LINENO: error:
8105 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8106 Please try again with --with-crypto-prefix=/my_crypto_prefix
8107 (replace /my_crypto_prefix with a valid path to your crypto++
8108 installation directory)." >&5
8109 echo "$as_me: error:
8110 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8111 Please try again with --with-crypto-prefix=/my_crypto_prefix
8112 (replace /my_crypto_prefix with a valid path to your crypto++
8113 installation directory)." >&2;}
8114 { (exit 1); exit 1; }; }
8122 ac_cpp
='$CXXCPP $CPPFLAGS'
8123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8130 echo "$as_me:$LINENO: checking if we're using the GNU C++ library" >&5
8131 echo $ECHO_N "checking if we're using the GNU C++ library... $ECHO_C" >&6
8132 cat >conftest.
$ac_ext <<_ACEOF
8136 cat confdefs.h
>>conftest.
$ac_ext
8137 cat >>conftest.
$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8142 #error Non-GNU C++ library found.
8147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8148 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8150 grep -v '^ *+' conftest.er1
>conftest.err
8152 cat conftest.err
>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } >/dev
/null
; then
8155 if test -s conftest.err
; then
8156 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8157 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8164 if test -z "$ac_cpp_err"; then
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.
$ac_ext >&5
8172 rm -f conftest.err conftest.
$ac_ext
8173 echo "$as_me:$LINENO: result: $GLIBCXX" >&5
8174 echo "${ECHO_T}$GLIBCXX" >&6
8177 mule_backup_CPPFLAGS
="$CPPFLAGS"
8178 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
8180 echo "$as_me:$LINENO: checking that wxWidgets has support for large files" >&5
8181 echo $ECHO_N "checking that wxWidgets has support for large files... $ECHO_C" >&6
8182 cat >conftest.
$ac_ext <<_ACEOF
8186 cat confdefs.h
>>conftest.
$ac_ext
8187 cat >>conftest.
$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8191 #if !HAVE_LARGEFILE_SUPPORT && !defined(_LARGE_FILES) && !defined(__WXMSW__)
8192 #error No LargeFile support!
8197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8200 grep -v '^ *+' conftest.er1
>conftest.err
8202 cat conftest.err
>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } >/dev
/null
; then
8205 if test -s conftest.err
; then
8206 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8207 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8214 if test -z "$ac_cpp_err"; then
8216 echo "$as_me:$LINENO: result: yes" >&5
8217 echo "${ECHO_T}yes" >&6
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.
$ac_ext >&5
8224 echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8226 { { echo "$as_me:$LINENO: error:
8227 Support for large files in wxWidgets is required by aMule.
8228 To continue you must recompile wxWidgets with support for
8229 large files enabled." >&5
8230 echo "$as_me: error:
8231 Support for large files in wxWidgets is required by aMule.
8232 To continue you must recompile wxWidgets with support for
8233 large files enabled." >&2;}
8234 { (exit 1); exit 1; }; }
8237 rm -f conftest.err conftest.
$ac_ext
8239 CPPFLAGS
="$mule_backup_CPPFLAGS"
8242 # Check if the compiler is broken, wrt. exceptions.
8244 echo "$as_me:$LINENO: checking for exception-handling" >&5
8245 echo $ECHO_N "checking for exception-handling... $ECHO_C" >&6
8246 if test "$cross_compiling" = yes; then
8248 echo "$as_me:$LINENO: result: undeterminable" >&5
8249 echo "${ECHO_T}undeterminable" >&6
8250 { echo "$as_me:$LINENO: WARNING:
8251 Cross-compilation detected, so exception handling cannot be tested.
8252 Note that broken exception handling in your compiler may lead to
8253 unexpected crashes." >&5
8254 echo "$as_me: WARNING:
8255 Cross-compilation detected, so exception handling cannot be tested.
8256 Note that broken exception handling in your compiler may lead to
8257 unexpected crashes." >&2;}
8260 cat >conftest.
$ac_ext <<_ACEOF
8264 cat confdefs.h
>>conftest.
$ac_ext
8265 cat >>conftest.
$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8284 rm -f conftest
$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8296 echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.
$ac_ext >&5
8306 echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8308 { { echo "$as_me:$LINENO: error: Exception handling does not work. Broken compiler?" >&5
8309 echo "$as_me: error: Exception handling does not work. Broken compiler?" >&2;}
8310 { (exit 1); exit 1; }; }
8313 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8318 echo "$as_me:$LINENO: checking for <cxxabi.h> and __cxa_demangle()" >&5
8319 echo $ECHO_N "checking for <cxxabi.h> and __cxa_demangle()... $ECHO_C" >&6
8320 cat >conftest.
$ac_ext <<_ACEOF
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8335 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8336 std::type_info *ti = abi::__cxa_current_exception_type();
8343 rm -f conftest.
$ac_objext conftest
$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1
>conftest.err
8349 cat conftest.err
>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try
='test -z "$ac_cxx_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try
='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8368 cat >>confdefs.h
<<\_ACEOF
8369 #define HAVE_CXXABI 1
8372 echo "$as_me:$LINENO: result: yes" >&5
8373 echo "${ECHO_T}yes" >&6
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.
$ac_ext >&5
8380 echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6
8384 rm -f conftest.err conftest.
$ac_objext \
8385 conftest
$ac_exeext conftest.
$ac_ext
8388 ac_cpp
='$CPP $CPPFLAGS'
8389 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8394 # Check for bfd.h (to have proper backtraces without using wxExecute)
8396 echo "$as_me:$LINENO: checking for bfd" >&5
8397 echo $ECHO_N "checking for bfd... $ECHO_C" >&6
8398 mule_backup_LIBS
="$LIBS"
8399 LIBS
="-lbfd -liberty $LIBS"
8400 cat >conftest.
$ac_ext <<_ACEOF
8404 cat confdefs.h
>>conftest.
$ac_ext
8405 cat >>conftest.
$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8408 #include <ansidecl.h>
8415 char *dummy = bfd_errmsg(bfd_get_error());
8422 rm -f conftest.
$ac_objext conftest
$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8426 grep -v '^ *+' conftest.er1
>conftest.err
8428 cat conftest.err
>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try
='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try
='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8445 echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8447 BFD_CPPFLAGS
="-DHAVE_BFD"
8448 BFD_LIBS
="-lbfd -liberty"
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.
$ac_ext >&5
8455 echo "$as_me:$LINENO: result: no" >&5
8456 echo "${ECHO_T}no" >&6
8457 { echo "$as_me:$LINENO: WARNING:
8458 bfd.h not found or unusable, please install binutils development
8459 package if you are a developer or want to help testing aMule" >&5
8460 echo "$as_me: WARNING:
8461 bfd.h not found or unusable, please install binutils development
8462 package if you are a developer or want to help testing aMule" >&2;}
8465 rm -f conftest.err conftest.
$ac_objext \
8466 conftest
$ac_exeext conftest.
$ac_ext
8467 LIBS
="$mule_backup_LIBS"
8471 echo "$as_me:$LINENO: checking for <execinfo.h> and backtrace()" >&5
8472 echo $ECHO_N "checking for <execinfo.h> and backtrace()... $ECHO_C" >&6
8473 cat >conftest.
$ac_ext <<_ACEOF
8477 cat confdefs.h
>>conftest.
$ac_ext
8478 cat >>conftest.
$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8481 #include <execinfo.h>
8488 int n = backtrace(&bt, 1);
8489 const char **bt_syms = backtrace_symbols(bt, n);
8496 rm -f conftest.
$ac_objext conftest
$ac_exeext
8497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498 (eval $ac_link) 2>conftest.er1
8500 grep -v '^ *+' conftest.er1
>conftest.err
8502 cat conftest.err
>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try
='test -z "$ac_c_werror_flag"
8506 || test ! -s conftest.err'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try
='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8521 cat >>confdefs.h
<<\_ACEOF
8522 #define HAVE_EXECINFO 1
8525 echo "$as_me:$LINENO: result: yes" >&5
8526 echo "${ECHO_T}yes" >&6
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.
$ac_ext >&5
8533 echo "$as_me:$LINENO: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8537 rm -f conftest.err conftest.
$ac_objext \
8538 conftest
$ac_exeext conftest.
$ac_ext
8541 # Ok, we have all needed libs, now checking for other stuff
8542 if test "$LEX" = "flex"; then
8544 echo "$as_me:$LINENO: checking for extended flex capabilities" >&5
8545 echo $ECHO_N "checking for extended flex capabilities... $ECHO_C" >&6
8547 extended_flex
=`flex --help | grep header-file`
8548 if test -n "$extended_flex"; then
8549 HAVE_FLEX_EXTENDED
=yes
8551 HAVE_FLEX_EXTENDED
=no
8554 echo "$as_me:$LINENO: result: $HAVE_FLEX_EXTENDED" >&5
8555 echo "${ECHO_T}$HAVE_FLEX_EXTENDED" >&6
8557 if test $HAVE_FLEX_EXTENDED = no
; then
8558 { echo "$as_me:$LINENO: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8559 echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8564 HAVE_FLEX_EXTENDED
=no
8568 # Flush standard test results for speeding cache
8569 cat >confcache
<<\_ACEOF
8570 # This file is a shell script that caches the results of configure
8571 # tests run on this system so they can be shared between configure
8572 # scripts and configure runs, see configure's option --config-cache.
8573 # It is not useful on other systems. If it contains results you don't
8574 # want to keep, you may remove or edit it.
8576 # config.status only pays attention to the cache file if you give it
8577 # the --recheck option to rerun configure.
8579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8585 # The following way of writing the cache mishandles newlines in values,
8586 # but we know of no workaround that is simple, portable, and efficient.
8587 # So, don't put newlines in cache variables' values.
8588 # Ultrix sh set writes to stderr and can't be redirected directly,
8589 # and sets the high bit in the cache file unless we assign to the vars.
8592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8594 # `set' does not quote correctly, so add quotes (double-quote
8595 # substitution turns \\\\ into \\, and sed turns \\ into \).
8598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8601 # `set' quotes correctly as required by POSIX, so do not add quotes.
8603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8614 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8615 if test -w $cache_file; then
8616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8617 cat confcache
>$cache_file
8619 echo "not updating unwritable cache $cache_file"
8624 # Checks for header files.
8625 echo "$as_me:$LINENO: checking for X" >&5
8626 echo $ECHO_N "checking for X... $ECHO_C" >&6
8629 # Check whether --with-x or --without-x was given.
8630 if test "${with_x+set}" = set; then
8634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8635 if test "x$with_x" = xno
; then
8636 # The user explicitly disabled X.
8639 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8640 # Both variables are already set.
8643 if test "${ac_cv_have_x+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 # One or both of the vars are not set, and there is no cached value.
8647 ac_x_includes
=no ac_x_libraries
=no
8649 if mkdir conftest.dir
; then
8651 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8652 cat >Imakefile
<<'_ACEOF'
8654 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8656 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8658 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8659 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8660 for ac_extension
in a so sl
; do
8661 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8662 test -f $ac_im_libdir/libX11.
$ac_extension; then
8663 ac_im_usrlibdir
=$ac_im_libdir; break
8666 # Screen out bogus values from the imake configuration. They are
8667 # bogus both because they are the default anyway, and because
8668 # using them would break gcc on systems where it needs fixed includes.
8669 case $ac_im_incroot in
8671 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8673 case $ac_im_usrlibdir in
8675 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8682 # Standard set of common directories for X headers.
8683 # Check X11 before X11Rn because it is often a symlink to the current release.
8695 /usr/local/X11/include
8696 /usr/local/X11R6/include
8697 /usr/local/X11R5/include
8698 /usr/local/X11R4/include
8700 /usr/local/include/X11
8701 /usr/local/include/X11R6
8702 /usr/local/include/X11R5
8703 /usr/local/include/X11R4
8707 /usr/XFree86/include/X11
8711 /usr/unsupported/include
8713 /usr/local/x11r5/include
8714 /usr/lpp/Xamples/include
8716 /usr/openwin/include
8717 /usr/openwin/share/include'
8719 if test "$ac_x_includes" = no
; then
8720 # Guess where to find include files, by looking for Intrinsic.h.
8721 # First, try using that file with no special directory specified.
8722 cat >conftest.
$ac_ext <<_ACEOF
8725 cat confdefs.h
>>conftest.
$ac_ext
8726 cat >>conftest.
$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 #include <X11/Intrinsic.h>
8730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8731 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8733 grep -v '^ *+' conftest.er1
>conftest.err
8735 cat conftest.err
>&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev
/null
; then
8738 if test -s conftest.err
; then
8739 ac_cpp_err
=$ac_c_preproc_warn_flag
8740 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8747 if test -z "$ac_cpp_err"; then
8748 # We can compile using X headers with no special include directory.
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.
$ac_ext >&5
8754 for ac_dir
in $ac_x_header_dirs; do
8755 if test -r "$ac_dir/X11/Intrinsic.h"; then
8756 ac_x_includes
=$ac_dir
8761 rm -f conftest.err conftest.
$ac_ext
8762 fi # $ac_x_includes = no
8764 if test "$ac_x_libraries" = no
; then
8765 # Check for the libraries.
8766 # See if we find them without any special options.
8767 # Don't add to $LIBS permanently.
8770 cat >conftest.
$ac_ext <<_ACEOF
8773 cat confdefs.h
>>conftest.
$ac_ext
8774 cat >>conftest.
$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 #include <X11/Intrinsic.h>
8785 rm -f conftest.
$ac_objext conftest
$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>conftest.er1
8789 grep -v '^ *+' conftest.er1
>conftest.err
8791 cat conftest.err
>&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try
='test -z "$ac_c_werror_flag"
8795 || test ! -s conftest.err'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try
='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8808 # We can link X programs with no special library path.
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.
$ac_ext >&5
8815 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8817 # Don't even attempt the hair of trying to link an X program!
8818 for ac_extension
in a so sl
; do
8819 if test -r $ac_dir/libXt.
$ac_extension; then
8820 ac_x_libraries
=$ac_dir
8826 rm -f conftest.err conftest.
$ac_objext \
8827 conftest
$ac_exeext conftest.
$ac_ext
8828 fi # $ac_x_libraries = no
8830 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8831 # Didn't find X anywhere. Cache the known absence of X.
8832 ac_cv_have_x
="have_x=no"
8834 # Record where we found X for the cache.
8835 ac_cv_have_x
="have_x=yes \
8836 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8841 eval "$ac_cv_have_x"
8844 if test "$have_x" != yes; then
8845 echo "$as_me:$LINENO: result: $have_x" >&5
8846 echo "${ECHO_T}$have_x" >&6
8849 # If each of the values was on the command line, it overrides each guess.
8850 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8851 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8852 # Update the cache value to reflect the command line values.
8853 ac_cv_have_x
="have_x=yes \
8854 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8855 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8856 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8859 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8860 # for constant arguments. Useless!
8861 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8862 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8863 if test "${ac_cv_working_alloca_h+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 cat >conftest.
$ac_ext <<_ACEOF
8869 cat confdefs.h
>>conftest.
$ac_ext
8870 cat >>conftest.
$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8876 char *p = (char *) alloca (2 * sizeof (int));
8881 rm -f conftest.
$ac_objext conftest
$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8885 grep -v '^ *+' conftest.er1
>conftest.err
8887 cat conftest.err
>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try
='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try
='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_working_alloca_h
=yes
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.
$ac_ext >&5
8908 ac_cv_working_alloca_h
=no
8910 rm -f conftest.err conftest.
$ac_objext \
8911 conftest
$ac_exeext conftest.
$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8915 if test $ac_cv_working_alloca_h = yes; then
8917 cat >>confdefs.h
<<\_ACEOF
8918 #define HAVE_ALLOCA_H 1
8923 echo "$as_me:$LINENO: checking for alloca" >&5
8924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8925 if test "${ac_cv_func_alloca_works+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 cat >conftest.
$ac_ext <<_ACEOF
8931 cat confdefs.h
>>conftest.
$ac_ext
8932 cat >>conftest.
$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 # define alloca __builtin_alloca
8938 # include <malloc.h>
8939 # define alloca _alloca
8942 # include <alloca.h>
8947 # ifndef alloca /* predefined by HP cc +Olibcalls */
8958 char *p = (char *) alloca (1);
8963 rm -f conftest.
$ac_objext conftest
$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>conftest.er1
8967 grep -v '^ *+' conftest.er1
>conftest.err
8969 cat conftest.err
>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try
='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try
='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_func_alloca_works
=yes
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.
$ac_ext >&5
8990 ac_cv_func_alloca_works
=no
8992 rm -f conftest.err conftest.
$ac_objext \
8993 conftest
$ac_exeext conftest.
$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8998 if test $ac_cv_func_alloca_works = yes; then
9000 cat >>confdefs.h
<<\_ACEOF
9001 #define HAVE_ALLOCA 1
9005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9006 # that cause trouble. Some versions do not even contain alloca or
9007 # contain a buggy version. If you still want to use their alloca,
9008 # use ar to extract alloca.o from them instead of compiling alloca.c.
9010 ALLOCA
=alloca.
$ac_objext
9012 cat >>confdefs.h
<<\_ACEOF
9017 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9019 if test "${ac_cv_os_cray+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 cat >conftest.
$ac_ext <<_ACEOF
9025 cat confdefs.h
>>conftest.
$ac_ext
9026 cat >>conftest.
$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9028 #if defined(CRAY) && ! defined(CRAY2)
9035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9036 $EGREP "webecray" >/dev
/null
2>&1; then
9044 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9045 echo "${ECHO_T}$ac_cv_os_cray" >&6
9046 if test $ac_cv_os_cray = yes; then
9047 for ac_func
in _getb67 GETB67 getb67
; do
9048 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9049 echo "$as_me:$LINENO: checking for $ac_func" >&5
9050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9051 if eval "test \"\${$as_ac_var+set}\" = set"; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 cat >conftest.
$ac_ext <<_ACEOF
9057 cat confdefs.h
>>conftest.
$ac_ext
9058 cat >>conftest.
$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9062 #define $ac_func innocuous_$ac_func
9064 /* System header to define __stub macros and hopefully few prototypes,
9065 which can conflict with char $ac_func (); below.
9066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9067 <limits.h> exists even on freestanding compilers. */
9070 # include <limits.h>
9072 # include <assert.h>
9077 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9085 /* The GNU C library defines this for functions which it implements
9086 to always fail with ENOSYS. Some functions are actually named
9087 something starting with __ and the normal name is an alias. */
9088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9091 char (*f) () = $ac_func;
9100 return f != $ac_func;
9105 rm -f conftest.
$ac_objext conftest
$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1
>conftest.err
9111 cat conftest.err
>&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try
='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try
='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 eval "$as_ac_var=yes"
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.
$ac_ext >&5
9132 eval "$as_ac_var=no"
9134 rm -f conftest.err conftest.
$ac_objext \
9135 conftest
$ac_exeext conftest.
$ac_ext
9137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9139 if test `eval echo '${'$as_ac_var'}'` = yes; then
9141 cat >>confdefs.h
<<_ACEOF
9142 #define CRAY_STACKSEG_END $ac_func
9151 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9152 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9153 if test "${ac_cv_c_stack_direction+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 if test "$cross_compiling" = yes; then
9157 ac_cv_c_stack_direction
=0
9159 cat >conftest.
$ac_ext <<_ACEOF
9162 cat confdefs.h
>>conftest.
$ac_ext
9163 cat >>conftest.
$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9166 find_stack_direction ()
9168 static char *addr = 0;
9173 return find_stack_direction ();
9176 return (&dummy > addr) ? 1 : -1;
9182 exit (find_stack_direction () < 0);
9185 rm -f conftest
$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_c_stack_direction
=1
9198 echo "$as_me: program exited with status $ac_status" >&5
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.
$ac_ext >&5
9203 ac_cv_c_stack_direction
=-1
9205 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9209 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9211 cat >>confdefs.h
<<_ACEOF
9212 #define STACK_DIRECTION $ac_cv_c_stack_direction
9224 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9225 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9226 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 cat >conftest.
$ac_ext <<_ACEOF
9234 cat confdefs.h
>>conftest.
$ac_ext
9235 cat >>conftest.
$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <sys/types.h>
9249 rm -f conftest.
$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1
>conftest.err
9255 cat conftest.err
>&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try
='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try
='test -s conftest.$ac_objext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 eval "$as_ac_Header=yes"
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.
$ac_ext >&5
9276 eval "$as_ac_Header=no"
9278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283 cat >>confdefs.h
<<_ACEOF
9284 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9287 ac_header_dirent
=$ac_hdr; break
9291 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9292 if test $ac_header_dirent = dirent.h
; then
9293 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9294 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9295 if test "${ac_cv_search_opendir+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 ac_func_search_save_LIBS
=$LIBS
9299 ac_cv_search_opendir
=no
9300 cat >conftest.
$ac_ext <<_ACEOF
9303 cat confdefs.h
>>conftest.
$ac_ext
9304 cat >>conftest.
$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9307 /* Override any gcc2 internal prototype to avoid an error. */
9311 /* We use char because int might match the return type of a gcc2
9312 builtin and then its argument prototype would still apply. */
9322 rm -f conftest.
$ac_objext conftest
$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9326 grep -v '^ *+' conftest.er1
>conftest.err
9328 cat conftest.err
>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try
='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try
='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_cv_search_opendir
="none required"
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.
$ac_ext >&5
9350 rm -f conftest.err conftest.
$ac_objext \
9351 conftest
$ac_exeext conftest.
$ac_ext
9352 if test "$ac_cv_search_opendir" = no
; then
9353 for ac_lib
in dir
; do
9354 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9355 cat >conftest.
$ac_ext <<_ACEOF
9358 cat confdefs.h
>>conftest.
$ac_ext
9359 cat >>conftest.
$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9362 /* Override any gcc2 internal prototype to avoid an error. */
9366 /* We use char because int might match the return type of a gcc2
9367 builtin and then its argument prototype would still apply. */
9377 rm -f conftest.
$ac_objext conftest
$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>conftest.er1
9381 grep -v '^ *+' conftest.er1
>conftest.err
9383 cat conftest.err
>&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try
='test -z "$ac_c_werror_flag"
9387 || test ! -s conftest.err'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; } &&
9393 { ac_try
='test -s conftest$ac_exeext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9399 ac_cv_search_opendir
="-l$ac_lib"
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.
$ac_ext >&5
9406 rm -f conftest.err conftest.
$ac_objext \
9407 conftest
$ac_exeext conftest.
$ac_ext
9410 LIBS
=$ac_func_search_save_LIBS
9412 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9413 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9414 if test "$ac_cv_search_opendir" != no
; then
9415 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9420 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9422 if test "${ac_cv_search_opendir+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 ac_func_search_save_LIBS
=$LIBS
9426 ac_cv_search_opendir
=no
9427 cat >conftest.
$ac_ext <<_ACEOF
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9434 /* Override any gcc2 internal prototype to avoid an error. */
9438 /* We use char because int might match the return type of a gcc2
9439 builtin and then its argument prototype would still apply. */
9449 rm -f conftest.
$ac_objext conftest
$ac_exeext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451 (eval $ac_link) 2>conftest.er1
9453 grep -v '^ *+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try
='test -z "$ac_c_werror_flag"
9459 || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try
='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_search_opendir
="none required"
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.
$ac_ext >&5
9477 rm -f conftest.err conftest.
$ac_objext \
9478 conftest
$ac_exeext conftest.
$ac_ext
9479 if test "$ac_cv_search_opendir" = no
; then
9481 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9482 cat >conftest.
$ac_ext <<_ACEOF
9485 cat confdefs.h
>>conftest.
$ac_ext
9486 cat >>conftest.
$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.
$ac_objext conftest
$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9508 grep -v '^ *+' conftest.er1
>conftest.err
9510 cat conftest.err
>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try
='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try
='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_search_opendir
="-l$ac_lib"
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.
$ac_ext >&5
9533 rm -f conftest.err conftest.
$ac_objext \
9534 conftest
$ac_exeext conftest.
$ac_ext
9537 LIBS
=$ac_func_search_save_LIBS
9539 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9540 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9541 if test "$ac_cv_search_opendir" != no
; then
9542 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9548 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9550 if test "${ac_cv_header_stdc+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 cat >conftest.
$ac_ext <<_ACEOF
9556 cat confdefs.h
>>conftest.
$ac_ext
9557 cat >>conftest.
$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9572 rm -f conftest.
$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574 (eval $ac_compile) 2>conftest.er1
9576 grep -v '^ *+' conftest.er1
>conftest.err
9578 cat conftest.err
>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try
='test -z "$ac_c_werror_flag"
9582 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try
='test -s conftest.$ac_objext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_header_stdc
=yes
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.
$ac_ext >&5
9599 ac_cv_header_stdc
=no
9601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9603 if test $ac_cv_header_stdc = yes; then
9604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9605 cat >conftest.
$ac_ext <<_ACEOF
9608 cat confdefs.h
>>conftest.
$ac_ext
9609 cat >>conftest.
$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9615 $EGREP "memchr" >/dev
/null
2>&1; then
9618 ac_cv_header_stdc
=no
9624 if test $ac_cv_header_stdc = yes; then
9625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9626 cat >conftest.
$ac_ext <<_ACEOF
9629 cat confdefs.h
>>conftest.
$ac_ext
9630 cat >>conftest.
$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 $EGREP "free" >/dev
/null
2>&1; then
9639 ac_cv_header_stdc
=no
9645 if test $ac_cv_header_stdc = yes; then
9646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9647 if test "$cross_compiling" = yes; then
9650 cat >conftest.
$ac_ext <<_ACEOF
9653 cat confdefs.h
>>conftest.
$ac_ext
9654 cat >>conftest.
$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 #if ((' ' & 0x0FF) == 0x020)
9658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9661 # define ISLOWER(c) \
9662 (('a' <= (c) && (c) <= 'i') \
9663 || ('j' <= (c) && (c) <= 'r') \
9664 || ('s' <= (c) && (c) <= 'z'))
9665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9673 for (i = 0; i < 256; i++)
9674 if (XOR (islower (i), ISLOWER (i))
9675 || toupper (i) != TOUPPER (i))
9680 rm -f conftest
$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9693 echo "$as_me: program exited with status $ac_status" >&5
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9698 ac_cv_header_stdc
=no
9700 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9706 if test $ac_cv_header_stdc = yes; then
9708 cat >>confdefs.h
<<\_ACEOF
9709 #define STDC_HEADERS 1
9744 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
/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
9746 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9748 echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9756 # Is the header compilable?
9757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9759 cat >conftest.
$ac_ext <<_ACEOF
9762 cat confdefs.h
>>conftest.
$ac_ext
9763 cat >>conftest.
$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 #include <$ac_header>
9768 rm -f conftest.
$ac_objext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>conftest.er1
9772 grep -v '^ *+' conftest.er1
>conftest.err
9774 cat conftest.err
>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try
='test -z "$ac_c_werror_flag"
9778 || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try
='test -s conftest.$ac_objext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_header_compiler
=yes
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.
$ac_ext >&5
9795 ac_header_compiler
=no
9797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9799 echo "${ECHO_T}$ac_header_compiler" >&6
9801 # Is the header present?
9802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9804 cat >conftest.
$ac_ext <<_ACEOF
9807 cat confdefs.h
>>conftest.
$ac_ext
9808 cat >>conftest.
$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 #include <$ac_header>
9812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9815 grep -v '^ *+' conftest.er1
>conftest.err
9817 cat conftest.err
>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } >/dev
/null
; then
9820 if test -s conftest.err
; then
9821 ac_cpp_err
=$ac_c_preproc_warn_flag
9822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9829 if test -z "$ac_cpp_err"; then
9830 ac_header_preproc
=yes
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.
$ac_ext >&5
9835 ac_header_preproc
=no
9837 rm -f conftest.err conftest.
$ac_ext
9838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9839 echo "${ECHO_T}$ac_header_preproc" >&6
9841 # So? What about this header?
9842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9848 ac_header_preproc
=yes
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9865 ## ------------------------------ ##
9866 ## Report this to admin@amule.org ##
9867 ## ------------------------------ ##
9870 sed "s/^/$as_me: WARNING: /" >&2
9873 echo "$as_me:$LINENO: checking for $ac_header" >&5
9874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 eval "$as_ac_Header=\$ac_header_preproc"
9880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9885 cat >>confdefs.h
<<_ACEOF
9886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9893 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9894 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9895 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 cat >conftest.
$ac_ext <<_ACEOF
9901 cat confdefs.h
>>conftest.
$ac_ext
9902 cat >>conftest.
$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 #include <sys/wait.h>
9907 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9910 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9918 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9923 rm -f conftest.
$ac_objext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>conftest.er1
9927 grep -v '^ *+' conftest.er1
>conftest.err
9929 cat conftest.err
>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try
='test -z "$ac_c_werror_flag"
9933 || test ! -s conftest.err'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try
='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_header_sys_wait_h
=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.
$ac_ext >&5
9950 ac_cv_header_sys_wait_h
=no
9952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9955 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9956 if test $ac_cv_header_sys_wait_h = yes; then
9958 cat >>confdefs.h
<<\_ACEOF
9959 #define HAVE_SYS_WAIT_H 1
9965 # Checks for typedefs, structures, and compiler characteristics.
9966 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9967 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9968 if test "${ac_cv_header_stdbool_h+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 cat >conftest.
$ac_ext <<_ACEOF
9974 cat confdefs.h
>>conftest.
$ac_ext
9975 cat >>conftest.
$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 #include <stdbool.h>
9980 # error bool is not defined
9983 # error false is not defined
9986 # error false is not 0
9989 # error true is not defined
9992 # error true is not 1
9994 #ifndef __bool_true_false_are_defined
9995 # error __bool_true_false_are_defined is not defined
9998 struct s { _Bool s: 1; _Bool t; } s;
10000 char a[true == 1 ? 1 : -1];
10001 char b[false == 0 ? 1 : -1];
10002 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10003 char d[(bool) -0.5 == true ? 1 : -1];
10005 char f[(_Bool) -0.0 == false ? 1 : -1];
10007 char h[sizeof (_Bool)];
10008 char i[sizeof s.t];
10013 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10018 rm -f conftest.
$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>conftest.er1
10022 grep -v '^ *+' conftest.er1
>conftest.err
10024 cat conftest.err
>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try
='test -z "$ac_c_werror_flag"
10028 || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try
='test -s conftest.$ac_objext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10040 ac_cv_header_stdbool_h
=yes
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.
$ac_ext >&5
10045 ac_cv_header_stdbool_h
=no
10047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10049 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10050 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10051 echo "$as_me:$LINENO: checking for _Bool" >&5
10052 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10053 if test "${ac_cv_type__Bool+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cat >conftest.
$ac_ext <<_ACEOF
10059 cat confdefs.h
>>conftest.
$ac_ext
10060 cat >>conftest.
$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 $ac_includes_default
10068 if (sizeof (_Bool))
10074 rm -f conftest.
$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076 (eval $ac_compile) 2>conftest.er1
10078 grep -v '^ *+' conftest.er1
>conftest.err
10080 cat conftest.err
>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try
='test -z "$ac_c_werror_flag"
10084 || test ! -s conftest.err'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try
='test -s conftest.$ac_objext'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_type__Bool
=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.
$ac_ext >&5
10101 ac_cv_type__Bool
=no
10103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10105 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10106 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10107 if test $ac_cv_type__Bool = yes; then
10109 cat >>confdefs.h
<<_ACEOF
10110 #define HAVE__BOOL 1
10116 if test $ac_cv_header_stdbool_h = yes; then
10118 cat >>confdefs.h
<<\_ACEOF
10119 #define HAVE_STDBOOL_H 1
10124 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10125 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10126 if test "${ac_cv_c_const+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 cat >conftest.
$ac_ext <<_ACEOF
10132 cat confdefs.h
>>conftest.
$ac_ext
10133 cat >>conftest.
$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10139 /* FIXME: Include the comments suggested by Paul. */
10140 #ifndef __cplusplus
10141 /* Ultrix mips cc rejects this. */
10142 typedef int charset[2];
10144 /* SunOS 4.1.1 cc rejects this. */
10145 char const *const *ccp;
10147 /* NEC SVR4.0.2 mips cc rejects this. */
10148 struct point {int x, y;};
10149 static struct point const zero = {0,0};
10150 /* AIX XL C 1.02.0.0 rejects this.
10151 It does not let you subtract one const X* pointer from another in
10152 an arm of an if-expression whose if-part is not a constant
10154 const char *g = "string";
10155 ccp = &g + (g ? g-g : 0);
10156 /* HPUX 7.0 cc rejects these. */
10159 ccp = (char const *const *) p;
10160 { /* SCO 3.2v4 cc rejects this. */
10162 char const *s = 0 ? (char *) 0 : (char const *) 0;
10166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10167 int x[] = {25, 17};
10168 const int *foo = &x[0];
10171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10172 typedef const int *iptr;
10176 { /* AIX XL C 1.02.0.0 rejects this saying
10177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10178 struct s { int j; const int *ap[3]; };
10179 struct s *b; b->j = 5;
10181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10182 const int foo = 10;
10190 rm -f conftest.
$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>conftest.er1
10194 grep -v '^ *+' conftest.er1
>conftest.err
10196 cat conftest.err
>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try
='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try
='test -s conftest.$ac_objext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.
$ac_ext >&5
10219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10221 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10222 echo "${ECHO_T}$ac_cv_c_const" >&6
10223 if test $ac_cv_c_const = no
; then
10225 cat >>confdefs.h
<<\_ACEOF
10231 echo "$as_me:$LINENO: checking for inline" >&5
10232 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10233 if test "${ac_cv_c_inline+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 for ac_kw
in inline __inline__ __inline
; do
10238 cat >conftest.
$ac_ext <<_ACEOF
10241 cat confdefs.h
>>conftest.
$ac_ext
10242 cat >>conftest.
$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 #ifndef __cplusplus
10246 static $ac_kw foo_t static_foo () {return 0; }
10247 $ac_kw foo_t foo () {return 0; }
10251 rm -f conftest.
$ac_objext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10255 grep -v '^ *+' conftest.er1
>conftest.err
10257 cat conftest.err
>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try
='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try
='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_c_inline
=$ac_kw; break
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.
$ac_ext >&5
10279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10284 echo "${ECHO_T}$ac_cv_c_inline" >&6
10287 case $ac_cv_c_inline in
10290 case $ac_cv_c_inline in
10292 *) ac_val
=$ac_cv_c_inline;;
10294 cat >>confdefs.h
<<_ACEOF
10295 #ifndef __cplusplus
10296 #define inline $ac_val
10302 echo "$as_me:$LINENO: checking for mode_t" >&5
10303 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10304 if test "${ac_cv_type_mode_t+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.
$ac_ext <<_ACEOF
10310 cat confdefs.h
>>conftest.
$ac_ext
10311 cat >>conftest.
$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10319 if (sizeof (mode_t))
10325 rm -f conftest.
$ac_objext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>conftest.er1
10329 grep -v '^ *+' conftest.er1
>conftest.err
10331 cat conftest.err
>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try
='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try
='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_type_mode_t
=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.
$ac_ext >&5
10352 ac_cv_type_mode_t
=no
10354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10357 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10358 if test $ac_cv_type_mode_t = yes; then
10362 cat >>confdefs.h
<<_ACEOF
10368 echo "$as_me:$LINENO: checking for off_t" >&5
10369 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10370 if test "${ac_cv_type_off_t+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 cat >conftest.
$ac_ext <<_ACEOF
10376 cat confdefs.h
>>conftest.
$ac_ext
10377 cat >>conftest.
$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10385 if (sizeof (off_t))
10391 rm -f conftest.
$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10395 grep -v '^ *+' conftest.er1
>conftest.err
10397 cat conftest.err
>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try
='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try
='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_type_off_t
=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.
$ac_ext >&5
10418 ac_cv_type_off_t
=no
10420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10423 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10424 if test $ac_cv_type_off_t = yes; then
10428 cat >>confdefs.h
<<_ACEOF
10434 echo "$as_me:$LINENO: checking for size_t" >&5
10435 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10436 if test "${ac_cv_type_size_t+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 cat >conftest.
$ac_ext <<_ACEOF
10442 cat confdefs.h
>>conftest.
$ac_ext
10443 cat >>conftest.
$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 $ac_includes_default
10451 if (sizeof (size_t))
10457 rm -f conftest.
$ac_objext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459 (eval $ac_compile) 2>conftest.er1
10461 grep -v '^ *+' conftest.er1
>conftest.err
10463 cat conftest.err
>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try
='test -z "$ac_c_werror_flag"
10467 || test ! -s conftest.err'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try
='test -s conftest.$ac_objext'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10479 ac_cv_type_size_t
=yes
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.
$ac_ext >&5
10484 ac_cv_type_size_t
=no
10486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10488 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10489 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10490 if test $ac_cv_type_size_t = yes; then
10494 cat >>confdefs.h
<<_ACEOF
10495 #define size_t unsigned
10500 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10501 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10502 if test "${ac_cv_header_time+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 cat >conftest.
$ac_ext <<_ACEOF
10508 cat confdefs.h
>>conftest.
$ac_ext
10509 cat >>conftest.
$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 #include <sys/types.h>
10512 #include <sys/time.h>
10518 if ((struct tm *) 0)
10524 rm -f conftest.
$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>conftest.er1
10528 grep -v '^ *+' conftest.er1
>conftest.err
10530 cat conftest.err
>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try
='test -z "$ac_c_werror_flag"
10534 || test ! -s conftest.err'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try
='test -s conftest.$ac_objext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_cv_header_time
=yes
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.
$ac_ext >&5
10551 ac_cv_header_time
=no
10553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10555 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10556 echo "${ECHO_T}$ac_cv_header_time" >&6
10557 if test $ac_cv_header_time = yes; then
10559 cat >>confdefs.h
<<\_ACEOF
10560 #define TIME_WITH_SYS_TIME 1
10565 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10566 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10567 if test "${ac_cv_struct_tm+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 cat >conftest.
$ac_ext <<_ACEOF
10573 cat confdefs.h
>>conftest.
$ac_ext
10574 cat >>conftest.
$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 #include <sys/types.h>
10582 struct tm *tp; tp->tm_sec;
10587 rm -f conftest.
$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>conftest.er1
10591 grep -v '^ *+' conftest.er1
>conftest.err
10593 cat conftest.err
>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try
='test -z "$ac_c_werror_flag"
10597 || test ! -s conftest.err'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; } &&
10603 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
10609 ac_cv_struct_tm
=time.h
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.
$ac_ext >&5
10614 ac_cv_struct_tm
=sys
/time.h
10616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10619 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10620 if test $ac_cv_struct_tm = sys
/time.h
; then
10622 cat >>confdefs.h
<<\_ACEOF
10623 #define TM_IN_SYS_TIME 1
10628 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10629 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10630 if test "${ac_cv_type_uid_t+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.
$ac_ext <<_ACEOF
10636 cat confdefs.h
>>conftest.
$ac_ext
10637 cat >>conftest.
$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <sys/types.h>
10642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10643 $EGREP "uid_t" >/dev
/null
2>&1; then
10644 ac_cv_type_uid_t
=yes
10646 ac_cv_type_uid_t
=no
10651 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10652 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10653 if test $ac_cv_type_uid_t = no
; then
10655 cat >>confdefs.h
<<\_ACEOF
10660 cat >>confdefs.h
<<\_ACEOF
10666 echo "$as_me:$LINENO: checking for working volatile" >&5
10667 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10668 if test "${ac_cv_c_volatile+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 cat >conftest.
$ac_ext <<_ACEOF
10674 cat confdefs.h
>>conftest.
$ac_ext
10675 cat >>conftest.
$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10688 rm -f conftest.
$ac_objext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690 (eval $ac_compile) 2>conftest.er1
10692 grep -v '^ *+' conftest.er1
>conftest.err
10694 cat conftest.err
>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try
='test -z "$ac_c_werror_flag"
10698 || test ! -s conftest.err'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try
='test -s conftest.$ac_objext'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 ac_cv_c_volatile
=yes
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.
$ac_ext >&5
10715 ac_cv_c_volatile
=no
10717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10719 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10720 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10721 if test $ac_cv_c_volatile = no
; then
10723 cat >>confdefs.h
<<\_ACEOF
10729 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10730 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10731 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.
$ac_ext <<_ACEOF
10737 cat confdefs.h
>>conftest.
$ac_ext
10738 cat >>conftest.
$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 $ac_includes_default
10744 if ((ptrdiff_t *) 0)
10746 if (sizeof (ptrdiff_t))
10752 rm -f conftest.
$ac_objext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754 (eval $ac_compile) 2>conftest.er1
10756 grep -v '^ *+' conftest.er1
>conftest.err
10758 cat conftest.err
>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try
='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try
='test -s conftest.$ac_objext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_type_ptrdiff_t
=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.
$ac_ext >&5
10779 ac_cv_type_ptrdiff_t
=no
10781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10783 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10784 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10785 if test $ac_cv_type_ptrdiff_t = yes; then
10787 cat >>confdefs.h
<<_ACEOF
10788 #define HAVE_PTRDIFF_T 1
10795 # Checks for library functions.
10796 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
10797 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
10798 if test "${ac_cv_func_closedir_void+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 if test "$cross_compiling" = yes; then
10802 ac_cv_func_closedir_void
=yes
10804 cat >conftest.
$ac_ext <<_ACEOF
10807 cat confdefs.h
>>conftest.
$ac_ext
10808 cat >>conftest.
$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10811 #include <$ac_header_dirent>
10812 #ifndef __cplusplus
10819 exit (closedir (opendir (".")) != 0);
10824 rm -f conftest
$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826 (eval $ac_link) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_cv_func_closedir_void
=no
10837 echo "$as_me: program exited with status $ac_status" >&5
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.
$ac_ext >&5
10841 ( exit $ac_status )
10842 ac_cv_func_closedir_void
=yes
10844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10848 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10849 if test $ac_cv_func_closedir_void = yes; then
10851 cat >>confdefs.h
<<\_ACEOF
10852 #define CLOSEDIR_VOID 1
10857 if test $ac_cv_c_compiler_gnu = yes; then
10858 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10859 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10860 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 ac_pattern
="Autoconf.*'x'"
10864 cat >conftest.
$ac_ext <<_ACEOF
10867 cat confdefs.h
>>conftest.
$ac_ext
10868 cat >>conftest.
$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10874 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10875 ac_cv_prog_gcc_traditional
=yes
10877 ac_cv_prog_gcc_traditional
=no
10882 if test $ac_cv_prog_gcc_traditional = no
; then
10883 cat >conftest.
$ac_ext <<_ACEOF
10886 cat confdefs.h
>>conftest.
$ac_ext
10887 cat >>conftest.
$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <termio.h>
10892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10893 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
10894 ac_cv_prog_gcc_traditional
=yes
10900 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10901 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10902 if test $ac_cv_prog_gcc_traditional = yes; then
10903 CC
="$CC -traditional"
10907 echo "$as_me:$LINENO: checking for pid_t" >&5
10908 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10909 if test "${ac_cv_type_pid_t+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 cat >conftest.
$ac_ext <<_ACEOF
10915 cat confdefs.h
>>conftest.
$ac_ext
10916 cat >>conftest.
$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 $ac_includes_default
10924 if (sizeof (pid_t))
10930 rm -f conftest.
$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932 (eval $ac_compile) 2>conftest.er1
10934 grep -v '^ *+' conftest.er1
>conftest.err
10936 cat conftest.err
>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try
='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try
='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_type_pid_t
=yes
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.
$ac_ext >&5
10957 ac_cv_type_pid_t
=no
10959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10962 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10963 if test $ac_cv_type_pid_t = yes; then
10967 cat >>confdefs.h
<<_ACEOF
10975 for ac_header
in unistd.h vfork.h
10977 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10979 echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10987 # Is the header compilable?
10988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10990 cat >conftest.
$ac_ext <<_ACEOF
10993 cat confdefs.h
>>conftest.
$ac_ext
10994 cat >>conftest.
$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 $ac_includes_default
10997 #include <$ac_header>
10999 rm -f conftest.
$ac_objext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11001 (eval $ac_compile) 2>conftest.er1
11003 grep -v '^ *+' conftest.er1
>conftest.err
11005 cat conftest.err
>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try
='test -z "$ac_c_werror_flag"
11009 || test ! -s conftest.err'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try
='test -s conftest.$ac_objext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_header_compiler
=yes
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.
$ac_ext >&5
11026 ac_header_compiler
=no
11028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11030 echo "${ECHO_T}$ac_header_compiler" >&6
11032 # Is the header present?
11033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11035 cat >conftest.
$ac_ext <<_ACEOF
11038 cat confdefs.h
>>conftest.
$ac_ext
11039 cat >>conftest.
$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <$ac_header>
11043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11046 grep -v '^ *+' conftest.er1
>conftest.err
11048 cat conftest.err
>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } >/dev
/null
; then
11051 if test -s conftest.err
; then
11052 ac_cpp_err
=$ac_c_preproc_warn_flag
11053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11060 if test -z "$ac_cpp_err"; then
11061 ac_header_preproc
=yes
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.
$ac_ext >&5
11066 ac_header_preproc
=no
11068 rm -f conftest.err conftest.
$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11070 echo "${ECHO_T}$ac_header_preproc" >&6
11072 # So? What about this header?
11073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11079 ac_header_preproc
=yes
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11096 ## ------------------------------ ##
11097 ## Report this to admin@amule.org ##
11098 ## ------------------------------ ##
11101 sed "s/^/$as_me: WARNING: /" >&2
11104 echo "$as_me:$LINENO: checking for $ac_header" >&5
11105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 eval "$as_ac_Header=\$ac_header_preproc"
11111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11116 cat >>confdefs.h
<<_ACEOF
11117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11126 for ac_func
in fork vfork
11128 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11129 echo "$as_me:$LINENO: checking for $ac_func" >&5
11130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11131 if eval "test \"\${$as_ac_var+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 cat >conftest.
$ac_ext <<_ACEOF
11137 cat confdefs.h
>>conftest.
$ac_ext
11138 cat >>conftest.
$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11142 #define $ac_func innocuous_$ac_func
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char $ac_func (); below.
11146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11147 <limits.h> exists even on freestanding compilers. */
11150 # include <limits.h>
11152 # include <assert.h>
11157 /* Override any gcc2 internal prototype to avoid an error. */
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11171 char (*f) () = $ac_func;
11180 return f != $ac_func;
11185 rm -f conftest.
$ac_objext conftest
$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11189 grep -v '^ *+' conftest.er1
>conftest.err
11191 cat conftest.err
>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try
='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try
='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "$as_ac_var=yes"
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11212 eval "$as_ac_var=no"
11214 rm -f conftest.err conftest.
$ac_objext \
11215 conftest
$ac_exeext conftest.
$ac_ext
11217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h
<<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 if test "x$ac_cv_func_fork" = xyes
; then
11228 echo "$as_me:$LINENO: checking for working fork" >&5
11229 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11230 if test "${ac_cv_func_fork_works+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 if test "$cross_compiling" = yes; then
11234 ac_cv_func_fork_works
=cross
11236 cat >conftest.
$ac_ext <<_ACEOF
11237 /* By Ruediger Kuhlmann. */
11238 #include <sys/types.h>
11240 # include <unistd.h>
11242 /* Some systems only have a dummy stub for fork() */
11250 rm -f conftest
$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_func_fork_works
=yes
11263 echo "$as_me: program exited with status $ac_status" >&5
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.
$ac_ext >&5
11267 ( exit $ac_status )
11268 ac_cv_func_fork_works
=no
11270 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11273 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11274 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11277 ac_cv_func_fork_works
=$ac_cv_func_fork
11279 if test "x$ac_cv_func_fork_works" = xcross
; then
11281 *-*-amigaos* |
*-*-msdosdjgpp*)
11282 # Override, as these systems have only a dummy fork() stub
11283 ac_cv_func_fork_works
=no
11286 ac_cv_func_fork_works
=yes
11289 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11290 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11292 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11293 if test "x$ac_cv_func_vfork" = xyes
; then
11294 echo "$as_me:$LINENO: checking for working vfork" >&5
11295 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11296 if test "${ac_cv_func_vfork_works+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 if test "$cross_compiling" = yes; then
11300 ac_cv_func_vfork_works
=cross
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 /* Thanks to Paul Eggert for this test. */
11310 #include <stdlib.h>
11311 #include <sys/types.h>
11312 #include <sys/stat.h>
11313 #include <sys/wait.h>
11315 # include <unistd.h>
11318 # include <vfork.h>
11320 /* On some sparc systems, changes by the child to local and incoming
11321 argument registers are propagated back to the parent. The compiler
11322 is told about this with #include <vfork.h>, but some compilers
11323 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11324 static variable whose address is put into a register that is
11325 clobbered by the vfork. */
11328 sparc_address_test (int arg)
11330 sparc_address_test (arg) int arg;
11333 static pid_t child;
11351 pid_t parent = getpid ();
11354 sparc_address_test (0);
11359 /* Here is another test for sparc vfork register problems. This
11360 test uses lots of local variables, at least as many local
11361 variables as main has allocated so far including compiler
11362 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11363 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11364 reuse the register of parent for one of the local variables,
11365 since it will think that parent can't possibly be used any more
11366 in this routine. Assigning to the local variable will thus
11367 munge parent in the parent process. */
11369 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11370 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11371 /* Convince the compiler that p..p7 are live; otherwise, it might
11372 use the same hardware register for all 8 local variables. */
11373 if (p != p1 || p != p2 || p != p3 || p != p4
11374 || p != p5 || p != p6 || p != p7)
11377 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11378 from child file descriptors. If the child closes a descriptor
11379 before it execs or exits, this munges the parent's descriptor
11380 as well. Test for this by closing stdout in the child. */
11381 _exit(close(fileno(stdout)) != 0);
11386 while (wait(&status) != child)
11389 /* Was there some problem with vforking? */
11392 /* Did the child fail? (This shouldn't happen.) */
11395 /* Did the vfork/compiler bug occur? */
11396 || parent != getpid()
11398 /* Did the file descriptor bug occur? */
11399 || fstat(fileno(stdout), &st) != 0
11404 rm -f conftest
$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_cv_func_vfork_works
=yes
11417 echo "$as_me: program exited with status $ac_status" >&5
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.
$ac_ext >&5
11421 ( exit $ac_status )
11422 ac_cv_func_vfork_works
=no
11424 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11427 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11428 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11431 if test "x$ac_cv_func_fork_works" = xcross
; then
11432 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11433 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11434 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11437 if test "x$ac_cv_func_vfork_works" = xyes
; then
11439 cat >>confdefs.h
<<\_ACEOF
11440 #define HAVE_WORKING_VFORK 1
11445 cat >>confdefs.h
<<\_ACEOF
11450 if test "x$ac_cv_func_fork_works" = xyes
; then
11452 cat >>confdefs.h
<<\_ACEOF
11453 #define HAVE_WORKING_FORK 1
11458 if test x
$SYS != xwin32
; then
11460 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11461 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
11462 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
11463 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 ac_check_lib_save_LIBS
=$LIBS
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11475 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11490 rm -f conftest.
$ac_objext conftest
$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>conftest.er1
11494 grep -v '^ *+' conftest.er1
>conftest.err
11496 cat conftest.err
>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try
='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try
='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_lib_sun_getmntent
=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.
$ac_ext >&5
11517 ac_cv_lib_sun_getmntent
=no
11519 rm -f conftest.err conftest.
$ac_objext \
11520 conftest
$ac_exeext conftest.
$ac_ext
11521 LIBS
=$ac_check_lib_save_LIBS
11523 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
11524 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
11525 if test $ac_cv_lib_sun_getmntent = yes; then
11528 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
11529 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
11530 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 ac_check_lib_save_LIBS
=$LIBS
11535 cat >conftest.
$ac_ext <<_ACEOF
11538 cat confdefs.h
>>conftest.
$ac_ext
11539 cat >>conftest.
$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11542 /* Override any gcc2 internal prototype to avoid an error. */
11546 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */
11557 rm -f conftest.
$ac_objext conftest
$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559 (eval $ac_link) 2>conftest.er1
11561 grep -v '^ *+' conftest.er1
>conftest.err
11563 cat conftest.err
>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try
='test -z "$ac_c_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try
='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_cv_lib_seq_getmntent
=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.
$ac_ext >&5
11584 ac_cv_lib_seq_getmntent
=no
11586 rm -f conftest.err conftest.
$ac_objext \
11587 conftest
$ac_exeext conftest.
$ac_ext
11588 LIBS
=$ac_check_lib_save_LIBS
11590 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
11591 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
11592 if test $ac_cv_lib_seq_getmntent = yes; then
11595 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
11596 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
11597 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 ac_check_lib_save_LIBS
=$LIBS
11602 cat >conftest.
$ac_ext <<_ACEOF
11605 cat confdefs.h
>>conftest.
$ac_ext
11606 cat >>conftest.
$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 /* Override any gcc2 internal prototype to avoid an error. */
11613 /* We use char because int might match the return type of a gcc2
11614 builtin and then its argument prototype would still apply. */
11624 rm -f conftest.
$ac_objext conftest
$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>conftest.er1
11628 grep -v '^ *+' conftest.er1
>conftest.err
11630 cat conftest.err
>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try
='test -z "$ac_c_werror_flag"
11634 || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try
='test -s conftest$ac_exeext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 ac_cv_lib_gen_getmntent
=yes
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.
$ac_ext >&5
11651 ac_cv_lib_gen_getmntent
=no
11653 rm -f conftest.err conftest.
$ac_objext \
11654 conftest
$ac_exeext conftest.
$ac_ext
11655 LIBS
=$ac_check_lib_save_LIBS
11657 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
11658 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
11659 if test $ac_cv_lib_gen_getmntent = yes; then
11668 for ac_func
in getmntent
11670 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_var+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.
$ac_ext <<_ACEOF
11679 cat confdefs.h
>>conftest.
$ac_ext
11680 cat >>conftest.
$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684 #define $ac_func innocuous_$ac_func
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11692 # include <limits.h>
11694 # include <assert.h>
11699 /* Override any gcc2 internal prototype to avoid an error. */
11704 /* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11707 /* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11713 char (*f) () = $ac_func;
11722 return f != $ac_func;
11727 rm -f conftest.
$ac_objext conftest
$ac_exeext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>conftest.er1
11731 grep -v '^ *+' conftest.er1
>conftest.err
11733 cat conftest.err
>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try
='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try
='test -s conftest$ac_exeext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 eval "$as_ac_var=yes"
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.
$ac_ext >&5
11754 eval "$as_ac_var=no"
11756 rm -f conftest.err conftest.
$ac_objext \
11757 conftest
$ac_exeext conftest.
$ac_ext
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11761 if test `eval echo '${'$as_ac_var'}'` = yes; then
11762 cat >>confdefs.h
<<_ACEOF
11763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11770 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11771 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11772 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 rm -f conftest.sym conftest.
file
11776 echo >conftest.
file
11777 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11778 if test "$cross_compiling" = yes; then
11779 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11781 cat >conftest.
$ac_ext <<_ACEOF
11784 cat confdefs.h
>>conftest.
$ac_ext
11785 cat >>conftest.
$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11792 /* Linux will dereference the symlink and fail.
11793 That is better in the sense that it means we will not
11794 have to compile and use the lstat wrapper. */
11795 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11800 rm -f conftest
$ac_exeext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11813 echo "$as_me: program exited with status $ac_status" >&5
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.
$ac_ext >&5
11817 ( exit $ac_status )
11818 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11820 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11823 # If the `ln -s' command failed, then we probably don't even
11824 # have an lstat function.
11825 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11827 rm -f conftest.sym conftest.
file
11830 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11831 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11833 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11835 cat >>confdefs.h
<<_ACEOF
11836 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11840 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11842 "lstat.$ac_objext" | \
11843 *" lstat.$ac_objext" | \
11844 "lstat.$ac_objext "* | \
11845 *" lstat.$ac_objext "* ) ;;
11846 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11851 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
11852 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11853 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 if test "$cross_compiling" = yes; then
11857 ac_cv_func_lstat_empty_string_bug
=yes
11859 cat >conftest.
$ac_ext <<_ACEOF
11862 cat confdefs.h
>>conftest.
$ac_ext
11863 cat >>conftest.
$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11870 exit (lstat ("", &sbuf) ? 1 : 0);
11875 rm -f conftest
$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_func_lstat_empty_string_bug
=yes
11888 echo "$as_me: program exited with status $ac_status" >&5
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.
$ac_ext >&5
11892 ( exit $ac_status )
11893 ac_cv_func_lstat_empty_string_bug
=no
11895 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11898 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
11899 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
11900 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11902 "lstat.$ac_objext" | \
11903 *" lstat.$ac_objext" | \
11904 "lstat.$ac_objext "* | \
11905 *" lstat.$ac_objext "* ) ;;
11906 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11910 cat >>confdefs.h
<<_ACEOF
11911 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11916 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11917 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11918 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 rm -f conftest.sym conftest.
file
11922 echo >conftest.
file
11923 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11924 if test "$cross_compiling" = yes; then
11925 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11927 cat >conftest.
$ac_ext <<_ACEOF
11930 cat confdefs.h
>>conftest.
$ac_ext
11931 cat >>conftest.
$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11938 /* Linux will dereference the symlink and fail.
11939 That is better in the sense that it means we will not
11940 have to compile and use the lstat wrapper. */
11941 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11946 rm -f conftest
$ac_exeext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948 (eval $ac_link) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11959 echo "$as_me: program exited with status $ac_status" >&5
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.
$ac_ext >&5
11963 ( exit $ac_status )
11964 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11966 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11969 # If the `ln -s' command failed, then we probably don't even
11970 # have an lstat function.
11971 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11973 rm -f conftest.sym conftest.
file
11976 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11977 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
11979 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11981 cat >>confdefs.h
<<_ACEOF
11982 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11986 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
11988 "lstat.$ac_objext" | \
11989 *" lstat.$ac_objext" | \
11990 "lstat.$ac_objext "* | \
11991 *" lstat.$ac_objext "* ) ;;
11992 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
12000 echo "$as_me:$LINENO: checking for working memcmp" >&5
12001 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12002 if test "${ac_cv_func_memcmp_working+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 if test "$cross_compiling" = yes; then
12006 ac_cv_func_memcmp_working
=no
12008 cat >conftest.
$ac_ext <<_ACEOF
12011 cat confdefs.h
>>conftest.
$ac_ext
12012 cat >>conftest.
$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 $ac_includes_default
12019 /* Some versions of memcmp are not 8-bit clean. */
12020 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12021 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12024 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12025 or more and with at least one buffer not starting on a 4-byte boundary.
12026 William Lewis provided this test program. */
12031 for (i = 0; i < 4; i++)
12035 strcpy (a, "--------01111111");
12036 strcpy (b, "--------10000000");
12037 if (memcmp (a, b, 16) >= 0)
12047 rm -f conftest
$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049 (eval $ac_link) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_cv_func_memcmp_working
=yes
12060 echo "$as_me: program exited with status $ac_status" >&5
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.
$ac_ext >&5
12064 ( exit $ac_status )
12065 ac_cv_func_memcmp_working
=no
12067 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12071 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12072 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
12073 "memcmp.$ac_objext" | \
12074 *" memcmp.$ac_objext" | \
12075 "memcmp.$ac_objext "* | \
12076 *" memcmp.$ac_objext "* ) ;;
12077 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
12083 for ac_header
in stdlib.h unistd.h
12085 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12087 echo "$as_me:$LINENO: checking for $ac_header" >&5
12088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12095 # Is the header compilable?
12096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12098 cat >conftest.
$ac_ext <<_ACEOF
12101 cat confdefs.h
>>conftest.
$ac_ext
12102 cat >>conftest.
$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 #include <$ac_header>
12107 rm -f conftest.
$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109 (eval $ac_compile) 2>conftest.er1
12111 grep -v '^ *+' conftest.er1
>conftest.err
12113 cat conftest.err
>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try
='test -z "$ac_c_werror_flag"
12117 || test ! -s conftest.err'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try
='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_header_compiler
=yes
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.
$ac_ext >&5
12134 ac_header_compiler
=no
12136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6
12140 # Is the header present?
12141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12143 cat >conftest.
$ac_ext <<_ACEOF
12146 cat confdefs.h
>>conftest.
$ac_ext
12147 cat >>conftest.
$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 #include <$ac_header>
12151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12152 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12154 grep -v '^ *+' conftest.er1
>conftest.err
12156 cat conftest.err
>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } >/dev
/null
; then
12159 if test -s conftest.err
; then
12160 ac_cpp_err
=$ac_c_preproc_warn_flag
12161 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12168 if test -z "$ac_cpp_err"; then
12169 ac_header_preproc
=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.
$ac_ext >&5
12174 ac_header_preproc
=no
12176 rm -f conftest.err conftest.
$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178 echo "${ECHO_T}$ac_header_preproc" >&6
12180 # So? What about this header?
12181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12187 ac_header_preproc
=yes
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12204 ## ------------------------------ ##
12205 ## Report this to admin@amule.org ##
12206 ## ------------------------------ ##
12209 sed "s/^/$as_me: WARNING: /" >&2
12212 echo "$as_me:$LINENO: checking for $ac_header" >&5
12213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 eval "$as_ac_Header=\$ac_header_preproc"
12219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12224 cat >>confdefs.h
<<_ACEOF
12225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12233 for ac_func
in getpagesize
12235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12236 echo "$as_me:$LINENO: checking for $ac_func" >&5
12237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12238 if eval "test \"\${$as_ac_var+set}\" = set"; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 cat >conftest.
$ac_ext <<_ACEOF
12244 cat confdefs.h
>>conftest.
$ac_ext
12245 cat >>conftest.
$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12249 #define $ac_func innocuous_$ac_func
12251 /* System header to define __stub macros and hopefully few prototypes,
12252 which can conflict with char $ac_func (); below.
12253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12254 <limits.h> exists even on freestanding compilers. */
12257 # include <limits.h>
12259 # include <assert.h>
12264 /* Override any gcc2 internal prototype to avoid an error. */
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12272 /* The GNU C library defines this for functions which it implements
12273 to always fail with ENOSYS. Some functions are actually named
12274 something starting with __ and the normal name is an alias. */
12275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12278 char (*f) () = $ac_func;
12287 return f != $ac_func;
12292 rm -f conftest.
$ac_objext conftest
$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>conftest.er1
12296 grep -v '^ *+' conftest.er1
>conftest.err
12298 cat conftest.err
>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try
='test -z "$ac_c_werror_flag"
12302 || test ! -s conftest.err'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try
='test -s conftest$ac_exeext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 eval "$as_ac_var=yes"
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.
$ac_ext >&5
12319 eval "$as_ac_var=no"
12321 rm -f conftest.err conftest.
$ac_objext \
12322 conftest
$ac_exeext conftest.
$ac_ext
12324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12326 if test `eval echo '${'$as_ac_var'}'` = yes; then
12327 cat >>confdefs.h
<<_ACEOF
12328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12334 echo "$as_me:$LINENO: checking for working mmap" >&5
12335 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12336 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 if test "$cross_compiling" = yes; then
12340 ac_cv_func_mmap_fixed_mapped
=no
12342 cat >conftest.
$ac_ext <<_ACEOF
12345 cat confdefs.h
>>conftest.
$ac_ext
12346 cat >>conftest.
$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12349 /* malloc might have been renamed as rpl_malloc. */
12352 /* Thanks to Mike Haertel and Jim Avera for this test.
12353 Here is a matrix of mmap possibilities:
12354 mmap private not fixed
12355 mmap private fixed at somewhere currently unmapped
12356 mmap private fixed at somewhere already mapped
12357 mmap shared not fixed
12358 mmap shared fixed at somewhere currently unmapped
12359 mmap shared fixed at somewhere already mapped
12360 For private mappings, we should verify that changes cannot be read()
12361 back from the file, nor mmap's back from the file at a different
12362 address. (There have been systems where private was not correctly
12363 implemented like the infamous i386 svr4.0, and systems where the
12364 VM page cache was not coherent with the file system buffer cache
12365 like early versions of FreeBSD and possibly contemporary NetBSD.)
12366 For shared mappings, we should conversely verify that changes get
12367 propagated back to all the places they're supposed to be.
12369 Grep wants private fixed already mapped.
12370 The main things grep needs to know about mmap are:
12371 * does it exist and is it safe to write into the mmap'd area
12372 * how to use it (BSD variants) */
12375 #include <sys/mman.h>
12377 #if !STDC_HEADERS && !HAVE_STDLIB_H
12381 /* This mess was copied from the GNU getpagesize.h. */
12382 #if !HAVE_GETPAGESIZE
12383 /* Assume that all systems that can run configure have sys/param.h. */
12384 # if !HAVE_SYS_PARAM_H
12385 # define HAVE_SYS_PARAM_H 1
12388 # ifdef _SC_PAGESIZE
12389 # define getpagesize() sysconf(_SC_PAGESIZE)
12390 # else /* no _SC_PAGESIZE */
12391 # if HAVE_SYS_PARAM_H
12392 # include <sys/param.h>
12393 # ifdef EXEC_PAGESIZE
12394 # define getpagesize() EXEC_PAGESIZE
12395 # else /* no EXEC_PAGESIZE */
12397 # define getpagesize() NBPG * CLSIZE
12400 # endif /* no CLSIZE */
12401 # else /* no NBPG */
12403 # define getpagesize() NBPC
12404 # else /* no NBPC */
12406 # define getpagesize() PAGESIZE
12407 # endif /* PAGESIZE */
12408 # endif /* no NBPC */
12409 # endif /* no NBPG */
12410 # endif /* no EXEC_PAGESIZE */
12411 # else /* no HAVE_SYS_PARAM_H */
12412 # define getpagesize() 8192 /* punt totally */
12413 # endif /* no HAVE_SYS_PARAM_H */
12414 # endif /* no _SC_PAGESIZE */
12416 #endif /* no HAVE_GETPAGESIZE */
12421 char *data, *data2, *data3;
12425 pagesize = getpagesize ();
12427 /* First, make a file with some known garbage in it. */
12428 data = (char *) malloc (pagesize);
12431 for (i = 0; i < pagesize; ++i)
12432 *(data + i) = rand ();
12434 fd = creat ("conftest.mmap", 0600);
12437 if (write (fd, data, pagesize) != pagesize)
12441 /* Next, try to mmap the file at a fixed address which already has
12442 something else allocated at it. If we can, also make sure that
12443 we see the same garbage. */
12444 fd = open ("conftest.mmap", O_RDWR);
12447 data2 = (char *) malloc (2 * pagesize);
12450 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12451 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12452 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12454 for (i = 0; i < pagesize; ++i)
12455 if (*(data + i) != *(data2 + i))
12458 /* Finally, make sure that changes to the mapped area do not
12459 percolate back to the file as seen by read(). (This is a bug on
12460 some variants of i386 svr4.0.) */
12461 for (i = 0; i < pagesize; ++i)
12462 *(data2 + i) = *(data2 + i) + 1;
12463 data3 = (char *) malloc (pagesize);
12466 if (read (fd, data3, pagesize) != pagesize)
12468 for (i = 0; i < pagesize; ++i)
12469 if (*(data + i) != *(data3 + i))
12475 rm -f conftest
$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_func_mmap_fixed_mapped
=yes
12488 echo "$as_me: program exited with status $ac_status" >&5
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.
$ac_ext >&5
12492 ( exit $ac_status )
12493 ac_cv_func_mmap_fixed_mapped
=no
12495 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12498 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12499 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12500 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12502 cat >>confdefs.h
<<\_ACEOF
12503 #define HAVE_MMAP 1
12507 rm -f conftest.mmap
12511 for ac_header
in sys
/select.h sys
/socket.h
12513 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12515 echo "$as_me:$LINENO: checking for $ac_header" >&5
12516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12523 # Is the header compilable?
12524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12526 cat >conftest.
$ac_ext <<_ACEOF
12529 cat confdefs.h
>>conftest.
$ac_ext
12530 cat >>conftest.
$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 $ac_includes_default
12533 #include <$ac_header>
12535 rm -f conftest.
$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1
>conftest.err
12541 cat conftest.err
>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try
='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try
='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_header_compiler
=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.
$ac_ext >&5
12562 ac_header_compiler
=no
12564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566 echo "${ECHO_T}$ac_header_compiler" >&6
12568 # Is the header present?
12569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12571 cat >conftest.
$ac_ext <<_ACEOF
12574 cat confdefs.h
>>conftest.
$ac_ext
12575 cat >>conftest.
$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <$ac_header>
12579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12580 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12582 grep -v '^ *+' conftest.er1
>conftest.err
12584 cat conftest.err
>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev
/null
; then
12587 if test -s conftest.err
; then
12588 ac_cpp_err
=$ac_c_preproc_warn_flag
12589 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12596 if test -z "$ac_cpp_err"; then
12597 ac_header_preproc
=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.
$ac_ext >&5
12602 ac_header_preproc
=no
12604 rm -f conftest.err conftest.
$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606 echo "${ECHO_T}$ac_header_preproc" >&6
12608 # So? What about this header?
12609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12615 ac_header_preproc
=yes
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12632 ## ------------------------------ ##
12633 ## Report this to admin@amule.org ##
12634 ## ------------------------------ ##
12637 sed "s/^/$as_me: WARNING: /" >&2
12640 echo "$as_me:$LINENO: checking for $ac_header" >&5
12641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 eval "$as_ac_Header=\$ac_header_preproc"
12647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12652 cat >>confdefs.h
<<_ACEOF
12653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12660 echo "$as_me:$LINENO: checking types of arguments for select" >&5
12661 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
12662 if test "${ac_cv_func_select_args+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12666 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
12667 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12668 cat >conftest.
$ac_ext <<_ACEOF
12671 cat confdefs.h
>>conftest.
$ac_ext
12672 cat >>conftest.
$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 $ac_includes_default
12675 #if HAVE_SYS_SELECT_H
12676 # include <sys/select.h>
12678 #if HAVE_SYS_SOCKET_H
12679 # include <sys/socket.h>
12685 extern int select ($ac_arg1,
12686 $ac_arg234, $ac_arg234, $ac_arg234,
12692 rm -f conftest.
$ac_objext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>conftest.er1
12696 grep -v '^ *+' conftest.er1
>conftest.err
12698 cat conftest.err
>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try
='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try
='test -s conftest.$ac_objext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.
$ac_ext >&5
12720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12724 # Provide a safe default value.
12725 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12728 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12729 echo "${ECHO_T}$ac_cv_func_select_args" >&6
12730 ac_save_IFS
=$IFS; IFS
=','
12731 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12735 cat >>confdefs.h
<<_ACEOF
12736 #define SELECT_TYPE_ARG1 $1
12740 cat >>confdefs.h
<<_ACEOF
12741 #define SELECT_TYPE_ARG234 ($2)
12745 cat >>confdefs.h
<<_ACEOF
12746 #define SELECT_TYPE_ARG5 ($3)
12751 echo "$as_me:$LINENO: checking for function prototypes" >&5
12752 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
12753 if test "$ac_cv_prog_cc_stdc" != no
; then
12754 echo "$as_me:$LINENO: result: yes" >&5
12755 echo "${ECHO_T}yes" >&6
12757 cat >>confdefs.h
<<\_ACEOF
12758 #define PROTOTYPES 1
12762 cat >>confdefs.h
<<\_ACEOF
12763 #define __PROTOTYPES 1
12767 echo "$as_me:$LINENO: result: no" >&5
12768 echo "${ECHO_T}no" >&6
12771 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12772 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
12773 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 ac_cv_func_setvbuf_reversed
=no
12777 cat >conftest.
$ac_ext <<_ACEOF
12780 cat confdefs.h
>>conftest.
$ac_ext
12781 cat >>conftest.
$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12785 int (setvbuf) (FILE *, int, char *, size_t);
12790 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12795 rm -f conftest.
$ac_objext conftest
$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>conftest.er1
12799 grep -v '^ *+' conftest.er1
>conftest.err
12801 cat conftest.err
>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try
='test -z "$ac_c_werror_flag"
12805 || test ! -s conftest.err'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } &&
12811 { ac_try
='test -s conftest$ac_exeext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 cat >conftest.
$ac_ext <<_ACEOF
12820 cat confdefs.h
>>conftest.
$ac_ext
12821 cat >>conftest.
$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12825 int (setvbuf) (FILE *, int, char *, size_t);
12830 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12835 rm -f conftest.
$ac_objext conftest
$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12839 grep -v '^ *+' conftest.er1
>conftest.err
12841 cat conftest.err
>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try
='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try
='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 # It compiles and links either way, so it must not be declared
12858 # with a prototype and most likely this is a K&R C compiler.
12860 if test "$cross_compiling" = yes; then
12861 : # Assume setvbuf is not reversed when cross-compiling.
12863 cat >conftest.
$ac_ext <<_ACEOF
12866 cat confdefs.h
>>conftest.
$ac_ext
12867 cat >>conftest.
$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12873 /* This call has the arguments reversed.
12874 A reversed system may check and see that the address of buf
12875 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12877 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12880 exit (0); /* Non-reversed systems SEGV here. */
12885 rm -f conftest
$ac_exeext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12887 (eval $ac_link) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_func_setvbuf_reversed
=yes
12898 echo "$as_me: program exited with status $ac_status" >&5
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.
$ac_ext >&5
12902 ( exit $ac_status )
12905 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12907 ac_cv_func_setvbuf_reversed
=yes
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.
$ac_ext >&5
12913 rm -f conftest.err conftest.
$ac_objext \
12914 conftest
$ac_exeext conftest.
$ac_ext
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.
$ac_ext >&5
12920 rm -f conftest.err conftest.
$ac_objext \
12921 conftest
$ac_exeext conftest.
$ac_ext
12923 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12924 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
12925 if test $ac_cv_func_setvbuf_reversed = yes; then
12927 cat >>confdefs.h
<<\_ACEOF
12928 #define SETVBUF_REVERSED 1
12933 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12934 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12935 if test "${ac_cv_type_signal+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 cat >conftest.
$ac_ext <<_ACEOF
12941 cat confdefs.h
>>conftest.
$ac_ext
12942 cat >>conftest.
$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 #include <sys/types.h>
12945 #include <signal.h>
12950 extern "C" void (*signal (int, void (*)(int)))(int);
12952 void (*signal ()) ();
12963 rm -f conftest.
$ac_objext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>conftest.er1
12967 grep -v '^ *+' conftest.er1
>conftest.err
12969 cat conftest.err
>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try
='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try
='test -s conftest.$ac_objext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_type_signal
=void
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.
$ac_ext >&5
12990 ac_cv_type_signal
=int
12992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12994 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12995 echo "${ECHO_T}$ac_cv_type_signal" >&6
12997 cat >>confdefs.h
<<_ACEOF
12998 #define RETSIGTYPE $ac_cv_type_signal
13002 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13003 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
13004 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 if test "$cross_compiling" = yes; then
13008 ac_cv_func_stat_empty_string_bug
=yes
13010 cat >conftest.
$ac_ext <<_ACEOF
13013 cat confdefs.h
>>conftest.
$ac_ext
13014 cat >>conftest.
$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 $ac_includes_default
13021 exit (stat ("", &sbuf) ? 1 : 0);
13026 rm -f conftest
$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_func_stat_empty_string_bug
=yes
13039 echo "$as_me: program exited with status $ac_status" >&5
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.
$ac_ext >&5
13043 ( exit $ac_status )
13044 ac_cv_func_stat_empty_string_bug
=no
13046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13049 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13050 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
13051 if test $ac_cv_func_stat_empty_string_bug = yes; then
13053 "stat.$ac_objext" | \
13054 *" stat.$ac_objext" | \
13055 "stat.$ac_objext "* | \
13056 *" stat.$ac_objext "* ) ;;
13057 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
13061 cat >>confdefs.h
<<_ACEOF
13062 #define HAVE_STAT_EMPTY_STRING_BUG 1
13068 for ac_func
in strftime
13070 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13071 echo "$as_me:$LINENO: checking for $ac_func" >&5
13072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13073 if eval "test \"\${$as_ac_var+set}\" = set"; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 cat >conftest.
$ac_ext <<_ACEOF
13079 cat confdefs.h
>>conftest.
$ac_ext
13080 cat >>conftest.
$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13084 #define $ac_func innocuous_$ac_func
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char $ac_func (); below.
13088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13089 <limits.h> exists even on freestanding compilers. */
13092 # include <limits.h>
13094 # include <assert.h>
13099 /* Override any gcc2 internal prototype to avoid an error. */
13104 /* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13107 /* The GNU C library defines this for functions which it implements
13108 to always fail with ENOSYS. Some functions are actually named
13109 something starting with __ and the normal name is an alias. */
13110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13113 char (*f) () = $ac_func;
13122 return f != $ac_func;
13127 rm -f conftest.
$ac_objext conftest
$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13131 grep -v '^ *+' conftest.er1
>conftest.err
13133 cat conftest.err
>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try
='test -z "$ac_c_werror_flag"
13137 || test ! -s conftest.err'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try
='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 eval "$as_ac_var=yes"
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.
$ac_ext >&5
13154 eval "$as_ac_var=no"
13156 rm -f conftest.err conftest.
$ac_objext \
13157 conftest
$ac_exeext conftest.
$ac_ext
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13161 if test `eval echo '${'$as_ac_var'}'` = yes; then
13162 cat >>confdefs.h
<<_ACEOF
13163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13167 # strftime is in -lintl on SCO UNIX.
13168 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13169 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13170 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 ac_check_lib_save_LIBS
=$LIBS
13174 LIBS
="-lintl $LIBS"
13175 cat >conftest.
$ac_ext <<_ACEOF
13178 cat confdefs.h
>>conftest.
$ac_ext
13179 cat >>conftest.
$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13182 /* Override any gcc2 internal prototype to avoid an error. */
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13197 rm -f conftest.
$ac_objext conftest
$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13201 grep -v '^ *+' conftest.er1
>conftest.err
13203 cat conftest.err
>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try
='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try
='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_lib_intl_strftime
=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.
$ac_ext >&5
13224 ac_cv_lib_intl_strftime
=no
13226 rm -f conftest.err conftest.
$ac_objext \
13227 conftest
$ac_exeext conftest.
$ac_ext
13228 LIBS
=$ac_check_lib_save_LIBS
13230 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13231 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
13232 if test $ac_cv_lib_intl_strftime = yes; then
13233 cat >>confdefs.h
<<\_ACEOF
13234 #define HAVE_STRFTIME 1
13237 LIBS
="-lintl $LIBS"
13243 echo "$as_me:$LINENO: checking for working strtod" >&5
13244 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
13245 if test "${ac_cv_func_strtod+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 if test "$cross_compiling" = yes; then
13249 ac_cv_func_strtod
=no
13251 cat >conftest.
$ac_ext <<_ACEOF
13254 cat confdefs.h
>>conftest.
$ac_ext
13255 cat >>conftest.
$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13263 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13264 char *string = " +69";
13267 value = strtod (string, &term);
13268 if (value != 69 || term != (string + 4))
13273 /* Under Solaris 2.4, strtod returns the wrong value for the
13274 terminating character under some conditions. */
13275 char *string = "NaN";
13277 strtod (string, &term);
13278 if (term != string && *(term - 1) == 0)
13285 rm -f conftest
$ac_exeext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287 (eval $ac_link) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_func_strtod
=yes
13298 echo "$as_me: program exited with status $ac_status" >&5
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.
$ac_ext >&5
13302 ( exit $ac_status )
13303 ac_cv_func_strtod
=no
13305 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13309 echo "${ECHO_T}$ac_cv_func_strtod" >&6
13310 if test $ac_cv_func_strtod = no
; then
13312 "strtod.$ac_objext" | \
13313 *" strtod.$ac_objext" | \
13314 "strtod.$ac_objext "* | \
13315 *" strtod.$ac_objext "* ) ;;
13316 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext" ;;
13319 echo "$as_me:$LINENO: checking for pow" >&5
13320 echo $ECHO_N "checking for pow... $ECHO_C" >&6
13321 if test "${ac_cv_func_pow+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 cat >conftest.
$ac_ext <<_ACEOF
13327 cat confdefs.h
>>conftest.
$ac_ext
13328 cat >>conftest.
$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13332 #define pow innocuous_pow
13334 /* System header to define __stub macros and hopefully few prototypes,
13335 which can conflict with char pow (); below.
13336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13337 <limits.h> exists even on freestanding compilers. */
13340 # include <limits.h>
13342 # include <assert.h>
13347 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13355 /* The GNU C library defines this for functions which it implements
13356 to always fail with ENOSYS. Some functions are actually named
13357 something starting with __ and the normal name is an alias. */
13358 #if defined (__stub_pow) || defined (__stub___pow)
13361 char (*f) () = pow;
13375 rm -f conftest.
$ac_objext conftest
$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>conftest.er1
13379 grep -v '^ *+' conftest.er1
>conftest.err
13381 cat conftest.err
>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try
='test -z "$ac_c_werror_flag"
13385 || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try
='test -s conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.
$ac_ext >&5
13404 rm -f conftest.err conftest.
$ac_objext \
13405 conftest
$ac_exeext conftest.
$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13408 echo "${ECHO_T}$ac_cv_func_pow" >&6
13410 if test $ac_cv_func_pow = no
; then
13411 echo "$as_me:$LINENO: checking for pow in -lm" >&5
13412 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13413 if test "${ac_cv_lib_m_pow+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 ac_check_lib_save_LIBS
=$LIBS
13418 cat >conftest.
$ac_ext <<_ACEOF
13421 cat confdefs.h
>>conftest.
$ac_ext
13422 cat >>conftest.
$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 /* Override any gcc2 internal prototype to avoid an error. */
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13440 rm -f conftest.
$ac_objext conftest
$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13444 grep -v '^ *+' conftest.er1
>conftest.err
13446 cat conftest.err
>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try
='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try
='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_lib_m_pow
=yes
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.
$ac_ext >&5
13469 rm -f conftest.err conftest.
$ac_objext \
13470 conftest
$ac_exeext conftest.
$ac_ext
13471 LIBS
=$ac_check_lib_save_LIBS
13473 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13474 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13475 if test $ac_cv_lib_m_pow = yes; then
13478 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13479 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13487 for ac_func
in vprintf
13489 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13490 echo "$as_me:$LINENO: checking for $ac_func" >&5
13491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13492 if eval "test \"\${$as_ac_var+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 cat >conftest.
$ac_ext <<_ACEOF
13498 cat confdefs.h
>>conftest.
$ac_ext
13499 cat >>conftest.
$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13503 #define $ac_func innocuous_$ac_func
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char $ac_func (); below.
13507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508 <limits.h> exists even on freestanding compilers. */
13511 # include <limits.h>
13513 # include <assert.h>
13518 /* Override any gcc2 internal prototype to avoid an error. */
13523 /* We use char because int might match the return type of a gcc2
13524 builtin and then its argument prototype would still apply. */
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13532 char (*f) () = $ac_func;
13541 return f != $ac_func;
13546 rm -f conftest.
$ac_objext conftest
$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548 (eval $ac_link) 2>conftest.er1
13550 grep -v '^ *+' conftest.er1
>conftest.err
13552 cat conftest.err
>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try
='test -z "$ac_c_werror_flag"
13556 || test ! -s conftest.err'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try
='test -s conftest$ac_exeext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 eval "$as_ac_var=yes"
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.
$ac_ext >&5
13573 eval "$as_ac_var=no"
13575 rm -f conftest.err conftest.
$ac_objext \
13576 conftest
$ac_exeext conftest.
$ac_ext
13578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13580 if test `eval echo '${'$as_ac_var'}'` = yes; then
13581 cat >>confdefs.h
<<_ACEOF
13582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13585 echo "$as_me:$LINENO: checking for _doprnt" >&5
13586 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13587 if test "${ac_cv_func__doprnt+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 cat >conftest.
$ac_ext <<_ACEOF
13593 cat confdefs.h
>>conftest.
$ac_ext
13594 cat >>conftest.
$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13598 #define _doprnt innocuous__doprnt
13600 /* System header to define __stub macros and hopefully few prototypes,
13601 which can conflict with char _doprnt (); below.
13602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13603 <limits.h> exists even on freestanding compilers. */
13606 # include <limits.h>
13608 # include <assert.h>
13613 /* Override any gcc2 internal prototype to avoid an error. */
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13621 /* The GNU C library defines this for functions which it implements
13622 to always fail with ENOSYS. Some functions are actually named
13623 something starting with __ and the normal name is an alias. */
13624 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13627 char (*f) () = _doprnt;
13636 return f != _doprnt;
13641 rm -f conftest.
$ac_objext conftest
$ac_exeext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643 (eval $ac_link) 2>conftest.er1
13645 grep -v '^ *+' conftest.er1
>conftest.err
13647 cat conftest.err
>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try
='test -z "$ac_c_werror_flag"
13651 || test ! -s conftest.err'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try
='test -s conftest$ac_exeext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_func__doprnt
=yes
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.
$ac_ext >&5
13668 ac_cv_func__doprnt
=no
13670 rm -f conftest.err conftest.
$ac_objext \
13671 conftest
$ac_exeext conftest.
$ac_ext
13673 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13674 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13675 if test $ac_cv_func__doprnt = yes; then
13677 cat >>confdefs.h
<<\_ACEOF
13678 #define HAVE_DOPRNT 1
13687 if test $cross_compiling = yes -a $gnumalloc = yes; then
13689 { echo "$as_me:$LINENO: WARNING:
13690 configure cannot check whether malloc() and realloc() are GNU libc
13691 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13692 run configure with the --without-gnu-malloc switch." >&5
13693 echo "$as_me: WARNING:
13694 configure cannot check whether malloc() and realloc() are GNU libc
13695 compatible. You have to be ABSOLUTELY sure that they are, otherwise
13696 run configure with the --without-gnu-malloc switch." >&2;}
13697 ac_cv_func_malloc_0_nonnull
=yes
13698 ac_cv_func_realloc_0_nonnull
=yes
13703 for ac_header
in stdlib.h
13705 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13715 # Is the header compilable?
13716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13718 cat >conftest.
$ac_ext <<_ACEOF
13721 cat confdefs.h
>>conftest.
$ac_ext
13722 cat >>conftest.
$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 $ac_includes_default
13725 #include <$ac_header>
13727 rm -f conftest.
$ac_objext
13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729 (eval $ac_compile) 2>conftest.er1
13731 grep -v '^ *+' conftest.er1
>conftest.err
13733 cat conftest.err
>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try
='test -z "$ac_c_werror_flag"
13737 || test ! -s conftest.err'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try
='test -s conftest.$ac_objext'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_header_compiler
=yes
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.
$ac_ext >&5
13754 ac_header_compiler
=no
13756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13758 echo "${ECHO_T}$ac_header_compiler" >&6
13760 # Is the header present?
13761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13763 cat >conftest.
$ac_ext <<_ACEOF
13766 cat confdefs.h
>>conftest.
$ac_ext
13767 cat >>conftest.
$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <$ac_header>
13771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13774 grep -v '^ *+' conftest.er1
>conftest.err
13776 cat conftest.err
>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev
/null
; then
13779 if test -s conftest.err
; then
13780 ac_cpp_err
=$ac_c_preproc_warn_flag
13781 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13788 if test -z "$ac_cpp_err"; then
13789 ac_header_preproc
=yes
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.
$ac_ext >&5
13794 ac_header_preproc
=no
13796 rm -f conftest.err conftest.
$ac_ext
13797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13798 echo "${ECHO_T}$ac_header_preproc" >&6
13800 # So? What about this header?
13801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13807 ac_header_preproc
=yes
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13824 ## ------------------------------ ##
13825 ## Report this to admin@amule.org ##
13826 ## ------------------------------ ##
13829 sed "s/^/$as_me: WARNING: /" >&2
13832 echo "$as_me:$LINENO: checking for $ac_header" >&5
13833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 eval "$as_ac_Header=\$ac_header_preproc"
13839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13844 cat >>confdefs.h
<<_ACEOF
13845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13852 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13853 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13854 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 if test "$cross_compiling" = yes; then
13858 ac_cv_func_malloc_0_nonnull
=no
13860 cat >conftest.
$ac_ext <<_ACEOF
13863 cat confdefs.h
>>conftest.
$ac_ext
13864 cat >>conftest.
$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #if STDC_HEADERS || HAVE_STDLIB_H
13867 # include <stdlib.h>
13875 exit (malloc (0) ? 0 : 1);
13880 rm -f conftest
$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882 (eval $ac_link) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_cv_func_malloc_0_nonnull
=yes
13893 echo "$as_me: program exited with status $ac_status" >&5
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.
$ac_ext >&5
13897 ( exit $ac_status )
13898 ac_cv_func_malloc_0_nonnull
=no
13900 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13903 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13904 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13905 if test $ac_cv_func_malloc_0_nonnull = yes; then
13907 cat >>confdefs.h
<<\_ACEOF
13908 #define HAVE_MALLOC 1
13912 cat >>confdefs.h
<<\_ACEOF
13913 #define HAVE_MALLOC 0
13917 "malloc.$ac_objext" | \
13918 *" malloc.$ac_objext" | \
13919 "malloc.$ac_objext "* | \
13920 *" malloc.$ac_objext "* ) ;;
13921 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
13925 cat >>confdefs.h
<<\_ACEOF
13926 #define malloc rpl_malloc
13934 for ac_header
in stdlib.h
13936 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13938 echo "$as_me:$LINENO: checking for $ac_header" >&5
13939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13946 # Is the header compilable?
13947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13949 cat >conftest.
$ac_ext <<_ACEOF
13952 cat confdefs.h
>>conftest.
$ac_ext
13953 cat >>conftest.
$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 $ac_includes_default
13956 #include <$ac_header>
13958 rm -f conftest.
$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13962 grep -v '^ *+' conftest.er1
>conftest.err
13964 cat conftest.err
>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try
='test -z "$ac_c_werror_flag"
13968 || test ! -s conftest.err'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try
='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 ac_header_compiler
=yes
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.
$ac_ext >&5
13985 ac_header_compiler
=no
13987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13989 echo "${ECHO_T}$ac_header_compiler" >&6
13991 # Is the header present?
13992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13994 cat >conftest.
$ac_ext <<_ACEOF
13997 cat confdefs.h
>>conftest.
$ac_ext
13998 cat >>conftest.
$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 #include <$ac_header>
14002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14003 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14005 grep -v '^ *+' conftest.er1
>conftest.err
14007 cat conftest.err
>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev
/null
; then
14010 if test -s conftest.err
; then
14011 ac_cpp_err
=$ac_c_preproc_warn_flag
14012 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14019 if test -z "$ac_cpp_err"; then
14020 ac_header_preproc
=yes
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.
$ac_ext >&5
14025 ac_header_preproc
=no
14027 rm -f conftest.err conftest.
$ac_ext
14028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc
=yes
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14055 ## ------------------------------ ##
14056 ## Report this to admin@amule.org ##
14057 ## ------------------------------ ##
14060 sed "s/^/$as_me: WARNING: /" >&2
14063 echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 eval "$as_ac_Header=\$ac_header_preproc"
14070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14075 cat >>confdefs.h
<<_ACEOF
14076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14083 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
14084 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
14085 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 if test "$cross_compiling" = yes; then
14089 ac_cv_func_realloc_0_nonnull
=no
14091 cat >conftest.
$ac_ext <<_ACEOF
14094 cat confdefs.h
>>conftest.
$ac_ext
14095 cat >>conftest.
$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #if STDC_HEADERS || HAVE_STDLIB_H
14098 # include <stdlib.h>
14106 exit (realloc (0, 0) ? 0 : 1);
14111 rm -f conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_func_realloc_0_nonnull
=yes
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.
$ac_ext >&5
14128 ( exit $ac_status )
14129 ac_cv_func_realloc_0_nonnull
=no
14131 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14134 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
14135 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
14136 if test $ac_cv_func_realloc_0_nonnull = yes; then
14138 cat >>confdefs.h
<<\_ACEOF
14139 #define HAVE_REALLOC 1
14143 cat >>confdefs.h
<<\_ACEOF
14144 #define HAVE_REALLOC 0
14148 "realloc.$ac_objext" | \
14149 *" realloc.$ac_objext" | \
14150 "realloc.$ac_objext "* | \
14151 *" realloc.$ac_objext "* ) ;;
14152 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
14156 cat >>confdefs.h
<<\_ACEOF
14157 #define realloc rpl_realloc
14197 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 munmap nl_langinfo pow
select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
14199 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14200 echo "$as_me:$LINENO: checking for $ac_func" >&5
14201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14202 if eval "test \"\${$as_ac_var+set}\" = set"; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 cat >conftest.
$ac_ext <<_ACEOF
14208 cat confdefs.h
>>conftest.
$ac_ext
14209 cat >>conftest.
$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14213 #define $ac_func innocuous_$ac_func
14215 /* System header to define __stub macros and hopefully few prototypes,
14216 which can conflict with char $ac_func (); below.
14217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14218 <limits.h> exists even on freestanding compilers. */
14221 # include <limits.h>
14223 # include <assert.h>
14228 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14236 /* The GNU C library defines this for functions which it implements
14237 to always fail with ENOSYS. Some functions are actually named
14238 something starting with __ and the normal name is an alias. */
14239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14242 char (*f) () = $ac_func;
14251 return f != $ac_func;
14256 rm -f conftest.
$ac_objext conftest
$ac_exeext
14257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14258 (eval $ac_link) 2>conftest.er1
14260 grep -v '^ *+' conftest.er1
>conftest.err
14262 cat conftest.err
>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try
='test -z "$ac_c_werror_flag"
14266 || test ! -s conftest.err'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; } &&
14272 { ac_try
='test -s conftest$ac_exeext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 eval "$as_ac_var=yes"
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14283 eval "$as_ac_var=no"
14285 rm -f conftest.err conftest.
$ac_objext \
14286 conftest
$ac_exeext conftest.
$ac_ext
14288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14290 if test `eval echo '${'$as_ac_var'}'` = yes; then
14291 cat >>confdefs.h
<<_ACEOF
14292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14298 #-------------------------------------------------------------------------------
14299 # End of autoscan stuff
14300 #-------------------------------------------------------------------------------
14305 for ac_func
in mkdir getrlimit setrlimit
14307 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14308 echo "$as_me:$LINENO: checking for $ac_func" >&5
14309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14310 if eval "test \"\${$as_ac_var+set}\" = set"; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 cat >conftest.
$ac_ext <<_ACEOF
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14321 #define $ac_func innocuous_$ac_func
14323 /* System header to define __stub macros and hopefully few prototypes,
14324 which can conflict with char $ac_func (); below.
14325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14326 <limits.h> exists even on freestanding compilers. */
14329 # include <limits.h>
14331 # include <assert.h>
14336 /* Override any gcc2 internal prototype to avoid an error. */
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14344 /* The GNU C library defines this for functions which it implements
14345 to always fail with ENOSYS. Some functions are actually named
14346 something starting with __ and the normal name is an alias. */
14347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14350 char (*f) () = $ac_func;
14359 return f != $ac_func;
14364 rm -f conftest.
$ac_objext conftest
$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366 (eval $ac_link) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1
>conftest.err
14370 cat conftest.err
>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try
='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try
='test -s conftest$ac_exeext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 eval "$as_ac_var=yes"
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.
$ac_ext >&5
14391 eval "$as_ac_var=no"
14393 rm -f conftest.err conftest.
$ac_objext \
14394 conftest
$ac_exeext conftest.
$ac_ext
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14398 if test `eval echo '${'$as_ac_var'}'` = yes; then
14399 cat >>confdefs.h
<<_ACEOF
14400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14407 mule_backup_CPPFLAGS
="$CPPFLAGS"
14408 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
14409 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14410 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
14411 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 cat >conftest.
$ac_ext <<_ACEOF
14417 cat confdefs.h
>>conftest.
$ac_ext
14418 cat >>conftest.
$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 $ac_includes_default
14425 char *p = (char *) strerror_r;
14432 rm -f conftest.
$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14436 grep -v '^ *+' conftest.er1
>conftest.err
14438 cat conftest.err
>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try
='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try
='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_have_decl_strerror_r
=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.
$ac_ext >&5
14459 ac_cv_have_decl_strerror_r
=no
14461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14463 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14464 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
14465 if test $ac_cv_have_decl_strerror_r = yes; then
14467 cat >>confdefs.h
<<_ACEOF
14468 #define HAVE_DECL_STRERROR_R 1
14473 cat >>confdefs.h
<<_ACEOF
14474 #define HAVE_DECL_STRERROR_R 0
14482 for ac_func
in strerror_r
14484 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485 echo "$as_me:$LINENO: checking for $ac_func" >&5
14486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14487 if eval "test \"\${$as_ac_var+set}\" = set"; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define $ac_func innocuous_$ac_func
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14506 # include <limits.h>
14508 # include <assert.h>
14513 /* Override any gcc2 internal prototype to avoid an error. */
14518 /* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14521 /* The GNU C library defines this for functions which it implements
14522 to always fail with ENOSYS. Some functions are actually named
14523 something starting with __ and the normal name is an alias. */
14524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14527 char (*f) () = $ac_func;
14536 return f != $ac_func;
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
14563 eval "$as_ac_var=yes"
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.
$ac_ext >&5
14568 eval "$as_ac_var=no"
14570 rm -f conftest.err conftest.
$ac_objext \
14571 conftest
$ac_exeext conftest.
$ac_ext
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14575 if test `eval echo '${'$as_ac_var'}'` = yes; then
14576 cat >>confdefs.h
<<_ACEOF
14577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14583 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14584 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
14585 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 ac_cv_func_strerror_r_char_p
=no
14590 if test $ac_cv_have_decl_strerror_r = yes; then
14591 cat >conftest.
$ac_ext <<_ACEOF
14594 cat confdefs.h
>>conftest.
$ac_ext
14595 cat >>conftest.
$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 $ac_includes_default
14603 char x = *strerror_r (0, buf, sizeof buf);
14604 char *p = strerror_r (0, buf, sizeof buf);
14610 rm -f conftest.
$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>conftest.er1
14614 grep -v '^ *+' conftest.er1
>conftest.err
14616 cat conftest.err
>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try
='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try
='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_cv_func_strerror_r_char_p
=yes
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.
$ac_ext >&5
14638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14640 # strerror_r is not declared. Choose between
14641 # systems that have relatively inaccessible declarations for the
14642 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14643 # former has a strerror_r that returns char*, while the latter
14644 # has a strerror_r that returns `int'.
14645 # This test should segfault on the DEC system.
14646 if test "$cross_compiling" = yes; then
14649 cat >conftest.
$ac_ext <<_ACEOF
14652 cat confdefs.h
>>conftest.
$ac_ext
14653 cat >>conftest.
$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 $ac_includes_default
14656 extern char *strerror_r ();
14661 char x = *strerror_r (0, buf, sizeof buf);
14662 exit (!isalpha (x));
14667 rm -f conftest
$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_cv_func_strerror_r_char_p
=yes
14680 echo "$as_me: program exited with status $ac_status" >&5
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.
$ac_ext >&5
14685 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14690 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14691 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
14692 if test $ac_cv_func_strerror_r_char_p = yes; then
14694 cat >>confdefs.h
<<\_ACEOF
14695 #define STRERROR_R_CHAR_P 1
14700 CPPFLAGS
="$mule_backup_CPPFLAGS"
14702 # Look for a way to preallocate disk space for files.
14704 echo "$as_me:$LINENO: checking for fallocate" >&5
14705 echo $ECHO_N "checking for fallocate... $ECHO_C" >&6
14706 cat >conftest.
$ac_ext <<_ACEOF
14710 cat confdefs.h
>>conftest.
$ac_ext
14711 cat >>conftest.
$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14714 #include <linux/falloc.h>
14720 fallocate(0, 0, 0, 0);
14727 rm -f conftest.
$ac_objext conftest
$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>conftest.er1
14731 grep -v '^ *+' conftest.er1
>conftest.err
14733 cat conftest.err
>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try
='test -z "$ac_c_werror_flag"
14737 || test ! -s conftest.err'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; } &&
14743 { ac_try
='test -s conftest$ac_exeext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14752 cat >>confdefs.h
<<\_ACEOF
14753 #define HAVE_FALLOCATE 1
14756 echo "$as_me:$LINENO: result: yes" >&5
14757 echo "${ECHO_T}yes" >&6
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.
$ac_ext >&5
14764 echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6
14768 rm -f conftest.err conftest.
$ac_objext \
14769 conftest
$ac_exeext conftest.
$ac_ext
14772 echo "$as_me:$LINENO: checking for SYS_fallocate" >&5
14773 echo $ECHO_N "checking for SYS_fallocate... $ECHO_C" >&6
14774 cat >conftest.
$ac_ext <<_ACEOF
14778 cat confdefs.h
>>conftest.
$ac_ext
14779 cat >>conftest.
$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 #include <sys/sycall.h>
14783 #include <sys/types.h>
14784 #include <unistd.h>
14790 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
14797 rm -f conftest.
$ac_objext conftest
$ac_exeext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>conftest.er1
14801 grep -v '^ *+' conftest.er1
>conftest.err
14803 cat conftest.err
>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try
='test -z "$ac_c_werror_flag"
14807 || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try
='test -s conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14822 cat >>confdefs.h
<<\_ACEOF
14823 #define HAVE_SYS_FALLOCATE 1
14826 echo "$as_me:$LINENO: result: yes" >&5
14827 echo "${ECHO_T}yes" >&6
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.
$ac_ext >&5
14834 echo "$as_me:$LINENO: result: no" >&5
14835 echo "${ECHO_T}no" >&6
14838 rm -f conftest.err conftest.
$ac_objext \
14839 conftest
$ac_exeext conftest.
$ac_ext
14841 echo "$as_me:$LINENO: checking for posix_fallocate" >&5
14842 echo $ECHO_N "checking for posix_fallocate... $ECHO_C" >&6
14843 cat >conftest.
$ac_ext <<_ACEOF
14847 cat confdefs.h
>>conftest.
$ac_ext
14848 cat >>conftest.
$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14851 #define _XOPEN_SOURCE 600
14852 #include <stdlib.h>
14853 #ifdef HAVE_FCNTL_H
14854 # include <fcntl.h>
14861 posix_fallocate(0, 0, 0);
14868 rm -f conftest.
$ac_objext conftest
$ac_exeext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14870 (eval $ac_link) 2>conftest.er1
14872 grep -v '^ *+' conftest.er1
>conftest.err
14874 cat conftest.err
>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try
='test -z "$ac_c_werror_flag"
14878 || test ! -s conftest.err'
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); }; } &&
14884 { ac_try
='test -s conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14893 cat >>confdefs.h
<<\_ACEOF
14894 #define HAVE_POSIX_FALLOCATE 1
14897 echo "$as_me:$LINENO: result: yes" >&5
14898 echo "${ECHO_T}yes" >&6
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.
$ac_ext >&5
14905 echo "$as_me:$LINENO: result: no" >&5
14906 echo "${ECHO_T}no" >&6
14909 rm -f conftest.err conftest.
$ac_objext \
14910 conftest
$ac_exeext conftest.
$ac_ext
14913 # Checking Native Language Support
14917 if test -n "$ac_aux_dir"; then
14918 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
14920 if test -z "$MKINSTALLDIRS"; then
14921 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
14928 # Extract the first word of "msgfmt", so it can be a program name with args.
14929 set dummy msgfmt
; ac_word
=$2
14930 echo "$as_me:$LINENO: checking for $ac_word" >&5
14931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14932 if test "${ac_cv_path_MSGFMT+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
14940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
14941 for ac_dir
in $PATH; do
14942 test -z "$ac_dir" && ac_dir
=.
14943 if test -f $ac_dir/$ac_word; then
14944 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
14945 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
14946 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
14952 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
14956 MSGFMT
="$ac_cv_path_MSGFMT"
14957 if test "$MSGFMT" != ":"; then
14958 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14959 echo "${ECHO_T}$MSGFMT" >&6
14961 echo "$as_me:$LINENO: result: no" >&5
14962 echo "${ECHO_T}no" >&6
14965 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14966 set dummy gmsgfmt
; ac_word
=$2
14967 echo "$as_me:$LINENO: checking for $ac_word" >&5
14968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14969 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
14977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14978 for as_dir
in $PATH
14981 test -z "$as_dir" && as_dir
=.
14982 for ac_exec_ext
in '' $ac_executable_extensions; do
14983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
14985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14991 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
14995 GMSGFMT
=$ac_cv_path_GMSGFMT
14997 if test -n "$GMSGFMT"; then
14998 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14999 echo "${ECHO_T}$GMSGFMT" >&6
15001 echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6
15006 # Extract the first word of "xgettext", so it can be a program name with args.
15007 set dummy xgettext
; ac_word
=$2
15008 echo "$as_me:$LINENO: checking for $ac_word" >&5
15009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15010 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 case "$XGETTEXT" in
15015 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
15018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15019 for ac_dir
in $PATH; do
15020 test -z "$ac_dir" && ac_dir
=.
15021 if test -f $ac_dir/$ac_word; then
15022 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15023 (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
15024 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
15030 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
15034 XGETTEXT
="$ac_cv_path_XGETTEXT"
15035 if test "$XGETTEXT" != ":"; then
15036 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15037 echo "${ECHO_T}$XGETTEXT" >&6
15039 echo "$as_me:$LINENO: result: no" >&5
15040 echo "${ECHO_T}no" >&6
15045 # Extract the first word of "msgmerge", so it can be a program name with args.
15046 set dummy msgmerge
; ac_word
=$2
15047 echo "$as_me:$LINENO: checking for $ac_word" >&5
15048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15049 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 case "$MSGMERGE" in
15054 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
15057 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
15058 for ac_dir
in $PATH; do
15059 test -z "$ac_dir" && ac_dir
=.
15060 if test -f $ac_dir/$ac_word; then
15061 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
15062 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
15068 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
15072 MSGMERGE
="$ac_cv_path_MSGMERGE"
15073 if test "$MSGMERGE" != ":"; then
15074 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15075 echo "${ECHO_T}$MSGMERGE" >&6
15077 echo "$as_me:$LINENO: result: no" >&5
15078 echo "${ECHO_T}no" >&6
15082 if test "$GMSGFMT" != ":"; then
15083 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
15084 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15087 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15088 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15089 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
15094 if test "$XGETTEXT" != ":"; then
15095 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
15096 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
15099 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15100 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15106 ac_config_commands
="$ac_config_commands default-1"
15109 echo "$as_me:$LINENO: checking for library containing strerror" >&5
15110 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
15111 if test "${ac_cv_search_strerror+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 ac_func_search_save_LIBS
=$LIBS
15115 ac_cv_search_strerror
=no
15116 cat >conftest.
$ac_ext <<_ACEOF
15119 cat confdefs.h
>>conftest.
$ac_ext
15120 cat >>conftest.
$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 /* Override any gcc2 internal prototype to avoid an error. */
15127 /* We use char because int might match the return type of a gcc2
15128 builtin and then its argument prototype would still apply. */
15138 rm -f conftest.
$ac_objext conftest
$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>conftest.er1
15142 grep -v '^ *+' conftest.er1
>conftest.err
15144 cat conftest.err
>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try
='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try
='test -s conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_search_strerror
="none required"
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.
$ac_ext >&5
15166 rm -f conftest.err conftest.
$ac_objext \
15167 conftest
$ac_exeext conftest.
$ac_ext
15168 if test "$ac_cv_search_strerror" = no
; then
15169 for ac_lib
in cposix
; do
15170 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15171 cat >conftest.
$ac_ext <<_ACEOF
15174 cat confdefs.h
>>conftest.
$ac_ext
15175 cat >>conftest.
$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 /* Override any gcc2 internal prototype to avoid an error. */
15182 /* We use char because int might match the return type of a gcc2
15183 builtin and then its argument prototype would still apply. */
15193 rm -f conftest.
$ac_objext conftest
$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1
>conftest.err
15199 cat conftest.err
>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try
='test -z "$ac_c_werror_flag"
15203 || test ! -s conftest.err'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try
='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_search_strerror
="-l$ac_lib"
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.
$ac_ext >&5
15222 rm -f conftest.err conftest.
$ac_objext \
15223 conftest
$ac_exeext conftest.
$ac_ext
15226 LIBS
=$ac_func_search_save_LIBS
15228 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
15229 echo "${ECHO_T}$ac_cv_search_strerror" >&6
15230 if test "$ac_cv_search_strerror" != no
; then
15231 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
15236 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15237 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15238 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.
$ac_ext <<_ACEOF
15244 cat confdefs.h
>>conftest.
$ac_ext
15245 cat >>conftest.
$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15248 #include <features.h>
15249 #ifdef __GNU_LIBRARY__
15250 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15257 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
15258 ac_cv_gnu_library_2_1
=yes
15260 ac_cv_gnu_library_2_1
=no
15267 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15268 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15270 GLIBC21
="$ac_cv_gnu_library_2_1"
15275 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
15276 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
15277 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 if test "$cross_compiling" = yes; then
15283 # Guess based on the CPU.
15284 case "$host_cpu" in
15285 alpha
* | i3456786 | m68k | s390
*)
15286 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
15288 gt_cv_int_divbyzero_sigfpe
="guessing no";;
15292 cat >conftest.
$ac_ext <<_ACEOF
15295 cat confdefs.h
>>conftest.
$ac_ext
15296 cat >>conftest.
$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 #include <stdlib.h>
15300 #include <signal.h>
15304 sigfpe_handler (int sig)
15306 sigfpe_handler (sig) int sig;
15309 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15310 exit (sig != SIGFPE);
15320 signal (SIGFPE, sigfpe_handler);
15321 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
15322 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15323 signal (SIGTRAP, sigfpe_handler);
15325 /* Linux/SPARC yields signal SIGILL. */
15326 #if defined (__sparc__) && defined (__linux__)
15327 signal (SIGILL, sigfpe_handler);
15336 rm -f conftest
$ac_exeext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338 (eval $ac_link) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 gt_cv_int_divbyzero_sigfpe
=yes
15349 echo "$as_me: program exited with status $ac_status" >&5
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.
$ac_ext >&5
15353 ( exit $ac_status )
15354 gt_cv_int_divbyzero_sigfpe
=no
15356 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15360 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
15361 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
15362 case "$gt_cv_int_divbyzero_sigfpe" in
15367 cat >>confdefs.h
<<_ACEOF
15368 #define INTDIV0_RAISES_SIGFPE $value
15373 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15374 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15375 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 cat >conftest.
$ac_ext <<_ACEOF
15381 cat confdefs.h
>>conftest.
$ac_ext
15382 cat >>conftest.
$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 #include <sys/types.h>
15385 #include <inttypes.h>
15389 uintmax_t i = (uintmax_t) -1;
15394 rm -f conftest.
$ac_objext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396 (eval $ac_compile) 2>conftest.er1
15398 grep -v '^ *+' conftest.er1
>conftest.err
15400 cat conftest.err
>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try
='test -z "$ac_c_werror_flag"
15404 || test ! -s conftest.err'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
15416 jm_ac_cv_header_inttypes_h
=yes
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.
$ac_ext >&5
15421 jm_ac_cv_header_inttypes_h
=no
15423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15425 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
15426 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
15427 if test $jm_ac_cv_header_inttypes_h = yes; then
15429 cat >>confdefs.h
<<_ACEOF
15430 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15436 echo "$as_me:$LINENO: checking for stdint.h" >&5
15437 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
15438 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 cat >conftest.
$ac_ext <<_ACEOF
15444 cat confdefs.h
>>conftest.
$ac_ext
15445 cat >>conftest.
$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <sys/types.h>
15448 #include <stdint.h>
15452 uintmax_t i = (uintmax_t) -1;
15457 rm -f conftest.
$ac_objext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 (eval $ac_compile) 2>conftest.er1
15461 grep -v '^ *+' conftest.er1
>conftest.err
15463 cat conftest.err
>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try
='test -z "$ac_c_werror_flag"
15467 || test ! -s conftest.err'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try
='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 jm_ac_cv_header_stdint_h
=yes
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.
$ac_ext >&5
15484 jm_ac_cv_header_stdint_h
=no
15486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15488 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
15489 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
15490 if test $jm_ac_cv_header_stdint_h = yes; then
15492 cat >>confdefs.h
<<_ACEOF
15493 #define HAVE_STDINT_H_WITH_UINTMAX 1
15499 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15500 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15501 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 cat >conftest.
$ac_ext <<_ACEOF
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 unsigned long long ull = 1; int i = 63;
15514 unsigned long long ullmax = (unsigned long long) -1;
15515 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15520 rm -f conftest.
$ac_objext conftest
$ac_exeext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15522 (eval $ac_link) 2>conftest.er1
15524 grep -v '^ *+' conftest.er1
>conftest.err
15526 cat conftest.err
>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try
='test -z "$ac_c_werror_flag"
15530 || test ! -s conftest.err'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; } &&
15536 { ac_try
='test -s conftest$ac_exeext'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; }; then
15542 ac_cv_type_unsigned_long_long
=yes
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.
$ac_ext >&5
15547 ac_cv_type_unsigned_long_long
=no
15549 rm -f conftest.err conftest.
$ac_objext \
15550 conftest
$ac_exeext conftest.
$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
15553 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
15554 if test $ac_cv_type_unsigned_long_long = yes; then
15556 cat >>confdefs.h
<<\_ACEOF
15557 #define HAVE_UNSIGNED_LONG_LONG 1
15565 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
15567 test $ac_cv_type_unsigned_long_long = yes \
15568 && ac_type
='unsigned long long' \
15569 || ac_type
='unsigned long'
15571 cat >>confdefs.h
<<_ACEOF
15572 #define uintmax_t $ac_type
15578 echo "$as_me:$LINENO: checking for inttypes.h" >&5
15579 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
15580 if test "${gt_cv_header_inttypes_h+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 cat >conftest.
$ac_ext <<_ACEOF
15587 cat confdefs.h
>>conftest.
$ac_ext
15588 cat >>conftest.
$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 #include <sys/types.h>
15591 #include <inttypes.h>
15600 rm -f conftest.
$ac_objext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15602 (eval $ac_compile) 2>conftest.er1
15604 grep -v '^ *+' conftest.er1
>conftest.err
15606 cat conftest.err
>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try
='test -z "$ac_c_werror_flag"
15610 || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try
='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 gt_cv_header_inttypes_h
=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.
$ac_ext >&5
15627 gt_cv_header_inttypes_h
=no
15629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15632 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
15633 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
15634 if test $gt_cv_header_inttypes_h = yes; then
15636 cat >>confdefs.h
<<_ACEOF
15637 #define HAVE_INTTYPES_H 1
15644 if test $gt_cv_header_inttypes_h = yes; then
15645 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
15646 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
15647 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 cat >conftest.
$ac_ext <<_ACEOF
15654 cat confdefs.h
>>conftest.
$ac_ext
15655 cat >>conftest.
$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 #include <inttypes.h>
15670 rm -f conftest.
$ac_objext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15672 (eval $ac_compile) 2>conftest.er1
15674 grep -v '^ *+' conftest.er1
>conftest.err
15676 cat conftest.err
>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try
='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try
='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 gt_cv_inttypes_pri_broken
=no
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.
$ac_ext >&5
15697 gt_cv_inttypes_pri_broken
=yes
15699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15702 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
15703 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
15705 if test "$gt_cv_inttypes_pri_broken" = yes; then
15707 cat >>confdefs.h
<<_ACEOF
15708 #define PRI_MACROS_BROKEN 1
15714 if test "X$prefix" = "XNONE"; then
15715 acl_final_prefix
="$ac_default_prefix"
15717 acl_final_prefix
="$prefix"
15719 if test "X$exec_prefix" = "XNONE"; then
15720 acl_final_exec_prefix
='${prefix}'
15722 acl_final_exec_prefix
="$exec_prefix"
15724 acl_save_prefix
="$prefix"
15725 prefix
="$acl_final_prefix"
15726 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
15727 prefix
="$acl_save_prefix"
15730 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15731 if test "${with_gnu_ld+set}" = set; then
15732 withval
="$with_gnu_ld"
15733 test "$withval" = no || with_gnu_ld
=yes
15738 if test "$GCC" = yes; then
15739 # Check if gcc -print-prog-name=ld gives a path.
15740 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15741 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15744 # gcc leaves a trailing carriage return which upsets mingw
15745 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15747 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15750 # Accept absolute paths.
15751 [\\/]* |
[A-Za-z
]:[\\/]*)
15752 re_direlt
='/[^/][^/]*/\.\./'
15753 # Canonicalize the path of ld
15754 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
15755 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
15756 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
15758 test -z "$LD" && LD
="$ac_prog"
15761 # If it fails, then pretend we aren't using GCC.
15765 # If it is relative, then search for the first ld in PATH.
15766 with_gnu_ld
=unknown
15769 elif test "$with_gnu_ld" = yes; then
15770 echo "$as_me:$LINENO: checking for GNU ld" >&5
15771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15773 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15776 if test "${acl_cv_path_LD+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 if test -z "$LD"; then
15780 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15781 for ac_dir
in $PATH; do
15782 test -z "$ac_dir" && ac_dir
=.
15783 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15784 acl_cv_path_LD
="$ac_dir/$ac_prog"
15785 # Check to see if the program is GNU ld. I'd rather use --version,
15786 # but apparently some GNU ld's only accept -v.
15787 # Break only if it was the GNU/non-GNU ld that we prefer.
15788 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
15789 test "$with_gnu_ld" != no
&& break
15791 test "$with_gnu_ld" != yes && break
15797 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
15801 LD
="$acl_cv_path_LD"
15802 if test -n "$LD"; then
15803 echo "$as_me:$LINENO: result: $LD" >&5
15804 echo "${ECHO_T}$LD" >&6
15806 echo "$as_me:$LINENO: result: no" >&5
15807 echo "${ECHO_T}no" >&6
15809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15811 { (exit 1); exit 1; }; }
15812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15814 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15818 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
15819 acl_cv_prog_gnu_ld
=yes
15821 acl_cv_prog_gnu_ld
=no
15824 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15825 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15826 with_gnu_ld
=$acl_cv_prog_gnu_ld
15830 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15831 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15832 if test "${acl_cv_rpath+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
15837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15839 rm -f .
/conftest.sh
15843 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15844 echo "${ECHO_T}$acl_cv_rpath" >&6
15846 libext
="$acl_cv_libext"
15847 shlibext
="$acl_cv_shlibext"
15848 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
15849 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
15850 hardcode_direct
="$acl_cv_hardcode_direct"
15851 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
15852 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
15853 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
15854 # Check whether --enable-rpath or --disable-rpath was given.
15855 if test "${enable_rpath+set}" = set; then
15856 enableval
="$enable_rpath"
15870 acl_save_prefix
="$prefix"
15871 prefix
="$acl_final_prefix"
15872 acl_save_exec_prefix
="$exec_prefix"
15873 exec_prefix
="$acl_final_exec_prefix"
15875 eval additional_includedir
=\"$includedir\"
15876 eval additional_libdir
=\"$libdir\"
15878 exec_prefix
="$acl_save_exec_prefix"
15879 prefix
="$acl_save_prefix"
15882 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15883 if test "${with_libiconv_prefix+set}" = set; then
15884 withval
="$with_libiconv_prefix"
15886 if test "X$withval" = "Xno"; then
15889 if test "X$withval" = "X"; then
15891 acl_save_prefix
="$prefix"
15892 prefix
="$acl_final_prefix"
15893 acl_save_exec_prefix
="$exec_prefix"
15894 exec_prefix
="$acl_final_exec_prefix"
15896 eval additional_includedir
=\"$includedir\"
15897 eval additional_libdir
=\"$libdir\"
15899 exec_prefix
="$acl_save_exec_prefix"
15900 prefix
="$acl_save_prefix"
15903 additional_includedir
="$withval/include"
15904 additional_libdir
="$withval/lib"
15914 names_already_handled
=
15915 names_next_round
='iconv '
15916 while test -n "$names_next_round"; do
15917 names_this_round
="$names_next_round"
15919 for name
in $names_this_round; do
15921 for n
in $names_already_handled; do
15922 if test "$n" = "$name"; then
15923 already_handled
=yes
15927 if test -z "$already_handled"; then
15928 names_already_handled
="$names_already_handled $name"
15929 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15930 eval value
=\"\
$HAVE_LIB$uppername\"
15931 if test -n "$value"; then
15932 if test "$value" = yes; then
15933 eval value
=\"\
$LIB$uppername\"
15934 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
15935 eval value
=\"\
$LTLIB$uppername\"
15936 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
15945 if test $use_additional = yes; then
15946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15947 found_dir
="$additional_libdir"
15948 found_so
="$additional_libdir/lib$name.$shlibext"
15949 if test -f "$additional_libdir/lib$name.la"; then
15950 found_la
="$additional_libdir/lib$name.la"
15953 if test -f "$additional_libdir/lib$name.$libext"; then
15954 found_dir
="$additional_libdir"
15955 found_a
="$additional_libdir/lib$name.$libext"
15956 if test -f "$additional_libdir/lib$name.la"; then
15957 found_la
="$additional_libdir/lib$name.la"
15962 if test "X$found_dir" = "X"; then
15963 for x
in $LDFLAGS $LTLIBICONV; do
15965 acl_save_prefix
="$prefix"
15966 prefix
="$acl_final_prefix"
15967 acl_save_exec_prefix
="$exec_prefix"
15968 exec_prefix
="$acl_final_exec_prefix"
15970 exec_prefix
="$acl_save_exec_prefix"
15971 prefix
="$acl_save_prefix"
15975 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15978 found_so
="$dir/lib$name.$shlibext"
15979 if test -f "$dir/lib$name.la"; then
15980 found_la
="$dir/lib$name.la"
15983 if test -f "$dir/lib$name.$libext"; then
15985 found_a
="$dir/lib$name.$libext"
15986 if test -f "$dir/lib$name.la"; then
15987 found_la
="$dir/lib$name.la"
15993 if test "X$found_dir" != "X"; then
15998 if test "X$found_dir" != "X"; then
15999 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16000 if test "X$found_so" != "X"; then
16001 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16002 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16005 for x
in $ltrpathdirs; do
16006 if test "X$x" = "X$found_dir"; then
16011 if test -z "$haveit"; then
16012 ltrpathdirs
="$ltrpathdirs $found_dir"
16014 if test "$hardcode_direct" = yes; then
16015 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16018 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16020 for x
in $rpathdirs; do
16021 if test "X$x" = "X$found_dir"; then
16026 if test -z "$haveit"; then
16027 rpathdirs
="$rpathdirs $found_dir"
16031 for x
in $LDFLAGS $LIBICONV; do
16033 acl_save_prefix
="$prefix"
16034 prefix
="$acl_final_prefix"
16035 acl_save_exec_prefix
="$exec_prefix"
16036 exec_prefix
="$acl_final_exec_prefix"
16038 exec_prefix
="$acl_save_exec_prefix"
16039 prefix
="$acl_save_prefix"
16041 if test "X$x" = "X-L$found_dir"; then
16046 if test -z "$haveit"; then
16047 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16049 if test "$hardcode_minus_L" != no
; then
16050 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16052 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16058 if test "X$found_a" != "X"; then
16059 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16061 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16064 additional_includedir
=
16065 case "$found_dir" in
16067 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16068 additional_includedir
="$basedir/include"
16071 if test "X$additional_includedir" != "X"; then
16072 if test "X$additional_includedir" != "X/usr/include"; then
16074 if test "X$additional_includedir" = "X/usr/local/include"; then
16075 if test -n "$GCC"; then
16077 linux
*) haveit
=yes;;
16081 if test -z "$haveit"; then
16082 for x
in $CPPFLAGS $INCICONV; do
16084 acl_save_prefix
="$prefix"
16085 prefix
="$acl_final_prefix"
16086 acl_save_exec_prefix
="$exec_prefix"
16087 exec_prefix
="$acl_final_exec_prefix"
16089 exec_prefix
="$acl_save_exec_prefix"
16090 prefix
="$acl_save_prefix"
16092 if test "X$x" = "X-I$additional_includedir"; then
16097 if test -z "$haveit"; then
16098 if test -d "$additional_includedir"; then
16099 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16105 if test -n "$found_la"; then
16106 save_libdir
="$libdir"
16107 case "$found_la" in
16108 */* |
*\\*) .
"$found_la" ;;
16109 *) .
"./$found_la" ;;
16111 libdir
="$save_libdir"
16112 for dep
in $dependency_libs; do
16115 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16116 if test "X$additional_libdir" != "X/usr/lib"; then
16118 if test "X$additional_libdir" = "X/usr/local/lib"; then
16119 if test -n "$GCC"; then
16121 linux
*) haveit
=yes;;
16125 if test -z "$haveit"; then
16127 for x
in $LDFLAGS $LIBICONV; do
16129 acl_save_prefix
="$prefix"
16130 prefix
="$acl_final_prefix"
16131 acl_save_exec_prefix
="$exec_prefix"
16132 exec_prefix
="$acl_final_exec_prefix"
16134 exec_prefix
="$acl_save_exec_prefix"
16135 prefix
="$acl_save_prefix"
16137 if test "X$x" = "X-L$additional_libdir"; then
16142 if test -z "$haveit"; then
16143 if test -d "$additional_libdir"; then
16144 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16148 for x
in $LDFLAGS $LTLIBICONV; do
16150 acl_save_prefix
="$prefix"
16151 prefix
="$acl_final_prefix"
16152 acl_save_exec_prefix
="$exec_prefix"
16153 exec_prefix
="$acl_final_exec_prefix"
16155 exec_prefix
="$acl_save_exec_prefix"
16156 prefix
="$acl_save_prefix"
16158 if test "X$x" = "X-L$additional_libdir"; then
16163 if test -z "$haveit"; then
16164 if test -d "$additional_libdir"; then
16165 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16172 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16173 if test "$enable_rpath" != no
; then
16175 for x
in $rpathdirs; do
16176 if test "X$x" = "X$dir"; then
16181 if test -z "$haveit"; then
16182 rpathdirs
="$rpathdirs $dir"
16185 for x
in $ltrpathdirs; do
16186 if test "X$x" = "X$dir"; then
16191 if test -z "$haveit"; then
16192 ltrpathdirs
="$ltrpathdirs $dir"
16197 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16200 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16203 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16204 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16210 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16211 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16217 if test "X$rpathdirs" != "X"; then
16218 if test -n "$hardcode_libdir_separator"; then
16220 for found_dir
in $rpathdirs; do
16221 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16223 acl_save_libdir
="$libdir"
16225 eval flag
=\"$hardcode_libdir_flag_spec\"
16226 libdir
="$acl_save_libdir"
16227 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16229 for found_dir
in $rpathdirs; do
16230 acl_save_libdir
="$libdir"
16231 libdir
="$found_dir"
16232 eval flag
=\"$hardcode_libdir_flag_spec\"
16233 libdir
="$acl_save_libdir"
16234 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
16238 if test "X$ltrpathdirs" != "X"; then
16239 for found_dir
in $ltrpathdirs; do
16240 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16257 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16258 stdlib.h string.h unistd.h sys
/param.h
16260 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16262 echo "$as_me:$LINENO: checking for $ac_header" >&5
16263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16270 # Is the header compilable?
16271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16273 cat >conftest.
$ac_ext <<_ACEOF
16276 cat confdefs.h
>>conftest.
$ac_ext
16277 cat >>conftest.
$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 $ac_includes_default
16280 #include <$ac_header>
16282 rm -f conftest.
$ac_objext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16284 (eval $ac_compile) 2>conftest.er1
16286 grep -v '^ *+' conftest.er1
>conftest.err
16288 cat conftest.err
>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try
='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try
='test -s conftest.$ac_objext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_header_compiler
=yes
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.
$ac_ext >&5
16309 ac_header_compiler
=no
16311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16313 echo "${ECHO_T}$ac_header_compiler" >&6
16315 # Is the header present?
16316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16318 cat >conftest.
$ac_ext <<_ACEOF
16321 cat confdefs.h
>>conftest.
$ac_ext
16322 cat >>conftest.
$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 #include <$ac_header>
16326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16327 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16329 grep -v '^ *+' conftest.er1
>conftest.err
16331 cat conftest.err
>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } >/dev
/null
; then
16334 if test -s conftest.err
; then
16335 ac_cpp_err
=$ac_c_preproc_warn_flag
16336 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16343 if test -z "$ac_cpp_err"; then
16344 ac_header_preproc
=yes
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.
$ac_ext >&5
16349 ac_header_preproc
=no
16351 rm -f conftest.err conftest.
$ac_ext
16352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16353 echo "${ECHO_T}$ac_header_preproc" >&6
16355 # So? What about this header?
16356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16362 ac_header_preproc
=yes
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16379 ## ------------------------------ ##
16380 ## Report this to admin@amule.org ##
16381 ## ------------------------------ ##
16384 sed "s/^/$as_me: WARNING: /" >&2
16387 echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 eval "$as_ac_Header=\$ac_header_preproc"
16394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16399 cat >>confdefs.h
<<_ACEOF
16400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16428 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
16429 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
16430 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16432 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16433 echo "$as_me:$LINENO: checking for $ac_func" >&5
16434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16435 if eval "test \"\${$as_ac_var+set}\" = set"; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 cat >conftest.
$ac_ext <<_ACEOF
16441 cat confdefs.h
>>conftest.
$ac_ext
16442 cat >>conftest.
$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16446 #define $ac_func innocuous_$ac_func
16448 /* System header to define __stub macros and hopefully few prototypes,
16449 which can conflict with char $ac_func (); below.
16450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16451 <limits.h> exists even on freestanding compilers. */
16454 # include <limits.h>
16456 # include <assert.h>
16461 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16475 char (*f) () = $ac_func;
16484 return f != $ac_func;
16489 rm -f conftest.
$ac_objext conftest
$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491 (eval $ac_link) 2>conftest.er1
16493 grep -v '^ *+' conftest.er1
>conftest.err
16495 cat conftest.err
>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try
='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try
='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 eval "$as_ac_var=yes"
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.
$ac_ext >&5
16516 eval "$as_ac_var=no"
16518 rm -f conftest.err conftest.
$ac_objext \
16519 conftest
$ac_exeext conftest.
$ac_ext
16521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16523 if test `eval echo '${'$as_ac_var'}'` = yes; then
16524 cat >>confdefs.h
<<_ACEOF
16525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16537 am_save_CPPFLAGS
="$CPPFLAGS"
16539 for element
in $INCICONV; do
16541 for x
in $CPPFLAGS; do
16543 acl_save_prefix
="$prefix"
16544 prefix
="$acl_final_prefix"
16545 acl_save_exec_prefix
="$exec_prefix"
16546 exec_prefix
="$acl_final_exec_prefix"
16548 exec_prefix
="$acl_save_exec_prefix"
16549 prefix
="$acl_save_prefix"
16551 if test "X$x" = "X$element"; then
16556 if test -z "$haveit"; then
16557 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16562 echo "$as_me:$LINENO: checking for iconv" >&5
16563 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16564 if test "${am_cv_func_iconv+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 am_cv_func_iconv
="no, consider installing GNU libiconv"
16570 cat >conftest.
$ac_ext <<_ACEOF
16573 cat confdefs.h
>>conftest.
$ac_ext
16574 cat >>conftest.
$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <stdlib.h>
16581 iconv_t cd = iconv_open("","");
16582 iconv(cd,NULL,NULL,NULL,NULL);
16588 rm -f conftest.
$ac_objext conftest
$ac_exeext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16590 (eval $ac_link) 2>conftest.er1
16592 grep -v '^ *+' conftest.er1
>conftest.err
16594 cat conftest.err
>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try
='test -z "$ac_c_werror_flag"
16598 || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try
='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 am_cv_func_iconv
=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.
$ac_ext >&5
16616 rm -f conftest.err conftest.
$ac_objext \
16617 conftest
$ac_exeext conftest.
$ac_ext
16618 if test "$am_cv_func_iconv" != yes; then
16619 am_save_LIBS
="$LIBS"
16620 LIBS
="$LIBS $LIBICONV"
16621 cat >conftest.
$ac_ext <<_ACEOF
16624 cat confdefs.h
>>conftest.
$ac_ext
16625 cat >>conftest.
$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 #include <stdlib.h>
16632 iconv_t cd = iconv_open("","");
16633 iconv(cd,NULL,NULL,NULL,NULL);
16639 rm -f conftest.
$ac_objext conftest
$ac_exeext
16640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16641 (eval $ac_link) 2>conftest.er1
16643 grep -v '^ *+' conftest.er1
>conftest.err
16645 cat conftest.err
>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try
='test -z "$ac_c_werror_flag"
16649 || test ! -s conftest.err'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try
='test -s conftest$ac_exeext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 am_cv_lib_iconv
=yes
16662 am_cv_func_iconv
=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.
$ac_ext >&5
16668 rm -f conftest.err conftest.
$ac_objext \
16669 conftest
$ac_exeext conftest.
$ac_ext
16670 LIBS
="$am_save_LIBS"
16674 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16675 echo "${ECHO_T}$am_cv_func_iconv" >&6
16676 if test "$am_cv_func_iconv" = yes; then
16678 cat >>confdefs.h
<<\_ACEOF
16679 #define HAVE_ICONV 1
16683 if test "$am_cv_lib_iconv" = yes; then
16684 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16685 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16686 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16687 echo "${ECHO_T}$LIBICONV" >&6
16689 CPPFLAGS
="$am_save_CPPFLAGS"
16696 if test "$am_cv_func_iconv" = yes; then
16697 echo "$as_me:$LINENO: checking for iconv declaration" >&5
16698 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16699 if test "${am_cv_proto_iconv+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 cat >conftest.
$ac_ext <<_ACEOF
16706 cat confdefs.h
>>conftest.
$ac_ext
16707 cat >>conftest.
$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16710 #include <stdlib.h>
16716 #if defined(__STDC__) || defined(__cplusplus)
16717 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16730 rm -f conftest.
$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>conftest.er1
16734 grep -v '^ *+' conftest.er1
>conftest.err
16736 cat conftest.err
>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try
='test -z "$ac_c_werror_flag"
16740 || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try
='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 am_cv_proto_iconv_arg1
=""
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.
$ac_ext >&5
16757 am_cv_proto_iconv_arg1
="const"
16759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16760 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);"
16763 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16764 echo "$as_me:$LINENO: result: ${ac_t:-
16765 }$am_cv_proto_iconv" >&5
16766 echo "${ECHO_T}${ac_t:-
16767 }$am_cv_proto_iconv" >&6
16769 cat >>confdefs.h
<<_ACEOF
16770 #define ICONV_CONST $am_cv_proto_iconv_arg1
16776 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16777 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16778 if test "${am_cv_langinfo_codeset+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 cat >conftest.
$ac_ext <<_ACEOF
16784 cat confdefs.h
>>conftest.
$ac_ext
16785 cat >>conftest.
$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <langinfo.h>
16791 char* cs = nl_langinfo(CODESET);
16796 rm -f conftest.
$ac_objext conftest
$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>conftest.er1
16800 grep -v '^ *+' conftest.er1
>conftest.err
16802 cat conftest.err
>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try
='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try
='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 am_cv_langinfo_codeset
=yes
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.
$ac_ext >&5
16823 am_cv_langinfo_codeset
=no
16825 rm -f conftest.err conftest.
$ac_objext \
16826 conftest
$ac_exeext conftest.
$ac_ext
16829 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16830 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
16831 if test $am_cv_langinfo_codeset = yes; then
16833 cat >>confdefs.h
<<\_ACEOF
16834 #define HAVE_LANGINFO_CODESET 1
16839 if test $ac_cv_header_locale_h = yes; then
16841 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
16842 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16843 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 cat >conftest.
$ac_ext <<_ACEOF
16849 cat confdefs.h
>>conftest.
$ac_ext
16850 cat >>conftest.
$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 #include <locale.h>
16861 rm -f conftest.
$ac_objext conftest
$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>conftest.er1
16865 grep -v '^ *+' conftest.er1
>conftest.err
16867 cat conftest.err
>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try
='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try
='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 am_cv_val_LC_MESSAGES
=yes
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.
$ac_ext >&5
16888 am_cv_val_LC_MESSAGES
=no
16890 rm -f conftest.err conftest.
$ac_objext \
16891 conftest
$ac_exeext conftest.
$ac_ext
16893 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
16894 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16895 if test $am_cv_val_LC_MESSAGES = yes; then
16897 cat >>confdefs.h
<<\_ACEOF
16898 #define HAVE_LC_MESSAGES 1
16905 for ac_prog
in bison
16907 # Extract the first word of "$ac_prog", so it can be a program name with args.
16908 set dummy
$ac_prog; ac_word
=$2
16909 echo "$as_me:$LINENO: checking for $ac_word" >&5
16910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16911 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 if test -n "$INTLBISON"; then
16915 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
16917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16918 for as_dir
in $PATH
16921 test -z "$as_dir" && as_dir
=.
16922 for ac_exec_ext
in '' $ac_executable_extensions; do
16923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16924 ac_cv_prog_INTLBISON
="$ac_prog"
16925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16933 INTLBISON
=$ac_cv_prog_INTLBISON
16934 if test -n "$INTLBISON"; then
16935 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16936 echo "${ECHO_T}$INTLBISON" >&6
16938 echo "$as_me:$LINENO: result: no" >&5
16939 echo "${ECHO_T}no" >&6
16942 test -n "$INTLBISON" && break
16945 if test -z "$INTLBISON"; then
16948 echo "$as_me:$LINENO: checking version of bison" >&5
16949 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16950 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16951 case $ac_prog_version in
16952 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
16953 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
16954 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
16955 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
16957 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16958 echo "${ECHO_T}$ac_prog_version" >&6
16960 if test $ac_verc_fail = yes; then
16966 # Check whether --with-language or --without-language was given.
16967 if test "${with_language+set}" = set; then
16968 withval
="$with_language"
16969 if test "$withval" = "all"; then
16972 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
16991 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16992 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16993 # Check whether --enable-nls or --disable-nls was given.
16994 if test "${enable_nls+set}" = set; then
16995 enableval
="$enable_nls"
17000 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17001 echo "${ECHO_T}$USE_NLS" >&6
17005 BUILD_INCLUDED_LIBINTL
=no
17006 USE_INCLUDED_LIBINTL
=no
17012 if test "$USE_NLS" = "yes"; then
17013 gt_use_preinstalled_gnugettext
=no
17015 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
17016 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17018 # Check whether --with-included-gettext or --without-included-gettext was given.
17019 if test "${with_included_gettext+set}" = set; then
17020 withval
="$with_included_gettext"
17021 nls_cv_force_use_gnu_gettext
=$withval
17023 nls_cv_force_use_gnu_gettext
=no
17025 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
17026 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17028 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
17029 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17036 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17037 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17038 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.
$ac_ext <<_ACEOF
17044 cat confdefs.h
>>conftest.
$ac_ext
17045 cat >>conftest.
$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <libintl.h>
17048 extern int _nl_msg_cat_cntr;
17049 extern int *_nl_domain_bindings;
17053 bindtextdomain ("", "");
17054 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
17059 rm -f conftest.
$ac_objext conftest
$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>conftest.er1
17063 grep -v '^ *+' conftest.er1
>conftest.err
17065 cat conftest.err
>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try
='test -z "$ac_c_werror_flag"
17069 || test ! -s conftest.err'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } &&
17075 { ac_try
='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 gt_cv_func_gnugettext2_libc
=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.
$ac_ext >&5
17086 gt_cv_func_gnugettext2_libc
=no
17088 rm -f conftest.err conftest.
$ac_objext \
17089 conftest
$ac_exeext conftest.
$ac_ext
17091 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
17092 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
17094 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
17100 acl_save_prefix
="$prefix"
17101 prefix
="$acl_final_prefix"
17102 acl_save_exec_prefix
="$exec_prefix"
17103 exec_prefix
="$acl_final_exec_prefix"
17105 eval additional_includedir
=\"$includedir\"
17106 eval additional_libdir
=\"$libdir\"
17108 exec_prefix
="$acl_save_exec_prefix"
17109 prefix
="$acl_save_prefix"
17112 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17113 if test "${with_libintl_prefix+set}" = set; then
17114 withval
="$with_libintl_prefix"
17116 if test "X$withval" = "Xno"; then
17119 if test "X$withval" = "X"; then
17121 acl_save_prefix
="$prefix"
17122 prefix
="$acl_final_prefix"
17123 acl_save_exec_prefix
="$exec_prefix"
17124 exec_prefix
="$acl_final_exec_prefix"
17126 eval additional_includedir
=\"$includedir\"
17127 eval additional_libdir
=\"$libdir\"
17129 exec_prefix
="$acl_save_exec_prefix"
17130 prefix
="$acl_save_prefix"
17133 additional_includedir
="$withval/include"
17134 additional_libdir
="$withval/lib"
17144 names_already_handled
=
17145 names_next_round
='intl '
17146 while test -n "$names_next_round"; do
17147 names_this_round
="$names_next_round"
17149 for name
in $names_this_round; do
17151 for n
in $names_already_handled; do
17152 if test "$n" = "$name"; then
17153 already_handled
=yes
17157 if test -z "$already_handled"; then
17158 names_already_handled
="$names_already_handled $name"
17159 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17160 eval value
=\"\
$HAVE_LIB$uppername\"
17161 if test -n "$value"; then
17162 if test "$value" = yes; then
17163 eval value
=\"\
$LIB$uppername\"
17164 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17165 eval value
=\"\
$LTLIB$uppername\"
17166 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17175 if test $use_additional = yes; then
17176 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17177 found_dir
="$additional_libdir"
17178 found_so
="$additional_libdir/lib$name.$shlibext"
17179 if test -f "$additional_libdir/lib$name.la"; then
17180 found_la
="$additional_libdir/lib$name.la"
17183 if test -f "$additional_libdir/lib$name.$libext"; then
17184 found_dir
="$additional_libdir"
17185 found_a
="$additional_libdir/lib$name.$libext"
17186 if test -f "$additional_libdir/lib$name.la"; then
17187 found_la
="$additional_libdir/lib$name.la"
17192 if test "X$found_dir" = "X"; then
17193 for x
in $LDFLAGS $LTLIBINTL; do
17195 acl_save_prefix
="$prefix"
17196 prefix
="$acl_final_prefix"
17197 acl_save_exec_prefix
="$exec_prefix"
17198 exec_prefix
="$acl_final_exec_prefix"
17200 exec_prefix
="$acl_save_exec_prefix"
17201 prefix
="$acl_save_prefix"
17205 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17206 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17208 found_so
="$dir/lib$name.$shlibext"
17209 if test -f "$dir/lib$name.la"; then
17210 found_la
="$dir/lib$name.la"
17213 if test -f "$dir/lib$name.$libext"; then
17215 found_a
="$dir/lib$name.$libext"
17216 if test -f "$dir/lib$name.la"; then
17217 found_la
="$dir/lib$name.la"
17223 if test "X$found_dir" != "X"; then
17228 if test "X$found_dir" != "X"; then
17229 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17230 if test "X$found_so" != "X"; then
17231 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17232 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17235 for x
in $ltrpathdirs; do
17236 if test "X$x" = "X$found_dir"; then
17241 if test -z "$haveit"; then
17242 ltrpathdirs
="$ltrpathdirs $found_dir"
17244 if test "$hardcode_direct" = yes; then
17245 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17247 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17248 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17250 for x
in $rpathdirs; do
17251 if test "X$x" = "X$found_dir"; then
17256 if test -z "$haveit"; then
17257 rpathdirs
="$rpathdirs $found_dir"
17261 for x
in $LDFLAGS $LIBINTL; do
17263 acl_save_prefix
="$prefix"
17264 prefix
="$acl_final_prefix"
17265 acl_save_exec_prefix
="$exec_prefix"
17266 exec_prefix
="$acl_final_exec_prefix"
17268 exec_prefix
="$acl_save_exec_prefix"
17269 prefix
="$acl_save_prefix"
17271 if test "X$x" = "X-L$found_dir"; then
17276 if test -z "$haveit"; then
17277 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17279 if test "$hardcode_minus_L" != no
; then
17280 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17282 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17288 if test "X$found_a" != "X"; then
17289 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17291 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17294 additional_includedir
=
17295 case "$found_dir" in
17297 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17298 additional_includedir
="$basedir/include"
17301 if test "X$additional_includedir" != "X"; then
17302 if test "X$additional_includedir" != "X/usr/include"; then
17304 if test "X$additional_includedir" = "X/usr/local/include"; then
17305 if test -n "$GCC"; then
17307 linux
*) haveit
=yes;;
17311 if test -z "$haveit"; then
17312 for x
in $CPPFLAGS $INCINTL; do
17314 acl_save_prefix
="$prefix"
17315 prefix
="$acl_final_prefix"
17316 acl_save_exec_prefix
="$exec_prefix"
17317 exec_prefix
="$acl_final_exec_prefix"
17319 exec_prefix
="$acl_save_exec_prefix"
17320 prefix
="$acl_save_prefix"
17322 if test "X$x" = "X-I$additional_includedir"; then
17327 if test -z "$haveit"; then
17328 if test -d "$additional_includedir"; then
17329 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17335 if test -n "$found_la"; then
17336 save_libdir
="$libdir"
17337 case "$found_la" in
17338 */* |
*\\*) .
"$found_la" ;;
17339 *) .
"./$found_la" ;;
17341 libdir
="$save_libdir"
17342 for dep
in $dependency_libs; do
17345 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17346 if test "X$additional_libdir" != "X/usr/lib"; then
17348 if test "X$additional_libdir" = "X/usr/local/lib"; then
17349 if test -n "$GCC"; then
17351 linux
*) haveit
=yes;;
17355 if test -z "$haveit"; then
17357 for x
in $LDFLAGS $LIBINTL; do
17359 acl_save_prefix
="$prefix"
17360 prefix
="$acl_final_prefix"
17361 acl_save_exec_prefix
="$exec_prefix"
17362 exec_prefix
="$acl_final_exec_prefix"
17364 exec_prefix
="$acl_save_exec_prefix"
17365 prefix
="$acl_save_prefix"
17367 if test "X$x" = "X-L$additional_libdir"; then
17372 if test -z "$haveit"; then
17373 if test -d "$additional_libdir"; then
17374 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17378 for x
in $LDFLAGS $LTLIBINTL; do
17380 acl_save_prefix
="$prefix"
17381 prefix
="$acl_final_prefix"
17382 acl_save_exec_prefix
="$exec_prefix"
17383 exec_prefix
="$acl_final_exec_prefix"
17385 exec_prefix
="$acl_save_exec_prefix"
17386 prefix
="$acl_save_prefix"
17388 if test "X$x" = "X-L$additional_libdir"; then
17393 if test -z "$haveit"; then
17394 if test -d "$additional_libdir"; then
17395 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17402 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17403 if test "$enable_rpath" != no
; then
17405 for x
in $rpathdirs; do
17406 if test "X$x" = "X$dir"; then
17411 if test -z "$haveit"; then
17412 rpathdirs
="$rpathdirs $dir"
17415 for x
in $ltrpathdirs; do
17416 if test "X$x" = "X$dir"; then
17421 if test -z "$haveit"; then
17422 ltrpathdirs
="$ltrpathdirs $dir"
17427 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17430 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17433 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17434 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17440 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17441 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17447 if test "X$rpathdirs" != "X"; then
17448 if test -n "$hardcode_libdir_separator"; then
17450 for found_dir
in $rpathdirs; do
17451 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17453 acl_save_libdir
="$libdir"
17455 eval flag
=\"$hardcode_libdir_flag_spec\"
17456 libdir
="$acl_save_libdir"
17457 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17459 for found_dir
in $rpathdirs; do
17460 acl_save_libdir
="$libdir"
17461 libdir
="$found_dir"
17462 eval flag
=\"$hardcode_libdir_flag_spec\"
17463 libdir
="$acl_save_libdir"
17464 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17468 if test "X$ltrpathdirs" != "X"; then
17469 for found_dir
in $ltrpathdirs; do
17470 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17474 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17475 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17476 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 gt_save_CPPFLAGS
="$CPPFLAGS"
17480 CPPFLAGS
="$CPPFLAGS $INCINTL"
17481 gt_save_LIBS
="$LIBS"
17482 LIBS
="$LIBS $LIBINTL"
17483 cat >conftest.
$ac_ext <<_ACEOF
17486 cat confdefs.h
>>conftest.
$ac_ext
17487 cat >>conftest.
$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17489 #include <libintl.h>
17490 extern int _nl_msg_cat_cntr;
17495 const char *_nl_expand_alias ();
17499 bindtextdomain ("", "");
17500 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17505 rm -f conftest.
$ac_objext conftest
$ac_exeext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507 (eval $ac_link) 2>conftest.er1
17509 grep -v '^ *+' conftest.er1
>conftest.err
17511 cat conftest.err
>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try
='test -z "$ac_c_werror_flag"
17515 || test ! -s conftest.err'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try
='test -s conftest$ac_exeext'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17527 gt_cv_func_gnugettext2_libintl
=yes
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.
$ac_ext >&5
17532 gt_cv_func_gnugettext2_libintl
=no
17534 rm -f conftest.err conftest.
$ac_objext \
17535 conftest
$ac_exeext conftest.
$ac_ext
17536 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
17537 LIBS
="$LIBS $LIBICONV"
17538 cat >conftest.
$ac_ext <<_ACEOF
17541 cat confdefs.h
>>conftest.
$ac_ext
17542 cat >>conftest.
$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 #include <libintl.h>
17545 extern int _nl_msg_cat_cntr;
17550 const char *_nl_expand_alias ();
17554 bindtextdomain ("", "");
17555 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17560 rm -f conftest.
$ac_objext conftest
$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
17564 grep -v '^ *+' conftest.er1
>conftest.err
17566 cat conftest.err
>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try
='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try
='test -s conftest$ac_exeext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 LIBINTL
="$LIBINTL $LIBICONV"
17583 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17584 gt_cv_func_gnugettext2_libintl
=yes
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.
$ac_ext >&5
17591 rm -f conftest.err conftest.
$ac_objext \
17592 conftest
$ac_exeext conftest.
$ac_ext
17594 CPPFLAGS
="$gt_save_CPPFLAGS"
17595 LIBS
="$gt_save_LIBS"
17597 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
17598 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
17601 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
17602 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
17603 && test "$PACKAGE" != gettext; }; then
17604 gt_use_preinstalled_gnugettext
=yes
17612 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
17613 nls_cv_use_gnu_gettext
=yes
17617 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17618 INTLOBJS
="\$(GETTOBJS)"
17619 BUILD_INCLUDED_LIBINTL
=yes
17620 USE_INCLUDED_LIBINTL
=yes
17621 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
17622 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
17623 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17626 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17627 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17633 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17635 cat >>confdefs.h
<<\_ACEOF
17636 #define ENABLE_NLS 1
17644 if test "$USE_NLS" = "yes"; then
17646 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17647 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
17648 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17649 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17650 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17651 echo "${ECHO_T}$LIBINTL" >&6
17653 for element
in $INCINTL; do
17655 for x
in $CPPFLAGS; do
17657 acl_save_prefix
="$prefix"
17658 prefix
="$acl_final_prefix"
17659 acl_save_exec_prefix
="$exec_prefix"
17660 exec_prefix
="$acl_final_exec_prefix"
17662 exec_prefix
="$acl_save_exec_prefix"
17663 prefix
="$acl_save_prefix"
17665 if test "X$x" = "X$element"; then
17670 if test -z "$haveit"; then
17671 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17678 cat >>confdefs.h
<<\_ACEOF
17679 #define HAVE_GETTEXT 1
17683 cat >>confdefs.h
<<\_ACEOF
17684 #define HAVE_DCGETTEXT 1
17693 if test "$PACKAGE" = gettext; then
17694 BUILD_INCLUDED_LIBINTL
=yes
17702 nls_cv_header_intl
=
17703 nls_cv_header_libgt
=
17714 INTL_LIBTOOL_SUFFIX_PREFIX
=
17718 INTLLIBS
="$LIBINTL"
17725 if test $USE_INCLUDED_LIBINTL = yes; then
17726 INCINTL
=-I\
${top_builddir}/intl
17730 if test x
$USE_NLS = xyes
; then
17732 echo "$as_me:$LINENO: checking for autopoint" >&5
17733 echo $ECHO_N "checking for autopoint... $ECHO_C" >&6
17734 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
17735 if test -n "$autopoint_version"; then
17737 echo "$as_me:$LINENO: result: yes ($autopoint_version)" >&5
17738 echo "${ECHO_T}yes ($autopoint_version)" >&6
17743 echo "$as_me:$LINENO: result: no" >&5
17744 echo "${ECHO_T}no" >&6
17752 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then
17753 { echo "$as_me:$LINENO: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&5
17754 echo "$as_me: WARNING: You need to install GNU gettext/gettext-tools to compile aMule with i18n support." >&2;}
17758 if test ${USE_NLS:-no} = yes; then
17760 echo "$as_me:$LINENO: checking for requested languages" >&5
17761 echo $ECHO_N "checking for requested languages... $ECHO_C" >&6
17762 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
17764 if test "$AMULE_DAEMON" == "yes"; then
17766 if test -z "$LINGUAS"; then
17767 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
17770 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17771 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
17775 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
17778 AMULE_DAEMON_MANPAGES
=
17784 if test "$AMULECMD" == "yes"; then
17786 if test -z "$LINGUAS"; then
17787 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
17790 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17791 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
17795 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
17804 if test "$WEB" == "yes"; then
17806 if test -z "$LINGUAS"; then
17807 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
17810 WEB_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17811 WEB_MANPAGES
="`basename docs/man/amuleweb.1` $WEB_MANPAGES"
17815 WEB_MANPAGES
=`echo $WEB_MANPAGES | tr -d '\n'`
17824 if test "$AMULE_GUI" == "yes"; then
17826 if test -z "$LINGUAS"; then
17827 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
17830 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17831 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
17835 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
17838 AMULE_GUI_MANPAGES
=
17844 if test "$CAS" == "yes"; then
17846 if test -z "$LINGUAS"; then
17847 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
17850 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17851 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
17855 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
17864 if test "$WXCAS" == "yes"; then
17866 if test -z "$LINGUAS"; then
17867 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
17870 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17871 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
17875 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
17884 if test "$ED2K" == "yes"; then
17886 if test -z "$LINGUAS"; then
17887 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
17890 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17891 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
17895 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
17904 if test "$ALC" == "yes"; then
17906 if test -z "$LINGUAS"; then
17907 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
17910 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17911 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
17915 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
17924 if test "$ALCC" == "yes"; then
17926 if test -z "$LINGUAS"; then
17927 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
17930 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17931 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
17935 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
17944 if test "$MONOLITHIC" == "yes"; then
17946 if test -z "$LINGUAS"; then
17947 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
17950 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs `
17951 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
17955 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
17958 MONOLITHIC_MANPAGES
=
17963 echo "$as_me:$LINENO: result: ${LINGUAS:-all}" >&5
17964 echo "${ECHO_T}${LINGUAS:-all}" >&6
17971 # Flush standard test results for speeding cache
17972 cat >confcache
<<\_ACEOF
17973 # This file is a shell script that caches the results of configure
17974 # tests run on this system so they can be shared between configure
17975 # scripts and configure runs, see configure's option --config-cache.
17976 # It is not useful on other systems. If it contains results you don't
17977 # want to keep, you may remove or edit it.
17979 # config.status only pays attention to the cache file if you give it
17980 # the --recheck option to rerun configure.
17982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17984 # following values.
17988 # The following way of writing the cache mishandles newlines in values,
17989 # but we know of no workaround that is simple, portable, and efficient.
17990 # So, don't put newlines in cache variables' values.
17991 # Ultrix sh set writes to stderr and can't be redirected directly,
17992 # and sets the high bit in the cache file unless we assign to the vars.
17995 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17997 # `set' does not quote correctly, so add quotes (double-quote
17998 # substitution turns \\\\ into \\, and sed turns \\ into \).
18001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18004 # `set' quotes correctly as required by POSIX, so do not add quotes.
18006 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18015 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18017 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18018 if test -w $cache_file; then
18019 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18020 cat confcache
>$cache_file
18022 echo "not updating unwritable cache $cache_file"
18031 # Check whether --enable-debug or --disable-debug was given.
18032 if test "${enable_debug+set}" = set; then
18033 enableval
="$enable_debug"
18034 USE_DEBUG
=${enableval:-yes}
18039 if test $USE_DEBUG = yes; then
18041 MULECPPFLAGS
="$MULECPPFLAGS -D__DEBUG__"
18043 MULECFLAGS
="$MULECFLAGS -g"
18044 MULECXXFLAGS
="$MULECXXFLAGS -g"
18046 if test ${GLIBCXX:-no} = yes; then
18047 MULECPPFLAGS
="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
18050 if test ${GCC:-no} = yes; then
18052 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18053 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
18057 if test ${SYS:-unknown} = win32
; then
18058 MULERCFLAGS
="$MULERCFLAGS -D__DEBUG__"
18064 if test ${GCC:-no} = yes; then
18066 MULECFLAGS
="$MULECFLAGS -W -Wall -Wshadow -Wundef"
18067 MULECXXFLAGS
="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
18076 # Check whether --enable-optimize or --disable-optimize was given.
18077 if test "${enable_optimize+set}" = set; then
18078 enableval
="$enable_optimize"
18079 USE_OPTIMIZE
=${enableval:-no}
18084 if test $USE_OPTIMIZE = yes; then
18086 MULECFLAGS
="$MULECFLAGS -O2"
18087 MULECXXFLAGS
="$MULECXXFLAGS -O2"
18093 # Check whether --enable-profile or --disable-profile was given.
18094 if test "${enable_profile+set}" = set; then
18095 enableval
="$enable_profile"
18096 USE_PROFILE
=${enableval:-no}
18101 if test $USE_PROFILE = yes; then
18104 MULECFLAGS
="$MULECFLAGS -pg"
18105 MULECXXFLAGS
="$MULECXXFLAGS -pg"
18107 MULELDFLAGS
="$MULELDFLAGS -pg"
18113 echo "$as_me:$LINENO: checking if the applications should be statically linked" >&5
18114 echo $ECHO_N "checking if the applications should be statically linked... $ECHO_C" >&6
18115 # Check whether --enable-static or --disable-static was given.
18116 if test "${enable_static+set}" = set; then
18117 enableval
="$enable_static"
18118 if test ${enableval:-no} = yes; then
18119 MULELDFLAGS
="$MULELDFLAGS -static"
18123 echo "$as_me:$LINENO: result: ${enableval:-no}" >&5
18124 echo "${ECHO_T}${enableval:-no}" >&6
18126 MULECPPFLAGS
="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
18129 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
18130 echo "$as_me:$LINENO: checking for docdir" >&5
18131 echo $ECHO_N "checking for docdir... $ECHO_C" >&6
18132 if test -z "$docdir"; then
18133 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
18136 echo "$as_me:$LINENO: result: $docdir" >&5
18137 echo "${ECHO_T}$docdir" >&6
18139 # Try to set the SVN checkout-date
18140 echo "$as_me:$LINENO: checking for SVNDATE" >&5
18141 echo $ECHO_N "checking for SVNDATE... $ECHO_C" >&6
18142 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
18144 svndate
=`cat $srcdir/SVNDATE`
18145 elif test -d $srcdir/.svn
# SVNDATE for svn
18147 svndate
="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
18149 echo "$as_me:$LINENO: result: ${svndate:-None required}" >&5
18150 echo "${ECHO_T}${svndate:-None required}" >&6
18151 if test -n "$svndate"; then
18154 cat >>confdefs.h
<<_ACEOF
18155 #define SVNDATE "$svndate"
18158 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
18166 # Check whether --with-denoise-level or --without-denoise-level was given.
18167 if test "${with_denoise_level+set}" = set; then
18168 withval
="$with_denoise_level"
18172 echo "$as_me:$LINENO: checking denoising level" >&5
18173 echo $ECHO_N "checking denoising level... $ECHO_C" >&6
18174 if test ${with_denoise_level:-5} = yes; then
18175 with_denoise_level
=5
18178 if test ${with_denoise_level:-5} = no
; then
18179 with_denoise_level
=0
18182 if test ${with_denoise_level:-5} -gt 4; then
18183 if test "${svndate:+set}" = "set"; then
18184 with_denoise_level
=0
18186 with_denoise_level
=4
18191 echo "$as_me:$LINENO: result: $with_denoise_level" >&5
18192 echo "${ECHO_T}$with_denoise_level" >&6
18194 ac_config_commands
="$ac_config_commands denoiser"
18200 if test x
$WEB = xyes
; then
18210 if test x
$ED2K = xyes
; then
18220 if test x
$CAS = xyes
; then
18230 if test x
$WXCAS = xyes
; then
18240 if test x
$ALC = xyes
; then
18250 if test x
$ALCC = xyes
; then
18260 if test x
$AMULE_GUI = xyes
; then
18262 AMULE_GUI_FALSE
='#'
18270 if test x
$AMULE_DAEMON = xyes
; then
18272 AMULE_DAEMON_FALSE
='#'
18274 AMULE_DAEMON_TRUE
='#'
18275 AMULE_DAEMON_FALSE
=
18280 if test x
$AMULECMD = xyes
; then
18282 COMPILE_CMD_FALSE
='#'
18284 COMPILE_CMD_TRUE
='#'
18290 if test x
$MONOLITHIC = xyes
; then
18292 MONOLITHIC_FALSE
='#'
18294 MONOLITHIC_TRUE
='#'
18300 if test x
$ENABLE_UPNP = xyes
-a x
$SYS != xwin32
; then
18302 ENABLE_UPNP_FALSE
='#'
18304 ENABLE_UPNP_TRUE
='#'
18310 if test x
$ENABLE_IP2COUNTRY = xyes
; then
18311 ENABLE_IP2COUNTRY_TRUE
=
18312 ENABLE_IP2COUNTRY_FALSE
='#'
18314 ENABLE_IP2COUNTRY_TRUE
='#'
18315 ENABLE_IP2COUNTRY_FALSE
=
18320 if test x
$SYS = xwin32
; then
18322 SYS_WIN32_FALSE
='#'
18330 if test x
$SYS = xwin32
-a "$RC" != ":"; then
18340 if test x
$SYS = xdarwin
; then
18341 NEED_CORESERVICES_TRUE
=
18342 NEED_CORESERVICES_FALSE
='#'
18344 NEED_CORESERVICES_TRUE
='#'
18345 NEED_CORESERVICES_FALSE
=
18350 if test x
$USE_NLS = xyes
; then
18352 COMPILE_NLS_FALSE
='#'
18354 COMPILE_NLS_TRUE
='#'
18360 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
18361 GENERATE_FLEX_HEADER_TRUE
=
18362 GENERATE_FLEX_HEADER_FALSE
='#'
18364 GENERATE_FLEX_HEADER_TRUE
='#'
18365 GENERATE_FLEX_HEADER_FALSE
=
18369 # Check for readline library
18370 if test x
$AMULECMD = xyes
-o x
$WEB = xyes
; then
18372 echo "$as_me:$LINENO: checking for a readline compatible library" >&5
18373 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
18374 if test "${vl_cv_lib_readline+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 for readline_lib
in readline edit editline
; do
18380 for termcap_lib
in "" termcap curses ncurses
; do
18381 if test -z "$termcap_lib"; then
18382 TRY_LIB
="-l$readline_lib"
18384 TRY_LIB
="-l$readline_lib -l$termcap_lib"
18386 LIBS
="$ORIG_LIBS $TRY_LIB"
18387 cat >conftest.
$ac_ext <<_ACEOF
18390 cat confdefs.h
>>conftest.
$ac_ext
18391 cat >>conftest.
$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18394 /* Override any gcc2 internal prototype to avoid an error. */
18398 /* We use char because int might match the return type of a gcc2
18399 builtin and then its argument prototype would still apply. */
18409 rm -f conftest.
$ac_objext conftest
$ac_exeext
18410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18411 (eval $ac_link) 2>conftest.er1
18413 grep -v '^ *+' conftest.er1
>conftest.err
18415 cat conftest.err
>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try
='test -z "$ac_c_werror_flag"
18419 || test ! -s conftest.err'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try
='test -s conftest$ac_exeext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 vl_cv_lib_readline
="$TRY_LIB"
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.
$ac_ext >&5
18437 rm -f conftest.err conftest.
$ac_objext \
18438 conftest
$ac_exeext conftest.
$ac_ext
18439 if test -n "$vl_cv_lib_readline"; then
18443 if test -n "$vl_cv_lib_readline"; then
18447 if test -z "$vl_cv_lib_readline"; then
18448 vl_cv_lib_readline
="no"
18452 READLINE_LIBS
="$vl_cv_lib_readline"
18456 echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5
18457 echo "${ECHO_T}$vl_cv_lib_readline" >&6
18459 if test "$vl_cv_lib_readline" != "no"; then
18461 cat >>confdefs.h
<<\_ACEOF
18462 #define HAVE_LIBREADLINE 1
18467 for ac_header
in readline.h readline
/readline.h
18469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18471 echo "$as_me:$LINENO: checking for $ac_header" >&5
18472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18479 # Is the header compilable?
18480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18482 cat >conftest.
$ac_ext <<_ACEOF
18485 cat confdefs.h
>>conftest.
$ac_ext
18486 cat >>conftest.
$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 $ac_includes_default
18489 #include <$ac_header>
18491 rm -f conftest.
$ac_objext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18493 (eval $ac_compile) 2>conftest.er1
18495 grep -v '^ *+' conftest.er1
>conftest.err
18497 cat conftest.err
>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try
='test -z "$ac_c_werror_flag"
18501 || test ! -s conftest.err'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try
='test -s conftest.$ac_objext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_header_compiler
=yes
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.
$ac_ext >&5
18518 ac_header_compiler
=no
18520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18522 echo "${ECHO_T}$ac_header_compiler" >&6
18524 # Is the header present?
18525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18527 cat >conftest.
$ac_ext <<_ACEOF
18530 cat confdefs.h
>>conftest.
$ac_ext
18531 cat >>conftest.
$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include <$ac_header>
18535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18538 grep -v '^ *+' conftest.er1
>conftest.err
18540 cat conftest.err
>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } >/dev
/null
; then
18543 if test -s conftest.err
; then
18544 ac_cpp_err
=$ac_c_preproc_warn_flag
18545 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18552 if test -z "$ac_cpp_err"; then
18553 ac_header_preproc
=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.
$ac_ext >&5
18558 ac_header_preproc
=no
18560 rm -f conftest.err conftest.
$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18562 echo "${ECHO_T}$ac_header_preproc" >&6
18564 # So? What about this header?
18565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18571 ac_header_preproc
=yes
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18588 ## ------------------------------ ##
18589 ## Report this to admin@amule.org ##
18590 ## ------------------------------ ##
18593 sed "s/^/$as_me: WARNING: /" >&2
18596 echo "$as_me:$LINENO: checking for $ac_header" >&5
18597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 eval "$as_ac_Header=\$ac_header_preproc"
18603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18608 cat >>confdefs.h
<<_ACEOF
18609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18616 echo "$as_me:$LINENO: checking whether readline supports history" >&5
18617 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
18618 if test "${vl_cv_lib_readline_history+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18622 vl_cv_lib_readline_history
="no"
18623 cat >conftest.
$ac_ext <<_ACEOF
18626 cat confdefs.h
>>conftest.
$ac_ext
18627 cat >>conftest.
$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18630 /* Override any gcc2 internal prototype to avoid an error. */
18634 /* We use char because int might match the return type of a gcc2
18635 builtin and then its argument prototype would still apply. */
18636 char add_history ();
18645 rm -f conftest.
$ac_objext conftest
$ac_exeext
18646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18647 (eval $ac_link) 2>conftest.er1
18649 grep -v '^ *+' conftest.er1
>conftest.err
18651 cat conftest.err
>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try
='test -z "$ac_c_werror_flag"
18655 || test ! -s conftest.err'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try
='test -s conftest$ac_exeext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 vl_cv_lib_readline_history
="yes"
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.
$ac_ext >&5
18673 rm -f conftest.err conftest.
$ac_objext \
18674 conftest
$ac_exeext conftest.
$ac_ext
18677 echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5
18678 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6
18679 if test "$vl_cv_lib_readline_history" = "yes"; then
18681 cat >>confdefs.h
<<\_ACEOF
18682 #define HAVE_READLINE_HISTORY 1
18687 for ac_header
in history.h readline
/history.h
18689 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18691 echo "$as_me:$LINENO: checking for $ac_header" >&5
18692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18699 # Is the header compilable?
18700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18702 cat >conftest.
$ac_ext <<_ACEOF
18705 cat confdefs.h
>>conftest.
$ac_ext
18706 cat >>conftest.
$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 $ac_includes_default
18709 #include <$ac_header>
18711 rm -f conftest.
$ac_objext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18715 grep -v '^ *+' conftest.er1
>conftest.err
18717 cat conftest.err
>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try
='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try
='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_header_compiler
=yes
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.
$ac_ext >&5
18738 ac_header_compiler
=no
18740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18742 echo "${ECHO_T}$ac_header_compiler" >&6
18744 # Is the header present?
18745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18747 cat >conftest.
$ac_ext <<_ACEOF
18750 cat confdefs.h
>>conftest.
$ac_ext
18751 cat >>conftest.
$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 #include <$ac_header>
18755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18758 grep -v '^ *+' conftest.er1
>conftest.err
18760 cat conftest.err
>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev
/null
; then
18763 if test -s conftest.err
; then
18764 ac_cpp_err
=$ac_c_preproc_warn_flag
18765 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18772 if test -z "$ac_cpp_err"; then
18773 ac_header_preproc
=yes
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.
$ac_ext >&5
18778 ac_header_preproc
=no
18780 rm -f conftest.err conftest.
$ac_ext
18781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18782 echo "${ECHO_T}$ac_header_preproc" >&6
18784 # So? What about this header?
18785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18791 ac_header_preproc
=yes
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18808 ## ------------------------------ ##
18809 ## Report this to admin@amule.org ##
18810 ## ------------------------------ ##
18813 sed "s/^/$as_me: WARNING: /" >&2
18816 echo "$as_me:$LINENO: checking for $ac_header" >&5
18817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 eval "$as_ac_Header=\$ac_header_preproc"
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18828 cat >>confdefs.h
<<_ACEOF
18829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18843 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
18846 # Check whether --enable-ccache or --disable-ccache was given.
18847 if test "${enable_ccache+set}" = set; then
18848 enableval
="$enable_ccache"
18853 # Check whether --with-ccache-prefix or --without-ccache-prefix was given.
18854 if test "${with_ccache_prefix+set}" = set; then
18855 withval
="$with_ccache_prefix"
18859 echo "$as_me:$LINENO: checking whether ccache support should be added" >&5
18860 echo $ECHO_N "checking whether ccache support should be added... $ECHO_C" >&6
18861 echo "$as_me:$LINENO: result: ${enable_ccache:-no}" >&5
18862 echo "${ECHO_T}${enable_ccache:-no}" >&6
18864 if test ${enable_ccache:-no} = yes; then
18866 echo "$as_me:$LINENO: checking for ccache presence" >&5
18867 echo $ECHO_N "checking for ccache presence... $ECHO_C" >&6
18868 if test -z "$with_ccache_prefix"; then
18870 ccache_full
=`which ccache`
18871 with_ccache_prefix
=`dirname ${ccache_full}`
18875 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then
18877 echo "$as_me:$LINENO: result: yes" >&5
18878 echo "${ECHO_T}yes" >&6
18879 CC
="$with_ccache_prefix/ccache $CC"
18880 CXX
="$with_ccache_prefix/ccache $CXX"
18881 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
18885 echo "$as_me:$LINENO: result: no" >&5
18886 echo "${ECHO_T}no" >&6
18895 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/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 src/webserver/php-default/Makefile src/webserver/chicane/Makefile src/webserver/litoral/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
18897 ac_config_files
="$ac_config_files po/Makefile.in Compilation.flags"
18899 if test x
$SYS = xwin32
; then
18900 ac_config_files
="$ac_config_files version.rc"
18904 cat >confcache
<<\_ACEOF
18905 # This file is a shell script that caches the results of configure
18906 # tests run on this system so they can be shared between configure
18907 # scripts and configure runs, see configure's option --config-cache.
18908 # It is not useful on other systems. If it contains results you don't
18909 # want to keep, you may remove or edit it.
18911 # config.status only pays attention to the cache file if you give it
18912 # the --recheck option to rerun configure.
18914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18916 # following values.
18920 # The following way of writing the cache mishandles newlines in values,
18921 # but we know of no workaround that is simple, portable, and efficient.
18922 # So, don't put newlines in cache variables' values.
18923 # Ultrix sh set writes to stderr and can't be redirected directly,
18924 # and sets the high bit in the cache file unless we assign to the vars.
18927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18929 # `set' does not quote correctly, so add quotes (double-quote
18930 # substitution turns \\\\ into \\, and sed turns \\ into \).
18933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18936 # `set' quotes correctly as required by POSIX, so do not add quotes.
18938 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18947 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18949 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18950 if test -w $cache_file; then
18951 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18952 cat confcache
>$cache_file
18954 echo "not updating unwritable cache $cache_file"
18959 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18960 # Let make expand exec_prefix.
18961 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18965 # trailing colons and then remove the whole line if VPATH becomes empty
18966 # (actually we leave an empty line to preserve line numbers).
18967 if test "x$srcdir" = x.
; then
18968 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18969 s/:*\$(srcdir):*/:/;
18970 s/:*\${srcdir}:*/:/;
18972 s/^\([^=]*=[ ]*\):*/\1/;
18978 DEFS
=-DHAVE_CONFIG_H
18982 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18983 # 1. Remove the extension, and $U if already installed.
18984 ac_i
=`echo "$ac_i" |
18985 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18987 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18988 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18990 LIBOBJS
=$ac_libobjs
18992 LTLIBOBJS
=$ac_ltlibobjs
18995 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18996 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18997 Usually this means the macro was only invoked conditionally." >&5
18998 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&2;}
19000 { (exit 1); exit 1; }; }
19002 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19003 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19004 Usually this means the macro was only invoked conditionally." >&5
19005 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&2;}
19007 { (exit 1); exit 1; }; }
19009 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19010 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19011 Usually this means the macro was only invoked conditionally." >&5
19012 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&2;}
19014 { (exit 1); exit 1; }; }
19016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19017 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19018 Usually this means the macro was only invoked conditionally." >&5
19019 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&2;}
19021 { (exit 1); exit 1; }; }
19023 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
19024 { { echo "$as_me:$LINENO: error: conditional \"WEB\" was never defined.
19025 Usually this means the macro was only invoked conditionally." >&5
19026 echo "$as_me: error: conditional \"WEB\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&2;}
19028 { (exit 1); exit 1; }; }
19030 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
19031 { { echo "$as_me:$LINENO: error: conditional \"ED2K\" was never defined.
19032 Usually this means the macro was only invoked conditionally." >&5
19033 echo "$as_me: error: conditional \"ED2K\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&2;}
19035 { (exit 1); exit 1; }; }
19037 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
19038 { { echo "$as_me:$LINENO: error: conditional \"CAS\" was never defined.
19039 Usually this means the macro was only invoked conditionally." >&5
19040 echo "$as_me: error: conditional \"CAS\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&2;}
19042 { (exit 1); exit 1; }; }
19044 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
19045 { { echo "$as_me:$LINENO: error: conditional \"WXCAS\" was never defined.
19046 Usually this means the macro was only invoked conditionally." >&5
19047 echo "$as_me: error: conditional \"WXCAS\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&2;}
19049 { (exit 1); exit 1; }; }
19051 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
19052 { { echo "$as_me:$LINENO: error: conditional \"ALC\" was never defined.
19053 Usually this means the macro was only invoked conditionally." >&5
19054 echo "$as_me: error: conditional \"ALC\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&2;}
19056 { (exit 1); exit 1; }; }
19058 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
19059 { { echo "$as_me:$LINENO: error: conditional \"ALCC\" was never defined.
19060 Usually this means the macro was only invoked conditionally." >&5
19061 echo "$as_me: error: conditional \"ALCC\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&2;}
19063 { (exit 1); exit 1; }; }
19065 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
19066 { { echo "$as_me:$LINENO: error: conditional \"AMULE_GUI\" was never defined.
19067 Usually this means the macro was only invoked conditionally." >&5
19068 echo "$as_me: error: conditional \"AMULE_GUI\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&2;}
19070 { (exit 1); exit 1; }; }
19072 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
19073 { { echo "$as_me:$LINENO: error: conditional \"AMULE_DAEMON\" was never defined.
19074 Usually this means the macro was only invoked conditionally." >&5
19075 echo "$as_me: error: conditional \"AMULE_DAEMON\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&2;}
19077 { (exit 1); exit 1; }; }
19079 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
19080 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CMD\" was never defined.
19081 Usually this means the macro was only invoked conditionally." >&5
19082 echo "$as_me: error: conditional \"COMPILE_CMD\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&2;}
19084 { (exit 1); exit 1; }; }
19086 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
19087 { { echo "$as_me:$LINENO: error: conditional \"MONOLITHIC\" was never defined.
19088 Usually this means the macro was only invoked conditionally." >&5
19089 echo "$as_me: error: conditional \"MONOLITHIC\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&2;}
19091 { (exit 1); exit 1; }; }
19093 if test -z "${ENABLE_UPNP_TRUE}" && test -z "${ENABLE_UPNP_FALSE}"; then
19094 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UPNP\" was never defined.
19095 Usually this means the macro was only invoked conditionally." >&5
19096 echo "$as_me: error: conditional \"ENABLE_UPNP\" was never defined.
19097 Usually this means the macro was only invoked conditionally." >&2;}
19098 { (exit 1); exit 1; }; }
19100 if test -z "${ENABLE_IP2COUNTRY_TRUE}" && test -z "${ENABLE_IP2COUNTRY_FALSE}"; then
19101 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19102 Usually this means the macro was only invoked conditionally." >&5
19103 echo "$as_me: error: conditional \"ENABLE_IP2COUNTRY\" was never defined.
19104 Usually this means the macro was only invoked conditionally." >&2;}
19105 { (exit 1); exit 1; }; }
19107 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
19108 { { echo "$as_me:$LINENO: error: conditional \"SYS_WIN32\" was never defined.
19109 Usually this means the macro was only invoked conditionally." >&5
19110 echo "$as_me: error: conditional \"SYS_WIN32\" was never defined.
19111 Usually this means the macro was only invoked conditionally." >&2;}
19112 { (exit 1); exit 1; }; }
19114 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
19115 { { echo "$as_me:$LINENO: error: conditional \"NEED_RC\" was never defined.
19116 Usually this means the macro was only invoked conditionally." >&5
19117 echo "$as_me: error: conditional \"NEED_RC\" was never defined.
19118 Usually this means the macro was only invoked conditionally." >&2;}
19119 { (exit 1); exit 1; }; }
19121 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
19122 { { echo "$as_me:$LINENO: error: conditional \"NEED_CORESERVICES\" was never defined.
19123 Usually this means the macro was only invoked conditionally." >&5
19124 echo "$as_me: error: conditional \"NEED_CORESERVICES\" was never defined.
19125 Usually this means the macro was only invoked conditionally." >&2;}
19126 { (exit 1); exit 1; }; }
19128 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
19129 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_NLS\" was never defined.
19130 Usually this means the macro was only invoked conditionally." >&5
19131 echo "$as_me: error: conditional \"COMPILE_NLS\" was never defined.
19132 Usually this means the macro was only invoked conditionally." >&2;}
19133 { (exit 1); exit 1; }; }
19135 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
19136 { { echo "$as_me:$LINENO: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19137 Usually this means the macro was only invoked conditionally." >&5
19138 echo "$as_me: error: conditional \"GENERATE_FLEX_HEADER\" was never defined.
19139 Usually this means the macro was only invoked conditionally." >&2;}
19140 { (exit 1); exit 1; }; }
19143 : ${CONFIG_STATUS=./config.status}
19144 ac_clean_files_save
=$ac_clean_files
19145 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19146 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19147 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19148 cat >$CONFIG_STATUS <<_ACEOF
19150 # Generated by $as_me.
19151 # Run this file to recreate the current configuration.
19152 # Compiler output produced by configure, useful for debugging
19153 # configure, is in config.log if it exists.
19156 ac_cs_recheck=false
19158 SHELL=\${CONFIG_SHELL-$SHELL}
19161 cat >>$CONFIG_STATUS <<\_ACEOF
19162 ## --------------------- ##
19163 ## M4sh Initialization. ##
19164 ## --------------------- ##
19166 # Be Bourne compatible
19167 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19170 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19171 # is contrary to our usage. Disable this feature.
19172 alias -g '${1+"$@"}'='"$@"'
19173 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19176 DUALCASE
=1; export DUALCASE
# for MKS sh
19178 # Support unset when possible.
19179 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19186 # Work around bugs in pre-3.0 UWIN ksh.
19187 $as_unset ENV MAIL MAILPATH
19194 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19195 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19196 LC_TELEPHONE LC_TIME
19198 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19199 eval $as_var=C
; export $as_var
19205 # Required to use basename.
19206 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19212 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19213 as_basename
=basename
19219 # Name of the executable.
19220 as_me
=`$as_basename "$0" ||
19221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19222 X"$0" : 'X\(//\)$' \| \
19223 X"$0" : 'X\(/\)$' \| \
19224 . : '\(.\)' 2>/dev/null ||
19226 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19227 /^X\/\(\/\/\)$/{ s//\1/; q; }
19228 /^X\/\(\/\).*/{ s//\1/; q; }
19232 # PATH needs CR, and LINENO needs CR and PATH.
19233 # Avoid depending upon Character Ranges.
19234 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19235 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19236 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19237 as_cr_digits
='0123456789'
19238 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19240 # The user is always right.
19241 if test "${PATH_SEPARATOR+set}" != set; then
19242 echo "#! /bin/sh" >conf$$.sh
19243 echo "exit 0" >>conf$$.sh
19245 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19254 as_lineno_1
=$LINENO
19255 as_lineno_2
=$LINENO
19256 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19257 test "x$as_lineno_1" != "x$as_lineno_2" &&
19258 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19259 # Find who we are. Look in the path if we contain no path at all
19262 *[\\/]* ) as_myself
=$0 ;;
19263 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19264 for as_dir
in $PATH
19267 test -z "$as_dir" && as_dir
=.
19268 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19273 # We did not find ourselves, most probably we were run as `sh COMMAND'
19274 # in which case we are not to be found in the path.
19275 if test "x$as_myself" = x
; then
19278 if test ! -f "$as_myself"; then
19279 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19280 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19281 { (exit 1); exit 1; }; }
19283 case $CONFIG_SHELL in
19285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19286 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19289 test -z "$as_dir" && as_dir
=.
19290 for as_base
in sh bash ksh sh5
; do
19293 if ("$as_dir/$as_base" -c '
19294 as_lineno_1=$LINENO
19295 as_lineno_2=$LINENO
19296 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19297 test "x$as_lineno_1" != "x$as_lineno_2" &&
19298 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19299 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19300 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19301 CONFIG_SHELL
=$as_dir/$as_base
19302 export CONFIG_SHELL
19303 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19311 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19312 # uniformly replaced by the line number. The first 'sed' inserts a
19313 # line-number line before each line; the second 'sed' does the real
19314 # work. The second script uses 'N' to pair each line-number line
19315 # with the numbered line, and appends trailing '-' during
19316 # substitution so that $LINENO is not a special case at line end.
19317 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19318 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19319 sed '=' <$as_myself |
19324 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19327 s,^['$as_cr_digits']*\n,,
19328 ' >$as_me.lineno
&&
19329 chmod +x
$as_me.lineno ||
19330 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19331 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19332 { (exit 1); exit 1; }; }
19334 # Don't try to exec as it changes $[0], causing all sort of problems
19335 # (the dirname of $[0] is not the place where we might find the
19336 # original and so on. Autoconf is especially sensible to this).
19338 # Exit status is that of the last command.
19343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19344 *c
*,-n*) ECHO_N
= ECHO_C
='
19346 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19347 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19350 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19356 rm -f conf$$ conf$$.exe conf$$.
file
19358 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19359 # We could just check for DJGPP; but this test a) works b) is more generic
19360 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19361 if test -f conf$$.exe
; then
19362 # Don't use ln at all; we don't have any links
19367 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19372 rm -f conf$$ conf$$.exe conf$$.
file
19374 if mkdir
-p .
2>/dev
/null
; then
19377 test -d .
/-p && rmdir .
/-p
19381 as_executable_p
="test -f"
19383 # Sed expression to map a string onto a valid CPP name.
19384 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19386 # Sed expression to map a string onto a valid variable name.
19387 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19391 # We need space, tab and new line, in precisely that order.
19401 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19402 # report actual input values of CONFIG_FILES etc. instead of their
19403 # values after options handling. Logging --version etc. is OK.
19407 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19408 ## Running $as_me. ##
19413 This file was extended by aMule $as_me SVN, which was
19414 generated by GNU Autoconf 2.59. Invocation command line was
19416 CONFIG_FILES = $CONFIG_FILES
19417 CONFIG_HEADERS = $CONFIG_HEADERS
19418 CONFIG_LINKS = $CONFIG_LINKS
19419 CONFIG_COMMANDS = $CONFIG_COMMANDS
19423 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19427 # Files that config.status was made for.
19428 if test -n "$ac_config_files"; then
19429 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19432 if test -n "$ac_config_headers"; then
19433 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19436 if test -n "$ac_config_links"; then
19437 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19440 if test -n "$ac_config_commands"; then
19441 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19444 cat >>$CONFIG_STATUS <<\_ACEOF
19447 \`$as_me' instantiates files from templates according to the
19448 current configuration.
19450 Usage: $0 [OPTIONS] [FILE]...
19452 -h, --help print this help, then exit
19453 -V, --version print version number, then exit
19454 -q, --quiet do not print progress messages
19455 -d, --debug don't remove temporary files
19456 --recheck update $as_me by reconfiguring in the same conditions
19457 --file=FILE[:TEMPLATE]
19458 instantiate the configuration file FILE
19459 --header=FILE[:TEMPLATE]
19460 instantiate the configuration header FILE
19462 Configuration files:
19465 Configuration headers:
19468 Configuration commands:
19471 Report bugs to <bug-autoconf@gnu.org>."
19474 cat >>$CONFIG_STATUS <<_ACEOF
19476 aMule config.status SVN
19477 configured by $0, generated by GNU Autoconf 2.59,
19478 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19480 Copyright (C) 2003 Free Software Foundation, Inc.
19481 This config.status script is free software; the Free Software Foundation
19482 gives unlimited permission to copy, distribute and modify it."
19487 cat >>$CONFIG_STATUS <<\_ACEOF
19488 # If no file are specified by the user, then we need to provide default
19489 # value. By we need to know if files were specified by the user.
19495 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19496 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19504 *) # This is not an option, so the user has probably given explicit
19507 ac_need_defaults
=false
;;
19511 # Handling of the options.
19513 cat >>$CONFIG_STATUS <<\_ACEOF
19514 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19516 --version |
--vers* |
-V )
19517 echo "$ac_cs_version"; exit 0 ;;
19519 # Conflict between --help and --header
19520 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19521 Try \`$0 --help' for more information." >&5
19522 echo "$as_me: error: ambiguous option: $1
19523 Try \`$0 --help' for more information." >&2;}
19524 { (exit 1); exit 1; }; };;
19525 --help |
--hel |
-h )
19526 echo "$ac_cs_usage"; exit 0 ;;
19527 --debug |
--d* |
-d )
19529 --file |
--fil |
--fi |
--f )
19531 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19532 ac_need_defaults
=false
;;
19533 --header |
--heade |
--head |
--hea )
19535 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19536 ac_need_defaults
=false
;;
19537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19538 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19541 # This is an error.
19542 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19543 Try \`$0 --help' for more information." >&5
19544 echo "$as_me: error: unrecognized option: $1
19545 Try \`$0 --help' for more information." >&2;}
19546 { (exit 1); exit 1; }; } ;;
19548 *) ac_config_targets
="$ac_config_targets $1" ;;
19554 ac_configure_extra_args
=
19556 if $ac_cs_silent; then
19558 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19562 cat >>$CONFIG_STATUS <<_ACEOF
19563 if \$ac_cs_recheck; then
19564 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19565 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19570 cat >>$CONFIG_STATUS <<_ACEOF
19572 # INIT-COMMANDS section.
19575 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19576 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19577 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19579 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19580 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19581 LINGUAS="${LINGUAS-%UNSET%}"
19583 denoiserlevel=$with_denoise_level
19589 cat >>$CONFIG_STATUS <<\_ACEOF
19590 for ac_config_target
in $ac_config_targets
19592 case "$ac_config_target" in
19593 # Handling of arguments.
19594 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19595 "docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
19596 "docs/man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
19597 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
19598 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19599 "src/pixmaps/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
19600 "src/pixmaps/flags_xpm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
19601 "src/libs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
19602 "src/libs/ec/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
19603 "src/libs/ec/cpp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
19604 "src/libs/common/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
19605 "src/utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
19606 "src/utils/aLinkCreator/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
19607 "src/utils/aLinkCreator/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
19608 "src/utils/aLinkCreator/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
19609 "src/utils/cas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
19610 "src/utils/cas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
19611 "src/utils/fileview/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
19612 "src/utils/wxCas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
19613 "src/utils/wxCas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
19614 "src/utils/wxCas/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
19615 "src/utils/xas/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
19616 "src/utils/xas/autostart-xas" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
19617 "src/utils/xas/docs/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
19618 "src/skins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
19619 "src/webserver/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
19620 "src/webserver/src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
19621 "src/webserver/default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
19622 "src/webserver/php-default/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/php-default/Makefile" ;;
19623 "src/webserver/chicane/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/chicane/Makefile" ;;
19624 "src/webserver/litoral/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/webserver/litoral/Makefile" ;;
19625 "unittests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
19626 "unittests/muleunit/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
19627 "unittests/tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
19628 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
19629 "Compilation.flags" ) CONFIG_FILES
="$CONFIG_FILES Compilation.flags" ;;
19630 "version.rc" ) CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
19631 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19632 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
19633 "denoiser" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
19634 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
19635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19636 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19637 { (exit 1); exit 1; }; };;
19641 # If the user did not use the arguments to specify the items to instantiate,
19642 # then the envvar interface is used. Set only those that are not.
19643 # We use the long form for the default assignment because of an extremely
19644 # bizarre bug on SunOS 4.1.3.
19645 if $ac_need_defaults; then
19646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19651 # Have a temporary directory for convenience. Make it in the build tree
19652 # simply because there is no reason to put it here, and in addition,
19653 # creating and moving files from /tmp can sometimes cause problems.
19654 # Create a temporary directory, and hook for its removal unless debugging.
19657 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19658 trap '{ (exit 1); exit 1; }' 1 2 13 15
19661 # Create a (secure) tmp directory for tmp files.
19664 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19665 test -n "$tmp" && test -d "$tmp"
19668 tmp
=.
/confstat$$
-$RANDOM
19669 (umask 077 && mkdir
$tmp)
19672 echo "$me: cannot create a temporary directory in ." >&2
19673 { (exit 1); exit 1; }
19678 cat >>$CONFIG_STATUS <<_ACEOF
19681 # CONFIG_FILES section.
19684 # No need to generate the scripts if there are no CONFIG_FILES.
19685 # This happens for instance when ./config.status config.h
19686 if test -n "\$CONFIG_FILES"; then
19687 # Protect against being on the right side of a sed subst in config.status.
19688 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19689 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19690 s,@SHELL@,$SHELL,;t t
19691 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19692 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19693 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19694 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19695 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19696 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19697 s,@exec_prefix@,$exec_prefix,;t t
19698 s,@prefix@,$prefix,;t t
19699 s,@program_transform_name@,$program_transform_name,;t t
19700 s,@bindir@,$bindir,;t t
19701 s,@sbindir@,$sbindir,;t t
19702 s,@libexecdir@,$libexecdir,;t t
19703 s,@datadir@,$datadir,;t t
19704 s,@sysconfdir@,$sysconfdir,;t t
19705 s,@sharedstatedir@,$sharedstatedir,;t t
19706 s,@localstatedir@,$localstatedir,;t t
19707 s,@libdir@,$libdir,;t t
19708 s,@includedir@,$includedir,;t t
19709 s,@oldincludedir@,$oldincludedir,;t t
19710 s,@infodir@,$infodir,;t t
19711 s,@mandir@,$mandir,;t t
19712 s,@build_alias@,$build_alias,;t t
19713 s,@host_alias@,$host_alias,;t t
19714 s,@target_alias@,$target_alias,;t t
19715 s,@DEFS@,$DEFS,;t t
19716 s,@ECHO_C@,$ECHO_C,;t t
19717 s,@ECHO_N@,$ECHO_N,;t t
19718 s,@ECHO_T@,$ECHO_T,;t t
19719 s,@LIBS@,$LIBS,;t t
19720 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19721 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19722 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19723 s,@CYGPATH_W@,$CYGPATH_W,;t t
19724 s,@PACKAGE@,$PACKAGE,;t t
19725 s,@VERSION@,$VERSION,;t t
19726 s,@ACLOCAL@,$ACLOCAL,;t t
19727 s,@AUTOCONF@,$AUTOCONF,;t t
19728 s,@AUTOMAKE@,$AUTOMAKE,;t t
19729 s,@AUTOHEADER@,$AUTOHEADER,;t t
19730 s,@MAKEINFO@,$MAKEINFO,;t t
19731 s,@install_sh@,$install_sh,;t t
19732 s,@STRIP@,$STRIP,;t t
19733 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19734 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19735 s,@mkdir_p@,$mkdir_p,;t t
19737 s,@SET_MAKE@,$SET_MAKE,;t t
19738 s,@am__leading_dot@,$am__leading_dot,;t t
19739 s,@AMTAR@,$AMTAR,;t t
19740 s,@am__tar@,$am__tar,;t t
19741 s,@am__untar@,$am__untar,;t t
19742 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19743 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19744 s,@MAINT@,$MAINT,;t t
19745 s,@build@,$build,;t t
19746 s,@build_cpu@,$build_cpu,;t t
19747 s,@build_vendor@,$build_vendor,;t t
19748 s,@build_os@,$build_os,;t t
19749 s,@host@,$host,;t t
19750 s,@host_cpu@,$host_cpu,;t t
19751 s,@host_vendor@,$host_vendor,;t t
19752 s,@host_os@,$host_os,;t t
19753 s,@RESOLV_LIB@,$RESOLV_LIB,;t t
19754 s,@X11LIBS@,$X11LIBS,;t t
19755 s,@MULECPPFLAGS@,$MULECPPFLAGS,;t t
19756 s,@MULECFLAGS@,$MULECFLAGS,;t t
19757 s,@MULECXXFLAGS@,$MULECXXFLAGS,;t t
19758 s,@MULELDFLAGS@,$MULELDFLAGS,;t t
19759 s,@MULERCFLAGS@,$MULERCFLAGS,;t t
19761 s,@CXXFLAGS@,$CXXFLAGS,;t t
19762 s,@LDFLAGS@,$LDFLAGS,;t t
19763 s,@CPPFLAGS@,$CPPFLAGS,;t t
19764 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19765 s,@EXEEXT@,$EXEEXT,;t t
19766 s,@OBJEXT@,$OBJEXT,;t t
19767 s,@DEPDIR@,$DEPDIR,;t t
19768 s,@am__include@,$am__include,;t t
19769 s,@am__quote@,$am__quote,;t t
19770 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19771 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19772 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19773 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19774 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19775 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19776 s,@CXXCPP@,$CXXCPP,;t t
19778 s,@CFLAGS@,$CFLAGS,;t t
19779 s,@ac_ct_CC@,$ac_ct_CC,;t t
19780 s,@CCDEPMODE@,$CCDEPMODE,;t t
19781 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19782 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19784 s,@BUILD_CC@,$BUILD_CC,;t t
19785 s,@ac_ct_BUILD_CC@,$ac_ct_BUILD_CC,;t t
19786 s,@EXEEXT@,$EXEEXT,;t t
19787 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
19788 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
19789 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
19790 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
19791 s,@EGREP@,$EGREP,;t t
19793 s,@LEXLIB@,$LEXLIB,;t t
19794 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19795 s,@RANLIB@,$RANLIB,;t t
19796 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19797 s,@YACC@,$YACC,;t t
19799 s,@ac_ct_AR@,$ac_ct_AR,;t t
19801 s,@ac_ct_LD@,$ac_ct_LD,;t t
19802 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
19803 s,@ZLIB_LDFLAGS@,$ZLIB_LDFLAGS,;t t
19804 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
19805 s,@GDLIB_CONFIG_PATH@,$GDLIB_CONFIG_PATH,;t t
19806 s,@GDLIB_CFLAGS@,$GDLIB_CFLAGS,;t t
19807 s,@GDLIB_LDFLAGS@,$GDLIB_LDFLAGS,;t t
19808 s,@GDLIB_LIBS@,$GDLIB_LIBS,;t t
19809 s,@CAS_DEFS@,$CAS_DEFS,;t t
19810 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
19811 s,@LIBPNG_CONFIG_PATH@,$LIBPNG_CONFIG_PATH,;t t
19812 s,@LIBPNG_CFLAGS@,$LIBPNG_CFLAGS,;t t
19813 s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
19814 s,@LIBPNG_LIBS@,$LIBPNG_LIBS,;t t
19815 s,@AMULEWEB_DEFS@,$AMULEWEB_DEFS,;t t
19816 s,@GEOIP_CPPFLAGS@,$GEOIP_CPPFLAGS,;t t
19817 s,@GEOIP_LDFLAGS@,$GEOIP_LDFLAGS,;t t
19818 s,@GEOIP_LIBS@,$GEOIP_LIBS,;t t
19819 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
19820 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
19821 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
19822 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
19823 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
19824 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
19825 s,@WX_LIBS@,$WX_LIBS,;t t
19826 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
19827 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
19828 s,@WX_RESCOMP@,$WX_RESCOMP,;t t
19829 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
19830 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
19831 s,@WX_UNICODE@,$WX_UNICODE,;t t
19832 s,@WX_DEBUG@,$WX_DEBUG,;t t
19833 s,@WX_SHARED@,$WX_SHARED,;t t
19834 s,@WX_PORT@,$WX_PORT,;t t
19835 s,@WXBASE_LIBS@,$WXBASE_LIBS,;t t
19836 s,@WXBASE_CPPFLAGS@,$WXBASE_CPPFLAGS,;t t
19838 s,@RCFLAGS@,$RCFLAGS,;t t
19839 s,@ac_ct_RC@,$ac_ct_RC,;t t
19840 s,@CRYPTOPP_CPPFLAGS@,$CRYPTOPP_CPPFLAGS,;t t
19841 s,@CRYPTOPP_LDFLAGS@,$CRYPTOPP_LDFLAGS,;t t
19842 s,@CRYPTOPP_LIBS@,$CRYPTOPP_LIBS,;t t
19843 s,@BFD_CPPFLAGS@,$BFD_CPPFLAGS,;t t
19844 s,@BFD_LIBS@,$BFD_LIBS,;t t
19845 s,@ALLOCA@,$ALLOCA,;t t
19846 s,@LIBOBJS@,$LIBOBJS,;t t
19847 s,@POW_LIB@,$POW_LIB,;t t
19848 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19849 s,@MSGFMT@,$MSGFMT,;t t
19850 s,@GMSGFMT@,$GMSGFMT,;t t
19851 s,@XGETTEXT@,$XGETTEXT,;t t
19852 s,@MSGMERGE@,$MSGMERGE,;t t
19853 s,@GLIBC21@,$GLIBC21,;t t
19854 s,@LIBICONV@,$LIBICONV,;t t
19855 s,@LTLIBICONV@,$LTLIBICONV,;t t
19856 s,@INTLBISON@,$INTLBISON,;t t
19857 s,@USE_NLS@,$USE_NLS,;t t
19858 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19859 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19860 s,@CATOBJEXT@,$CATOBJEXT,;t t
19861 s,@INTLOBJS@,$INTLOBJS,;t t
19862 s,@DATADIRNAME@,$DATADIRNAME,;t t
19863 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19864 s,@GENCAT@,$GENCAT,;t t
19865 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19866 s,@INTLLIBS@,$INTLLIBS,;t t
19867 s,@LIBINTL@,$LIBINTL,;t t
19868 s,@LTLIBINTL@,$LTLIBINTL,;t t
19869 s,@POSUB@,$POSUB,;t t
19870 s,@AMULE_DAEMON_MANPAGES@,$AMULE_DAEMON_MANPAGES,;t t
19871 s,@AMULECMD_MANPAGES@,$AMULECMD_MANPAGES,;t t
19872 s,@WEB_MANPAGES@,$WEB_MANPAGES,;t t
19873 s,@AMULE_GUI_MANPAGES@,$AMULE_GUI_MANPAGES,;t t
19874 s,@CAS_MANPAGES@,$CAS_MANPAGES,;t t
19875 s,@WXCAS_MANPAGES@,$WXCAS_MANPAGES,;t t
19876 s,@ED2K_MANPAGES@,$ED2K_MANPAGES,;t t
19877 s,@ALC_MANPAGES@,$ALC_MANPAGES,;t t
19878 s,@ALCC_MANPAGES@,$ALCC_MANPAGES,;t t
19879 s,@MONOLITHIC_MANPAGES@,$MONOLITHIC_MANPAGES,;t t
19880 s,@INCINTL@,$INCINTL,;t t
19881 s,@docdir@,$docdir,;t t
19882 s,@SVNDATE@,$SVNDATE,;t t
19883 s,@WEB_TRUE@,$WEB_TRUE,;t t
19884 s,@WEB_FALSE@,$WEB_FALSE,;t t
19885 s,@ED2K_TRUE@,$ED2K_TRUE,;t t
19886 s,@ED2K_FALSE@,$ED2K_FALSE,;t t
19887 s,@CAS_TRUE@,$CAS_TRUE,;t t
19888 s,@CAS_FALSE@,$CAS_FALSE,;t t
19889 s,@WXCAS_TRUE@,$WXCAS_TRUE,;t t
19890 s,@WXCAS_FALSE@,$WXCAS_FALSE,;t t
19891 s,@ALC_TRUE@,$ALC_TRUE,;t t
19892 s,@ALC_FALSE@,$ALC_FALSE,;t t
19893 s,@ALCC_TRUE@,$ALCC_TRUE,;t t
19894 s,@ALCC_FALSE@,$ALCC_FALSE,;t t
19895 s,@AMULE_GUI_TRUE@,$AMULE_GUI_TRUE,;t t
19896 s,@AMULE_GUI_FALSE@,$AMULE_GUI_FALSE,;t t
19897 s,@AMULE_DAEMON_TRUE@,$AMULE_DAEMON_TRUE,;t t
19898 s,@AMULE_DAEMON_FALSE@,$AMULE_DAEMON_FALSE,;t t
19899 s,@COMPILE_CMD_TRUE@,$COMPILE_CMD_TRUE,;t t
19900 s,@COMPILE_CMD_FALSE@,$COMPILE_CMD_FALSE,;t t
19901 s,@MONOLITHIC_TRUE@,$MONOLITHIC_TRUE,;t t
19902 s,@MONOLITHIC_FALSE@,$MONOLITHIC_FALSE,;t t
19903 s,@ENABLE_UPNP_TRUE@,$ENABLE_UPNP_TRUE,;t t
19904 s,@ENABLE_UPNP_FALSE@,$ENABLE_UPNP_FALSE,;t t
19905 s,@ENABLE_IP2COUNTRY_TRUE@,$ENABLE_IP2COUNTRY_TRUE,;t t
19906 s,@ENABLE_IP2COUNTRY_FALSE@,$ENABLE_IP2COUNTRY_FALSE,;t t
19907 s,@SYS_WIN32_TRUE@,$SYS_WIN32_TRUE,;t t
19908 s,@SYS_WIN32_FALSE@,$SYS_WIN32_FALSE,;t t
19909 s,@NEED_RC_TRUE@,$NEED_RC_TRUE,;t t
19910 s,@NEED_RC_FALSE@,$NEED_RC_FALSE,;t t
19911 s,@NEED_CORESERVICES_TRUE@,$NEED_CORESERVICES_TRUE,;t t
19912 s,@NEED_CORESERVICES_FALSE@,$NEED_CORESERVICES_FALSE,;t t
19913 s,@COMPILE_NLS_TRUE@,$COMPILE_NLS_TRUE,;t t
19914 s,@COMPILE_NLS_FALSE@,$COMPILE_NLS_FALSE,;t t
19915 s,@GENERATE_FLEX_HEADER_TRUE@,$GENERATE_FLEX_HEADER_TRUE,;t t
19916 s,@GENERATE_FLEX_HEADER_FALSE@,$GENERATE_FLEX_HEADER_FALSE,;t t
19917 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
19918 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19923 cat >>$CONFIG_STATUS <<\_ACEOF
19924 # Split the substitutions into bite-sized pieces for seds with
19925 # small command number limits, like on Digital OSF/1 and HP-UX.
19926 ac_max_sed_lines
=48
19927 ac_sed_frag
=1 # Number of current file.
19928 ac_beg
=1 # First line for current file.
19929 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19932 while $ac_more_lines; do
19933 if test $ac_beg -gt 1; then
19934 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19936 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19938 if test ! -s $tmp/subs.frag
; then
19939 ac_more_lines
=false
19941 # The purpose of the label and of the branching condition is to
19942 # speed up the sed processing (if there are no `@' at all, there
19943 # is no need to browse any of the substitutions).
19944 # These are the two extra sed commands mentioned above.
19946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19947 if test -z "$ac_sed_cmds"; then
19948 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19950 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19952 ac_sed_frag
=`expr $ac_sed_frag + 1`
19954 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19957 if test -z "$ac_sed_cmds"; then
19960 fi # test -n "$CONFIG_FILES"
19963 cat >>$CONFIG_STATUS <<\_ACEOF
19964 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19967 - |
*:- |
*:-:* ) # input from stdin
19969 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19970 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19971 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19972 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19973 * ) ac_file_in
=$ac_file.
in ;;
19976 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19977 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19979 X"$ac_file" : 'X\(//\)[^/]' \| \
19980 X"$ac_file" : 'X\(//\)$' \| \
19981 X"$ac_file" : 'X\(/\)' \| \
19982 . : '\(.\)' 2>/dev/null ||
19984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19986 /^X\(\/\/\)$/{ s//\1/; q; }
19987 /^X\(\/\).*/{ s//\1/; q; }
19989 { if $as_mkdir_p; then
19994 while test ! -d "$as_dir"; do
19995 as_dirs
="$as_dir $as_dirs"
19996 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19998 X"$as_dir" : 'X\(//\)[^/]' \| \
19999 X"$as_dir" : 'X\(//\)$' \| \
20000 X"$as_dir" : 'X\(/\)' \| \
20001 . : '\(.\)' 2>/dev/null ||
20003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20005 /^X\(\/\/\)$/{ s//\1/; q; }
20006 /^X\(\/\).*/{ s//\1/; q; }
20009 test ! -n "$as_dirs" || mkdir
$as_dirs
20010 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20012 { (exit 1); exit 1; }; }; }
20016 if test "$ac_dir" != .
; then
20017 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20018 # A "../" for each directory in $ac_dir_suffix.
20019 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20021 ac_dir_suffix
= ac_top_builddir
=
20025 .
) # No --srcdir option. We are building in place.
20027 if test -z "$ac_top_builddir"; then
20030 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20032 [\\/]* | ?
:[\\/]* ) # Absolute path.
20033 ac_srcdir
=$srcdir$ac_dir_suffix;
20034 ac_top_srcdir
=$srcdir ;;
20035 *) # Relative path.
20036 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20037 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20040 # Do not use `cd foo && pwd` to compute absolute paths, because
20041 # the directories may not exist.
20043 .
) ac_abs_builddir
="$ac_dir";;
20046 .
) ac_abs_builddir
=`pwd`;;
20047 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20048 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20051 case $ac_abs_builddir in
20052 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20054 case ${ac_top_builddir}.
in
20055 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20056 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20057 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20060 case $ac_abs_builddir in
20061 .
) ac_abs_srcdir
=$ac_srcdir;;
20064 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20065 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20066 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20069 case $ac_abs_builddir in
20070 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20072 case $ac_top_srcdir in
20073 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20074 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20075 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20081 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20082 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20085 if test x
"$ac_file" != x-
; then
20086 { echo "$as_me:$LINENO: creating $ac_file" >&5
20087 echo "$as_me: creating $ac_file" >&6;}
20090 # Let's still pretend it is `configure' which instantiates (i.e., don't
20091 # use $as_me), people would be surprised to read:
20092 # /* config.h. Generated by config.status. */
20093 if test x
"$ac_file" = x-
; then
20096 configure_input
="$ac_file. "
20098 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20099 sed 's,.*/,,'` by configure."
20101 # First look for the input files in the build tree, otherwise in the
20103 ac_file_inputs
=`IFS=:
20104 for f in $ac_file_in; do
20106 -) echo $tmp/stdin ;;
20108 # Absolute (can't be DOS-style, as IFS=:)
20109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20110 echo "$as_me: error: cannot find input file: $f" >&2;}
20111 { (exit 1); exit 1; }; }
20114 if test -f "$f"; then
20117 elif test -f "$srcdir/$f"; then
20122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20123 echo "$as_me: error: cannot find input file: $f" >&2;}
20124 { (exit 1); exit 1; }; }
20127 done` ||
{ (exit 1); exit 1; }
20129 cat >>$CONFIG_STATUS <<_ACEOF
20133 cat >>$CONFIG_STATUS <<\_ACEOF
20135 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20136 s
,@configure_input@
,$configure_input,;t t
20137 s
,@srcdir@
,$ac_srcdir,;t t
20138 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20139 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20140 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20141 s
,@builddir@
,$ac_builddir,;t t
20142 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20143 s
,@top_builddir@
,$ac_top_builddir,;t t
20144 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20145 s
,@INSTALL@
,$ac_INSTALL,;t t
20146 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20148 if test x"$ac_file" != x-; then
20149 mv $tmp/out $ac_file
20157 cat >>$CONFIG_STATUS <<\_ACEOF
20160 # CONFIG_HEADER section.
20163 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20164 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20166 # ac_d sets the value in "#define NAME VALUE" lines.
20167 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20168 ac_dB
='[ ].*$,\1#\2'
20171 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20172 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20173 ac_uB
='$,\1#\2define\3'
20177 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20180 - |
*:- |
*:-:* ) # input from stdin
20182 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20183 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20184 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20185 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20186 * ) ac_file_in
=$ac_file.
in ;;
20189 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20190 echo "$as_me: creating $ac_file" >&6;}
20192 # First look for the input files in the build tree, otherwise in the
20194 ac_file_inputs
=`IFS=:
20195 for f in $ac_file_in; do
20197 -) echo $tmp/stdin ;;
20199 # Absolute (can't be DOS-style, as IFS=:)
20200 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20201 echo "$as_me: error: cannot find input file: $f" >&2;}
20202 { (exit 1); exit 1; }; }
20203 # Do quote $f, to prevent DOS paths from being IFS'd.
20206 if test -f "$f"; then
20209 elif test -f "$srcdir/$f"; then
20214 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20215 echo "$as_me: error: cannot find input file: $f" >&2;}
20216 { (exit 1); exit 1; }; }
20219 done` ||
{ (exit 1); exit 1; }
20220 # Remove the trailing spaces.
20221 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20225 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20226 # `conftest.undefs', that substitutes the proper values into
20227 # config.h.in to produce config.h. The first handles `#define'
20228 # templates, and the second `#undef' templates.
20229 # And first: Protect against being on the right side of a sed subst in
20230 # config.status. Protect against being in an unquoted here document
20231 # in config.status.
20232 rm -f conftest.defines conftest.undefs
20233 # Using a here document instead of a string reduces the quoting nightmare.
20234 # Putting comments in sed scripts is not portable.
20236 # `end' is used to avoid that the second main sed command (meant for
20237 # 0-ary CPP macros) applies to n-ary macro definitions.
20238 # See the Autoconf documentation for `clear'.
20239 cat >confdef2sed.
sed <<\_ACEOF
20244 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20246 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20249 # If some macros were called several times there might be several times
20250 # the same #defines, which is useless. Nevertheless, we may not want to
20251 # sort them, since we want the *last* AC-DEFINE to be honored.
20252 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20253 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20254 rm -f confdef2sed.sed
20256 # This sed command replaces #undef with comments. This is necessary, for
20257 # example, in the case of _POSIX_SOURCE, which is predefined and required
20258 # on some systems where configure will not decide to define it.
20259 cat >>conftest.undefs <<\_ACEOF
20260 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20263 # Break up conftest.defines because some shells have a limit on the size
20264 # of here documents, and old seds have small limits too (100 cmds).
20265 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20266 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20267 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20268 echo ' :' >>$CONFIG_STATUS
20269 rm -f conftest.tail
20270 while grep . conftest.defines >/dev/null
20272 # Write a limited-size here document to $tmp/defines.sed.
20273 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20274 # Speed up: don't consider the non `#define' lines.
20275 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20276 # Work around the forget-to-reset-the-flag bug.
20277 echo 't clr' >>$CONFIG_STATUS
20278 echo ': clr' >>$CONFIG_STATUS
20279 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20281 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20283 mv $tmp/out $tmp/in
20285 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20286 rm -f conftest.defines
20287 mv conftest.
tail conftest.defines
20289 rm -f conftest.defines
20290 echo ' fi # grep' >>$CONFIG_STATUS
20291 echo >>$CONFIG_STATUS
20293 # Break up conftest.undefs because some shells have a limit on the size
20294 # of here documents, and old seds have small limits too (100 cmds).
20295 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20296 rm -f conftest.
tail
20297 while grep . conftest.undefs
>/dev
/null
20299 # Write a limited-size here document to $tmp/undefs.sed.
20300 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20301 # Speed up: don't consider the non
`#undef'
20302 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20303 # Work around the forget-to-reset-the-flag bug.
20304 echo 't clr' >>$CONFIG_STATUS
20305 echo ': clr' >>$CONFIG_STATUS
20306 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20308 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20310 mv $tmp/out $tmp/in
20312 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20313 rm -f conftest.undefs
20314 mv conftest.tail conftest.undefs
20316 rm -f conftest.undefs
20318 cat >>$CONFIG_STATUS <<\_ACEOF
20319 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20320 # use $as_me), people would be surprised to read:
20321 # /* config.h. Generated by config.status. */
20322 if test x
"$ac_file" = x-
; then
20323 echo "/* Generated by configure. */" >$tmp/config.h
20325 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20327 cat $tmp/in >>$tmp/config.h
20329 if test x
"$ac_file" != x-
; then
20330 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20331 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20332 echo "$as_me: $ac_file is unchanged" >&6;}
20334 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20336 X"$ac_file" : 'X\(//\)[^/]' \| \
20337 X"$ac_file" : 'X\(//\)$' \| \
20338 X"$ac_file" : 'X\(/\)' \| \
20339 . : '\(.\)' 2>/dev/null ||
20341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20343 /^X\(\/\/\)$/{ s//\1/; q; }
20344 /^X\(\/\).*/{ s//\1/; q; }
20346 { if $as_mkdir_p; then
20351 while test ! -d "$as_dir"; do
20352 as_dirs
="$as_dir $as_dirs"
20353 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20355 X"$as_dir" : 'X\(//\)[^/]' \| \
20356 X"$as_dir" : 'X\(//\)$' \| \
20357 X"$as_dir" : 'X\(/\)' \| \
20358 . : '\(.\)' 2>/dev/null ||
20360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20362 /^X\(\/\/\)$/{ s//\1/; q; }
20363 /^X\(\/\).*/{ s//\1/; q; }
20366 test ! -n "$as_dirs" || mkdir
$as_dirs
20367 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20369 { (exit 1); exit 1; }; }; }
20372 mv $tmp/config.h
$ac_file
20376 rm -f $tmp/config.h
20378 # Compute $ac_file's index in $config_headers.
20380 for _am_header
in $config_headers :; do
20381 case $_am_header in
20382 $ac_file |
$ac_file:* )
20385 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20388 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20389 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20390 X$ac_file : 'X\(//\)[^/]' \| \
20391 X$ac_file : 'X\(//\)$' \| \
20392 X$ac_file : 'X\(/\)' \| \
20393 . : '\(.\)' 2>/dev/null ||
20395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20397 /^X\(\/\/\)$/{ s//\1/; q; }
20398 /^X\(\/\).*/{ s//\1/; q; }
20399 s/.*/./; q'`/stamp-h
$_am_stamp_count
20402 cat >>$CONFIG_STATUS <<\_ACEOF
20405 # CONFIG_COMMANDS section.
20407 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20408 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20409 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20410 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20411 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20412 X"$ac_dest" : 'X\(//\)[^/]' \| \
20413 X"$ac_dest" : 'X\(//\)$' \| \
20414 X"$ac_dest" : 'X\(/\)' \| \
20415 . : '\(.\)' 2>/dev/null ||
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20419 /^X\(\/\/\)$/{ s//\1/; q; }
20420 /^X\(\/\).*/{ s//\1/; q; }
20422 { if $as_mkdir_p; then
20427 while test ! -d "$as_dir"; do
20428 as_dirs
="$as_dir $as_dirs"
20429 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X"$as_dir" : 'X\(//\)[^/]' \| \
20432 X"$as_dir" : 'X\(//\)$' \| \
20433 X"$as_dir" : 'X\(/\)' \| \
20434 . : '\(.\)' 2>/dev/null ||
20436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438 /^X\(\/\/\)$/{ s//\1/; q; }
20439 /^X\(\/\).*/{ s//\1/; q; }
20442 test ! -n "$as_dirs" || mkdir
$as_dirs
20443 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20445 { (exit 1); exit 1; }; }; }
20449 if test "$ac_dir" != .
; then
20450 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20451 # A "../" for each directory in $ac_dir_suffix.
20452 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20454 ac_dir_suffix
= ac_top_builddir
=
20458 .
) # No --srcdir option. We are building in place.
20460 if test -z "$ac_top_builddir"; then
20463 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20465 [\\/]* | ?
:[\\/]* ) # Absolute path.
20466 ac_srcdir
=$srcdir$ac_dir_suffix;
20467 ac_top_srcdir
=$srcdir ;;
20468 *) # Relative path.
20469 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20470 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20473 # Do not use `cd foo && pwd` to compute absolute paths, because
20474 # the directories may not exist.
20476 .
) ac_abs_builddir
="$ac_dir";;
20479 .
) ac_abs_builddir
=`pwd`;;
20480 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20481 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20484 case $ac_abs_builddir in
20485 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20487 case ${ac_top_builddir}.
in
20488 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20489 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20490 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20493 case $ac_abs_builddir in
20494 .
) ac_abs_srcdir
=$ac_srcdir;;
20497 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20498 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20499 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20502 case $ac_abs_builddir in
20503 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20505 case $ac_top_srcdir in
20506 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20507 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20508 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20513 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20514 echo "$as_me: executing $ac_dest commands" >&6;}
20516 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
20517 # Strip MF so we end up with the name of the file.
20518 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20519 # Check whether this is an Automake generated Makefile or not.
20520 # We used to match only the files named `Makefile.in', but
20521 # some people rename them; so instead we look at the file content.
20522 # Grep'ing the first line is not enough: some people post-process
20523 # each Makefile.in and add a new line on top of each file to say so.
20524 # So let's grep whole file.
20525 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
20526 dirpart
=`(dirname "$mf") 2>/dev/null ||
20527 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20528 X"$mf" : 'X\(//\)[^/]' \| \
20529 X"$mf" : 'X\(//\)$' \| \
20530 X"$mf" : 'X\(/\)' \| \
20531 . : '\(.\)' 2>/dev/null ||
20533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20535 /^X\(\/\/\)$/{ s//\1/; q; }
20536 /^X\(\/\).*/{ s//\1/; q; }
20541 # Extract the definition of DEPDIR, am__include, and am__quote
20542 # from the Makefile without running `make'.
20543 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20544 test -z "$DEPDIR" && continue
20545 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20546 test -z "am__include" && continue
20547 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20548 # When using ansi2knr, U may be empty or an underscore; expand it
20549 U
=`sed -n 's/^U = //p' < "$mf"`
20550 # Find all dependency output files, they are included files with
20551 # $(DEPDIR) in their names. We invoke sed twice because it is the
20552 # simplest approach to changing $(DEPDIR) to its actual value in the
20554 for file in `sed -n "
20555 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20556 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20557 # Make sure the directory exists.
20558 test -f "$dirpart/$file" && continue
20559 fdir
=`(dirname "$file") 2>/dev/null ||
20560 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20561 X"$file" : 'X\(//\)[^/]' \| \
20562 X"$file" : 'X\(//\)$' \| \
20563 X"$file" : 'X\(/\)' \| \
20564 . : '\(.\)' 2>/dev/null ||
20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20568 /^X\(\/\/\)$/{ s//\1/; q; }
20569 /^X\(\/\).*/{ s//\1/; q; }
20571 { if $as_mkdir_p; then
20572 mkdir
-p $dirpart/$fdir
20574 as_dir
=$dirpart/$fdir
20576 while test ! -d "$as_dir"; do
20577 as_dirs
="$as_dir $as_dirs"
20578 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20580 X"$as_dir" : 'X\(//\)[^/]' \| \
20581 X"$as_dir" : 'X\(//\)$' \| \
20582 X"$as_dir" : 'X\(/\)' \| \
20583 . : '\(.\)' 2>/dev/null ||
20585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20587 /^X\(\/\/\)$/{ s//\1/; q; }
20588 /^X\(\/\).*/{ s//\1/; q; }
20591 test ! -n "$as_dirs" || mkdir
$as_dirs
20592 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20593 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20594 { (exit 1); exit 1; }; }; }
20596 # echo "creating $dirpart/$file"
20597 echo '# dummy' > "$dirpart/$file"
20602 for ac_file
in $CONFIG_FILES; do
20603 # Support "outfile[:infile[:infile...]]"
20605 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20607 # PO directories have a Makefile.in generated from Makefile.in.in.
20608 case "$ac_file" in */Makefile.
in)
20609 # Adjust a relative srcdir.
20610 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20611 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
20612 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20613 # In autoconf-2.13 it is called $ac_given_srcdir.
20614 # In autoconf-2.50 it is called $srcdir.
20615 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
20616 case "$ac_given_srcdir" in
20617 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
20618 /*) top_srcdir
="$ac_given_srcdir" ;;
20619 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
20621 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20622 rm -f "$ac_dir/POTFILES"
20623 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
20624 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20625 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20626 # on $ac_dir but don't depend on user-specified configuration
20628 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20629 # The LINGUAS file contains the set of available languages.
20630 if test -n "$ALL_LINGUAS"; then
20631 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
20633 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20634 # Hide the ALL_LINGUAS assigment from automake.
20635 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20637 case "$ac_given_srcdir" in
20639 *) srcdirpre
='$(srcdir)/' ;;
20645 for lang
in $ALL_LINGUAS; do
20646 POFILES
="$POFILES $srcdirpre$lang.po"
20647 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
20648 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
20649 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
20651 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20652 # environment variable.
20654 if test -n "$ALL_LINGUAS"; then
20655 for presentlang
in $ALL_LINGUAS; do
20657 if test "%UNSET%" != "$LINGUAS"; then
20658 desiredlanguages
="$LINGUAS"
20660 desiredlanguages
="$ALL_LINGUAS"
20662 for desiredlang
in $desiredlanguages; do
20663 # Use the presentlang catalog if desiredlang is
20664 # a. equal to presentlang, or
20665 # b. a variant of presentlang (because in this case,
20666 # presentlang can be used as a fallback for messages
20667 # which are not translated in the desiredlang catalog).
20668 case "$desiredlang" in
20669 "$presentlang"*) useit
=yes;;
20672 if test $useit = yes; then
20673 INST_LINGUAS
="$INST_LINGUAS $presentlang"
20678 if test -n "$INST_LINGUAS"; then
20679 for lang
in $INST_LINGUAS; do
20680 CATALOGS
="$CATALOGS $lang.gmo"
20683 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
20684 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"
20685 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
20686 if test -f "$f"; then
20688 *.orig |
*.bak |
*~
) ;;
20689 *) cat "$f" >> "$ac_dir/Makefile" ;;
20697 denoiser
) if test $denoiserlevel -gt 0; then
20698 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
20699 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" \
20700 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
20701 for i
in `find . -name 'Makefile' -print`; do
20702 if test -n "`head -n 1 $i | grep '^#'`"; then
20703 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
20711 cat >>$CONFIG_STATUS <<\_ACEOF
20713 { (exit 0); exit 0; }
20715 chmod +x
$CONFIG_STATUS
20716 ac_clean_files
=$ac_clean_files_save
20719 # configure is writing to config.log, and then calls config.status.
20720 # config.status does its own redirection, appending to config.log.
20721 # Unfortunately, on DOS this fails, as config.log is still kept open
20722 # by configure, so config.status won't be able to write to it; its
20723 # output is simply discarded. So we exec the FD to /dev/null,
20724 # effectively closing config.log, so it can be properly (re)opened and
20725 # appended to by config.status. When coming back to configure, we
20726 # need to make the FD available again.
20727 if test "$no_create" != yes; then
20729 ac_config_status_args
=
20730 test "$silent" = yes &&
20731 ac_config_status_args
="$ac_config_status_args --quiet"
20733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20736 # would make configure fail if this is the last instruction.
20737 $ac_cs_success ||
{ (exit 1); exit 1; }
20743 echo " Configure script has finished system check."
20745 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
20747 echo " aMule enabled options:"
20749 echo " **** aMule Core ****"
20750 echo " Prefix where aMule should be installed? ${prefix:-none}"
20751 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
20752 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
20753 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
20754 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
20755 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
20756 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
20757 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
20758 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
20759 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
20760 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
20763 echo " **** aMule TextClient ****"
20764 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
20766 echo " **** aMule WebServer ****"
20767 echo " Should aMule WebServer be built? ${WEB:-no}"
20769 echo " **** aMule ED2K Links Handler ****"
20770 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
20772 echo " **** aMuleLinkCreator ****"
20773 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
20774 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
20776 echo " **** aMule Statistics ****"
20777 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
20778 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
20781 echo " **** General Libraries and Tools ****"
20782 echo " Should ccache support be enabled? ${ccache:-no}"
20783 echo " Libraries aMule will use to build:"
20785 if test $WX_DEBUG -eq 1; then
20786 wxinfo
="$wxinfo,debug"
20789 if test $WX_SHARED -eq 1; then
20790 wxinfo
="$wxinfo,shared"
20792 wxinfo
="$wxinfo,static"
20795 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
20796 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
20797 if test x
${WEB:-no} != xno
; then
20798 if test $regex_found = no
; then
20799 regex_found
="Not detected"
20801 if test -z "$REGEX_LIB"; then
20804 regex_found
="standalone (in $REGEX_LIB)"
20809 echo " regex $regex_found"
20811 if test ${enable_nls:-yes} = yes; then
20812 if test x
$USE_NLS = xno
; then
20813 libintl_found
="Not detected"
20815 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
20816 libintl_found
="included"
20818 libintl_found
="system"
20823 echo " libintl $libintl_found"
20825 if test x
$LIBPNG_VERSION != xnot_needed
; then
20826 echo " libpng ${LIBPNG_VERSION:-Not detected}"
20828 if test x
$GDLIB_VERSION != xnot_needed
; then
20829 echo " libgd ${GDLIB_VERSION:-Not detected}"
20831 echo " zlib ${ZLIB_VERSION:-Not detected}"
20832 if test x
$WEB = xdisabled
; then
20835 echo "WARNING! amuleweb has been disabled because configure could not find"
20836 echo "a POSIX compliant regex library."
20839 if test -z "$LIBPNG_VERSION"; then
20842 echo " WARNING! libpng >= 1.2.0 not found."
20843 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."